/* D&R Signal (UI v3) — components and the phone frame. Loaded ONLY on pages where the ui_v3 flag is on
   (components/v3/Root.tsx), after tokens.css. Ported from docs/design/components/bundle.css: same values,
   only tokens; the bundle's page-wide rules are scoped to .v3-root so nothing else on the page changes. */

/* ---------- Scoped base (bundle: body, *, :focus-visible) ---------- */
html[data-ui="v3"], html[data-ui="v3"] body { background: var(--canvas); }
.v3-root {
  --font-sans: var(--font-geist, Geist), "Noto Sans Devanagari", "Noto Sans Gurmukhi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: var(--font-geist-mono, "Geist Mono"), ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--canvas); color: var(--ink); font-family: var(--font-sans); font-size: 14px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; min-height: 100dvh;
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.v3-root:lang(hi), .v3-root [lang="hi"] { --font-sans: var(--font-noto-deva, "Noto Sans Devanagari"), var(--font-geist, Geist), system-ui, sans-serif; }
.v3-root:lang(pa), .v3-root [lang="pa"] { --font-sans: var(--font-noto-guru, "Noto Sans Gurmukhi"), var(--font-geist, Geist), system-ui, sans-serif; }
.v3-root *, .v3-root *::before, .v3-root *::after { box-sizing: border-box; }
.v3-root :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
:where(.v3-root) a { color: inherit; }
.v3-root button { font: inherit; }
.v3-root h1, .v3-root h2, .v3-root h3, .v3-root p { margin: 0; }
.v3-root .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dr-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.dr-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
/* Devanagari / Gurmukhi: no uppercase, no letter-spacing, no mono, line-height × 1.2 (DESIGN §5) */
.v3-root:lang(hi) .dr-label, .v3-root:lang(pa) .dr-label, .v3-root [lang="hi"] .dr-label, .v3-root [lang="pa"] .dr-label { text-transform: none; letter-spacing: 0; font-family: var(--font-sans); font-size: 13px; }
.v3-root:lang(hi), .v3-root:lang(pa) { line-height: 1.74; }
.v3-root:lang(hi) [class*="t-"], .v3-root:lang(pa) [class*="t-"] { letter-spacing: 0; }

/* ---------- Buttons ---------- */
.dr-btn { height: var(--control-desktop); padding: 0 16px; border-radius: var(--radius-md); border: 0; background: var(--ink); color: var(--on-ink); font: 600 14px/1 var(--font-sans); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 20px -10px rgba(0,0,0,.5); transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); text-decoration: none; white-space: nowrap; }
.dr-btn:active { transform: translateY(1px); }
.dr-btn--secondary { background: var(--raised); color: var(--ink); border: 1px solid var(--hair-2); box-shadow: none; font-weight: 500; }
.dr-btn--ghost { background: transparent; color: var(--mute); box-shadow: none; font-weight: 500; }
.dr-btn--ok { background: var(--ok); color: var(--on-ok); }
.dr-btn--icon { width: var(--control-desktop); padding: 0; }
.dr-btn--cta { height: auto; line-height: 1.2; min-height: var(--cta-primary); width: 100%; border-radius: var(--radius-xl); font-size: 18px; box-shadow: var(--shadow-cta); white-space: normal; text-align: center; padding: 12px 16px; }
.dr-btn--cta:active { transform: scale(.98); }
.dr-btn--cta2 { height: auto; line-height: 1.2; min-height: var(--cta-secondary); width: 100%; border-radius: var(--radius-xl); font-size: 16px; font-weight: 500; background: transparent; color: var(--ink); border: 1px solid var(--hair-2); box-shadow: none; white-space: normal; text-align: center; padding: 10px 16px; }
.dr-btn--cta2:active { transform: scale(.98); }
.dr-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.dr-btn[disabled], .dr-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.dr-btn[aria-busy="true"] { cursor: progress; }
@media (hover: hover) { .dr-btn:hover:not([disabled]) { filter: brightness(1.12); } .dr-btn--secondary:hover:not([disabled]), .dr-btn--cta2:hover:not([disabled]) { background: var(--well); filter: none; } .dr-btn--ghost:hover:not([disabled]) { color: var(--ink); background: var(--well); filter: none; } }
.dr-kbd { font-family: var(--font-mono); font-size: 10.5px; padding: 2px 6px; border-radius: var(--radius-xs); border: 1px solid currentColor; opacity: .7; }
.dr-link { background: none; border: 0; padding: 0; color: var(--mute); font: 500 16px/1.2 var(--font-sans); cursor: pointer; text-decoration: none; min-height: var(--tap-phone); display: inline-flex; align-items: center; gap: 6px; }
.dr-link:hover { color: var(--ink); }
.dr-link--u { text-decoration: underline; text-underline-offset: 3px; color: var(--gold); }

/* ---------- Status pill — colour + shape + words ---------- */
.dr-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--radius-pill); font: 600 12px/1 var(--font-sans); white-space: nowrap; }
.dr-pill::before { content: ""; width: 6px; height: 6px; flex: none; }
.dr-pill--ok { background: var(--ok-bg); color: var(--ok-ink); }
.dr-pill--ok::before { border-radius: 50%; background: currentColor; }
.dr-pill--wait { background: var(--wait-bg); color: var(--wait-ink); }
.dr-pill--wait::before { border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.dr-pill--act { background: var(--act-bg); color: var(--act-ink); }
.dr-pill--act::before { background: currentColor; transform: rotate(45deg); }
.dr-pill--idle { background: var(--well); color: var(--mute); }
.dr-pill--idle::before { height: 2px; background: currentColor; }
.dr-pill--lg { height: 30px; padding: 0 12px; font-size: 14px; }
.dr-badge { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font: 500 11px/1 var(--font-mono); background: var(--brand-black-3); color: var(--brand-ink); }
.dr-badge--act { background: #3A1A0C; color: #FFB295; }
.dr-badge--wait { background: var(--wait); color: var(--on-ink); }

/* ---------- Card ---------- */
.dr-card { background: linear-gradient(180deg, var(--raised), var(--raised-2)); border: 1px solid var(--hair); border-radius: var(--radius-2xl); box-shadow: var(--shadow-card); }
.dr-card--sel { background: var(--sel); box-shadow: none; }
.dr-card__pad { padding: 20px 22px; }
.dr-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--hair); }
.dr-card__head h2, .dr-card__head h3 { font: 600 17px/1.3 var(--font-sans); letter-spacing: -0.01em; }

/* ---------- Avatar, monogram, mark ---------- */
.dr-av { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 600 10px/1 var(--font-mono); color: var(--brand-black); border: 2px solid var(--raised); flex: none; }
.dr-av + .dr-av { margin-left: -8px; }
.dr-av--1 { background: var(--av-1); } .dr-av--2 { background: var(--av-2); } .dr-av--3 { background: var(--av-3); } .dr-av--4 { background: var(--av-4); } .dr-av--5 { background: var(--av-5); } .dr-av--6 { background: var(--av-6); }
.dr-av--lg { width: 36px; height: 36px; font-size: 11px; }
.dr-tile { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; background: var(--tile); border: 1px solid var(--hair); flex: none; }
.dr-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(180deg, var(--gold-mark-hi), var(--gold-mark-lo)); color: var(--brand-black); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; box-shadow: inset 0 1px 0 rgba(255,255,255,.5); flex: none; }
.dr-mark--logo { background: #000; padding: 2px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(215, 178, 106, .4); } /* their logo: gold on black, in both themes */
.dr-mark--logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ---------- Segmented control / theme switch ---------- */
.dr-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; border-radius: var(--radius-md); background: var(--well); }
.dr-seg button { height: 34px; padding: 0 12px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--mute); font: 500 13px/1 var(--font-sans); cursor: pointer; transition: background var(--dur-base) var(--ease-out); }
.dr-seg button[aria-pressed="true"], .dr-seg button[aria-selected="true"] { background: var(--raised); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.14); }
.dr-seg--brand { background: var(--brand-black-2); border: 1px solid var(--brand-line); }
.dr-seg--brand button { color: var(--brand-mute); }
.dr-seg--brand button[aria-pressed="true"] { background: var(--brand-ink); color: var(--brand-black); }
.dr-seg--phone { display: grid; width: 100%; }
.dr-seg--phone button { height: 48px; font-size: 15px; }
.dr-chip { min-width: 48px; height: 48px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--hair-2); background: var(--raised); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 500 16px/1 var(--font-sans); cursor: pointer; text-decoration: none; }
.dr-chip svg { width: 20px; height: 20px; }

/* ---------- Fields ---------- */
.dr-field { display: flex; flex-direction: column; gap: 6px; }
.dr-field > label { font-weight: 600; font-size: 14px; }
.dr-input { height: var(--control-desktop); padding: 0 12px; border-radius: var(--radius-md); border: 1px solid var(--hair-2); background: var(--raised); color: var(--ink); font: 400 14px var(--font-sans); width: 100%; }
.dr-input--phone { height: 56px; font-size: 18px; border-radius: var(--radius-lg); }
.dr-input--mono { font-family: var(--font-mono); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.dr-input[aria-invalid="true"] { border-color: var(--act); box-shadow: inset 0 0 0 1px var(--act); }
.dr-help { font-size: 13px; color: var(--mute); }
.dr-help--error { color: var(--act-ink); }
.dr-option { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: var(--radius-lg); border: 1px solid var(--hair-2); background: var(--raised); color: var(--ink); text-align: left; width: 100%; font: inherit; font-size: 16px; cursor: pointer; }
.dr-option[aria-checked="true"], .dr-option[aria-pressed="true"], .dr-option[aria-current="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.dr-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--mute); display: flex; align-items: center; justify-content: center; flex: none; }
.dr-option[aria-checked="true"] .dr-radio, .dr-option[aria-pressed="true"] .dr-radio, .dr-option[aria-current="true"] .dr-radio { border-color: var(--ink); }
.dr-option[aria-checked="true"] .dr-radio::after, .dr-option[aria-pressed="true"] .dr-radio::after, .dr-option[aria-current="true"] .dr-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }

/* ---------- Rows, table ---------- */
.dr-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hair); }
.dr-row:first-child { border-top: 0; }
.dr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dr-table th { text-align: left; padding: 10px 14px; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); background: var(--well); }
.dr-table td { height: 52px; padding: 0 14px; border-top: 1px solid var(--hair); white-space: nowrap; }
.dr-table tr[aria-selected="true"] td { background: var(--sel); }

/* ---------- Overlays ---------- */
.dr-scrim { position: absolute; inset: 0; background: var(--scrim); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 0; padding: 0; margin: 0; cursor: default; animation: v3-fade var(--dur-base) var(--ease-out) both; }
.dr-sheet { background: var(--raised); border-radius: 20px 20px 0 0; padding: 10px 16px 20px; box-shadow: var(--shadow-overlay); }
.dr-sheet__grab { width: 40px; height: 5px; border-radius: 3px; background: var(--hair-2); margin: 0 auto 14px; }
.dr-panel { width: 400px; max-width: 100%; background: var(--raised); border-left: 1px solid var(--hair); box-shadow: var(--shadow-overlay); padding: 18px 20px; }
.dr-palette { width: 560px; max-width: 100%; background: var(--raised); border: 1px solid var(--hair); border-radius: 16px; box-shadow: var(--shadow-overlay); overflow: hidden; }
.dr-palette__item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--hair); }
.dr-palette__item[aria-selected="true"] { background: var(--sel); }
.v3-layer { position: fixed; inset: 0; z-index: 80; display: flex; }
.v3-layer--bottom { align-items: flex-end; justify-content: center; }
.v3-layer--right { justify-content: flex-end; }
.v3-layer--top { align-items: flex-start; justify-content: center; padding: 110px 16px 16px; }
.v3-layer .dr-sheet { position: relative; width: min(100%, var(--phone-max)); max-height: 70dvh; overflow: auto; padding-bottom: calc(20px + env(safe-area-inset-bottom)); animation: v3-up var(--dur-base) var(--ease-out) both; }
.v3-layer .dr-panel { position: relative; height: 100%; overflow: auto; display: flex; flex-direction: column; gap: 16px; animation: v3-left var(--dur-base) var(--ease-out) both; }
.v3-layer .dr-palette { position: relative; animation: v3-drop 220ms var(--ease-out) both; }
.v3-sheet__title { font: 600 22px/1.2 var(--font-sans); letter-spacing: -0.02em; margin: 0 0 12px; }
.v3-sheet__group { display: grid; gap: 8px; margin: 0 0 18px; }
@keyframes v3-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes v3-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes v3-left { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes v3-drop { from { transform: translateY(-8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

/* Side panel parts */
.v3-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.v3-panel__head .dr-label { margin-bottom: 6px; }
.v3-panel__pill { margin-top: 10px; }
.v3-panel__body { flex: 1; display: grid; align-content: start; gap: 18px; }
.v3-panel__foot { display: grid; gap: 8px; padding-top: 8px; }
.dr-option { text-decoration: none; }
@media (max-width: 759px) { .v3-layer .dr-panel { width: 100%; border-left: 0; } }

/* ---------- Toast (brand black in both themes) ---------- */
.v3-toasts { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; width: max-content; max-width: calc(100% - 32px); }
.dr-toast { display: inline-flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border-radius: 14px; background: var(--brand-black); color: var(--brand-ink); box-shadow: 0 24px 48px -16px rgba(0,0,0,.55), inset 0 0 0 1px var(--brand-line); animation: v3-up var(--dur-base) var(--ease-out) both; }
.dr-toast__icon { width: 28px; height: 28px; border-radius: 50%; background: #0F2A1D; color: #86E8B5; display: flex; align-items: center; justify-content: center; flex: none; }
.dr-toast__icon--act { background: #3A1A0C; color: #FFB295; }
.dr-toast button { background: none; border: 0; color: var(--brand-mute); cursor: pointer; min-height: 32px; padding: 0 6px; }
.dr-toast button:hover { color: var(--brand-ink); }

/* ---------- Phone: tab bar, passenger tiles, ticket, countdown ---------- */
.dr-tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); background: var(--glass); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border-top: 1px solid var(--hair); }
.dr-tab { height: 52px; border: 0; background: transparent; color: var(--mute); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 500 11px/1 var(--font-sans); position: relative; text-decoration: none; }
.dr-tab[aria-current="page"] { color: var(--ink); font-weight: 600; }
.dr-tab .dr-badge { position: absolute; top: 2px; left: calc(50% + 4px); min-width: 18px; height: 18px; color: var(--on-ink); }
.dr-pax { display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 10px 12px; border-radius: var(--radius-xl); border: 1px solid var(--hair-2); background: var(--raised); width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer; transition: background var(--dur-base) var(--ease-out); min-width: 0; }
.dr-pax > span { min-width: 0; overflow-wrap: anywhere; }
.dr-pax[aria-pressed="true"] { background: var(--ok-bg); border-color: var(--ok-line); }
.dr-pax__box { width: 40px; height: 40px; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--hair-2); display: flex; align-items: center; justify-content: center; flex: none; color: var(--on-ok); }
.dr-pax[aria-pressed="true"] .dr-pax__box { background: var(--ok); box-shadow: none; }
.dr-call { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--on-ink); display: flex; align-items: center; justify-content: center; flex: none; text-decoration: none; }
.dr-call--none { background: var(--well); color: var(--mute); }
.dr-ticket { background: linear-gradient(180deg, var(--raised), var(--raised-2)); border: 1px solid var(--hair); border-radius: 20px; box-shadow: var(--shadow-card); overflow: hidden; }
.dr-ticket__cut { position: relative; border-top: 1.5px dashed var(--hair-2); margin: 0 16px; }
.dr-ticket__cut::before, .dr-ticket__cut::after { content: ""; position: absolute; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--canvas); }
.dr-ticket__cut::before { left: -26px; } .dr-ticket__cut::after { right: -26px; }
.dr-countdown { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--wait-bg); color: var(--wait-ink); font-size: 13px; font-weight: 600; }
.dr-countdown::before { content: ""; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; flex: none; }
.dr-countdown--lg { min-height: 40px; padding: 6px 16px; font-size: 16px; }
.dr-countdown--act { background: var(--act-bg); color: var(--act-ink); }
.dr-countdown--act::before { border-radius: 0; transform: rotate(45deg); box-shadow: none; background: currentColor; width: 7px; height: 7px; }

/* ---------- Ring (readiness / boarding) ---------- */
.dr-ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.dr-ring svg { display: block; transform: rotate(-90deg); }
.dr-ring__track { stroke: var(--well); }
.dr-ring__ok { stroke: var(--ok); transition: stroke-dasharray var(--dur-slow) var(--ease-out); }
.dr-ring__wait { stroke: var(--wait); opacity: .6; }
.dr-ring__act { stroke: var(--act); opacity: .85; }
.dr-ring__mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; }
.dr-ring__mid > .dr-label { margin-top: 2px; }
.dr-ring__num { font: 600 44px/1 var(--font-sans); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.dr-ring--sm .dr-ring__num { font: 500 20px/1 var(--font-mono); letter-spacing: 0; }
.dr-ring--load .dr-ring__ok, .dr-ring--load .dr-ring__wait, .dr-ring--load .dr-ring__act { animation: v3-arc var(--dur-count) var(--ease-out) both; }
@keyframes v3-arc { from { stroke-dasharray: 0 1000; } }

/* ---------- Empty + skeleton ---------- */
.dr-empty { text-align: center; padding: var(--space-12) 24px; color: var(--mute); display: grid; justify-items: center; gap: 10px; }
.dr-empty__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.dr-empty__icon--idle { background: var(--well); color: var(--mute); }
.dr-empty__title { color: var(--ink); font: 600 17px/1.3 var(--font-sans); }
.dr-skel { border-radius: 8px; background: linear-gradient(90deg, var(--well) 0%, var(--raised) 50%, var(--well) 100%); background-size: 200% 100%; animation: dr-shimmer 1.2s linear infinite; }
@keyframes dr-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Live dot ---------- */
.dr-live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: dr-beat 2s infinite; display: inline-block; flex: none; }
@keyframes dr-beat { 0% { box-shadow: 0 0 0 0 rgba(79,208,143,.5); } 70% { box-shadow: 0 0 0 8px rgba(79,208,143,0); } 100% { box-shadow: 0 0 0 0 rgba(79,208,143,0); } }

/* ================= Worker & driver frame (DESIGN §7) ================= */
.v3-phone { max-width: var(--phone-max); margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; padding: 0 var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom)); font-size: 16px; }
.v3-bar { display: flex; align-items: center; gap: 12px; padding: 18px 0 10px; }
.v3-bar__name { font: 600 17px/1.2 var(--font-sans); letter-spacing: -0.01em; flex: 1; min-width: 0; }
.v3-bar__eyebrow { display: block; margin-bottom: 2px; }
.v3-bar__chips { display: flex; gap: 8px; margin-left: auto; }
.v3-main { flex: 1; display: flex; flex-direction: column; gap: 18px; padding-top: 18px; }
.v3-hero { display: grid; gap: 8px; }
.v3-greet { font: 400 18px/1.35 var(--font-sans); color: var(--ink-2); }
.v3-day { font: 600 52px/1 var(--font-sans); letter-spacing: -0.045em; overflow-wrap: anywhere; }
.v3-day--sm { font-size: 38px; line-height: 1.05; letter-spacing: -0.035em; }
.v3-title { font: 600 30px/1.1 var(--font-sans); letter-spacing: -0.035em; overflow-wrap: anywhere; }
.v3-h2 { font: 600 22px/1.2 var(--font-sans); letter-spacing: -0.02em; }
.v3-h3 { font: 600 17px/1.3 var(--font-sans); letter-spacing: -0.01em; }
.v3-times { font: 500 30px/1.15 var(--font-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.v3-lead { font-size: 16px; color: var(--ink-2); }
.v3-meta { font-size: 14px; color: var(--mute); }
.v3-facts { padding: 18px 18px; display: grid; gap: 0; font-size: 16px; }
.v3-route { display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; }
.v3-route__dot { width: 18px; height: 18px; border-radius: 50%; border: 5px solid var(--metro-orange); background: var(--raised); justify-self: center; margin-top: 3px; }
.v3-route__dot--blue { border-color: var(--metro-blue); }
.v3-route__dot--none { border-color: var(--mute); }
.v3-route__line { width: 0; border-left: 2px dashed var(--hair-2); justify-self: center; min-height: 26px; margin: 6px 0; }
.v3-route__sq { width: 18px; height: 18px; border-radius: 5px; background: var(--ink); justify-self: center; margin-top: 3px; }
.v3-route__what { font-weight: 600; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.v3-route__sub { color: var(--ink-2); font-size: 15px; overflow-wrap: anywhere; }
.v3-facts__note { border-top: 1px solid var(--hair); margin-top: 16px; padding-top: 14px; color: var(--ink-2); }
.v3-dl { display: grid; gap: 12px; margin: 0; }
.v3-dl > div { display: grid; gap: 2px; }
.v3-dl dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.v3-dl dd { margin: 0; font-size: 17px; font-weight: 600; }
.v3-root:lang(hi) .v3-dl dt, .v3-root:lang(pa) .v3-dl dt { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; font-size: 13px; }
.v3-actions { margin-top: auto; display: grid; gap: 10px; padding-top: 28px; }
.v3-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 4px 0; flex-wrap: wrap; }
.v3-state { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 24px 0 8px; }
.v3-err { color: var(--act-ink); font-size: 15px; display: flex; gap: 8px; align-items: flex-start; }
.v3-note { color: var(--ink-2); font-size: 15px; }
.v3-call { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; text-decoration: none; min-height: var(--tap-phone); }
.v3-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px 20px; }
.v3-split > div { min-width: 0; overflow-wrap: anywhere; }
.v3-split .t-numeral-xl { margin-top: 6px; }
.v3-split .v3-meta { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.v3-ticket-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 20px 20px; }
.v3-bignum { font: 600 52px/1 var(--font-mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* Accept: circle pop, check draws, title and ticket rise (DESIGN §8) */
.v3-pop { width: 112px; height: 112px; border-radius: 50%; background: var(--ok); color: var(--on-ok); display: grid; place-items: center; box-shadow: 0 0 0 14px var(--ok-bg); margin: 8px auto 6px; animation: v3-pop var(--dur-slow) var(--ease-spring) both; }
.v3-pop svg path { stroke-dasharray: 40; stroke-dashoffset: 0; animation: v3-draw 360ms var(--ease-out) 250ms both; }
.v3-rise { animation: v3-up var(--dur-slow) var(--ease-out) both; }
.v3-rise--1 { animation-delay: 150ms; } .v3-rise--2 { animation-delay: 300ms; }
@keyframes v3-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes v3-draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
.v3-enter { animation: v3-up var(--dur-slow) var(--ease-out) both; }

/* The week: one row per day */
.v3-days { list-style: none; margin: 0; padding: 0; }
.v3-dayrow { padding: 16px 18px; border-top: 1px solid var(--hair); display: grid; gap: 10px; }
.v3-dayrow:first-child { border-top: 0; }
.v3-dayrow--act { background: var(--act-row); }
.v3-dayrow--idle { color: var(--mute); }
.v3-dayrow__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.v3-dayrow__name { font: 600 17px/1.3 var(--font-sans); overflow-wrap: anywhere; min-width: 0; }
.v3-dayrow__sub { font: 500 14px/1.4 var(--font-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; min-width: 0; }
.v3-root:lang(hi) .v3-dayrow__sub, .v3-root:lang(pa) .v3-dayrow__sub { font-family: var(--font-sans); }
.v3-reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.v3-reason { min-height: 48px; padding: 0 18px; border-radius: var(--radius-pill); border: 1px solid var(--hair-2); background: var(--raised); color: var(--ink); font: 500 16px/1 var(--font-sans); cursor: pointer; }
.v3-reason:hover { border-color: var(--ink); }

/* Upload */
.v3-drop { display: flex; align-items: center; gap: 14px; min-height: 88px; padding: 16px; border-radius: var(--radius-xl); border: 1.5px dashed var(--hair-2); background: var(--raised); position: relative; cursor: pointer; }
.v3-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.v3-drop__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--well); display: grid; place-items: center; flex: none; }
.v3-drop--has { border-style: solid; border-color: var(--ok-line); background: var(--ok-bg); }

/* ---------- Help + Report a problem as links (HelpBug variant "links") ---------- */
.hb-links { position: relative; }
.hb-links .hb-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 4px 0; }
.hb-links .hb-link { background: none; border: 0; padding: 0 2px; color: var(--mute); font: 500 16px/1.2 var(--font-sans); min-height: var(--tap-phone); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.hb-links .hb-link:hover { color: var(--ink); }
.hb-links .hb-link[disabled] { opacity: .6; cursor: default; }
.v3-root .hb-sheet { background: var(--raised); color: var(--ink); border: 1px solid var(--hair); border-radius: 20px; box-shadow: var(--shadow-overlay); }
.v3-root .hb-links .hb-sheet { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); width: min(calc(100% - 24px), var(--phone-max)); max-height: 70dvh; overflow: auto; z-index: 85; animation: v3-up var(--dur-base) var(--ease-out) both; }
.v3-root .hb-sheet h2, .v3-root .hb-sheet h3 { color: var(--ink); }
.v3-root .hb-sheet p, .v3-root .hb-sheet li { color: var(--ink-2); }
.v3-root .hb-sheet .hb-x { background: var(--well); color: var(--ink); border: 0; min-width: 44px; min-height: 44px; border-radius: 12px; }
.v3-root .hb-toast { background: var(--brand-black); color: var(--brand-ink); border-radius: 14px; box-shadow: 0 24px 48px -16px rgba(0,0,0,.55), inset 0 0 0 1px var(--brand-line); }
.v3-root .hb-links .hb-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90; padding: 12px 16px; margin: 0; }
.v3-root .hb-bubble { background: var(--raised); color: var(--ink); border: 1px solid var(--hair-2); box-shadow: var(--shadow-pop); }

/* ---------- Low-end + reduced motion ---------- */
[data-lite] .dr-scrim, [data-lite] .dr-tabbar { backdrop-filter: none; -webkit-backdrop-filter: none; }
[data-lite] .dr-card, [data-lite] .dr-ticket { box-shadow: none; }
[data-lite] .v3-enter, [data-lite] .v3-rise, [data-lite] .dr-sheet, [data-lite] .dr-panel { animation: none; }
@media (prefers-reduced-motion: reduce) { .v3-root *, .v3-root *::before, .v3-root *::after { animation: none !important; transition: none !important; } }
@media (max-width: 380px) { .v3-day { font-size: 44px; } .v3-times { font-size: 26px; } }
.v3-pop--still, .v3-pop--still svg path { animation: none; }
.v3-root a.dr-link { color: var(--mute); }
.v3-root a.dr-link:hover, .v3-root button.dr-link:hover { color: var(--ink); }
.v3-tnum { font-variant-numeric: tabular-nums; }
.v3-call { white-space: nowrap; font-size: 15px; }
.v3-ticket-foot > div { min-width: 0; }
.v3-why { display: grid; gap: 10px; }
.v3-dayrow .dr-seg button { height: 44px; padding: 0 14px; font-size: 15px; display: inline-flex; align-items: center; gap: 4px; }
.v3-dayrow .dr-seg button[aria-pressed="true"]:first-child { background: var(--ok-bg); color: var(--ok-ink); box-shadow: inset 0 0 0 1px var(--ok-line); }
.v3-dayrow .dr-seg button[aria-pressed="true"]:last-child { background: var(--act-bg); color: var(--act-ink); box-shadow: inset 0 0 0 1px var(--act); }
.v3-dayrow .dr-seg button[disabled] { cursor: not-allowed; }
.v3-dayrow .dr-seg button[disabled][aria-pressed="false"] { opacity: .55; }
p.v3-state { display: grid; justify-items: center; gap: 8px; padding: 8px 0; }
.v3-dayrow .dr-seg { max-width: 100%; }
.v3-dayrow .dr-seg button { white-space: normal; text-align: center; line-height: 1.15; }
/* Shortcut hints at full contrast (DESIGN §9 wins over the bundle's 70% opacity) */
.dr-kbd { opacity: 1; }
.dr-search .dr-kbd { color: var(--brand-mute); border-color: var(--brand-line); }
.dr-btn--secondary .dr-kbd, .dr-btn--ghost .dr-kbd { color: var(--mute); }
