/* MyTransfer. Дорожная тема в современной подаче (08.11.2026, просьба владельца — «стильнее, красивее, современнее»):
   карточки на спокойном фоне, маршрут — полоса асфальта с жёлтой разметкой, крупное время, жёлтая главная кнопка,
   цвета дорожных RAL (5017 синий, 1023 жёлтый). Шрифт Overpass — потомок дорожного Highway Gothic.
   Рабочий инструмент: одна рука, солнце днём, темнота ночью. Кнопки от 48 px, контраст AA, шапка и низ закреплены. */

@font-face {
  font-family: 'Overpass';
  src: url('../fonts/overpass-cyrillic.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Overpass';
  src: url('../fonts/overpass-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2190-2193, U+2212;
}

:root {
  --bg: #EDF0F3;
  --surface: #FFFFFF;
  --surface-2: #F2F4F7;
  --track: #DFE4EA;
  --seg-on: #FFFFFF;
  --ink: #0F1318;
  --muted: #58626D;
  --line: #D5DBE2;
  --hair: rgba(15, 19, 24, .08);
  --brand: #0A5C8F;
  --brand-ink: #FFFFFF;
  --brand-soft: #E1ECF5;
  --mark: #FFC414;
  --mark-press: #EDB100;
  --mark-ink: #16130A;
  --mark-soft: #FFF1C2;
  --ok: #0B7A4B;
  --ok-ink: #FFFFFF;
  --ok-soft: #DDF2E6;
  --bad: #BE1729;
  --bad-soft: #FCE6E8;
  --asphalt: #2B3139;
  --shadow: 0 1px 2px rgba(15, 19, 24, .05), 0 6px 18px rgba(15, 19, 24, .06);
  --bar: rgba(237, 240, 243, .84);
  --bar-low: rgba(255, 255, 255, .88);
  --r-card: 20px;
  --r-ctl: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0E12;
    --surface: #161B21;
    --surface-2: #1E242B;
    --track: #12171C;
    --seg-on: #2C343D;
    --ink: #F1F4F7;
    --muted: #9AA5B1;
    --line: #2C343D;
    --hair: rgba(255, 255, 255, .07);
    --brand: #4AA3E3;
    --brand-ink: #06131D;
    --brand-soft: #112A3D;
    --mark-soft: #3A2E07;
    --ok: #3CCB8C;
    --ok-ink: #04170F;
    --ok-soft: #0E2A1E;
    --bad: #FF6B78;
    --bad-soft: #3B1419;
    --asphalt: #4A5561;
    --shadow: 0 0 0 1px rgba(255, 255, 255, .05);
    --bar: rgba(11, 14, 18, .82);
    --bar-low: rgba(22, 27, 33, .9);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Overpass', -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Каркас: шапка и нижняя панель закреплены, под ними — размытый фон */
.screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  min-height: calc(var(--safe-top) + 60px);
  padding: calc(var(--safe-top) + 8px) 16px 8px;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.tabs, .action, .composer { background: var(--bg); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .top, .action, .composer { background: var(--bar); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); }
  .tabs { background: var(--bar-low); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); }
}
.scrolled .top { border-bottom-color: var(--hair); }
.top h1 { flex: 1; min-width: 0; font-size: 19px; font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-large h1 { font-size: 30px; letter-spacing: -0.01em; }
/* Заголовок экрана заказа появляется в шапке, когда крупное время ушло под неё */
.top .fade { opacity: 0; transition: opacity .2s; }
.scrolled-far .top .fade { opacity: 1; }
.back {
  display: inline-flex; align-items: center; gap: 2px; flex: none;
  min-height: 44px; padding: 0 16px 0 8px;
  border: 0; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow);
  font-size: 17px; font-weight: 700; color: var(--ink); cursor: pointer; touch-action: manipulation;
}
.back .ico { width: 24px; height: 24px; color: var(--brand); stroke-width: 2.5; }
.back:active { transform: scale(.96); }
.body { flex: 1; padding: 4px 16px 24px; }
.with-tabs .body { padding-bottom: calc(var(--safe-bottom) + 100px); }

/* Нижнее меню: под большим пальцем */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex;
  padding: 6px 8px calc(var(--safe-bottom) + 6px);
  border-top: 1px solid var(--hair);
}
.tab {
  position: relative; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 60px; padding: 2px 0; border: 0; background: none; cursor: pointer; touch-action: manipulation;
  font-size: 14px; font-weight: 700; color: var(--muted);
}
.tab .ico { box-sizing: content-box; width: 24px; height: 24px; padding: 4px 20px; border-radius: 999px; transition: background-color .2s; }
.tab.active { color: var(--ink); }
.tab.active .ico { background: var(--mark); color: var(--mark-ink); }
.tab b {
  position: absolute; top: 0; left: calc(50% + 12px);
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 2px var(--surface);
  font-size: 13px; font-weight: 800; line-height: 23px; text-align: center;
}

/* Карточки */
.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 16px; margin-top: 12px; }
.day { font-size: 16px; font-weight: 800; color: var(--muted); padding: 16px 4px 8px; }

/* Маршрут: полоса асфальта с прерывистой жёлтой разметкой, «откуда» — кольцо, «куда» — синяя точка */
.route { position: relative; padding-left: 34px; }
.route .from, .route .to { position: relative; }
.route .from { font-size: 16px; font-weight: 600; color: var(--muted); line-height: 1.3; padding-bottom: 18px; }
.route .to { font-size: 19px; font-weight: 800; line-height: 1.25; }
.route .from::before, .route .to::before {
  content: ''; position: absolute; left: -34px; width: 22px; height: 22px; border-radius: 50%; box-sizing: border-box;
}
.route .from::before { top: -1px; background: var(--surface); border: 5px solid var(--asphalt); }
.route .from::after {
  content: ''; position: absolute; left: -27px; top: 14px; bottom: -10px; width: 8px; border-radius: 4px;
  background: linear-gradient(var(--mark) 50%, transparent 0) center top / 2px 10px repeat-y, var(--asphalt);
}
.route .to::before { top: 1px; z-index: 1; background: var(--brand); border: 5px solid var(--surface); box-shadow: 0 0 0 2px var(--brand); }

/* Заказ в списке */
.trip { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px; }
.trip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.time { font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.money { font-size: 19px; font-weight: 800; white-space: nowrap; padding: 8px 14px 6px; border-radius: 999px; background: var(--surface-2); }
.money.none { font-size: 14px; font-weight: 700; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.facts span {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
  padding: 7px 12px 6px; border-radius: 12px; background: var(--surface-2);
  font-size: 15px; font-weight: 700; line-height: 1.25;
}
.facts .ico { width: 18px; height: 18px; color: var(--muted); }
.facts .plain { font-weight: 600; color: var(--muted); }
.row-link { all: unset; display: block; cursor: pointer; width: 100%; }
.row-link:focus-visible { outline: 3px solid var(--brand); outline-offset: 6px; border-radius: 14px; }
.row-link:active { opacity: .72; }
.who {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair);
  font-weight: 700;
}
.who-text { display: inline-flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.who-text .ico { width: 20px; height: 20px; color: var(--brand); }
.who-text.wait { color: var(--muted); font-weight: 600; }
.who-text.wait .ico { color: var(--muted); }
.who > .ico { color: var(--muted); margin-left: auto; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 4px; border-radius: 999px; font-size: 15px; font-weight: 800; }
.chip .ico { width: 18px; height: 18px; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }

/* Состояния и пометки */
.state { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-weight: 800; }
.state .ico { width: 20px; height: 20px; margin-top: 1px; }
.state.ok { color: var(--ok); }
.state.bad { color: var(--bad); }
.state.wait { color: var(--muted); font-weight: 600; }
.state.moved { background: var(--mark-soft); color: var(--ink); padding: 10px 12px; border-radius: 12px; }
/* Своя поездка рядом по времени: красная плашка — отличается от жёлтой плашки переноса */
.state.near { background: var(--bad-soft); color: var(--bad); padding: 10px 12px; border-radius: 12px; }
.card.status { display: flex; gap: 10px; align-items: flex-start; font-weight: 800; }
.card.status.ok { color: var(--ok); }
.card.status.bad { color: var(--bad); }

/* Кнопки */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 56px; padding: 12px 16px;
  border: 0; border-radius: var(--r-ctl); cursor: pointer; text-align: center; text-decoration: none;
  font-size: 18px; font-weight: 800; line-height: 1.2;
  transition: transform .12s ease-out, background-color .15s; touch-action: manipulation;
}
.btn:active { transform: scale(.98); }
.btn .ico { width: 22px; height: 22px; }
.btn-go { background: var(--mark); color: var(--mark-ink); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .1); }
.btn-go:active { background: var(--mark-press); }
.btn-line { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; }
.btn-line .ico { color: var(--brand); }
.btn-quiet { background: none; color: var(--muted); font-weight: 700; min-height: 48px; font-size: 16px; }
.btn-ok { background: var(--ok); color: var(--ok-ink); }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }
.btn .count {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  background: var(--bad); color: #fff; font-size: 14px; font-weight: 800; line-height: 25px;
}
.gap { margin-top: 10px; }
.gap-lg { margin-top: 16px; }
.pair { display: flex; gap: 10px; }
.pair .btn { flex: 1; min-width: 0; padding-left: 10px; padding-right: 10px; }
/* Узкий телефон (320–359 px): в парах кнопок без иконок, иначе «Позвонить» шире половины экрана */
@media (max-width: 359px) {
  .pair .btn .ico { display: none; }
  .body, .action, .composer, .top { padding-left: 12px; padding-right: 12px; }
}

/* Пустые экраны и подсказки */
.empty { padding: 48px 16px; text-align: center; }
.empty .ico { box-sizing: content-box; width: 30px; height: 30px; padding: 17px; border-radius: 50%; background: var(--surface); color: var(--brand); box-shadow: var(--shadow); margin-bottom: 16px; }
.empty h2 { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.empty p { color: var(--muted); }
.note { color: var(--muted); }
.lock { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 14px 16px; font-weight: 600; }
.lock .ico { color: var(--brand); margin-top: 1px; }

/* Сегменты: «Списком / Календарь», «Этот / Прошлый месяц» */
.switch { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--track); }
.switch button {
  flex: 1; min-height: 44px; border: 0; border-radius: 11px; background: none; cursor: pointer;
  font-weight: 700; color: var(--muted); touch-action: manipulation;
}
.switch button.active { background: var(--seg-on); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* Заказ */
.hero { padding: 18px 16px; }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.big-time { font-size: 60px; font-weight: 800; line-height: .95; letter-spacing: -0.03em; }
.big-day { font-size: 17px; font-weight: 700; color: var(--muted); margin-top: 8px; }
.place { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair); }
.place h2 { display: flex; gap: 8px; align-items: flex-start; font-size: 18px; font-weight: 800; line-height: 1.25; }
.place h2 .ico { color: var(--brand); margin-top: 1px; }
.place p { color: var(--muted); margin: 4px 0 12px 30px; }
.place .state { margin: 0 0 12px; }
.place .btn { font-size: 16px; min-height: 50px; padding-left: 8px; padding-right: 8px; }
.info { padding: 2px 16px; }
.info div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--hair); }
.info div:last-child { border-bottom: 0; }
.info span:first-child { color: var(--muted); }
.info span:last-child { font-weight: 700; text-align: right; }
.client { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; }
.avatar {
  grid-row: span 2; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
  font-size: 19px; font-weight: 800;
}
.client h2 { font-size: 21px; font-weight: 800; line-height: 1.2; align-self: end; }
.client p { color: var(--muted); align-self: start; }
.client .pair { grid-column: 1 / -1; margin-top: 14px; }
.action {
  position: sticky; bottom: 0; z-index: 9;
  padding: 12px 16px calc(var(--safe-bottom) + 8px);
  border-top: 1px solid var(--hair);
}
.action .pair .btn:first-child { flex: 1.6; }
.action .btn-quiet { min-height: 46px; margin-top: 2px; }

/* Календарь занятости: месяц, в дне — время первой поездки */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 10px; }
.cal-head h2 { font-size: 20px; font-weight: 800; text-align: center; flex: 1; }
.cal-nav {
  width: 48px; height: 48px; display: grid; place-items: center; flex: none;
  border: 0; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); cursor: pointer;
}
.cal-nav .ico { width: 24px; height: 24px; stroke-width: 2.5; }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; padding: 10px 8px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); }
.cal-wd { text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); padding: 2px 0 4px; }
.cal-cell {
  position: relative; min-height: 54px; padding: 7px 0 4px;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  border: 0; border-radius: 12px; background: var(--surface-2); color: var(--ink); cursor: pointer;
}
.cal-cell.blank { background: none; cursor: default; }
.cal-cell.past { opacity: .4; }
.cal-num { font-size: 17px; font-weight: 700; line-height: 1.1; }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--brand); }
.cal-cell.busy { background: var(--brand); color: var(--brand-ink); }
.cal-time { font-size: 12px; font-weight: 800; }
.cal-more { font-size: 11px; font-weight: 700; opacity: .85; }
.cal-cell.clash::after { content: ''; position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px var(--surface); }
.cal-cell.sel { outline: 3px solid var(--mark); outline-offset: 1px; }

/* Вход */
.login { justify-content: center; padding: calc(var(--safe-top) + 32px) 20px calc(var(--safe-bottom) + 28px); }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.brand-mark { width: 64px; height: 64px; flex: none; border-radius: 18px; box-shadow: var(--shadow); }
.brand-mark .bm-bg { fill: var(--brand); }
.brand-mark .bm-road { fill: #14181D; }
.brand-mark .bm-dash { fill: var(--mark); }
.brand-name { font-size: 32px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; }
.login-text { font-size: 18px; }
.field { display: block; margin-top: 22px; font-size: 15px; font-weight: 700; color: var(--muted); }
.input {
  display: block; width: 100%; margin-top: 8px; min-height: 60px; padding: 12px 16px;
  background: var(--surface); border: 0; border-radius: var(--r-ctl); box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 22px; font-weight: 700;
}
.input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--brand); }
.call-number { margin: 18px 0; padding: 20px 16px 16px; text-align: center; font-size: 32px; font-weight: 800; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); }
.terms p + p { margin-top: 12px; }

/* Заработок */
.ledger { margin-top: 12px; padding: 18px; border-radius: var(--r-card); background: var(--brand); color: var(--brand-ink); }
.ledger-label { font-size: 15px; font-weight: 700; opacity: .85; }
.ledger-total { display: block; font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-top: 4px; }
.ledger-sub { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .22); font-weight: 600; }
@media (prefers-color-scheme: dark) { .ledger-sub { border-top-color: rgba(0, 0, 0, .2); } }
.ledger-sub b { font-weight: 800; }
.done-list { padding: 2px 16px; }
.done-row { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--hair); }
.done-row:last-child { border-bottom: 0; }
.done-row b { font-weight: 800; }
.done-row .sub { color: var(--muted); font-size: 15px; }
.done-row .pay { text-align: right; white-space: nowrap; font-weight: 800; }
.done-row .pay small { display: inline-block; margin-top: 4px; padding: 3px 8px 2px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--muted); }
.done-row .pay small.ok { background: var(--ok-soft); color: var(--ok); }
.done-row .pay small.bad { background: var(--bad-soft); color: var(--bad); }
.driver { display: flex; gap: 12px; align-items: center; }
.driver .ico { color: var(--brand); }
.driver span { display: block; color: var(--muted); font-size: 15px; }

/* Переписка */
.chat-route { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 15px; padding: 4px 2px 8px; }
.chat-route .ico { width: 18px; height: 18px; }
.chat { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 12px; }
.chat > .note { text-align: center; padding: 24px 12px; }
.msg {
  max-width: 82%; padding: 10px 14px 8px; background: var(--surface); box-shadow: var(--shadow);
  border-radius: 6px 18px 18px 18px; white-space: pre-wrap; overflow-wrap: anywhere;
}
.msg.out { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-radius: 18px 6px 18px 18px; }
.msg small { display: block; font-size: 12px; opacity: .72; margin-top: 4px; text-align: right; }
.msg-img { display: block; max-width: 100%; max-height: 260px; margin-top: 6px; border-radius: 12px; }
.composer {
  position: sticky; bottom: 0; z-index: 9;
  padding: 10px 16px calc(var(--safe-bottom) + 10px);
  border-top: 1px solid var(--hair);
}
.composer-row { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea {
  flex: 1; min-width: 0; min-height: 52px; max-height: 160px; padding: 14px 16px 12px;
  border: 0; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line);
  line-height: 1.35; resize: none;
}
.composer textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--brand); }
.composer .send { width: auto; min-height: 52px; padding: 0 18px; border-radius: 18px; }
.channels { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.channels::-webkit-scrollbar { display: none; }
.channels button {
  flex: 0 0 auto; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); font-weight: 700;
}
.channels button.active { background: var(--brand); color: var(--brand-ink); box-shadow: none; }
.channels .note { padding: 8px 0; }

/* Новая версия (Android без магазина) */
.card.update { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; margin-bottom: 4px; box-shadow: inset 0 0 0 2px var(--mark), var(--shadow); }
.card.update b { font-size: 18px; }
.card.update .note { margin: 0; }
.update-required h2 { font-size: 24px; margin: 0 0 8px; }

/* Установка веб-версии на iPhone (transfer.<домен>) */
.install h2, .login h2 { font-size: 24px; margin: 0 0 8px; }
.steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0 0 14px 42px; counter-increment: step; font-size: 17px; line-height: 1.45; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 999px;
  background: var(--mark); color: var(--mark-ink); font-weight: 800; display: grid; place-items: center; font-size: 15px; }

/* Сообщения поверх экрана */
#toast {
  position: fixed; left: 12px; right: 12px; top: calc(var(--safe-top) + 10px); z-index: 30;
  padding: 14px 16px; border-radius: 16px; background: var(--ink); color: var(--bg); font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.sheet-back { position: fixed; inset: 0; z-index: 25; background: rgba(6, 8, 10, .55); display: flex; align-items: flex-end; }
.sheet { width: 100%; background: var(--surface); padding: 22px 16px calc(var(--safe-bottom) + 16px); border-radius: 24px 24px 0 0; }
.sheet h2 { font-size: 22px; font-weight: 800; line-height: 1.25; margin-bottom: 8px; }
.sheet p { color: var(--muted); margin-bottom: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: rise .2s cubic-bezier(.2, .8, .3, 1); }
  .sheet-back { animation: dim .2s ease-out; }
  #toast:not([hidden]) { animation: drop .2s cubic-bezier(.2, .8, .3, 1); }
  @keyframes rise { from { transform: translateY(40px); opacity: .5; } to { transform: none; opacity: 1; } }
  @keyframes dim { from { opacity: 0; } to { opacity: 1; } }
  @keyframes drop { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
}
