:root {
  --ink: #14272d;
  --muted: #61747a;
  --blue: #1f648b;
  --blue2: #0f7c88;
  --pale: #edf7f7;
  --line: #d9e5e7;
  --danger: #a83434;
  --warning: #8a5d00;
  --ok: #257052;
  --shadow: 0 18px 45px rgba(26, 60, 70, .11);
}

* { box-sizing: border-box; }
html { font-family: Inter, "Segoe UI", Arial, sans-serif; background: #f3f8f8; color: var(--ink); }
body { margin: 0; min-height: 100vh; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 225px minmax(0, 1fr); }
.sidebar { background: #123b47; color: #fff; padding: 28px 20px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; gap: 11px; align-items: center; margin-bottom: 32px; }
.brand-mark { width: 40px; height: 40px; border-radius: 14px; background: linear-gradient(145deg, #63cfca, #e1fbf9); color: #123b47; font-weight: 900; display: grid; place-items: center; }
.brand strong, .brand small { display: block; }
.brand small, .user-card small { color: #bcd5d9; }
.nav a { display: block; color: #d8edf0; padding: 11px 13px; border-radius: 10px; margin: 4px 0; }
.nav a:hover, .nav a.active { background: rgba(255,255,255,.11); text-decoration: none; color: #fff; }
.user-card { position: absolute; bottom: 25px; left: 20px; right: 20px; border-top: 1px solid rgba(255,255,255,.17); padding-top: 18px; }
.main { padding: 38px 32px; max-width: 1780px; width: 100%; min-width: 0; }

.topline, .case-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.topline { margin-bottom: 26px; }
.topline h1 { margin: 0 0 6px; font-size: 32px; line-height: 1.2; }
.case-head { align-items: center; margin-bottom: 14px; }
.case-head h1 { margin: 22px 0 8px; font-size: clamp(30px, 3vw, 40px); line-height: 1.16; letter-spacing: -.02em; }
.case-head h2 { margin: 0 0 5px; }
.subtitle { color: var(--muted); margin: 0; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 25px rgba(31,79,88,.055); padding: 22px; margin-bottom: 20px; }
.card h2, .card h3 { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.col-2 { grid-column: span 2; }.col-3 { grid-column: span 3; }.col-4 { grid-column: span 4; }.col-5 { grid-column: span 5; }.col-6 { grid-column: span 6; }.col-7 { grid-column: span 7; }.col-8 { grid-column: span 8; }.col-12 { grid-column: span 12; }
.stat { padding: 18px; }.stat strong { font-size: 28px; display: block; }.stat span { color: var(--muted); font-size: 13px; }

.toolbar, .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { border: 0; border-radius: 10px; padding: 10px 15px; font-weight: 650; cursor: pointer; background: #e7eff1; color: #26464d; display: inline-block; }
.btn:hover { filter: brightness(.97); text-decoration: none; }
.btn-primary { background: var(--blue2); color: #fff; }.btn-danger { background: #fbe9e9; color: var(--danger); }.btn-outline { background: #fff; border: 1px solid var(--line); }.btn-small { padding: 7px 10px; font-size: 13px; }
.btn-whatsapp { background: #168a49; color: #fff; padding: 13px 18px; font-size: 16px; }.btn:disabled { cursor: not-allowed; opacity: .5; filter: grayscale(.25); }

.field { display: block; margin-bottom: 15px; }
.field > span { font-size: 13px; font-weight: 700; display: block; margin-bottom: 6px; }
.field input, .field textarea, .field select, .toolbar input { width: 100%; border: 1px solid #c8d8db; border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.compact-field { margin: 0; min-width: 240px; }

.status { display: inline-flex; border-radius: 99px; padding: 5px 10px; font-size: 12px; font-weight: 800; letter-spacing: .025em; background: #e7eff1; color: #3c5b62; white-space: nowrap; }
.status.APPROVED, .status.PUBLISHED, .status.SENT, .status.READY_TO_GENERATE { background: #e2f5ec; color: var(--ok); }
.status.FAILED, .status.CANCELLED { background: #fbe9e9; color: var(--danger); }
.status.EXTRACTION_REVIEW, .status.MATCH_REVIEW, .status.DRAFT_REVIEW { background: #fff0cf; color: var(--warning); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: #526970; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; background: #f5f9f9; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }.table-scroll { overflow: auto; }

.notice { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; background: #e9f5ff; color: #215778; }
.notice.error { background: #fbe9e9; color: #8d2929; }.notice.warning { background: #fff4d9; color: #795400; }.notice.ok { background: #e2f5ec; color: #24664d; }
.warning-summary { display: block; }.warning-summary:hover { text-decoration: none; filter: brightness(.98); }
.mono { font-family: Consolas, monospace; font-size: 12px; }.muted { color: var(--muted); }
.password-requirements { display: grid; gap: 6px; margin: -2px 0 16px; padding: 13px 15px; border: 1px solid #cfe0e4; border-radius: 12px; background: #f5fafb; color: #38575f; font-size: 14px; }
.password-requirements span::before { content: '✓'; margin-right: 8px; color: var(--ok); font-weight: 900; }

.app-toast-region { position: fixed; top: 22px; right: 22px; z-index: 1200; width: min(430px, calc(100vw - 32px)); display: grid; gap: 12px; pointer-events: none; }
.app-toast { --toast-accent: var(--blue2); pointer-events: auto; display: grid; grid-template-columns: 36px minmax(0,1fr) 30px; gap: 12px; align-items: start; padding: 15px 14px; border: 1px solid rgba(20,39,45,.1); border-left: 5px solid var(--toast-accent); border-radius: 15px; background: rgba(255,255,255,.98); color: var(--ink); box-shadow: 0 16px 45px rgba(17,54,65,.2); backdrop-filter: blur(12px); animation: app-toast-in .22s ease-out both; }
.app-toast[data-toast-type="success"] { --toast-accent: #2e8a64; }.app-toast[data-toast-type="warning"] { --toast-accent: #c18a1a; }.app-toast[data-toast-type="error"] { --toast-accent: #b84848; }
.app-toast__icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--toast-accent) 13%, white); color: var(--toast-accent); font-size: 17px; font-weight: 900; }
.app-toast__copy { min-width: 0; }.app-toast__copy strong { display: block; margin: 1px 0 4px; font-size: 14px; }.app-toast__copy p { margin: 0; color: #425a61; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.app-toast__close { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: #6b7e83; cursor: pointer; font-size: 22px; line-height: 1; }.app-toast__close:hover { background: #edf3f4; color: var(--ink); }
.app-toast.is-leaving { animation: app-toast-out .18s ease-in both; }
@keyframes app-toast-in { from { opacity: 0; transform: translate3d(18px,-6px,0) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes app-toast-out { to { opacity: 0; transform: translate3d(20px,0,0) scale(.98); } }

.app-confirm-dialog { width: min(520px, calc(100vw - 32px)); border: 0; border-radius: 20px; padding: 26px; color: var(--ink); background: #fff; box-shadow: 0 28px 90px rgba(8,34,43,.32); }
.app-confirm-dialog::backdrop { background: rgba(11,39,47,.55); backdrop-filter: blur(4px); }
.app-confirm-dialog[open] { display: grid; grid-template-columns: 50px minmax(0,1fr); gap: 16px 18px; animation: app-dialog-in .18s ease-out both; }
.app-confirm-dialog__icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg,#d8f3f1,#edf8f8); color: var(--blue2); font-size: 23px; font-weight: 900; }
.app-confirm-dialog__content h2 { margin: 2px 0 8px; font-size: 22px; }.app-confirm-dialog__content p { margin: 0; color: #536970; line-height: 1.55; }
.app-confirm-dialog__actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
@keyframes app-dialog-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

input.is-invalid, textarea.is-invalid, select.is-invalid { border-color: #b84848 !important; box-shadow: 0 0 0 3px rgba(184,72,72,.14) !important; outline: none; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 20px; overflow-x: auto; }
.tabs a { padding: 11px 12px; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--blue); border-color: var(--blue); font-weight: 700; }

.verification-workspace { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 18px; align-items: start; }
.verification-panel { min-width: 0; }
.review-count { background: #fff0cf; color: var(--warning); border-radius: 99px; padding: 7px 11px; font-size: 13px; font-weight: 800; }
.verification-card { background: #fff; border: 1px solid var(--line); border-left: 5px solid #dca72d; border-radius: 16px; padding: 18px; margin-bottom: 16px; box-shadow: 0 7px 20px rgba(31,79,88,.05); }
.verification-card.is-correct { border-left-color: #43a377; }.verification-card.is-incorrect { border-left-color: #b74d4d; }
.verification-card-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center; margin-bottom: 14px; }
.verification-card-head h3 { margin: 0; font-size: 19px; line-height: 1.35; }
.step-number { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #edf7f7; color: var(--blue2); font-weight: 800; }
.pdf-page-button { border: 0; background: transparent; color: var(--blue); cursor: pointer; font-weight: 700; }
.verification-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.decision-box { position: relative; }
.decision-box input { position: absolute; opacity: 0; }
.decision-box span { display: block; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: #fff; }
.decision-box strong, .decision-box small { display: block; }.decision-box small { color: var(--muted); margin-top: 3px; }
.decision-box.correct input:checked + span { border-color: #43a377; background: #eaf8f0; color: #1d6746; }
.decision-box.incorrect input:checked + span { border-color: #b74d4d; background: #fff0f0; color: #8b2c2c; }
.result-fields { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr 1fr; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 12px; }
.result-fields:disabled { opacity: 1; }.result-fields:disabled input, .result-fields:disabled select { color: var(--ink); background: #f8fbfb; opacity: 1; -webkit-text-fill-color: var(--ink); }
.result-fields .field { margin: 0; }.exclude-result { grid-column: 1 / -1; font-size: 13px; color: var(--danger); }
.result-context { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; margin-bottom: 10px; text-transform: capitalize; }
.remarks-field { margin-bottom: 12px; }.current-results { box-shadow: none; }
.verification-batch-form { display: block; }
.verification-batch-footer { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 18px 0 22px; padding: 15px 17px; border: 1px solid #9fc4c8; border-radius: 14px; background: rgba(255,255,255,.97); box-shadow: 0 8px 26px rgba(20,67,75,.16); backdrop-filter: blur(7px); }
.verification-batch-footer > div { display: grid; gap: 3px; }.verification-batch-footer span { color: var(--muted); font-size: 12px; }.verification-batch-footer [data-verification-progress].complete { color: var(--ok); }
.source-pdf-panel, .report-preview-panel { background: #d9e1e2; border: 1px solid #cbd9db; border-radius: 16px; overflow: hidden; min-width: 0; }
.source-pdf-panel { position: sticky; top: 18px; height: calc(100vh - 36px); }
.source-pdf-head { min-height: 48px; padding: 12px 15px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.source-pdf-head > div { display: grid; gap: 2px; }.source-pdf-head span { color: var(--muted); font-size: 12px; }
.source-pdf-pages { height: calc(100% - 49px); overflow: auto; padding: 14px; background: #555; scroll-behavior: smooth; }
.source-pdf-pages figure { margin: 0 0 16px; background: #fff; border: 3px solid transparent; border-radius: 4px; overflow: hidden; box-shadow: 0 5px 18px rgba(0,0,0,.28); scroll-margin-top: 12px; transition: border-color .2s ease; }.source-pdf-pages figure.is-target { border-color: #3bd2c5; }
.source-pdf-pages figure:focus-visible { outline: 3px solid #3bd2c5; outline-offset: 3px; }
.source-pdf-pages img { display: block; width: 100%; height: auto; background: #fff; }.source-pdf-pages figcaption { padding: 7px 10px; color: #53676c; background: #fff; border-top: 1px solid var(--line); font-size: 12px; text-align: center; }
.source-preview-error { margin: 18px; padding: 14px; border-radius: 10px; background: #fff4d9; color: #6f4d00; }

.circles-import { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 22px; align-items: end; background: #f3f8fa; border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 20px 0; }
.circles-import h3 { margin: 0 0 6px; }.circles-import p { margin: 5px 0; }.tls-warning { color: #8a5d00; font-size: 13px; }
.circles-search-form { display: grid; grid-template-columns: repeat(3,minmax(145px,1fr)) auto; gap: 10px; align-items: end; }.circles-search-form .field { margin: 0; }
.candidate-list { margin: 18px 0; }.candidate-card { display: flex; justify-content: space-between; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 9px; }.candidate-card span { display: block; color: var(--muted); margin-top: 3px; }
.required-details-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; margin-top: 22px; }
.clinical-context { border: 1px solid var(--line); border-radius: 12px; margin: 4px 0 18px; background: #fafcfc; }.clinical-context summary { cursor: pointer; font-weight: 750; padding: 14px; }.context-grid { padding: 0 14px 14px; }

.report-workspace { display: grid; grid-template-columns: minmax(430px, .9fr) minmax(480px, 1.1fr); gap: 18px; align-items: start; }
.report-editor-card { min-width: 0; }.report-preview-panel { position: sticky; top: 18px; }
.live-preview-head { align-items: center; }.preview-head-copy { display: grid; gap: 3px; min-width: 0; }.preview-head-copy span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.live-preview-viewport { height: calc(100vh - 86px); min-height: 720px; overflow: auto; padding: 24px; background: #596366; }
[data-live-preview-source] { display: none !important; }
.live-preview-pages { display: grid; gap: 24px; justify-items: center; width: 100%; }
.live-preview-page-slot { position: relative; width: 794px; height: 1123px; flex: none; }
.live-preview-sheet { position: absolute; inset: 0 auto auto 0; width: 794px; height: 1123px; min-height: 0; overflow: hidden; transform: scale(var(--live-preview-scale, 1)); transform-origin: top left; background: #fff url('../headed-paper-page.png') center top / 100% 100% no-repeat; box-shadow: 0 8px 28px rgba(0,0,0,.28); color: #111; }
.live-preview-content { width: 100%; height: 100%; min-height: 0; padding: 28.5714% 10% 11.9048%; overflow: hidden; overflow-wrap: anywhere; }
.live-preview-page-flow { height: 100%; min-height: 0; overflow: hidden; }
.live-preview-sheet h1 { color: #1f648b; line-height: 1.25; text-align: center; margin: 0 0 26.46px; }
.live-preview-patient-name { font-weight: 700; margin: 0 0 22.68px; }
.live-preview-sheet h2 { color: #14272d; font-weight: 700; margin: 22.68px 0 9.45px; line-height: 1.3; }.live-preview-sheet h3, .live-preview-sheet h4 { font-weight: 700; }
.live-preview-sheet p { margin: 0 0 17.01px; white-space: normal; }.live-preview-sheet li { margin: 0 0 7.56px; }.live-preview-sheet ul, .live-preview-sheet ol { margin-top: 0; margin-bottom: 17.01px; padding-inline-start: 26.46px; }
.live-preview-sheet font[size="1"] { font-size: 12px; }.live-preview-sheet font[size="2"] { font-size: 14px; }.live-preview-sheet font[size="3"] { font-size: 16px; }.live-preview-sheet font[size="4"] { font-size: 18px; }.live-preview-sheet font[size="5"] { font-size: 20px; }.live-preview-sheet font[size="6"] { font-size: 24px; }.live-preview-sheet font[size="7"] { font-size: 30px; }
.live-preview-viewport[data-profile="AR_COMPREHENSIVE"] .live-preview-content { direction: rtl; text-align: right; font-family: Arial,Tahoma,sans-serif; font-size: 17.67px; line-height: 1.5; }.live-preview-viewport[data-profile="AR_COMPREHENSIVE"] h1 { font-family: Arial,Tahoma,sans-serif; font-size: 32.33px; }.live-preview-viewport[data-profile="AR_COMPREHENSIVE"] .live-preview-patient-name { font-size: 20.33px; }.live-preview-viewport[data-profile="AR_COMPREHENSIVE"] h2 { font-size: 21.67px; }
.live-preview-viewport[data-profile="AR_PARENT_EXPLANATION"] .live-preview-content { direction: rtl; text-align: right; font-family:"Times New Roman",Tahoma,Arial,sans-serif; font-size: 27px; line-height: 1.45; }.live-preview-viewport[data-profile="AR_PARENT_EXPLANATION"] h1 { font-family: Andalus,Tahoma,Arial,sans-serif; font-size: 37.67px; }.live-preview-viewport[data-profile="AR_PARENT_EXPLANATION"] .live-preview-patient-name { font-size: 24.33px; }.live-preview-viewport[data-profile="AR_PARENT_EXPLANATION"] h2 { font-size: 27px; }
.live-preview-viewport[data-profile="AR_SIMPLE_CBC"] .live-preview-content { direction: rtl; text-align: right; font-family: Arial,Tahoma,sans-serif; font-size: 24.33px; line-height: 1.45; }.live-preview-viewport[data-profile="AR_SIMPLE_CBC"] h1 { font-family: Calibri,Tahoma,Arial,sans-serif; font-size: 29.67px; }.live-preview-viewport[data-profile="AR_SIMPLE_CBC"] .live-preview-patient-name { font-size: 21.67px; }.live-preview-viewport[data-profile="AR_SIMPLE_CBC"] h2 { font-size: 24.33px; }
.live-preview-viewport[data-profile="EN_SIMPLE"] .live-preview-content { direction: ltr; text-align: left; font-family: Arial,Tahoma,sans-serif; font-size: 23px; line-height: 1.45; }.live-preview-viewport[data-profile="EN_SIMPLE"] h1 { font-family: Arial,Tahoma,sans-serif; font-size: 32.33px; }.live-preview-viewport[data-profile="EN_SIMPLE"] .live-preview-patient-name { font-size: 23px; }.live-preview-viewport[data-profile="EN_SIMPLE"] h2 { font-size: 23px; }
.live-preview-viewport[data-profile="BILINGUAL"] .live-preview-content { direction: ltr; text-align: left; font-family: Arial,Tahoma,sans-serif; font-size: 20.33px; line-height: 1.45; }.live-preview-viewport[data-profile="BILINGUAL"] h1 { font-family: Arial,Tahoma,sans-serif; font-size: 32.33px; }.live-preview-viewport[data-profile="BILINGUAL"] .live-preview-patient-name { font-size: 21.67px; }.live-preview-viewport[data-profile="BILINGUAL"] h2 { font-size: 21.67px; }
.preview-empty { min-height: 600px; display: grid; place-items: center; color: var(--muted); }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 7px; border: 1px solid #bfd1d5; border-bottom: 0; border-radius: 12px 12px 0 0; padding: 8px; background: #f4f8f8; }
.editor-toolbar button, .editor-toolbar select { border: 1px solid #c8d8db; background: #fff; border-radius: 7px; min-height: 34px; padding: 5px 9px; cursor: pointer; }
.rich-report-editor { min-height: 560px; max-height: 68vh; overflow: auto; border: 1px solid #bfd1d5; border-radius: 0 0 12px 12px; padding: 18px; background: #fff; font-size: 17px; line-height: 1.65; outline: none; text-align: left; }
.rich-report-editor:focus { border-color: var(--blue2); box-shadow: 0 0 0 3px rgba(15,124,136,.1); }.rich-report-editor.is-rtl { direction: rtl; text-align: right; font-family: Tahoma, Arial, sans-serif; }.rich-report-editor h2 { font-size: 21px; font-weight: 800; margin: 24px 0 8px; }.rich-report-editor p { margin: 0 0 14px; }

.clinician-tab { max-width: 1150px; }.clinician-document { font-size: 17px; line-height: 1.68; }.clinician-document > section { margin: 0 0 26px; }.clinician-document h2 { font-size: 21px; font-weight: 800; color: #173d50; margin: 0 0 10px; }.clinician-document h3 { font-size: 19px; font-weight: 800; }.clinician-document h4 { font-size: 17px; margin-bottom: 6px; }.clinician-document li { margin-bottom: 7px; }.differential { background: #f5f9fa; border: 1px solid var(--line); border-left: 4px solid var(--blue2); border-radius: 12px; padding: 15px 17px; margin: 12px 0; }
.whatsapp-delivery { border-left: 6px solid #168a49; }.whatsapp-delivery .case-head { margin-bottom: 18px; }
.clinical-intake-card { border-top: 5px solid var(--blue2); }.clinical-intake-card > .notice { margin-bottom: 18px; }
.verified-identity-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin: 0 0 18px; }.verified-identity-strip > div { display: grid; gap: 3px; background: #eef6f7; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }.verified-identity-strip span { color: var(--muted); font-size: 12px; }.verified-identity-strip strong { overflow-wrap: anywhere; }
.clinical-intake-form details { border: 1px solid var(--line); border-radius: 12px; background: #fafcfc; margin: 14px 0; }.clinical-intake-form summary { cursor: pointer; font-weight: 800; color: #173d50; padding: 14px 16px; }.clinical-intake-form textarea { min-height: 92px; }.clinical-intake-grid { margin-top: 4px; }.clinical-generate-action { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.clinical-shared-identity { border: 1px solid #cbdadd; background: rgba(244,248,248,.85); border-radius: 8px; padding: 10px 12px; margin: 0 0 18px; }.clinical-shared-identity p { margin: 0; }.clinical-delivery-card { margin-top: 18px; border-left: 6px solid #168a49; }

.audit { max-height: 520px; overflow: auto; }.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 15% 20%,#d6f5f1,transparent 32%),radial-gradient(circle at 90% 80%,#d8e9f3,transparent 35%),#f3f8f8; }.login-card { width: min(440px,100%); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: var(--shadow); }.login-card h1 { margin-bottom: 6px; }.login-card .brand-mark { width: 54px; height: 54px; margin-bottom: 20px; }.file-drop { border: 2px dashed #b9ced1; border-radius: 14px; padding: 18px; background: #f8fbfb; }.inline-form { display: inline; }.readiness { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }.readiness div { padding: 8px 0; border-bottom: 1px solid var(--line); }.ready { color: var(--ok); font-weight: 700; }.not-ready { color: var(--danger); font-weight: 700; }

@media (max-width: 1180px) {
  .verification-workspace, .report-workspace { grid-template-columns: 1fr; }
  .source-pdf-panel, .report-preview-panel { position: relative; top: auto; }.source-pdf-panel { height: 80vh; }.report-preview-panel { height: auto; }
  .live-preview-viewport { height: 80vh; min-height: 600px; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }.sidebar { height: auto; position: relative; }.user-card { position: static; margin-top: 25px; }.main { padding: 28px 20px; }.col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }.circles-import { grid-template-columns: 1fr; }.circles-search-form { grid-template-columns: 1fr 1fr; }.required-details-grid, .verified-identity-strip { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .main { padding: 20px 12px; }.topline, .case-head { display: block; }.case-head h1 { margin-top: 18px; font-size: 30px; }.card { padding: 16px; }.sidebar { padding: 20px; }.grid { display: block; }.grid > * { margin-bottom: 14px; }.verification-card-head { grid-template-columns: auto 1fr; }.pdf-page-button { grid-column: 2; justify-self: start; }.verification-choices { grid-template-columns: 1fr; }.result-fields { grid-template-columns: 1fr 1fr; }.result-name, .result-range, .exclude-result { grid-column: 1 / -1; }.verification-batch-footer { position: static; display: grid; }.source-pdf-panel { height: 70vh; }.candidate-card { display: block; }.candidate-card form { margin-top: 12px; }.circles-search-form { grid-template-columns: 1fr; }.app-toast-region { top: 12px; right: 16px; }.app-confirm-dialog { padding: 20px; }.app-confirm-dialog[open] { grid-template-columns: 42px minmax(0,1fr); gap: 13px; }.app-confirm-dialog__icon { width: 40px; height: 40px; border-radius: 13px; }.app-confirm-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; }.app-confirm-dialog__actions .btn { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .app-toast, .app-toast.is-leaving, .app-confirm-dialog[open] { animation: none; }
}
