@font-face {
  font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+2248;
}
@font-face {
  font-family: "Noto Sans Georgian Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/georgian/noto-sans-georgian-georgian-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+10A0-10FF, U+1C90-1CBF, U+2D00-2D2F;
}

:root {
  --navy-950: #081220; --navy-900: #0b1626; --navy-800: #102039; --navy-700: #183050; --navy-600: #25426b;
  --amber: #f5a524; --amber-ink: #3b2500;
  --bg: #f2f4f8; --surface: #ffffff; --surface-2: #f7f9fc; --text: #0f1b2d; --muted: #64748b; --line: #e2e7ef;
  --brand: #2563eb; --brand-ink: #ffffff; --brand-soft: #e8effd;
  --ok: #15803d; --ok-soft: #e2f5e9; --danger: #dc2626; --danger-soft: #fde8e8; --warn: #b45309; --warn-soft: #fef3d6;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 6px 20px -8px rgba(15, 27, 45, .12);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09111c; --surface: #111b2b; --surface-2: #162235; --text: #e8eef6; --muted: #8b9bb1; --line: #1f2f47;
    --brand: #5b93f7; --brand-ink: #071120; --brand-soft: #172b4d;
    --ok: #4ade80; --ok-soft: #12301f; --danger: #f87171; --danger-soft: #3a1717; --warn: #fbbf24; --warn-soft: #3a2c0c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -10px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 "Inter Variable", "Noto Sans Georgian Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: 1rem; margin: 0 0 14px; font-weight: 650; letter-spacing: -.01em; }
h3 { display: flex; align-items: center; gap: 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 12px; font-weight: 650; }
h3:first-of-type { margin-top: 0; }
h3 .ic { width: 16px; height: 16px; }
p { margin: 0 0 10px; }
small { font-size: .78em; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; flex: none; }
.ic.flip { transform: rotate(180deg); }
.muted { color: var(--muted); font-size: .86rem; }
.nowrap { white-space: nowrap; }
.neg { color: var(--danger) !important; }
.pos { color: var(--ok) !important; }
.warnc { color: var(--warn) !important; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: -.01em; min-width: 0; }
.logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo.big { font-size: 1.2rem; }
.logo.big .logo-mark { width: 42px; height: 42px; }
.langs { display: inline-flex; background: rgba(255, 255, 255, .08); border-radius: 9px; padding: 3px; }
.langs a { padding: 3px 9px; border-radius: 7px; font-size: .76rem; font-weight: 600; color: rgba(255, 255, 255, .6); }
.langs a.on { background: rgba(255, 255, 255, .16); color: #fff; }

/* ---------- owner shell ---------- */
.shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 14px 14px;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: #fff;
}
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px 18px; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: rgba(255, 255, 255, .38); padding: 14px 10px 6px; font-weight: 650; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: rgba(255, 255, 255, .72);
  font-weight: 550; font-size: .92rem; position: relative;
}
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.on { background: rgba(245, 165, 36, .14); color: #fff; }
.nav a.on .ic { color: var(--amber); }
.nav a.on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--amber); }
.nav a span { flex: 1; }
.pill { background: var(--brand); color: #fff; font-size: .7rem; padding: 1px 7px; border-radius: 99px; font-weight: 700; }
.pill.warn { background: var(--amber); color: var(--amber-ink); }
.side-lang { padding: 10px 6px 0; }
.side-lang .langs { display: flex; }
.side-lang .langs a { flex: 1; text-align: center; padding: 5px 9px; }
.stack { display: grid; gap: 18px; min-width: 0; }
.stack > .card { margin-bottom: 0; }
.side-foot { display: flex; align-items: center; gap: 8px; padding: 12px 6px 0; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 10px; }
.userchip { display: flex; align-items: center; gap: 10px; color: #fff; flex: 1; min-width: 0; font-weight: 600; font-size: .88rem; }
.uname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iconbtn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .75); cursor: pointer; }
.iconbtn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.content { min-width: 0; }
.page { padding: 28px 32px 48px; max-width: 1320px; margin: 0 auto; }

/* ---------- driver shell ---------- */
.dtop {
  position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: var(--navy-900);
}
.dtop-right { display: flex; align-items: center; gap: 8px; }
.page-driver { max-width: 760px; padding: 18px 16px 120px; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 8px 24px calc(8px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -12px rgba(15, 27, 45, .18);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: .7rem; font-weight: 600; padding: 4px; }
.tabbar a.on { color: var(--brand); }
.tabbar .fab {
  width: 60px; height: 60px; border-radius: 20px; background: var(--amber); color: var(--amber-ink); display: grid; place-items: center;
  margin-top: -30px; box-shadow: 0 10px 24px -6px rgba(245, 165, 36, .6); border: 4px solid var(--surface);
}
.tabbar .fab .ic { width: 28px; height: 28px; stroke-width: 2.4; }

/* ---------- auth ---------- */
.auth-body { background: var(--surface); }
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth-art {
  position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 40px 48px; color: #fff;
  background: radial-gradient(1200px 600px at 10% -10%, #1c3b66 0%, transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-950));
}
.auth-copy { margin-top: auto; margin-bottom: 220px; position: relative; z-index: 1; max-width: 460px; }
.auth-copy h2 { font-size: 2.1rem; line-height: 1.15; letter-spacing: -.03em; font-weight: 700; margin-bottom: 26px; }
.auth-copy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.auth-copy li { display: flex; gap: 12px; align-items: center; color: rgba(255, 255, 255, .82); font-size: .98rem; }
.auth-copy li .ic { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: rgba(245, 165, 36, .14); color: var(--amber); }
.auth-road { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 260px; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; position: relative; }
.auth-langs { position: absolute; top: 24px; right: 24px; background: var(--bg); }
.auth-langs a { color: var(--muted); }
.auth-langs a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 1.75rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.auth-alt { text-align: center; color: var(--muted); margin-top: 22px; font-size: .9rem; }
.auth-alt a { font-weight: 600; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-art { padding: 22px 22px 26px; }
  .auth-copy, .auth-road { display: none; }
  .auth-main { justify-content: flex-start; padding-top: 64px; }
  .auth-langs { top: 16px; right: 16px; }
}

/* ---------- page furniture ---------- */
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pagehead .sub { color: var(--muted); margin: 4px 0 0; font-size: .9rem; }
.pagehead-actions { display: flex; gap: 8px; }
.crumbs { margin-bottom: 12px; }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; font-size: .86rem; }
.crumbs a:hover { color: var(--text); }
.crumbs .ic { width: 16px; height: 16px; }
.sect { margin: 26px 0 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.sect-row { display: flex; justify-content: space-between; align-items: baseline; }
.sect-row a { display: inline-flex; align-items: center; gap: 2px; font-size: .84rem; font-weight: 600; }
.sect-row a .ic, .card-head a .ic { width: 15px; height: 15px; }
.foot-note { margin-top: 10px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.card.flush .card-head { padding: 18px 20px 0; }
.card-head a { display: inline-flex; align-items: center; gap: 2px; font-size: .84rem; font-weight: 600; }
.pad { padding: 18px 20px; margin: 0; display: flex; align-items: center; gap: 8px; }
.card.form { max-width: 760px; }
.split aside .card.form, .split.wide-left aside .card.form { max-width: none; }
.stack > .card:last-child, .split aside > .card:last-child { margin-bottom: 0; }
.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 18px; align-items: start; margin-top: 18px; }
.split.wide-left { grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr); margin-top: 0; }
.empty { text-align: center; padding: 60px 20px; display: grid; gap: 10px; justify-items: center; }

/* ---------- forms ---------- */
label, .flabel { display: block; margin: 0 0 14px; font-size: .82rem; font-weight: 600; color: var(--text); }
.flabel { margin-bottom: 8px; }
label small { display: block; font-weight: 450; color: var(--muted); margin-top: 5px; }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px; font: inherit; font-size: .95rem; font-weight: 450;
  color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 11px;
  transition: border-color .12s, box-shadow .12s;
}
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--muted) 50%, var(--line)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0 14px; }
.amount-row { display: flex; gap: 10px; align-items: flex-start; }
.amount-row .grow { flex: 1; }
.amount-row select { min-width: 96px; }
input.amount { font-size: 1.7rem; font-weight: 700; padding: 12px 14px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.amount-cur { font-size: 1.05rem !important; font-weight: 650 !important; padding-top: 19px !important; padding-bottom: 19px !important; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }

.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 18px; }
.pick { margin: 0; cursor: pointer; }
.pick input, .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; }
.pick-in { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 12px 6px 10px; border-radius: 13px; border: 1.5px solid var(--line); font-size: .74rem; font-weight: 600; line-height: 1.2; color: var(--muted); background: var(--surface); transition: all .12s; height: 100%; }
.pick:hover .pick-in { border-color: color-mix(in srgb, var(--c, var(--brand)) 50%, var(--line)); }
.pick input:checked + .pick-in { border-color: var(--c, var(--brand)); background: color-mix(in srgb, var(--c, var(--brand)) 9%, var(--surface)); color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--brand)) 16%, transparent); }
.pick input:focus-visible + .pick-in { outline: 2px solid var(--brand); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--bg); padding: 4px; border-radius: 12px; margin-bottom: 18px; }
.seg.two { grid-template-columns: repeat(2, 1fr); max-width: 360px; }
.seg label { margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 9px 6px; border-radius: 9px; font-size: .8rem; font-weight: 600; color: var(--muted); line-height: 1.25; height: 100%; }
.seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); }
.filedrop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px; border: 1.5px dashed color-mix(in srgb, var(--muted) 45%, var(--line)); border-radius: 13px; cursor: pointer; color: var(--muted); background: var(--surface-2); position: relative; }
.filedrop:hover, .filedrop.has-file { border-color: var(--brand); color: var(--brand); }
.filedrop .ic { width: 24px; height: 24px; }
.filedrop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.filedrop small { flex-basis: 100%; margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: .88rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: transform .06s, filter .12s, background .12s;
}
.btn .ic { width: 17px; height: 17px; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 16px -8px var(--brand); }
.btn.primary:hover { filter: brightness(1.07); background: var(--brand); }
.btn.accent { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.btn.danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.small { padding: 6px 11px; font-size: .8rem; border-radius: 9px; }
.btn.lg { padding: 13px 20px; font-size: .95rem; border-radius: 13px; }
.btn.wide { width: 100%; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.card .actions { margin-bottom: 0; }
.actions.two { display: grid; grid-template-columns: 1fr 1fr; }
form.inline { display: inline; }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: .76rem; font-weight: 600; cursor: pointer; }
.chip .ic { width: 14px; height: 14px; }
.chip:hover { background: var(--surface-2); }
.chip.static { cursor: default; background: var(--surface-2); }
.chip.danger { color: var(--danger); }
.chip.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--bg); font-size: .72rem; font-weight: 600; color: var(--muted); }
.tag.pay-own { background: var(--warn-soft); color: var(--warn); }
.tag.pay-card { background: var(--brand-soft); color: var(--brand); }

.flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 13px; margin-bottom: 18px; font-weight: 600; font-size: .9rem; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.bad { background: var(--danger-soft); color: var(--danger); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .74rem; font-weight: 650; background: var(--bg); color: var(--muted); white-space: nowrap; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.active, .badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.active i { animation: pulse 1.8s infinite; }
.badge.finished { background: var(--brand-soft); color: var(--brand); }
.badge.finished i { display: none; }
.badge.pending, .badge.soon { background: var(--warn-soft); color: var(--warn); }
.badge.disabled, .badge.expired { background: var(--danger-soft); color: var(--danger); }
.badge.onhero { background: rgba(255, 255, 255, .12); color: #fff; }
.badge.onhero.active { color: #86efac; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- avatars and icon bubbles ---------- */
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: .78rem; font-weight: 700; flex: none; color: #fff; background: #64748b; }
.avatar.sm { width: 28px; height: 28px; border-radius: 9px; font-size: .66rem; }
.avatar.lg { width: 48px; height: 48px; border-radius: 15px; font-size: .95rem; }
.a0 { background: #2563eb; } .a1 { background: #0d9488; } .a2 { background: #c2410c; } .a3 { background: #7c3aed; } .a4 { background: #be185d; } .a5 { background: #4d7c0f; }
.side .avatar { background: var(--amber); color: var(--amber-ink); }

.c-fuel { --c: #e08a00; } .c-adblue { --c: #0891b2; } .c-toll { --c: #4f46e5; } .c-border { --c: #7c3aed; } .c-parking { --c: #475569; }
.c-repair { --c: #dc2626; } .c-tires { --c: #78716c; } .c-wash { --c: #0284c7; } .c-food { --c: #16a34a; } .c-lodging { --c: #db2777; }
.c-ferry { --c: #0d9488; } .c-loading { --c: #ea580c; } .c-phone { --c: #2563eb; } .c-fine { --c: #e11d48; } .c-other { --c: #64748b; }
.ev, [class*="ev-"] { --c: #2563eb; }
.ev-breakdown, .ev-accident { --c: #dc2626; } .ev-border { --c: #7c3aed; } .ev-rest { --c: #0d9488; } .ev-loading, .ev-unloading { --c: #ea580c; }
.k-blue { --c: #2563eb; } .k-amber { --c: #d98b06; } .k-green { --c: #16a34a; } .k-violet { --c: #7c3aed; } .k-red { --c: #dc2626; }
@media (prefers-color-scheme: dark) {
  .c-parking, .c-other, .c-tires { --c: #94a3b8; } .c-toll { --c: #818cf8; } .c-border, .k-violet, .ev-border { --c: #a78bfa; }
  .k-blue, .c-phone, .ev, [class*="ev-"] { --c: #60a5fa; }
  .ev-breakdown, .ev-accident { --c: #f87171; } .ev-rest { --c: #2dd4bf; } .ev-loading, .ev-unloading { --c: #fb923c; }
}
.bubble { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; flex: none; color: var(--c, var(--brand)); background: color-mix(in srgb, var(--c, var(--brand)) 13%, transparent); }
.bubble.sm { width: 32px; height: 32px; border-radius: 10px; }
.bubble.sm .ic { width: 16px; height: 16px; }
.bubble.lg { width: 48px; height: 48px; border-radius: 15px; }
.bubble.lg .ic { width: 24px; height: 24px; }
.bubble.plain { color: var(--muted); background: var(--bg); }
.bigicon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.bigicon .ic { width: 30px; height: 30px; }
.bigicon.warn { background: var(--warn-soft); color: var(--warn); }
.bigicon.onhero { background: rgba(245, 165, 36, .16); color: var(--amber); margin: 0 auto 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: 22px 24px; color: #fff; margin-bottom: 16px;
  background: radial-gradient(700px 300px at 100% 0%, rgba(245, 165, 36, .2), transparent 60%), linear-gradient(140deg, var(--navy-700), var(--navy-900));
  box-shadow: 0 18px 40px -18px rgba(11, 22, 38, .7);
}
.hero-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.hero-id { font-size: .78rem; color: rgba(255, 255, 255, .55); font-weight: 600; }
.routeline { display: grid; grid-template-columns: minmax(0, 1fr) minmax(56px, 180px) minmax(0, 1fr); gap: 12px; align-items: end; }
.rl-end { display: flex; flex-direction: column; min-width: 0; }
.rl-end.right { text-align: right; }
.rl-k { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: rgba(255, 255, 255, .5); font-weight: 650; }
.rl-end strong { font-size: 1.55rem; line-height: 1.2; letter-spacing: -.02em; overflow-wrap: break-word; }
.rl-mid { display: flex; align-items: center; gap: 6px; padding-bottom: 9px; color: var(--amber); }
.rl-mid .dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--amber); flex: none; }
.rl-mid .dot.end { background: var(--amber); }
.rl-mid .dash { flex: 1; height: 0; border-top: 2px dashed rgba(255, 255, 255, .3); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, .09); font-size: .8rem; font-weight: 550; color: rgba(255, 255, 255, .88); }
.hero-chips .ic { width: 14px; height: 14px; opacity: .7; }
.empty-hero { text-align: center; padding: 38px 24px; }
.empty-hero h1 { font-size: 1.3rem; margin-bottom: 6px; }
.empty-hero p { color: rgba(255, 255, 255, .65); margin-bottom: 20px; }
@media (max-width: 520px) { .rl-end strong { font-size: 1.12rem; } .rl-mid .ic { width: 16px; height: 16px; } .tiles { grid-template-columns: 1fr 1fr; } .tile-v { font-size: 1.15rem; } .hero { padding: 18px; border-radius: 20px; } }

/* ---------- tiles and KPIs ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow); min-width: 0; }
.tile-k { display: flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--muted); font-weight: 600; }
.tile-k .ic { width: 15px; height: 15px; }
.tile-v { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.25; overflow-wrap: anywhere; }
.tile-v small { font-size: .72rem; font-weight: 650; color: var(--muted); letter-spacing: 0; }
.tile-s { font-size: .76rem; color: var(--muted); font-weight: 500; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.kpi .bubble { grid-column: 2; grid-row: 1 / span 2; }
.kpi-k { font-size: .8rem; color: var(--muted); font-weight: 600; grid-column: 1; }
.kpi-v { font-size: 1.75rem; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; grid-column: 1; line-height: 1.2; }
.kpi-v small { font-size: .8rem; font-weight: 650; color: var(--muted); letter-spacing: 0; }
.kpi-s { grid-column: 1 / -1; font-size: .78rem; color: var(--muted); margin-top: 6px; }
.delta { font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--bg); color: var(--text); }

/* ---------- lists ---------- */
.rows, .feed, .timeline, .legend { list-style: none; margin: 0; padding: 0; }
.rows li + li, .feed li + li { border-top: 1px solid var(--line); }
.rows li > a, .rows li.row-static, .feed li > a { display: flex; align-items: center; gap: 12px; padding: 13px 20px; color: var(--text); }
.rows li > a:hover, .feed li > a:hover { background: var(--surface-2); }
.rows-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rows-main strong { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows-main strong em { font-style: normal; font-weight: 500; color: var(--muted); }
.rows-main .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.rows-end { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.rows-end b, .feed b { font-variant-numeric: tabular-nums; font-weight: 700; }
.rows-end .muted { font-size: .72rem; }
.ic.go { color: var(--muted); width: 16px; height: 16px; }
.feed li > a { padding: 10px 20px; }
.feed b small { color: var(--muted); font-weight: 600; }

.timeline { padding: 6px 20px 8px; }
.titem { display: flex; gap: 14px; padding: 14px 0; position: relative; }
.titem + .titem { border-top: 1px solid var(--line); }
.tbody { flex: 1; min-width: 0; }
.trow { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.trow strong { font-weight: 650; }
.amt { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 1.02rem; letter-spacing: -.01em; }
.amt small { color: var(--muted); font-weight: 650; }
.tmeta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .8rem; margin-top: 2px; align-items: center; }
.tmeta span { display: inline-flex; align-items: center; gap: 3px; }
.tmeta .ic { width: 13px; height: 13px; }
.tnote { margin: 8px 0 0; padding: 8px 12px; background: var(--surface-2); border-radius: 10px; font-size: .86rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.tactions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.thumb { display: block; width: 58px; height: 58px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.timeline.compact .titem { padding: 11px 0; }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qtile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--text); font-weight: 600; font-size: .8rem; text-align: center; line-height: 1.2; box-shadow: var(--shadow); }
.qtile:active { transform: scale(.98); }
.qtile .bubble { width: 46px; height: 46px; border-radius: 15px; }
.qtile .bubble .ic { width: 23px; height: 23px; }
@media (min-width: 620px) { .quick { grid-template-columns: repeat(6, 1fr); } }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.person { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.person.off { opacity: .6; }
.person-top { display: flex; align-items: center; gap: 12px; }
.person-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; background: var(--surface-2); border-radius: 12px; }
.person-stats div { display: flex; flex-direction: column; min-width: 0; }
.person-stats b { font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.person-stats span { font-size: .68rem; color: var(--muted); font-weight: 600; line-height: 1.25; }
.person-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.pop summary { list-style: none; }
.pop summary::-webkit-details-marker { display: none; }
.pop-body { display: flex; gap: 6px; margin-top: 8px; }
.pop-body input { margin: 0; padding: 7px 10px; font-size: .84rem; }
.pop[open] { flex-basis: 100%; }
.plate { display: inline-block; padding: 2px 8px; border: 1.5px solid var(--line); border-radius: 7px; font-weight: 700; font-size: .78rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; background: var(--surface-2); white-space: nowrap; }
.plate.big { font-size: .95rem; padding: 3px 10px; align-self: flex-start; }

.kv { display: grid; gap: 0; margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: .84rem; }
.kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* ---------- tables ---------- */
.scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { text-align: left; padding: 12px 16px; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; white-space: nowrap; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { padding-left: 20px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 20px; }
.tbl small { color: var(--muted); font-weight: 600; }
.cell-main { display: flex; flex-direction: column; color: var(--text); min-width: 0; }
.cell-main .muted { font-size: .78rem; }
.tbl .cell-main { white-space: nowrap; }
.tbl th, .tbl td { padding-left: 12px; padding-right: 12px; }
a.cell-main:hover strong { color: var(--brand); }
.who { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.barcell { min-width: 170px; }
.barcell span { font-variant-numeric: tabular-nums; font-size: .84rem; font-weight: 600; }

.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; padding: 16px 20px; }
.filters label { margin: 0; flex: 1 1 150px; }
.filters label.grow2 { flex: 2 1 240px; }
.filters .btn { padding: 11px 18px; }

/* ---------- charts ---------- */
.chart { display: block; width: 100%; height: auto; }
.chart.area { color: var(--brand); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart .line { stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--surface); stroke: currentColor; stroke-width: 2; opacity: 0; }
.chart .hit:hover .dot { opacity: 1; }
.chart .hit:hover rect[fill="transparent"] { fill: color-mix(in srgb, var(--muted) 9%, transparent); }
.bar-a { fill: var(--ok); } .bar-b { fill: var(--amber); }
.keys { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); font-weight: 600; }
.keys i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.key-a { background: var(--ok); } .key-b { background: var(--amber); }
.donut-wrap { max-width: 190px; margin: 4px auto 16px; }
.donut circle { color: var(--c, var(--muted)); }
.donut-track { stroke: var(--bg); }
.donut-top { font-size: 5.4px; font-weight: 750; fill: var(--text); font-family: inherit; }
.donut-bottom { font-size: 3px; fill: var(--muted); font-weight: 650; font-family: inherit; }
.legend { display: grid; gap: 9px; }
.legend li { display: grid; grid-template-columns: auto 1fr auto 38px; gap: 9px; align-items: center; font-size: .84rem; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.legend b { font-variant-numeric: tabular-nums; font-weight: 650; }
.legend em { font-style: normal; color: var(--muted); text-align: right; font-size: .78rem; font-variant-numeric: tabular-nums; }
.hbar { display: block; width: 100%; height: 6px; border-radius: 99px; overflow: hidden; color: var(--amber); margin-bottom: 4px; }
.hbar-track { fill: var(--bg); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main, .split, .split.wide-left { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .shell { display: block; }
  .side { position: sticky; top: 0; z-index: 20; height: auto; padding: 10px 12px 8px; }
  .side-top { padding: 0 2px 8px; }
  .nav { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 2px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-label { display: none; }
  .nav a { flex: none; padding: 7px 11px; font-size: .84rem; }
  .nav a.on::before { display: none; }
  .nav a .ic { width: 17px; height: 17px; }
  .side-lang { position: absolute; top: 11px; right: 96px; padding: 0; }
  .side-lang .langs a { padding: 3px 8px; font-size: .72rem; }
  .side-foot { position: absolute; top: 9px; right: 12px; border: 0; margin: 0; padding: 0; }
  .side-foot .uname { display: none; }
  .side-foot .avatar { width: 32px; height: 32px; border-radius: 10px; }
  .side-foot .iconbtn { width: 32px; height: 32px; }
  .page { padding: 18px 14px 40px; }
  h1 { font-size: 1.35rem; }
  .kpi-v { font-size: 1.4rem; }
  .kpis { gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .bubble { display: none; }
}

.split.wide-left.docs-split { grid-template-columns: minmax(0, 2.6fr) minmax(260px, 1fr); }
.docs-split .who { white-space: normal; }
@media (max-width: 1600px) { .split.wide-left.docs-split { grid-template-columns: minmax(0, 1fr); } }

.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tfx { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 6px; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tfx b { color: var(--text); }
.fxhint { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -4px 0 16px; padding: 10px 12px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); font-weight: 650; font-size: .88rem; }
.fxhint .ic { width: 16px; height: 16px; }
.fxhint small { flex-basis: 100%; font-weight: 500; color: var(--muted); }
.filedrop.big { padding: 22px 16px; justify-content: center; font-weight: 650; margin-bottom: 14px; }
.filedrop.big .ic { width: 28px; height: 28px; }
.filedrop .preview { flex-basis: 100%; max-height: 220px; max-width: 100%; object-fit: contain; border-radius: 10px; margin-top: 8px; position: relative; pointer-events: none; }
.tabbar { grid-template-columns: 1fr 1fr auto 1fr 1fr; padding-left: 8px; padding-right: 8px; }
.tabbar .fab { margin-left: 6px; margin-right: 6px; }
.rows li.row-static { flex-wrap: wrap; }
