/* Kayak KYCR reviewer app. Kayak family palette and Archivo type.
   Copyright (c) 2026 Kayak Innovations (OPC) Private Limited. All rights reserved. */
@font-face { font-family: Archivo; src: url(fonts/archivo-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Archivo; src: url(fonts/archivo-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Archivo; src: url(fonts/archivo-latin-800-normal.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Noto Sans Arabic'; src: url(fonts/NotoSansArabic-Regular.ttf) format('truetype'); font-display: swap; }

:root {
  --deep: #0E2F3C; --teal: #17807E; --amber: #EE9B1E; --slate: #3E5563; --foam: #CDE8E3; --mist: #EEF4F1;
  --ink: #0E2F3C; --muted: #3E5563; --bg: #F6F8F7; --card: #FFFFFF; --line: #D5DFDB;
  --ok: #1B7A4B; --warn: #9A5B00; --bad: #B3261E; --info: #17807E;
  --focus: #EE9B1E;
  --radius: 10px;
  font-family: Archivo, 'Noto Sans Arabic', system-ui, sans-serif;
  color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); line-height: 1.45; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button, input, select, textarea { font: inherit; }
[lang="ar"], .ar { font-family: 'Noto Sans Arabic', Archivo, sans-serif; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- slideshow ---------- */
.show { position: absolute; inset: 0; overflow: hidden; background: var(--deep); color: #fff; }
.show .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.show .slide.on { opacity: 1; }
.show .slide img, .show .slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.show .slide.on img { animation: drift 14s ease-out both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.show .slide .art { position: absolute; inset: 0; background: radial-gradient(120% 90% at 85% 10%, #17807E 0%, rgba(23,128,126,0) 55%), radial-gradient(90% 80% at 10% 100%, #EE9B1E 0%, rgba(238,155,30,0) 50%), var(--deep); }
.show .slide .art::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 48px 48px; }
.show .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,47,60,.88) 0%, rgba(14,47,60,.55) 45%, rgba(14,47,60,.15) 100%), linear-gradient(0deg, rgba(14,47,60,.75), rgba(14,47,60,0) 45%); pointer-events: none; }
.show .copy { position: absolute; left: clamp(20px, 6vw, 80px); bottom: clamp(70px, 12vh, 120px); max-width: min(560px, 80vw); }
.show .copy h2 { font-weight: 800; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.01em; }
.show .copy p { margin: 0; font-size: clamp(15px, 1.4vw, 19px); color: #E6F1EE; }
.show .copy { transition: opacity .6s ease, transform .6s ease; }
.show .copy.out { opacity: 0; transform: translateY(8px); }
.show .brand { position: absolute; left: clamp(20px, 6vw, 80px); top: 28px; height: 44px; }
.show .controls { position: absolute; left: clamp(20px, 6vw, 80px); bottom: 32px; display: flex; gap: 10px; align-items: center; }
.show .dot { width: 28px; height: 4px; border-radius: 2px; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.show .dot[aria-current="true"] { background: var(--amber); }
.show .pause { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 4px 12px; font-size: 13px; cursor: pointer; margin-left: 6px; }
.show .credit { position: absolute; right: 16px; bottom: 10px; font-size: 11px; color: rgba(255,255,255,.7); }
.show .credit a { color: inherit; }
@media (prefers-reduced-motion: reduce) { .show .slide { transition: none; } .show .slide.on img { animation: none; } }

/* ---------- login ---------- */
.login { position: fixed; inset: 0; }
.login .card { position: absolute; right: clamp(16px, 6vw, 80px); top: 50%; transform: translateY(-50%); width: min(340px, calc(100vw - 32px)); background: var(--card); color: var(--ink);
  border-radius: 14px; padding: 22px 22px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.login .card h1 { font-size: 18px; margin: 0 0 2px; font-weight: 800; }
.login .card .sub { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.login label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
.login input { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.login .primary { margin-top: 14px; width: 100%; }
.login .fine { font-size: 11.5px; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 720px) {
  .login .card { top: auto; bottom: 16px; transform: none; right: 16px; }
  .show .copy { bottom: auto; top: 96px; }
  .show .controls { bottom: auto; top: 220px; }
}

/* ---------- controls ---------- */
.btn { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; }
.btn:hover { border-color: var(--teal); }
.btn.primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn.primary:hover { background: #136c6a; }
.btn.danger { color: var(--bad); border-color: #e7c2bf; }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.msg { font-size: 13px; margin-top: 10px; padding: 8px 10px; border-radius: 8px; }
.msg.err { background: #fdecea; color: var(--bad); }
.msg.ok { background: #e7f4ee; color: var(--ok); }
.msg:empty { display: none; }

/* ---------- app shell ---------- */
.top { display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top img { height: 40px; }
.top .who { margin-left: auto; font-size: 13px; color: var(--muted); display: flex; gap: 12px; align-items: center; }
.shell { display: grid; grid-template-columns: 320px 1fr; min-height: calc(100vh - 61px); }
.side { border-right: 1px solid var(--line); background: var(--card); padding: 16px; overflow: auto; }
.main { position: relative; padding: 20px; min-width: 0; }
@media (max-width: 900px) { .shell { grid-template-columns: 1fr; } .side { border-right: 0; border-bottom: 1px solid var(--line); } }
.side h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 8px; }
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 14px; text-align: center; background: var(--mist); }
.drop.over { border-color: var(--teal); background: var(--foam); }
.drop p { margin: 4px 0; font-size: 13px; color: var(--muted); }
.limits { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.jobs { list-style: none; padding: 0; margin: 0; }
.jobs li button { width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: 8px; padding: 8px 10px; cursor: pointer; display: grid; gap: 2px; }
.jobs li button:hover, .jobs li button[aria-current="true"] { background: var(--mist); border-color: var(--line); }
.jobs .meta { font-size: 12px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 1px 8px; border: 1px solid currentColor; white-space: nowrap; }
.badge::before { font-size: 11px; }
.b-ok { color: var(--ok); } .b-ok::before { content: '✓'; }
.b-warn { color: var(--warn); } .b-warn::before { content: '!'; }
.b-bad { color: var(--bad); } .b-bad::before { content: '✕'; }
.b-info { color: var(--info); } .b-info::before { content: '•'; }

/* empty state panel uses the slideshow */
.empty { position: relative; height: calc(100vh - 101px); min-height: 420px; border-radius: 14px; overflow: hidden; }
.empty .cta { position: absolute; right: 24px; top: 24px; background: rgba(255,255,255,.95); color: var(--ink); border-radius: 12px; padding: 14px 16px; max-width: 280px; font-size: 14px; }

/* ---------- review ---------- */
.jobhead { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.jobhead h1 { font-size: 20px; margin: 0 8px 0 0; }
.jobhead .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.coverage { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; padding: 0; list-style: none; }
.coverage li { font-size: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
.doctabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.doctabs button { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 6px 12px; cursor: pointer; font-weight: 600; }
.doctabs button[aria-selected="true"] { border-color: var(--teal); box-shadow: inset 0 -3px 0 var(--teal); }
.review { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .review { grid-template-columns: 1fr; } }
.viewer { position: sticky; top: 76px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.viewer .pages { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.viewer .stage { position: relative; }
.viewer img { width: 100%; height: auto; display: block; border-radius: 6px; background: var(--mist); }
.viewer .hl { position: absolute; border: 3px solid var(--amber); background: rgba(238,155,30,.18); border-radius: 4px; pointer-events: none; display: none; }
.viewer .hl.on { display: block; }
.viewer .ev { font-size: 13px; margin-top: 8px; color: var(--muted); min-height: 1.4em; }
.fields { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.reasons { margin: 0; padding: 10px 14px 10px 30px; font-size: 13px; background: #fff8ec; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.statuses { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; }
.field { padding: 10px 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr auto; gap: 4px 12px; align-items: start; }
.field:focus-within, .field.focus { background: #fffaf0; }
.field .name { font-weight: 600; font-size: 13px; }
.field .name small { display: block; font-weight: 400; color: var(--muted); }
.field .val { font-size: 15px; word-break: break-word; unicode-bidi: plaintext; }
.field .val .raw { display: block; font-size: 12px; color: var(--muted); }
.field .val del { color: var(--muted); }
.field .side { padding: 0; border: 0; background: none; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; overflow: visible; }
.field .btns { display: flex; gap: 6px; margin-top: 4px; }
nav.side { position: sticky; top: 61px; max-height: calc(100vh - 61px); align-self: start; }
@media (max-width: 900px) { nav.side { position: static; max-height: none; } }
.field .why { grid-column: 2 / 4; font-size: 12px; color: var(--warn); margin: 0; }
.field .checks { grid-column: 2 / 4; font-size: 12px; color: var(--muted); }
.field form { grid-column: 1 / 4; display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; background: var(--mist); padding: 10px; border-radius: 8px; }
.field form input { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
@media (max-width: 600px) { .field { grid-template-columns: 1fr; } .field .why, .field .checks, .field form { grid-column: 1; } .field form { grid-template-columns: 1fr; } }
.rawtext { white-space: pre-wrap; font-size: 13px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; unicode-bidi: plaintext; max-height: 360px; overflow: auto; }
.status-line { font-size: 13px; color: var(--muted); }
@media print { .top, .side, .actions, .viewer .pages, .field form, .btn { display: none !important; } .shell { display: block; } .review { display: block; } }

/* ---------- OCR -> ICR stage (animated, over the slideshow) ---------- */
.show .stage { position: absolute; left: clamp(20px, 6vw, 80px); top: clamp(88px, 13vh, 132px); width: min(620px, calc(100vw - 500px), calc((100vh - 440px) * 1.75)); z-index: 2; pointer-events: none; }
.show.compact .stage { top: 24px; left: 24px; width: min(560px, calc(100% - 340px)); }
.stage-svg { width: 100%; height: auto; display: block; overflow: visible; font-family: Archivo, 'Noto Sans Arabic', sans-serif; }
.stage-svg .ar { font-family: 'Noto Sans Arabic', Archivo, sans-serif; }
.stage-cap { margin: 10px 0 0; font-size: 14px; color: #E6F1EE; min-height: 2.6em; transition: opacity .4s ease; max-width: 600px; }
.stage.run .stage-cap { animation: capIn .6s ease both; }
@keyframes capIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* rail and chips */
.stage .rail-line { stroke: rgba(255,255,255,.22); stroke-width: 2; }
.stage .rail-fill { stroke: var(--amber); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.2s ease; }
.stage[data-phase="ocr"] .rail-fill { stroke-dashoffset: 600; }
.stage[data-phase="icr"] .rail-fill { stroke-dashoffset: 400; }
.stage[data-phase="aicr"] .rail-fill { stroke-dashoffset: 196; }
.stage[data-phase="review"] .rail-fill { stroke-dashoffset: 0; }
.stage .chip rect { fill: rgba(14,47,60,.85); stroke: rgba(255,255,255,.35); stroke-width: 1.2; transition: fill .5s, stroke .5s; }
.stage .chip text { fill: rgba(255,255,255,.75); font-size: 13px; font-weight: 600; text-anchor: middle; transition: fill .5s; }
.stage[data-phase="ocr"] .c0 rect, .stage[data-phase="icr"] .c1 rect, .stage[data-phase="aicr"] .c2 rect, .stage[data-phase="review"] .c3 rect { fill: var(--amber); stroke: var(--amber); }
.stage[data-phase="ocr"] .c0 text, .stage[data-phase="icr"] .c1 text, .stage[data-phase="aicr"] .c2 text, .stage[data-phase="review"] .c3 text { fill: var(--deep); }
.stage.run[data-phase] .chip rect { transform-box: fill-box; transform-origin: center; }
.stage.run[data-phase="ocr"] .c0, .stage.run[data-phase="icr"] .c1, .stage.run[data-phase="aicr"] .c2, .stage.run[data-phase="review"] .c3 { animation: pop .5s ease; transform-box: fill-box; transform-origin: center; }
@keyframes pop { 50% { transform: scale(1.08); } }

/* document */
.stage .doc { animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.stage .doc-card { fill: #F7FBFA; }
.stage .doc-head { fill: var(--teal); }
.stage .doc-title { fill: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.stage .doc-water { fill: rgba(179,38,30,.13); font-size: 40px; font-weight: 800; letter-spacing: .1em; }
.stage .doc-photo { fill: #CDE8E3; }
.stage .doc-photo-in { fill: #8FBDB7; }
.stage .ln { fill: #3E5563; }
.stage .ln.l5, .stage .ln.l6 { fill: #9AAAB1; }
.stage .scribble-doc { fill: none; stroke: #0E2F3C; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.stage .bx { fill: rgba(238,155,30,.12); stroke: var(--amber); stroke-width: 1.6; opacity: 0; }
.stage .beam { opacity: 0; }
.stage.run[data-phase="ocr"] .beam { animation: scan 2.6s cubic-bezier(.5,0,.5,1) .1s 1 both; }
@keyframes scan { 0% { opacity: 0; transform: translateY(0); } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(300px); } }
.stage.run[data-phase="ocr"] .bx { animation: boxIn .35s ease both; }
.stage.run[data-phase="ocr"] .b1 { animation-delay: .45s; } .stage.run[data-phase="ocr"] .b2 { animation-delay: .7s; }
.stage.run[data-phase="ocr"] .b3 { animation-delay: .95s; } .stage.run[data-phase="ocr"] .b4 { animation-delay: 1.2s; }
.stage.run[data-phase="ocr"] .b5 { animation-delay: 1.5s; } .stage.run[data-phase="ocr"] .b6 { animation-delay: 2.2s; }
@keyframes boxIn { from { opacity: 0; transform: scale(1.15); } to { opacity: 1; transform: none; } }
.stage .bx { transform-box: fill-box; transform-origin: center; }
.stage[data-phase="icr"] .bx, .stage[data-phase="aicr"] .bx, .stage[data-phase="review"] .bx { opacity: .55; }
.stage[data-phase="icr"] .b5 { opacity: 1; stroke: #5FD3C8; fill: rgba(95,211,200,.18); }

/* flying glyphs */
.stage .g { fill: var(--amber); font-size: 16px; font-weight: 800; opacity: 0; }
.stage.run .g { animation: fly 1.4s ease-in-out both; }
.stage.run .g1 { animation-delay: .6s; } .stage.run .g2 { animation-delay: .8s; } .stage.run .g3 { animation-delay: 1s; }
.stage.run .g4 { animation-delay: 1.2s; } .stage.run .g5 { animation-delay: 1.4s; } .stage.run .g6 { animation-delay: 1.6s; }
@keyframes fly { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(70px, -20px); } }

/* right panel */
.stage .panel { fill: rgba(14,47,60,.78); stroke: rgba(95,211,200,.45); stroke-width: 1.2; }
.stage .pane { opacity: 0; transition: opacity .5s ease; }
.stage[data-phase="ocr"] .p-ocr, .stage[data-phase="icr"] .p-icr, .stage[data-phase="aicr"] .p-fields, .stage[data-phase="review"] .p-fields { opacity: 1; }
.stage .pane-h { fill: #5FD3C8; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.stage .mono { fill: #fff; font-family: 'DejaVu Sans Mono', ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
.stage .mono.ar { font-family: 'Noto Sans Arabic', sans-serif; font-size: 16px; }
.stage .mono.dim { fill: rgba(255,255,255,.55); font-size: 11.5px; }
.stage .type { transform-box: fill-box; transform-origin: left center; transform: scaleX(1); }
.stage .t2 { transform-origin: right center; }
.stage.run[data-phase="ocr"] .type { animation: typeOn .9s steps(18, end) both; }
.stage.run[data-phase="ocr"] .t1 { animation-delay: .6s; } .stage.run[data-phase="ocr"] .t2 { animation-delay: 1.2s; }
.stage.run[data-phase="ocr"] .t3 { animation-delay: 1.8s; } .stage.run[data-phase="ocr"] .t4 { animation-delay: 2.4s; }
@keyframes typeOn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.stage .hand { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 0; }
.stage.run[data-phase="icr"] .hand { animation: draw 1.6s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }
.stage .seg rect { fill: none; stroke: #5FD3C8; stroke-width: 1.2; stroke-dasharray: 4 3; opacity: 0; }
.stage.run[data-phase="icr"] .seg rect { animation: fadeIn .4s ease 1.7s both; }
.stage .chars text { fill: var(--amber); font-size: 26px; font-weight: 800; text-anchor: middle; opacity: 0; }
.stage.run[data-phase="icr"] .chars text { animation: rise .45s ease both; }
.stage.run[data-phase="icr"] .chars text:nth-child(1) { animation-delay: 2.0s; } .stage.run[data-phase="icr"] .chars text:nth-child(2) { animation-delay: 2.12s; }
.stage.run[data-phase="icr"] .chars text:nth-child(3) { animation-delay: 2.24s; } .stage.run[data-phase="icr"] .chars text:nth-child(4) { animation-delay: 2.36s; }
.stage.run[data-phase="icr"] .chars text:nth-child(5) { animation-delay: 2.48s; } .stage.run[data-phase="icr"] .chars text:nth-child(6) { animation-delay: 2.6s; }
.stage .icr-out { fill: #fff; font-size: 22px; font-weight: 700; opacity: 0; }
.stage .icr-out.ar { font-size: 22px; }
.stage.run[data-phase="icr"] .icr-out { animation: fadeIn .5s ease 3.0s both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.stage .k { fill: rgba(255,255,255,.6); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.stage .v { fill: #fff; font-size: 15px; font-weight: 700; }
.stage .v.ar { font-size: 16px; }
.stage .chk { fill: #5FD3C8; font-size: 12px; font-weight: 700; }
.stage .row { opacity: 0; }
.stage[data-phase="aicr"] .row, .stage[data-phase="review"] .row { opacity: 1; }
.stage.run[data-phase="aicr"] .row { animation: slideIn .5s ease both; }
.stage.run[data-phase="aicr"] .r1 { animation-delay: .2s; } .stage.run[data-phase="aicr"] .r2 { animation-delay: .5s; }
.stage.run[data-phase="aicr"] .r3 { animation-delay: .8s; } .stage.run[data-phase="aicr"] .r4 { animation-delay: 1.1s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.stage .chk { opacity: 0; }
.stage[data-phase="review"] .chk { opacity: 1; }
.stage.run[data-phase="aicr"] .chk { animation: fadeIn .4s ease 1.8s both; }
.stage .tick { opacity: 0; transform-box: fill-box; transform-origin: center; }
.stage .tick circle { fill: var(--ok); }
.stage .tick path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.stage[data-phase="review"] .tick { opacity: 1; }
.stage.run[data-phase="review"] .tick { animation: boxIn .35s ease both; }
.stage.run[data-phase="review"] .r1 .tick { animation-delay: .3s; } .stage.run[data-phase="review"] .r2 .tick { animation-delay: .6s; }
.stage.run[data-phase="review"] .r3 .tick { animation-delay: .9s; } .stage.run[data-phase="review"] .r4 .tick { animation-delay: 1.2s; }
.stage .badge { opacity: 0; }
.stage .badge rect { fill: var(--amber); }
.stage .badge text { fill: var(--deep); font-size: 12.5px; font-weight: 800; text-anchor: middle; }
.stage[data-phase="review"] .badge { opacity: 1; }
.stage.run[data-phase="review"] .badge { animation: rise .5s ease 1.6s both; }

.stage.held *, .stage.held { animation-play-state: paused !important; }
@media (max-width: 900px) { .login .show .stage { display: none; } }
@media (max-width: 1100px) { .show.compact .stage { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .stage *, .stage.run * { animation: none !important; transition: none !important; }
  .stage[data-phase="ocr"] .bx, .stage[data-phase="icr"] .seg rect, .stage[data-phase="icr"] .chars text, .stage[data-phase="icr"] .icr-out { opacity: 1; }
}
@media (max-height: 640px) { .login .show .stage { display: none; } }
