/* Стиль «Чистый» для приложения партнёров (решение заказчика 2026-10-21) — как пример приложения на странице
   «Перевозчикам» (src/components/CarrierMobilePreview.astro): светлый серый фон, белые карточки с тонкой линией,
   сегменты в стиле iOS, точки маршрута A (оранжевая) и B (тёмно-синяя), спокойная нижняя панель.
   Тёмная тема — тёмно-синяя в том же стиле. Подключается после app.css вместо gta.css и только перекрашивает:
   логика, тексты, меню и разметка не меняются. Откат — вернуть <link> на gta.css в index.html. */

:root {
  --ink: #1D1D1F; --soft: #6E6E73; --line: #E5E5E7; --bg: #FFFFFF; --bg2: #F5F5F7; --card: #FFFFFF;
  --accent: #F26C1D; --accent-hover: #FF8738; --accent-h: #A3440E; --accent-bg: #FFF1E8; --accent-line: #E59260; --on-accent: #211126;
  --navy: #16294C; --navy-soft: #E8EDF5; --track: #E8E8EC;
  --active: #A3440E; --active-bg: transparent; --active-line: #E59260;
  --page-background: #F5F5F7; --r: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.03);
  --addr-stroke: transparent;
}
:root[data-theme="dark"] {
  --ink: #EEF2F8; --soft: #9AA8BE; --line: #26354F; --bg: #0B1424; --bg2: #0F1B30; --card: #15223A;
  --accent: #F26C1D; --accent-hover: #FF8738; --accent-h: #FFA066; --accent-bg: #3A2418; --accent-line: #9A5128; --on-accent: #211126;
  --navy: #3D6BC4; --navy-soft: #1D2E4D; --track: #17243B;
  --active: #FFA066; --active-bg: transparent; --active-line: #9A5128;
  --ok: #6FD39B; --ok-bg: #143327; --err: #FF8A8A; --err-bg: #3A1C24; --warn: #F2C27A; --warn-bg: #352A1A; --info: #9CC0FF; --info-bg: #1A2A48;
  --upd: #FFE08A; --upd-bg: #332C12; --upd-line: #A88A26;
  --page-background: #0B1424; --toast-bg: #1D2E4D; --toast-ink: #EEF2F8;
  --shadow: none;
}

/* ---- шапка: белая (в тёмной — тёмно-синяя), надпись Move<b>Valencia</b> ---- */
.topbar { background: color-mix(in srgb, var(--bg) 92%, transparent); color: var(--ink); border-bottom-color: var(--line); }
.brand { font-size: 18px; letter-spacing: -.035em; color: var(--ink); }
.brand b { color: #BE4E0D; }
:root[data-theme="dark"] .brand b { color: var(--accent); }
.brand-mark { display: none; }
.top-title { color: var(--ink); letter-spacing: -.01em; }
.week-pill { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1; padding: 5px 10px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); text-decoration: none; }
.week-pill small { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.week-pill b { font-size: 16px; font-weight: 800; margin-top: 2px; white-space: nowrap; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.week-pill[hidden] { display: none; }
.topbar:has(.week-pill:not([hidden])) .top-title { visibility: hidden; }

/* ---- нижняя панель: активная вкладка — оранжевым текстом, без подложки ---- */
.tabbar { background: color-mix(in srgb, var(--bg) 94%, transparent); }
.tab { color: var(--soft); font-weight: 650; }
.tab.on, .tab:hover { color: var(--active); background: transparent; }
.tab.on { box-shadow: none; }

/* ---- кнопки ---- */
.btn { border-radius: 10px; font-weight: 750; }
.btn.primary { background: var(--accent-hover); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent); color: var(--on-accent); }
.btn.ghost { background: var(--card); }

/* ---- сегменты как в iOS: серая дорожка, активный — белый чип с тенью ---- */
.seg { background: var(--track); border: 0; padding: 4px; border-radius: 10px; gap: 4px; }
.seg-btn { border-radius: 7px; color: #626269; font-weight: 650; min-height: 38px; }
:root[data-theme="dark"] .seg-btn { color: var(--soft); }
.seg-btn.on { background: var(--card); color: var(--ink); box-shadow: 0 2px 5px rgba(0,0,0,.08); }
:root[data-theme="dark"] .seg-btn.on { background: #2B3D60; color: var(--ink); box-shadow: none; }
.seg-btn .count { background: var(--accent); color: #fff; }
.tabs-seg { background: var(--track); }
.order-tabs { background: var(--track); box-shadow: 0 8px 16px -12px rgba(0,0,0,.25); }

/* ---- карточки ---- */
.card { border-radius: var(--r); box-shadow: var(--shadow); }
.card-title { color: var(--soft); letter-spacing: .06em; }
.list-sec { letter-spacing: -.01em; }

/* ---- карточка заказа (как «Пример заказа») ---- */
.order-card { display: flex; flex-direction: column; padding: 14px 16px 16px; border-radius: 14px; }
.order-card > * { flex-shrink: 0; }
.oc-art { display: none; }
.order-card.oc-offered { border: 1px solid var(--accent-line); }
.oc-flag { margin: -14px -16px 12px; padding: 10px 14px; background: var(--accent-bg); color: var(--accent-h); text-transform: none; letter-spacing: 0; font-weight: 750; font-size: 14px; }
.order-card .ref { font-size: 12px; }
.oc-when.wr { margin: 2px 0 4px; }
.oc-service { color: var(--ink); font-weight: 750; font-size: 16px; margin: 4px 0 2px; }
.order-card .oc-service, .order-card .oc-service * { color: var(--ink); }
/* маршрут: точки A и B, пунктир между ними */
.oc-route2 { margin-top: 10px; display: grid; grid-template-columns: 32px 1fr; column-gap: 13px; }
.oc-route2 .dots { grid-row: span 3; display: flex; flex-direction: column; align-items: center; padding: 4px 0; }
.oc-route2 .dots i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none; font-style: normal; font-size: 14px; font-weight: 800; background: var(--accent); color: #261409; }
.oc-route2 .dots i::after { content: "A"; }
.oc-route2 .dots i.to { background: var(--navy); color: #fff; }
.oc-route2 .dots i.to::after { content: "B"; }
.oc-route2 .dots span { flex: 1; width: 0; min-height: 12px; border-left: 1px dashed #C2BAC3; margin: 4px 0; }
.oc-route2 .pt { display: grid; gap: 2px; min-height: 36px; align-content: center; }
.oc-route2 .pt + .pt, .oc-route2 .oc-stops + .pt { margin-top: 12px; }
.oc-route2 label { display: block; font-size: 12px; color: var(--soft); }
.oc-route2 b { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.oc-route2 .oc-stops { margin: 6px 0 0; }
.oc-bottom { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); align-items: center; }
.oc-price { font-size: 22px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }

/* водители на карточке: назначены — серая плашка с аватаром, нет — оранжевая кнопка (решение 2026-09-27, без «GTA») */
.oc-drv-ok { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; background: var(--navy-soft); color: var(--ink); font-size: 13.5px; font-weight: 750; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-drv-ok span { overflow: hidden; text-overflow: ellipsis; }
.oc-drv-av { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--navy) center 35% / cover no-repeat; color: #fff; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; border: 2px solid var(--card); }
.oc-drv-av + .oc-drv-av { margin-left: -14px; }
.oc-drv-no { display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 10px; background: var(--accent-hover); color: var(--on-accent); font-size: 13.5px; font-weight: 750; white-space: nowrap; }

/* статус «Принят» — зелёным (решение заказчика 2026-09-28) */
.st-accepted { background: var(--ok-bg); color: var(--ok); }
.st-quoted { background: var(--navy); color: #fff; }
/* «Обновлено …» — полосой внизу карточки (решение заказчика 2026-09-28) */
.order-card .oc-upd-badge { order: 99; display: flex; margin: 14px -16px -16px; padding: 11px 16px; border-radius: 0; border: 0; border-top: 1px solid var(--upd-line); font-size: 14px; }

/* ---- аватары (avatar.js, решение заказчика 2026-09-28) ---- */
.av-circle { flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: var(--navy) center 30% / cover no-repeat; color: #fff; font-weight: 800; border: 2px solid var(--card); }
.uc-av { padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; flex: none; }
.uc-av:disabled { cursor: default; }
.av-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.user-card .uc-top { align-items: center; gap: 10px; }
.user-card .uc-top .uc-name { flex: 1; min-width: 0; }
.av-form { gap: 10px; }
.av-preview { display: grid; place-items: center; padding: 4px 0 8px; }
.av-preview.working .av-circle { animation: av-pulse 1.2s ease-in-out infinite; }
@keyframes av-pulse { 50% { opacity: .45; transform: scale(.96); } }
.av-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; justify-items: center; }
.av-pick { padding: 3px; border: 3px solid transparent; border-radius: 50%; background: none; cursor: pointer; }
.av-pick.on { border-color: var(--accent); }
.av-thumb { width: 44px; height: 44px; border-radius: 10px; background: center / cover no-repeat; display: none; }
.av-thumb.on { display: inline-block; }
.av-consent { display: flex; gap: 10px; align-items: flex-start; line-height: 1.35; }
.av-consent input { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--accent); }
.tab-av { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--navy) center 30% / cover no-repeat; border: 2px solid currentColor; }

/* ---- дата и время (orders.js whenRow): день слева, крупное время справа ---- */
.wr { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wr-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wr-ic { flex: none; display: grid; color: var(--accent-h); }
.wr-sep { display: none; }
.wr .oc-day { font-size: 16px; font-weight: 750; line-height: 1.25; }
.wr .oc-time { font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -.045em; }
.head-when.wr { margin: 6px 0 8px; }
.head-when .head-day { font-size: 18px; font-weight: 750; line-height: 1.25; }
.head-when .head-day::first-letter { text-transform: uppercase; }
.head-when .head-time { font-size: 40px; font-weight: 800; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.wr .oc-time.tbd, .head-when .head-time.tbd { font-size: 15px; line-height: 1.2; letter-spacing: 0; }

/* ---- экран заказа ---- */
.hint { border-radius: 10px; }
.hint-offered { background: var(--accent-bg); color: var(--accent-h); }
.q-card { border: 1px solid var(--accent-line); }
.stage-dock { border-radius: 14px; }

/* поля формы переноса даты (orders.js rescheduleCard, класс .input без стилей) — как обычные поля .inp, подписи над полями */
input.input { width: 100%; min-height: var(--tap); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-size: 16px; outline: none; }
input.input:focus { border-color: var(--accent); }
.card .row:has(> label > input.input) { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px !important; }
.card .row > label:has(> input.input) { display: grid; gap: 6px; font-size: 13px; color: var(--soft); font-weight: 600; min-width: 0; }
.inp { border-radius: 10px; }
/* крупное время в шапке заказа не вылезает за карточку */
.head-when.wr { flex-wrap: wrap; }
.head-when .head-time { font-size: 38px; }
/* точка B на карте и в маршруте — тёмно-синяя (в тёмной теме — светлее, чтобы читалась) */
.pin-b { background: var(--navy); }
/* язык кнопками в первом блоке настроек — все 4 в один ряд (2026-10-21) */
.settings-lang { display: flex; flex-wrap: nowrap !important; margin-bottom: 14px; }
.settings-lang .seg-btn { flex: 1 1 0 !important; min-width: 0; font-size: 14px; }
/* подпись под пунктом в папке «Инструкции» */
.link-text .link-sub { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--soft); }
/* архив за период (2026-10-21): чипы периода в одну прокручиваемую строку, свой период — две даты, итог */
.arch-bar { display: grid; gap: 10px; margin: 4px 0 12px; }
.arch-bar[hidden], .arch-custom[hidden], .arch-sum[hidden] { display: none; }
.arch-periods { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.arch-periods::-webkit-scrollbar { display: none; }
.arch-chip { flex: 0 0 auto; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.arch-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .arch-chip.on { background: #2B3D60; border-color: #2B3D60; }
.arch-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.arch-custom label { display: grid; gap: 4px; font-size: 13px; color: var(--soft); font-weight: 600; }
.arch-sum { font-weight: 700; font-size: 15px; color: var(--ink); padding: 2px 2px 0; }

/* «Отложенные» (2026-10-21): заказ отложен клиентом — спокойная плашка вместо «Ждём ответа» */
.oc-flag.oc-deferred { background: var(--info-bg); color: var(--info); }
