/* Demo-only additions on top of veriffi-tokens v1.3 + app.css + venue.css. Same palette and radii; no new design language. */
[hidden]{display:none!important}
.min-w-0{min-width:0}

/* demo banner */
.demo-strip{min-height:28px}
.tips-toggle{display:inline-flex;align-items:center;gap:.4rem;color:#C9CED6;cursor:pointer;margin:0}
.tips-toggle .form-check-input{margin:0;width:2em;height:1em;cursor:pointer;background-color:#3A4049;border-color:#4A5059}
.tips-toggle .form-check-input:checked{background-color:#ED4D12;border-color:#ED4D12}
.demo-off{opacity:.45;cursor:not-allowed}
.demo-off:hover{background:transparent!important}

/* onboarding wizard */
.wz-progress{display:flex;align-items:center;gap:.5rem}
.wz-dot{width:8px;height:8px;border-radius:50%;background:#D6D9DE;display:inline-block}
.wz-dot.wide{width:22px;border-radius:4px}
.wz-dot.done{background:#F5A37F}
.wz-dot.on{background:#ED4D12;box-shadow:0 0 0 3px rgba(237,77,18,.18)}
.wz-kicker{font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#F5A37F;margin-bottom:.75rem}
.wz-fact{background:#fff;border:1px solid #E4E6EA;border-left:3px solid #ED4D12;border-radius:.6rem;padding:.8rem 1rem;font-size:.88rem;color:#4A5059}
.wz-fact.dark{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.12);border-left-color:#ED4D12;color:#C9CED6;max-width:420px}
.wz-fact-h{font-weight:700;font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;color:#B93A0C;margin-bottom:.3rem}
.wz-fact.dark .wz-fact-h{color:#F5A37F}
.wz-chips{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}
.wz-chips.two{grid-template-columns:1fr 1fr}
.wz-chips.one{grid-template-columns:1fr}
.wz-chips .venue-opt{padding:.7rem .85rem}
.wz-nums{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem}
.wz-nums .venue-opt{justify-content:center;font-weight:700;font-size:1.05rem;padding:.65rem 0}
.wz-nums .venue-opt input{position:absolute;opacity:0;pointer-events:none}
.wz-nums .venue-opt:has(input:focus-visible){outline:2px solid #ED4D12;outline-offset:2px}
.wz-nums .venue-opt:has(input:checked){background:#FFF1EB;color:#A3350C}
.wz-notice{display:flex;gap:.6rem;align-items:flex-start;background:#EAF2FF;border:1px solid #CFE0FF;color:#1D3A8A;border-radius:.6rem;padding:.7rem .9rem}
.wz-notice i{color:#1D4ED8;margin-top:.1rem}
.auth-mobile-fact{display:none}
@media (max-width:991.98px){.auth-mobile-fact{display:block}}

/* cameras */
.cam-grid{display:grid;grid-template-columns:repeat(var(--cols,2),minmax(0,1fr));gap:1rem}
@media (max-width:767.98px){.cam-grid{grid-template-columns:1fr}.cam-grid>.cam-tile{grid-column:auto!important}}
.cam-tile{overflow:hidden}
.cam-tile.alerting{border-color:#D4430E;box-shadow:0 0 0 2px rgba(212,67,14,.35)}
.cam-live{overflow:hidden;border-radius:.5rem .5rem 0 0}
.cam-tile .cam-live{border-radius:0}
.cam-live.alerting{animation:vfPulse 1.6s ease-in-out infinite}
@keyframes vfPulse{0%,100%{box-shadow:inset 0 0 0 0 rgba(212,67,14,0)}50%{box-shadow:inset 0 0 0 3px rgba(212,67,14,.9)}}
.cam-scene{position:absolute;inset:0;display:grid;place-items:center;background:radial-gradient(ellipse at 30% 80%,rgba(255,255,255,.05),transparent 60%),linear-gradient(180deg,rgba(0,0,0,0) 55%,rgba(0,0,0,.25))}
.cam-scene::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,rgba(255,255,255,.025) 0 1px,transparent 1px 3px);animation:vfScan 6s linear infinite}
@keyframes vfScan{from{background-position:0 0}to{background-position:0 60px}}
.cam-shot{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.bbox{position:absolute;left:38%;top:10%;width:17%;height:42%;border:2px solid #FF3B1F;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.35)}
.bbox span{position:absolute;left:-2px;top:-1.35rem;background:#FF3B1F;color:#fff;font-size:.66rem;font-weight:700;padding:.05rem .35rem;border-radius:3px 3px 0 0;white-space:nowrap}
.cam-rec{position:absolute;top:.45rem;left:.5rem;font-size:.62rem;font-weight:700;letter-spacing:.06em;color:#fff;background:rgba(0,0,0,.45);padding:.05rem .4rem;border-radius:.25rem;display:inline-flex;align-items:center;gap:.3rem}
.cam-rec .dot{width:6px;height:6px;border-radius:50%;background:#FF3B1F;animation:vfBlink 1.2s steps(2,start) infinite}
@keyframes vfBlink{to{visibility:hidden}}
.cam-ts{position:absolute;top:.45rem;right:.5rem;font-size:.62rem;color:#E4E6EA;background:rgba(0,0,0,.45);padding:.05rem .4rem;border-radius:.25rem}
.cam-venue{position:absolute;right:.5rem;bottom:.4rem;font-size:.62rem;color:#C9CED6;background:rgba(0,0,0,.35);padding:.05rem .35rem;border-radius:.25rem;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cam-live.big .lbl,.cam-live.big .cam-rec,.cam-live.big .cam-ts,.cam-live.big .cam-venue{font-size:.8rem}
.cam-live.big .bbox span{font-size:.85rem;top:-1.6rem}
.cam-row{font-size:.88rem}
@media (prefers-reduced-motion:reduce){.cam-scene::after,.cam-rec .dot,.cam-live.alerting{animation:none}}

/* people */
.face-ph{width:96px;height:96px;border-radius:.5rem;background:#EEF0F3;display:grid;place-items:center;color:#8B939E;font-size:2rem;border:1px solid #E4E6EA}
.face-grid img{width:96px;height:96px;border-radius:.5rem;object-fit:cover;border:1px solid #E4E6EA}

/* alerts */
.row-fresh{animation:vfFresh 2.4s ease-out}
@keyframes vfFresh{from{background:#FFF1EB}to{background:transparent}}
.row-fresh>td{background:transparent}
.alert-tools .form-select,.alert-tools .form-control{width:auto}
@media (max-width:575.98px){.alert-tools .form-select,.alert-tools .form-control{width:100%}}
.qr-ph{width:96px;height:96px;flex:0 0 96px;border:1px dashed #C9CED6;border-radius:.5rem;display:grid;place-items:center;font-size:3rem;color:#4A5059;background:#fff}

/* tips */
/* Tip markers (round 4): yellow, so they read as "tip here" rather than an alert. No yellow token exists, so #FACC15 is used.
   Boxes: top-right corner inside the padding, content padded clear. Text items: inline to the right of the text. */
.tip-marker{display:inline-block;flex:0 0 auto;width:9px;height:9px;border-radius:50%;background:#FACC15;box-shadow:0 0 0 2px #fff,0 0 0 3.5px rgba(161,98,7,.45);vertical-align:middle;margin-left:.5rem;position:relative;cursor:help}
.tip-marker::before{content:"";position:absolute;inset:-9px}/* bigger tap target, invisible */
.tip-box{position:relative}
.tip-box>.tip-marker{position:absolute!important;top:7px;right:7px;margin:0;z-index:2}
.kpi.tip-box{padding-right:1.6rem}
.alert.tip-box,.rounded-3.tip-box,.form-switch.tip-box{padding-right:1.75rem!important}
.nav-link>.tip-marker{margin-left:auto}
.nav-link>.badge+.tip-marker,.nav-link>.ext+.tip-marker{margin-left:0}
.vf-tip{--bs-popover-max-width:300px;--bs-popover-border-color:#E4E6EA;--bs-popover-header-bg:#fff;--bs-popover-header-font-size:.88rem;--bs-popover-body-padding-y:.6rem;font-size:.84rem;box-shadow:0 8px 24px rgba(16,24,40,.12)}
.vf-tip .popover-header{font-weight:700;border-bottom:0;padding-bottom:0}
.vf-tip-emph{--bs-popover-border-color:#F5A37F}
.vf-tip-emph .popover-header{color:#B93A0C}
.vf-tour{z-index:2050}

/* reports */
.rchart{display:flex;align-items:flex-end;gap:2px;height:140px;border-bottom:1px solid #E4E6EA}
.rbar{flex:1;background:#ED4D12;border-radius:2px 2px 0 0;min-width:2px;opacity:.85}
.rbar:hover{opacity:1}

/* toasts / overlay */
#toasts{z-index:2100;margin-top:28px}
.modal{z-index:2060}.modal-backdrop{z-index:2055}
.popover{z-index:2070}

/* ---- round 2 (Michael's review) ---- */
/* Bigger, more prominent "Did you know?" / "What happens next" on the dark brand panel */
.wz-fact p{margin-bottom:.5rem}.wz-fact p:last-child{margin-bottom:0}
.wz-fact.dark.big{max-width:520px;padding:1.25rem 1.4rem;font-size:1.08rem;line-height:1.5;color:#fff;background:rgba(237,77,18,.12);border:1px solid rgba(237,77,18,.45);border-left:5px solid #ED4D12;border-radius:.8rem;box-shadow:0 10px 28px rgba(0,0,0,.25)}
.wz-fact.dark.big .wz-fact-h{font-size:.95rem;margin-bottom:.6rem;display:flex;align-items:center;gap:.45rem}
.wz-fact.dark.big .wz-fact-h i{font-size:1.25rem}

/* OTP cue under the 2FA box */
.otp-cue{font-weight:700;color:#B93A0C;font-size:.95rem;display:inline-flex;align-items:center;gap:.35rem;animation:vfCue 1.6s ease-in-out infinite}
@keyframes vfCue{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(1.04)}}

/* Alert flashing red (#B42318, the palette's danger red) */
@keyframes vfRedFlash{0%,100%{background-color:#B42318;box-shadow:0 0 0 0 rgba(180,35,24,.55)}50%{background-color:#8F1C13;box-shadow:0 0 0 6px rgba(180,35,24,0)}}
@keyframes vfRedEdge{0%,100%{box-shadow:0 0 0 0 rgba(180,35,24,0);border-left-color:#B42318}50%{box-shadow:0 0 0 3px rgba(180,35,24,.55);border-left-color:#8F1C13}}
.arrival.alert-flash{background:#B42318;animation:vfRedFlash 1.1s ease-in-out infinite}
.arrival.alert-flash .btn-light{color:#8F1C13}
.alert-card.alert-flash-card{border-left-color:#B42318;animation:vfRedEdge 1.1s ease-in-out infinite}
.chip.chip-flash{animation:vfChip 1.1s ease-in-out infinite}
@keyframes vfChip{0%,100%{background:#B42318;color:#fff}50%{background:#FDECEC;color:#8F1C13}}
.alert-topbar{position:fixed;top:0;left:0;right:0;z-index:2040;height:44px;display:flex;align-items:center;gap:.6rem;padding:0 1rem;color:#fff;text-decoration:none;background:#B42318;animation:vfRedFlash 1.1s ease-in-out infinite}
.alert-topbar:hover,.alert-topbar:focus{color:#fff;text-decoration:underline}
.alert-topbar:focus-visible{outline:3px solid #fff;outline-offset:-4px}
body.has-alertbar{padding-top:44px}
body.has-alertbar .mock-strip{top:44px}
body.has-alertbar .vf-topbar{top:72px}

/* Camera footage: scanlines + grain over the sample stills */
.cam-scan{position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,rgba(255,255,255,.04) 0 1px,transparent 1px 3px),radial-gradient(ellipse at center,transparent 55%,rgba(0,0,0,.35));animation:vfScan 6s linear infinite}
.cam-shot{filter:saturate(.8) contrast(1.05)}
.cam-shot-person{object-position:50% 20%}
.bbox.bbox-face{left:35%;top:16%;width:30%;height:48%}

@media (prefers-reduced-motion:reduce){.otp-cue,.arrival.alert-flash,.alert-card.alert-flash-card,.chip.chip-flash,.alert-topbar,.cam-scan{animation:none}}


/* round 3: blank camera scenes, alert shown as a tag (no person in the live view) */
.cam-shot.cam-mirror{transform:scaleX(-1)}
.cam-alert-tag{position:absolute;left:.5rem;top:2rem;background:#B42318;color:#fff;font-size:.7rem;font-weight:700;padding:.15rem .45rem;border-radius:4px;box-shadow:0 1px 3px rgba(0,0,0,.4);animation:vfChip 1.2s ease-in-out infinite}
.cam-live.big .cam-alert-tag{font-size:.9rem;top:2.4rem}
@media (prefers-reduced-motion:reduce){.cam-alert-tag{animation:none}}

/* round 4 */
/* Match score sits in its own row under the photos, never over a face */
.pair.has-match{display:grid;grid-template-columns:auto auto;gap:4px;align-content:start}
.pair-lg.has-match{grid-template-columns:1fr 1fr;gap:8px}
.pair.has-match .match{position:static;transform:none;grid-column:1/-1;justify-self:center;border:0;margin-top:2px}
.pair-lg.has-match .match{margin-top:0}
/* Dashboard greeting bar in Veriffi orange (#D4430E, white text 4.56:1, AA) */
.vf-topbar.vf-topbar-greet{background:var(--vf-color-brand-orange-600,#D4430E);border-bottom-color:#B93A0C;color:#fff}
.vf-topbar-greet h1{color:#fff;font-weight:700}
.vf-topbar-greet .text-muted{color:#fff!important}
.vf-topbar-greet .live-pill{background:#fff;color:#137A3F;border-color:#fff}
.vf-topbar-greet .btn-primary{--bs-btn-bg:#fff;--bs-btn-color:#A3350C;--bs-btn-border-color:#fff;--bs-btn-hover-bg:#FFF1EB;--bs-btn-hover-color:#A3350C;--bs-btn-hover-border-color:#FFF1EB;--bs-btn-active-bg:#FFE3D6;--bs-btn-active-color:#A3350C;color:#A3350C;font-weight:600}
.vf-topbar-greet .btn-primary:hover,.vf-topbar-greet .btn-primary:focus,.vf-topbar-greet .btn-primary:active{color:#A3350C}
.vf-topbar-greet .btn:focus-visible{outline:3px solid #fff;outline-offset:2px}
/* Back button on drill-down pages */
.vf-back{display:inline-flex;align-items:center;gap:.35rem;flex:0 0 auto;align-self:center;font-weight:600}
.vf-back:focus-visible{outline:3px solid #D4430E;outline-offset:2px}
/* Live countdown for the test alert */
.countdown-pill{display:inline-flex;align-items:center;gap:.3rem;background:#fff;border:1px solid #F8DDB5;color:#7A2E0E;font-weight:700;font-variant-numeric:tabular-nums;padding:.05rem .5rem;border-radius:999px;margin-left:.25rem}
/* Floating "Send another test alert" */
.resend-fab{position:fixed;top:38px;left:calc(124px + 50%);transform:translateX(-50%);z-index:1030}
body.has-alertbar .resend-fab{top:82px}
.resend-btn,.resend-wait{display:inline-flex;align-items:center;gap:.4rem;border-radius:999px;padding:.4rem .95rem;font-weight:600;box-shadow:0 4px 14px rgba(16,24,40,.22);white-space:nowrap}
.resend-btn{background:#FACC15;color:#1A1A1A;border:2px solid #fff}
.resend-btn:hover,.resend-btn:focus{background:#EAB308;color:#1A1A1A}
.resend-btn:focus-visible{outline:3px solid #1A1A1A;outline-offset:2px}
.resend-wait{background:#fff;color:#22262C;border:1px solid #E4E6EA;font-size:.85rem}
.resend-wait b{font-variant-numeric:tabular-nums;color:#A3350C}
body.has-alertbar .vf-mobilebar{top:72px}
@media (max-width:991.98px){
  .resend-fab{position:sticky;top:var(--fab-top,88px);left:auto;transform:none;display:flex;justify-content:center;padding:.4rem .75rem;background:rgba(244,245,247,.94);border-bottom:1px solid #E4E6EA;z-index:19}
  body.has-alertbar .resend-fab{top:calc(var(--fab-top,88px) + 44px)}
  .resend-btn,.resend-wait{box-shadow:none;font-size:.85rem;padding:.3rem .85rem}
  .sticky-save,.respond-bar{bottom:var(--bnav-h,58px)}
}
/* Add person photo */
.pe-preview{text-align:center}
.pe-photo{width:140px;height:140px;border-radius:.7rem;object-fit:cover;object-position:50% 30%;display:inline-block;background:#EEF0F3}
.pe-photo-empty{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:.25rem;color:#6B7280;border:2px dashed #D0D4DA}
.pe-photo-empty i{font-size:2rem}
.demo-pick{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}
.demo-face{padding:0;border:2px solid transparent;border-radius:.6rem;overflow:hidden;background:#EEF0F3;aspect-ratio:1/1;position:relative}
.demo-face img{width:100%;height:100%;object-fit:cover;object-position:50% 30%;display:block}
.demo-face:hover{border-color:#F5A37F}
.demo-face.on{border-color:#D4430E;box-shadow:0 0 0 2px rgba(212,67,14,.25)}
.demo-face.on::after{content:"\F26E";font-family:bootstrap-icons;position:absolute;right:4px;bottom:4px;background:#D4430E;color:#fff;border-radius:50%;width:20px;height:20px;font-size:.8rem;display:grid;place-items:center}
.demo-face:focus-visible{outline:3px solid #D4430E;outline-offset:2px}
@media print{
  .mock-strip,.vf-sidebar,.vf-topbar,.vf-mobilebar,.vf-bottomnav,.no-print,.page-head,#toasts,#arrivalSlot,#alertBar,.breadcrumb{display:none!important}
  .vf-content{padding:0!important;margin:0!important}
  body{background:#fff}
}
/* First-login note about tip markers: light yellow (#FEF9C3) with #FACC15 edge, #1A1A1A text (AA+). */
.tips-intro{position:fixed;right:24px;bottom:24px;z-index:1045;width:min(360px,calc(100vw - 24px));background:#FEF9C3;border:1px solid #FACC15;border-top:5px solid #FACC15;border-radius:.75rem;color:#1A1A1A;padding:.9rem 1rem 1rem;box-shadow:0 12px 32px rgba(16,24,40,.22);font-size:.9rem}
.tips-intro-h{display:flex;align-items:center;gap:.5rem;margin-bottom:.4rem;font-size:1rem}
.tips-intro .tip-sample{margin-left:0;width:12px;height:12px;cursor:default}
.tips-intro-btn{background:#FACC15;color:#1A1A1A;border:1px solid #CA8A04;font-weight:600}
.tips-intro-btn:hover,.tips-intro-btn:focus{background:#EAB308;color:#1A1A1A;border-color:#A16207}
.tips-intro-btn:focus-visible,.tips-intro .btn-close:focus-visible{outline:3px solid #1A1A1A;outline-offset:2px}
@media (max-width:991.98px){.tips-intro{left:12px;right:12px;width:auto;bottom:calc(var(--bnav-h,58px) + 12px)}}
/* Speaker toggle for the alert reminder chime */
.alert-topbar{padding-right:3.5rem}
.alert-topbar-sound{position:fixed;top:0;right:0;z-index:2041;height:44px;width:48px;border:0;background:transparent;color:#fff;font-size:1.15rem}
.alert-topbar-sound:hover,.alert-topbar-sound:focus-visible{background:rgba(0,0,0,.18)}
.alert-topbar-sound:focus-visible{outline:3px solid #fff;outline-offset:-4px}
.arrival-sound{flex:0 0 auto;width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.6);background:transparent;color:inherit;font-size:1rem;order:9}
.arrival-sound:focus-visible{outline:3px solid #fff;outline-offset:2px}
.vf-user [data-act=logout]{flex:0 0 auto;display:inline-flex;align-items:center}
/* Bigger Veriffi logo (aspect ratio kept): sidebar 34px -> 64px tall (~150px wide inside the 248px sidebar's padding);
   mobile app bar 26px -> 40px, the same height as the bar's menu/bell buttons, so the bar doesn't grow or clip. */
.vf-sidebar .brand{padding:1.4rem 1.25rem 1.1rem}
.vf-sidebar .brand img{height:64px;width:auto;max-width:100%;object-fit:contain}
.vf-mobilebar{padding-top:.55rem;padding-bottom:.55rem}
.vf-mobilebar img{height:40px;width:auto;max-width:55vw;object-fit:contain}
.vf-offcanvas .offcanvas-header img{height:40px!important;width:auto}

/* ===================== Dark mode =====================
   The Veriffi v1.3 design files define no dark theme, so this is a demo layer built on Bootstrap 5.3's
   data-bs-theme="dark" and derived from existing tokens: surfaces use the sidebar ink (#1D2127 / #2A2F37,
   divider #30353D); orange stays #D4430E (buttons) / #ED4D12 (accents) with #F5A37F (orange-200) for
   orange text and links; the only red is #B42318; tip markers stay #FACC15. Status chips use the token's
   *-border shade as text on a dark tint. Text meets WCAG AA (checked in qa4). */
.theme-toggle{display:inline-grid;place-items:center;width:28px;height:22px;padding:0;border:1px solid #30353D;border-radius:.4rem;background:transparent;color:#C9CED6;font-size:.8rem;line-height:1;cursor:pointer}
.theme-toggle:hover{color:#fff;border-color:#4A5059}
.theme-toggle:focus-visible{outline:2px solid #ED4D12;outline-offset:2px}
.demo-strip .theme-toggle{margin-right:.35rem}
.auth-form{position:relative}
.theme-float{position:absolute;top:14px;right:14px;width:40px;height:40px;font-size:1rem;border-color:#D5D8DE;color:#22262C;background:#fff;z-index:5}
.theme-float:hover{color:#000;border-color:#B5BAC2}

html[data-bs-theme=dark]{color-scheme:dark;
  --bs-body-bg:#15181D;--bs-body-bg-rgb:21,24,29;--bs-body-color:#E6E8EB;--bs-body-color-rgb:230,232,235;
  --bs-emphasis-color:#fff;--bs-emphasis-color-rgb:255,255,255;
  --bs-secondary-color:#B4BAC3;--bs-tertiary-color:#9AA1AC;
  --bs-secondary-bg:#2A2F37;--bs-secondary-bg-rgb:42,47,55;--bs-tertiary-bg:#1D2127;--bs-tertiary-bg-rgb:29,33,39;
  --bs-border-color:#30353D;--bs-border-color-translucent:rgba(255,255,255,.12);
  --bs-link-color:#F5A37F;--bs-link-color-rgb:245,163,127;--bs-link-hover-color:#FFD2BE;--bs-link-hover-color-rgb:255,210,190;
  --bs-heading-color:#F1F2F4;--bs-focus-ring-color:rgba(237,77,18,.4);
  --bs-primary-text-emphasis:#F5A37F;--bs-danger-text-emphasis:#F9CFCF;--bs-success-text-emphasis:#C5EAD4;
}
[data-bs-theme=dark] body{background:#15181D;color:#E6E8EB}
[data-bs-theme=dark] .text-muted,[data-bs-theme=dark] .text-muted-2,[data-bs-theme=dark] .text-secondary,[data-bs-theme=dark] .text-body-secondary{color:#A3AAB5!important}
[data-bs-theme=dark] .text-dark,[data-bs-theme=dark] .text-body{color:#E6E8EB!important}
[data-bs-theme=dark] .form-label,[data-bs-theme=dark] label{color:#C9CED6}
[data-bs-theme=dark] .bg-white,[data-bs-theme=dark] .bg-light,[data-bs-theme=dark] .bg-body{background-color:#1D2127!important}
[data-bs-theme=dark] .border,[data-bs-theme=dark] .border-top,[data-bs-theme=dark] .border-bottom,[data-bs-theme=dark] .border-start,[data-bs-theme=dark] .border-end{border-color:#30353D!important}
/* surfaces */
[data-bs-theme=dark] .vf-topbar{background:#1D2127;border-bottom-color:#30353D}
[data-bs-theme=dark] .card,[data-bs-theme=dark] .filters,[data-bs-theme=dark] .alert-card,[data-bs-theme=dark] .venue-opt,[data-bs-theme=dark] .kpi{--bs-card-bg:#1D2127;--bs-card-color:#E6E8EB;background-color:#1D2127;border-color:#30353D;color:#E6E8EB}
[data-bs-theme=dark] .card-header,[data-bs-theme=dark] .card-footer{background:#1D2127;border-color:#30353D;color:#F1F2F4}
[data-bs-theme=dark] .list-group{--bs-list-group-bg:#1D2127;--bs-list-group-color:#E6E8EB;--bs-list-group-border-color:#30353D;--bs-list-group-action-hover-bg:#2A2F37}
[data-bs-theme=dark] .vf-table thead th{background:#22262D;color:#B4BAC3;border-color:#30353D}
[data-bs-theme=dark] .vf-table td,[data-bs-theme=dark] .table>:not(caption)>*>*{border-color:#2A2F37;color:#E6E8EB}
[data-bs-theme=dark] .table{--bs-table-bg:transparent;--bs-table-color:#E6E8EB;--bs-table-hover-bg:#22262D;--bs-table-hover-color:#fff}
[data-bs-theme=dark] .vf-table tbody tr:hover{background:#22262D}
[data-bs-theme=dark] .table-cards tbody tr{border-color:#2A2F37}
[data-bs-theme=dark] .note-box,[data-bs-theme=dark] .dropzone,[data-bs-theme=dark] .qr-ph{background:#22262D;border-color:#30353D;color:#C9CED6}
[data-bs-theme=dark] .timeline::before{background:#30353D}
[data-bs-theme=dark] .timeline .mark{background:#1D2127}
[data-bs-theme=dark] .auth-form{background:#15181D}
[data-bs-theme=dark] .theme-float{background:#1D2127;color:#E6E8EB;border-color:#30353D}
[data-bs-theme=dark] .vf-bottomnav,[data-bs-theme=dark] .respond-bar,[data-bs-theme=dark] .sticky-save{background:#1D2127;border-top-color:#30353D}
[data-bs-theme=dark] .seg{background:#2A2F37}
[data-bs-theme=dark] .seg .on{background:#15181D;color:#fff}
[data-bs-theme=dark] .outcome-opts label,[data-bs-theme=dark] .quick button{background:#22262D;border-color:#3A4049;color:#E6E8EB}
[data-bs-theme=dark] .pdf-page{background:#1D2127;border-color:#30353D}
[data-bs-theme=dark] .pdf-page th,[data-bs-theme=dark] .pdf-page td{border-color:#2A2F37}
[data-bs-theme=dark] .face-grid .f button{background:#2A2F37;border-color:#3A4049;color:#E6E8EB}
[data-bs-theme=dark] .skel{background:linear-gradient(90deg,#2A2F37 25%,#30353D 50%,#2A2F37 75%);background-size:200% 100%}
/* forms */
[data-bs-theme=dark] .form-control,[data-bs-theme=dark] .form-select{background-color:#15181D;border-color:#3A4049;color:#E6E8EB}
[data-bs-theme=dark] .form-control::placeholder{color:#8B939E}
[data-bs-theme=dark] .form-check-input{background-color:#15181D;border-color:#5B6270}
[data-bs-theme=dark] .form-check-input:checked{background-color:#D4430E;border-color:#D4430E}
/* buttons */
[data-bs-theme=dark] .btn-secondary-vf{--bs-btn-bg:#2A2F37;--bs-btn-border-color:#3A4049;--bs-btn-color:#E6E8EB;--bs-btn-hover-bg:#30353D;--bs-btn-hover-border-color:#4A5059;--bs-btn-hover-color:#fff;--bs-btn-active-bg:#30353D;--bs-btn-active-color:#fff}
[data-bs-theme=dark] .btn-outline-primary{--bs-btn-color:#F5A37F;--bs-btn-border-color:#ED4D12;--bs-btn-hover-bg:#D4430E;--bs-btn-hover-border-color:#D4430E;--bs-btn-hover-color:#fff}
[data-bs-theme=dark] .btn-link{--bs-btn-color:#F5A37F;--bs-btn-hover-color:#FFD2BE}
[data-bs-theme=dark] .btn-outline-secondary{--bs-btn-color:#C9CED6;--bs-btn-border-color:#4A5059;--bs-btn-hover-bg:#2A2F37;--bs-btn-hover-color:#fff}
[data-bs-theme=dark] .btn-light{--bs-btn-bg:#fff;--bs-btn-color:#1A1A1A;--bs-btn-border-color:#fff}
[data-bs-theme=dark] .btn-close{filter:invert(1) grayscale(100%) brightness(200%)}
/* chips and pills: token *-border shade as text on a dark tint; red is solid #B42318 */
[data-bs-theme=dark] .chip-red,[data-bs-theme=dark] .live-pill.down,[data-bs-theme=dark] .conn-banner.down{background:#B42318;color:#fff;border-color:#B42318}
[data-bs-theme=dark] .chip-amber,[data-bs-theme=dark] .live-pill.warn,[data-bs-theme=dark] .conn-banner.warn{background:rgba(161,92,0,.28);color:#FDE2B8;border-color:rgba(253,226,184,.35)}
[data-bs-theme=dark] .chip-blue,[data-bs-theme=dark] .perm-note,[data-bs-theme=dark] .role-banner{background:rgba(29,78,216,.22);color:#CFE0FF;border-color:rgba(207,224,255,.3)}
[data-bs-theme=dark] .chip-green,[data-bs-theme=dark] .live-pill{background:rgba(19,122,63,.25);color:#C5EAD4;border-color:rgba(197,234,212,.3)}
[data-bs-theme=dark] .chip-grey{background:#2A2F37;color:#E2E4E8;border-color:#3A4049}
[data-bs-theme=dark] .chip-orange,[data-bs-theme=dark] .filter-chip,[data-bs-theme=dark] .env-pill{background:rgba(237,77,18,.18);color:#F5A37F;border-color:rgba(245,163,127,.4)}
[data-bs-theme=dark] .chip-purple,[data-bs-theme=dark] .new-data::before{background:rgba(107,63,184,.28);color:#E2D6FA;border-color:rgba(226,214,250,.3)}
[data-bs-theme=dark] .report-card .ico{background:rgba(237,77,18,.18);color:#F5A37F}
[data-bs-theme=dark] .report-card .ico.new{background:rgba(107,63,184,.28);color:#E2D6FA}
[data-bs-theme=dark] .set-nav .nav-link.active{background:rgba(237,77,18,.18);color:#F5A37F}
[data-bs-theme=dark] .annot{background:rgba(250,204,21,.12);border-color:#CA8A04;color:#FEF9C3}
[data-bs-theme=dark] .alert-info,[data-bs-theme=dark] .alert-primary{--bs-alert-bg:rgba(29,78,216,.22);--bs-alert-color:#CFE0FF;--bs-alert-border-color:rgba(207,224,255,.3);--bs-alert-link-color:#fff}
[data-bs-theme=dark] .alert-warning{--bs-alert-bg:rgba(161,92,0,.28);--bs-alert-color:#FDE2B8;--bs-alert-border-color:rgba(253,226,184,.35)}
[data-bs-theme=dark] .alert-danger{--bs-alert-bg:#B42318;--bs-alert-color:#fff;--bs-alert-border-color:#B42318;--bs-alert-link-color:#fff}
[data-bs-theme=dark] .alert-success{--bs-alert-bg:rgba(19,122,63,.25);--bs-alert-color:#C5EAD4;--bs-alert-border-color:rgba(197,234,212,.3)}
[data-bs-theme=dark] .alert-secondary,[data-bs-theme=dark] .alert-light{--bs-alert-bg:#22262D;--bs-alert-color:#E6E8EB;--bs-alert-border-color:#30353D}
[data-bs-theme=dark] .badge.text-bg-light{background:#2A2F37!important;color:#E6E8EB!important}
/* modals, popovers, toasts, dropdowns, offcanvas */
[data-bs-theme=dark] .modal{--bs-modal-bg:#1D2127;--bs-modal-color:#E6E8EB;--bs-modal-border-color:#30353D;--bs-modal-header-border-color:#30353D;--bs-modal-footer-border-color:#30353D}
[data-bs-theme=dark] .popover{--bs-popover-bg:#2A2F37;--bs-popover-border-color:#3A4049;--bs-popover-header-bg:#30353D;--bs-popover-header-color:#fff;--bs-popover-body-color:#E6E8EB;--bs-popover-arrow-border:#3A4049}
[data-bs-theme=dark] .toast{--bs-toast-bg:#2A2F37;--bs-toast-color:#E6E8EB;--bs-toast-border-color:#3A4049;--bs-toast-header-bg:#30353D;--bs-toast-header-color:#fff}
[data-bs-theme=dark] .dropdown-menu{--bs-dropdown-bg:#2A2F37;--bs-dropdown-color:#E6E8EB;--bs-dropdown-link-color:#E6E8EB;--bs-dropdown-link-hover-bg:#30353D;--bs-dropdown-border-color:#3A4049}
/* charts */
[data-bs-theme=dark] .chart-bars .b.s2{background:#F5A37F}
/* dark: muted text and labels from the vendor layer (#5B6270 etc. fail AA on dark) */
[data-bs-theme=dark] :is(.vf-topbar .crumbs,.card-header .sub,.kpi .label,.kpi .delta,.report-card p,.note-box .by,.state-block,.alert-card .meta,.alert-card .ago,.stat,.pdf-page .pdf-meta,.pdf-page th,.pdf-page .pdf-foot,.vf-bottomnav a,.dropzone,.qr-ph,.pe-photo-empty,.cam-prev,.face-ph){color:#A3AAB5}
[data-bs-theme=dark] .vf-bottomnav a.active,[data-bs-theme=dark] .vf-bottomnav a[aria-current]{color:#F5A37F}
[data-bs-theme=dark] :is(.form-label,.seg a,.seg button,.wz-fact,.stat b,.resend-wait){color:#C9CED6}
[data-bs-theme=dark] .kpi .value,[data-bs-theme=dark] .kpi .num{color:#F1F2F4}
[data-bs-theme=dark] .vf-sidebar .section,[data-bs-theme=dark] .vf-section-label,[data-bs-theme=dark] .vf-sidebar .venue [style*="color:#8b939e"],[data-bs-theme=dark] [style*="color:#8B939E"]{color:#A3AAB5!important}
[data-bs-theme=dark] :is(.seg .n,.quick button:hover,.filter-chip button,.dropzone i,.wz-fact-h,.otp-cue,.resend-wait b,.wz-nums .venue-opt:has(input:checked)){color:#F5A37F}
[data-bs-theme=dark] .timeline .mark.ok{color:#C5EAD4;border-color:#16A34A}
[data-bs-theme=dark] .timeline .mark.note{color:#A3AAB5;border-color:#5B6270}
[data-bs-theme=dark] .face-grid .f button{color:#F9CFCF}
/* dark: inline-styled notices from the views */
[data-bs-theme=dark] [style*="background:#EAF2FF"],[data-bs-theme=dark] [style*="background:#eaf2ff"]{background:rgba(29,78,216,.22)!important;border-color:rgba(207,224,255,.3)!important;color:#CFE0FF!important}
[data-bs-theme=dark] [style*="background:#FEF3E2"]{background:rgba(161,92,0,.28)!important;border-color:rgba(253,226,184,.35)!important;color:#FDE2B8!important}
[data-bs-theme=dark] [style*="background:#FDECEC"]{background:#B42318!important;border-color:#B42318!important;color:#fff!important}
[data-bs-theme=dark] [style*="background:#E8F6EE"],[data-bs-theme=dark] [style*="background:#e8f6ee"]{background:rgba(19,122,63,.25)!important;border-color:rgba(197,234,212,.3)!important;color:#C5EAD4!important}
[data-bs-theme=dark] [style*="background:#F3F4F6"]{background:#22262D!important;border-color:#30353D!important}
[data-bs-theme=dark] [style*="background:#fff1eb"]{background:rgba(237,77,18,.18)!important;color:#F5A37F!important}
[data-bs-theme=dark] [style*="background:#f3edfd"]{background:rgba(107,63,184,.28)!important;color:#E2D6FA!important}
[data-bs-theme=dark] [style*="color:#7A2E0E"]{color:#FDE2B8!important}
[data-bs-theme=dark] [style*="color:#A3350C"],[data-bs-theme=dark] [style*="color:#5B6470"]{color:#F5A37F!important}
[data-bs-theme=dark] [style*="color:#5B6470"]{color:#A3AAB5!important}
[data-bs-theme=dark] [style*="color:#B42318"]:not(i){color:#F9CFCF!important}
[data-bs-theme=dark] :is(.crumbs,.crumbs a,.kv dt){color:#A3AAB5}
[data-bs-theme=dark] .crumbs a:hover{color:#F5A37F}
[data-bs-theme=dark] .annot b{color:#FEF9C3}
/* red text on dark: #B42318 fails AA as text, so use its token border tint; solid red fills stay #B42318 */
[data-bs-theme=dark] .text-danger{color:#F9CFCF!important}
[data-bs-theme=dark] .pe-photo-empty{background:#15181D!important;border-color:#3A4049}
[data-bs-theme=dark] .chip.chip-flash,[data-bs-theme=dark] .cam-alert-tag{animation-name:vfChipDark}
@keyframes vfChipDark{0%,100%{background:#B42318;color:#fff;box-shadow:0 0 0 0 rgba(180,35,24,0)}50%{background:#B42318;color:#fff;box-shadow:0 0 0 4px rgba(180,35,24,.45)}}
[data-bs-theme=dark] .wz-notice{background:rgba(29,78,216,.22);border-color:rgba(207,224,255,.3);color:#CFE0FF}
[data-bs-theme=dark] .wz-notice i{color:#93B4F5}
[data-bs-theme=dark] .countdown-pill{background:#15181D;border-color:rgba(253,226,184,.35);color:#FDE2B8}
[data-bs-theme=dark] .vf-topbar-greet .btn-primary{--bs-btn-bg:#D4430E;--bs-btn-color:#fff;--bs-btn-border-color:#D4430E;--bs-btn-hover-bg:#ED4D12;--bs-btn-hover-color:#fff;--bs-btn-hover-border-color:#ED4D12;--bs-btn-active-bg:#ED4D12;--bs-btn-active-color:#fff}
[data-bs-theme=dark] .vf-topbar-greet .btn-primary:hover,[data-bs-theme=dark] .vf-topbar-greet .btn-primary:focus,[data-bs-theme=dark] .vf-topbar-greet .btn-primary:active{color:#fff}
[data-bs-theme=dark] .kpi .ico[style*="background:#FDECEC"]{background:#B42318!important;color:#fff!important}
[data-bs-theme=dark] [style*="background:#fff1eb" i]{background:rgba(237,77,18,.2)!important;color:#F5A37F!important}
[data-bs-theme=dark] [style*="background:#eaf2ff" i]{background:rgba(29,78,216,.22)!important;color:#CFE0FF!important}
[data-bs-theme=dark] [style*="background:#fef3e2" i]{background:rgba(161,92,0,.28)!important;color:#FDE2B8!important}
[data-bs-theme=dark] [style*="background:#e8f6ee" i]{background:rgba(19,122,63,.25)!important;color:#C5EAD4!important}
[data-bs-theme=dark] .vf-topbar-greet .btn-primary{color:#fff!important}
[data-bs-theme=dark] .form-text{color:#A3AAB5}
[data-bs-theme=dark] .tips-intro .btn-close{filter:none}
/* Get pricing (demo strip) is a button that opens the pricing form; styled like the strip link it replaced */
.mock-strip .strip-link{background:none;border:0;padding:0;color:#F5A37F;font:inherit;cursor:pointer}
.mock-strip .strip-link:hover,.mock-strip .strip-link:focus-visible{color:#fff;text-decoration:underline}
#prAnswers .kv{font-size:.85rem}
/* Round 6: compact Get pricing form. Scoped to this form; same tokens/components, tighter spacing only. */
#pricingModal .modal-header{padding-block:.75rem}
#pricingModal .modal-body{padding-block:.75rem}
#pricingModal .modal-footer{padding-block:.5rem}
#prForm .form-label{margin-bottom:.2rem;font-size:.85rem;font-weight:600}
#prForm .form-control,#prForm .form-select{padding-top:.3rem;padding-bottom:.3rem}
#prForm .invalid-feedback{margin-top:.15rem}
#prForm textarea.form-control{min-height:0}
#prAnswers{padding:.5rem .75rem;margin-top:.5rem}
#prAnswers .kv{gap:.2rem 1rem}
@media (max-width:575.98px){#prSt{padding-left:.5rem;padding-right:1.6rem;background-position:right .4rem center}#prP{padding-left:.5rem;padding-right:.5rem}}
@media (min-width:576px){#prAnswers .kv{grid-template-columns:auto 1fr auto 1fr;column-gap:1.25rem}}
/* dark: fixes from the AA scan */
[data-bs-theme=dark] .form-text,[data-bs-theme=dark] .text-body-secondary{color:#A3AAB5!important}
[data-bs-theme=dark] .link-secondary{color:#B4BAC3!important}
[data-bs-theme=dark] .link-secondary:hover{color:#E6E8EB!important}
[data-bs-theme=dark] .invalid-feedback,[data-bs-theme=dark] .form-control.is-invalid~.invalid-feedback{color:#F9CFCF}
[data-bs-theme=dark] .form-control.is-invalid,[data-bs-theme=dark] .form-select.is-invalid{border-color:#B42318}
[data-bs-theme=dark] .wz-fact:not(.dark){background:#1D2127;border-color:#30353D;border-left-color:#ED4D12}
[data-bs-theme=dark] .vf-tip-emph .popover-header,[data-bs-theme=dark] .vf-tip .popover-header{color:#F5A37F}
/* light: small AA near-misses from the vendor layer (4.3:1, 3.7:1), nudged to pass; same hues */
.vf-sidebar .section,.vf-section-label,.vf-sidebar .venue .text-uppercase{color:#9AA1AB!important}
.link-secondary{color:#5B6270!important}
@media (max-width:991.98px){.vf-bottomnav a.active{color:#D4430E}}
[data-bs-theme=dark] .link-secondary{color:#B4BAC3!important}
/* visible tick boxes (consent etc.): solid outline in both themes; switches and the tips toggle keep their own style */
.form-check-input[type=checkbox]:not([role=switch]){border:2px solid #000}
.form-check-input[type=checkbox]:not([role=switch]):checked{background-color:#D4430E;border-color:#D4430E}
.form-check-input[type=checkbox]:not([role=switch]):focus{border-color:#000;box-shadow:0 0 0 .2rem rgba(237,77,18,.3)}
.form-check-input[type=checkbox]:not([role=switch]):checked:focus{border-color:#D4430E}
.was-validated .form-check-input[type=checkbox]:not([role=switch]):invalid,.form-check-input[type=checkbox]:not([role=switch]).is-invalid{border-color:#dc3545}
[data-bs-theme=dark] .form-check-input[type=checkbox]:not([role=switch]){border-color:#D5D9E0;background-color:#15181D}
[data-bs-theme=dark] .form-check-input[type=checkbox]:not([role=switch]):focus{border-color:#fff}
[data-bs-theme=dark] .form-check-input[type=checkbox]:not([role=switch]):checked{background-color:#D4430E;border-color:#D4430E}
[data-bs-theme=dark] .was-validated .form-check-input[type=checkbox]:not([role=switch]):invalid,[data-bs-theme=dark] .form-check-input[type=checkbox]:not([role=switch]).is-invalid{border-color:#ea868f}
