/* Layout: phone column (max 440px) with bottom tab bar; dossier-like cards on a cool field-grey ground */
:root {
  --bg: #E9EEEA;
  --bg-outer: #DCE3DE;
  --surface: #FFFFFF;
  --surface-2: #F3F6F4;
  --ink: #16201C;
  --muted: #5B6862;
  --line: #D3DBD6;
  --accent: #1E5C4A;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCEBE4;
  --warm: #C46A12;
  --cool: #7A8698;
  --cold: #2E6CB0;
  --danger: #B23A48;
  --support: #B5475B;
  --prod: #1E5C4A;
  --dev: #6650B8;
  --tg: #E3F0EA;
  --shadow: 0 1px 2px rgba(22,32,28,.06), 0 6px 18px rgba(22,32,28,.06);
  --f-display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --f-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1513; --bg-outer: #0A0F0D; --surface: #18201D; --surface-2: #1E2723; --ink: #E5ECE8; --muted: #93A29B;
    --line: #2B3531; --accent: #6CC3A4; --accent-ink: #0F1513; --accent-soft: #1C3A30; --warm: #F0A050; --cool: #A6B0BF;
    --cold: #6FA8E8; --danger: #F07A86; --support: #E68597; --prod: #6CC3A4; --dev: #A898F0; --tg: #1A2C25;
    --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1513; --bg-outer: #0A0F0D; --surface: #18201D; --surface-2: #1E2723; --ink: #E5ECE8; --muted: #93A29B;
  --line: #2B3531; --accent: #6CC3A4; --accent-ink: #0F1513; --accent-soft: #1C3A30; --warm: #F0A050; --cool: #A6B0BF;
  --cold: #6FA8E8; --danger: #F07A86; --support: #E68597; --prod: #6CC3A4; --dev: #A898F0; --tg: #1A2C25;
  --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
}
* { box-sizing: border-box; }
/* Атрибут hidden должен побеждать display у классов (.stack, .f, .opts), иначе скрытые поля видны */
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg-outer); color: var(--ink); font: 15px/1.45 var(--f-body); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.app { max-width: 440px; min-height: 100%; margin: 0 auto; background: var(--bg); position: relative; }
main { padding-inline: 16px; padding-block: 12px 110px; display: flex; flex-direction: column; gap: 20px; }

/* top bar */
.top { display: flex; align-items: flex-start; gap: 10px; padding-top: 8px; }
.top .titles { flex: 1; min-width: 0; }
.eyebrow { font: 500 11px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h1 { font: 700 24px/1.15 var(--f-display); margin: 2px 0 0; text-wrap: balance; letter-spacing: -.01em; }
h2 { font: 600 13px/1.3 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
h3 { font: 600 16px/1.3 var(--f-body); margin: 0; }
.iconbtn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; flex: none; }
.iconbtn svg { width: 20px; height: 20px; }
.back { border: 0; background: none; display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; padding: 4px 0; }
.back svg { width: 18px; height: 18px; }

.section { display: flex; flex-direction: column; gap: 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.link { border: 0; background: none; color: var(--accent); font-weight: 600; font-size: 14px; padding: 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.flat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.hint { font-size: 13px; color: var(--muted); }

/* avatar */
.av { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font: 600 17px var(--f-body); flex: none;
  background: color-mix(in srgb, var(--c, var(--accent)) 16%, var(--surface)); color: var(--c, var(--accent)); border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 30%, transparent); }
.av.lg { width: 88px; height: 88px; border-radius: 24px; font-size: 30px; }
.av.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }
.c-none { --c: var(--muted); }
.c-support { --c: var(--support); } .c-prod { --c: var(--prod); } .c-dev { --c: var(--dev); } .c-me { --c: var(--ink); }

/* chips & pills */
.chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 11px; font-size: 13px; white-space: nowrap; }
button.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.chips::-webkit-scrollbar { display: none; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 5px; font: 500 12px/1 var(--f-body); padding: 4px 8px; border-radius: 999px; white-space: nowrap; color: var(--t); background: color-mix(in srgb, var(--t) 13%, transparent); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--t); }
.t-none { --t: var(--muted); }
.t-warm { --t: var(--warm); } .t-cool { --t: var(--cool); } .t-cold { --t: var(--cold); } .t-new { --t: var(--accent); }
.reason { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; color: var(--r); background: color-mix(in srgb, var(--r) 12%, transparent); }
.r-follow { --r: var(--accent); } .r-bday { --r: var(--support); } .r-promise { --r: var(--warm); } .r-cool { --r: var(--cool); } .r-cold { --r: var(--cold); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 14px; border: 1px solid var(--line); background: var(--surface); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.btn.sm { padding: 7px 10px; font-size: 13px; border-radius: 10px; }
.btns { display: flex; gap: 6px; flex-wrap: wrap; }

/* today task */
.task { display: flex; flex-direction: column; gap: 10px; }
.task.done { opacity: .55; }
.task.done .name { text-decoration: line-through; }
.name { font-weight: 600; }
.sub { font-size: 13px; color: var(--muted); }
.li .sub, .li .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.btn { text-decoration: none; color: inherit; }
.chip.soft { background: var(--surface-2); border-color: transparent; color: var(--muted); }
.chain .node.me { background: var(--ink); color: var(--bg); font-weight: 700; padding: 5px 12px; }
.signals { display: grid; grid-template-columns: 96px 1fr; gap: 10px 8px; align-items: start; font-size: 13px; }
.signals .pill { justify-self: start; }
.wrap .chip { white-space: normal; max-width: 100%; text-align: left; }
.task-actions { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 6px; }
.task-actions .btn { padding-inline: 8px; }
.idea { font-size: 13px; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; display: flex; gap: 8px; }
.idea b { font-weight: 600; color: var(--accent); flex: none; }

/* health bar */
.bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.bar span { display: block; height: 100%; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--surface-2); border-radius: 12px; padding: 10px; }
.stat b { display: block; font: 700 22px/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }

/* list rows */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 0; background: none; width: 100%; text-align: left; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.li .meta { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { border: 0; background: none; outline: none; padding: 11px 0; flex: 1; min-width: 0; }

/* dossier */
.dossier-head { display: flex; gap: 14px; align-items: flex-start; }
.dossier-head h1 { font-size: 22px; }
.fileno { font: 500 11px var(--f-mono); color: var(--muted); letter-spacing: .06em; }
.tabs { display: flex; gap: 4px; background: var(--surface-2); border-radius: 12px; padding: 4px; }
.tabs button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 8px 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.field:first-child { padding-top: 0; }
.field:last-child { border-bottom: 0; padding-bottom: 0; }
.field .k { font: 500 11px var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.field .v { min-width: 0; overflow-wrap: anywhere; }
.likes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.likes ul { margin: 4px 0 0; padding-left: 18px; }
.meter { height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; }

/* timeline */
.timeline { display: flex; flex-direction: column; }
.ev { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ev:last-child { border-bottom: 0; }
.ev .d { font: 500 12px/1.4 var(--f-mono); color: var(--muted); }
.ev .ty { font-size: 12px; font-weight: 600; color: var(--accent); }

/* exchange */
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check.done span { text-decoration: line-through; color: var(--muted); }
.balance { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* chain */
.chain { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.chain .node { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 999px; padding: 3px 10px 3px 3px; border: 0; }
.chain .arrow { color: var(--muted); }

/* note */
textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px; resize: vertical; min-height: 150px; line-height: 1.5; }
input[type=text], input[type=date], select { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 11px 12px; }
label.lbl { font-size: 13px; font-weight: 600; display: block; margin-bottom: 6px; }
.parsed .group { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.parsed .group:last-child { border-bottom: 0; }
.parsed .gk { font: 500 11px var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ai-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 10px; }
.thinking { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.dots span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 3px; animation: blink 1s infinite; }
.dots span:nth-child(2) { animation-delay: .2s; } .dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,100% { opacity: .2 } 50% { opacity: 1 } }

/* map */
.mapwrap { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px; }
.mapwrap svg { width: 100%; height: auto; display: block; }
.mapwrap text { fill: var(--muted); font-family: var(--f-body); }
.mapwrap .ring { fill: none; stroke: var(--line); }
.mapwrap .edge { fill: none; stroke: var(--muted); stroke-opacity: .45; }
.mapwrap .node { cursor: pointer; }
.mapwrap .node text { fill: var(--ink); font-size: 9px; font-weight: 500; }

/* goals / funnel */
.goal { display: flex; flex-direction: column; gap: 8px; }
.goal .what { font-weight: 600; font-size: 15px; }
.avs { display: flex; flex-wrap: wrap; gap: 4px; }
.warnbox { font-size: 13px; border-radius: 10px; padding: 8px 10px; background: color-mix(in srgb, var(--warm) 12%, transparent); color: var(--ink); }
.stages { display: flex; gap: 3px; }
.stages i { flex: 1; height: 5px; border-radius: 3px; background: var(--surface-2); }
.stages i.on { background: var(--accent); }

/* stepper */
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stepper button { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px; text-align: left; font-size: 12px; color: var(--muted); }
.stepper button b { display: block; font: 600 13px var(--f-body); color: var(--ink); }
.stepper button[aria-current="step"] { border-color: var(--accent); background: var(--accent-soft); }
table.places { width: 100%; border-collapse: collapse; font-size: 13px; }
table.places th { text-align: left; font-weight: 500; color: var(--muted); padding: 6px 4px; border-bottom: 1px solid var(--line); }
table.places td { padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.places td.n { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* telegram */
.tg { background: var(--tg); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.bub { max-width: 88%; background: var(--surface); border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 14px; box-shadow: var(--shadow); }
.bub.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-radius: 14px 14px 4px 14px; }
.bub .time { font: 11px var(--f-mono); color: var(--muted); text-align: right; margin-top: 4px; }
.bub.me .time { color: inherit; opacity: .7; }
.bub ol, .bub ul { margin: 6px 0; padding-left: 18px; }
.kbd { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 4px; max-width: 88%; }
.kbd span { background: color-mix(in srgb, var(--surface) 70%, transparent); border-radius: 8px; padding: 7px 6px; text-align: center; font-size: 13px; font-weight: 600; color: var(--accent); }

/* menu */
.menu .li svg { width: 22px; height: 22px; color: var(--accent); flex: none; }

/* nav */
nav.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 440px; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); z-index: 20; }
nav.tabbar button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--muted); padding: 4px 0; }
nav.tabbar button svg { width: 22px; height: 22px; }
nav.tabbar button[aria-current="page"] { color: var(--accent); }
nav.tabbar .plus { width: 50px; height: 50px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin-top: -18px; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 40%, transparent); }
nav.tabbar .plus svg { width: 26px; height: 26px; }

/* sheet & toast */
.scrim { position: fixed; inset: 0; background: rgba(10,15,13,.45); z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 440px; background: var(--bg); border-radius: 22px 22px 0 0; padding: 18px 16px calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; z-index: 40; max-width: calc(100% - 32px); }
.proto-note { font: 12px/1.4 var(--f-mono); color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 10px; }
@media (prefers-reduced-motion: reduce) { .dots span { animation: none; opacity: .7; } }

/* ---------- Приложение: дополнения к прототипу ---------- */
html, body { overscroll-behavior-y: none; }
:root { padding-top: env(safe-area-inset-top, 0px); }
.av { overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-btn { position: relative; border: 0; padding: 0; background: none; flex: none; border-radius: 24px; }
/* Фото крупно: квадрат во всю ширину экрана */
.photo-view { width: 100%; max-width: 440px; aspect-ratio: 1; border-radius: 22px; object-fit: cover; display: block; background: var(--surface-2); }
.avatar-btn .cam { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; border: 2px solid var(--bg); }
.avatar-btn .cam svg { width: 13px; height: 13px; }
.empty { text-align: center; padding: 28px 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.empty p { margin: 0; color: var(--muted); max-width: 30ch; }

/* формы */
.form { display: flex; flex-direction: column; gap: 14px; }
.form fieldset { border: 0; margin: 0; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.form legend { float: left; width: 100%; padding: 0; font: 500 11px var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.form legend + * { clear: both; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f > span { font-size: 13px; font-weight: 600; }
.f small { color: var(--muted); font-size: 12px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f3 { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; }
input[type=text], input[type=date], input[type=tel], input[type=email], input[type=number], input[type=search], select, textarea { width: 100%; min-width: 0; font-size: 16px; }
input[type=date] { min-height: 46px; -webkit-appearance: none; appearance: none; }
textarea.short { min-height: 80px; }
.toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.toggles button.chip { cursor: pointer; }
.switch { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.switch input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.daterow { display: grid; grid-template-columns: 1fr 120px 40px; gap: 6px; align-items: center; }
.x { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--muted); }
.x svg { width: 16px; height: 16px; }
.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.btn.danger.armed { background: var(--danger); color: #fff; border-color: var(--danger); }
.savebar { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 5; display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding-top: 8px; }
.savebar .btn { box-shadow: var(--shadow); }

/* выбор человека */
.picker { display: flex; flex-direction: column; gap: 6px; }
.picker .opts { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.picker .opts button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.picker .opts button:last-child { border-bottom: 0; }
.picker .picked { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 8px; border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 12px; }

/* элементы списков с правкой */
.item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item .grow { cursor: pointer; }
.addrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sheet { max-height: 92vh; overflow-y: auto; }
.sheet-head { display: flex; align-items: center; gap: 8px; }
.sheet-head h3 { flex: 1; }
.scrim { cursor: pointer; }
.sheet { cursor: auto; }
.today-done .li { opacity: .6; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; }

/* Связь с человеком из «Хочу познакомиться»: подпись «кем приходятся» не нужна */
.sheet:has(input[name="other_f"]:not([value=""])) .link-label { display: none; }

/* Карта на весь экран */
.mapfull { position: fixed; inset: 0; z-index: 50; border: 0; border-radius: 0; padding: 0; background: var(--bg); }
.mapfull svg { width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
.mf-close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
.mf-btns { position: absolute; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
