/* Registration-only presentation; acquisition and reconstruction retain their styles. */
#screen-register {
  --text: #edf0f2;
  --text2: #e0e4e7;
  --text-hi: #fff;
  --text-muted: #b6c0c6;
  --border: #51585e;
  background: #343434 url('/assets/ct-room-register-20261121.png') center bottom / cover no-repeat;
  background-blend-mode: screen;
}
#screen-register .topbar { background: #1c2125; border-bottom: 1px solid #4d565d; }
#screen-register .s1-body { background: transparent; min-height: 0; }
#screen-register .setup-steps { background: #242a2ee8; margin: 12px auto 0; max-width: 920px; border: 1px solid #687278; border-radius: 4px; }
#screen-register .setup-step { color: #d2d7da; letter-spacing: 0; text-transform: none; }
#screen-register .setup-step.is-active { background: #087e92; color: white; }
#screen-register .s1-main { background: transparent; padding: 14px 22px 24px; gap: 0; }
#screen-register .s1-toprow { margin: 0 !important; padding: 7px 16px !important; background: #3a4349f5; border: 1px solid #879299; border-bottom: none; border-radius: 6px 6px 0 0; }
#screen-register .s1-title { font-size: 17px; }
#screen-register .cad-form-grid { background: #3a4349f5; grid-template-columns: minmax(350px,1.2fr) minmax(330px,1fr) minmax(240px,.85fr) 85px; border: 1px solid #879299; border-top: none; border-radius: 0 0 6px 6px; padding: 4px 0 12px; }
#screen-register .form-col { padding: 6px 16px; gap: 5px; min-width: 0; }
#screen-register .frow { min-height: 24px; gap: 3px; }
#screen-register .frow > label { width: 117px; font-size: 12px; color: #e0e4e7; }
#screen-register .frow input[type=text], #screen-register .frow select { min-width: 0; height: 25px; background-color: #30363b; color: #fff; border: 1px solid #727c84; border-radius: 4px; font-size: 12px; }
#screen-register .frow input:focus-visible, #screen-register .frow select:focus-visible { outline: 2px solid #27d4e7; outline-offset: 1px; }
#screen-register .radio-group { gap: 8px; flex-wrap: wrap; }
#screen-register .radio-group label { width: auto; padding: 0; font-size: 11px; color: #e0e4e7; }
#screen-register .cad-form-grid > div:last-child { background: transparent !important; min-width: 0 !important; padding: 8px !important; border-left: none !important; }
#screen-register .btn-action-right { height: 30px; background: #343c42; border-color: #6b777e; color: #edf0f2; }
#screen-register .exam-summary { background: transparent; border: none; border-left: 3px solid #16c9dc; border-radius: 0; padding: 0 0 0 14px; }
#screen-register .es-title { color: white; font: 600 15px 'Segoe UI', sans-serif; }
#screen-register .es-row { color: #c7d1d6; min-height: 26px; }
#screen-register .es-hint { color: #f1ca70; }
#screen-register #exam-section-wrap { margin-top: 18px; min-height: 0; width: min(100%, 1040px); background: #3a4349f5; border: 1px solid #879299; border-radius: 6px; padding: 9px 16px; }
#screen-register .exam-section-title { color: white; font-size: 15px; letter-spacing: 0; border-bottom: 1px solid #60767b; padding-bottom: 8px; margin-bottom: 10px; }
#screen-register #exam-section-wrap .anatomy-bar, #screen-register #exam-section-wrap .exam-bottom { padding-right: 0; }
#screen-register .anatomy-bar { gap: 8px; margin-bottom: 0; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
#screen-register .abtn { flex: 0 0 84px; min-width: 0; padding: 5px; gap: 5px; border: 1px solid #687078; border-radius: 4px; background: #171c20; color: #f2f4f5; }
#screen-register .abtn .aicon, #screen-register .abtn img { width: 70px; height: 70px; flex: none; object-fit: contain; background: black; border-radius: 2px; }
#screen-register .abtn:hover { border-color: #a0e5ee; background: #303c40; }
#screen-register .abtn.active { border-color: #26d7e8; outline: 1px solid #26d7e8; background: #17363b; }
#screen-register .exam-bottom { margin-top: 0; }
#screen-register .exam-bottom:has(.cards-grid:not(.protocols-hidden)) { margin-top: 12px; }
#screen-register .ecard { background: #30363b; color: #edf0f2; border-color: #5b6971; border-radius: 4px; }
#screen-register #btn-start-exam-wrap { background: #1c2125f5 !important; border-color: #657078 !important; padding: 10px 22px !important; }
#screen-register .btn-start-exam { min-width: 180px; height: 36px; border-radius: 4px; background: #16c9dc; color: #06282f; font-size: 14px; font-weight: 700; }
#screen-register .btn-start-exam:disabled { background: #536269; color: #d5dcdf; opacity: 1; }
html[data-theme=light] #screen-register .s1-main { background: transparent; }
html[data-theme=light] #screen-register .s1-toprow,
html[data-theme=light] #screen-register .cad-form-grid,
html[data-theme=light] #screen-register #exam-section-wrap { background: #f5f7f8f5; color: #253238; }
html[data-theme=light] #screen-register .frow > label,
html[data-theme=light] #screen-register .radio-group label,
html[data-theme=light] #screen-register .s1-title,
html[data-theme=light] #screen-register .exam-section-title { color: #253238; }
html[data-theme=light] #screen-register .exam-summary { background: transparent !important; }
@media (min-width: 1550px) {
  #screen-register .s1-toprow, #screen-register .cad-form-grid { width: 1400px; max-width: 100%; }
}
@media (max-width: 1150px) {
  #screen-register .cad-form-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  #screen-register .exam-summary-col { border-top: 1px solid #51585e; }
  #screen-register .cad-form-grid > div:last-child { border-top: 1px solid #51585e; }
}
@media (max-width: 700px) {
  #screen-register { background-position: 70% bottom; }
  #screen-register .s1-main { padding: 10px 10px 24px; }
  #screen-register .cad-form-grid { grid-template-columns: minmax(0,1fr); }
  #screen-register .form-col { border-right: none; padding: 10px; }
  #screen-register .frow > label { width: 108px; font-size: 11px; }
  #screen-register .setup-steps { margin: 6px 10px 0; }
  #screen-register .setup-step { padding: 8px; font-size: 11px; gap: 4px; }
  #screen-register .setup-step b { width: 18px; height: 18px; }
  #screen-register .s1-toprow { gap: 8px; }
  #screen-register .s1-title { font-size: 15px; }
}

/* Keep paired fields inside their column, including owner layout settings. */
#screen-register .s1-main { width: 100%; max-width: min(var(--cad-w, 1100px), 100%); }
#screen-register .s1-toprow,
#screen-register .cad-form-grid { width: 100%; max-width: 100%; box-sizing: border-box; }
#screen-register .cad-form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 4px 0 7px; }
#screen-register .cad-form-grid .form-col { min-width: 0; padding: 3px 16px; gap: 2px; }
#screen-register .cad-form-grid .frow { display: flex; flex-direction: row; align-items: center; min-height: 26px; height: auto; margin: 0; min-width: 0; gap: 6px; }
#screen-register .cad-form-grid .frow > label { flex: 0 0 112px; width: 112px; min-width: 0; font-size: max(12px, var(--cad-field-font, 12px)); line-height: 1.3; }
#screen-register .cad-form-grid .frow input[type=text],
#screen-register .cad-form-grid .frow select { height: 24px; background-color: #4b565f; border-color: #94a0a8; font-size: max(12px, var(--cad-field-font, 12px)); }
#screen-register .cad-form-grid .frow-pair { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 16px; min-width: 0; }
#screen-register .cad-form-grid .frow-pair > .frow { flex: 0 0 auto; width: auto; }
#screen-register .cad-form-grid .frow-pair > .frow + .frow { border: none; padding: 0; margin: 0; }
#screen-register .cad-form-grid .frow-pair > .frow + .frow > label { flex: 0 0 auto; width: auto; padding: 0; }
#screen-register .cad-form-grid .dob-row,
#screen-register .cad-form-grid .age-row { min-width: 0; flex-wrap: nowrap; }
#screen-register .cad-form-grid .dob-row input { flex: 0 0 36px !important; width: 36px !important; }
#screen-register .cad-form-grid .dob-row #dob-yyyy { flex-basis: 52px !important; width: 52px !important; }
#screen-register .cad-form-grid .radio-group { flex-wrap: wrap; row-gap: 6px; }
#screen-register .s1-toprow { flex-wrap: wrap; }
#screen-register .s1-toprow .btn-clear-top { margin-left: auto; width: auto; }
#screen-register #exam-section-wrap { width: 100%; box-sizing: border-box; margin-top: 12px; }
#screen-register .anatomy-bar { gap: 7px; padding: 2px 2px 6px; }
#screen-register .abtn { flex: 1 0 78px; }
#screen-register .abtn span { font-size: 11px; line-height: 1.4; }
#screen-register .btn-start-exam:focus-visible,
#screen-register .s1-toprow button:focus-visible { outline: 2px solid #7ceaf4; outline-offset: 3px; }
@media (max-width: 760px) {
  #screen-register .cad-form-grid { grid-template-columns: minmax(0, 1fr); }
  #screen-register .cad-form-grid .form-col { padding: 6px 12px; }
  #screen-register .cad-form-grid .form-col + .form-col:not(.exam-summary-col) { border-top: 1px solid #51585e; padding-top: 12px; margin-top: 6px; }
  #screen-register .cad-form-grid .frow { flex-wrap: wrap; }
  #screen-register .cad-form-grid .frow > label { text-align: left; flex: 0 0 100%; padding: 0; }
  #screen-register .cad-form-grid .frow-pair > .frow + .frow > label { flex-basis: 100%; width: 100%; padding: 0; }
  #screen-register .cad-form-grid .frow > input,
  #screen-register .cad-form-grid .frow > select { width: 100% !important; }
  #screen-register .s1-toprow .btn-clear-top { margin-left: 0; }
}
