/* Dashboard (check-guest.html) in the new design. The page's own scripts still
   write inline styles onto rows and panels; these rules give everything else
   the new look and keep those inline writes readable. */
body.dash-body { font-family: var(--f-ui) !important; background: var(--bg) !important; color: var(--ink); }
.dash-body #cursor-glass { display: none; }
.dash { padding: calc(110px + env(safe-area-inset-top)) 0 140px; position: relative; z-index: 1; }
.dash-wrap { width: min(1140px, 100% - 32px); margin: 0 auto; }
.dash-nav { width: min(1140px, calc(100% - 24px)) !important; }
.dash-me { width: 44px; height: 44px; border-radius: 50%; background-color: var(--mint); background-image: linear-gradient(135deg, var(--mint), #38B4FF); color: var(--mint-ink); font-weight: 700; display: grid; place-items: center; font-size: 17px; }
.dash-hello { margin: 0 0 26px; }
.dash-hello h1 { font-size: clamp(40px, 9vw, 76px); font-weight: 600; letter-spacing: -.05em; line-height: .98; margin: 14px 0 0; }
.dash-hello h1 em { font-family: var(--f-display); font-weight: 400; }
.dash-sub-title { display: none; }
.dash-sub { color: var(--ink-2); font-size: 17px; margin: 14px 0 0; max-width: 36em; }
.notice { padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(82, 255, 165,.25); background: rgba(82, 255, 165,.06); color: var(--ink-2); font-size: 14px; margin: 0 0 18px; }
#mobile-flow-notice-wrap { display: none; }
.gate { text-align: center; padding: 40px 22px; margin-top: 10px; }
.gate-shield { width: 64px; height: 64px; margin: 0 auto 18px; color: var(--mint); filter: drop-shadow(0 0 24px rgba(82, 255, 165,.5)); }
.gate .h3 em { font-family: var(--f-display); font-weight: 400; }
.dash-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.dash-grid > *, .dash-main > *, .dash-side > * { min-width: 0; }
.dash-main, .dash-side { display: grid; gap: 14px; align-content: start; }
@media (min-width: 940px) { .dash-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } .dash-side { position: sticky; top: 100px; } }

.panel { padding: 22px 20px !important; border-radius: 26px !important; text-align: left !important; background: linear-gradient(180deg, rgba(27, 27, 27,.82), rgba(11, 11, 11,.88)) !important; border: 1px solid var(--line) !important; margin: 0 !important; max-width: none !important; width: auto !important; }
.panel h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-note { color: var(--ink-3); font-size: 14px; margin-top: 6px; line-height: 1.5; }
.quota-line { font: 500 13px/1.4 var(--f-mono); color: var(--mint); margin: 12px 0 0; letter-spacing: .02em; }
.inline-form { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.inline-form .field-input { flex: 1 1 240px; height: 56px; font-size: 16px; }
.inline-form.big .field-input { height: 64px; }
.inline-form.big .btn { --bh: 64px; padding: 0 26px; }
@media (max-width: 560px) { .inline-form .btn { width: 100%; } }
.msg { font-size: 14px; margin-top: 10px; }
.msg.bad, #scan-form-error { color: var(--red); }
.howto { margin-top: 16px; border-radius: 18px; border: 1px solid var(--line); }
.howto summary { list-style: none; padding: 14px 16px; display: flex; justify-content: space-between; cursor: pointer; font-size: 15px; color: var(--ink-2); }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::after { content: "+"; color: var(--mint); font-size: 20px; line-height: 1; transition: transform .3s; }
.howto[open] summary::after { transform: rotate(45deg); }
.howto-body { padding: 0 16px 16px; font-size: 14px; color: var(--ink-2); }
.howto-body ol { padding-left: 20px; display: grid; gap: 8px; margin: 10px 0 16px; }
.steps3 { flex-direction: column; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.steps3 > div { display: flex; gap: 12px; align-items: flex-start; }
.steps3 span { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--mint); color: var(--mint); display: grid; place-items: center; font: 600 11px/1 var(--f-mono); }
.blocked { margin-top: 16px; padding: 18px; border-radius: 18px; background: rgba(255, 210, 124,.06); border: 1px solid rgba(255, 210, 124,.3); }
.status { margin-top: 16px; padding: 18px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); }
.status-text { font-size: 17px; font-weight: 600; }

/* calendar rows and history cards are built by the page script with inline
   styles; keep them on the new surfaces */
#calendar-list > * { border-radius: 18px !important; background: rgba(255,255,255,.025) !important; border-color: var(--line) !important; font-family: var(--f-ui) !important; }
#calendar-list button { font-family: var(--f-ui) !important; }
#calendar-list > button:hover { background: rgba(82, 255, 165,.06) !important; border-color: rgba(82, 255, 165,.3) !important; }
#calendar-list input { font-family: var(--f-ui) !important; border-radius: 12px !important; }
.hist { flex-direction: column; gap: 6px; margin-top: 14px; }
.hist > button { width: 100% !important; border-radius: 16px !important; background: rgba(255,255,255,.025) !important; border: 1px solid var(--line) !important; font-family: var(--f-ui) !important; transition: transform .3s var(--ease), border-color .3s !important; }
.hist > button:hover { transform: translateX(4px); border-color: rgba(82, 255, 165,.35) !important; }
#manual-check-toggle, #manual-check-hide { font-family: var(--f-ui) !important; border-radius: 999px !important; }
#scan-panel { transition: none; }

/* next arrival + quota */
.next { position: relative; overflow: hidden; }
.next::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(82, 255, 165,.22), transparent 65%); pointer-events: none; }
.next .when { font: 600 clamp(44px, 11vw, 62px)/1 var(--f-mono); letter-spacing: -.05em; margin: 12px 0 6px; }
.next .who { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.next .who .ava { width: 50px; height: 50px; font-size: 20px; background-color: #38B4FF; background-image: linear-gradient(135deg, #38B4FF, var(--mint)); }
.next .sc { margin-left: auto; text-align: right; }
.next .sc b { display: block; font: 600 30px/1 var(--f-mono); letter-spacing: -.04em; }
.quota { display: flex !important; align-items: center; gap: 18px; }
.quota[style*="none"] { display: none !important; }
.qr { width: 88px; height: 88px; position: relative; flex: none; }
.qr svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.qr b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 24px/1 var(--f-mono); }
.qr .p { transition: stroke-dashoffset 1.6s var(--ease); }
.sample-link { display: grid; gap: 6px; transition: border-color .3s, transform .4s var(--ease); }
.sample-link:hover { border-color: rgba(82, 255, 165,.4) !important; transform: translateY(-3px); }
.sample-link b { font-size: 17px; font-weight: 600; }

/* overlay copy in the new type */
#scan-video-overlay, #scan-video-overlay button { font-family: var(--f-ui) !important; }
#scan-video-ticker { font-weight: 600 !important; letter-spacing: -.02em; }

.dash-foot { padding: 30px 0 120px; }
.dash-foot .row { font-size: 13px; }
.dash-tabs { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90; height: 70px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; border-radius: 26px; background: rgba(11, 11, 11,.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 0 0 1px var(--line-2), 0 20px 50px -10px #000; max-width: 460px; margin: 0 auto; }
/* A bar fixed over a scrolling page is the worst place for a
   backdrop-filter: the blur is recomputed every frame of every scroll.
   This bar only ever shows on touch screens, which are exactly the
   devices that can least afford it, and the page behind it is dark
   enough that an opaque panel looks the same. */
@media (hover: none), (pointer: coarse) { .dash-tabs { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11, 11, 11,.97); } }
.dash-tabs a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-3); }
.dash-tabs svg { width: 22px; height: 22px; }
.dash-tabs .fab { width: 62px; height: 62px; border-radius: 50%; background: var(--mint); color: var(--mint-ink); margin: -30px auto 0; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--bg), var(--glow); }
.dash-tabs .fab svg { width: 26px; height: 26px; }
@media (min-width: 940px) { .dash-tabs { display: none; } .dash-foot { padding-bottom: 40px; } }

/* desktop scan radar (/v/radar.js) */
#scan-radar { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(8px, 1.8vh, 22px); padding: 2vh 0 calc(6vh + 104px); overflow: hidden; background: radial-gradient(70% 60% at 50% 40%, #141414, #000000 72%); }
#scan-video-overlay.radar-on #scan-video-a, #scan-video-overlay.radar-on #scan-video-b, #scan-video-overlay.radar-on #scan-video-scrim, #scan-video-overlay.radar-on #scan-video-spinner { display: none !important; }
.rd { position: relative; width: min(46vh, 420px); aspect-ratio: 1; }
/* The column holds the dial, count, steps and tip card, and the ticker block sits
   absolutely below it. The dial is the only part that can give up height, so it
   shrinks with the window and nothing runs under the ticker or off the top. */
#scan-radar .rd { width: max(110px, min(46vh, 420px, calc(92vh - 430px))); flex: none; }
#scan-radar .rd-count, #scan-radar .rd-steps, #scan-radar #vt-insight-wrap { flex: none; }
#scan-radar #vt-insight-wrap { width: 100%; }
#scan-radar #vt-insight-text { min-height: 72px !important; }
.rd-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255,.34); }
.rd-ring.r2 { inset: 16%; } .rd-ring.r3 { inset: 32%; }
.rd-cross { position: absolute; inset: 0; background: linear-gradient(rgba(255, 255, 255,.22), rgba(255, 255, 255,.22)) center/1px 100% no-repeat, linear-gradient(90deg, rgba(255, 255, 255,.22), rgba(255, 255, 255,.22)) center/100% 1px no-repeat; }
.rd-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(82, 255, 165,.45), rgba(82, 255, 165,0) 25%, transparent); animation: rdSweep 2.4s linear infinite; -webkit-mask: radial-gradient(circle, #000 69%, transparent 70%); mask: radial-gradient(circle, #000 69%, transparent 70%); }
@keyframes rdSweep { to { transform: rotate(360deg); } }
.rd-blips i { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); animation: rdBlip .6s cubic-bezier(.34,1.56,.64,1) both; transition: opacity .7s, box-shadow .7s, transform .7s; }
@keyframes rdBlip { from { transform: scale(0); opacity: 0; } }
/* Only the stay just read is at full strength. Everything behind it
   steps back, so a dial with forty dots on it still has somewhere for
   the eye to go. */
.rd-blips i.dim { opacity: .34; box-shadow: 0 0 6px rgba(82, 255, 165,.5); transform: scale(.78); }
/* The run log, bottom-left, out of the way of the dial. Each line is a
   real event from the check -- never scraped text, which never reaches
   this screen (see api/screener/report-progress.js). */
.rd-log { position: absolute; left: 22px; bottom: 20px; display: flex; flex-direction: column; gap: 4px;
  font: 500 12px/1.5 var(--f-mono); color: rgba(82, 255, 165,.46); pointer-events: none; max-width: 46vw; }
.rd-log i { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: rdLog .5s ease-out both; }
.rd-log i:last-child { color: rgba(82, 255, 165,.82); }
@keyframes rdLog { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .rd-log i { animation: none; } .rd-blips i { animation: none; transition: none; } }
@media (max-height: 700px) { .rd-log { display: none; } }
.rd-core { position: absolute; left: 50%; top: 50%; width: 24%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: #0C0C0C; border: 1px solid rgba(255, 255, 255,.6); color: var(--mint); box-shadow: 0 0 0 8px rgba(255, 255, 255,.05), 0 0 50px rgba(82, 255, 165,.35); }
.rd-core svg { width: 52%; height: 52%; }
/* White shield, mint check, same as the logo. */
.rd-core svg path:first-child { stroke: #fff; }
.rd-count { text-align: center; }
.rd-count b { display: block; font: 600 clamp(40px, 6vh, 60px)/1 var(--f-mono); letter-spacing: -.04em; color: var(--ink); }
.rd-count span { display: block; margin-top: 6px; font: 500 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.rd-steps { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.rd-steps li { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 8px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-3); }
.rd-steps li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.rd-steps li.run { color: var(--ink); border-color: rgba(82, 255, 165,.45); }
.rd-steps li.run::before { border-color: var(--mint); border-top-color: transparent; animation: rdSweep .7s linear infinite; }
.rd-steps li.done { color: var(--ink-2); }
.rd-steps li.done::before { background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23032011' stroke-width='4'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/10px no-repeat; border-color: var(--mint); }

/* link directions: desktop vs phone (same breakpoint the page script uses) */
.howto-phone { display: none; }
@media (max-width: 680px), (max-height: 520px), (hover: none) and (pointer: coarse) { .howto-desk { display: none; } .howto-phone { display: block; } }
.howto-desk ol { margin-top: 4px; }
