input[readonly] {
  background: #edf2f5;
  color: #395367;
  cursor: not-allowed;
}

.lookup-status {
  color: #627080;
  font-size: .76rem;
  font-weight: 500;
}

.lookup-status.loading { color: #0b5fa8; }
.lookup-status.success { color: #16745c; }
.lookup-status.error { color: #aa3b3b; }

.analysis-heading,
.recommendation-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.analysis-heading h3,
.recommendation-group h4 {
  margin: 0;
  color: #0b2545;
}

.analysis-heading p {
  margin: 4px 0 0;
  color: #627080;
  font-size: .82rem;
}

#analysis-status { margin: 18px 0; }
.recommendation-group { margin-top: 22px; }
.recommendation-group h4 { margin-bottom: 10px; font-size: .92rem; }
.recommendation-list { display: grid; gap: 9px; }

.recommendation-card {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 15px;
  border: 1px solid #d3dee6;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.recommendation-card:has(input:checked) {
  border-color: #0b5fa8;
  box-shadow: 0 0 0 2px #0b5fa817;
  background: #f5faff;
}

.recommendation-card input { width: 18px; min-height: 18px; margin: 2px 0 0; }
.recommendation-code { color: #0b5fa8; font: 750 .8rem/1.2 Consolas, monospace; }
.recommendation-title { margin-top: 3px; color: #0b2545; font-weight: 750; }
.recommendation-reason,.recommendation-condition { margin: 7px 0 0; font-size: .78rem; font-weight: 400; }
.recommendation-reason { color: #4d6578; }
.recommendation-condition { color: #7a5818; }
.recommendation-badge { flex: 0 0 auto; padding: 3px 6px; border-radius: 4px; background: #e8f2f8; color: #275d80; font-size: .68rem; }

.client-registry { margin-bottom: 24px; padding: 18px; border: 1px solid #cbd9e4; background: #f5f8fa; border-radius: 7px; }
.client-registry h3,.client-registry p { margin: 0; }
.client-registry h3 { color: #0b2545; font-size: 1rem; }
.client-registry p { color: #627080; font-size: .82rem; }
.client-registry-controls { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: end; gap: 9px; margin-top: 14px; }
.client-registry-controls button { min-height: 44px; }
.client-dialog { width: min(760px,calc(100vw - 28px)); max-height: calc(100vh - 40px); border: 1px solid #c5d2dc; border-radius: 8px; padding: 24px; color: #1f2937; }
.client-dialog::backdrop { background: rgba(11,37,69,.45); }
.dialog-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid #dbe3ea; }
.dialog-head h2,.dialog-head p { margin: 0; }
.dialog-head h2 { color: #0b2545; font-size: 1.2rem; }
.dialog-head p { color: #627080; font-size: .82rem; }
.field-with-action { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.field-with-action button { min-height: 44px; padding: 8px 12px; }
@media(max-width:620px){.client-registry-controls{grid-template-columns:1fr 1fr}.client-registry-controls label{grid-column:1/-1}.client-dialog{padding:18px}.client-dialog .cols-2{grid-template-columns:1fr}.client-dialog .span-2{grid-column:auto}}
.expert-access { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 28px; background: #eef2f5; }
.expert-access>div { width: min(430px,100%); padding: 28px; background: white; border: 1px solid #dbe3ea; border-radius: 8px; }
.expert-access h1 { margin: 0 0 8px; color: #0b2545; font-size: 1.5rem; }
.expert-access form { display: grid; gap: 14px; margin: 22px 0 16px; }
#cloud-save-status { display: block; margin: 12px 28px 0; }

@media (max-width: 620px) {
  .analysis-heading { display: block; }
  .analysis-heading button { width: 100%; margin-top: 12px; }
}
