/* ─────────────────────────────────────────────────────────
   Kolhida — design system
   Minimal, confident, geometric.
   ───────────────────────────────────────────────────────── */
:root {
  --accent: #2D4EF5;
  --accent-ink: #ffffff;
  --accent-soft: #EEF1FF;
  --accent-soft-2: #DBE2FF;

  --ink:   #0A0E1A;
  --ink-2: #2A2F3D;
  --ink-3: #5B6172;
  --ink-4: #8B92A4;
  --ink-5: #BEC4D2;

  --bg:    #FFFFFF;
  --bg-1:  #F6F7F9;
  --bg-2:  #ECEEF3;
  --line:  #E5E8EE;
  --line-2:#D6DAE3;

  --ok:    #1BA37A;
  --warn:  #E89215;
  --bad:   #E0464A;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --font-display: 'Manrope', -apple-system, system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
}

[data-theme="dark"] {
  --accent: #5C79FF;
  --accent-ink: #ffffff;
  --accent-soft: #1E2747;
  --accent-soft-2: #243056;

  --ink:   #F2F4F9;
  --ink-2: #D2D7E2;
  --ink-3: #9AA1B2;
  --ink-4: #6E7588;
  --ink-5: #474E5E;

  --bg:    #161922;
  --bg-1:  #1E222C;
  --bg-2:  #272C38;
  --line:  #2C313D;
  --line-2:#3A414F;

  --ok:    #2BB98C;
  --warn:  #F0A23A;
  --bad:   #F25C60;

  --ok-soft: rgba(43,185,140,.14);
  --warn-soft: rgba(240,162,58,.16);
}
[data-theme="dark"] body { background: #0C0E14; }
.theme-switching * { transition: none !important; }
[data-theme="dark"] .cat-row.cat-car {
  background: color-mix(in oklab, var(--accent) 16%, var(--bg));
  border-color: color-mix(in oklab, var(--accent) 38%, var(--line));
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #EAECEF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow: hidden;
}

#root {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; padding: 0; }
input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ───────── App shell inside iOS frame ───────── */
.app {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  overflow: hidden;
}
.app.has-statusbar { padding-top: 54px; }

.scrollarea {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.scrollarea::-webkit-scrollbar { width: 0; height: 0; }

/* ───────── Bottom navigation ───────── */
.bottom-nav {
  flex-shrink: 0;
  display: flex; align-items: flex-end;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 26px;
  margin: 4px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  padding: 8px 10px 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.14), 0 2px 6px rgba(0,0,0,.06);
  z-index: 20;
}
.bn-tab {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 5px;
  background: none; border: 0; cursor: pointer;
  color: var(--ink-4);
  transition: color .18s;
}
.bn-tab:hover { color: var(--ink-2); }
.bn-ico {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 30px;
  transition: transform .26s cubic-bezier(.34,1.4,.5,1), background .2s, color .2s, box-shadow .2s;
}
.bn-label { font-size: 10.5px; font-weight: 600; letter-spacing: .01em; transition: color .18s, opacity .18s; }
.bn-dot {
  position: absolute; top: -1px; right: 4px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bad); border: 1.5px solid var(--bg);
}
/* Active tab — the bubble lifts the icon out of the bar */
.bn-tab.active { color: var(--accent); }
.bn-tab.active .bn-ico {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  margin-top: -34px;
  border: 4px solid var(--bg);
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
}
.bn-tab.active .bn-label { color: var(--accent); font-weight: 700; }

/* ───────── Top bar ───────── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px 12px;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.topbar.elevated { border-bottom-color: var(--line); }
.topbar-right { display: flex; align-items: center; gap: 6px; }
.topbar .brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.topbar .brand .dot { color: var(--accent); }

.avatar-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(160deg, #2A364E, #0A0E1A);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 2px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.08);
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  position: relative;
  background: var(--bg-1);
  transition: background .15s ease;
}
.icon-btn:hover { background: var(--bg-2); }
.icon-btn .dot-badge {
  position: absolute; top: 8px; right: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--bg);
}

/* ───────── Brand wordmark ───────── */
.wordmark {
  display: inline-flex; align-items: baseline; gap: 2px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.wordmark .accent { color: var(--accent); }
.wordmark .sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.55em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-left: 8px;
  position: relative; top: -1px;
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .08s ease, background .15s ease, color .15s ease, border-color .15s ease;
  user-select: none;
}
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(.96); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--bg-1); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-outline:hover { background: var(--bg-1); }
.btn-block { width: 100%; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .5; cursor: default; }

/* ───────── Card ───────── */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
}

/* ───────── Fields ───────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 600;
}
.field-input, .field-select {
  height: 52px;
  border-radius: 14px;
  background: var(--bg-1);
  border: 1px solid transparent;
  padding: 0 16px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, background .15s;
  width: 100%;
}
.field-input:focus, .field-select:focus { border-color: var(--accent); background: var(--bg); }
.field-input::placeholder { color: var(--ink-4); }
.field-select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%235B6172' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 12px; padding-right: 40px; }

/* ───────── Login screen (v2 — immersive) ───────── */
.login {
  flex: 1;
  padding: 14px 18px 30px;
  display: flex; flex-direction: column;
  gap: 12px;
  background: var(--bg);
  overflow-y: auto;
}
.login-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.lang-wrap { position: relative; }
.lang-chip {
  height: 32px; padding: 0 10px 0 12px;
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 999px;
  background: var(--bg-1);
  font-family: var(--font-display);
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  transition: background .15s;
}
.lang-chip:hover { background: var(--bg-2); }
.lang-scrim {
  position: fixed; inset: 0; z-index: 20;
}
.lang-menu {
  position: absolute;
  top: 38px; right: 0;
  z-index: 21;
  width: 168px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 12px 28px -10px rgba(10,14,26,.28);
  animation: langPop .16s ease;
}
@keyframes langPop {
  from { opacity: 0; transform: translateY(-4px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 14px; font-weight: 600;
  color: var(--ink-2);
  transition: background .12s;
}
.lang-menu button:hover { background: var(--bg-1); }
.lang-menu button.active { color: var(--accent); }

/* Hero showcase card */
.hero-card {
  position: relative;
  flex: 0 0 auto;
  border-radius: 26px;
  padding: 20px 22px 18px;
  min-height: 186px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 120% at 85% 12%, color-mix(in oklab, var(--accent) 78%, #ffffff) 0%, transparent 55%),
    linear-gradient(158deg, var(--accent) 0%, color-mix(in oklab, var(--accent) 55%, #0A0E1A) 100%);
}
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
.hero-blob.b1 {
  width: 130px; height: 130px;
  top: -40px; left: -30px;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.22), transparent 65%);
}
.hero-blob.b2 {
  width: 90px; height: 90px;
  bottom: 24px; left: 40%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.14), transparent 65%);
}
.hero-card .eyebrow {
  font-family: var(--font-body);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,.72);
  margin-bottom: 8px;
  position: relative; z-index: 2;
}
.hero-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px; line-height: 1.02;
  letter-spacing: -0.04em; font-weight: 800;
  position: relative; z-index: 2;
  text-shadow: 0 2px 16px rgba(10,14,26,.18);
}
.hero-card h1 .dot { color: rgba(255,255,255,.55); }
.hero-car {
  position: absolute;
  top: 8px; right: -6px;
  z-index: 1;
  transform: rotate(-6deg);
  animation: heroFloat 5s ease-in-out infinite;
}
.hero-car svg { width: 132px; height: 132px; }
@keyframes heroFloat {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-7px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-car { animation: none; }
}

/* Form sheet */
.login-sheet {
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding-top: 2px;
}

/* Segmented switch */
.seg {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg-1);
  border-radius: 14px;
  padding: 4px;
  flex-shrink: 0;
}
.seg .seg-thumb {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 10px;
  background: var(--bg);
  box-shadow: 0 2px 6px rgba(10,14,26,.08), 0 1px 0 rgba(10,14,26,.03);
  transition: transform .26s cubic-bezier(.2,.8,.2,1);
}
.seg.right .seg-thumb { transform: translateX(100%); }
.seg button {
  position: relative; z-index: 2;
  height: 42px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 14px;
  color: var(--ink-4);
  transition: color .2s;
}
.seg button.active { color: var(--ink); }

.login-form { display: flex; flex-direction: column; gap: 9px; }
.login-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-4); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin: 2px 0;
  font-weight: 700;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.oauth-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.oauth-btn {
  height: 52px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s, transform .08s, box-shadow .15s;
  box-shadow: 0 1px 2px rgba(10,14,26,.04);
}
.oauth-btn:hover { background: var(--bg-1); border-color: var(--line-2); }
.oauth-btn:active { transform: scale(.97); }
.oauth-btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }

.login-legal {
  text-align: center;
  font-size: 11px;
  color: var(--ink-4);
  line-height: 1.5;
  padding: 2px 14px 0;
}
.login-legal a { color: var(--ink-3); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.tab-pair {
  display: inline-flex;
  background: var(--bg-1);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 22px;
  align-self: flex-start;
}
.tab-pair button {
  height: 36px;
  padding: 0 18px;
  border-radius: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-3);
  transition: background .15s, color .15s;
}
.tab-pair button.active {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 1px 0 rgba(0,0,0,.02);
}

/* ───────── Hub screen ───────── */
.hub {
  flex: 1;
  display: flex; flex-direction: column;
  padding: 6px 22px 26px;
}
.hub-greeting {
  padding: 18px 4px 22px;
}
.hub-greeting h1 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
}
.hub-greeting p {
  margin: 0; color: var(--ink-3); font-size: 14px;
}
.tile-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}

/* Hub category column */
.cat-list { display: flex; flex-direction: column; gap: 12px; }
.cat-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: left;
  transition: transform .1s ease, border-color .15s ease, background .15s ease;
}
.cat-row:active { transform: scale(.99); }
.cat-row:hover { border-color: var(--line-2); }
.cat-row.cat-car {
  border-color: color-mix(in oklab, var(--accent) 32%, var(--line));
  background: var(--accent-soft);
}
.cat-ico {
  width: 66px; height: 66px;
  border-radius: 18px;
  background: var(--bg-1);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cat-row.cat-car .cat-ico { background: #fff; }
.cat-ico svg { width: 50px !important; height: 50px !important; }
.cat-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-t {
  font-family: var(--font-display);
  font-weight: 800; font-size: 17px;
  letter-spacing: -0.02em;
}
.cat-s { font-size: 12.5px; color: var(--ink-3); }
.cat-go {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  flex-shrink: 0;
}
.cat-badge {
  font-family: var(--font-display);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 800;
  color: var(--ink-4);
  background: var(--bg-1);
  padding: 5px 8px; border-radius: 7px;
  flex-shrink: 0;
}
.tile {
  position: relative;
  aspect-ratio: 1 / 1.18;
  border-radius: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 14px 12px 12px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  overflow: hidden;
}
.tile:hover { border-color: var(--line-2); }
.tile:active { transform: translateY(1px); }
.tile.active {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 22px -8px rgba(10,14,26,.32);
}
.tile.disabled .tile-icon { opacity: .8; }
.tile-soon {
  position: absolute; top: 10px; right: 10px;
  font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-4);
  background: var(--bg-1);
  padding: 4px 7px; border-radius: 6px;
}
.tile.active .tile-soon { background: rgba(255,255,255,.14); color: rgba(255,255,255,.7); }
.tile-icon {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.tile-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  text-align: left;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2px;
}
.tile-label svg { opacity: .35; }
.tile.active .tile-label svg { opacity: .9; }

/* hub bottom section */
.hub-foot {
  padding: 22px 24px 8px;
}
.hub-foot h3 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-4);
  margin: 0 0 12px;
}
.hint-card {
  background: var(--bg-1);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.hint-card .ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.hint-card .txt { flex: 1; min-width: 0; }
.hint-card .t1 { font-weight: 700; font-size: 13.5px; letter-spacing: -0.01em; }
.hint-card .t2 { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.hint-card .arrow { color: var(--ink-4); }

/* ───────── Page chrome (subscreens) ───────── */
.page-head {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px 10px;
}
.page-head .back {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); transition: background .15s;
}
.page-head .back:hover { background: var(--bg-1); }
.page-head .title {
  flex: 1;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
  text-align: center;
  padding-right: 38px;
}

.page-body { padding: 6px 22px 26px; }

.sect-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.025em;
  margin: 16px 0 4px;
}
.sect-sub {
  font-size: 13.5px;
  color: var(--ink-3);
  margin: 0 0 18px;
}

/* ───────── Car carousel ───────── */
.car-stage { padding: 8px 0 4px; }
.car-track {
  display: flex; gap: 14px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 0 22px 14px;
  -webkit-overflow-scrolling: touch;
}
.car-track::-webkit-scrollbar { display: none; }
.car-card {
  scroll-snap-align: center;
  flex: 0 0 calc(100% - 44px);
  background: var(--ink);
  color: #fff;
  border-radius: 22px;
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
  min-height: 178px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.car-card.alt { background: linear-gradient(155deg, var(--accent) 0%, color-mix(in oklab, var(--accent) 52%, #0A0E1A) 100%); }
.car-card.gray { background: linear-gradient(155deg, #1E2535 0%, #0A0E1A 100%); }
.car-card .plate {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.11);
  padding: 5px 10px; border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.04em;
  align-self: flex-start;
  border: 1px solid rgba(255,255,255,.12);
}
.car-card .model {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.car-card .meta {
  font-size: 12.5px; opacity: .65;
  margin-top: 2px;
}
.car-card .silhouette {
  position: absolute;
  right: -6px; bottom: -6px;
  width: 200px; height: 116px;
  opacity: .85;
  pointer-events: none;
  animation: carFloat 4.5s ease-in-out infinite;
}
@keyframes carFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@media (prefers-reduced-motion: reduce) {
  .car-card .silhouette { animation: none; }
}
.car-card .status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 0; border-radius: 8px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.02em;
}
.car-card .status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #45E29D; box-shadow: 0 0 0 3px rgba(69,226,157,.18); }

.car-add {
  scroll-snap-align: center;
  flex: 0 0 calc(100% - 44px);
  border: 1.5px dashed var(--line-2);
  border-radius: 22px;
  min-height: 178px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--ink-3);
}
.car-add .plus {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-1);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
}

.dots { display: flex; gap: 6px; justify-content: center; padding: 4px 0 2px; }
.dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--line-2);
  transition: width .2s, background .2s;
}
.dots span.active { width: 18px; border-radius: 4px; background: var(--ink); }

/* ───────── Section stack (policies, checks) ───────── */
.stack-section { padding: 18px 22px 4px; }
.stack-title-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.stack-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.stack-link {
  font-size: 12.5px; color: var(--accent); font-weight: 600;
}

.row-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 10px;
  transition: border-color .15s, background .15s, transform .08s;
}
.row-item:active { transform: scale(.99); }
.row-item:hover { border-color: var(--line-2); }
.row-item .ri-ico {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--bg-1);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  flex-shrink: 0;
}
.row-item .ri-ico.accent { background: var(--accent-soft); color: var(--accent); }

/* ───────── Roadworthiness details screen ───────── */
.rw-hero {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: var(--ok-soft, rgba(34,160,110,.08));
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.rw-hero-ico {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--bg); color: var(--ok);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.rw-hero-status {
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  letter-spacing: -0.02em; color: var(--ok);
}
.rw-hero-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.rw-hero-valid { font-size: 13px; color: var(--ink); margin-top: 8px; }
.rw-hero-valid b { font-weight: 700; }
.rw-item .rw-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  font-size: 11.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rw-item .ri-ico.ok { background: var(--ok-soft, rgba(34,160,110,.12)); color: var(--ok); }
.rw-item .ri-ico.warn { background: var(--warn-soft, rgba(232,151,42,.14)); color: var(--warn); }
.rw-fields {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 16px;
  margin-bottom: 12px;
}
.rw-field {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.rw-field:last-child { border-bottom: none; }
.rw-fk { font-size: 13px; color: var(--ink-2); flex-shrink: 0; }
.rw-fv { font-size: 13.5px; font-weight: 700; color: var(--ink); text-align: right; }
.rw-scan {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 22px;
}
.vg-note {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 14px;
  padding: 12px 14px; border-radius: 14px;
  background: var(--ok-soft, rgba(34,160,110,.08));
  color: var(--ink-2); font-size: 12.5px; line-height: 1.4;
}
.vg-note svg { color: var(--ok); flex-shrink: 0; margin-top: 1px; }

/* ───────── FAQ ───────── */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
  transition: border-color .15s;
}
.faq-item.open { border-color: var(--line-2); }
.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px;
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 700;
  font-size: 14px; letter-spacing: -0.01em; color: var(--ink);
  line-height: 1.35;
}
.faq-q > span:first-child { flex: 1; }
.faq-chev {
  flex-shrink: 0; color: var(--ink-4);
  display: inline-flex; transition: transform .2s ease;
}
.faq-item.open .faq-chev { transform: rotate(90deg); color: var(--accent); }
.faq-a {
  padding: 0 16px 15px;
  font-size: 13px; line-height: 1.5; color: var(--ink-2);
}

/* ───────── Personal profile ───────── */
.profile-hero {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 8px 0 18px;
}
.profile-hero-av {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink, #fff);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 28px;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.profile-hero-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 20px; letter-spacing: -0.02em; margin-top: 12px;
}
.profile-hero-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.kat-fine {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg); padding: 14px;
}
.kat-fine-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kat-reason { font-weight: 700; font-size: 14px; }
.kat-badge {
  flex-shrink: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 99px;
}
.kat-badge.paid { background: var(--ok-soft, rgba(34,160,110,.12)); color: var(--ok); }
.kat-badge.due { background: var(--warn-soft, rgba(232,151,42,.14)); color: var(--warn); }
.kat-meta { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.kat-fine-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.kat-amount { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: -0.01em; }
.cp-hint { font-size: 11.5px; color: var(--ink-4); margin-top: 6px; }
.cp-hint.ok { color: var(--ok); }
.cp-hint.bad { color: var(--warn); }

/* ───────── Notification settings ───────── */
.ns-group { margin-top: 18px; }
.ns-head {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 13px; letter-spacing: .01em; color: var(--ink-2);
  margin-bottom: 10px;
}
.ns-head svg { color: var(--accent); }
.ns-list {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--bg); overflow: hidden;
}
.toggle-row {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: transparent; border: 0;
  border-bottom: 1px solid var(--line); cursor: pointer;
}
.toggle-row:last-child { border-bottom: none; }
.tr-title { font-weight: 700; font-size: 13.5px; }
.tr-sub { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.switch {
  flex-shrink: 0; width: 44px; height: 26px; border-radius: 99px;
  background: var(--line-2); position: relative;
  transition: background .18s ease;
}
.switch .knob {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .18s ease;
}
.switch.on { background: var(--accent); }
.switch.on .knob { transform: translateX(18px); }
.rw-actions {
  display: flex; gap: 10px;
  margin-bottom: 22px;
}
.rw-actions .rw-scan {
  flex: 1; margin-bottom: 0; min-width: 0;
}
.rw-talon-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-1);
}
.rw-talon-img {
  display: block;
  width: 100%;
  height: auto;
}
.row-item .ri-ico.ok { background: rgba(27,163,122,.1); color: var(--ok); }
.row-item .ri-ico.warn { background: rgba(232,146,21,.1); color: var(--warn); }
.row-item .ri-body { flex: 1; min-width: 0; }
.row-item .ri-title { font-weight: 700; font-size: 14.5px; letter-spacing: -0.01em; }
.row-item .ri-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.row-item .ri-trail {
  font-size: 12px; color: var(--ink-3); font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.row-item .ri-cta {
  color: var(--accent); font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; gap: 4px;
}

.policy-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 10px;
}
.policy-card .head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.policy-card .head .ico {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--bg-1);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  flex-shrink: 0;
}
.policy-card .head .ttl { flex: 1; }
.policy-card .head .name { font-weight: 700; font-size: 14.5px; letter-spacing: -0.01em; }
.policy-card .head .sub { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.policy-card .head .price { font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }

.policy-card .body { padding: 4px 0 10px; }
.policy-logo { height: 20px; width: auto; max-width: 130px; object-fit: contain; display: block; }
.policy-card .row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; }
.policy-card .row .k { color: var(--ink-3); }
.policy-card .row .v { font-weight: 600; }

.progress {
  height: 4px; background: var(--bg-2); border-radius: 999px; overflow: hidden;
  margin: 8px 0 6px;
}
.progress > i {
  display: block; height: 100%; background: var(--accent);
  border-radius: 999px;
}

/* ───────── Tab pills ───────── */
.tab-pills {
  display: flex; gap: 8px;
  padding: 0 22px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-pills::-webkit-scrollbar { display: none; }
.tab-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-1);
  font-size: 13px; font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.tab-pill.active { background: var(--ink); color: #fff; }

/* ───────── Drawer ───────── */
.scrim {
  position: absolute; inset: 0;
  background: rgba(10,14,26,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 30;
}
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: absolute;
  top: 0; bottom: 0;
  width: 86%; max-width: 340px;
  background: var(--bg);
  z-index: 40;
  display: flex; flex-direction: column;
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
.drawer-left { left: 0; transform: translateX(-105%); border-right: 1px solid var(--line); }
.drawer-left.open { transform: translateX(0); }
.drawer-right { right: 0; transform: translateX(105%); border-left: 1px solid var(--line); }
.drawer-right.open { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 12px;
  flex-shrink: 0;
}
.app.has-statusbar .drawer-head { padding-top: 64px; }
.drawer-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.drawer-body { padding: 6px 18px 28px; overflow-y: auto; flex: 1; }
.drawer-body::-webkit-scrollbar { width: 0; }

.profile-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: var(--bg-1);
  border-radius: 16px;
  margin-bottom: 20px;
}
.profile-card .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(160deg, #2A364E, #0A0E1A);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
}
.profile-card .name { font-weight: 700; font-size: 14.5px; }
.profile-card .email { font-size: 12px; color: var(--ink-3); margin-top: 1px; }

.menu-section-title {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-4);
  margin: 18px 4px 8px;
}
.menu-list {
  display: flex; flex-direction: column;
  background: var(--bg-1);
  border-radius: 14px;
  overflow: hidden;
}
.menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  width: 100%;
  border-bottom: 1px solid var(--bg-2);
  transition: background .15s;
}
.menu-item:last-child { border-bottom: 0; }
.menu-item:hover { background: var(--bg-2); }
.menu-item .mi-ico {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
}
.menu-item .mi-label { flex: 1; font-weight: 500; }
.menu-item .mi-arrow { color: var(--ink-4); font-size: 18px; line-height: 1; }

/* ───────── Modal ───────── */
.modal-scrim {
  position: absolute; inset: 0;
  background: rgba(10,14,26,.5);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
  z-index: 50;
}
.modal-scrim.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%;
  max-height: 92%;
  background: var(--bg);
  border-radius: 28px 28px 0 0;
  padding: 22px 22px 28px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .26s cubic-bezier(.2,.7,.2,1), opacity .2s ease;
  overflow-y: auto;
}
.modal-scrim.open .modal { transform: translateY(0); opacity: 1; }
.modal .grabber {
  width: 38px; height: 4px; background: var(--line-2); border-radius: 999px;
  margin: -8px auto 14px;
}
.modal h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.025em;
  margin: 0 0 4px;
}
.modal .muted { color: var(--ink-3); font-size: 13.5px; margin: 0 0 18px; }
.modal-actions {
  display: flex; gap: 10px; padding-top: 14px;
}
.modal-actions .btn { flex: 1; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ───────── Quote results ───────── */
.summary-chips {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 6px 0 16px;
}
.chip {
  background: var(--bg-1);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11.5px; font-weight: 600;
  color: var(--ink-3);
}
.offer {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 10px;
  transition: border-color .15s, transform .08s;
}
.offer.best { border-color: var(--accent); position: relative; }
.offer.best::after {
  content: 'НАЙ-ИЗГОДНА';
  position: absolute;
  top: -9px; right: 14px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800; font-size: 9.5px;
  letter-spacing: 0.08em;
  padding: 4px 7px;
  border-radius: 6px;
}
.offer .top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.offer .logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-1);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.offer .insurer { flex: 1; }
.offer .insurer .nm { font-weight: 700; font-size: 14.5px; }
.offer .insurer .pm { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.offer .price {
  font-family: var(--font-display); font-weight: 800;
  font-size: 22px; letter-spacing: -0.025em;
}
.offer .price small { font-size: 11px; color: var(--ink-3); font-weight: 500; margin-left: 3px; }

.offer .feats { display: flex; flex-wrap: wrap; gap: 5px; }
.offer .feat {
  font-size: 11px; padding: 4px 8px; border-radius: 6px;
  background: var(--bg-1); color: var(--ink-2); font-weight: 600;
}

/* ───────── Offer pills (results) ───────── */
.offer-list { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.offer-pill {
  display: flex; align-items: center; gap: 10px;
  min-height: 66px;
  padding: 10px 16px;
  border-radius: 40px;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  transition: border-color .15s, box-shadow .15s, transform .08s;
}
.offer-pill:hover { border-color: var(--line-2); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.offer-pill:active { transform: scale(.995); }
.offer-pill.noquote { cursor: default; box-shadow: none; }
.offer-pill.noquote:hover { border-color: var(--line); box-shadow: none; }
.op-radio {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line-2); flex-shrink: 0;
}
.op-logo {
  width: 96px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.op-logo img { width: auto; max-width: 96px; height: 26px; object-fit: contain; display: block; }
.op-div { width: 1px; align-self: stretch; background: var(--line); margin: 6px 4px; }
.op-price {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding-left: 4px;
}
.op-orig {
  font-size: 11.5px; color: var(--ink-4);
  text-decoration: line-through; white-space: nowrap;
}
.op-now {
  font-family: var(--font-display); font-weight: 800;
  font-size: 14.5px; letter-spacing: -0.02em;
  color: #1F6FEB; white-space: nowrap;
}
.op-request { font-size: 15px; color: var(--ink-3); }

/* ───────── Delivery picker ───────── */
.deliv-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 10px;
  transition: border-color .15s, background .15s;
}
.deliv-opt.selected { border-color: var(--accent); background: var(--accent-soft); }
.deliv-opt .top { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.deliv-opt .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-1);
  color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.deliv-opt.selected .ico { background: color-mix(in oklab, var(--accent) 14%, #fff); color: var(--accent); }
.deliv-opt .nm { font-weight: 700; font-size: 14.5px; letter-spacing: -0.01em; }
.deliv-opt .pm { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.deliv-opt .check {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--line-2);
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent;
  flex-shrink: 0;
}
.deliv-opt.selected .check {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.deliv-opt .detail {
  margin-top: 8px;
  font-size: 12.5px; color: var(--ink-3);
  display: flex; gap: 12px;
}
.deliv-opt .detail .b { color: var(--ink); font-weight: 600; }

.office-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 8px;
  background: var(--bg);
  display: flex; align-items: flex-start; gap: 10px;
}
.office-card .pin {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.office-card .nm { font-weight: 700; font-size: 13.5px; }
.office-card .addr { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.office-card .hrs { font-size: 11.5px; color: var(--ink-4); margin-top: 4px; }

/* ───────── Office map picker ───────── */
.map-canvas {
  position: relative;
  background:
    radial-gradient(130px 100px at 68% 26%, rgba(120,170,120,.20), transparent 70%),
    radial-gradient(150px 110px at 18% 82%, rgba(120,170,120,.18), transparent 70%),
    radial-gradient(120px 120px at 88% 78%, rgba(96,150,200,.16), transparent 70%),
    linear-gradient(160deg, #eef2ec, #e6ece4);
}
.map-canvas::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(34deg, rgba(255,255,255,.55) 0 2px, transparent 2px 54px),
    repeating-linear-gradient(-22deg, rgba(0,0,0,.045) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(86deg, rgba(0,0,0,.04) 0 1px, transparent 1px 70px);
}
.mini-map {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.mini-map:hover { border-color: var(--line-2); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.mini-map .map-canvas { height: 132px; }
.map-hint {
  position: absolute; right: 10px; bottom: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--ink-3);
  background: rgba(255,255,255,.85);
  padding: 4px 8px; border-radius: 99px;
  backdrop-filter: blur(2px);
}
.map-pin {
  position: absolute; transform: translate(-50%, -100%);
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--ink-3);
  border: 0; padding: 0; cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,.18);
}
.map-pin.active {
  background: var(--accent); color: #fff;
  width: 30px; height: 30px;
  box-shadow: 0 3px 10px rgba(0,0,0,.28);
  z-index: 2;
}
.mini-map-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.mini-map-bar .pin {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mini-map-bar .nm { font-weight: 700; font-size: 13.5px; }
.mini-map-bar .addr { font-size: 12px; color: var(--ink-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-change { font-size: 12.5px; font-weight: 700; color: var(--accent); flex-shrink: 0; }

.map-sheet {
  position: absolute; inset: 0; z-index: 60;
  background: var(--bg);
  display: flex; flex-direction: column;
}
.map-sheet-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.map-sheet-head .ttl {
  font-family: var(--font-display); font-weight: 800;
  font-size: 17px; letter-spacing: -0.02em;
}
.map-sheet .map-canvas.big { flex: 1; }
.map-sheet-card {
  padding: 16px;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0,0,0,.06);
}

/* ───────── Tracking ───────── */
.track-hero {
  background: linear-gradient(155deg, var(--accent) 0%, color-mix(in oklab, var(--accent) 52%, #0A0E1A) 100%);
  border-radius: 22px;
  color: #fff;
  padding: 18px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.track-hero.office {
  background: linear-gradient(155deg, #1E2535 0%, #0A0E1A 100%);
}
.track-hero .lbl { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: .65; font-weight: 700; }
.track-hero .num { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; margin-top: 4px; }
.track-hero .pol { font-size: 12.5px; opacity: .7; margin-top: 2px; }
.track-hero .status-big {
  margin-top: 16px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 18px; letter-spacing: -0.02em;
}
.track-hero .status-sub { font-size: 12.5px; opacity: .7; margin-top: 2px; }
.track-hero .glyph {
  position: absolute;
  right: -10px; top: 50%;
  transform: translateY(-50%);
  opacity: .14;
  pointer-events: none;
}

.timeline { padding: 6px 0 4px; position: relative; }
.timeline::before {
  content: ''; position: absolute;
  left: 13px; top: 14px; bottom: 14px;
  width: 2px; background: var(--line);
}
.tline-step {
  display: flex; gap: 14px;
  padding: 6px 0 18px;
  position: relative;
}
.tline-step .marker {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-5);
  flex-shrink: 0; z-index: 2; position: relative;
}
.tline-step.done .marker { background: var(--ink); border-color: var(--ink); color: #fff; }
.tline-step.current .marker { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 5px color-mix(in oklab, var(--accent) 18%, transparent); }
.tline-step .body { padding-top: 3px; flex: 1; }
.tline-step .tt { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.tline-step.pending .tt { color: var(--ink-4); font-weight: 600; }
.tline-step .ts { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.tline-step.pending .ts { color: var(--ink-5); }
.tline-step .te { font-size: 11.5px; color: var(--ink-4); margin-top: 3px; font-weight: 500; }

/* ───────── Coming soon ───────── */
.coming-soon {
  padding: 64px 28px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  flex: 1;
}
.coming-soon .visual {
  width: 110px; height: 110px;
  border-radius: 28px;
  background: var(--bg-1);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  margin-bottom: 22px;
  position: relative;
}
.coming-soon .visual::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 36px;
  border: 1.5px dashed var(--line-2);
  pointer-events: none;
}
.coming-soon .badge-tag {
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 9px; border-radius: 6px;
  font-family: var(--font-display);
}
.coming-soon h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px; letter-spacing: -0.025em;
  margin: 14px 0 6px;
}
.coming-soon p {
  font-size: 13.5px; color: var(--ink-3); line-height: 1.5;
  max-width: 28ch;
  margin: 0 0 22px;
}

/* ───────── Toast ───────── */
.toast {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  z-index: 100;
  white-space: nowrap;
  max-width: 86%;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ───────── Frame wrapper ───────── */
.frame-wrap {
  position: relative;
  transform-origin: center;
}
.frame-wrap *::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none; }
.frame-wrap * { scrollbar-width: none; }

/* ───────── 3D Tile icons (rendered via CSS) ───────── */
.t3d {
  position: relative;
  width: 60px; height: 60px;
}

/* Background screen sizing */
@media (max-height: 760px) {
  .hero-card { min-height: 180px; }
  .hero-card h1 { font-size: 30px; }
}
