.record-empty { display: none; padding: 48px 20px; }
.record-empty h1 { font-size: 24px; margin-bottom: 10px; }
.record-empty p { font-size: 15px; color: var(--text-secondary); }
.awaiting-record .record-empty { display: block; }
.awaiting-record .app-shell .page, .awaiting-record .progress-indicator { display: none !important; }
.autofill-status { font-size: 13px; color: var(--text-secondary); margin: 10px 0; }
.autofill-status:empty { display: none; }
.awaiting-record .sidebar, .awaiting-record .mobile-menu-toggle,
.awaiting-record .menu-backdrop,
.awaiting-record #autofill-status { display: none !important; }
.awaiting-record .app-shell { margin-left: 0 !important; padding-left: 0 !important; background: #fff; }
.awaiting-record .app-shell-inner { background: transparent; box-shadow: none; border: 0; }
.record-empty { max-width: 480px; margin: clamp(24px, 10vh, 100px) auto; padding: 24px; }
.record-empty .access-brand { color: #514d8c; font-size: 13px; font-weight: 700; letter-spacing: .15em; }
.record-empty h1 { font-size: clamp(28px, 4vw, 36px); line-height: 1.2; margin: 18px 0 14px; }
.record-empty p { line-height: 1.6; }
#access-form { margin-top: 32px; }
#access-form label { display: block; font-weight: 600; margin-bottom: 10px; }
#appointment-access, #test-date-access { box-sizing: border-box; width: 100%; min-width: 0; padding: 16px; border: 1px solid #bcbad3; border-radius: 10px; background: #fff; color: #242333; font: inherit; font-size: 18px; }
#test-date-access { margin-bottom: 24px; }
#appointment-access:focus-visible, #test-date-access:focus-visible, #access-submit:focus-visible { outline: 3px solid #7771c4; outline-offset: 3px; }
#appointment-access[aria-invalid="true"], #test-date-access[aria-invalid="true"] { border-color: #ad3030; }
#access-help { font-size: 13px; margin: 10px 0 24px; }
#access-submit { display: flex; justify-content: space-between; width: 100%; padding: 16px 20px; border: 0; border-radius: 10px; background: #514d8c; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
#access-submit:disabled { opacity: .65; cursor: wait; }
#access-status { min-height: 24px; }
.access-preview { margin-top: 12px; padding-top: 24px; border-top: 1px solid #dcd9ed; }
#access-preview { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 14px 20px; border: 1px solid #bcb5e2; border-radius: 10px; background: #eeeafa; color: #423c78; font: inherit; font-weight: 600; cursor: pointer; }
#access-preview:hover { background: #e1daf5; }
#access-preview:focus-visible { outline: 3px solid #7771c4; outline-offset: 3px; }
#access-preview:disabled { opacity: .65; cursor: wait; }
#access-preview-help { margin: 8px 0 0; font-size: 13px; }
.pref-dark #access-preview { background: #35324e; border-color: #7771a6; color: #eeeafa; }
.pref-dark #access-preview:hover { background: #454063; }
.pref-dark.awaiting-record .app-shell { background: #171622; }
.pref-dark #appointment-access, .pref-dark #test-date-access { background: #242333; color: #fff; color-scheme: dark; }
.pref-dark .access-brand { color: #c8c3ff; }
.record-viewer[hidden] { display: none; }
html:has(body.external-record) { zoom: 1 !important; }
body.external-record { padding: 0; margin: 0; overflow: hidden; background: #fff; }
.external-record > .header { display: none; }
.external-record .sidebar, .external-record .mobile-menu-toggle,
.external-record .menu-backdrop, .external-record .app-shell .wrap,
.external-record .app-shell .page, .external-record .progress-indicator,
.external-record #autofill-status, .external-record #score-data-status,
.external-record .record-viewer-help { display: none !important; }
.external-record .app-shell { margin: 0 !important; padding: 0 !important; }
.external-record .app-shell-inner { width: 100%; max-width: none; padding: 0; border: 0; border-radius: 0; box-shadow: none; box-sizing: border-box; }
.external-record #record-viewer { position: fixed; inset: 0; margin: 0; padding: 0; background: #fff; z-index: 100; }
.external-record #record-viewer-frame { width: 100%; height: 100%; min-height: 0; }
#record-viewer-frame { display: block; width: 100%; height: 80vh; height: 80dvh; min-height: 480px; border: 0; background: #fff; }
.record-viewer-help { padding: 12px 0; font-size: 13px; color: var(--text-secondary); }
.record-viewer-help p { margin: 4px 0; }
#record-viewer-status:empty { display: none; }
#record-viewer-retry { background: transparent; border: 0; padding: 4px; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
#record-viewer-retry:focus-visible { outline: 3px solid #7771c4; outline-offset: 3px; }
