/* Маячок · One Shape v2 — интерфейс приложения. Токены и компоненты из корневого style.css (эталон), слои приложения ниже. */
/* Маячок — дизайн-система «One Shape» v2
   Язык: тёплый серый холст, чёрно-белые компоненты, один оранжевый акцент (луч), пружины, фигуры-капсулы.
   Красный — только для тревоги и SOS (безопасность важнее минимализма). Токены — design/tokens.css. */
:root {
  --land: #E7E4DD; --land-2: #E1DED6; --tree: #CFCBC0;
  --rock: #F6F4EE; --rock-l: #FFFFFF; --rock-d: #D9D5CA; --rock-edge: #8E8A80; --rock-shadow: rgba(40, 36, 28, .16);
  --water: #D3D8D9; --water-line: #9AA4A7;
  --trail: #2A2824; --trail-casing: rgba(255, 255, 255, .88); --road: #CBC7BC;
  --ink: #0B0B0B; --ink-2: #4A4741; --ink-3: #6B675E; --halo: #E7E4DD;
  --panel: #FBFAF6; --panel-2: #F1EEE7; --line: rgba(11, 11, 11, .10);
  --accent: #FF5A1F; --accent-ink: #0B0B0B; --accent-soft: rgba(255, 90, 31, .15); --warn-text: #A63A08;
  --ok: #0B0B0B; --warn: #FF5A1F; --bad: #E5322B; --lora: #0B0B0B;
  --shadow: 0 24px 48px -24px rgba(20, 16, 8, .32), 0 2px 8px rgba(20, 16, 8, .08);
  --shadow-s: 0 8px 20px -8px rgba(20, 16, 8, .26);
  --r: 24px; --r-s: 16px;
  --font-ui: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-map: var(--font-ui);
  /* пружина: ζ≈0.8, ≈2.4 Гц — тот же отклик, что в анимации One Shape */
  --spring: linear(0, .052, .173, .32, .468, .603, .717, .809, .879, .93, .966, .989, 1.004, 1.011, 1.015, 1.015, 1.014, 1.012, 1.01, 1.007, 1.005, 1.004, 1.003, 1.002, 1.001, 1);
}
[data-theme="dark"] {
  --land: #131210; --land-2: #181714; --tree: #23221E;
  --rock: #2A2925; --rock-l: #47443E; --rock-d: #1E1D1A; --rock-edge: #77736A; --rock-shadow: rgba(0, 0, 0, .5);
  --water: #1D272A; --water-line: #4F6368;
  --trail: #D9D5CA; --trail-casing: rgba(11, 11, 11, .75); --road: #2C2A26;
  --ink: #F4F2EC; --ink-2: #B8B3A7; --ink-3: #8F8A7E; --halo: #131210;
  --panel: #1C1B18; --panel-2: #262521; --line: rgba(244, 242, 236, .11);
  --accent: #FF6A2B; --accent-soft: rgba(255, 106, 43, .2); --warn-text: #FF8A52;
  --ok: #F4F2EC; --warn: #FF6A2B; --bad: #FF5A52; --lora: #F4F2EC;
  --shadow: 0 24px 48px -20px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .4);
  --shadow-s: 0 8px 20px -8px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font-ui); color: var(--ink); background: var(--land);
  overflow: hidden; font-size: 14px; line-height: 1.4; font-feature-settings: "tnum" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased; transition: background .4s;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
svg { display: block; }
.mono { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.card { background: var(--panel-2); border-radius: var(--r); padding: 16px; margin-bottom: 12px; }
.card h3 { margin: 0 0 12px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.h2 { font-size: 26px; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; margin: 8px 0 6px; }
.sub { color: var(--ink-2); margin: 0 0 16px; font-size: 14.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 14px; border-radius: 999px; background: var(--panel); font-weight: 600; font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; transition: transform .5s var(--spring), background .2s, color .2s; }
.chip:hover { color: var(--ink); transform: translateY(-1px); }
.chip:active { transform: scale(.95); }
.chip.on { background: var(--ink); color: var(--panel); }

.route-list { display: flex; flex-direction: column; gap: 8px; }
.rt { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; text-align: left; padding: 10px 14px 10px 10px; border-radius: 22px; background: var(--panel); transition: transform .5s var(--spring), box-shadow .25s; width: 100%; }
.rt:hover { transform: translateX(3px); }
.rt:active { transform: scale(.985); }
.rt.on { box-shadow: inset 0 0 0 2px var(--ink); }
.rt .n { width: 40px; height: 40px; border-radius: 14px; background: var(--ink); color: var(--panel); display: grid; place-items: center; font-weight: 700; }
.rt.on .n { background: var(--accent); color: var(--accent-ink); }
.rt b { display: block; font-size: 14px; font-weight: 600; }
.rt span { color: var(--ink-3); font-size: 12px; }
.rt .meta { text-align: right; font-weight: 600; font-size: 13px; }

.wp { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.wp:last-child { border: 0; }
.wp .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.wp .dot.s { background: var(--ink); color: var(--panel); }
.wp .nm { flex: 1; font-weight: 600; }
.wp .x { color: var(--ink-3); padding: 4px 9px; border-radius: 10px; transition: .2s; }
.wp .x:hover { background: var(--line); color: var(--ink); }
.hint { color: var(--ink-3); font-size: 12.5px; display: flex; gap: 8px; align-items: flex-start; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stat { background: var(--panel); border-radius: 18px; padding: 11px 13px; }
.stat b { display: block; font-size: 21px; letter-spacing: -.03em; font-weight: 700; }
.stat span { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

.stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stepper .val { font-size: 38px; font-weight: 700; letter-spacing: -.04em; }
.stepper .val small { font-size: 13px; color: var(--ink-3); font-weight: 600; letter-spacing: 0; margin-left: 6px; }
.stepper button { width: 48px; height: 48px; border-radius: 24px; background: var(--panel); font-size: 22px; font-weight: 600; transition: transform .5s var(--spring); }
.stepper button:hover { transform: scale(1.08); }
.stepper button:active { transform: scale(.9); }

.contact { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.ava { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 13px; flex: none; }
.contact .t { flex: 1; font-weight: 600; }
.contact .t small { display: block; color: var(--ink-3); font-weight: 500; }
.tg { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--panel); }

/* главная кнопка — чёрная капсула, как «Начать поход» в анимации */
.cta {
  width: 100%; min-height: 58px; padding: 0 20px; border-radius: 29px; font-weight: 600; font-size: 16.5px; letter-spacing: -.01em;
  background: var(--ink); color: var(--panel); position: relative; overflow: hidden;
  box-shadow: var(--shadow-s); transition: transform .5s var(--spring), box-shadow .3s, background .2s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.cta::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.cta:hover { transform: translateY(-2px); }
.cta:active { transform: scale(.965); }
.cta:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.cta.ghost { background: var(--panel); color: var(--ink); box-shadow: none; }
.cta.ghost::before, .cta.sm.ghost::before { display: none; }
.cta.sm { min-height: 46px; font-size: 14px; border-radius: 23px; padding: 0 12px; box-shadow: none; }
.cta.sm::before { display: none; }
.cta svg { width: 20px; height: 20px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* таймер-кольцо */
.timer { display: grid; place-items: center; padding: 8px 0 12px; position: relative; }
.timer svg { width: 220px; height: 220px; transform: rotate(-90deg); }
.timer .trk { stroke: var(--line); fill: none; stroke-width: 10; }
.timer .arc { fill: none; stroke: var(--ink); stroke-width: 10; stroke-linecap: round; transition: stroke .4s; }
.timer .mid { position: absolute; text-align: center; }
.timer .mid b { display: block; font-size: 44px; letter-spacing: -.05em; font-weight: 700; line-height: 1; margin: 4px 0; }
.timer .mid span { color: var(--ink-3); font-size: 11px; white-space: nowrap; display: block; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.timer[data-s="soon"] .arc { stroke: var(--accent); }
.timer[data-s="late"] .arc, .timer[data-s="alarm"] .arc, .timer[data-s="sos"] .arc { stroke: var(--bad); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--line); color: var(--ink); white-space: nowrap; flex: none; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.soon { background: var(--accent-soft); color: var(--warn-text); }
.badge.late, .badge.alarm, .badge.sos { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
.badge.alarm::before, .badge.sos::before, .badge.late::before { animation: blink 1s infinite; }
.badge.back { background: var(--line); color: var(--ink-3); }
@keyframes blink { 50% { opacity: .2; } }

.link-sig { display: flex; align-items: center; gap: 12px; }
.sig { display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.sig i { width: 5px; background: var(--ink); border-radius: 2.5px; opacity: .2; }
.sig i.on { opacity: 1; }
.sig i:nth-child(1) { height: 7px } .sig i:nth-child(2) { height: 12px } .sig i:nth-child(3) { height: 17px } .sig i:nth-child(4) { height: 22px }

.sos-wrap { position: relative; margin: 6px 0 12px; }
.sos {
  width: 100%; min-height: 68px; padding: 0 18px; border-radius: 34px; font-weight: 700; font-size: 18px; letter-spacing: .02em;
  background: var(--bad); color: #fff; position: relative; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none;
  box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--bad) 70%, transparent); transition: transform .5s var(--spring);
}
.sos:active { transform: scale(.97); }
.sos .fill { position: absolute; inset: 0; background: rgba(255, 255, 255, .36); transform: scaleX(0); transform-origin: left; }
.sos span { position: relative; display: flex; justify-content: center; gap: 10px; align-items: center; }
.sos small { display: block; font-size: 11px; opacity: .9; letter-spacing: .04em; font-weight: 500; }

.feed { display: flex; flex-direction: column; gap: 8px; }
.fi { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 11px 12px; border-radius: 20px; background: var(--panel); animation: fadeUp .6s var(--spring) both; }
.fi .ic { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); }
.fi .ic svg { width: 17px; height: 17px; }
.fi.warn .ic { background: var(--accent-soft); color: var(--warn-text); }
.fi.bad .ic { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.fi.ok .ic { background: var(--ink); color: var(--panel); }
.fi.tg .ic { background: var(--accent); color: var(--accent-ink); }
.fi b { font-size: 13px; display: block; font-weight: 600; }
.fi p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-2); }
.fi time { color: var(--ink-3); font-size: 11px; font-weight: 600; float: right; }
.empty { color: var(--ink-3); text-align: center; padding: 14px; font-size: 13px; }

.demo { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; }
.demo h3 { color: var(--ink-3); }

/* диспетчерская */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.kpi { border-radius: 22px; padding: 12px 14px; background: var(--panel-2); }
.kpi b { font-size: 28px; font-weight: 700; letter-spacing: -.04em; display: block; line-height: 1.1; }
.kpi span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
.kpi.bad { background: var(--bad); } .kpi.bad b, .kpi.bad span { color: #fff; }
.kpi.warn b { color: var(--warn-text); }
.grp { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 22px; background: var(--panel-2); width: 100%; text-align: left; margin-bottom: 8px; transition: transform .5s var(--spring), box-shadow .25s; }
.grp:hover { transform: translateX(3px); }
.grp:active { transform: scale(.985); }
.grp.on { box-shadow: inset 0 0 0 2px var(--ink); }
.grp.alarm, .grp.sos, .grp.late { background: color-mix(in srgb, var(--bad) 12%, var(--panel-2)); }
.grp.alarm.on, .grp.sos.on, .grp.late.on { box-shadow: inset 0 0 0 2px var(--bad); }
.grp b { display: block; font-size: 14px; font-weight: 600; }
.grp span { font-size: 12px; color: var(--ink-3); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; font-size: 13px; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; font-weight: 600; text-align: right; }
select, .inp { width: 100%; padding: 13px 16px; border-radius: 20px; background: var(--panel); border: 0; color: var(--ink); font: inherit; font-weight: 600; margin-bottom: 8px; }


/* ================= Приложение «Маячок» · One Shape v2 ================= */
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root { --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --font-map: var(--font-ui); --tab-h: 0px; }
body { font-size: 15px; line-height: 1.45; overflow: hidden; background: var(--land); }
body.is-login { overflow: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
::selection { background: var(--accent); color: #0B0B0B; }
.mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); } .small { font-size: 12.5px; } .nowrap { white-space: nowrap; } .grow { flex: 1; min-width: 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .row.sb { justify-content: space-between; } .row.nw { flex-wrap: nowrap; }
.i { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.i.s { width: 16px; height: 16px; } .i.l { width: 24px; height: 24px; }

/* ---------- иллюстрации ---------- */
.art { display: block; position: relative; }
.art img { display: block; width: 100%; height: auto; }
.art .d { display: none; }
[data-theme="dark"] .art .l { display: none; } [data-theme="dark"] .art .d { display: block; }
.sticker { width: 74px; height: 74px; object-fit: contain; flex: none; filter: drop-shadow(0 4px 8px rgba(0,0,0,.14)); }
.hw { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 18px rgba(20,16,8,.2)); }
.lottie { display: block; }

/* ---------- вход ---------- */
.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--land); }
.login-hero { display: none; position: relative; overflow: hidden; background: var(--panel-2); margin: 12px 0 12px 12px; border-radius: 40px; padding: 44px 40px; flex-direction: column; justify-content: space-between; }
.login-hero h2 { font-size: clamp(34px, 3.6vw, 52px); letter-spacing: -.05em; line-height: 1.02; margin: 0 0 12px; font-weight: 700; max-width: 11em; }
.login-hero p { color: var(--ink-2); font-size: 18px; max-width: 26em; margin: 0; }
.login-hero .art { margin: 24px -10px -20px; }
.login-main { display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(480px, 100%); }
.login-brand { margin-bottom: 26px; display: flex; align-items: center; gap: 12px; }
.login-brand img { height: 44px; display: block; }
.login-card h1 { font-size: 34px; letter-spacing: -.05em; line-height: 1.05; margin: 0 0 6px; font-weight: 700; }
.login .sub { margin-bottom: 20px; }
.fld { display: grid; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
.inp, select.inp, textarea.inp { width: 100%; min-height: 54px; padding: 14px 18px; border-radius: 22px; background: var(--panel-2); border: 2px solid transparent; color: var(--ink); font: inherit; font-weight: 600; font-size: 16px; margin: 0; transition: border-color .2s, background .2s; }
textarea.inp { border-radius: 22px; min-height: 88px; resize: vertical; font-weight: 500; }
.inp::placeholder { color: var(--ink-3); font-weight: 500; }
.inp:focus { outline: none; border-color: var(--ink); background: var(--panel); }
.err { color: var(--bad); font-weight: 600; font-size: 13.5px; margin: 0 0 10px; } .err:empty { display: none; }
.demo-accts { margin-top: 26px; }
.demo-accts h3 { margin: 0 0 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); font-weight: 700; display: flex; justify-content: space-between; }
.demo-accts h3 span { text-transform: none; letter-spacing: 0; }
.grp-t { font-size: 11.5px; font-weight: 700; color: var(--ink-3); margin: 16px 0 6px; text-transform: uppercase; letter-spacing: .09em; }
.acct { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 9px 14px 9px 9px; border-radius: 24px; background: var(--panel-2); margin-bottom: 6px; transition: transform .5s var(--spring), box-shadow .25s; }
.acct:hover { transform: translateX(3px); box-shadow: inset 0 0 0 2px var(--ink); } .acct:active { transform: scale(.985); }
.acct b { font-weight: 600; } .acct small { display: block; color: var(--ink-3); font-size: 12.5px; line-height: 1.3; }
@media (min-width: 980px) { .login { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } .login-hero { display: flex; } }

/* ---------- каркас ---------- */
#shell { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--land); }
#top { display: flex; align-items: center; gap: 12px; padding: 12px 16px 4px 18px; z-index: 20; min-width: 0; }
#top .logo { display: flex; align-items: center; text-decoration: none; flex: none; }
#top .logo img { height: 34px; display: block; }
#top .logo .l-dark, [data-theme="dark"] #top .logo .l-light { display: none; } [data-theme="dark"] #top .logo .l-dark { display: block; }
#topnav { display: flex; gap: 2px; background: var(--panel); border-radius: 28px; padding: 4px; box-shadow: var(--shadow-s); margin-left: 14px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
#topnav a { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 24px; font-weight: 600; font-size: 13.5px; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, transform .5s var(--spring); }
#topnav a:hover { color: var(--ink); } #topnav a:active { transform: scale(.95); }
#topnav a.on { background: var(--ink); color: var(--panel); }
#top .sp { flex: 1; }
#wsDot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); flex: none; } #wsDot[data-s="on"] { background: var(--ink); box-shadow: 0 0 0 4px var(--line); }
#userChip { display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: 28px; padding: 4px 16px 4px 4px; box-shadow: var(--shadow-s); min-width: 0; }
.uc-t { display: grid; line-height: 1.15; min-width: 0; } .uc-t b { font-size: 13.5px; font-weight: 600; white-space: nowrap; } .uc-t small { color: var(--ink-3); font-size: 11.5px; white-space: nowrap; }
.iconbtn { width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; background: var(--panel); color: var(--ink); box-shadow: var(--shadow-s); transition: transform .5s var(--spring); }
.iconbtn:hover { transform: scale(1.08); } .iconbtn:active { transform: scale(.92); } .iconbtn svg { width: 19px; height: 19px; }
#viewHost { position: relative; min-height: 0; }
.split { position: absolute; inset: 0; display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 12px; padding: 8px 12px 12px; }
.side { overflow-y: auto; background: var(--panel); border-radius: 32px; box-shadow: var(--shadow); min-height: 0; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.side-in { padding: 18px 18px 40px; }
.sheet-handle { display: none; }
.mapcol { position: relative; overflow: hidden; border-radius: 32px; box-shadow: var(--shadow); background: var(--land); isolation: isolate; }
.mapwrap { position: absolute; inset: 0; }
.page { position: absolute; inset: 0; overflow-y: auto; padding: 8px 12px 12px; }
.page-in { max-width: 1180px; margin: 0 auto; background: var(--panel); border-radius: 36px; box-shadow: var(--shadow); padding: clamp(18px, 3vw, 36px); min-height: 100%; }
.page h1 { margin: 0 0 4px; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.05em; line-height: 1.05; font-weight: 700; }
.page .lead { color: var(--ink-2); margin: 0 0 22px; font-size: 16.5px; max-width: 40em; }
.page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-bottom: 8px; }
.page-head .art, .page-head .hw { width: clamp(120px, 18vw, 200px); }
h2.h, .h2 { font-size: 26px; letter-spacing: -.04em; line-height: 1.1; font-weight: 700; margin: 8px 0 6px; }
.cta.danger { background: var(--bad); color: #fff; } .cta.danger::before { background: #fff; }
.cta.sm { padding: 0 16px; width: auto; } .row2 .cta.sm, .side .cta.sm { width: 100%; }
.link { background: none; border: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; padding: 8px 0; cursor: pointer; font-size: inherit; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--line); font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--ink); color: var(--panel); } .pill.bad { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); } .pill.warn { background: var(--accent-soft); color: var(--warn-text); }
.tabs { display: flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; background: var(--panel-2); border-radius: 26px; padding: 4px; width: fit-content; max-width: 100%; }
.tabs button { padding: 10px 16px; border-radius: 22px; font-weight: 600; font-size: 13.5px; color: var(--ink-2); transition: background .2s, color .2s, transform .5s var(--spring); } .tabs button:active { transform: scale(.95); }
.tabs button.on { background: var(--ink); color: var(--panel); }
.empty { color: var(--ink-3); text-align: center; padding: 16px; font-size: 13.5px; }
.empty-state { text-align: center; padding: 8px 12px 22px; }
.empty-state .art { width: min(260px, 70%); margin: 0 auto 6px; } .empty-state b { display: block; font-size: 17px; letter-spacing: -.02em; } .empty-state p { margin: 4px auto 14px; max-width: 28em; color: var(--ink-2); font-size: 14px; }

/* карточки-миниатюры */
.thumb { width: 56px; height: 56px; border-radius: 18px; background: var(--panel); flex: none; overflow: hidden; display: block; }
.hk-card { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 14px 8px 8px; border-radius: 26px; background: var(--panel-2); width: 100%; text-align: left; margin-bottom: 8px; transition: transform .5s var(--spring), box-shadow .25s; }
.hk-card:hover { transform: translateX(3px); } .hk-card:active { transform: scale(.985); }
.hk-card.on { box-shadow: inset 0 0 0 2px var(--ink); }
.hk-card.alarm, .hk-card.sos, .hk-card.late { background: color-mix(in srgb, var(--bad) 12%, var(--panel-2)); } .hk-card.alarm.on, .hk-card.sos.on, .hk-card.late.on { box-shadow: inset 0 0 0 2px var(--bad); }
.hk-card .thumb, .hk-card .ava { width: 52px; height: 52px; border-radius: 18px; }
.hk-card b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hk-card .s { font-size: 12.5px; color: var(--ink-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hk-card .ava { background: var(--ink) !important; color: var(--panel); font-size: 17px; }
.ava { border-radius: 50%; }
.rt .thumb { width: 44px; height: 44px; border-radius: 15px; }
.rt { grid-template-columns: 46px minmax(0, 1fr) auto; }
.rt .n { display: none; } .rt .thumb { position: relative; }
.rt .thumb .num { position: absolute; left: 4px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: var(--panel); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.rt.on .thumb .num { background: var(--accent); color: #0B0B0B; }

/* карточка статуса с иллюстрацией */
.status-card { background: var(--panel-2); border-radius: 30px; margin-bottom: 12px; position: relative; overflow: hidden; }
.status-card .st-art { display: grid; grid-template-columns: minmax(0, 1fr) 46%; align-items: center; padding: 18px 8px 0 20px; gap: 4px; }
.status-card .st-art .art { margin: -6px -6px -14px 0; }
.status-card .st-t b { display: block; font-size: 24px; letter-spacing: -.04em; line-height: 1.08; font-weight: 700; }
.status-card .st-t p { margin: 6px 0 0; color: var(--ink-2); font-size: 13.5px; }
.status-card .timer { padding-top: 0; }
.status-card.bad { background: color-mix(in srgb, var(--bad) 10%, var(--panel-2)); }
.timer .mid b { font-size: 46px; }

/* цепочка доставки SOS (каждый шаг — отдельное подтверждённое событие) */
.chain { display: grid; gap: 0; }
.chain .st { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: start; padding: 8px 0; position: relative; }
.chain .st::before { content: ""; position: absolute; left: 13px; top: 32px; bottom: -8px; width: 2px; background: var(--line); }
.chain .st:last-child::before { display: none; }
.chain .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--line); display: grid; place-items: center; color: var(--ink-3); } .chain .dot .i { width: 14px; height: 14px; }
.chain .st.done .dot { background: var(--ink); color: var(--panel); } .chain .st.wait .dot { background: var(--accent-soft); color: var(--warn-text); animation: blink 1.4s infinite; }
.chain .st b { display: block; font-size: 13.5px; font-weight: 600; } .chain .st span { font-size: 12px; color: var(--ink-3); } .chain time { font-size: 12px; color: var(--ink-3); font-weight: 600; padding-top: 2px; }

/* SOS: постоянная кнопка на телефоне */
#fabSos { position: fixed; right: 16px; bottom: calc(var(--tab-h) + 16px); z-index: 25; width: 76px; height: 76px; border-radius: 38px; background: var(--bad); color: #fff; font-weight: 800; letter-spacing: .02em; display: grid; place-items: center; box-shadow: 0 14px 28px -10px color-mix(in srgb, var(--bad) 75%, transparent); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
#fabSos .fill { position: absolute; inset: 0; background: rgba(255,255,255,.38); transform: scaleY(0); transform-origin: bottom; }
#fabSos span { position: relative; text-align: center; font-size: 15px; line-height: 1.05; } #fabSos small { display: block; font-size: 8.5px; font-weight: 600; opacity: .9; letter-spacing: .03em; }
.sos:focus-visible, #fabSos:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; }
.link-sig .i { width: 22px; height: 22px; }
.fi.stk { grid-template-columns: 74px 1fr; align-items: center; } .fi.stk .sticker { margin: -6px 0; }
.bubble { background: var(--panel-2); border-radius: 18px 18px 18px 6px; padding: 9px 12px; font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.fi .bubble { background: var(--panel-2); }

/* устройства и парк */
.dev-thumb { width: 44px; height: 44px; border-radius: 14px; background: var(--panel-2); display: grid; place-items: center; overflow: hidden; flex: none; }
.dev-thumb img { width: 90%; height: 90%; object-fit: contain; }
.tbl-wrap { overflow-x: auto; background: var(--panel-2); border-radius: 28px; padding: 6px; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: 14px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; padding: 10px 14px; white-space: nowrap; }
.tbl td { padding: 10px 14px; background: var(--panel); vertical-align: middle; } .tbl td:first-child { border-radius: 20px 0 0 20px; } .tbl td:last-child { border-radius: 0 20px 20px 0; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: color-mix(in srgb, var(--panel) 92%, var(--ink)); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; min-width: 56px; } .bar i { display: block; height: 100%; background: var(--ink); border-radius: 4px; } .bar.warn i { background: var(--accent); } .bar.bad i { background: var(--bad); }
.chart { width: 100%; height: 150px; } .chart rect.b { fill: var(--ink); } .chart rect.b.hi { fill: var(--accent); } .chart text { font-size: 10px; fill: var(--ink-3); font-family: var(--font-ui); font-weight: 600; }
.cols2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; } .toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.timeline { display: grid; gap: 10px; } .tl-i { display: grid; grid-template-columns: 50px 1fr; gap: 10px; font-size: 13px; } .tl-i time { color: var(--ink-3); font-weight: 600; } .tl-i p { margin: 0; color: var(--ink-2); font-size: 12.5px; } .tl-i b { font-weight: 600; }
.tl-i.bad b { color: var(--bad); } .tl-i.warn b { color: var(--warn-text); }
.banner { border-radius: 22px; padding: 13px 16px; margin-bottom: 12px; background: var(--panel-2); font-size: 14px; } .banner b { display: block; font-weight: 600; margin-bottom: 2px; }
.banner.warn { background: var(--accent-soft); } .banner.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); } .banner.bad b { color: var(--bad); } .banner.info { background: var(--panel-2); }
.sw { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; } .sw button { width: 54px; height: 32px; border-radius: 16px; background: var(--line); position: relative; flex: none; transition: background .3s; }
.sw button::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--panel); box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .6s var(--spring); } .sw button[aria-checked="true"] { background: var(--ink); } .sw button[aria-checked="true"]::after { transform: translateX(22px); }
.dev-box { border: 1.5px dashed var(--line); border-radius: 24px; padding: 12px 14px; margin: 12px 0; } .dev-box summary { cursor: pointer; font-weight: 600; color: var(--ink-3); font-size: 13px; } .dev-box .row { margin-top: 8px; }
.kpis.k4 { grid-template-columns: repeat(4, 1fr); } .kpi.ok b { color: var(--ink); }
@media (max-width: 520px) { .kpis.k4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- карта: интерфейс поверх (как #search/#ctrls эталона) ---------- */
.mapui { position: absolute; inset: 0; pointer-events: none; z-index: 4; } .mapui > * { pointer-events: auto; }
.m-search { position: absolute; top: 16px; left: 16px; width: min(360px, calc(100% - 100px)); }
.m-search .box { display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: 26px; padding: 0 18px; box-shadow: var(--shadow-s); height: 52px; }
.m-search input { flex: 1; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 500; outline: 0; min-width: 0; font-size: 15px; } .m-search svg { width: 18px; height: 18px; flex: none; }
#results { margin-top: 8px; background: var(--panel); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; display: none; max-height: 40vh; overflow-y: auto; padding: 6px; }
#results button { display: flex; width: 100%; padding: 11px 14px; text-align: left; gap: 10px; align-items: center; font-weight: 600; border-radius: 16px; } #results button:hover { background: var(--panel-2); } #results small { color: var(--ink-3); margin-left: auto; font-weight: 500; }
.m-ctrls { position: absolute; top: 16px; right: 16px; display: flex; flex-direction: column; gap: 10px; }
.m-ctrls .grpbtn { background: var(--panel); border-radius: 24px; box-shadow: var(--shadow-s); display: flex; flex-direction: column; padding: 3px; }
.m-ctrls button { width: 46px; height: 46px; border-radius: 21px; display: grid; place-items: center; color: var(--ink-2); font-size: 21px; font-weight: 500; transition: background .2s, transform .5s var(--spring); } .m-ctrls button:hover { background: var(--panel-2); color: var(--ink); } .m-ctrls button:active { transform: scale(.88); } .m-ctrls svg { width: 20px; height: 20px; }
.m-layers { position: absolute; top: 16px; right: 76px; background: var(--panel); border-radius: 24px; box-shadow: var(--shadow); padding: 8px; min-width: 230px; animation: rise .5s var(--spring) both; }
.m-layers label { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; font-weight: 600; cursor: pointer; } .m-layers label:hover { background: var(--panel-2); } .m-layers input { accent-color: var(--ink); width: 17px; height: 17px; }
.m-attr { position: absolute; left: 16px; bottom: 8px; font-size: 11px; color: var(--ink-3); font-weight: 500; text-shadow: 0 0 3px var(--halo), 0 0 3px var(--halo), 0 0 3px var(--halo); pointer-events: none; }
.map-tip { position: absolute; z-index: 6; transform: translate(-50%, calc(-100% - 18px)); background: var(--panel); border-radius: 22px; padding: 12px 14px; box-shadow: var(--shadow); display: none; min-width: 190px; animation: pop .5s var(--spring) both; }
.map-tip::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 14px; height: 14px; background: var(--panel); transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
.map-tip b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; } .map-tip small { color: var(--ink-3); display: block; margin-bottom: 10px; } .map-tip .cta { min-height: 42px; font-size: 13px; border-radius: 21px; box-shadow: none; margin-top: 4px; width: 100%; } .map-tip .cta::before { display: none; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, calc(-100% - 6px)) scale(.8); } }

/* ---------- тосты (чёрные капсулы) и диалоги ---------- */
#toasts { position: fixed; z-index: 90; top: 78px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(460px, calc(100% - 24px)); pointer-events: none; }
.toast { background: var(--ink); color: var(--panel); border-radius: 28px; box-shadow: var(--shadow); padding: 14px 20px 14px 46px; position: relative; animation: slideIn .7s var(--spring) both; pointer-events: auto; }
.toast::before { content: ""; position: absolute; left: 20px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.toast.bad::before { background: var(--bad); animation: blink 1s infinite; } .toast.ok::before { background: var(--panel); }
.toast b { display: block; font-weight: 600; } .toast p { margin: 3px 0 0; color: color-mix(in srgb, var(--panel) 72%, transparent); font-size: 13px; }
.toast.out { animation: slideOut .4s both; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-24px) scale(.92); filter: blur(6px); } } @keyframes slideOut { to { opacity: 0; transform: translateY(-12px) scale(.96); filter: blur(4px); } }
dialog.modal { border: 0; border-radius: 36px; padding: 0; width: min(540px, calc(100% - 24px)); max-height: 90dvh; background: var(--panel); color: var(--ink); box-shadow: var(--shadow); } dialog.modal.wide { width: min(780px, calc(100% - 24px)); }
dialog.modal::backdrop { background: rgba(11,11,11,.5); backdrop-filter: blur(6px); } dialog.modal[open] { animation: rise .6s var(--spring) both; }
dialog.modal form { display: flex; flex-direction: column; max-height: 90dvh; } dialog.modal header { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 6px; }
dialog.modal h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; font-weight: 700; } .modal .x { width: 40px; height: 40px; border-radius: 20px; background: var(--panel-2); }
.mbody { padding: 8px 24px 16px; overflow: auto; } dialog.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 24px 22px; } dialog.modal footer .cta { width: auto; min-width: 120px; }

/* онбординг */
.onb { position: fixed; inset: 0; z-index: 70; background: var(--land); display: grid; grid-template-rows: 1fr auto; animation: fadeUp .6s var(--spring) both; }
.onb-in { display: grid; place-items: center; padding: 28px 20px 0; overflow: hidden; } .onb-slide { max-width: 460px; text-align: center; animation: rise .7s var(--spring) both; }
.onb-slide .art { width: min(360px, 80%); margin: 0 auto 10px; } .onb-slide h2 { font-size: 32px; letter-spacing: -.05em; line-height: 1.05; margin: 0 0 8px; font-weight: 700; } .onb-slide p { color: var(--ink-2); font-size: 16.5px; margin: 0; }
.onb-foot { padding: 16px 20px max(24px, env(safe-area-inset-bottom)); display: grid; gap: 14px; max-width: 460px; margin: 0 auto; width: 100%; }
.dots { display: flex; gap: 6px; justify-content: center; } .dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: width .5s var(--spring), background .3s; } .dots i.on { width: 26px; background: var(--ink); }

/* заставка */
#splash { position: fixed; inset: 0; z-index: 80; background: #0B0B0B; display: grid; place-items: center; transition: opacity .6s, visibility .8s; color: #F4F2EC; } #splash.gone { opacity: 0; visibility: hidden; }
#splash .in { text-align: center; } #splash img { height: 64px; margin: 0 auto 18px; display: block; } #splash .lottie { width: 96px; height: 96px; margin: 0 auto; }

/* ---------- мобильная версия: капсула-навигация внизу, шторка над ней ---------- */
#tabbar { display: none; }
@media (max-width: 899px) {
  :root { --tab-h: 84px; }
  #top { padding: 10px 12px 0; gap: 8px; } #top .logo img { height: 30px; } #topnav { display: none; } .uc-t { display: none; } #userChip { padding: 4px; }
  #tabbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); height: 66px; background: var(--ink); color: var(--panel); border-radius: 33px; box-shadow: var(--shadow); z-index: 30; padding: 6px; gap: 2px; }
  #tabbar a { flex: 1; min-width: 0; display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 27px; font-size: 10.5px; font-weight: 600; text-decoration: none; color: color-mix(in srgb, var(--panel) 66%, transparent); transition: background .3s, color .3s, transform .5s var(--spring); }
  #tabbar a:active { transform: scale(.93); } #tabbar a.on { background: var(--panel); color: var(--ink); } #tabbar .i { width: 20px; height: 20px; }
  .split { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .mapcol { position: absolute; inset: 0; border-radius: 0; box-shadow: none; }
  .side { position: absolute; left: 8px; right: 8px; bottom: var(--tab-h); height: calc(100% - var(--tab-h) - 8px); z-index: 8; border-radius: 32px; box-shadow: 0 -12px 48px rgba(0,0,0,.22); overflow: hidden; display: flex; flex-direction: column; transform: translateY(calc(100% - 156px)); transition: transform .7s var(--spring); }
  .side[data-snap="half"] { transform: translateY(calc(100% - 50dvh)); } .side[data-snap="full"] { transform: translateY(0); } .side.dragging { transition: none; }
  .sheet-handle { display: block; padding: 10px 0 8px; touch-action: none; cursor: grab; flex: none; } .sheet-handle i { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--ink-3); opacity: .4; margin: 0 auto; }
  .side-in { overflow-y: auto; flex: 1; padding: 4px 16px 110px; }
  .page { padding: 4px 8px calc(var(--tab-h) + 4px); } .page-in { border-radius: 28px; padding: 18px 14px; }
  .m-search { top: 10px; left: 10px; width: calc(100% - 78px); } .m-ctrls { top: 10px; right: 10px; } .m-layers { right: 10px; top: 64px; } .m-attr { display: none; }
  #toasts { top: 64px; } .timer svg { width: 190px; height: 190px; } .page-head { grid-template-columns: 1fr; } .page-head .art, .page-head .hw { display: none; }
  .status-card .st-art { grid-template-columns: minmax(0, 1fr) 40%; }
}
@media (min-width: 900px) and (max-width: 1180px) { .split { grid-template-columns: 380px minmax(0, 1fr); } .uc-t { display: none; } #userChip { padding: 4px; } }

.wp .x { min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 16px; margin: -8px -8px -8px 0; }
.i.flip { transform: scaleX(-1); }
.wp .dot .i { width: 13px; height: 13px; } .chip .i { width: 15px; height: 15px; }
.cta .i { width: 18px; height: 18px; }

.dev-thumb .hw { filter: none; width: 100%; height: 100%; object-fit: contain; }
.page-head .hw { max-height: 190px; object-fit: contain; }
.hk-card .dev-thumb { width: 52px; height: 52px; border-radius: 18px; background: var(--panel); }

/* логотип: светлый/тёмный вариант по теме (везде) */
img.l-dark { display: none; } [data-theme="dark"] img.l-light { display: none; } [data-theme="dark"] img.l-dark { display: block; }
.login-brand img { height: 42px; width: auto; }
.login-hero { position: sticky; top: 12px; height: calc(100dvh - 24px); align-self: start; }
.login-hero .art { margin: 0 -10px -24px; }
.login-hero .art img { width: 100%; max-height: 42dvh; object-fit: contain; object-position: bottom; }
@media (max-width: 979px) { #lbMobile { display: flex; } } @media (min-width: 980px) { #lbMobile { display: none; } }
@media (max-width: 899px) { #top { gap: 6px; padding-right: 10px; } #top .iconbtn { width: 40px; height: 40px; } #wsDot { margin: 0 2px; } }

/* статус доставки сообщения */
.nst { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; display: flex; gap: 6px; align-items: baseline; } .nst i { font-style: normal; font-weight: 800; width: 12px; flex: none; text-align: center; }
.nst.ok i { color: var(--ink); } .nst.wait i { color: var(--warn-text); } .nst.bad, .nst.bad i { color: var(--bad); } .nst.off { opacity: .8; }

#offline .i { width: 18px; height: 18px; flex: none; }
.toast.ok[style*="pointer"] { border: 2px solid var(--accent); }

/* чек-лист перед выходом */
.chk { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; line-height: 1.35; }
.chk:last-child { border-bottom: 0; padding-bottom: 0; }
.chk input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--accent); cursor: pointer; }

/* панель слоёв: разделы */
.m-layers { max-height: min(70vh, 520px); overflow: auto; }
.m-layers h4 { margin: 8px 12px 2px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); } .m-layers h4:first-child { margin-top: 2px; }
.m-compass svg { transition: transform .15s linear; }

/* утверждённые маршруты парка */
.banner.legal { font-size: 13px; line-height: 1.4; margin-bottom: 12px; } .banner.legal b { display: block; margin-bottom: 2px; } .banner.legal a { color: inherit; font-weight: 600; text-underline-offset: 2px; }
.rt-det .rt-text { margin: 0 0 12px; color: var(--ink-2); line-height: 1.5; }
.rt-stops { margin: 6px 0 0; padding-left: 22px; color: var(--ink-2); font-size: 14px; line-height: 1.55; } .rt-stops li::marker { color: var(--accent); font-weight: 700; }
.rt-det .kv dd { text-align: right; }
.chk.card { padding: 14px 16px; margin-bottom: 12px; }

/* карточка объекта на карте */
.map-tip { min-width: 250px; max-width: min(330px, calc(100% - 20px)); padding: 14px; }
.map-tip::after { left: calc(50% + var(--ax, 0px)); }
.map-tip.below { transform: translate(-50%, 18px); } .map-tip.below::after { bottom: auto; top: -6px; }
.tip-h { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.tip-ic { width: 36px; height: 36px; border-radius: 12px; background: var(--panel-2); display: grid; place-items: center; flex: none; } .tip-ic .i { width: 18px; height: 18px; }
.tip-t { flex: 1; min-width: 0; } .map-tip .tip-t b { font-size: 16px; line-height: 1.2; } .map-tip .tip-t small { margin: 2px 0 0; }
.tip-x { width: 28px; height: 28px; border-radius: 50%; color: var(--ink-3); font-size: 13px; flex: none; } .tip-x:hover { background: var(--panel-2); color: var(--ink); }
.tip-rows { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 10px; font-size: 13px; line-height: 1.35; } .tip-rows dt { color: var(--ink-3); } .tip-rows dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* выдвижная панель объектов (правый край карты) */
.m-drawer { position: absolute; top: 12px; bottom: 12px; right: 0; width: min(372px, 90%); transform: translateX(100%); transition: transform .45s var(--spring); z-index: 5; }
.m-drawer.open { transform: none; }
.m-handle { position: absolute; left: -34px; top: 50%; translate: 0 -50%; width: 34px; height: 116px; border-radius: 18px 0 0 18px; background: var(--panel); box-shadow: var(--shadow-s); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 11px; font-weight: 700; color: var(--ink-2); transition: background .2s; }
.m-handle:hover { background: var(--panel-2); } .m-handle span { writing-mode: vertical-rl; letter-spacing: .06em; } .m-handle .i { width: 18px; height: 18px; }
.dr-in { height: 100%; background: var(--panel); border-radius: 28px 0 0 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.dr-in header { padding: 16px 16px 10px; } .dr-in h3 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.dr-x { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); } .dr-x:hover { background: var(--panel-2); }
.dr-q { display: flex; gap: 8px; align-items: center; background: var(--panel-2); border-radius: 20px; padding: 0 14px; height: 42px; margin-top: 10px; } .dr-q input { flex: 1; border: 0; background: transparent; color: var(--ink); font: inherit; outline: 0; min-width: 0; }
.dr-body { overflow: auto; padding: 0 10px 16px; flex: 1; overscroll-behavior: contain; }
.dr-sec { border-top: 1px solid var(--line); } .dr-h { width: 100%; display: flex; align-items: center; gap: 8px; padding: 14px 8px; text-align: left; } .dr-h b { flex: 1; font-size: 15px; } .dr-h small { color: var(--ink-3); } .dr-h .i { width: 16px; height: 16px; transition: transform .25s; } .dr-h[aria-expanded=true] .i { transform: rotate(180deg); }
.dr-r { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 14px; min-height: 40px; } .dr-r > span { flex: 1; }
.dr-e { flex: 1; display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; padding: 4px 0; } .dr-e > span { flex: 1; min-width: 0; } .dr-e small { color: var(--ink-3); } .dr-e .i { width: 18px; height: 18px; flex: none; } .dr-e .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dr-gh { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.dr-l { margin: 2px 0 8px 14px; display: grid; } .dr-i { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; text-align: left; } .dr-i:hover { background: var(--panel-2); }
.dr-i .di { width: 28px; height: 28px; border-radius: 10px; background: var(--panel-2); display: grid; place-items: center; flex: none; } .dr-i .di .i { width: 15px; height: 15px; }
.dr-i .dn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; } .dr-i small { color: var(--ink-3); display: flex; gap: 6px; align-items: center; font-size: 12px; }
.dr-empty { color: var(--ink-3); font-size: 13px; padding: 8px 10px; } .dr-sub { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 8px 8px 2px; }
.sw { position: relative; width: 40px; height: 24px; flex: none; } .sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; width: 100%; height: 100%; }
.sw i { position: absolute; inset: 0; border-radius: 12px; background: var(--line); transition: background .25s; } .sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--panel); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .3s var(--spring); }
.sw input:checked + i { background: var(--ink); } .sw input:checked + i::after { transform: translateX(16px); } .sw input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.bt { width: 34px; height: 6px; border-radius: 3px; background: var(--line); display: inline-block; overflow: hidden; } .bt i { display: block; height: 100%; background: var(--ink); } .bt.warn i { background: var(--accent); } .bt.bad i { background: var(--bad); }
.st.bad { color: var(--bad); font-weight: 600; }
.m-ctrls { transition: right .45s var(--spring); } .mapui.drawer-open .m-ctrls { right: calc(min(372px, 90%) + 14px); }
@media (max-width: 899px) { .m-drawer { width: 88%; top: 8px; bottom: 8px; } .mapui.drawer-open .m-ctrls { display: none; } .m-handle { height: 104px; } }

/* выбор вида карты */
.m-bases { position: absolute; top: 16px; right: 76px; background: var(--panel); border-radius: 24px; box-shadow: var(--shadow); padding: 8px; width: 290px; animation: rise .5s var(--spring) both; z-index: 5; }
.m-bases button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 8px; border-radius: 18px; } .m-bases button:hover:not(:disabled) { background: var(--panel-2); } .m-bases button:disabled { opacity: .5; cursor: not-allowed; }
.m-bases button.on { background: var(--panel-2); box-shadow: inset 0 0 0 2px var(--ink); } .m-bases b { display: block; font-size: 15px; } .m-bases small { color: var(--ink-3); font-size: 12px; line-height: 1.25; display: block; }
.bp { width: 56px; height: 56px; border-radius: 16px; flex: none; box-shadow: inset 0 0 0 1px var(--line); }
.bp.scheme { background: linear-gradient(135deg, transparent 46%, #8a867c 47% 50%, transparent 51%), linear-gradient(60deg, transparent 60%, #fff 61% 66%, transparent 67%), #E7E4DD; }
.bp.hybrid { background: linear-gradient(135deg, transparent 46%, #fff 47% 50%, transparent 51%), linear-gradient(60deg, transparent 60%, #ffffffcc 61% 64%, transparent 65%), radial-gradient(circle at 30% 30%, #5f7a4c, #2f4a34 60%, #3d3a2c); }
.bp.sat { background: radial-gradient(circle at 70% 25%, #7b8f5a, transparent 45%), radial-gradient(circle at 25% 75%, #4a6a74, transparent 40%), linear-gradient(135deg, #3d5a3a, #6b6a4a 55%, #2f4a34); }
.m-basebtn.on { color: var(--accent); }
@media (max-width: 899px) { .m-bases { right: 10px; top: 64px; } }
.m-attr.on-img { color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000, 0 1px 2px #000; }

/* отчёты */
.rep-list { margin-top: 6px; } .rep { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); } .rep small { display: block; color: var(--ink-3); } .rep .cta { width: auto; flex: none; } .rep .cta .i { margin-right: 6px; }
.row2 > .fld { min-width: 0; } input[type=date].inp, input[type=number].inp { min-width: 0; width: 100%; }

/* цели нажатия не меньше 40 px (A8) */
.logo { min-height: 44px; display: inline-flex; align-items: center; } .dr-x { width: 40px; height: 40px; } button.link { min-height: 40px; padding-inline: 8px; } .banner a { display: inline-block; padding: 10px 0; }
/* история: карточки шире, название и дата не обрезаются до одного слова */
.cards.hist { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); } .cards.hist .hk-card b, .cards.hist .hk-card .s { white-space: normal; overflow: visible; text-overflow: clip; }
