/* Prohori UI: upay-style palette, no external CSS or JS (the demo must run with no internet). */

/* Noto Sans Bengali (SIL OFL 1.1, ui/fonts/OFL.txt), bundled locally so Bangla renders the same everywhere,
   offline included. One variable font per subset covers every weight from 100 to 900. */
@font-face {
  font-family: "Noto Sans Bengali"; font-style: normal; font-weight: 100 900; font-stretch: 100%; font-display: swap;
  src: url(fonts/NotoSansBengali-bengali.woff2) format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2,
                 U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: "Noto Sans Bengali"; font-style: normal; font-weight: 100 900; font-stretch: 100%; font-display: swap;
  src: url(fonts/NotoSansBengali-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                 U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Noto Sans Bengali"; font-style: normal; font-weight: 100 900; font-stretch: 100%; font-display: swap;
  src: url(fonts/NotoSansBengali-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --upay-yellow: #ffcc00; --upay-yellow-soft: #fff6cc; --upay-blue: #005bac; --upay-blue-dark: #003a70;
  --upay-cyan: #00a3e0; --navy: #1e2b4f; --ink: #1d2433; --ink-2: #4a5468; --ink-3: #7b8597;
  --line: #e3e7ee; --paper: #f6f7fb; --surface: #ffffff;
  --allow: #0f8a5f; --allow-soft: #e3f5ec; --nudge: #b7791f; --nudge-soft: #fff3d6;
  --step: #c2570c; --step-soft: #ffe8d6; --hold: #c62828; --hold-soft: #fde7e7;
  --radius: 14px; --shadow: 0 6px 24px -10px rgba(16, 32, 64, .35);
  font-family: "Noto Sans Bengali", "Nirmala UI", "Vrinda", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.hidden { display: none !important; }
.row { display: flex; gap: 8px; align-items: center; }
.grow { flex: 1; }

/* ----- buttons, chips, bands ----- */
.btn { border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 700; font-size: 15px; transition: transform .08s, filter .15s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--upay-blue); color: #fff; }
.btn-yellow { background: var(--upay-yellow); color: #1b1b1b; }
.btn-danger { background: var(--hold); color: #fff; }
.btn-ghost { background: #eef1f6; color: var(--ink); }
.btn-link { background: none; color: var(--upay-blue); padding: 6px 4px; font-weight: 600; text-decoration: underline; }
.btn-block { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 600;
        border: 1px solid var(--line); background: #fff; }
.band { display: inline-block; border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.band-ALLOW { background: var(--allow-soft); color: var(--allow); }
.band-NUDGE { background: var(--nudge-soft); color: var(--nudge); }
.band-STEP_UP { background: var(--step-soft); color: var(--step); }
.band-HOLD { background: var(--hold-soft); color: var(--hold); }

/* ----- prototype banner ----- */
.proto { background: var(--navy); color: #cfd7ea; font-size: 12px; text-align: center; padding: 6px 10px; }
.proto b { color: var(--upay-yellow); }

/* ================= customer phone ================= */
.stage { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; background: #10172a; }
.stage.embed { background: transparent; padding: 8px; min-height: 0; }
.phone { width: 390px; max-width: 100%; height: 820px; max-height: calc(100vh - 32px); background: #0b0f1a; border-radius: 44px; padding: 11px;
         box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .65), 0 0 0 2px #2b3448; position: relative; }
.stage.embed .phone { height: 800px; max-height: calc(100vh - 16px); }
.screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #fbfbfc; display: flex; flex-direction: column; }
@media (max-width: 480px) {
  .proto { font-size: 11px; padding: 5px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .proto .links { display: none; }
  .stage { padding: 0; align-items: stretch; min-height: 0; }
  .phone { width: 100%; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; padding: 0; box-shadow: none; }
  .screen { border-radius: 0; }
}
.statusbar { background: var(--upay-yellow); display: flex; justify-content: space-between; align-items: center; padding: 10px 22px 4px; font-size: 12px; font-weight: 700; }
.statusbar .notch { width: 90px; height: 18px; background: #0b0f1a; border-radius: 0 0 12px 12px; margin-top: -10px; }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fbfbfc; }
.views { position: relative; flex: 1; overflow: hidden; }
.appbar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.appbar h1 { font-size: 17px; margin: 0; }
.appbar .back { border: 0; background: none; font-size: 22px; line-height: 1; padding: 2px 6px; color: var(--ink); }
.scroll { flex: 1; overflow-y: auto; padding: 14px; }
.home-head { background: var(--upay-yellow); padding: 10px 14px 16px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; color: var(--upay-blue-dark); border: 2px solid rgba(0,0,0,.08); }
.home-head .who b { display: block; font-size: 15px; }
.home-head .who span { font-size: 12px; color: #4b4b4b; }
.pill { margin-left: auto; background: var(--upay-blue); color: #fff; border: 0; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 13px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; background: #fff; padding: 14px 10px; border-bottom: 1px solid var(--line); }
.svc { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.svc .ic { width: 46px; height: 46px; border-radius: 14px; background: #eef5fc; display: grid; place-items: center; font-size: 22px; }
.svc.hot .ic { background: var(--hold-soft); }
.shield { margin: 12px; border-radius: 16px; padding: 14px; color: #fff; background: linear-gradient(120deg, #003a70, #005bac 60%, #00a3e0); display: flex; gap: 12px; align-items: center; }
.shield b { display: block; font-size: 14px; }
.shield span { font-size: 12px; opacity: .9; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.list .item { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid #f0f2f6; cursor: pointer; }
.list .item:hover { background: #f8fafc; }
.list .item .avatar { width: 36px; height: 36px; font-size: 14px; background: #eef1f6; }
.field { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; font-size: 16px; background: #fff; }
.field:focus { outline: 2px solid var(--upay-cyan); border-color: transparent; }
.amount { font-size: 34px; font-weight: 800; border: 0; width: 100%; padding: 4px 0; background: transparent; }
.amount:focus { outline: none; }
.scen { display: flex; flex-direction: column; gap: 6px; }
.scen button { text-align: left; border: 1px dashed #b9c4d6; background: #f7f9fc; border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.scen button b { color: var(--upay-blue); }
.pinbox { display: flex; justify-content: center; gap: 14px; margin: 14px 0; }
.pinbox i { width: 14px; height: 14px; border-radius: 50%; background: #c9d3e3; display: block; }
.pinbox i.on { background: var(--upay-blue); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 14px 14px; }
.keypad button { border: 0; background: #fff; border-radius: 12px; padding: 14px 0; font-size: 22px; font-weight: 700; box-shadow: 0 1px 0 #e3e7ee; }
.checking { position: absolute; inset: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; z-index: 30; text-align: center; }
.checking .spin { width: 56px; height: 56px; border-radius: 50%; border: 5px solid #dce6f3; border-top-color: var(--upay-blue); animation: spin 0.8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.sheet-wrap { position: absolute; inset: 0; background: rgba(9, 14, 28, .55); display: flex; align-items: flex-end; z-index: 40; }
.sheet { width: 100%; max-height: 92%; overflow-y: auto; background: #fff; border-radius: 26px 26px 0 0; padding: 18px 16px 18px; border-top: 6px solid var(--nudge); animation: up .22s ease-out; }
.sheet.STEP_UP { border-top-color: var(--step); } .sheet.HOLD { border-top-color: var(--hold); }
@keyframes up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet h2 { margin: 0 0 4px; font-size: 19px; }
.reasons { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.reasons li { background: #fff7f4; border: 1px solid #ffd9cc; border-radius: 10px; padding: 9px 10px; font-size: 14.5px; line-height: 1.45; display: flex; gap: 8px; }
.sheet.NUDGE .reasons li { background: #fffaf0; border-color: #fde3a7; }
.ask { font-weight: 700; font-size: 15.5px; margin: 6px 0 12px; }
.safety { font-size: 12.5px; color: var(--hold); font-weight: 700; margin-top: 8px; }
.listen { border: 1px solid #c8d4e6; background: #f2f6fc; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; color: var(--upay-blue-dark); }
.result { text-align: center; padding: 24px 16px; }
.result .badge { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; margin: 8px auto 12px; }
.ok .badge { background: var(--allow-soft); } .stop .badge { background: #eef1f6; }
.receipt { text-align: left; margin-top: 14px; }
.receipt div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #e6e9ef; font-size: 14px; }
.guardchip { display: inline-flex; gap: 6px; align-items: center; background: var(--allow-soft); color: var(--allow); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 700; }
.bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); padding: 6px 0 10px; }
.bottomnav button { border: 0; background: none; font-size: 11px; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bottomnav button span { font-size: 19px; }
.bottomnav button.on { color: var(--upay-blue); font-weight: 700; }
.toast { position: absolute; left: 12px; right: 12px; top: 48px; background: rgba(20, 26, 40, .95); color: #fff; padding: 10px 12px; border-radius: 12px; font-size: 13px; z-index: 60;
         transition: opacity .25s, transform .25s; opacity: 0; transform: translateY(-8px); pointer-events: none; }
.toast.show { opacity: 1; transform: none; }
.verdict { border-radius: 12px; padding: 12px; margin-top: 12px; }
.verdict.high { background: var(--hold-soft); } .verdict.medium { background: var(--step-soft); } .verdict.low { background: var(--nudge-soft); } .verdict.none { background: var(--allow-soft); }
.cue { border-top: 1px solid rgba(0,0,0,.07); padding: 8px 0; font-size: 13.5px; }
.cue q { color: var(--ink-3); font-size: 12.5px; }

/* ================= analyst copilot ================= */
.an { min-height: 100vh; display: flex; flex-direction: column; background: #f3f5f9; }
.an-head { display: flex; align-items: center; gap: 16px; padding: 10px 18px; background: var(--navy); color: #fff; }
.an-head .brand { font-weight: 800; font-size: 18px; }
.an-head .brand span { color: var(--upay-yellow); }
.an-tabs { display: flex; gap: 4px; }
.an-tabs button { border: 0; background: none; color: #b9c3dc; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.an-tabs button.on { background: rgba(255,255,255,.12); color: #fff; }
.an-head input { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 8px; padding: 6px 10px; width: 150px; }
.an-body { flex: 1; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 14px; padding: 14px; min-height: 0; }
.an-body.single { grid-template-columns: minmax(0, 1fr); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; }
.panel h3 { margin: 0 0 10px; font-size: 15px; }
.feed { display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 150px); overflow-y: auto; }
.feed .al { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; cursor: pointer; background: #fff; }
.feed .al:hover { border-color: #b8c6dd; }
.feed .al.sel { border-color: var(--upay-blue); box-shadow: 0 0 0 2px rgba(0, 91, 172, .15); }
.feed .al.fresh { animation: flash 1.6s ease-out 2; }
@keyframes flash { 0% { background: #fff6cc; } 100% { background: #fff; } }
.feed .al .t { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; }
.feed .al .r { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.filters button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; }
.filters button.on { background: var(--upay-blue); border-color: var(--upay-blue); color: #fff; }
.detail { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.kv { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; }
.kv div span { color: var(--ink-3); display: block; font-size: 12px; }
.gauge { width: 100%; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #cdeedd 0 30%, #ffe9b5 30% 60%, #ffd6bd 60% 80%, #ffc9c9 80%); position: relative; }
.gauge i { position: absolute; top: -4px; width: 4px; height: 18px; background: var(--ink); border-radius: 2px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; }
@media (max-width: 1200px) { .two { grid-template-columns: minmax(0, 1fr); } }
.shapbar { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 54px; gap: 8px; align-items: center; font-size: 12.5px; padding: 3px 0; }
.shapbar .bar { height: 10px; position: relative; background: #f0f2f6; border-radius: 4px; }
.shapbar .bar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.report h4 { margin: 12px 0 4px; font-size: 13.5px; color: var(--upay-blue-dark); }
.report ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.aiflag { font-size: 11.5px; background: #eef3fb; color: var(--upay-blue-dark); border-radius: 6px; padding: 2px 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions button { border: 1px solid #c9d3e3; background: #fff; border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: 13px; }
.actions button.rec { background: var(--upay-blue); color: #fff; border-color: var(--upay-blue); }
.actions button.warn { border-color: #f2b8b8; color: var(--hold); }
.audit { font-size: 12.5px; font-family: ui-monospace, Consolas, monospace; }
.audit div { padding: 4px 0; border-bottom: 1px solid #f0f2f6; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th, table.t td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #edf0f5; }
table.t th { color: var(--ink-3); font-weight: 600; font-size: 12px; }
.graph svg { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.empty { color: var(--ink-3); padding: 30px; text-align: center; }

/* ================= showcase ================= */
.show-head { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 10px 16px; background: var(--navy); color: #fff; }
.show-head .brand { font-size: 18px; font-weight: 800; }
.show-head .brand span { color: var(--upay-yellow); }
.steps { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; }
.steps span { background: rgba(255,255,255,.1); border-radius: 999px; padding: 4px 10px; }
.show-body { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 12px; padding: 12px; height: calc(100vh - 58px); background: #10172a; }
.show-body iframe { width: 100%; height: 100%; border: 0; border-radius: 16px; background: transparent; }
.show-body iframe.an-frame { background: #f3f5f9; }
@media (max-width: 1000px) and (min-width: 901px) { .show-body[data-view="both"] { grid-template-columns: 380px minmax(0, 1fr); } }
/* phone only / copilot only: the same page, one screen hidden (nothing reloads, the engine and the demo state stay) */
.show-body[data-view="phone"], .show-body[data-view="copilot"] { grid-template-columns: minmax(0, 1fr); }
.show-body[data-view="phone"] .an-frame, .show-body[data-view="copilot"] .phone-frame { display: none; }
.show-body[data-view="phone"] .phone-frame { max-width: 440px; margin: 0 auto; }
.view-switch span { cursor: pointer; user-select: none; }

/* ================= in-browser engine start-up (static hosting) ================= */
.boot { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(16, 23, 42, .88); padding: 16px; }
.boot-card { background: #fff; border-radius: 18px; padding: 22px; max-width: 420px; width: 100%; text-align: center; box-shadow: var(--shadow); }
.boot-card .spin { width: 48px; height: 48px; border-radius: 50%; border: 5px solid #dce6f3; border-top-color: var(--upay-blue); animation: spin .8s linear infinite; margin: 0 auto 12px; }
.boot-card b { font-size: 18px; display: block; margin-bottom: 6px; }
.boot-bar { height: 8px; border-radius: 999px; background: #eef1f6; overflow: hidden; margin: 12px 0; }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--upay-blue); transition: width .4s; }
.boot.mini { inset: auto 12px 12px auto; background: none; padding: 0; pointer-events: none; }
.boot.mini .boot-card { max-width: 290px; padding: 10px 14px; text-align: left; }
.boot.mini .boot-card .spin { display: none; }
.boot.mini .boot-card b { font-size: 14px; margin-bottom: 2px; }
.boot.mini .boot-bar { margin: 6px 0; }
.boot.mini #boot-note { margin: 0; font-size: 11.5px; }

/* ================= language switch, wrong-number check, complaints (merged from Ferot) ================= */
.langsw { display: inline-flex; border: 1.5px solid rgba(0, 0, 0, .18); border-radius: 999px; padding: 2px; background: rgba(255, 255, 255, .7); gap: 2px; }
.langsw span { border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 700; color: var(--ink-2); line-height: 1.2; }
.langsw span.on { background: var(--upay-blue); color: #fff; }
.an-head .langsw, .show-head .langsw { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.an-head .langsw span, .show-head .langsw span { color: #cfd7ea; }
.an-head .langsw span.on, .show-head .langsw span.on { background: var(--upay-yellow); color: #1b1b1b; }
.numdiff { background: #f6f8fc; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.numdiff > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.numdiff .lbl { font-size: 12px; color: var(--ink-3); min-width: 112px; }
.numdiff .digits { display: inline-flex; gap: 2px; font-family: ui-monospace, Consolas, monospace; font-size: 17px; font-weight: 700; }
.numdiff .digits i { font-style: normal; width: 1.05em; text-align: center; border-radius: 4px; }
.numdiff .digits i.bad { background: var(--hold-soft); color: var(--hold); text-decoration: line-through; text-decoration-thickness: 2px; }
.numdiff .digits i.good { background: var(--allow-soft); color: var(--allow); }
.numdiff .digits .sep { color: var(--ink-3); font-weight: 400; }
.hint { border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; font-size: 13.5px; line-height: 1.45; border: 1px solid; }
.hint.ok { background: var(--allow-soft); border-color: #b9e3cd; color: #0b5c40; }
.hint.warn { background: var(--nudge-soft); border-color: #f3d58c; }
.hint.bad { background: var(--hold-soft); border-color: #f2b8b8; color: #8d1c1c; }
.hint.info { background: #eef5fc; border-color: #c8dbf0; }
.hint .row { flex-wrap: wrap; margin-top: 8px; }
.hint .btn { padding: 9px 12px; font-size: 13.5px; }
.fl-note { font-size: 12px; color: var(--ink-3); margin-top: 8px; line-height: 1.45; }
.fl-note b { color: var(--upay-blue-dark); }
.choice-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.choice-chips button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; }
.choice-chips button.on { border-color: var(--upay-blue); background: #eaf2fb; color: var(--upay-blue-dark); }
.list .item.on { background: #eaf2fb; outline: 2px solid var(--upay-blue); outline-offset: -2px; border-radius: 8px; }
.understood { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.understood .chip { background: #eef5fc; border-color: #c8dbf0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; background: #f7f9fc; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-top: 12px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.tracker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 14px 0 8px; }
.tracker div { text-align: center; font-size: 11.5px; color: var(--ink-3); }
.tracker div::before { content: ""; display: block; height: 6px; border-radius: 999px; background: #dfe5ee; margin-bottom: 6px; }
.tracker div.done { color: var(--upay-blue-dark); font-weight: 700; }
.tracker div.done::before { background: var(--upay-blue); }
.mini-btn { border: 1px solid #c8d4e6; background: #f2f6fc; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; color: var(--upay-blue-dark); }
.band-COMPLAINT { background: #efe7fb; color: #6b2fb3; }
.sheet.WRONG { border-top-color: var(--upay-blue); }
blockquote.words { margin: 0; padding: 10px 12px; border-left: 4px solid #6b2fb3; background: #f8f4fe; border-radius: 0 10px 10px 0; font-size: 14.5px; line-height: 1.5; }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.heat { display: inline-grid; grid-template-columns: 26px repeat(10, 26px); gap: 2px; font-size: 11px; font-family: ui-monospace, Consolas, monospace; }
.heat span { display: grid; place-items: center; height: 24px; border-radius: 4px; }
.heat .h { color: var(--ink-3); font-weight: 700; }

/* ================= small screens: analyst copilot and showcase ================= */
@media (max-width: 900px) {
  .an-head { flex-wrap: wrap; gap: 8px 12px; padding: 8px 12px; }
  .an-tabs { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .an-tabs button { white-space: nowrap; flex: none; }
  .an-head input { width: 120px; }
  .an-body { grid-template-columns: minmax(0, 1fr); padding: 8px; gap: 10px; }
  .feed { max-height: 42vh; }
  .panel { padding: 11px; border-radius: 12px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .kv { gap: 6px 14px; font-size: 13px; }
  .shapbar { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 46px; font-size: 12px; }
  .actions button { flex: 1 1 calc(50% - 8px); }
  .show-head { padding: 8px 10px; gap: 8px; }
  .show-head .steps { display: none; }
  .show-body { grid-template-columns: minmax(0, 1fr); height: auto; padding: 8px; }
  .show-body iframe { height: calc(100vh - 120px); height: calc(100dvh - 120px); min-height: 560px; }
  .view-switch [data-view="both"] { display: none; }
}
@media (max-width: 480px) {
  .an-head .brand { font-size: 16px; }
  .an-head label { font-size: 12px; }
  .numdiff .lbl { min-width: 0; width: 100%; }
  .numdiff .digits { font-size: 16px; }
  .sheet { padding: 16px 12px; }
  .grid4 { gap: 6px; padding: 12px 6px; }
  .svc { font-size: 11px; }
  .svc .ic { width: 42px; height: 42px; }
}
.bottomnav button em { font-style: normal; }
.an-tabs button { white-space: nowrap; }
@media (max-width: 1200px) and (min-width: 901px) {
  .an-head { flex-wrap: wrap; }
  .an-tabs { order: 3; width: 100%; }
}
@media (max-width: 600px) {
  .show-head .kit-btn { padding: 4px 8px; }
  .show-head .brand { font-size: 16px; }
  .show-head .brand span[data-en] { display: block; font-size: 12.5px !important; }
}
.flbar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) 54px; gap: 8px; align-items: center; font-size: 12.5px; margin: 4px 0; }
.flbar .bar { height: 12px; background: #f0f2f6; border-radius: 4px; position: relative; overflow: hidden; }
.flbar .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }

/* ================= amount habit, recharge, test numbers, modal ================= */
.habit { font-size: 13px; line-height: 1.45; margin-top: 10px; padding: 8px 10px; background: #f3f7fc; border-radius: 10px; }
.habit-warn { margin: 8px 0 0; }
.habit-note { margin-top: 6px; line-height: 1.4; }
.habitbox { background: #fffaf0; border: 1px solid #f3d58c; border-radius: 12px; padding: 8px 10px; margin: 10px 0; }
.hstrip { width: 100%; height: auto; display: block; margin: 4px 0; }
.band-NONE { background: #eef1f6; color: var(--ink-2); }
details.kit { margin-top: 16px; border: 1.5px dashed #b9c4d6; border-radius: 12px; background: #f7f9fc; }
details.kit > summary { cursor: pointer; padding: 10px 12px; font-weight: 700; font-size: 13.5px; color: var(--upay-blue-dark); }
details.kit[open] > summary { border-bottom: 1px dashed #c9d3e3; }
details.kit > div { padding: 4px 10px 10px; }
.kit-g { margin-top: 10px; }
.kit-gt { font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.kit-item { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; margin: 6px 0; cursor: pointer; }
.kit-item:hover, .kit-item:focus { outline: 2px solid var(--upay-cyan); outline-offset: -1px; }
.kit-item .kit-why { margin-top: 3px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kit-item .kit-role { padding: 1px 7px; font-size: 11px; }
.kit-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.modal { position: fixed; inset: 0; z-index: 900; background: rgba(16, 23, 42, .72); display: grid; place-items: center; padding: 16px; }
.modal-card { background: #fff; border-radius: 16px; width: min(1100px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 18px; box-shadow: var(--shadow); }
.kit-table h3 { font-size: 14.5px; margin: 16px 0 6px; }
.kit-table td { vertical-align: top; }
.kit-try { padding: 6px 12px; font-size: 13px; white-space: nowrap; }
@media (max-width: 600px) {
  .modal { padding: 0; } .modal-card { border-radius: 0; max-height: 100vh; height: 100%; padding: 12px; }
  .kit-table thead { display: none; }
  .kit-table table, .kit-table tbody, .kit-table tr, .kit-table td { display: block; width: 100%; }
  .kit-table tr { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
  .kit-table td { border: 0; padding: 2px 0; }
  .kit-table .kit-try { width: 100%; margin-top: 6px; }
}

/* ================= quiet by default: explanations behind a dropdown or an i ================= */
details.why { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
details.why.flat { margin-top: 0; border-top: 0; padding-top: 0; }
details.why > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--upay-blue-dark); list-style: none; }
details.why > summary::-webkit-details-marker { display: none; }
details.why > summary::before { content: "▸ "; }
details.why[open] > summary::before { content: "▾ "; }
details.why > *:not(summary) { margin-top: 8px; }
.lead { font-size: 15px; line-height: 1.45; margin: 6px 0 10px; }
.habit-mini { margin: 4px 0 0; }
.guide { position: relative; }
.guide > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.guide > summary::-webkit-details-marker { display: none; }
.i-dot { font-style: normal; font-weight: 800; font-family: Georgia, serif; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-grid; place-items: center; font-size: 12px; line-height: 1; }
.i-btn { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .45); color: #fff; font-weight: 800; font-family: Georgia, serif; display: grid; place-items: center; }
.info-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(420px, 92vw); background: #fff; color: var(--ink); border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 14px 16px; z-index: 80; font-size: 14px; line-height: 1.45; }
.info-panel p { margin: 8px 0 0; }
.info-panel a { color: var(--upay-blue); font-weight: 600; }
.guide-steps { margin: 4px 0 0; padding-left: 22px; font-size: 13.5px; line-height: 1.5; }
.guide-steps li { margin: 3px 0; }
.tour-btn { font-size: 15px; }
.tour-highlight { position: relative; z-index: 86; outline: 2.5px solid var(--upay-yellow); outline-offset: 3px; border-radius: 10px; box-shadow: 0 0 0 4000px rgba(16, 23, 42, .55); }
.tour { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.tour-card { position: fixed; pointer-events: auto; left: 50%; top: 72px; transform: translateX(-50%); width: min(380px, 92vw); background: #fff; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 16px 18px; }
.tour-head { display: flex; align-items: center; gap: 8px; }
.tour-icon { font-size: 20px; }
.tour-step-no { font-size: 12px; font-weight: 700; color: var(--upay-blue-dark); background: #eaf2fb; border-radius: 999px; padding: 3px 10px; }
.tour-x { margin-left: auto; background: none; border: 0; font-size: 20px; line-height: 1; color: var(--ink-3); cursor: pointer; width: 26px; height: 26px; }
.tour-card h4 { margin: 10px 0 4px; font-size: 15px; color: var(--upay-blue-dark); }
.tour-card p { margin: 0 0 10px; line-height: 1.45; }
.tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tour-dots { display: flex; gap: 5px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); display: block; }
.tour-dots i.on { background: var(--upay-blue); width: 16px; border-radius: 3px; }
.tour-btns { display: flex; align-items: center; gap: 4px; }
.tour-btns button { padding: 7px 14px; border-radius: 10px; font-size: 13px; }
.tour-btns .btn-link.hidden { display: none; }
@media (min-width: 1240px) { .tour-highlight.tour-sidebar { outline-offset: -2px; } }
.page-info { position: fixed; top: 12px; right: 12px; z-index: 90; }
.page-info > summary { list-style: none; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .5); color: #fff; font-weight: 800; font-family: Georgia, serif; display: grid; place-items: center; }
.page-info > summary::-webkit-details-marker { display: none; }
.page-info .info-panel { top: 42px; width: min(320px, 90vw); }
@media (max-width: 480px) { .page-info { top: auto; bottom: 76px; right: 10px; } .page-info .info-panel { top: auto; bottom: 42px; } }
/* the phone's i: on the "Prohori is watching over you" card; the panel opens under the card */
.shield { position: relative; }
.head-info { margin-left: auto; align-self: flex-start; }
.head-info > summary { list-style: none; cursor: pointer; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; font-weight: 800; font-family: Georgia, serif; display: grid; place-items: center; font-size: 14px; }
.head-info > summary::-webkit-details-marker { display: none; }
.head-info .info-panel { left: 0; right: 0; width: auto; top: calc(100% + 6px); }

/* ================= copilot as a dashboard: shell, overview, charts, tables =================
   Chart fills (bands as an ordered risk scale; customer outcome) were checked with a colour-blind separation
   validator: adjacent pairs differ by OKLab dE >= 10 under deuteranopia. Text keeps the ink tokens. */
:root {
  --shell: #131c36; --shell-line: rgba(255, 255, 255, .1); --page: #f2f4f8; --tile: #f6f8fb;
  --f-allow: #0f8a5f; --f-nudge: #d9a400; --f-step: #e2600c; --f-hold: #b3202a;
  --f-kept: #0a8f7a; --f-sent: #c62828; --f-wait: #a3acbd; --f-one: #2a6fc9;
}
:focus-visible { outline: 2px solid var(--upay-cyan); outline-offset: 2px; }
.an { background: var(--page); }
.an-head { background: var(--shell); gap: 14px; padding: 10px 16px; position: sticky; top: 0; z-index: 70; }
.an-head .brand { display: flex; align-items: center; gap: 9px; font-size: 17px; white-space: nowrap; }
/* the Prohori logo (ui/img): drawn for a white background, so on the navy bars it sits on a small white tile */
.mark { background: #fff; border-radius: 10px; padding: 2px; object-fit: contain; flex: none; display: block; }
.an-head .brand .mark { width: 34px; height: 34px; }
.show-head .brand { display: flex; align-items: center; gap: 9px; }
.shield .mark { width: 46px; height: 46px; border-radius: 13px; }
.boot-logo { display: block; width: 132px; height: auto; margin: 0 auto 10px; }
.boot.mini .boot-logo { display: none; }
.an-tabs button { display: inline-flex; align-items: center; gap: 8px; color: #aab6d3; font-size: 14px; padding: 8px 12px; border-radius: 9px; position: relative; }
.an-tabs button svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.an-tabs button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.an-tabs button.on { background: rgba(255, 255, 255, .13); color: #fff; }
.nav-count { font-style: normal; font-size: 11.5px; font-weight: 800; line-height: 1.5; background: var(--upay-yellow); color: #1b1b1b; border-radius: 999px; padding: 0 7px; min-width: 20px; text-align: center; }
.an-meta { display: flex; align-items: center; gap: 12px; }
.an-meta #clock { color: #aab6d3; }
.an-analyst { display: flex; align-items: center; gap: 8px; color: #aab6d3; font-size: 12.5px; }
.an-head input::placeholder { color: #8090b4; }
.an-body { padding: 18px; gap: 16px; }
.an-page { padding: 18px; min-width: 0; }
@media (min-width: 1240px) {                       /* wide: the bar becomes a sidebar */
  .an { display: grid; grid-template-columns: 232px minmax(0, 1fr); align-items: start; }
  .an-head { flex-direction: column; align-items: stretch; gap: 4px; padding: 18px 12px 14px; height: 100vh; }
  .an-head .brand { padding: 0 6px 16px; font-size: 19px; }
  .an-tabs { flex-direction: column; gap: 2px; }
  .an-tabs button { width: 100%; justify-content: flex-start; padding: 10px 12px; font-size: 14.5px; }
  .an-tabs button.on::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--upay-yellow); }
  .an-tabs .nav-count { margin-left: auto; }
  .an-meta { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 6px 0; border-top: 1px solid var(--shell-line); }
  .an-analyst { flex-direction: column; align-items: stretch; gap: 5px; }
  .an-head .an-analyst input { width: 100%; }
  .an-switches { justify-content: space-between; }
  .an-head .info-panel { left: auto; right: 0; top: auto; bottom: calc(100% + 8px); width: 208px; }
  .an-body, .an-page { min-height: 100vh; padding: 22px; }
  .feed { max-height: calc(100vh - 190px); }
}
@media (max-width: 1239px) {
  .an-head { flex-wrap: wrap; row-gap: 6px; }
  .an-tabs { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .an-tabs::-webkit-scrollbar { display: none; }
  .an-tabs button { flex: none; }
}
@media (max-width: 900px) {
  .an-head { position: static; }
  .an-body, .an-page { padding: 10px; }
  .an-meta { gap: 8px; }
}

/* panels, stats, tables */
.panel { border-radius: 12px; padding: 16px; box-shadow: 0 1px 2px rgba(19, 28, 54, .04); }
.panel h3 { font-size: 15px; font-weight: 700; line-height: 1.35; }
.panel .panel { box-shadow: none; background: #fcfdfe; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 8px; }
.kv > div { background: var(--tile); border-radius: 9px; padding: 9px 12px; min-width: 0; }
.kv > div > span { color: var(--ink-3); font-size: 12px; line-height: 1.3; margin-bottom: 3px; }
.kv > div > b { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.kv > div > b .muted { font-weight: 500; font-size: 12px; }
.tbox { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
table.t th { background: var(--tile); font-size: 12px; font-weight: 600; padding: 8px 10px; white-space: nowrap; }
table.t td { padding: 8px 10px; }
table.t th:first-child { border-top-left-radius: 10px; } table.t th:last-child { border-top-right-radius: 10px; }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: #fafbfd; }
.audit-t td { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; white-space: nowrap; }
.audit-t td.who { font-family: inherit; white-space: normal; }
.ok-chip { background: var(--allow-soft); border-color: #b9e3cd; color: #0b5c40; }
.bad-chip { background: var(--hold-soft); border-color: #f2b8b8; color: #8d1c1c; }

/* alert queue */
.queue { align-self: start; position: sticky; top: 18px; }
@media (max-width: 1239px) { .queue { position: static; } }
.feed { gap: 8px; padding-right: 2px; }
.feed .al { position: relative; overflow: hidden; padding: 10px 10px 10px 15px; border-radius: 10px; }
.feed .al::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--f-wait); }
.feed .al[data-band="HOLD"]::before { background: var(--f-hold); }
.feed .al[data-band="STEP_UP"]::before { background: var(--f-step); }
.feed .al[data-band="NUDGE"]::before { background: var(--f-nudge); }
.feed .al[data-band="ALLOW"]::before { background: var(--f-allow); }
.feed .al[data-band="COMPLAINT"]::before { background: #6b2fb3; }
.feed .al.sel { background: #f5f9ff; }
.feed .al .chip { padding: 0 7px; font-size: 11.5px; line-height: 1.6; }
.feed .al .amt { font-weight: 700; color: var(--ink); }
.feed .al .why { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.st i { width: 8px; height: 8px; border-radius: 50%; background: var(--f-wait); flex: none; }
.st.s-wait i { background: var(--f-nudge); } .st.s-kept i { background: var(--f-kept); } .st.s-sent i { background: var(--f-sent); }
.st.s-case i { background: #6b2fb3; }
.feed .al .st { margin-top: 5px; }
.thread { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.thread-msg { display: flex; gap: 10px; align-items: flex-start; }
.thread-ic { font-size: 18px; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #f2f6fc; }
.thread-msg.analyst .thread-ic { background: #f1e9fb; }
.thread-msg.customer .thread-ic { background: var(--upay-yellow-soft); }
.thread-body { background: #f8f4fe; border-radius: 0 10px 10px 10px; padding: 8px 12px; font-size: 13.5px; line-height: 1.45; flex: 1; border-left: 3px solid #6b2fb3; }
.thread-msg.customer .thread-body { background: #fffaf0; border-left-color: var(--f-nudge); }
.thread-who { font-weight: 700; color: var(--upay-blue-dark); font-size: 12.5px; margin-bottom: 2px; }
.thread-msg.wait .thread-body { background: none; border-left-style: dashed; font-style: italic; }

/* case detail */
.case-amt { font-size: 24px; font-weight: 800; line-height: 1; }
.gauge { height: 12px; }
.gauge i { top: -5px; height: 22px; box-shadow: 0 0 0 2px #fff; }
.gauge-scale { position: relative; height: 18px; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.gauge-scale span { position: absolute; top: 0; white-space: nowrap; }
.actions button:hover { border-color: var(--upay-blue); }
.actions button.rec:hover { filter: brightness(1.08); }

/* ---------- overview ---------- */
.ov { display: flex; flex-direction: column; gap: 16px; max-width: 1500px; }
.ov-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; }
.ov-head h1 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.2; }
.ov-head p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.ov-sys { display: flex; flex-wrap: wrap; gap: 6px; }
.ov-sys .chip { font-weight: 500; color: var(--ink-2); }
.ov-sys .chip b { color: var(--ink); font-weight: 700; }
.ov h2 { margin: 0; font-size: 16px; font-weight: 700; }
.ov .sub { margin: 3px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.flow { padding: 20px; }
.flow-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.flow-total { text-align: right; font-size: 12.5px; color: var(--ink-3); }
.flow-total b { display: block; font-size: 17px; color: var(--ink); }
.hero-fig { margin: 16px 0 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.hero-fig b { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -.01em; }
.hero-fig span { font-size: 15px; color: var(--ink-2); }
.seg { display: flex; gap: 2px; height: 22px; }
.seg i { display: block; min-width: 10px; border-radius: 0; }
.seg i:first-child { border-radius: 4px 0 0 4px; } .seg i:last-child { border-radius: 0 4px 4px 0; } .seg i:only-child { border-radius: 4px; }
.seg .k { background: var(--f-kept); } .seg .s { background: var(--f-sent); } .seg .w { background: var(--f-wait); }
.seg.none { background: var(--tile); border: 1px dashed #c9d1df; border-radius: 4px; }
.flow-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; margin-top: 14px; }
.flow-legend > div { display: grid; grid-template-columns: 12px minmax(0, 1fr); column-gap: 8px; align-items: baseline; }
.flow-legend .sw { width: 12px; height: 12px; border-radius: 3px; transform: translateY(1px); }
.sw.k { background: var(--f-kept); } .sw.s { background: var(--f-sent); } .sw.w { background: var(--f-wait); }
.flow-legend span { font-size: 13px; color: var(--ink-2); }
.flow-legend b { grid-column: 2; font-size: 19px; font-weight: 800; }
.flow-legend em { grid-column: 2; font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.flow-empty { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.tile .lbl { font-size: 13px; color: var(--ink-2); }
.tile .val { font-size: 28px; font-weight: 800; line-height: 1.15; margin-top: 4px; }
.tile .val small { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.tile .note { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.4; }
.tile .note .band { margin-right: 4px; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ov-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ov-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 28px; margin-top: 16px; }
.lt td { vertical-align: top; }
.lt tbody tr { cursor: pointer; }
.lt tbody tr:focus-visible { outline-offset: -2px; }
.lt .why { max-width: 300px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lt tr.fresh td { animation: flash 1.6s ease-out 2; }
.lt .src { font-size: 11.5px; color: var(--ink-3); }
.hb { display: grid; grid-template-columns: minmax(0, var(--lbl, 96px)) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; padding: 5px 0; }
.hb .track { height: 16px; position: relative; }
.hb .track i { position: absolute; left: 0; top: 0; bottom: 0; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--f-one); }
.hb .track i.b-HOLD { background: var(--f-hold); } .hb .track i.b-STEP_UP { background: var(--f-step); } .hb .track i.b-NUDGE { background: var(--f-nudge); }
.hb .v { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.hb .lab { color: var(--ink-2); line-height: 1.3; }
.hb .lab small { display: block; color: var(--ink-3); font-size: 11.5px; }
.axis0 { border-left: 1px solid #d5dbe6; }
.big-line { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 10px 0 8px; }
.big-line b { font-size: 22px; font-weight: 800; color: var(--ink); }
.tip { position: fixed; z-index: 2000; pointer-events: none; background: #131c36; color: #fff; font-size: 12.5px; line-height: 1.4; padding: 6px 9px; border-radius: 8px; max-width: 260px; box-shadow: var(--shadow); opacity: 0; transition: opacity .12s; }
.tip.on { opacity: 1; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ov-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .hero-fig b { font-size: 38px; }
  .flow-legend, .ov-two { grid-template-columns: minmax(0, 1fr); }
  .flow-total { text-align: left; }
  .ov-head h1 { font-size: 20px; }
  .tile .val { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .feed .al.fresh, .lt tr.fresh td, .sheet { animation: none; } .tip { transition: none; } }/* fixes after looking at it: queue rows keep their height inside the scrolling column; table cells that must not wrap */
.feed .al { flex: none; }
.guide > summary.i-btn { display: grid; }
.nw { white-space: nowrap; }
.lt .why { max-width: none; color: var(--ink); }
.lt .src { margin-top: 2px; }
.lt td:first-child .src { margin-top: 0; }
.ov-side { --lbl: 132px; }
