@font-face { font-family: "IBM Plex Sans Arabic"; src: url("assets/fonts/IBMPlexSansArabic-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("assets/fonts/IBMPlexSansArabic-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("assets/fonts/IBMPlexSansArabic-SemiBold.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  --maroon: #741537;
  --maroon-dark: #4f0d27;
  --maroon-soft: #f8edf1;
  --gold: #b8964d;
  --gold-soft: #f7f1e3;
  --ink: #20242a;
  --muted: #68707b;
  --line: #dde1e5;
  --surface: #ffffff;
  --canvas: #f4f5f6;
  --green: #176a4b;
  --green-soft: #e9f5ef;
  --blue: #245f8f;
  --blue-soft: #eaf2f8;
  --amber: #8c5b0b;
  --amber-soft: #fff5dc;
  --red: #a33333;
  --focus-ring: #8a6a2e;
  --radius: 7px;
  --shadow: 0 8px 28px rgba(37, 26, 30, 0.08);
  font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html { min-width: 0; scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 15px; line-height: 1.55; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
button, input, select, textarea { border-radius: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100dvh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 100dvh; position: sticky; top: 0; max-height: 100dvh; }
.brand { display: flex; gap: 11px; align-items: center; padding: 20px 18px; border-bottom: 1px solid var(--line); }
.brand img { width: 45px; height: 45px; object-fit: contain; }
.brand strong, .brand span { display: block; }
.brand strong { color: var(--maroon); font-size: 17px; }
.brand span { color: var(--muted); font-size: 11px; margin-top: 1px; }
.nav-list { padding: 14px 10px; display: grid; gap: 4px; }
.nav-item { min-height: 48px; border: 0; background: transparent; color: #4d535c; display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; text-align: right; padding: 7px 10px; border-radius: 6px; transition: background .18s ease, color .18s ease; }
.nav-item:hover { background: #f6f3f4; }
.nav-item.active { color: var(--maroon); background: var(--maroon-soft); font-weight: 700; box-shadow: inset -3px 0 var(--maroon); }
.nav-mark { font: 700 10px/1.6 Arial, sans-serif; color: var(--gold); border: 1px solid #dac58f; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.nav-count { background: var(--maroon); color: white; min-width: 23px; height: 23px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; font-variant-numeric: tabular-nums; }
.sidebar-foot { margin-top: auto; padding: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.sidebar-foot strong, .sidebar-foot span { display: block; }
.sidebar-foot strong { font-size: 13px; }
.sidebar-foot span { color: var(--muted); font-size: 11px; }
.sidebar-foot-identity { flex: 1; min-width: 0; }
.sidebar-foot-identity strong, .sidebar-foot-identity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#logout-button { flex: 0 0 auto; min-height: 32px; padding: 0 10px; font-size: 11px; }
.user-avatar, .member-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--maroon-soft); color: var(--maroon); font-weight: 800; }

.main-content { min-width: 0; padding: 0 28px 40px; overflow-x: clip; }
.topbar { min-height: 91px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.eyebrow { margin: 0 0 3px; color: var(--maroon); font-weight: 700; font-size: 11px; }
.eyebrow.light { color: #e8d6a7; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 25px; line-height: 1.35; margin-bottom: 0; }
h2 { font-size: 20px; line-height: 1.4; margin-bottom: 4px; }
h3 { font-size: 16px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.recall-notification { position: relative; width: 38px; height: 38px; display: grid; place-items: center; color: var(--maroon); background: #fff; border: 1px solid var(--line); border-radius: 50%; }
.recall-notification[hidden] { display: none; }
.recall-notification > span { width: 19px; height: 19px; display: grid; place-items: center; color: #fff; background: var(--maroon); border-radius: 50%; font: 800 11px Arial, sans-serif; }
.recall-notification > b { position: absolute; top: -5px; left: -5px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 4px; color: #fff; background: var(--red); border: 2px solid #f4f4f4; border-radius: 10px; font: 800 8px Arial, sans-serif; }
.language-toggle { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px 3px 4px; color: #454b53; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.language-toggle span { width: 29px; height: 29px; display: grid; place-items: center; color: #fff; background: var(--maroon); border-radius: 3px; font: 700 10px Arial, sans-serif; }
.language-toggle b { font: 600 11px Arial, sans-serif; }
.primary-action, .secondary-action, .ghost-action { min-height: 43px; padding: 0 17px; border: 1px solid transparent; font-weight: 700; transition: background .18s ease, border-color .18s ease, transform .1s ease; }
.primary-action:active, .secondary-action:active, .ghost-action:active { transform: scale(.97); }
.primary-action { background: var(--maroon); color: #fff; }
.primary-action:hover { background: var(--maroon-dark); }
.primary-action:disabled { cursor: not-allowed; color: #8b9096; background: #e7e9eb; }
.secondary-action { background: #fff; color: var(--maroon); border-color: #c8a9b6; }
.secondary-action:hover { background: var(--maroon-soft); }
.ghost-action { background: transparent; color: #515861; }
.ghost-action:hover { background: #eceeef; }
.link-action, .text-action { border: 0; background: transparent; color: var(--maroon); font-weight: 700; min-height: 40px; padding: 0 8px; }
.link-action:hover, .text-action:hover { text-decoration: underline; }
.link-action:disabled { cursor: not-allowed; color: #9ba0a5; text-decoration: none; }

.view { display: none; min-width: 0; max-width: 100%; overflow-x: clip; }
.view.active { display: block; animation: view-in .18s ease-out; }
@keyframes view-in { from { opacity: .2; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

.status-band { background: var(--maroon); color: white; min-height: 136px; padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.status-band h2 { font-size: 24px; margin-bottom: 5px; }
.status-band p { margin-bottom: 0; color: #eadce1; }
.import-result-banner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; padding: 12px 15px; color: #254f40; background: var(--green-soft); border: 1px solid #a8cdbb; border-right: 4px solid var(--green); }
.import-result-banner[hidden] { display: none; }
.import-result-banner span, .import-result-banner strong, .import-result-banner p { display: block; margin: 0; }
.import-result-banner span { font-size: 9px; font-weight: 800; }
.import-result-banner strong { margin-top: 2px; font-size: 15px; }
.import-result-banner p { margin-top: 2px; color: #527064; font-size: 10px; }
.recall-alerts { margin: 14px 0 22px; background: #fff; border: 1px solid var(--line); }
.recall-alerts[hidden] { display: none; }
.recall-alerts-head { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.recall-alerts-head span, .recall-alerts-head h2, .recall-alerts-head p { display: block; margin: 0; }
.recall-alerts-head > div:first-child > span { color: var(--maroon); font-size: 9px; font-weight: 800; }
.recall-alerts-head h2 { margin-top: 2px; font-size: 17px; }
.recall-alerts-head p { margin-top: 2px; color: var(--muted); font-size: 10px; }
.recall-totals { display: grid; grid-template-columns: repeat(3, minmax(86px, 1fr)); border: 1px solid var(--line); }
.recall-totals > div { min-height: 52px; display: grid; place-items: center; align-content: center; padding: 6px 12px; border-left: 1px solid var(--line); }
.recall-totals > div:last-child { border-left: 0; }
.recall-totals strong { font-size: 18px; line-height: 1; }
.recall-totals span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.recall-totals .overdue strong { color: var(--red); }
.recall-totals .soon strong { color: var(--amber); }
.recall-list { display: grid; }
.recall-item { min-height: 62px; display: grid; grid-template-columns: 120px minmax(180px, 1fr) minmax(150px, 1.4fr) auto; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid #eceeef; }
.recall-item:last-child { border-bottom: 0; }
.recall-item > div strong, .recall-item > div small { display: block; }
.recall-item > div small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.recall-item time { font: 700 10px Arial, sans-serif; }
.recall-item .recall-reason { color: #4d555e; font-size: 10px; }
.recall-severity { min-height: 26px; display: inline-flex; align-items: center; justify-content: center; justify-self: start; padding: 2px 8px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.recall-severity.overdue { color: var(--red); background: #faecec; }
.recall-severity.soon { color: var(--amber); background: var(--amber-soft); }
.recall-severity.scheduled { color: var(--blue); background: var(--blue-soft); }
.session-metrics { display: grid; grid-template-columns: repeat(3, 1fr); min-width: 390px; border: 1px solid rgba(255,255,255,.2); border-radius: 5px; }
.session-metrics div { padding: 15px 17px; text-align: center; border-left: 1px solid rgba(255,255,255,.2); }
.session-metrics div:last-child { border-left: 0; }
.session-metrics strong, .session-metrics span { display: block; }
.session-metrics strong { font-size: 24px; }
.session-metrics span { color: #eadce1; font-size: 11px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 28px; }
.metric { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 16px 17px; }
.metric span, .metric strong, .metric small { display: block; }
.metric span { color: var(--muted); font-size: 12px; }
.metric strong { font-size: 28px; margin: 3px 0; font-variant-numeric: tabular-nums; }
.metric small { color: #8b9199; }
.metric-grid.compact .metric { padding: 13px 16px; }
.metric-grid.compact .metric strong { font-size: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin: 22px 0 12px; }
.section-head p { margin: 0; color: var(--muted); }
.section-kicker { display: block; margin-bottom: 2px; color: var(--maroon); font-size: 10px; font-weight: 800; }
.roster-title h2 { display: flex; align-items: center; gap: 9px; margin-bottom: 2px; }
.roster-title h2 b { min-width: 58px; padding: 2px 9px; color: #fff; background: var(--maroon); border-radius: 4px; font: 700 13px Arial, sans-serif; text-align: center; }
.dashboard-record-actions { display: flex; align-items: center; gap: 8px; }
.table-tools { display: flex; gap: 8px; }
.search-field { min-width: 310px; display: flex; align-items: center; background: #fff; border: 1px solid var(--line); padding: 0 12px; border-radius: 5px; }
.search-field span { color: var(--muted); font-size: 11px; padding-left: 8px; }
.search-field input { border: 0; min-height: 42px; width: 100%; outline: 0; }
.table-tools select { min-height: 44px; border: 1px solid var(--line); background: #fff; padding: 0 12px; }
.data-table-wrap { width: 100%; min-width: 0; max-width: 100%; contain: inline-size; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; direction: ltr; }
.data-table { width: 100%; border-collapse: collapse; min-width: 820px; direction: rtl; }
.data-table th { font-size: 11px; color: var(--muted); background: #f8f8f8; text-align: right; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 13px 14px; border-bottom: 1px solid #ebedef; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfafb; }
.data-table td strong, .data-table td small { display: block; }
.data-table td small { color: var(--muted); margin-top: 2px; }
.grade-pill, .status { display: inline-flex; align-items: center; min-height: 27px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.grade-one, .status.ready, .status.issued, .status.live { color: var(--green); background: var(--green-soft); }
.grade-two, .status.review { color: var(--blue); background: var(--blue-soft); }
.grade-three, .status.followup { color: var(--amber); background: var(--amber-soft); }
.status.waiting { color: var(--maroon); background: var(--maroon-soft); }
.medical-roster { min-width: 1900px; }
.medical-roster th, .medical-roster td { white-space: nowrap; }
.medical-roster .wide-cell { min-width: 170px; max-width: 220px; white-space: normal; line-height: 1.45; }
.medical-roster .identity-col { position: sticky; right: 0; min-width: 180px; z-index: 3; background: #fff; box-shadow: -1px 0 #e4e6e8; }
.medical-roster .qid-col { position: sticky; right: 180px; min-width: 140px; z-index: 2; background: #fff; box-shadow: -1px 0 #e4e6e8; }
.medical-roster thead .identity-col, .medical-roster thead .qid-col { background: #f8f8f8; z-index: 5; }
.medical-roster tbody tr:hover .identity-col, .medical-roster tbody tr:hover .qid-col { background: #fbfafb; }
.medical-roster bdi { direction: ltr; font: 600 12px Arial, sans-serif; }
.medical-roster .action-cell { min-width: 90px; }
.roster-pagination { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.roster-pagination > span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.roster-pagination > div { display: flex; align-items: center; gap: 10px; }
.roster-pagination strong { min-width: 100px; color: #454b53; font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.roster-pagination .secondary-action { min-width: 84px; min-height: 40px; padding: 0 12px; }
.roster-pagination button:disabled { cursor: not-allowed; opacity: .45; }

.workspace-grid { display: grid; grid-template-columns: 190px minmax(0, 1fr) 225px; gap: 14px; align-items: start; }
.stepper { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; position: sticky; top: 16px; }
.step { width: 100%; border: 0; background: transparent; display: grid; grid-template-columns: 31px 1fr; gap: 9px; align-items: center; text-align: right; padding: 10px 8px; min-height: 59px; color: #555d66; border-radius: 5px; }
.step + .step { border-top: 1px solid #eff0f1; }
.step > span { width: 29px; height: 29px; border: 1px solid #cdd1d5; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.step strong, .step small { display: block; }
.step strong { font-size: 12px; }
.step small { color: var(--muted); font-size: 10px; margin-top: 1px; }
.step.active { background: var(--maroon-soft); color: var(--maroon); }
.step.active > span { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.form-surface { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.form-head { min-height: 73px; border-bottom: 1px solid var(--line); padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-head h2 { margin: 0; }
.save-state { color: var(--green); font-size: 11px; padding: 5px 9px; background: var(--green-soft); border-radius: 999px; }
.form-step { display: none; padding: 21px; min-height: 490px; }
.form-step.active { display: block; }
.field-grid { display: grid; gap: 14px; margin-bottom: 14px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
label > span, legend { display: block; color: #454b53; font-size: 12px; font-weight: 700; margin-bottom: 5px; }
label > span b { color: var(--red); }
input, select, textarea { width: 100%; border: 1px solid #cfd3d7; background: #fff; color: var(--ink); padding: 9px 11px; }
input, select { min-height: 44px; }
textarea { resize: vertical; min-height: 88px; }
input[readonly] { background: #f4f5f5; color: #666d75; }
.field-hint { color: var(--muted); font-size: 11px; margin: -4px 0 18px; }
fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 15px; margin: 17px 0; }
legend { padding: 0 8px; color: var(--maroon); }
.photo-upload { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 13px; background: #f8f8f8; border: 1px dashed #bfc3c7; padding: 13px; border-radius: 6px; }
.photo-upload p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.silhouette { width: 94px; aspect-ratio: 3/4; background: #e5e7ea; position: relative; overflow: hidden; border: 1px solid #d1d4d8; }
.silhouette::before { content: ""; position: absolute; width: 36%; aspect-ratio: 1; border-radius: 50%; background: #aeb4bb; top: 15%; left: 32%; }
.silhouette span { position: absolute; width: 75%; height: 45%; border-radius: 50% 50% 0 0; background: #aeb4bb; bottom: -4%; left: 12.5%; }
.silhouette.small { width: 52px; }
.silhouette.tiny { width: 39px; }
.notice { display: flex; justify-content: space-between; gap: 12px; padding: 11px 13px; border-radius: 5px; margin-bottom: 16px; }
.notice.clinical { color: var(--blue); background: var(--blue-soft); border: 1px solid #c5ddec; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.choice { border: 1px solid var(--line); border-radius: 6px; padding: 12px; display: grid; grid-template-columns: 18px 1fr; gap: 8px; cursor: pointer; margin: 0; }
.choice.selected { border-color: var(--maroon); background: var(--maroon-soft); }
.choice input { width: 17px; min-height: 17px; margin: 3px 0 0; }
.choice strong, .choice small { display: block; }
.choice small { color: var(--muted); }
.exemption-list { display: grid; gap: 7px; }
.exemption { display: grid; grid-template-columns: 20px minmax(0, 1fr) 170px; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 9px 10px; border-radius: 5px; cursor: pointer; margin: 0; }
.exemption.checked { border-color: #c7a8b5; background: #fcf7f9; }
.exemption input { width: 17px; min-height: 17px; }
.exemption span { margin: 0; }
.exemption strong, .exemption small { display: block; }
.exemption small { color: var(--muted); font: 10px Arial, sans-serif; }
.exemption select { min-height: 38px; padding: 5px 8px; }
.approval-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.approval-grid div { border: 1px solid var(--line); padding: 13px; border-radius: 5px; }
.approval-grid span, .approval-grid strong, .approval-grid small { display: block; }
.approval-grid span, .approval-grid small { color: var(--muted); font-size: 10px; }
.approval-grid strong { margin: 3px 0; }
.form-actions { min-height: 66px; border-top: 1px solid var(--line); padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; }
.form-actions > div { display: flex; gap: 7px; }
.record-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); position: sticky; top: 16px; overflow: hidden; }
.summary-person { display: flex; align-items: center; gap: 9px; padding: 13px; background: var(--maroon); color: #fff; }
.summary-person strong, .summary-person span { display: block; }
.summary-person span { font-size: 10px; color: #eadce1; }
.record-summary dl { margin: 0; padding: 7px 13px; }
.record-summary dl div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid #eceeef; }
.record-summary dt { color: var(--muted); font-size: 11px; }
.record-summary dd { margin: 0; font-weight: 700; font-size: 11px; }
.timeline { padding: 10px 13px 15px; }
.timeline > strong { display: block; margin-bottom: 8px; font-size: 12px; }
.timeline > div { display: grid; grid-template-columns: 13px 1fr; gap: 8px; position: relative; min-height: 49px; }
.timeline > div::after { content: ""; position: absolute; top: 14px; right: 5px; width: 1px; height: 37px; background: #d4d7da; }
.timeline > div:last-child::after { display: none; }
.timeline > div > span { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #c1c5c9; margin-top: 3px; background: #fff; z-index: 1; }
.timeline .done > span { border-color: var(--green); background: var(--green); }
.timeline .current > span { border-color: var(--maroon); box-shadow: 0 0 0 3px var(--maroon-soft); }
.timeline p, .timeline b, .timeline small { display: block; margin: 0; }
.timeline b { font-size: 11px; }
.timeline small { color: var(--muted); font-size: 10px; }

.workspace-grid.card-mode { grid-template-columns: 170px minmax(0, 1fr); }
.workspace-grid.card-mode .record-summary { display: none; }
.workspace-grid.card-mode .form-step[data-step-panel="5"] { padding: 24px; }
.card-format-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 9px 11px; background: #f7f7f7; border: 1px solid var(--line); border-radius: 6px; }
.card-format-bar > span { background: var(--maroon); color: #fff; padding: 4px 8px; border-radius: 4px; font: 700 11px Arial, sans-serif; }
.card-format-bar strong { font: 700 13px Arial, sans-serif; direction: ltr; }
.card-format-bar small { color: var(--muted); margin-right: auto; }
.printer-profile { display: grid; grid-template-columns: repeat(4, minmax(100px, 1fr)) auto; align-items: center; gap: 0; margin-bottom: 14px; border-block: 1px solid var(--line); background: #fff; }
.printer-profile > div { padding: 9px 12px; border-inline-end: 1px solid var(--line); }
.printer-profile span, .printer-profile strong { display: block; }
.printer-profile div span { color: var(--muted); font-size: 10px; margin-bottom: 2px; }
.printer-profile div strong { font-size: 12px; }
.printer-profile .printer-status { margin-inline-start: 12px; padding: 5px 8px; color: #86580a; background: #fff4d7; border: 1px solid #e6c77a; border-radius: 4px; font-size: 10px; white-space: nowrap; }
.card-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(280px, 360px)); justify-content: center; gap: 16px; direction: rtl; }
.id-card { container-type: inline-size; width: 100%; aspect-ratio: 85.6 / 53.98; background: #fff; border-radius: 3.7% / 5.9%; border: 1px solid #cfd1d4; box-shadow: 0 10px 26px rgba(35,25,28,.12); overflow: hidden; position: relative; min-width: 0; font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", Arial, sans-serif; color: #151518; }
.card-brand-band { height: 25.1%; display: grid; grid-template-columns: 13.5% minmax(0, 1fr) 13.5%; align-items: center; gap: 2.5%; padding: 1.8% 3.4%; color: #fff; background: #620d2d; direction: rtl; }
.card-brand-band > img { width: 100%; height: 100%; object-fit: contain; }
.card-brand-band > img:last-child { padding: .7%; border-radius: 50%; background: #fff; }
.card-brand-copy { text-align: center; line-height: 1.18; }
.card-brand-copy strong, .card-brand-copy span, .card-brand-copy small { display: block; }
.card-brand-copy strong { font-size: 2.65cqw; font-weight: 600; }
.card-brand-copy span { color: #e8d9de; font-size: 1.72cqw; margin-top: .35%; }
.card-brand-copy small { color: #d4bcc5; font: 400 1.12cqw/1.2 Arial, sans-serif; margin-top: 1.1%; }
.card-gold-rule, .back-gold-rule { height: 1.05%; background: #caa537; }
.credential-layout { height: 69.3%; display: grid; grid-template-columns: 23% minmax(0, 1fr) 17%; gap: 3.2%; padding: 2.3% 3.45% 1.2%; direction: ltr; }
.portrait-column { min-width: 0; text-align: center; }
.portrait-frame { width: 100%; height: 80%; border: 1px solid #c9c3c6; border-radius: 4%; overflow: hidden; background: linear-gradient(#eef1f4, #dfe3e8); }
.portrait-frame .silhouette { width: 100%; height: 100%; aspect-ratio: auto; border: 0; background: transparent; }
.portrait-frame .silhouette::before, .portrait-frame .silhouette span { background: #aeb5be; }
.card-serial { display: block; margin-top: 5%; color: #6c0d30; font: 600 1.2cqw/1.2 Arial, sans-serif; direction: ltr; }
.credential-identity { min-width: 0; align-self: stretch; direction: rtl; text-align: right; position: relative; }
.credential-label { display: flex; align-items: center; justify-content: flex-start; gap: 1.3%; color: #8b8b8d; font-size: 1.55cqw; }
.credential-label b { color: #680d30; font-weight: 600; }
.credential-label span { font: 400 1.08cqw Arial, sans-serif; }
.credential-identity h3 { margin: .2% 0 1.2%; color: #111115; font-size: 4.35cqw; line-height: 1.18; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.credential-identity > p { margin: 0; padding-bottom: 2.1%; border-bottom: 1px solid #d3cdd0; font: 500 2.7cqw/1.2 Arial, sans-serif; direction: ltr; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qid-label { margin-top: 2.3%; }
.qid { display: block; margin-top: .2%; color: #620d2d; font: 600 5cqw/1.16 Arial, sans-serif; direction: ltr; text-align: left; }
.card-type-chip { display: inline-block; margin-top: 2.2%; padding: .8% 3%; color: #620d2d; background: #fbf0f4; border: 1px solid #e1bdca; border-radius: 3px; font-size: 1.42cqw; font-weight: 600; }
.file-meta { position: absolute; inset-inline: 0; bottom: 1%; display: flex; justify-content: space-between; gap: 3%; color: #620d2d; font: 600 2.15cqw/1.2 Arial, sans-serif; direction: ltr; }
.file-meta span { min-width: 0; }
.file-meta small { display: block; margin-bottom: 1.4%; color: #7c3050; font-family: "IBM Plex Sans Arabic", Arial, sans-serif; font-size: 1.05cqw; direction: rtl; }
.credential-verify { align-self: end; position: relative; padding-bottom: 1%; }
.qr-code { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; padding: 2.2%; border: 1px solid #8b1742; background: #fff; image-rendering: pixelated; }
.mini-portrait { position: absolute; left: -50%; bottom: 0; width: 38%; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid #e4dce0; background: #f1edf0; }
.mini-portrait .silhouette { width: 100%; height: 100%; border: 0; background: transparent; }
.mini-portrait .silhouette::before, .mini-portrait .silhouette span { background: #d2ccd0; }
.card-security-line { position: absolute; inset-inline: 3.5%; bottom: .9%; display: flex; justify-content: space-between; gap: 2%; color: #c9bfc3; font-size: .72cqw; white-space: nowrap; overflow: hidden; }
.card-back { padding: 0; direction: rtl; }
.back-head { height: 12.3%; display: flex; justify-content: space-between; align-items: end; padding: 2.7% 3.5% 1.1%; color: #620d2d; }
.back-head strong { font-size: 3.45cqw; font-weight: 600; }
.back-head small { color: #8b8b8d; font: 400 1.55cqw Arial, sans-serif; }
.back-gold-rule { height: .85%; margin-inline: 3.5%; }
.classification-line { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2.4%; margin: 2.1% 3.5% 1.2%; padding: 1.15% 1.8%; border-right: 3px solid #caa537; background: #fbfaf7; font-size: 1.75cqw; }
.classification-line span, .classification-line small { color: #757579; }
.classification-line strong { color: #620d2d; font-size: 2.4cqw; }
.classification-line small { font: 400 1.05cqw Arial, sans-serif; direction: ltr; }
.card-exemptions { display: grid; grid-template-columns: 1fr 1fr; gap: 5.5% 6%; padding: 1.6% 3.5% 0; }
.card-exemptions div { border-right: 3px solid #741537; padding-right: 2.4%; min-width: 0; }
.card-exemptions strong, .card-exemptions span, .card-exemptions small { display: block; }
.card-exemptions strong { color: #161619; font-size: 3.05cqw; font-weight: 500; line-height: 1.18; }
.card-exemptions span { color: #89898c; font: 400 1.55cqw/1.3 Arial, sans-serif; }
.card-exemptions small { color: #a07621; font-size: 1.45cqw; }
.card-instructions { position: absolute; top: 43%; right: 3.5%; width: 52%; margin: 0; padding: 0; list-style: none; color: #5c5c61; font-size: 1.55cqw; line-height: 1.6; }
.card-instructions li::before { content: "−"; color: #c49d35; margin-left: 2%; }
.signature { position: absolute; left: 3.5%; bottom: 17.2%; width: 28%; font-size: 1.3cqw; text-align: left; }
.signature i { display: block; border-bottom: 1px solid #9da2a7; margin-bottom: 1.8%; }
.signature strong, .signature span, .signature small { display: block; }
.signature strong { color: #620d2d; font-size: 1.55cqw; }
.signature span { color: #620d2d; }
.signature small { color: #76767a; font: 600 1cqw Arial, sans-serif; direction: ltr; }
.back-validity { position: absolute; right: 3.5%; left: 3.5%; bottom: 11.8%; padding-top: 1.2%; border-top: 1px solid #d8d4d6; color: #87878a; font-size: 1.05cqw; text-align: right; }
.card-back .card-foot { position: absolute; right: 0; bottom: 0; left: 0; height: 9.7%; display: flex; align-items: center; justify-content: space-between; padding: 0 3.5%; color: #fff; background: #620d2d; font-size: 1.25cqw; }
.card-back .card-foot strong { font-weight: 400; }
.card-back .card-foot span { font: 400 1.1cqw Arial, sans-serif; direction: ltr; }
.qr-verification-data { margin-top: 18px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 14px; display: grid; grid-template-columns: 220px 1fr; gap: 12px 18px; align-items: center; }
.qr-verification-data > div { display: flex; align-items: center; gap: 10px; }
.qr-verification-data strong, .qr-verification-data small { display: block; }
.qr-verification-data small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.verification-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--maroon); background: var(--maroon-soft); border: 1px solid #d9bdc8; border-radius: 5px; font: 800 10px Arial, sans-serif; }
.qr-verification-data dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; margin: 0; }
.qr-verification-data dl div { min-width: 0; }
.qr-verification-data dt { color: var(--muted); font-size: 10px; }
.qr-verification-data dd { margin: 2px 0 0; font-weight: 700; font-size: 11px; }
.qr-verification-data > p { grid-column: 1 / -1; margin: 0; color: var(--muted); background: #f7f7f7; border-right: 3px solid var(--gold); padding: 7px 9px; font-size: 10px; }
.final-summary { margin-top: 20px; border: 1px solid #b9d8c9; background: var(--green-soft); border-radius: 6px; padding: 13px 15px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 15px; }
.final-summary strong, .final-summary p { grid-column: 1; }
.final-summary p { margin: 0; color: #496257; font-size: 11px; }
.final-summary button { grid-column: 2; grid-row: 1 / span 2; }

.committee-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 14px; }
.role-workspace-banner { min-height: 64px; display: flex; align-items: center; gap: 11px; margin-bottom: 12px; padding: 11px 14px; color: #394149; background: #fff; border: 1px solid var(--line); border-right: 4px solid var(--maroon); }
.role-workspace-banner strong, .role-workspace-banner p { display: block; margin: 0; }
.role-workspace-banner p { margin-top: 2px; color: var(--muted); font-size: 10px; }
.role-workspace-banner.officer { border-right-color: var(--blue); }
.role-workspace-banner.admin { border-right-color: var(--gold); }
.committee-queue, .decision-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.committee-queue { padding: 0 13px 13px; }
.queue-card { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; text-align: right; border: 1px solid var(--line); background: #fff; padding: 11px; min-height: 65px; margin-top: 7px; }
.queue-card.active { border-color: var(--maroon); background: var(--maroon-soft); }
.queue-card > span { width: 30px; height: 30px; border-radius: 50%; background: #f0f1f2; display: grid; place-items: center; font-size: 11px; }
.queue-card strong, .queue-card small { display: block; }
.queue-card small { color: var(--muted); }
.queue-card b { font-size: 10px; color: var(--maroon); }
.decision-panel { padding: 20px; }
.record-title { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 13px; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.comparison article { background: #f7f7f7; padding: 13px; border-right: 3px solid #b7bbc0; }
.comparison span, .comparison strong { display: block; }
.comparison span { color: var(--muted); font-size: 11px; }
.comparison strong { margin-top: 3px; }
.comparison p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.decision-focus { border: 1px solid #d5bdc8; background: var(--maroon-soft); padding: 14px; margin-bottom: 15px; }
.decision-focus > span { color: var(--maroon); font-size: 11px; font-weight: 700; }
.decision-focus h3 { font-size: 19px; color: var(--maroon); margin: 3px 0 9px; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-row span { background: #fff; border: 1px solid #d8bdc8; border-radius: 999px; padding: 4px 9px; font-size: 10px; }
.committee-decision-builder { margin: 16px 0; border: 1px solid var(--line); background: #fafafa; }
.committee-section-title { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 15px; background: var(--maroon-soft); border-bottom: 1px solid #dcc7d0; }
.committee-section-title span, .committee-section-title h3 { display: block; margin: 0; }
.committee-section-title span { color: var(--maroon); font-size: 10px; font-weight: 800; }
.committee-section-title h3 { margin-top: 2px; color: #2e3339; font-size: 17px; }
.committee-section-title small { max-width: 260px; color: #735662; font-size: 10px; text-align: end; }
.committee-decision-builder fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.committee-decision-builder legend { width: 100%; margin-bottom: 8px; color: #4f555d; font-size: 11px; font-weight: 800; }
.committee-classification { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 15px 15px !important; background: #fff; border-bottom: 1px solid var(--line) !important; }
.committee-classification legend { grid-column: 1 / -1; }
.committee-classification label, .committee-check-grid label { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.committee-classification label { min-height: 42px; justify-content: center; padding: 8px; border: 1px solid #cfd3d7; background: #fff; font-size: 11px; font-weight: 700; }
.committee-classification label:has(input:checked) { color: var(--maroon); border-color: var(--maroon); background: var(--maroon-soft); }
.committee-classification input, .committee-check-grid input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--maroon); }
.committee-exemption-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border-bottom: 1px solid var(--line); }
.committee-exemption-groups fieldset { padding: 15px !important; }
.committee-exemption-groups fieldset + fieldset { border-right: 1px solid var(--line); }
.committee-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.committee-check-grid label { min-height: 37px; padding: 7px 8px; border: 1px solid #e0e2e4; background: #fafafa; font-size: 10px; }
.committee-check-grid label:has(input:checked) { color: #15573f; border-color: #a8cdbb; background: var(--green-soft); font-weight: 700; }
.committee-term-row { display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding: 15px; background: #fff; border-bottom: 1px solid var(--line); }
.committee-term-row label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.committee-term-row select, .committee-term-row textarea { width: 100%; }
.committee-decision-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; padding: 13px 15px; }
.committee-decision-summary > div:not(.tag-row) { display: grid; gap: 2px; }
.committee-decision-summary span { color: var(--muted); font-size: 10px; }
.committee-decision-summary strong { color: var(--maroon); font-size: 13px; }
.committee-decision-summary .tag-row { grid-column: 1 / -1; }
.dual-approval { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 15px 0 9px; }
.dual-approval article { min-height: 68px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); background: #fff; }
.dual-approval article.approved { border-color: #a8cdbb; background: var(--green-soft); }
.dual-approval strong, .dual-approval small { display: block; }
.dual-approval small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.dual-approval article.approved small { color: var(--green); font-weight: 700; }
.approval-button { min-width: 96px; padding-inline: 10px; font-size: 10px; }
.dual-approval article.approved .approval-button { color: #fff; background: var(--green); border-color: var(--green); }
.approval-gate { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; margin-bottom: 12px; color: #745b20; background: #fff8e5; border: 1px solid #e3d29d; }
.approval-gate span { font: 800 10px Arial, sans-serif; }
.approval-gate strong { font-size: 10px; }
.approval-gate.complete { color: var(--green); background: var(--green-soft); border-color: #a8cdbb; }
.decision-actions .primary-action:disabled { cursor: not-allowed; color: #8b9096; background: #e7e9eb; }
.members { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 15px 0; }
.members > div { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); padding: 10px; }
.member-avatar.officer { background: var(--blue-soft); color: var(--blue); }
.members p, .members strong, .members small { display: block; margin: 0; }
.members small { color: var(--muted); }
.decision-actions { display: flex; justify-content: flex-end; gap: 8px; }
.permission-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.permission-grid article { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 17px; border-radius: var(--radius); }
.permission-grid h3 { margin: 10px 0 4px; }
.permission-grid p { color: var(--muted); font-size: 12px; min-height: 58px; }
.permission-grid > article > strong { color: var(--maroon); font-size: 11px; }
.role-code { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--maroon-soft); color: var(--maroon); font: 700 11px Arial, sans-serif; }
.role-code.officer { color: var(--blue); background: var(--blue-soft); }
.role-code.admin { color: #76550b; background: var(--gold-soft); }
.roles-three { grid-template-columns: repeat(3, 1fr); }
.roles-three article { min-height: 250px; }
.roles-three article > p { min-height: 52px; }
.roles-three ul { margin: 14px 0 0; padding: 12px 18px 0 0; border-top: 1px solid var(--line); color: #555c64; font-size: 11px; line-height: 1.9; }
.user-directory, .import-history { margin-top: 24px; }
.role-pill { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.role-pill.doctor { color: var(--maroon); background: var(--maroon-soft); }
.role-pill.officer { color: var(--blue); background: var(--blue-soft); }
.role-pill.admin { color: #76550b; background: var(--gold-soft); }
.role-pill.auditor { color: #525961; background: #eceeef; }

.users-page-head { margin-top: 0; }
.user-overview { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; color: #fff; background: var(--maroon); border-bottom: 3px solid var(--gold); }
.user-overview > div { min-height: 78px; display: grid; align-content: center; padding: 12px 18px; border-left: 1px solid rgba(255,255,255,.18); }
.user-overview > div:last-child { border-left: 0; }
.user-overview span, .user-overview strong { display: block; }
.user-overview span { color: #eadce1; font-size: 10px; }
.user-overview strong { margin-top: 2px; font-size: 22px; font-variant-numeric: tabular-nums; }
.admin-tabs { display: flex; align-items: center; gap: 0; margin-bottom: 12px; border-bottom: 1px solid #cfd3d7; }
.admin-tabs button { min-height: 44px; padding: 0 18px; color: var(--muted); background: transparent; border: 0; border-bottom: 3px solid transparent; border-radius: 0; font-weight: 700; }
.admin-tabs button:hover { color: var(--maroon); background: #f8f3f5; }
.admin-tabs button.active { color: var(--maroon); border-bottom-color: var(--maroon); }
.user-admin-panel { min-width: 0; }
.user-admin-panel[hidden] { display: none; }
.user-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(145px, auto)); gap: 8px; margin-bottom: 10px; }
.user-toolbar .search-field { min-width: 0; }
.user-toolbar select { min-height: 44px; border: 1px solid var(--line); background: #fff; padding: 0 10px; }
.user-table { min-width: 1120px; }
.table-result-count { margin: 8px 2px 0; color: var(--muted); font-size: 10px; }
.panel-heading { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 14px; background: #fff; border: 1px solid var(--line); border-bottom: 0; }
.panel-heading h3, .panel-heading p { margin: 0; }
.panel-heading h3 { font-size: 15px; }
.panel-heading p { margin-top: 2px; color: var(--muted); font-size: 10px; }
.permissions-table { min-width: 920px; }
.permissions-table td:not(:first-child), .permissions-table th:not(:first-child) { text-align: center; }
.access { min-height: 27px; display: inline-flex; align-items: center; justify-content: center; padding: 3px 8px; border-radius: 3px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.access.allow { color: var(--green); background: var(--green-soft); }
.access.limited { color: var(--blue); background: var(--blue-soft); }
.access.read { color: #535a63; background: #eceeef; }
.access.deny { color: #5c636a; background: #f4f5f6; }
.access.admin { color: var(--maroon); background: var(--maroon-soft); }
.department-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.department-grid article { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); }
.department-grid article header { display: flex; align-items: center; gap: 10px; padding: 13px; border-bottom: 1px solid var(--line); }
.department-grid article header > span { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; color: var(--maroon); background: var(--maroon-soft); font: 700 10px Arial, sans-serif; }
.department-grid h3, .department-grid p { margin: 0; }
.department-grid h3 { font-size: 13px; }
.department-grid p { margin-top: 1px; color: var(--muted); font-size: 9px; }
.department-grid dl { margin: 0; padding: 7px 13px 11px; }
.department-grid dl div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #eceeef; }
.department-grid dl div:last-child { border-bottom: 0; }
.department-grid dt { color: var(--muted); font-size: 9px; }
.department-grid dd { margin: 0; font-size: 10px; font-weight: 700; }
.activity-log { margin-top: 18px; }

.app-dialog { width: min(780px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; color: var(--ink); background: #fff; border: 1px solid #b9bdc2; border-radius: 7px; box-shadow: 0 24px 70px rgba(28,22,24,.28); }
.app-dialog::backdrop { background: rgba(25, 27, 30, .58); }
.app-dialog > form { display: flex; flex-direction: column; max-height: calc(100dvh - 34px); }
.dialog-head { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 18px; color: #fff; background: var(--maroon); border-bottom: 3px solid var(--gold); }
.dialog-head span, .dialog-head h2 { display: block; margin: 0; }
.dialog-head span { color: #e8d9de; font-size: 9px; }
.dialog-head h2 { margin-top: 2px; font-size: 18px; }
.dialog-close { width: 42px; height: 42px; flex: 0 0 auto; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); font: 400 24px/1 Arial, sans-serif; }
.dialog-close:hover { background: rgba(255,255,255,.12); }
.dialog-body { min-height: 0; overflow-y: auto; padding: 17px 18px; }
.dialog-body fieldset { margin: 0 0 14px; }
.dialog-notice { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 10px 12px; color: #5b4820; background: #fff9ea; border-right: 4px solid var(--gold); }
.dialog-notice strong { flex: 0 0 auto; }
.dialog-notice span { font-size: 10px; }
.dialog-actions { min-height: 66px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 18px; background: #f7f7f7; border-top: 1px solid var(--line); }
.toggle-row { min-height: 62px; display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 10px; margin: 2px 0 14px; padding: 10px 12px; background: #f8f8f8; border: 1px solid var(--line); }
.toggle-row input { width: 18px; min-height: 18px; padding: 0; accent-color: var(--maroon); }
.toggle-row > span { margin: 0; }
.toggle-row strong, .toggle-row small { display: block; }
.toggle-row small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.permission-preview { padding: 11px 12px; border: 1px solid var(--line); }
.permission-preview > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 700; }
.permission-preview > div { display: flex; flex-wrap: wrap; gap: 5px; }
.permission-preview b { padding: 4px 7px; color: var(--green); background: var(--green-soft); border: 1px solid #b9d8c9; border-radius: 3px; font-size: 9px; }

.import-heading { margin-bottom: 14px; }
.demo-import-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.demo-import-actions a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 10px; }
.data-route { min-height: 78px; display: grid; grid-template-columns: 1fr 20px 1fr 20px 1fr auto; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); }
.data-route > div { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 7px 8px; }
.data-route > div > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; color: #59616a; background: #f0f1f2; font: 800 9px Arial, sans-serif; }
.data-route .destination { color: var(--green); background: var(--green-soft); border: 1px solid #b7d5c7; }
.data-route .destination > span { color: #fff; background: var(--green); }
.data-route p, .data-route strong, .data-route small { display: block; margin: 0; }
.data-route strong { font-size: 11px; }
.data-route small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.data-route > i { color: #9ca1a7; font-style: normal; text-align: center; }
.data-route .secondary-action { min-height: 38px; white-space: nowrap; }
.import-notice { min-height: 54px; display: flex; align-items: center; gap: 14px; padding: 12px 15px; margin-bottom: 14px; color: #5b4820; background: #fff9ea; border-right: 4px solid var(--gold); }
.import-notice strong { color: #6e5315; white-space: nowrap; }
.import-notice span { font-size: 12px; }
.import-source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.import-source { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); overflow: hidden; }
.import-source > header { min-height: 82px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.import-source header p, .import-source header h3 { margin: 0; }
.import-source header p { color: var(--muted); font-size: 10px; }
.import-source header h3 { margin-top: 2px; color: var(--maroon); font-size: 18px; }
.source-code { width: 36px; height: 36px; display: grid; place-items: center; color: var(--maroon); background: var(--maroon-soft); border-radius: 50%; font: 700 11px Arial, sans-serif; }
.source-code.miqdam { color: #76550b; background: var(--gold-soft); }
.import-file-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 16px; }
.file-picker { min-height: 66px; display: flex; align-items: center; gap: 11px; padding: 9px 11px; border: 1px dashed #b7bcc2; border-radius: 5px; cursor: pointer; background: #fafafa; }
.file-picker:hover { border-color: var(--maroon); background: var(--maroon-soft); }
.file-symbol { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: #176a4b; background: #e9f5ef; border: 1px solid #b9d8c9; border-radius: 4px; font: 800 9px Arial, sans-serif; }
.file-picker strong, .file-picker small { display: block; }
.file-picker strong { font-size: 12px; }
.file-picker small { max-width: 220px; margin-top: 2px; color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-validate { min-width: 116px; }
.import-validate:disabled { cursor: not-allowed; color: #8b9096; background: #eceeef; }
.required-columns { padding: 0 16px 16px; }
.required-columns > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.required-columns > div { display: flex; flex-wrap: wrap; gap: 5px; }
.required-columns b { padding: 4px 7px; color: #535a63; background: #f2f3f4; border: 1px solid #e1e3e5; border-radius: 3px; font-size: 9px; font-weight: 600; }
.import-validation { margin: 0 16px 16px; padding: 12px; border: 1px solid var(--line); border-right: 4px solid var(--green); background: #fbfdfc; }
.import-validation[hidden] { display: none; }
.import-validation.invalid { border-right-color: var(--red); background: #fffafa; }
.validation-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.validation-head strong, .validation-head small { display: block; }
.validation-head strong { color: var(--green); font-size: 12px; }
.import-validation.invalid .validation-head strong { color: var(--red); }
.validation-head small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.raw-badge { flex: 0 0 auto; padding: 3px 6px; color: var(--blue); background: var(--blue-soft); border: 1px solid #bfd3e2; border-radius: 3px; font: 700 8px/1.5 Arial, sans-serif; }
.validation-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: #fff; }
.validation-metrics div { min-width: 0; padding: 7px 8px; border-left: 1px solid var(--line); }
.validation-metrics div:last-child { border-left: 0; }
.validation-metrics strong, .validation-metrics span { display: block; }
.validation-metrics strong { font: 700 13px/1.2 Arial, sans-serif; }
.validation-metrics span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.validation-section { margin-top: 10px; }
.validation-section > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.validation-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.validation-tags b { padding: 3px 6px; color: var(--green); background: var(--green-soft); border: 1px solid #b9d8c9; border-radius: 3px; font-size: 8px; }
.validation-tags b.extra { color: #535a63; background: #f2f3f4; border-color: #e1e3e5; }
.validation-errors { margin: 8px 0 0; padding: 8px 24px 8px 8px; color: var(--red); background: #fff; border: 1px solid #e3bcbc; font-size: 9px; }
.validation-hash { display: block; margin-top: 9px; color: var(--muted); font: 400 8px/1.5 Arial, sans-serif; overflow-wrap: anywhere; direction: ltr; text-align: left; }
.import-source > footer { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 11px 16px; background: #f7f7f7; border-top: 1px solid var(--line); font-size: 10px; }
.import-source footer span { color: var(--muted); }
.import-source footer strong { color: #30353b; }
.import-source footer time { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--muted); font: 400 9px Arial, sans-serif; }

html[dir="ltr"] .sidebar { border-left: 0; border-right: 1px solid var(--line); }
html[dir="ltr"] .nav-item { text-align: left; }
html[dir="ltr"] .nav-item.active { box-shadow: inset 3px 0 var(--maroon); }
html[dir="ltr"] .data-table { direction: ltr; }
html[dir="ltr"] .data-table th { text-align: left; }
html[dir="ltr"] .medical-roster .identity-col { right: auto; left: 0; box-shadow: 1px 0 #e4e6e8; }
html[dir="ltr"] .medical-roster .qid-col { right: auto; left: 180px; box-shadow: 1px 0 #e4e6e8; }
html[dir="ltr"] .import-notice { border-right: 0; border-left: 4px solid var(--gold); }
html[dir="ltr"] .dialog-notice { border-right: 0; border-left: 4px solid var(--gold); }
html[dir="ltr"] .user-overview > div { border-left: 0; border-right: 1px solid rgba(255,255,255,.18); }
html[dir="ltr"] .user-overview > div:last-child { border-right: 0; }
html[dir="ltr"] .import-validation { border-right: 1px solid var(--line); border-left: 4px solid var(--green); }
html[dir="ltr"] .import-validation.invalid { border-left-color: var(--red); }
html[dir="ltr"] .validation-metrics div { border-left: 0; border-right: 1px solid var(--line); }
html[dir="ltr"] .validation-metrics div:last-child { border-right: 0; }
html[dir="ltr"] .roles-three ul { padding: 12px 0 0 18px; }
html[dir="ltr"] .committee-exemption-groups fieldset + fieldset { border-right: 0; border-left: 1px solid var(--line); }
html[dir="ltr"] .role-workspace-banner { border-right: 1px solid var(--line); border-left: 4px solid var(--maroon); }
html[dir="ltr"] .role-workspace-banner.officer { border-left-color: var(--blue); }
html[dir="ltr"] .role-workspace-banner.admin { border-left-color: var(--gold); }
html[dir="ltr"] .import-result-banner { border-right: 1px solid #a8cdbb; border-left: 4px solid var(--green); }
html[dir="ltr"] .data-route > i { transform: rotate(180deg); }
html[dir="ltr"] .recall-notification > b { left: auto; right: -5px; }
html[dir="ltr"] .recall-totals > div { border-left: 0; border-right: 1px solid var(--line); }
html[dir="ltr"] .recall-totals > div:last-child { border-right: 0; }
.toast { position: fixed; left: 22px; bottom: 22px; background: #22272d; color: white; padding: 11px 15px; border-radius: 5px; box-shadow: var(--shadow); transform: translateY(20px); opacity: 0; pointer-events: none; transition: .2s ease; z-index: 30; }
.toast.show { transform: none; opacity: 1; }

.verification-page { min-height: 100dvh; background: #eef0f1; }
.verification-shell { width: min(100% - 28px, 620px); margin: 42px auto; }
.verification-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.verification-brand img { width: 58px; height: 58px; object-fit: contain; }
.verification-brand span { color: var(--maroon); font-size: 11px; font-weight: 700; }
.verification-brand h1 { font-size: 23px; margin-top: 2px; }
.verification-result { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.verification-status { display: flex; align-items: center; gap: 13px; padding: 22px; color: var(--green); background: var(--green-soft); border-bottom: 1px solid #bedbcd; }
.verification-status.invalid { color: var(--red); background: #faecec; border-color: #e7c3c3; }
.verification-status > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 23px; }
.verification-status.invalid > span { background: var(--red); }
.verification-status p, .verification-status h2, .verification-status small { margin: 0; }
.verification-status p, .verification-status small { font-size: 11px; }
.verification-status h2 { font-size: 22px; }
.verification-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0; padding: 10px 22px; }
.verification-fields div { padding: 13px 0; border-bottom: 1px solid #eceeef; }
.verification-fields dt { color: var(--muted); font-size: 11px; }
.verification-fields dd { margin: 3px 0 0; font-weight: 800; }
.verified-exemptions { margin: 10px 22px 18px; border: 1px solid var(--line); border-radius: 6px; padding: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.verified-exemptions > span { grid-column: 1 / -1; color: var(--maroon); font-size: 11px; font-weight: 700; }
.verified-exemptions div { border-right: 3px solid var(--maroon); padding-right: 9px; }
.verified-exemptions strong, .verified-exemptions small { display: block; }
.verified-exemptions small { color: var(--muted); font-size: 10px; }
.verification-privacy { margin: 0; padding: 12px 22px; color: var(--muted); background: #f7f7f7; border-top: 1px solid var(--line); font-size: 11px; }
.verification-footer { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 10px; padding: 12px 4px; }
.verification-footer bdi { font-family: Arial, sans-serif; }

@media (max-width: 1180px) {
  .workspace-grid { grid-template-columns: 168px minmax(0, 1fr); }
  .record-summary { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: 220px 1fr 1.3fr; }
  .summary-person { min-height: 100%; }
  .timeline { display: none; }
  .field-grid.four { grid-template-columns: repeat(2, 1fr); }
  .permission-grid { grid-template-columns: repeat(2, 1fr); }
  .department-grid { grid-template-columns: repeat(2, 1fr); }
  .user-toolbar { grid-template-columns: 1fr 1fr; }
  .workspace-grid.card-mode { grid-template-columns: 150px minmax(0, 1fr); }
  .workspace-grid.card-mode .card-preview-grid { grid-template-columns: minmax(280px, 360px); max-width: 360px; margin: auto; }
}

@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { position: static; min-height: 0; max-height: none; border-left: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 10px 16px; }
  .brand img { width: 38px; height: 38px; }
  .nav-list { display: flex; overflow-x: auto; padding: 7px 10px; direction: ltr; max-width: 100vw; }
  .nav-item { direction: rtl; }
  .nav-item { min-width: 172px; grid-template-columns: 28px 1fr auto; }
  .nav-item.active { box-shadow: inset 0 -3px var(--maroon); }
  html[dir="ltr"] .nav-item.active { box-shadow: inset 0 -3px var(--maroon); }
  .sidebar-foot { display: none; }
  .main-content { padding: 0 16px 30px; overflow-x: clip; }
  .topbar { min-height: 76px; }
  .status-band { align-items: stretch; flex-direction: column; }
  .session-metrics { min-width: 0; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .workspace-grid { grid-template-columns: 1fr; }
  .workspace-grid.card-mode { grid-template-columns: 1fr; }
  .stepper { position: static; display: flex; overflow-x: auto; direction: ltr; max-width: calc(100vw - 32px); }
  .step { direction: rtl; }
  .step { min-width: 155px; }
  .record-summary { grid-column: auto; display: block; position: static; }
  .record-summary dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .card-preview-grid { grid-template-columns: minmax(0, 360px); max-width: 360px; margin: auto; }
  .committee-layout { grid-template-columns: 1fr; }
  .import-source-grid { grid-template-columns: 1fr; }
  .dashboard-record-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .dashboard-record-actions > .primary-action { align-self: flex-end; }
  .qr-verification-data { grid-template-columns: 1fr; }
  .committee-exemption-groups { grid-template-columns: 1fr; }
  .data-route { grid-template-columns: 1fr 18px 1fr 18px 1fr; }
  .data-route .secondary-action { grid-column: 1 / -1; width: 100%; }
  .committee-exemption-groups fieldset + fieldset, html[dir="ltr"] .committee-exemption-groups fieldset + fieldset { border-right: 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 620px) {
  body { font-size: 14px; }
  input, select, textarea { font-size: 16px; }
  .topbar { align-items: flex-start; padding: 12px 0; }
  .topbar h1 { font-size: 20px; }
  .top-actions .primary-action { padding: 0 12px; }
  .status-band { padding: 18px; }
  .session-metrics { grid-template-columns: 1fr 1fr 1fr; }
  .session-metrics div { padding: 10px 5px; }
  .session-metrics span { font-size: 9px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .permission-grid, .roles-three, .department-grid { grid-template-columns: 1fr; }
  .user-overview { grid-template-columns: 1fr 1fr; }
  .user-overview > div:nth-child(2) { border-left: 0; }
  .user-overview > div:nth-child(n + 3) { border-top: 1px solid rgba(255,255,255,.18); }
  html[dir="ltr"] .user-overview > div:nth-child(2) { border-right: 0; }
  .admin-tabs { overflow-x: auto; }
  .admin-tabs button { flex: 0 0 auto; padding-inline: 13px; }
  .user-toolbar { grid-template-columns: 1fr; }
  .user-toolbar .search-field { width: 100%; }
  .field-grid.three { grid-template-columns: 1fr; }
  .dialog-head { padding: 11px 13px; }
  .dialog-head h2 { font-size: 16px; }
  .dialog-body { padding: 13px; }
  .dialog-notice { align-items: flex-start; flex-direction: column; gap: 3px; }
  .dialog-actions { padding: 9px 13px; }
  .import-file-row { grid-template-columns: 1fr; }
  .validation-metrics { grid-template-columns: 1fr 1fr; }
  .validation-metrics div:nth-child(2) { border-left: 0; }
  .validation-metrics div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  html[dir="ltr"] .validation-metrics div:nth-child(2) { border-right: 0; }
  .demo-import-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .demo-import-actions > * { width: 100%; }
  .data-route { grid-template-columns: 1fr; }
  .data-route > i { transform: rotate(-90deg); }
  html[dir="ltr"] .data-route > i { transform: rotate(90deg); }
  .import-result-banner { align-items: stretch; flex-direction: column; }
  .import-result-banner .primary-action { width: 100%; }
  .recall-alerts-head { align-items: stretch; flex-direction: column; }
  .recall-totals { grid-template-columns: repeat(3, 1fr); }
  .recall-item { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .recall-item .recall-reason { grid-column: 1 / -1; }
  .recall-item .link-action { grid-column: 1 / -1; width: 100%; border-top: 1px solid #eceeef; }
  .committee-classification, .committee-check-grid, .committee-term-row, .committee-decision-summary, .dual-approval { grid-template-columns: 1fr; }
  .committee-section-title { align-items: flex-start; flex-direction: column; gap: 4px; }
  .committee-section-title small { max-width: none; text-align: start; }
  .dual-approval article { grid-template-columns: 34px 1fr; }
  .dual-approval .approval-button { grid-column: 1 / -1; width: 100%; }
  .approval-gate { align-items: flex-start; flex-direction: column; }
  .import-validate { width: 100%; }
  .import-source > header { grid-template-columns: 38px 1fr; }
  .import-source > header > .status { grid-column: 2; justify-self: start; }
  .import-notice { align-items: flex-start; flex-direction: column; gap: 3px; }
  .metric { padding: 12px; }
  .metric strong { font-size: 22px; }
  .section-head { align-items: stretch; flex-direction: column; }
  .table-tools { flex-direction: column; }
  .search-field { min-width: 0; }
  .roster-pagination { align-items: stretch; flex-direction: column; }
  .roster-pagination > div { display: grid; grid-template-columns: 1fr auto 1fr; }
  .roster-pagination .secondary-action { min-width: 0; }
  .field-grid.two, .field-grid.four, .choice-grid, .approval-grid, .comparison, .members, .permission-grid { grid-template-columns: 1fr; }
  .form-step { padding: 15px; }
  .photo-upload { grid-template-columns: 52px 1fr; }
  .photo-upload button { grid-column: 1 / -1; }
  .exemption { grid-template-columns: 20px 1fr; }
  .exemption select { grid-column: 2; }
  .form-actions { align-items: stretch; gap: 7px; flex-direction: column-reverse; }
  .form-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
  .form-actions > button { width: 100%; }
  .record-summary dl { grid-template-columns: 1fr; }
  .final-summary { grid-template-columns: 1fr; }
  .final-summary button { grid-column: 1; grid-row: auto; }
  .card-preview-grid { width: 100%; }
  .workspace-grid.card-mode .form-step[data-step-panel="5"] { padding: 15px; }
  .card-format-bar { align-items: flex-start; flex-wrap: wrap; }
  .card-format-bar small { width: 100%; margin: 0; }
  .printer-profile { grid-template-columns: 1fr 1fr; }
  .printer-profile > div { border-bottom: 1px solid var(--line); }
  .printer-profile .printer-status { grid-column: 1 / -1; justify-self: start; margin: 9px 0; }
  .qr-verification-data dl { grid-template-columns: 1fr 1fr; }
  .card-top { grid-template-columns: 28px 1fr; }
  .card-top > span { display: none; }
  .card-body { padding: 7px 8px; gap: 6px; }
  .card-exemptions { gap: 3px 7px; padding: 3px 9px; }
  #view-dashboard .data-table-wrap { overflow: visible; border: 0; background: transparent; direction: rtl; }
  #view-dashboard .data-table { min-width: 0; display: block; direction: rtl; }
  #view-dashboard .data-table thead { display: none; }
  #view-dashboard .data-table tbody { display: grid; gap: 8px; }
  #view-dashboard .data-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
  #view-dashboard .data-table td { border: 0; border-bottom: 1px solid #eceeef; padding: 9px 0; min-width: 0; max-width: none; white-space: normal; position: static; background: transparent; box-shadow: none; }
  #view-dashboard .data-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 10px; margin-bottom: 2px; }
  #view-dashboard .data-table .mobile-primary { grid-column: 1 / -1; padding-top: 2px; }
  #view-dashboard .data-table .mobile-primary strong { color: var(--maroon); font-size: 16px; }
  #view-dashboard .data-table .wide-cell { grid-column: 1 / -1; }
  #view-dashboard .data-table .action-cell { grid-column: 1 / -1; border-bottom: 0; padding-bottom: 0; }
  #view-dashboard .data-table .action-cell::before { display: none; }
  #view-dashboard .data-table .action-cell button { width: 100%; border: 1px solid #c8a9b6; border-radius: 5px; }
  .verification-shell { margin: 22px auto; }
  .verification-brand h1 { font-size: 19px; }
  .verification-fields { grid-template-columns: 1fr; }
}

@media print {
  @page { size: 85.6mm 53.98mm; margin: 0; }
  html, body { width: 85.6mm; height: 107.96mm !important; margin: 0; padding: 0; background: #fff; overflow: hidden !important; }
  .sidebar, .topbar, .view:not(#view-intake), .stepper, .form-head,
  .form-step:not([data-step-panel="5"]), .card-format-bar, .printer-profile,
  .qr-verification-data, .final-summary, .form-actions { display: none !important; }
  .app-shell, .main-content, #view-intake, .workspace-grid, .form-surface,
  .form-step[data-step-panel="5"] { display: block !important; width: 85.6mm !important; min-width: 0 !important; min-height: 0 !important; height: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: #fff !important; overflow: visible !important; }
  #view-intake { animation: none !important; opacity: 1 !important; transform: none !important; }
  #card-print-area { position: static; display: block; width: 85.6mm; margin: 0; padding: 0; }
  #card-print-area, #card-print-area * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .id-card { width: 85.6mm; height: 53.98mm; aspect-ratio: auto; margin: 0; border: 0; border-radius: 0; box-shadow: none; break-inside: avoid; page-break-inside: avoid; }
  .card-back { break-before: page; page-break-before: always; }
}

/* Login page (login.html) - separate page from the app shell, reusing the
   same design tokens/components as index.html. */
.login-shell { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 26px; }
.login-brand { display: flex; gap: 11px; align-items: center; margin-bottom: 18px; }
.login-brand img { width: 42px; height: 42px; object-fit: contain; }
.login-brand strong, .login-brand span { display: block; }
.login-brand strong { color: var(--maroon); font-size: 16px; }
.login-brand span { color: var(--muted); font-size: 11px; margin-top: 1px; }
.login-card h1 { margin: 0 0 16px; font-size: 19px; }
.login-tabs { display: flex; gap: 6px; margin-bottom: 18px; background: var(--canvas); border-radius: 6px; padding: 4px; }
.login-tabs button { flex: 1; min-height: 38px; border: 0; background: transparent; border-radius: 5px; font-size: 12px; font-weight: 700; color: var(--muted); }
.login-tabs button.active { background: #fff; color: var(--maroon); box-shadow: 0 1px 4px rgba(28,22,24,.12); }
.login-panel { display: none; }
.login-panel.active { display: block; }
.login-panel label { display: block; margin-bottom: 14px; }
.login-error { margin: -4px 0 14px; color: var(--red); font-size: 12px; }
.login-hint { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.login-actions-row { display: flex; gap: 8px; }
.login-actions-row .secondary-action { flex: 0 0 auto; }
.login-actions-row .primary-action { flex: 1; }
.login-card .primary-action { width: 100%; }
