/* Nova Vault: calm, clinical. One accent, red only for STOP and allergies. */
:root {
  --accent: #0F6E6E;
  --accent-dark: #0B5555;
  --accent-soft: #E3F1F1;
  --red: #B42318;
  --red-soft: #FBEAE8;
  --amber: #B54708;
  --amber-soft: #FDF0E4;
  --grey: #5B6470;
  --grey-soft: #EEF0F3;
  --ink: #16202A;
  --muted: #5B6470;
  --line: #D9DEE4;
  --bg: #F5F7F9;
  --card: #FFFFFF;
  --focus: #0F6E6E;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 32, 42, 0.06), 0 4px 14px rgba(16, 32, 42, 0.05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tap: 44px;
  --nav-w: 220px;
  --topbar-h: 56px;
  --bottombar-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #3FA3A3;
    --accent-dark: #2E8484;
    --accent-soft: #10302F;
    --red: #F08A80;
    --red-soft: #3A1714;
    --amber: #F0A860;
    --amber-soft: #3A2410;
    --grey: #A7B0BA;
    --grey-soft: #2A323B;
    --ink: #EEF2F5;
    --muted: #A7B0BA;
    --line: #35404A;
    --bg: #0F151B;
    --card: #182028;
    --shadow: 0 1px 2px rgba(0,0,0,0.4);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.45; min-height: 100vh; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.2; font-weight: 650; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .75rem; }
a { color: var(--accent); }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; background: var(--card); padding: 8px; z-index: 50; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.red { color: var(--red); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 1rem; }
.mb { margin-bottom: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: .75rem; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.grid3 { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 700px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 1fr 1fr 1fr; } }

/* Layout */
.app { min-height: 100vh; }
.topbar { position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h); background: var(--card); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; z-index: 20; padding-top: env(safe-area-inset-top); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 650; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: -.5px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.whoami { color: var(--muted); font-size: .9rem; }
.sidenav { position: fixed; left: 0; top: var(--topbar-h); bottom: 0; width: var(--nav-w); background: var(--card); border-right: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 4px; z-index: 15; }
.sidenav a { display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 0 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; }
.sidenav a:hover { background: var(--grey-soft); }
.sidenav a.active { background: var(--accent-soft); color: var(--accent-dark); }
.nav-ico { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--grey-soft); font-size: .8rem; font-weight: 700; color: var(--muted); }
.sidenav a.active .nav-ico { background: var(--accent); color: #fff; }
.view { padding: calc(var(--topbar-h) + 20px) 24px 40px calc(var(--nav-w) + 24px); max-width: 1240px; }
body.nonav .view { padding: 24px 16px 40px; }
body.client-mode .topbar, body.client-mode .sidenav, body.client-mode .staff-chrome, body.client-mode .toasts { display: none !important; }
body.client-mode .card.client-host { border: 0; box-shadow: none; padding: 0; }
body.client-mode .view { padding: 16px; max-width: 900px; margin: 0 auto; font-size: 1.15rem; }
body.client-mode { background: var(--card); }

@media (max-width: 759px) {
  .sidenav { top: auto; bottom: 0; right: 0; width: auto; height: var(--bottombar-h); flex-direction: row; justify-content: space-around; border-right: 0; border-top: 1px solid var(--line); padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); }
  .sidenav a { flex-direction: column; gap: 2px; font-size: .72rem; padding: 4px 6px; min-width: 64px; justify-content: center; }
  .nav-ico { width: 26px; height: 26px; }
  .view { padding: calc(var(--topbar-h) + 14px) 16px calc(var(--bottombar-h) + 24px) 16px; }
  .brand-name { display: none; }
  .whoami { display: none; }
}

/* Cards and text */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card + .card { margin-top: 12px; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.loading::after { content: ""; display: block; margin: 12px auto 0; width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.error-box { background: var(--red-soft); color: var(--red); border: 1px solid var(--red); border-radius: 10px; padding: 10px 12px; }
.notice { background: var(--accent-soft); color: var(--accent-dark); border-radius: 10px; padding: 10px 12px; }
.banner-draft { background: var(--red); color: #fff; padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.banner-draft small { display: block; font-weight: 400; opacity: .9; }
.kv { display: grid; grid-template-columns: minmax(120px, 160px) 1fr; gap: 6px 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }

/* Buttons */
.btn { white-space: nowrap; font: inherit; font-weight: 600; min-height: var(--tap); padding: 0 18px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-secondary { background: var(--card); color: var(--accent-dark); }
.btn-secondary:hover { background: var(--accent-soft); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--grey-soft); border-color: var(--line); }
.btn-danger { background: var(--red); border-color: var(--red); }
.btn-danger:hover { background: #8F1C13; border-color: #8F1C13; }
.btn-outline-danger { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline-danger:hover { background: var(--red-soft); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .9rem; }
.btn-lg { min-height: 56px; font-size: 1.1rem; padding: 0 24px; }
.btn-block { width: 100%; }
.btn-big { min-height: 64px; font-size: 1.15rem; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label, .label { font-weight: 600; font-size: .95rem; }
.field .hint { color: var(--muted); font-size: .85rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="tel"], input[type="number"], input[type="search"], select, textarea {
  font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; min-height: var(--tap); padding: 10px 12px; width: 100%; }
textarea { min-height: 88px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--accent); margin: 0; flex: none; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: var(--tap); padding: 8px 0; cursor: pointer; }
.check span { flex: 1; }
.req { color: var(--red); font-weight: 700; margin-left: 2px; }
.search { position: relative; }
.search input { padding-left: 14px; font-size: 1.05rem; }
.inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .inline-fields { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch { position: relative; width: 56px; height: 32px; border-radius: 16px; background: var(--line); border: 0; cursor: pointer; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { left: 27px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; line-height: 1.3; white-space: nowrap; }
.badge-stop { background: var(--red); color: #fff; }
.badge-discuss { background: var(--amber); color: #fff; }
.badge-note { background: var(--grey-soft); color: var(--grey); }
.badge-ok { background: var(--accent-soft); color: var(--accent-dark); }
.badge-status { background: var(--grey-soft); color: var(--grey); text-transform: none; font-weight: 600; }
.badge-signed { background: var(--accent-soft); color: var(--accent-dark); text-transform: none; font-weight: 600; }
.badge-withdrawn { background: var(--red-soft); color: var(--red); text-transform: none; font-weight: 600; }
.badge-draft { background: var(--red); color: #fff; }
.badges { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.allergy { color: var(--red); font-weight: 650; }

/* Lists */
.list { display: flex; flex-direction: column; gap: 8px; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; min-height: 64px; text-decoration: none; color: var(--ink); }
.list-item:hover { border-color: var(--accent); }
.list-item .primary { font-weight: 650; font-size: 1.02rem; }
.list-item .secondary { color: var(--muted); font-size: .88rem; }
.list-item .meta { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .4px; }

/* Client header and tabs */
.client-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.client-name { font-size: 1.6rem; margin-bottom: 2px; }
.client-sub { color: var(--muted); }
.client-allergies { margin-top: 6px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 16px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; min-height: var(--tap); display: inline-flex; align-items: center; padding: 0 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--accent-dark); border-bottom-color: var(--accent); }

/* Flags */
.flag-list { display: flex; flex-direction: column; gap: 8px; }
.flag { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.flag.stop { border-color: var(--red); background: var(--red-soft); }
.flag.discuss { border-color: var(--amber); background: var(--amber-soft); }
.flag.note { background: var(--grey-soft); }
.flag .flag-text { flex: 1; }
.flag .flag-note { color: var(--muted); font-size: .88rem; }

/* Progress strip */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 16px; }
.step { border: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; min-height: 60px; display: flex; flex-direction: column; align-items: center; gap: 4px; font: inherit; cursor: pointer; color: var(--muted); }
.step .num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grey-soft); font-weight: 700; font-size: .85rem; }
.step .lbl { font-size: .72rem; font-weight: 600; text-align: center; line-height: 1.15; }
.step.done .num { background: var(--accent); color: #fff; }
.step.current { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.step.current .num { background: var(--accent); color: #fff; }
@media (max-width: 560px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Form renderer */
.form-intro { font-size: 1.05rem; }
.se-group { margin-bottom: 10px; }
.se-group h4 { margin: 0 0 4px; font-size: .95rem; color: var(--muted); }
.se-group ul { margin: 0; padding-left: 20px; }
.se-group.serious h4 { color: var(--red); }
.q { padding: 14px 0; border-top: 1px solid var(--line); }
.q:first-child { border-top: 0; }
.q-label { font-weight: 600; margin-bottom: 10px; display: block; }
.q-num { color: var(--muted); font-weight: 600; margin-right: 6px; }
.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 360px; }
.yesno button { font: inherit; font-weight: 700; min-height: 52px; border-radius: 10px; border: 2px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.yesno button.on-yes { background: var(--amber-soft); border-color: var(--amber); color: var(--amber); }
.yesno button.on-no { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
body.client-mode .yesno button { min-height: 60px; font-size: 1.15rem; }
body.client-mode .q-label { font-size: 1.2rem; }
.q.invalid { background: var(--red-soft); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 8px; }
.sig-wrap { border: 2px dashed var(--line); border-radius: 12px; background: var(--card); position: relative; }
.sig-wrap.has-ink { border-style: solid; border-color: var(--accent); }
.sig-wrap canvas { display: block; width: 100%; height: 200px; touch-action: none; border-radius: 10px; cursor: crosshair; }
body.client-mode .sig-wrap canvas { height: 260px; }
.sig-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.sig-line { position: absolute; left: 24px; right: 24px; bottom: 44px; border-top: 1px solid var(--line); pointer-events: none; }
.sig-hint { position: absolute; left: 24px; bottom: 16px; font-size: .8rem; color: var(--muted); pointer-events: none; }
.client-mode-bar { position: sticky; top: 0; z-index: 5; background: var(--card); padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-weight: 600; min-height: var(--tap); padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip:disabled { opacity: .6; cursor: default; }

/* Treatment picker */
.treat-group h3 { margin: 16px 0 8px; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; }
.treat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.treat { font: inherit; text-align: left; min-height: 60px; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.treat:hover { border-color: var(--accent); }
.treat.off { opacity: .55; cursor: not-allowed; background: var(--grey-soft); }
.treat .treat-note { font-size: .8rem; color: var(--muted); }
.treat.selected { border-color: var(--accent); background: var(--accent-soft); }

/* Product rows */
.prod-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr auto; gap: 8px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 1000px) { .prod-row { grid-template-columns: 1fr 1fr; } .prod-row .span2 { grid-column: 1 / -1; } }
.prod-row .field { margin: 0; }
.site-row { display: grid; grid-template-columns: 1fr 120px; gap: 8px; align-items: center; padding: 6px 0; }

/* Photos */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photo { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--grey-soft); aspect-ratio: 3 / 4; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .photo-tag { position: absolute; left: 6px; top: 6px; }
.photo .photo-cap { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; padding: 4px 6px; }
.photo.pick { cursor: pointer; }
.photo.picked { outline: 3px solid var(--accent); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compare img { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }
.compare .cmp-label { text-align: center; font-weight: 600; margin-bottom: 4px; }

/* Login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login { width: 100%; max-width: 420px; }
.login .brand-mark { width: 56px; height: 56px; font-size: 1.2rem; border-radius: 14px; margin: 0 auto 12px; }
.login h1 { text-align: center; }
.login .sub { text-align: center; color: var(--muted); margin-bottom: 20px; }
.code-input { font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.qr { display: block; margin: 12px auto; width: 200px; height: 200px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.manual-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; background: var(--grey-soft); padding: 10px; border-radius: 8px; user-select: all; }

/* Toasts and modal */
.toasts { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; width: min(92vw, 420px); }
@media (max-width: 759px) { .toasts { bottom: calc(var(--bottombar-h) + 12px); } }
.toast { background: var(--ink); color: var(--card); padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); font-weight: 500; animation: rise .2s ease-out; }
.toast.error { background: var(--red); color: #fff; }
.toast.ok { background: var(--accent); color: #fff; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal-back { position: fixed; inset: 0; background: rgba(10, 20, 26, .5); display: grid; place-items: center; z-index: 90; padding: 16px; }
.modal { background: var(--card); border-radius: 14px; padding: 20px; width: 100%; max-width: 440px; box-shadow: var(--shadow); max-height: 90vh; overflow: auto; }
.modal h2 { margin-bottom: 8px; }
.modal.modal-wide { max-width: 760px; }
.compare-full { max-width: 100%; max-height: 70vh; border-radius: 10px; display: block; margin: 0 auto; }
details > summary { list-style: none; cursor: pointer; display: inline-flex; }
details > summary::-webkit-details-marker { display: none; }

/* Signature summary */
.sig-img { max-width: 260px; max-height: 100px; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: block; }

@media print { .topbar, .sidenav, .toasts { display: none; } .view { padding: 0; } }
.grid3 .span-all { grid-column: 1 / -1; }
@media (min-width: 760px) and (max-width: 1099px) { :root { --nav-w: 176px; } .view { padding-left: calc(var(--nav-w) + 16px); padding-right: 16px; } }

/* ---------- Send to iPad, quick answers, pick lists, corrections ---------- */
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.suggest-item { font: inherit; font-size: .9rem; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent-dark); cursor: pointer; }
.quickbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; background: var(--grey-soft); border-radius: 10px; padding: 8px 12px; position: sticky; top: calc(var(--topbar-h) + 4px); z-index: 4; }
.formr.compact .form-intro, .formr.compact .se-group, .formr.compact .card h3 + p { display: none; }
.formr.compact .q { padding: 6px 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.formr.compact .q-label { margin: 0; font-weight: 500; font-size: .92rem; }
.formr.compact .yesno { grid-template-columns: 64px 64px; gap: 6px; }
.formr.compact .yesno button { min-height: 38px; }
.formr.compact .q input[type=text], .formr.compact .q textarea, .formr.compact .q input[type=date], .formr.compact .suggest { grid-column: 1 / -1; }
.mt-s { margin-top: 6px; }
.not-right { color: var(--red); border-color: var(--red-soft); }
.q.is-wrong { background: var(--red-soft); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 8px; }
.wrong-note { margin-top: 6px; font-weight: 600; color: var(--red); }
.flagged-box { border: 2px solid var(--red); }
.ipad-status { border: 2px solid var(--accent); }
.ipad-wait { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 24px; }
.ipad-wait h1 { font-size: 2rem; margin: 0; }
.ipad-brand { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.ipad-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); animation: nvpulse 1.6s ease-in-out infinite; margin-top: 12px; }
@keyframes nvpulse { 0%, 100% { opacity: .25; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .ipad-dot { animation: none; } }
.ipad-exit { position: fixed; bottom: 16px; right: 16px; }
.corrections h4 { margin: 8px 0 4px; }
.corr-list { margin: 0 0 8px; padding-left: 18px; }
.corr-list li { margin-bottom: 4px; }
