.detailed-record { min-width:0; }
.modal.record-modal { width:min(1120px,100%); }
.record-navigation { position:relative; scroll-margin-top:16px; outline:none; margin:24px 0; }
.record-tabs { display:flex; gap:6px; overflow-x:auto; border-bottom:1px solid #d5e2e2; padding-bottom:8px; }
.record-tabs button { flex:1 0 110px; border:1px solid #d5e2e2; border-radius:10px; padding:12px 8px; background:white; color:#325b62; cursor:pointer; }
.record-tabs button[aria-selected="true"] { background:#e9f3f5; border:2px solid #397e93; color:#124e53; }
.record-tabs span,.record-tabs small { display:block; }
.record-tabs small { margin-top:7px; }
.record-mobile-directory { display:none; }
.record-part h3 { font-size:23px; margin:25px 0; color:#174f50; }
.record-part[hidden],.record-final[hidden],.record-reference[hidden] { display:none; }
.record-field { margin:0 0 30px; }
.record-field label { font-weight:650; display:block; margin-bottom:10px; }
.record-hint { margin:0 0 12px; color:#617c86; font-size:14px; line-height:1.75; }
.record-field textarea { box-sizing:border-box; width:100%; min-height:110px; line-height:1.9; font-size:16px; padding:18px; resize:vertical; overflow:hidden; }
.record-field textarea.record-narrative { min-height:310px; }
.record-field select { margin-bottom:12px; min-height:46px; }
.record-field .record-state-label { font-size:14px; font-weight:400; }
.record-review { display:flex; gap:12px; align-items:flex-start; padding:18px; background:#f1f6f6; border-radius:12px; line-height:1.7; }
.record-review input { width:22px; height:22px; flex:0 0 22px; margin-top:2px; }
.record-step-actions,.record-save-actions { display:flex; gap:16px; justify-content:space-between; margin:24px 0; }
.record-save-actions { border-top:1px solid #d7e2e2; padding-top:24px; }
.record-final { background:#f5f8f8; border:1px solid #d5e2e2; border-radius:12px; padding:22px; }
.record-missing { display:block; background:white; color:#9e3b32; border:1px solid #dec5c1; border-radius:8px; text-align:left; padding:12px; margin:8px 0; width:100%; cursor:pointer; }
.record-answer { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.9; padding:16px; background:#f5f8f8; border-radius:8px; }
.record-read-section { margin:32px 0; }
.record-read-section h4 { margin-bottom:8px; }
.record-legacy,.record-reference { border:1px solid #d5e2e2; padding:20px; margin:20px 0; border-radius:12px; }
.detailed-record [data-error] { color:#a33232; white-space:pre-wrap; }
.detailed-record [data-save-status] { color:#16634d; }
.detailed-record button:focus-visible,.detailed-record input:focus-visible,.detailed-record select:focus-visible,.detailed-record textarea:focus-visible { outline:3px solid #3795ad; outline-offset:3px; }
@media(max-width:700px) {
  .record-tabs { display:none; }
  .record-mobile-directory { display:block; font-weight:600; }
  .record-mobile-directory select { display:block; width:100%; margin-top:8px; min-height:48px; }
  .record-part h3 { font-size:21px; }
  .record-save-actions,.record-step-actions { gap:8px; }
  .record-save-actions button,.record-step-actions button { flex:1; padding:12px 8px; }
  .record-final { padding:15px; }
}
