/* =========================================================
   Theme: a calm working surface for hospital staff.
   Neutrals, borders, radii, shadows and status-tag colours follow Ant Design v5's tokens
   (colorBgLayout, colorBorderSecondary, borderRadius 6/8, the Tag presets). Tokens only, not Ant's components.
   One accent: ARDai indigo (the logo's own colour). Loaded last; remove this file to return to the earlier look.
   ========================================================= */
:root {
  --paper: #F5F6F8;          /* page (Ant colorBgLayout, a touch cooler) */
  --solid: #FFFFFF;          /* panels, cards, inputs */
  --card: #FFFFFF;
  --glass: #FFFFFF;
  --sunk: #F2F4F7;           /* fills: tokens, segmented trays, hover */
  --sunk-2: #E9ECF1;
  --line: #EAECF0;           /* Ant colorBorderSecondary */
  --line-2: #D0D5DD;         /* Ant colorBorder */
  --ink: #101828;            /* text, 88% black equivalent */
  --ink-2: #344054;
  --ink-3: #5B6470;
  --accent: #0B72C9;         /* ARDai indigo */
  --accent-hover: #095EA8;
  --accent-soft: #E6F5FF;
  --iris: var(--accent);
  --iris-soft: var(--accent-soft);
  --ok: #027A48;   --ok-bg: #ECFDF3;   --ok-line: #ABEFC6;
  --warn: #B54708; --warn-bg: #FFFAEB; --warn-line: #FEDF89;
  --risk: #B42318; --risk-bg: #FEF3F2; --risk-line: #FECDCA;
  --sun: var(--accent-soft);
  --r-s: 6px; --r-m: 8px; --r-l: 10px;   /* one radius scale: controls 6, cards 8-10 */
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-2: 0 4px 8px -2px rgba(16, 24, 40, .08), 0 2px 4px -2px rgba(16, 24, 40, .04);
}

/* The page: flat. No sunrise rays, no colour blobs, no rainbow line on working screens. */
body { background: var(--paper); }
.sky.app-sky, .app-sky .rays, .app-sky i { display: none !important; }
.dayline { display: none !important; }
.top { background: #FFFFFF; border-bottom: 1px solid var(--line); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Side rail: white, the current item in soft indigo instead of a black slab. */
.rail { background: #FFFFFF; border-right: 1px solid var(--line); }
.rail-ind { background: var(--accent-soft); border-radius: var(--r-m); }
.rail a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.rail a[aria-current="page"] .n { background: var(--accent); color: #fff; }
.rail .ptab[aria-current="page"] .token { background: var(--accent); color: #fff; }
.rail a.rail-new { background: var(--accent); border-radius: var(--r-m); }
@media (hover: hover) and (pointer: fine) {
  .rail a.rail-new:hover { background: var(--accent-hover); }
  .rail a:not([aria-current="page"]):hover { background: var(--sunk); }
}

/* Buttons: the primary action is the accent; secondary is a plain bordered button. One radius. */
.btn { border-radius: var(--r-s); box-shadow: none; }
.btn-dark { background: var(--accent); color: #fff; }
.btn-line { background: #FFFFFF; border: 1px solid var(--line-2); color: var(--ink); box-shadow: var(--shadow-1); }
.btn-soft { background: var(--sunk); }
@media (hover: hover) and (pointer: fine) {
  .btn-dark:hover:not(:disabled) { background: var(--accent-hover); }
  .btn-line:hover:not(:disabled) { background: #F9FAFB; border-color: #98A2B3; }
}
.btn:focus-visible, .input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11, 114, 201, .18); }

/* Inputs and search. */
.input, .select, .textarea { border-radius: var(--r-s); border-color: var(--line-2); background: #FFFFFF; }
.gsearch .input { border-radius: var(--r-s); background: var(--sunk); border-color: transparent; }
.gsearch .input:focus { background: #FFFFFF; }

/* Surfaces: white cards with a hairline and the faintest shadow. */
.panel, .prow, .stat, .drawer, .menu, .gres { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-1); }
.drawer { border-radius: 0; }
.prow { border-radius: var(--r-m); }
@media (hover: hover) and (pointer: fine) { .prow:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); } }
.attention { border-radius: var(--r-m); background: var(--warn-bg); border: 1px solid var(--warn-line); color: #7A2E0E; }
.notice { border-radius: var(--r-m); }

/* Segmented controls (Ant Segmented): grey track, white thumb, 6px corners. */
.seg { border-radius: var(--r-m); background: var(--sunk); padding: 3px; }
.seg button { border-radius: var(--r-s); }
.seg .ind { border-radius: var(--r-s); top: 3px; box-shadow: 0 1px 2px rgba(16, 24, 40, .1); }

/* Tags (Ant Tag presets): tinted fill, matching border, 4px corners. */
.chip { border-radius: 4px; min-height: 24px; padding: 0 8px; font-size: 12.5px; border: 1px solid transparent; }
.chip.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.chip.warn, .synth { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.chip.risk { background: var(--risk-bg); color: var(--risk); border-color: var(--risk-line); }
.chip.muted { background: var(--sunk); color: var(--ink-2); border-color: var(--line); }
.chip.iris { background: var(--accent-soft); color: var(--accent); border-color: #C7CBF6; }

/* Tokens and avatars: flat, no gradients. The patient ready for the doctor gets the accent. */
.token { background: var(--sunk); color: var(--ink); border-radius: var(--r-m); }
.prow.ready .token { background: var(--accent); color: #fff; }
.avatar, .avatar.sun { background: var(--accent-soft); color: var(--accent); }
.tenant-btn, .tenant-logo { border-radius: var(--r-m); }

/* Status text colours (with the dot) on the new neutrals. */
.status.s-ready { color: var(--ok); }
.status.s-vitals { color: var(--accent); }
.status.s-visit { color: var(--warn); }

/* Tables. */
.table th { background: #F9FAFB; border-bottom: 1px solid var(--line); }
.table td { border-bottom: 1px solid var(--line); }

/* Rows enter quickly: a long cascade made rows look disabled mid-way (design review). */
.stagger > * { animation-duration: 160ms !important; animation-delay: calc(var(--i, 0) * 20ms) !important; }

/* Sign-in: the same calm surface. The brand glow stays only as a faint wash; no rays, no glowing frame. */
.sky .rays { display: none !important; }
.sky i { opacity: .28 !important; animation: none !important; }
.halo-frame { background: none !important; padding: 0 !important; box-shadow: none !important; }
.halo-frame::before, .halo-frame::after { display: none !important; }
.auth { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2); }
.docpick { border-radius: var(--r-m); }

/* Queues: the selected patient uses the accent, not black. */
.qitem[aria-current="true"] .token { background: var(--accent); color: #fff; }
.qitem[aria-current="true"] { border-color: #C7CBF6; background: var(--accent-soft); }

/* ===== Second design review ===== */
/* Visit hero: a plain record button, not a glowing voice-assistant orb. One accent, no orange. */
.orb { width: 64px; height: 64px; background: var(--accent); color: #fff; box-shadow: var(--shadow-2); }
.orb::after { display: none; }
.orb svg { width: 26px; height: 26px; }
.orb:disabled { background: var(--sunk); color: var(--ink-3); filter: none; opacity: 1; }
.rec { padding: 4px 0 0; gap: 2px; }
.rec h2 { margin: 12px 0 2px; font-size: 18px; }
.raised, .visit.raised { border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-1); }
.stepper li.on .dot { background: var(--accent); border-color: var(--accent); }
.stepper li.done + li::before, .stepper li.on + li::before { background: var(--accent); }

/* Indigo only for the primary action and the current selection. */
.avatar, .avatar.sun { background: var(--sunk); color: #475467; }
.prow.ready .token { background: var(--accent-soft); color: var(--accent); }
.qitem[aria-current="true"] { background: #F3FAFF; border: 0; box-shadow: inset 3px 0 0 var(--accent); }
.qitem[aria-current="true"] .token { background: var(--accent-soft); color: var(--accent); }
.status.s-vitals, .status.s-wait { color: #667085; }
.status.s-ready { color: #067647; }
.status.s-ready::before { background: #12B76A; }

/* Radius ladder: tags 6, controls and tiles 8, cards 10. */
.chip { border-radius: 6px; }
.btn, .input, .select, .textarea, .token, .vin, .vfield { border-radius: var(--r-m); }
.auth { border-radius: var(--r-l); }
.vfield .vin input { color: var(--ink); font-weight: 600; }
.vfield .vin input::placeholder { color: #98A2B3; font-weight: 400; }

/* Segmented: the selected item is clearly selected. */
.seg .ind { background: #FFFFFF; border: 1px solid var(--line-2); box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { color: var(--ink); font-weight: 600; }

/* Short tables don't show an inner scrollbar. */
.tbl-wrap { overflow: auto; scrollbar-width: thin; }
.tbl-wrap::-webkit-scrollbar { height: 6px; width: 6px; }

/* Sign-in: a quiet staff entry, no animated waveform or colour wash. */
.story { display: none !important; }
.sky i { display: none !important; }
.motion-toggle { display: none !important; }

/* ===== Signature gradient (from the ARDai mark: indigo to sunset) =====
   Used in a few deliberate places only: the brand line, the active-nav marker, the primary button sheen, figure tiles,
   and one dark featured surface on the sign-in page. Never on body text, never as a glow. */
:root {
  --brand-grad: linear-gradient(90deg, #0B72C9 0%, #0099FF 50%, #7CCBFF 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(11, 114, 201, .10) 0%, rgba(232, 131, 90, .08) 100%);
  --night: #11131C;          /* the one dark surface */
  --night-2: #1A1D2A;
}

/* A 2px brand line under the top bar: the single colourful edge on working screens. */
.top { position: sticky; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand-grad); opacity: .85; pointer-events: none; }

/* Primary buttons: a quiet two-tone sheen and a 1px inner highlight, pressed state moves 1px. */
.btn-dark, .rail a.rail-new { background: linear-gradient(180deg, #2A8FE0 0%, #0B72C9 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(16, 24, 40, .12); }
@media (hover: hover) and (pointer: fine) {
  .btn-dark:hover:not(:disabled), .rail a.rail-new:hover { background: linear-gradient(180deg, #4C51C9 0%, #3F43B4 100%); }
}
.btn:active:not(:disabled) { transform: translateY(1px); }

/* Active navigation: a gradient marker on the left edge of the soft indigo item. */
.rail-ind { background: var(--accent-soft); box-shadow: inset 3px 0 0 #0B72C9; }
.rail-ind::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #0B72C9, #E8835A); }

/* Figure tiles (day totals, indicators): a hairline brand gradient along the top. */
.stat { position: relative; overflow: hidden; border-radius: var(--r-l); background: #FFFFFF; }
.stat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--brand-grad); }
.stat b { color: var(--ink); }

/* Panel headers carry the faintest brand tint, so sections read as sections without heavier borders. */
.panel-h { background: linear-gradient(180deg, #FAFDFF 0%, #FFFFFF 100%); }

/* The patient ready for the doctor: the token tile gets the brand gradient, the only gradient in a list. */
.prow.ready .token { background: var(--brand-grad); color: #fff; }

/* ===== Sign-in: one dark featured surface (the pitch) beside a clean white form ===== */
.pitch { position: relative; padding: 40px 40px 36px !important; border-radius: 16px; color: #F4F5FA; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(11, 114, 201, .55) 0%, rgba(11, 114, 201, 0) 60%),
    radial-gradient(90% 70% at 100% 100%, rgba(232, 131, 90, .38) 0%, rgba(232, 131, 90, 0) 60%),
    var(--night); box-shadow: 0 24px 48px -24px rgba(17, 19, 28, .45); }
.pitch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255, 255, 255, .08); pointer-events: none; }
.pitch h1, .pitch h1 em { color: #FFFFFF !important; }
.pitch .lede { color: #C5C8D6; margin-bottom: 0; }
.pitch .eyebrow { background: rgba(255, 255, 255, .08); color: #E6E8F2; border: 1px solid rgba(255, 255, 255, .12); }
.auth .btn-dark { height: 44px; }
@media (max-width: 860px) { .pitch { padding: 28px 24px !important; } }
@media (prefers-reduced-transparency: reduce) { .pitch { background: var(--night); } }
/* Sign-in layout: the dark panel and the form start on the same line; the panel's text sits at its foot. */
.login { align-items: start; padding-top: 84px; }
.pitch { display: flex; flex-direction: column; justify-content: flex-end; min-height: min(560px, calc(100dvh - 140px)); max-width: none; }
.auth-frame { margin-top: 0; }
@media (max-width: 860px) { .login { padding-top: 76px; } .pitch { min-height: 0; } }

/* ===== Third design review: fewer gradients, each with a meaning ===== */
/* Cut: gradient tile edges and the gradient nav marker. The nav marker is solid indigo. */
.stat::before { display: none; }
.rail-ind::before { background: #0B72C9; }

/* Status colours carry meaning again: ready green, waiting amber, done grey. */
.status.s-ready { color: #237804; } .status.s-ready::before { background: #389E0D; }
.status.s-vitals, .status.s-wait { color: #AD6800; } .status.s-vitals::before, .status.s-wait::before { background: #D48806; }
.status.s-done { color: #8C8C8C; }
.prow.ready { background: #F3FAFF; border-color: #CDE7FB; }

/* Day report: one headline figure, the modes beneath it. */
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { border: 1px solid #F0F0F0; border-radius: var(--r-m); box-shadow: none; }
.stat:first-child { grid-column: span 2; }
.stat:first-child b { font-size: 32px; letter-spacing: -.02em; }
.stat:not(:first-child) b { font-size: 22px; color: #595959; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Primary buttons: solid indigo, hover a step darker. */
.btn-dark, .rail a.rail-new { background: #0B72C9; }
@media (hover: hover) and (pointer: fine) { .btn-dark:hover:not(:disabled), .rail a.rail-new:hover { background: #095EA8; } }

/* Sign-in panel: cleaner glow (no brown), the same height as the form, and real content at the top:
   the three steps of what ARDai does, in white. */
.login { align-items: stretch; }
.pitch { background: radial-gradient(520px at 15% -10%, rgba(11, 114, 201, .55), transparent 60%),
                     radial-gradient(420px at 95% 110%, rgba(232, 131, 90, .28), transparent 60%), #11131C;
         justify-content: space-between; min-height: 0; }
.pitch h1 { font-size: 40px !important; line-height: 1.1; }
.pitch .story { display: block !important; order: -1; margin: 0 0 28px; animation: none; }
.pitch .story .scenes, .pitch .story .bar { display: none !important; }
.pitch .story .steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: st; }
.pitch .story .steps li { counter-increment: st; display: flex; align-items: center; gap: 12px; color: #E6E8F2; font-size: 15px; font-weight: 500; opacity: 1 !important; }
.pitch .story .steps li::before { content: counter(st); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #FFFFFF; font-size: 13px; font-weight: 600; }
@media (max-width: 860px) { .pitch .story { display: none !important; } }
.pitch .story .steps { grid-template-columns: 1fr; }
.pitch .story { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; backdrop-filter: none !important; }
.login { align-items: start; }
.pitch { min-height: 520px; }

/* Sign-in panel: light, not dark. A soft wash of the brand gradient on white. */
.pitch { background:
    radial-gradient(560px at 0% 0%, rgba(11, 114, 201, .14), transparent 62%),
    radial-gradient(480px at 100% 100%, rgba(232, 131, 90, .14), transparent 60%),
    linear-gradient(160deg, #F3FAFF 0%, #FFFFFF 55%, #FFF8F4 100%) !important;
  color: var(--ink); border: 1px solid #D6EBFA; box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 32px -16px rgba(11, 114, 201, .18) !important; }
.pitch::after { border-color: transparent; }
.pitch h1, .pitch h1 em { color: var(--ink) !important; }
.pitch .lede { color: var(--ink-2); }
.pitch .eyebrow { background: #FFFFFF; color: var(--ink-2); border: 1px solid var(--line); }
.pitch .story .steps li { color: var(--ink); }
.pitch .story .steps li::before { background: #FFFFFF !important; color: var(--accent) !important; border: 1px solid #CDE7FB !important; }
@media (prefers-reduced-transparency: reduce) { .pitch { background: #F3FAFF !important; } }

/* ===================================================================
   Colour and motion layer (light). One motion language:
   quick UI 160-220ms on --spring; reveals 320-520ms; loops only for status.
   =================================================================== */
:root {
  --spring: cubic-bezier(.22, 1, .36, 1);
  --c-indigo: #0B72C9; --c-violet: #38A8F5; --c-sky: #2E90FA; --c-teal: #0E9384; --c-amber: #F79009; --c-coral: #E8835A; --c-green: #12B76A;
  --wash-indigo: #E6F5FF; --wash-violet: #EEF8FF; --wash-sky: #EFF8FF; --wash-teal: #F0FDF9; --wash-amber: #FFFAEB; --wash-coral: #FFF4ED;
  --hover-bg: #F2F9FF;
  --shadow-hover: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 24px -12px rgba(11, 114, 201, .28);
}

/* Page floor: a quiet light aurora behind every screen */
body { background: var(--paper); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(11, 114, 201, .10), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(232, 131, 90, .09), transparent 62%),
    radial-gradient(800px 500px at 60% 110%, rgba(46, 144, 250, .06), transparent 60%); }

/* Typography: crisper hierarchy */
h1, .page-head h1 { letter-spacing: -.024em; text-wrap: balance; }
.kicker { color: var(--c-indigo) !important; font-weight: 600; font-size: 12px !important; letter-spacing: .06em; text-transform: uppercase; }
.page-head p:not(.kicker) { color: var(--ink-3); }
.panel-h h2, .panel-h h3 { letter-spacing: -.012em; }
p, .lede { text-wrap: pretty; }

/* Entrances */
.page-head .kicker { animation: rise 420ms var(--spring) both; }
.page-head h1 { animation: rise 460ms var(--spring) 40ms both; }
.page-head p:not(.kicker) { animation: rise 460ms var(--spring) 80ms both; }
.page-head .btn { animation: pop 380ms var(--spring) 120ms both; }
.stagger > * { animation: rise 380ms var(--spring) both !important; animation-delay: calc(min(var(--i, 0), 10) * 34ms) !important; }
.panel { animation: rise 420ms var(--spring) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }

/* Buttons: gradient fill, light sweep on hover, press */
.btn { transition: transform 160ms var(--spring), box-shadow 200ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease !important; }
.btn:active { transform: scale(.97) !important; }
.btn-dark { position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #2A8FE0 0%, #0B72C9 45%, #0A63B0 100%) !important; border-color: transparent !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 6px 16px -8px rgba(11, 114, 201, .6) !important; }
.btn-dark::after { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transition: transform 620ms var(--spring); }
.btn-dark:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(16, 24, 40, .08), 0 12px 24px -10px rgba(11, 114, 201, .7) !important; }
.btn-dark:hover::after { transform: translateX(120%); }
.btn-line:hover, .btn-quiet:hover { background: var(--hover-bg) !important; border-color: #B9DDF8 !important; color: var(--c-indigo) !important; }
.btn-line:hover { transform: translateY(-1px); }

/* Queue rows: colour edge by status, hover wash, lift, arrow glide */
.prow { overflow: hidden; }
.prow::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; transform: scaleY(.4); opacity: 0; transition: transform 260ms var(--spring), opacity 200ms ease; }
.prow.ready::before { background: linear-gradient(180deg, #0099FF, #0B72C9); opacity: 1; transform: none; }
.prow.vitals::before { background: var(--c-amber); }
.prow.done::before { background: #D0D5DD; }
.prow:hover { background: linear-gradient(90deg, var(--hover-bg), #FFFFFF 70%) !important; border-color: #CDE7FB !important; box-shadow: var(--shadow-hover) !important; transform: translateY(-2px); }
.prow:hover::before { opacity: 1; transform: none; }
.prow:active { transform: translateY(0) scale(.995); }
.prow .go { transition: transform 220ms var(--spring), color 160ms ease !important; }
.prow:hover .go { transform: translateX(4px); color: var(--c-indigo); }
.prow .token { transition: transform 220ms var(--spring); }
.prow:hover .token { transform: scale(1.06); }
.prow.vitals .token { background: var(--wash-amber); color: #B54708; }
.prow.done .token { background: #F2F4F7; color: #667085; }
.prow.ready .token { background: linear-gradient(135deg, #0B72C9, #0099FF 55%, #4DB8FF); background-size: 200% 200%; animation: flow 6s ease-in-out infinite; box-shadow: 0 6px 14px -8px rgba(11, 114, 201, .8); }
@keyframes flow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Live status: the ready dot pings (it is a status, not decoration) */
.status.s-ready::before { animation: ping 2s var(--spring) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(18, 183, 106, .55); } 80%, 100% { box-shadow: 0 0 0 7px rgba(18, 183, 106, 0); } }

/* Stats: each tile its own soft colour */
.stat { transition: transform 200ms var(--spring), box-shadow 220ms ease, border-color 160ms ease; }
.stat:nth-child(4n+1) { background: linear-gradient(140deg, var(--wash-indigo), #FFFFFF 70%); border-color: #CFE8FC !important; }
.stat:nth-child(4n+2) { background: linear-gradient(140deg, var(--wash-teal), #FFFFFF 70%); border-color: #CCF2E6 !important; }
.stat:nth-child(4n+3) { background: linear-gradient(140deg, var(--wash-sky), #FFFFFF 70%); border-color: #D1E9FF !important; }
.stat:nth-child(4n+4) { background: linear-gradient(140deg, var(--wash-coral), #FFFFFF 70%); border-color: #FCDCC8 !important; }
.stat:nth-child(4n+1) b { color: #0A5A9E !important; }
.stat:nth-child(4n+2) b { color: #107569 !important; }
.stat:nth-child(4n+3) b { color: #175CD3 !important; }
.stat:nth-child(4n+4) b { color: #B93815 !important; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* Panels, people, files, hospitals, queue items: hover wash and lift */
.panel { transition: box-shadow 220ms ease, border-color 160ms ease; }
.panel:hover { border-color: #D6EBFA; }
.panel-h { background: linear-gradient(90deg, #F5FAFF, #FFFFFF 60%) !important; }
.person:hover, .file:hover, .hosp:hover, .qitem:hover { background: var(--hover-bg) !important; border-color: #CDE7FB !important; transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.person:hover .go { transform: translateX(4px); color: var(--c-indigo); }
.table tbody tr, .meds tr { transition: background-color 140ms ease; }
.table tbody tr:hover, .meds tbody tr:hover { background: var(--hover-bg); }
.chip { transition: transform 160ms var(--spring), box-shadow 160ms ease; }
.chip:hover { transform: translateY(-1px); }

/* Attention banner: warm wash, slides in, icon nudges once */
.attention { background: linear-gradient(90deg, #FFF6E0, #FFFAEB 55%, #FFFFFF) !important; animation: slideIn 420ms var(--spring) 120ms both; }
.attention .ic { animation: nudge 700ms var(--spring) 520ms both; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-6px); } }
@keyframes nudge { 30% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 100% { transform: none; } }

/* Rail: hover wash, icon lift; brand line sweeps in on load */
.rail a:hover, .rail .ritem:hover { background: var(--hover-bg); color: var(--c-indigo); }
.rail a:hover .ic { transform: scale(1.1); }
.top::after { background-size: 200% 100%; animation: sweep 1.4s var(--spring) both; }
@keyframes sweep { from { background-position: 100% 0; opacity: 0; } to { background-position: 0 0; opacity: .85; } }

/* Segmented control and inputs */
.seg button:hover { color: var(--c-indigo); }
.input, .select, .textarea, .vin { transition: border-color 160ms ease, box-shadow 200ms ease, background-color 160ms ease; }
.input:hover, .select:hover, .textarea:hover, .vin:hover { border-color: #A9D4F5; }

/* Stages: completing a step fills the line, pops the tick */
.stepper li + li::before { background: linear-gradient(90deg, var(--c-indigo) 50%, var(--line-2) 50%) !important; background-size: 200% 100% !important; background-position: 100% 0 !important; transition: background-position 520ms var(--spring) !important; }
.stepper li.done + li::before, .stepper li.on + li::before { background-position: 0 0 !important; }
.stepper li.on .dot { background: linear-gradient(135deg, #0B72C9, #38A8F5) !important; color: #fff !important; border-color: transparent !important; box-shadow: 0 0 0 4px rgba(11, 114, 201, .14); animation: pop 360ms var(--spring) both; }
.stepper li.done .dot { background: #ECFDF3 !important; color: #067647 !important; animation: tick 420ms var(--spring) both; }
@keyframes tick { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.proc li { transition: color 200ms ease; }
.proc li::before { background: linear-gradient(90deg, rgba(11, 114, 201, .16), rgba(123, 91, 196, .12), rgba(232, 131, 90, .14)) !important; }
.proc li.done::before { background: linear-gradient(90deg, #ECFDF3, #F6FEF9) !important; }
.proc li.done { animation: settle 360ms var(--spring) both; }
.proc li.done .tick { animation: tick 420ms var(--spring) both; }
.proc li.run .tick { border-top-color: var(--c-indigo) !important; }
@keyframes settle { 40% { transform: translateX(3px); } 100% { transform: none; } }
.seal path { stroke: #12B76A; }
.seal { animation: pop 420ms var(--spring) both; }

/* Sign-in: the wash drifts slowly, pieces arrive in order */
.pitch { background-size: 140% 140%, 140% 140%, 100% 100% !important; animation: drift 18s ease-in-out infinite alternate, rise 520ms var(--spring) both; }
@keyframes drift { from { background-position: 0% 0%, 100% 100%, 0 0; } to { background-position: 30% 20%, 70% 80%, 0 0; } }
.pitch .story .steps li { animation: rise 420ms var(--spring) both; }
.pitch .story .steps li:nth-child(2) { animation-delay: 80ms; }
.pitch .story .steps li:nth-child(3) { animation-delay: 160ms; }
.pitch .story .steps li::before { background: linear-gradient(135deg, #0B72C9, #38A8F5) !important; color: #fff !important; border-color: transparent !important; }
.pitch .eyebrow { animation: rise 420ms var(--spring) 220ms both; }
.pitch h1 { animation: rise 520ms var(--spring) 280ms both; }
.pitch .lede { animation: rise 520ms var(--spring) 360ms both; }
.auth { animation: rise 520ms var(--spring) 120ms both; }

/* Motion off when asked */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
}

/* Sign-in role list: each role its own soft colour, hover wash */
.docpick { transition: transform 180ms var(--spring), background-color 160ms ease, border-color 160ms ease, box-shadow 220ms ease; }
.docpick:hover { background: var(--hover-bg) !important; border-color: #CDE7FB !important; transform: translateX(3px); box-shadow: var(--shadow-hover); }
.docpick:nth-child(7n+1) .avatar { background: var(--wash-indigo) !important; color: #0A5A9E !important; }
.docpick:nth-child(7n+2) .avatar { background: var(--wash-teal) !important; color: #107569 !important; }
.docpick:nth-child(7n+3) .avatar { background: var(--wash-amber) !important; color: #B54708 !important; }
.docpick:nth-child(7n+4) .avatar { background: var(--wash-sky) !important; color: #175CD3 !important; }
.docpick:nth-child(7n+5) .avatar { background: var(--wash-violet) !important; color: #3E6B8A !important; }
.docpick:nth-child(7n+6) .avatar { background: var(--wash-coral) !important; color: #B93815 !important; }
.docpick:nth-child(7n+7) .avatar { background: #F2F4F7 !important; color: #344054 !important; }
.stepper li.on + li::before { background-position: 100% 0 !important; }

/* ===================================================================
   Sky and cherry layer. Sky blue (#0099FF) fading to white is the
   atmosphere; cherry to amber means "recording" and "needs attention".
   Indigo stays the action colour. (Hallmark rules: red only for real
   alerts, no tracked-capital labels, reduced motion shows the end state.)
   =================================================================== */
:root {
  --sky: #0099FF; --sky-deep: #0077CC; --sky-soft: #E6F5FF; --sky-mist: #F3FAFF;
  --cherry: #D2143A; --cherry-deep: #A50E2D; --cherry-soft: #FFF0F2; --amber: #F59E0B;
  --sky-grad: linear-gradient(180deg, #0099FF 0%, #4DB8FF 38%, #BFE5FF 70%, #F3FAFF 100%);
  --cherry-grad: linear-gradient(135deg, #D2143A 0%, #EF4444 50%, #F59E0B 100%);
}

/* Undo tracked capitals on the line above page titles */
.kicker { text-transform: none !important; letter-spacing: 0 !important; font-size: 13px !important; color: var(--sky-deep) !important; font-weight: 500; }

/* Page floor: sky fading to white from the top, like a clear morning */
body::before { background:
    linear-gradient(180deg, rgba(0, 153, 255, .13) 0%, rgba(0, 153, 255, .05) 220px, transparent 420px),
    radial-gradient(700px 380px at 100% 0%, rgba(245, 158, 11, .07), transparent 62%),
    radial-gradient(800px 500px at 0% 100%, rgba(11, 114, 201, .05), transparent 60%) !important; }
.top::after { background: linear-gradient(90deg, #0099FF, #0B72C9 45%, #D2143A 80%, #F59E0B) !important; background-size: 200% 100% !important; }

/* Third stat tile and selected rail item lean sky */
.stat:nth-child(4n+3) { background: linear-gradient(180deg, var(--sky-soft), #FFFFFF 75%) !important; border-color: #B9E2FF !important; }
.stat:nth-child(4n+3) b { color: var(--sky-deep) !important; }
.stat:nth-child(4n+4) { background: linear-gradient(140deg, var(--cherry-soft), #FFFFFF 70%) !important; border-color: #FBD0D8 !important; }
.stat:nth-child(4n+4) b { color: var(--cherry-deep) !important; }
.rail a[aria-current="page"] { background: linear-gradient(90deg, var(--sky-soft), var(--wash-indigo)) !important; }

/* Real alerts in cherry */
.u-risk, .flag.risk, .chip.risk { color: var(--cherry) !important; }
.attention { border-left: 3px solid var(--amber) !important; }

/* Doctor's record button: back to a living voice control, in cherry to amber */
.orb { width: 88px !important; height: 88px !important; background: var(--cherry-grad) !important; color: #fff !important;
  box-shadow: 0 10px 28px -10px rgba(210, 20, 58, .55), inset 0 1px 0 rgba(255, 255, 255, .35) !important; }
.orb svg { width: 32px; height: 32px; }
.orb::after { display: block !important; inset: -10px; border: 2px solid rgba(210, 20, 58, .28) !important; animation: breathe 3.2s var(--ease-in-out) infinite !important; }
.orb::before { content: ""; position: absolute; inset: -22px; border-radius: 50%; border: 1px solid rgba(245, 158, 11, .22); animation: breathe 3.2s var(--ease-in-out) 1.1s infinite; pointer-events: none; }
.orb:hover:not(:disabled) { transform: scale(1.05); }
.orb:active:not(:disabled) { transform: scale(.96); }
.orb:disabled { background: var(--sunk) !important; color: var(--ink-3) !important; box-shadow: none !important; }
.orb:disabled::before, .orb:disabled::after { display: none !important; }
.rec-dot { color: var(--cherry); }

/* Stepper and progress steps pick up the sky */
.stepper li + li::before { background-image: linear-gradient(90deg, var(--sky) 0%, var(--c-indigo) 50%, var(--line-2) 50%) !important; }
.proc li::before { background: linear-gradient(90deg, rgba(0, 153, 255, .16), rgba(11, 114, 201, .12), rgba(245, 158, 11, .12)) !important; }

/* ---- Sign-in: sky panel with the original voice and WhatsApp story ---- */
.pitch { justify-content: flex-start !important; gap: 0; min-height: 0 !important;
  background: var(--sky-grad) !important; background-size: 100% 100% !important; animation: rise 520ms var(--spring) both !important;
  border: 1px solid #CFEAFF !important; box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 24px 48px -24px rgba(0, 119, 204, .35) !important; }
.pitch .story { display: block !important; order: -1; max-width: none; margin: 0 0 26px !important;
  padding: 16px 18px 18px !important; border-radius: 16px !important;
  background: rgba(255, 255, 255, .78) !important; border: 1px solid rgba(255, 255, 255, .9) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important; backdrop-filter: blur(16px) saturate(140%) !important;
  box-shadow: 0 18px 40px -22px rgba(0, 80, 160, .45) !important; }
.pitch .story .scenes { display: grid !important; min-height: 214px; }
.pitch .story .bar { display: block !important; }
.pitch .story .steps { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; margin: 0 0 14px !important; }
.pitch .story .steps li { display: block !important; counter-increment: none; font-size: 13px !important; color: var(--ink-3) !important; font-weight: 500; animation: none !important; }
.pitch .story .steps li::before { display: none !important; }
.pitch .story .steps li.on, .pitch .story .steps li.done { color: var(--ink) !important; }
.pitch .story .steps .bar { background: rgba(0, 119, 204, .12); }
.pitch .story .steps .bar i { background: linear-gradient(90deg, var(--sky), var(--c-indigo)) !important; }
.pitch .caret { background: var(--sky); }
.pitch .rx { border-color: #DDEFFC; }
.pitch .rx mark { background: var(--sky-soft); color: var(--sky-deep); padding: 0 4px; border-radius: 4px; }
.pitch .scene.on .slot.lit { background: linear-gradient(135deg, #FFE7A8, #FFD27A) !important; color: #7A4B00 !important; }
.pitch .bub.them { border-color: #E3EEF8; }
.pitch .bub.alert { background: var(--cherry-soft) !important; color: var(--cherry-deep) !important; border: 1px solid #F8C9D2 !important; }
.pitch .eyebrow { background: rgba(255, 255, 255, .9) !important; }
.pitch h1 { font-size: 36px !important; }
@media (max-width: 860px) { .pitch .story { display: none !important; } }

/* Let people pause the looping story (it runs longer than 5 seconds) */
.motion-toggle { display: inline-flex !important; background: rgba(255, 255, 255, .92) !important; }

/* Sign-in button and role list touch the sky */
.docpick:hover { background: var(--sky-mist) !important; border-color: #B9E2FF !important; }

@media (prefers-reduced-motion: reduce) {
  .orb::before, .orb::after { animation: none !important; }
}
.pitch .story, .pitch .story .scenes, .pitch .story .scene { min-width: 0; }
.pitch .rx { overflow: hidden; }
.pitch .rx-row { grid-template-columns: 92px minmax(0, 1fr); }
.pitch .rx-head span:last-child { white-space: nowrap; }
.pitch .slots { flex-wrap: wrap; }
.pitch .slot { width: auto; flex: 1 1 52px; min-width: 52px; }
.pitch .heard { overflow-wrap: anywhere; }
.motion-toggle { position: absolute !important; top: 16px !important; right: 16px !important; left: auto !important; bottom: auto !important; }
/* In visit: recording is under way, so it wears the cherry */
.prow.visit::before { background: var(--cherry-grad); opacity: 1; transform: none; }
.prow.visit .token { background: var(--cherry-soft); color: var(--cherry-deep); }
.status.s-visit { color: var(--cherry) !important; }
.status.s-visit::before { background: var(--cherry) !important; animation: pingRed 1.6s var(--spring) infinite; }
@keyframes pingRed { 0% { box-shadow: 0 0 0 0 rgba(210, 20, 58, .5); } 80%, 100% { box-shadow: 0 0 0 7px rgba(210, 20, 58, 0); } }
.prow.wait::before { background: #98A2B3; }

/* ===================================================================
   Sky and cloud. No violet anywhere. The accent is a deep sky blue
   (#0B72C9, 5:1 on white); the floor is a clear sky with soft white
   cloud banks; cards are white and float on it. Cherry stays for
   recording and real alerts, amber for waiting. Hallmark rules: no
   coloured glow shadows, no tracked capitals, still after load.
   =================================================================== */
:root {
  --accent: #0B72C9; --accent-hover: #095EA8; --accent-soft: #E6F5FF;
  --iris: #0B72C9; --iris-soft: #E6F5FF; --peri: #7CCBFF;
  --sun: linear-gradient(115deg, #E6F5FF 0%, #7CCBFF 50%, #0099FF 100%);
  --paper: #EAF6FF;
}

/* The sky: blue overhead, paler toward the horizon, with cloud banks */
html { background: #EAF6FF; }
body { background: linear-gradient(180deg, #BFE3FF 0%, #D8EEFF 26%, #EAF6FF 55%, #F6FBFF 100%) fixed !important; }
body::before { background:
    radial-gradient(ellipse 520px 150px at 12% 14%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 380px 120px at 28% 9%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 620px 170px at 78% 22%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 420px 130px at 92% 12%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 700px 200px at 45% 62%, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 560px 180px at 8% 82%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 600px 190px at 88% 90%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%) !important; }

/* Bars become frosted so the sky shows through */
.top { background: rgba(255, 255, 255, .82) !important; -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.rail { background: rgba(255, 255, 255, .78) !important; -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.top::after { background: linear-gradient(90deg, #0099FF, #7CCBFF 60%, rgba(124, 203, 255, 0)) !important; }
@media (prefers-reduced-transparency: reduce) { .top, .rail { background: #FFFFFF !important; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Cards: white on the sky, a cool neutral shadow (no coloured glow) */
.panel, .prow, .stat, .drawer, .person, .file, .hosp { box-shadow: 0 1px 2px rgba(16, 40, 70, .06), 0 8px 24px -16px rgba(16, 60, 110, .22); }
.prow { background: #FFFFFF !important; }
.prow:hover, .person:hover, .file:hover, .stat:hover { box-shadow: 0 1px 2px rgba(16, 40, 70, .06), 0 14px 30px -16px rgba(16, 60, 110, .32) !important; }
:root { --shadow-hover: 0 1px 2px rgba(16, 40, 70, .06), 0 14px 30px -16px rgba(16, 60, 110, .32); }

/* Primary button: solid deep sky, quiet sheen, neutral shadow */
.btn-dark { background: linear-gradient(180deg, #1A82D9 0%, #0B72C9 100%) !important; box-shadow: 0 1px 2px rgba(16, 40, 70, .12), inset 0 1px 0 rgba(255, 255, 255, .18) !important; }
.btn-dark:hover { background: linear-gradient(180deg, #0B72C9 0%, #095EA8 100%) !important; box-shadow: 0 2px 6px rgba(16, 40, 70, .16), inset 0 1px 0 rgba(255, 255, 255, .18) !important; }
.prow.ready .token { animation: none !important; background: linear-gradient(135deg, #0099FF, #0B72C9) !important; box-shadow: none !important; }
.orb { box-shadow: 0 8px 20px -12px rgba(16, 40, 70, .45), inset 0 1px 0 rgba(255, 255, 255, .3) !important; }

/* Rail and selection */
.rail a[aria-current="page"] { background: var(--accent-soft) !important; color: var(--accent) !important; }
.rail-ind { background: var(--accent-soft) !important; }
.stepper li + li::before { background-image: linear-gradient(90deg, #0B72C9 50%, var(--line-2) 50%) !important; }
.stepper li.on .dot { background: #0B72C9 !important; box-shadow: 0 0 0 4px rgba(0, 153, 255, .16); }
.chip.iris { background: var(--accent-soft) !important; color: var(--accent) !important; }
.kicker { color: #0A5A9E !important; }

/* Stat tiles: sky family plus the status colours, no violet */
.stat:nth-child(4n+1) { background: linear-gradient(180deg, #E6F5FF, #FFFFFF 75%) !important; border-color: #CFE8FC !important; }
.stat:nth-child(4n+1) b { color: #0A5A9E !important; }

/* Sign-in: the sky panel sits on the sky, so it gets a white frame */
.pitch { border: 1px solid rgba(255, 255, 255, .9) !important; box-shadow: 0 1px 2px rgba(16, 40, 70, .06), 0 18px 40px -22px rgba(16, 60, 110, .35) !important; }
.auth { background: rgba(255, 255, 255, .96) !important; }
.pitch .story .steps .bar i { background: linear-gradient(90deg, #7CCBFF, #0B72C9) !important; }
.pitch .scene.on .slot.lit { background: #E6F5FF !important; color: #0A5A9E !important; }
.docpick:nth-child(7n+1) .avatar { background: #E6F5FF !important; color: #0A5A9E !important; }

/* ===================================================================
   Sunshine layer. The original .sky element comes back as a warm sun
   in the top-right of the sky: a soft golden disc that breathes, a
   peach sunset haze, slow turning rays, and two white clouds drifting.
   It sits behind everything (fixed, z -1) and pauses under reduced
   motion or the "Pause animation" toggle.
   =================================================================== */
.sky, .sky.app-sky { display: block !important; background: transparent !important; }
.sky i, .sky.app-sky i, .app-sky i { display: block !important; }

/* The sun: warm core with a wide golden glow */
.sky i.b4 { width: 46vmax !important; height: 46vmax !important; left: auto !important; right: -14vmax !important; top: -22vmax !important; bottom: auto !important;
  background: radial-gradient(circle, rgba(255, 246, 214, 1) 0%, rgba(255, 224, 150, .95) 9%, rgba(255, 196, 107, .55) 22%, rgba(255, 176, 100, .22) 42%, rgba(255, 176, 100, 0) 66%) !important;
  opacity: 1 !important; animation: sunBreathe 14s ease-in-out infinite alternate !important; }
@keyframes sunBreathe { from { transform: scale(1); } to { transform: scale(1.07); } }

/* Sunset haze: peach to rose, low along the warm side */
.sky i.b3 { width: 70vmax !important; height: 40vmax !important; left: auto !important; right: -20vmax !important; top: -6vmax !important; bottom: auto !important;
  background: radial-gradient(ellipse at 70% 30%, rgba(255, 168, 120, .30), rgba(255, 140, 120, .12) 40%, rgba(255, 140, 120, 0) 70%) !important;
  opacity: 1 !important; animation: drift3 60s ease-in-out infinite alternate !important; }

/* Two white clouds drifting across the sky */
.sky i.b1 { width: 60vmax !important; height: 18vmax !important; left: -10vmax !important; top: 6vh !important; bottom: auto !important;
  background: radial-gradient(ellipse at 50% 55%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .55) 35%, rgba(255, 255, 255, 0) 70%) !important;
  opacity: 1 !important; animation: cloudA 90s ease-in-out infinite alternate !important; }
.sky i.b2 { width: 48vmax !important; height: 15vmax !important; left: 38vw !important; top: 46vh !important; bottom: auto !important;
  background: radial-gradient(ellipse at 50% 55%, rgba(255, 255, 255, .85), rgba(255, 255, 255, .45) 35%, rgba(255, 255, 255, 0) 70%) !important;
  opacity: 1 !important; animation: cloudB 110s ease-in-out infinite alternate !important; }
@keyframes cloudA { to { transform: translate3d(22vw, 2vh, 0); } }
@keyframes cloudB { to { transform: translate3d(-26vw, -3vh, 0); } }

/* Sun rays turning slowly out of the sun */
.sky i.rays, .sky.app-sky i.rays { display: block !important; left: auto !important; right: -100vmax !important; top: -100vmax !important; translate: 0 0 !important;
  width: 200vmax !important; height: 200vmax !important;
  background: repeating-conic-gradient(from 0deg, rgba(255, 236, 190, 0) 0deg 5deg, rgba(255, 236, 190, .55) 6deg 7deg) !important;
  -webkit-mask: radial-gradient(circle, transparent 4%, #000 8%, rgba(0, 0, 0, .35) 22%, transparent 34%) !important;
          mask: radial-gradient(circle, transparent 4%, #000 8%, rgba(0, 0, 0, .35) 22%, transparent 34%) !important;
  opacity: .5 !important; animation: spin 240s linear infinite !important; }

/* Warm the sky floor toward the sun */
body { background: linear-gradient(200deg, #FFE9C7 0%, #E4F2FF 22%, #CDE8FF 40%, #E6F4FF 70%, #F7FBFF 100%) fixed !important; }

/* The OPD day line under the top bar: sky to sunshine, the sun marks the hour */
.dayline:not([hidden]) { display: block !important; background: rgba(11, 114, 201, .08) !important; }
.dayline .fill { background: linear-gradient(90deg, #7CCBFF, #FFC46B 85%, #FFB070) !important; }
.dayline .sun { background: #FFF6D6 !important; box-shadow: 0 0 0 3px #FFC46B, 0 0 14px 4px rgba(255, 196, 107, .6) !important; animation: sunPulse 3.6s ease-in-out infinite; }
@keyframes sunPulse { 50% { box-shadow: 0 0 0 3px #FFC46B, 0 0 20px 7px rgba(255, 196, 107, .45); } }
.top::after { background: linear-gradient(90deg, #0099FF, #7CCBFF 55%, #FFC46B 92%, #FFB070) !important; }

/* Warm touches that match the sun */
.attention { background: linear-gradient(90deg, #FFF1D6, #FFF8EA 55%, #FFFFFF) !important; }
.pitch { background: linear-gradient(180deg, #0099FF 0%, #4DB8FF 34%, #A9DBFF 62%, #FFE6C2 92%, #FFD9A8 100%) !important; }

/* Pausing and reduced motion stop every sky animation */
html[data-motion="off"] .sky i, html[data-motion="off"] .dayline .sun { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .sky i, .dayline .sun { animation: none !important; } }
.dayline .sun { left: clamp(8px, var(--day, 30%), calc(100% - 8px)) !important; }
.sky i.b4 { right: -10vmax !important; top: -17vmax !important; }
.sky i.b4 { width: 40vmax !important; height: 40vmax !important; right: -11vmax !important; top: -9vmax !important; }
.sky i.rays, .sky.app-sky i.rays { right: calc(-100vmax + 9vmax) !important; top: calc(-100vmax + 11vmax) !important; opacity: .6 !important; }
.top { background: rgba(255, 255, 255, .72) !important; }
.sky i.b4 { background: radial-gradient(circle, rgba(255, 214, 120, .95) 0%, rgba(255, 196, 92, .75) 10%, rgba(255, 170, 80, .40) 24%, rgba(255, 150, 90, .16) 44%, rgba(255, 150, 90, 0) 66%) !important; }
/* The sky lives on the root so the fixed sun, rays and clouds (z -1) paint above it */
html { background: linear-gradient(200deg, #FFE9C7 0%, #E4F2FF 22%, #CDE8FF 40%, #E6F4FF 70%, #F7FBFF 100%) fixed #EAF6FF !important; min-height: 100%; }
body { background: transparent !important; }

/* ===================================================================
   Canvas motion (shared/fx.js) and pill buttons in sky colours.
   =================================================================== */
.fx { position: absolute; display: block; pointer-events: none; }
.sky i.rays, .sky.app-sky i.rays { display: none !important; }   /* no sunbeams */

.pitch { position: relative; isolation: isolate; }
.pitch > :not(.fx) { position: relative; z-index: 1; }
.pitch .fx-rise { left: 0; bottom: 0; width: 100%; height: 64%; z-index: 0; }
.pitch .fx-halo { left: 0; top: 0; width: 100%; height: 100%; z-index: 0; }
.pitch h1, .pitch .lede { text-shadow: 0 1px 12px rgba(255, 255, 255, .7); }

.rec { position: relative; isolation: isolate; }
.rec > :not(.fx) { position: relative; z-index: 1; }
.rec .fx-orb { left: 0; top: -56px; width: 100%; height: calc(100% + 56px); z-index: 0; }

/* Buttons: pills. Primary is solid deep sky with a chevron that slides on hover;
   secondary is a soft sky tint with blue text. */
.btn, .btn-small { border-radius: 999px !important; }
.btn { font-weight: 600; letter-spacing: -.005em; }
.btn-dark { background: #0B72C9 !important; color: #FFFFFF !important; border: 0 !important; box-shadow: 0 1px 2px rgba(16, 40, 70, .12) !important; }
.btn-dark:hover:not(:disabled) { background: #095EA8 !important; transform: none; box-shadow: 0 4px 12px -4px rgba(9, 94, 168, .45) !important; }
.btn-dark::after { content: none !important; }
.btn-dark:not(:has(svg)):not(:has(.spinner))::after, .auth .btn-dark .btn-label::after {
  content: "" !important; position: static !important; inset: auto !important; z-index: auto !important; display: inline-block;
  width: 6px; height: 6px; margin-left: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; background: none !important;
  transform: translateY(-1px) rotate(45deg); transition: transform 200ms var(--spring); vertical-align: middle; }
.btn-dark:not(:has(svg)):not(:has(.spinner)):hover::after, .auth .btn-dark:hover .btn-label::after { transform: translate(3px, -1px) rotate(45deg) !important; }
.btn-line { background: #E8F3FD !important; color: #0B72C9 !important; border-color: transparent !important; }
.btn-line:hover:not(:disabled) { background: #D6EAFB !important; color: #095EA8 !important; border-color: transparent !important; }
.btn-quiet { color: #0B72C9 !important; }
.btn-quiet:hover:not(:disabled) { background: #EEF6FE !important; }
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(11, 114, 201, .25) !important; }
/* Clinical data sits on solid white; the beams stay in the sky around it */
.vstrip, .hv, .since > div, .trend, .drop, .rsec.editing { background: #FFFFFF !important; }
.phead { background: rgba(255, 255, 255, .88) !important; -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); padding: 12px 16px !important; border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 1px 2px rgba(16, 40, 70, .06); }
.vstrip, .phead { border-radius: var(--r-l); }

/* ===================================================================
   Premium blue. The flat, saturated mid-blue read as a bank form.
   Now: deep navy ink and navy primary actions, a refined azure used
   only for small details (selection, links, focus), and a pearl sky
   that is mostly white with a cool mist and the warm sun.
   =================================================================== */
:root {
  --ink: #0A2540; --ink-2: #425466; --ink-3: #6B7C93;
  --navy: #0A2540; --navy-2: #13365C; --azure: #1E6BD6; --azure-soft: #EEF4FD;
  --accent: #1E6BD6; --accent-hover: #1858B4; --accent-soft: #EEF4FD;
  --line: #E6EBF1; --line-2: #D5DDE7;
}
body, .page-head p:not(.kicker) { color: var(--ink-2); }
h1, h2, h3, b, .prow b, .page-head h1 { color: var(--ink); }

/* Pearl sky: mostly white, a cool mist above, the warm sun top-right */
html { background:
    radial-gradient(1200px 520px at 20% -10%, rgba(30, 107, 214, .10), transparent 65%),
    radial-gradient(900px 480px at 100% 0%, rgba(255, 196, 120, .22), transparent 60%),
    linear-gradient(180deg, #F1F6FC 0%, #F6F9FC 45%, #FAFBFD 100%) fixed #F6F9FC !important; }
body::before { opacity: .55; }
.sky i.b1, .sky i.b2 { opacity: .7 !important; }
.sky i.b4 { opacity: .75 !important; }
.top::after { background: linear-gradient(90deg, rgba(30, 107, 214, .0), rgba(30, 107, 214, .55) 30%, #FFC46B 85%, rgba(255, 176, 112, 0)) !important; height: 1px !important; }

/* Primary action: deep navy with a soft top light; hover lifts to midnight blue */
.btn-dark { background: linear-gradient(180deg, #16395F 0%, #0A2540 100%) !important; color: #FFFFFF !important;
  box-shadow: 0 1px 1px rgba(10, 37, 64, .2), 0 6px 16px -8px rgba(10, 37, 64, .55), inset 0 1px 0 rgba(255, 255, 255, .12) !important; }
.btn-dark:hover:not(:disabled) { background: linear-gradient(180deg, #1D4A7A 0%, #13365C 100%) !important;
  box-shadow: 0 2px 4px rgba(10, 37, 64, .2), 0 10px 22px -10px rgba(10, 37, 64, .6), inset 0 1px 0 rgba(255, 255, 255, .14) !important; transform: translateY(-1px); }
/* Secondary: white, hairline, navy text; quiet: azure text */
.btn-line { background: #FFFFFF !important; color: var(--ink) !important; border: 1px solid var(--line-2) !important; box-shadow: 0 1px 1px rgba(10, 37, 64, .05) !important; }
.btn-line:hover:not(:disabled) { background: #F7F9FC !important; color: var(--ink) !important; border-color: #C2CDDA !important; }
.btn-quiet { color: var(--azure) !important; }
.btn-quiet:hover:not(:disabled) { background: var(--azure-soft) !important; }
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(30, 107, 214, .25) !important; }
.link-btn, a { color: var(--azure); }

/* Selection and status details in azure, not flat fills */
.rail a[aria-current="page"], .rail-ind { background: #EEF3F9 !important; color: var(--ink) !important; }
.rail a[aria-current="page"] .ic { color: var(--azure); }
.rail .ptab[aria-current="page"] .token, .qitem[aria-current="true"] .token { background: var(--navy) !important; color: #fff !important; }
.kicker { color: var(--ink-3) !important; font-weight: 500; }
.prow.ready .token { background: linear-gradient(160deg, #1D4A7A, #0A2540) !important; color: #fff !important; }
.prow.ready::before { background: linear-gradient(180deg, #1E6BD6, #0A2540) !important; }
.prow:hover { background: #FFFFFF !important; border-color: #D5DDE7 !important; }
.stepper li + li::before { background-image: linear-gradient(90deg, var(--navy) 50%, var(--line-2) 50%) !important; }
.stepper li.on .dot { background: var(--navy) !important; box-shadow: 0 0 0 4px rgba(10, 37, 64, .10) !important; }
.seg button:hover, .seg button[aria-pressed="true"] { color: var(--ink) !important; }
.input:focus, .select:focus, .textarea:focus, .vin:focus-within { border-color: var(--azure) !important; box-shadow: 0 0 0 3px rgba(30, 107, 214, .16) !important; }
.input:hover, .select:hover, .textarea:hover { border-color: #B8C4D3; }

/* Stat tiles: white with a thin coloured top rule instead of tinted fills */
.stat { background: #FFFFFF !important; border-color: var(--line) !important; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #1E6BD6; opacity: .85; }
.stat:nth-child(4n+2)::after { background: #0E9384; }
.stat:nth-child(4n+3)::after { background: #F59E0B; }
.stat:nth-child(4n+4)::after { background: #D2143A; }
.stat b { color: var(--ink) !important; }

/* Sign-in: a pearl panel with an azure dawn at the top and the warm horizon below */
.pitch { background:
    radial-gradient(520px 300px at 50% 105%, rgba(255, 176, 112, .38), transparent 70%),
    linear-gradient(180deg, #DCEBFB 0%, #EEF5FD 40%, #F9FBFE 70%, #FFF4E8 100%) !important;
  border: 1px solid #E3EBF5 !important; }
.pitch .story { background: rgba(255, 255, 255, .86) !important; border-color: #FFFFFF !important; box-shadow: 0 1px 2px rgba(10, 37, 64, .05), 0 18px 40px -24px rgba(10, 37, 64, .3) !important; }
.pitch .story .steps .bar i { background: linear-gradient(90deg, #1E6BD6, #0A2540) !important; }
.pitch .rx mark { background: var(--azure-soft); color: #1858B4; }
.pitch .scene.on .slot.lit { background: #0A2540 !important; color: #FFFFFF !important; }
.pitch h1, .pitch .lede { text-shadow: none; }
.pitch .lede { color: var(--ink-2); }
.docpick:hover { background: #F7F9FC !important; border-color: #D5DDE7 !important; }
.docpick .avatar { background: #F1F4F8 !important; color: var(--ink) !important; }
/* The burst gets its own horizon below the text, so lines never cross words */
.pitch { padding-bottom: 220px !important; }
.pitch .fx-rise { height: 232px !important; }
@media (max-width: 860px) { .pitch { padding-bottom: 28px !important; } .pitch .fx-rise { display: none; } }
.auth-frame { position: relative; isolation: isolate; overflow: visible !important; }
.auth-frame > .auth { border-radius: 28px; overflow: hidden; }
.auth-frame > :not(.fx) { position: relative; z-index: 1; }
@media (max-width: 860px) { .auth-frame .fx-ring { display: none; } }

/* ===================================================================
   Polished blue sky (Hallmark method: the ground is one committed
   material, defined in OKLCH, with a fine grain so it reads as a
   surface rather than a flat fill). A clear azure overhead, easing to
   a pale horizon with the faintest warmth; white cards float on it.
   =================================================================== */
:root {
  --sky-0: oklch(70% 0.105 244);   /* overhead */
  --sky-1: oklch(78% 0.088 241);
  --sky-2: oklch(86.5% 0.058 236);
  --sky-3: oklch(93% 0.032 230);
  --sky-4: oklch(96.5% 0.018 75);  /* horizon, a breath of warmth */
  --on-sky: oklch(26% 0.05 250);   /* text set directly on the sky */
  --on-sky-2: oklch(34% 0.05 248);
}
html { background:
    radial-gradient(1100px 600px at 100% -5%, oklch(92% 0.06 75 / .55), transparent 60%),
    linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 26%, var(--sky-2) 55%, var(--sky-3) 82%, var(--sky-4) 100%) fixed var(--sky-2) !important; }

/* Clouds: soft white banks, a little stronger so the sky has depth */
body::before { opacity: .9 !important; }
.sky i.b1, .sky i.b2 { opacity: .85 !important; }
.sky i.b4 { opacity: .5 !important; }
.sky i.b3 { opacity: .6 !important; }

/* Fine grain over the sky so the blue reads as a surface */
.sky::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Text that sits straight on the sky stays dark and readable */
.page-head h1 { color: var(--on-sky) !important; }
.page-head p:not(.kicker), .kicker { color: var(--on-sky-2) !important; }
.phead h1 { color: var(--ink) !important; }

/* Controls that sit on the sky get a white surface */
.seg { background: oklch(100% 0 0 / .62) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid oklch(100% 0 0 / .7); }
.search .input, .home-tools .input { background: #FFFFFF !important; }

/* Bars: frosted white over the blue, a cool hairline beneath */
.top { background: oklch(100% 0 0 / .78) !important; border-bottom: 1px solid oklch(100% 0 0 / .6); }
.rail { background: oklch(100% 0 0 / .74) !important; border-right: 1px solid oklch(100% 0 0 / .6) !important; }

/* Cards: white, with a shadow tinted to the sky (no glow) */
.panel, .prow, .stat, .drawer, .person, .file, .hosp, .vstrip { box-shadow: 0 1px 2px oklch(40% 0.06 245 / .08), 0 12px 28px -18px oklch(40% 0.08 245 / .35) !important; border-color: oklch(100% 0 0 / .9) !important; }

/* Sign-in: the panel is a lighter pane of the same sky */
.pitch { border: 1px solid oklch(100% 0 0 / .75) !important;
  background:
    radial-gradient(520px 300px at 50% 105%, oklch(88% 0.09 60 / .55), transparent 70%),
    linear-gradient(180deg, oklch(90% 0.05 238) 0%, oklch(95% 0.028 234) 45%, oklch(98% 0.012 230) 72%, oklch(97% 0.025 70) 100%) !important; }
.login .brand, .login .lockup { color: var(--on-sky); }
.motion-toggle { background: oklch(100% 0 0 / .85) !important; }

@media (prefers-reduced-transparency: reduce) { .seg { background: #FFFFFF !important; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ===================================================================
   Time-of-day sky (driven by shared/fx.js from the local clock).
   Night: deep navy with stars and a pale moon. Sunrise: blue above,
   violet, pink, coral and gold at the horizon, the sun rising left.
   Noon: a bright azure with the sun high. Sunset: blue, violet, pink,
   red and yellow, the sun setting right. Dusk fades back to night.
   =================================================================== */
html { background: linear-gradient(180deg, var(--tsky-0, #3D8BE3) 0%, var(--tsky-1, #6FAEEE) 28%, var(--tsky-2, #A9D0F5) 56%, var(--tsky-3, #CFE3F7) 80%, var(--tsky-4, #E3F0FB) 100%) fixed var(--tsky-2, #A9D0F5) !important;
  transition: background-color 2s ease; }

/* The sun (or the moon at night) rides the arc set from the clock */
.sky i.b4 { left: calc(var(--sun-x, 88vw) - var(--sun-size, 34vmax) / 2) !important; top: calc(var(--sun-y, 14vh) - var(--sun-size, 34vmax) / 2) !important; right: auto !important;
  width: var(--sun-size, 34vmax) !important; height: var(--sun-size, 34vmax) !important; opacity: var(--sun-alpha, .8) !important;
  background: radial-gradient(circle, var(--sun-core, #FFF7D6) 0%, var(--sun-core, #FFF7D6) 4%, color-mix(in srgb, var(--sun-glow, #FFE7A0) 75%, transparent) 10%, color-mix(in srgb, var(--sun-glow, #FFE7A0) 35%, transparent) 24%, color-mix(in srgb, var(--sun-glow, #FFE7A0) 12%, transparent) 42%, transparent 66%) !important;
  transition: left 60s linear, top 60s linear; }
.sky i.b3 { opacity: calc(var(--clouds, .9) * .7) !important; }
body::before, .sky i.b1, .sky i.b2 { opacity: var(--clouds, .9) !important; transition: opacity 2s ease; }
.sky .fx-stars { inset: 0; width: 100%; height: 100%; }

/* Warm the clouds at sunrise and sunset */
html[data-daypart="sunrise"] .sky i.b1, html[data-daypart="sunset"] .sky i.b1,
html[data-daypart="sunrise"] .sky i.b2, html[data-daypart="sunset"] .sky i.b2 { filter: sepia(.35) saturate(1.6) hue-rotate(-12deg); }

/* Text set straight on the sky flips to light when the sky is dark */
html[data-sky="dark"] .page-head h1 { color: #F2F5FF !important; }
html[data-sky="dark"] .page-head p:not(.kicker), html[data-sky="dark"] .kicker { color: #C9D3F0 !important; }
/* who(): the name and age line under a heading keep their own colours, so they follow the heading here */
html[data-sky="dark"] .page-head p b, html[data-sky="dark"] .page-head p small, html[data-sky="dark"] .page-head p small * { color: inherit !important; }
html[data-sky="dark"] .page-head .back, html[data-sky="dark"] .page-head .back:hover { color: #DDE5FA !important; }
html[data-sky="dark"] .seg { background: rgba(255, 255, 255, .86) !important; }
html[data-sky="dark"] .panel, html[data-sky="dark"] .prow, html[data-sky="dark"] .stat { box-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 14px 30px -16px rgba(0, 0, 0, .55) !important; }

/* Sign-in panel: a lighter pane of whatever the sky is doing now */
.pitch { background:
    radial-gradient(520px 300px at 50% 105%, color-mix(in srgb, var(--tsky-4, #FFC87A) 70%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--tsky-1, #6FAEEE) 45%, #FFFFFF) 0%, color-mix(in srgb, var(--tsky-2, #A9D0F5) 25%, #FFFFFF) 45%, #FAFBFE 72%, color-mix(in srgb, var(--tsky-4, #E3F0FB) 30%, #FFFFFF) 100%) !important; }

@media (prefers-reduced-motion: reduce) { .sky i.b4 { transition: none; } }
html[data-sky="dark"] .page-head .btn-dark, html[data-sky="dark"] .page-head .btn-dark:hover:not(:disabled) { background: linear-gradient(180deg, #FFFFFF, #EEF3FA) !important; color: #0A2540 !important; box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 24px -12px rgba(0, 0, 0, .6) !important; }
html[data-sky="dark"] .top { background: rgba(255, 255, 255, .9) !important; }
/* On a dark sky, keep clouds soft so light text always has a dark ground */
html[data-sky="dark"] body::before, html[data-sky="dark"] .sky i.b1, html[data-sky="dark"] .sky i.b2 { opacity: min(var(--clouds, .4), .32) !important; }
html[data-sky="dark"] .page-head h1, html[data-sky="dark"] .page-head p { text-shadow: 0 1px 10px rgba(5, 11, 31, .45); }

/* Clouds: minimal. The big white banks are gone; one faint wisp drifts. */
body::before { display: none !important; }
.sky i.b2 { display: none !important; }
.sky i.b1 { opacity: min(var(--clouds, .2), .18) !important; filter: blur(8px); }
html[data-sky="dark"] .sky i.b1 { opacity: .08 !important; }

/* Text on the sky: colour chosen by contrast in fx.js, plus a soft scrim
   in the same tone so it holds over the sun or a passing cloud */
.page-head { position: relative; isolation: isolate; }
.page-head::before { content: ""; position: absolute; z-index: -1; left: -28px; top: -18px; width: min(640px, 80%); height: calc(100% + 36px); pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); filter: blur(6px); }
html[data-sky="dark"] .page-head::before { background: radial-gradient(closest-side, rgba(5, 11, 31, .38), rgba(5, 11, 31, 0)); }
html[data-sky="light"] .page-head h1 { color: #0A2540 !important; text-shadow: none; }
html[data-sky="light"] .page-head p, html[data-sky="light"] .kicker { color: #243B5A !important; text-shadow: none; }
html[data-sky="dark"] .page-head h1 { color: #FFFFFF !important; }
html[data-sky="dark"] .page-head p, html[data-sky="dark"] .kicker { color: #DDE5FA !important; }
/* Stage 3 live screens (stage3.js) set queue lines, notes and section titles straight on the sky, outside cards. */
html[data-sky="dark"] .s3-body > h2, html[data-sky="dark"] .s3-body > h3 { color: #FFFFFF; text-shadow: 0 1px 10px rgba(5, 11, 31, .45); }
html[data-sky="dark"] .s3-body > p, html[data-sky="dark"] .s3-body > label.field > span { color: #DDE5FA; text-shadow: 0 1px 10px rgba(5, 11, 31, .45); }
html[data-sky="dark"] .s3-body > p a:not(.btn) { color: #FFFFFF; }
html[data-sky="dark"] body::before { display: none !important; }
html[data-sky="dark"] .rail, html[data-sky="dark"] .phead { background: rgba(255, 255, 255, .96) !important; }

/* ===================================================================
   ARDai mark and name in the portal colours: navy letters, an azure
   arc, a gold sun over azure reflections. (The brand file itself is
   untouched; this only recolours the logo inside the portal.)
   =================================================================== */
.mark #m1d stop:nth-child(1) { stop-color: #0A2540; }
.mark #m1d stop:nth-child(2) { stop-color: #1E6BD6; }
.mark #m1d stop:nth-child(3) { stop-color: #4DB8FF; }
.mark #m1l stop:nth-child(1) { stop-color: #1E6BD6; }
.mark #m1l stop:nth-child(2) { stop-color: #0A2540; }
.mark #m1s stop:nth-child(1) { stop-color: #FFE08A; }
.mark #m1s stop:nth-child(2) { stop-color: #FFC04D; }
.mark #m1s stop:nth-child(3) { stop-color: #F59E0B; }
.mark .rf g:nth-child(1) { stroke: #1E6BD6; }
.mark .rf g:nth-child(2) { stroke: #3D86E3; }
.mark .rf g:nth-child(3) { stroke: #62A0EC; }
.mark .rf g:nth-child(4) { stroke: #8DBBF2; }
.mark .rf g:nth-child(5) { stroke: #B5D3F7; }
.wordmark { color: #0A2540 !important; background: none !important; -webkit-text-fill-color: currentColor !important; font-weight: 700; letter-spacing: -.02em; }
.wordmark span { color: #1E6BD6 !important; -webkit-text-fill-color: currentColor !important; background: none !important; }

/* Sign-in burst: a taller band so the hover has room to play */
.pitch { padding-bottom: 330px !important; }
.pitch .fx-rise { height: 350px !important; }

/* Time-of-day picker */
.sky-pick { position: relative; display: inline-flex; flex: none; }
body > .sky-pick { position: absolute; top: 16px; right: 172px; z-index: 6; }
.sky-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid #E3E8F0; background: rgba(255, 255, 255, .92); color: #1E3FA8; cursor: pointer;
  box-shadow: 0 1px 2px rgba(10, 37, 64, .06); transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--spring, ease); }
.sky-btn:hover { background: #FFFFFF; border-color: #C9D3E3; }
.sky-btn:active { transform: scale(.96); }
.sky-btn .ic, .sky-menu .ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sky-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; min-width: 236px; padding: 8px; border-radius: 14px; background: #FFFFFF; border: 1px solid #E3E8F0;
  box-shadow: 0 2px 6px rgba(10, 37, 64, .08), 0 18px 40px -18px rgba(10, 37, 64, .35); transform-origin: top right; animation: popIn 160ms var(--spring, ease) both; }
.sky-menu[hidden] { display: none; }
.sky-menu button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 46px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: #1E2F9E; font: 500 16px/1.2 var(--sans, Inter, sans-serif); text-align: left; cursor: pointer; }
.sky-menu button:hover, .sky-menu button:focus-visible { background: #F2F5FD; outline: none; }
.sky-menu button[aria-checked="true"] { background: #E9EDFC; color: #1A2A8F; font-weight: 600; }
.sky-menu button[data-sky="auto"] { border-bottom: 1px solid #EEF1F6; border-radius: 10px 10px 0 0; margin-bottom: 4px; font-size: 14px; color: #425466; }
.sky-menu button[data-sky="auto"][aria-checked="true"] { color: #1A2A8F; }
.top .who .sky-pick { margin-right: 4px; }

/* Background wave ribbon (fx.js) */
.sky .fx-wave { inset: 0; width: 100%; height: 100%; }

/* Row hover, Stripe style: the name turns azure and the arrow sits in a
   soft square that fills azure on hover */
@media (min-width: 861px) { .prow { grid-template-columns: 48px minmax(160px, 1.4fr) minmax(140px, 1.2fr) minmax(150px, 1fr) 150px 36px !important; } }
.prow .go { width: 36px !important; height: 36px !important; padding: 9px; border-radius: 10px; background: #EEF2FB; color: #1E5FD6 !important;
  transition: background-color 180ms ease, color 180ms ease, transform 220ms var(--spring, ease) !important; box-sizing: border-box; }
.prow:hover .go { background: #1E5FD6 !important; color: #FFFFFF !important; transform: none !important; }
.prow b { transition: color 160ms ease; }
.prow:hover b { color: #1E5FD6 !important; }
.table tbody tr.click { cursor: pointer; }
.table tbody tr.click b { transition: color 160ms ease; }
.table tbody tr.click:hover b { color: #1E5FD6 !important; }
.person:hover b, .file:hover b { color: #1E5FD6 !important; }

/* ===================================================================
   Sign-in, final: one screen. The logo sits on the sky with no pill
   (navy by day, white at night). The left panel is the headline with
   the hover burst beneath it; the story card is gone.
   =================================================================== */
#brand { background: none !important; box-shadow: none !important; padding: 0 !important; }

.pitch .story { display: none !important; }
.pitch h1 { font-size: clamp(34px, 3.4vw, 46px) !important; line-height: 1.06; margin-bottom: 14px; }
.pitch .lede { max-width: 44ch; }

@media (min-width: 861px) and (min-height: 600px) {
  html.signin-page, html.signin-page body { height: 100%; overflow: hidden; }  /* the sign-in page only: every other screen scrolls */
  .login { height: 100dvh; min-height: 0 !important; box-sizing: border-box; padding-top: 84px !important; padding-bottom: 24px !important; align-items: stretch !important; }
  .pitch { height: 100%; min-height: 0 !important; box-sizing: border-box; padding: 40px 40px 0 !important; justify-content: flex-start !important; }
  .pitch .fx-rise { height: 60% !important; }
  .auth-frame { height: 100%; min-height: 0; display: flex; }
  .auth { max-height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  /* Mock role list as a compact two-column grid so the card fits */
  .doclist { grid-template-columns: 1fr 1fr; gap: 6px !important; }
  .docpick { min-height: 44px !important; padding: 6px 10px !important; gap: 8px !important; }
  .docpick .avatar { width: 28px; height: 28px; font-size: 11px; flex: none; }
  .docpick b { font-size: 13px; line-height: 1.2; }
  .docpick span span { font-size: 11.5px !important; }
}
@media (min-width: 861px) and (min-height: 600px) {
  .auth { padding: 22px 26px 18px !important; }
  .auth h2 { font-size: 22px !important; margin-bottom: 2px !important; }
  .auth .sub { margin-bottom: 12px !important; font-size: 14px; }
  .auth .tenant { margin-bottom: 12px !important; }
  .auth .field { margin-bottom: 10px !important; }
  .auth .input { min-height: 42px !important; }
  .auth .btn-dark { min-height: 46px !important; }
  .auth .or { margin: 12px 0 8px !important; }
}
/* Night: the left pane becomes dark glass so the burst glows */
html[data-sky="dark"] .pitch { background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03)) !important;
  border: 1px solid rgba(255, 255, 255, .16) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .6) !important; }
html[data-sky="dark"] .pitch h1, html[data-sky="dark"] .pitch h1 em { color: #FFFFFF !important; }
html[data-sky="dark"] .pitch .lede { color: #C9D3F0 !important; }
html[data-sky="dark"] .pitch .eyebrow { background: rgba(255, 255, 255, .12) !important; color: #E6ECFF !important; border-color: rgba(255, 255, 255, .2) !important; }
@media (max-width: 860px) { .pitch { padding-bottom: 28px !important; min-height: 0 !important; height: auto !important; } .pitch .fx-rise { display: none !important; } }

/* Logo, final: dark "ARD" and mark at every hour; "ai" in sun gold */
.wordmark { color: #0A2540 !important; }
#brand .wordmark span { color: #FFB020 !important; }
.top .wordmark span { color: #F08C00 !important; }
/* Night only: the sign-in logo lightens so it reads on the dark sky ("ai" stays gold) */
html[data-sky="dark"] #brand .wordmark { color: #EEF2FF !important; }
html[data-sky="dark"] #brand .mark #m1l stop:nth-child(1) { stop-color: #FFFFFF; }
html[data-sky="dark"] #brand .mark #m1l stop:nth-child(2) { stop-color: #DCE6FF; }
html[data-sky="dark"] #brand .mark #m1d stop:nth-child(1) { stop-color: #DCE6FF; }
html[data-sky="dark"] #brand .mark #m1d stop:nth-child(2) { stop-color: #9CC3F2; }
html[data-sky="dark"] #brand .mark #m1d stop:nth-child(3) { stop-color: #FFFFFF; }
html[data-sky="dark"] #brand .mark g[clip-path] { stroke: transparent; }
html[data-sky="dark"] #brand .mark .rf g { stroke: #9CC3F2; }
/* Sign-in is one page only: the features section is not shown; the legal
   footer stays, as one slim line along the bottom of the same screen */
.features { display: none !important; }
@media (min-width: 861px) and (min-height: 600px) {
  .login { padding-bottom: 44px !important; }
  .site-foot { position: fixed !important; left: 0; right: 0; bottom: 0; z-index: 5; display: flex !important; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 18px;
    margin: 0 !important; padding: 8px 16px !important; border: 0 !important; background: none !important; font-size: 12px !important; }
  .site-foot p, .site-foot nav { margin: 0 !important; display: flex; gap: 14px; }
  .site-foot p, .site-foot a { color: #243B5A !important; }
  html[data-sky="dark"] .site-foot p, html[data-sky="dark"] .site-foot a { color: #C9D3F0 !important; }
}
/* The sign-in card is the form only: no role list and no mock note */
#devBox, #mockNote { display: none !important; }
@media (min-width: 861px) and (min-height: 600px) {
  .auth-frame { align-items: center; }
  .auth { padding: 34px 32px 26px !important; }
  .auth h2 { font-size: 26px !important; margin-bottom: 6px !important; }
  .auth .sub { margin-bottom: 22px !important; font-size: 15px; }
  .auth .tenant { margin-bottom: 20px !important; }
  .auth .field { margin-bottom: 16px !important; }
  .auth .input { min-height: 48px !important; }
  .auth .btn-dark { min-height: 52px !important; }
}
@media (min-width: 861px) and (min-height: 600px) { .pitch .fx-rise { height: max(140px, min(60%, calc(100% - 330px))) !important; } }

/* ===================================================================
   Performance (10 Nov): the working screens keep the sky's look but not its motion. The turning rays (a 200vmax
   masked conic gradient), the breathing sun, the drifting clouds and the frosted glass behind the top bar and side
   panel repainted the whole window on every frame and made typing and scrolling lag. The sign-in page keeps them.
   =================================================================== */
html:not(.signin-page) .sky i.rays, html:not(.signin-page) .sky.app-sky i.rays { display: none !important; }
html:not(.signin-page) .sky i, html:not(.signin-page) .dayline .sun { animation: none !important; }
html:not(.signin-page) .sky { contain: strict; }
html:not(.signin-page) .top { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(255, 255, 255, .94) !important; }
html:not(.signin-page) .rail { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(255, 255, 255, .92) !important; }
html:not(.signin-page) { background-attachment: scroll !important; }
