/* Driver app (PWA) of the presentation prototype. Mobile first (360-430 px), system fonts, no network resource.
   Look: light background, rounded white cards, yellow round arrow buttons, bold section titles
   (Harry's description of the fleet's hub page; nothing is taken from their site).
   Rules of the brief: tap targets >= 48 px, body text >= 16 px, nothing below 12 px. */

:root {
  --bg: #F4F5F7;
  --card: #FFFFFF;
  --ink: #1B1F2A;
  --muted: #5A6272;
  --line: #E1E4EA;
  --yellow: #FFC800;
  --yellow-press: #F0BA00;
  --yellow-soft: #FFF4C7;
  --ok-ink: #0B6B3A;     --ok-bg: #E2F5EA;
  --warn-ink: #7A4B00;   --warn-bg: #FFF0C2;
  --bad-ink: #B3261E;    --bad-bg: #FDE8E6;
  --info-ink: #1B4FA0;   --info-bg: #E5EEFB;
  --dispute-ink: #5B2FB3; --dispute-bg: #EEE7FB;
  --bar-h: 69px;        /* height of the sticky header: banners sit right under it, so the marks stay visible */
  --radius: 22px;
  --radius-s: 16px;
  --shadow: 0 1px 2px rgba(27, 31, 42, .06), 0 4px 14px rgba(27, 31, 42, .04);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--bg); color-scheme: light; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.45;
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: transparent;
}

.app { max-width: 480px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; position: relative; }

a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.screen:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1 { font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; margin: 4px 0 8px; }
h2 { font-size: 20px; line-height: 1.25; font-weight: 800; margin: 0 0 8px; }
p { margin: 0 0 10px; }
.lead { color: var(--muted); margin: 0 0 16px; }
.sub { color: var(--muted); font-size: 16px; }
.nw { white-space: nowrap; }
/* a phone inside running text (ДТП): a tap target of its own, not a thin underlined word */
.tel-inline { display: inline-flex; align-items: center; min-height: 48px; padding: 0 2px; white-space: nowrap; font-weight: 800; }

/* ---------- header ---------- */

.top { position: sticky; top: 0; z-index: 20; }
.bar {
  display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(244, 245, 247, .96);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 8px; min-height: 48px; min-width: 0;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
}
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; white-space: nowrap; }
.brand-ti {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--yellow); color: var(--ink); font-size: 17px; font-weight: 900; letter-spacing: -.03em;
}
.marks { display: flex; flex-direction: row; gap: 3px; align-items: center; white-space: nowrap; }
.mark {
  font-size: 12px; font-weight: 700; line-height: 1.25; padding: 1px 7px; border-radius: 999px; white-space: nowrap;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
}
.mark-demo { background: var(--yellow-soft); border-color: #F0D878; color: #5C4600; }
.bell {
  position: relative; margin-left: auto; flex: none; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.bell[hidden] { display: none; }
.menu-btn {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff;
  border: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.menu-btn[hidden] { display: none; }
.menu-btn:active { background: #F2F3F6; }
/* the out-of-step banner of the live link: right under the header, pushes the screen down, never covers it */
.sync {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px;
  padding: 8px 16px; background: var(--yellow-soft); border-bottom: 1px solid #F0D878; color: #4D3B00; font-weight: 700;
}
.sync[hidden] { display: none; }
.sync-btn {
  min-height: 48px; padding: 8px 18px; border: 2px solid var(--ink); border-radius: 16px; background: var(--yellow);
  color: var(--ink); font-size: 17px; font-weight: 800; cursor: pointer;
}
.sync-btn:active { background: var(--yellow-press); }
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 11px; border: 2px solid var(--bg);
  background: #E5322D; color: #fff; font-size: 13px; font-weight: 800; line-height: 1;
}
.badge[hidden] { display: none; }

.screen { padding: 12px 16px calc(32px + env(safe-area-inset-bottom)); }

/* ---------- navigation row ---------- */

.crumbs { display: flex; gap: 10px; margin: 0 0 14px; }
.crumb {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px 0 12px;
  border-radius: 24px; border: 1px solid var(--line); background: #fff;
  font-size: 16px; font-weight: 600; text-decoration: none; color: var(--ink); cursor: pointer;
}
.crumb-home { margin-left: auto; padding: 0 16px; }

/* ---------- cards, tiles ---------- */

.card {
  background: var(--card); border-radius: var(--radius); padding: 18px; margin: 0 0 14px; box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }
.card-note { background: var(--yellow-soft); box-shadow: none; border: 1px solid #F0D878; }
.card-info { background: var(--info-bg); box-shadow: none; color: var(--ink); }

.tile {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 96px; margin: 0 0 12px;
  padding: 16px 16px 16px 20px; border: 0; border-radius: 26px; background: var(--card);
  box-shadow: var(--shadow); color: var(--ink); text-decoration: none; text-align: left; cursor: pointer;
}
.tile:active { background: #FBFBFC; }
.tile-main { flex: 1; min-width: 0; }
.tile-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; }
.tile-sub { display: block; color: var(--muted); font-size: 16px; line-height: 1.3; margin-top: 2px; }
.tile-side { text-align: right; flex: none; font-weight: 800; font-size: 18px; }
.arrow {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
}
.tile:active .arrow, .rowbtn:active .arrow { background: var(--yellow-press); }
.tile-alert { background: var(--yellow-soft); border: 1px solid #F0D878; }

.rowbtn {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 6px 10px 2px;
  text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-bottom: 0;
  width: 100%; text-align: left; cursor: pointer;
}
.rowbtn:first-child { border-top: 0; }
.rowbtn-main { flex: 1; min-width: 0; }
.rowbtn-title { font-weight: 800; font-size: 18px; line-height: 1.25; }
.rowbtn-sub { color: var(--muted); font-size: 16px; }
.arrow-s { width: 48px; height: 48px; }

/* ---------- buttons ---------- */

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px;
  margin: 0 0 10px; padding: 12px 20px; border: 2px solid var(--yellow); border-radius: 18px;
  background: var(--yellow); color: var(--ink); font-size: 18px; font-weight: 800; line-height: 1.25;
  text-align: center; text-decoration: none; cursor: pointer;
}
.btn:active { background: var(--yellow-press); border-color: var(--yellow-press); }
.btn-2 { background: #fff; border-color: var(--line); }
.btn-2:active { background: #F2F3F6; border-color: var(--line); }
.btn[disabled] { opacity: .5; cursor: default; }
.actions { margin-top: 14px; }
.actions .btn:last-child { margin-bottom: 0; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { margin-bottom: 0; }

/* ---------- chips ---------- */

.chip {
  display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.35;
  background: #ECEEF2; color: #3A4150; white-space: nowrap;
}
.chip-warn { background: var(--warn-bg); color: var(--warn-ink); }
.chip-ok { background: var(--ok-bg); color: var(--ok-ink); }
.chip-info { background: var(--info-bg); color: var(--info-ink); }
.chip-bad { background: var(--bad-bg); color: var(--bad-ink); }
.chip-dispute { background: var(--dispute-bg); color: var(--dispute-ink); }

/* ---------- home ---------- */

.hello h1 { font-size: 26px; margin-top: 0; }
.plate { font-weight: 800; letter-spacing: .03em; white-space: nowrap; }
.car { font-size: 19px; margin-bottom: 8px; }

/* ---------- forms ---------- */

label, .label { display: block; font-weight: 700; margin: 16px 0 6px; }
.label-first { margin-top: 0; }
input[type="text"], input[type="tel"], textarea {
  display: block; width: 100%; padding: 14px 16px; font: inherit; font-size: 18px; color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius-s); min-height: 56px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--ink); outline: none; }
.err { margin: 10px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--bad-bg); color: var(--bad-ink); font-weight: 600; }
.err:empty { display: none; }
form .btn { margin-top: 14px; }
.notice { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--yellow-soft); color: #4D3B00; font-weight: 600; }

.kv { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.kv:first-of-type { border-top: 0; }
.kv-k { color: var(--muted); }
.kv-v { font-weight: 700; text-align: right; }

.photo-box { margin-top: 6px; }
.photo-pick { cursor: pointer; position: relative; margin-bottom: 10px; }
.photo-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.photo-pick:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.thumb { display: block; width: 100%; max-height: 200px; object-fit: cover; border-radius: var(--radius-s); border: 1px solid var(--line); margin-bottom: 10px; }

/* ---------- fines ---------- */

.fine-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 76px; margin: 0 0 12px; padding: 14px 14px 14px 18px;
  border-radius: 22px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
}
.fine-main { flex: 1; min-width: 0; }
.fine-art { font-weight: 800; font-size: 18px; line-height: 1.25; }
.fine-date { color: var(--muted); font-size: 16px; }
.fine-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; }
.amt { font-weight: 800; font-size: 19px; white-space: nowrap; }
.big-amt { font-size: 38px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 2px; }
.big-label { color: var(--muted); font-weight: 700; }
.instead { color: var(--muted); font-size: 17px; }
.uin { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; word-break: break-all; color: var(--muted); }
.fine-title { font-weight: 800; font-size: 20px; line-height: 1.3; margin: 0 0 6px; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* ---------- balance ---------- */

.balance-big { font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 4px; }
.neg { color: var(--bad-ink); }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ledger li:first-child { border-top: 0; }
.l-when { color: var(--muted); font-size: 16px; grid-column: 1 / 3; }
.l-op { font-weight: 600; min-width: 0; }
.l-amt { font-weight: 800; text-align: right; white-space: nowrap; }
.l-bal { grid-column: 1 / 3; color: var(--muted); font-size: 16px; }
.l-plus { color: var(--ok-ink); }
.bullets { margin: 0; padding-left: 22px; }
.bullets li { margin: 0 0 6px; }

/* ---------- requests ---------- */

.req-list { list-style: none; margin: 0; padding: 0; }
.req-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.req-list li:first-child { border-top: 0; padding-top: 0; }
.req-title { font-weight: 800; }
.req-status { margin-top: 4px; }

.dates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 14px; }
.date-btn {
  min-height: 56px; padding: 6px 4px; border-radius: 16px; border: 2px solid var(--line); background: #fff;
  font-size: 17px; font-weight: 700; cursor: pointer; text-align: center;
}
.date-btn[aria-pressed="true"] { background: var(--yellow); border-color: var(--ink); }

/* ---------- manager dialog ---------- */

.thread { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; }
.bubble { max-width: 88%; padding: 12px 14px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); white-space: pre-wrap; }
.bubble-me { align-self: flex-end; background: var(--yellow-soft); border-bottom-right-radius: 6px; }
.bubble-them { align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble-who { display: block; font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.bubble-btn { margin-top: 8px; }
.bubble-btn .btn { min-height: 48px; font-size: 16px; margin: 0; }

/* ---------- routes, STO ---------- */

.sto-name { font-size: 22px; font-weight: 800; line-height: 1.25; margin: 0 0 2px; }
.slots { display: grid; gap: 10px; margin: 10px 0 0; }

/* ---------- notifications ---------- */

.notif {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; margin: 0 0 12px; padding: 14px 14px 14px 16px;
  border: 0; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); text-align: left; cursor: pointer; color: var(--ink);
}
.notif-unread { background: #FFFBEA; box-shadow: 0 0 0 2px var(--yellow); }
.dot { flex: none; width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; background: transparent; }
.notif-unread .dot { background: #E5322D; }
.notif-main { flex: 1; min-width: 0; }
.notif-stamp { color: var(--muted); font-size: 15px; font-weight: 600; }
.notif-title { font-weight: 800; }
.notif-body { color: #323847; margin-top: 4px; font-size: 16px; }
.notif .arrow { width: 44px; height: 44px; margin-top: 2px; }

/* ---------- notifications on the phone (B3): the card on «Главная», the status line, the switches ---------- */

.notif-card .btn-row { margin-top: 12px; }
.status-line { font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -.015em; margin: 0; }
.card-switches { padding-top: 4px; padding-bottom: 4px; }
.switch {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 64px; padding: 8px 0;
  border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font-size: 18px; font-weight: 700; cursor: pointer;
}
.switch:first-child { border-top: 0; }
.switch-label { flex: 1; min-width: 0; }
.switch-track {
  flex: none; position: relative; width: 60px; height: 36px; border-radius: 999px; background: #C5CAD3; transition: background .15s;
}
.switch-knob {
  position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(27, 31, 42, .35); transition: transform .15s;
}
.switch[aria-checked="true"] .switch-track { background: var(--yellow); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(24px); }

/* ---------- toasts ---------- */

.toasts {
  position: fixed; left: 0; right: 0; top: calc(var(--bar-h) + var(--sync-h, 0px) + env(safe-area-inset-top)); z-index: 50; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 8px 12px 0;
}
.toast {
  pointer-events: auto; width: 100%; max-width: 456px; display: flex; align-items: stretch;
  background: var(--ink); color: #fff; border-radius: 20px; box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  animation: toast-in .22s ease-out;
}
.toast-main { flex: 1; min-width: 0; padding: 12px 6px 12px 16px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; min-height: 56px; }
.toast-title { display: block; font-weight: 800; font-size: 16px; line-height: 1.3; }
.toast-body {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-size: 16px; line-height: 1.3; color: #D9DCE4; margin-top: 2px;
}
.toast-x { flex: none; width: 52px; border: 0; background: none; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; border-radius: 0 20px 20px 0; }
.toast-plain .toast-title { font-weight: 700; }
@keyframes toast-in { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- presenter sheet (hidden: opens by a 2 s press on the header or by #presenter) ---------- */

.sheet-back { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(27, 31, 42, .55); }
.sheet-back[hidden] { display: none; }
.sheet {
  width: 100%; max-width: 480px; max-height: 90vh; max-height: 90dvh; overflow: auto; background: #fff;
  border-radius: 26px 26px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
}
.sheet h2 { font-size: 22px; }
.sheet .btn { min-height: 52px; font-size: 17px; margin-bottom: 8px; }
.sheet-msg { min-height: 44px; margin: 6px 0 8px; padding: 10px 14px; border-radius: 14px; background: #ECEEF2; font-weight: 600; }
.sheet-msg:empty { background: none; padding: 0; }

/* ---------- sign-in ---------- */

.signin { text-align: center; padding-top: 6px; }
.signin .logo { display: grid; place-items: center; width: 84px; height: 84px; margin: 6px auto 14px; border-radius: 26px; background: var(--yellow); font-size: 36px; font-weight: 900; letter-spacing: -.04em; }
.signin h1 { text-align: center; }
.signin form { text-align: left; }
.signin .sub { text-align: center; }

@media (min-width: 560px) {
  body { background: #E9EBF0; }
  .app { background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 12px 40px rgba(27, 31, 42, .10); }
}

@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; }
  .switch-track, .switch-knob { transition: none; }
}

/* ======================= pre-call round (fleet-data §13.9, §13.10, §13.14) ======================= */

/* the header is the colour of the status bar and the splash (#F4F5F7): solid, not translucent */
.bar { background: var(--bg); }

/* ---------- bottom tab bar: the five places ---------- */

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center;
  background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar[hidden] { display: none; }
.tab {
  flex: 1; max-width: 96px; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 6px 2px; text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.15; white-space: nowrap;
}
.tab-icon { position: relative; display: grid; place-items: center; width: 44px; height: 30px; border-radius: 15px; }
.tab-on { color: var(--ink); }
.tab-on .tab-icon { background: var(--yellow); }
.tab-badge {
  position: absolute; top: -4px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center;
  border-radius: 10px; border: 2px solid #fff; background: #E5322D; color: #fff; font-size: 12px; font-weight: 800; line-height: 1;
}
/* the tab bar is as wide as the app column */
@media (min-width: 560px) { .tabbar { left: 50%; right: auto; width: 480px; transform: translateX(-50%); } }
.screen { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }

/* ---------- navigation row: a single back link ---------- */
.crumbs { margin: 0 0 8px; }

/* ---------- home: the greeting line and «Сейчас важно» ---------- */

.greet { margin: 2px 0 12px; font-size: 16px; line-height: 1.4; font-weight: 700; letter-spacing: -.025em; }
.now h2 { margin-bottom: 4px; }
.now-bal {
  display: flex; align-items: center; min-height: 56px; font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em;
  text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums;
}
.now-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.now-text { flex: 1; min-width: 0; font-weight: 700; }
.btn.now-btn { flex: none; width: auto; min-width: 128px; min-height: 52px; margin: 0; padding: 8px 16px; font-size: 17px; }
.now-bal.neg { color: var(--bad-ink); }
.now-none { margin: 4px 0 0; color: var(--muted); font-weight: 600; }
.proto-note { margin-top: 6px; }

/* ---------- the fine card as an app screen ---------- */

.fine-top { margin: 0 0 10px; }
.fine-top .chip { white-space: normal; }
.fine-card .kv { padding: 8px 0; }
.fine-status { margin-top: 12px; }
.track { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 8px; }
.track-step { display: flex; align-items: center; gap: 12px; min-height: 40px; font-weight: 700; color: var(--muted); }
.track-dot {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #ECEEF2; color: var(--muted);
  font-size: 16px; font-weight: 800;
}
.track-done { color: var(--ink); }
.track-done .track-dot { background: var(--ok-bg); color: var(--ok-ink); }
.track-cur { color: var(--ink); }
.track-cur .track-dot { background: var(--yellow); color: var(--ink); }
.panel-ok {
  display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--ok-bg); border: 2px solid #9BD8B5; color: var(--ok-ink);
}
.panel-ok p { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 800; }
.panel-ok-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ok-ink); color: #fff; }
.panel-ok-icon svg { width: 26px; height: 26px; }
.notice-top { margin: 0 0 14px; }

/* ---------- balance: figures in columns ---------- */
.ledger, .balance-big, .l-amt, .l-bal, .amt { font-variant-numeric: tabular-nums; }

/* ---------- notification centre: compact ---------- */

.notif { display: flex; align-items: stretch; gap: 4px; width: 100%; margin: 0 0 10px; padding: 0 8px 0 0; border: 0; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.notif-unread { background: #FFFBEA; box-shadow: 0 0 0 2px var(--yellow); }
.notif-main { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 10px; padding: 12px 4px 12px 14px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); min-height: 64px; border-radius: 20px; }
.notif-text { flex: 1; min-width: 0; display: block; }
.notif-stamp, .notif-title, .notif-body { display: block; }
.notif-title { font-weight: 800; }
.notif:not(.notif-open) .notif-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.notif-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
.notif-body { color: #323847; margin-top: 2px; font-size: 16px; }
.notif .arrow.notif-go { align-self: center; flex: none; width: 48px; height: 48px; margin: 0; border: 0; cursor: pointer; }
