/* PegelPilot – Gestaltung für den Feldeinsatz: Sonnenlicht, Handschuhe, eine Hand frei.
   Leitmotiv: Lichtlot-Maßband (Gelb mit Teilstrichen) für Fortschritt und Schritte,
   Messstellenschild für die GW-Nummer, Schnittbild der Messstelle als zentrales Element. */
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("../fonts/barlow-sc-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("../fonts/barlow-sc-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --page: #E7EDEB; --surface: #FFFFFF; --surface-2: #F1F5F4; --ink: #10262E; --ink-2: #43585E; --ink-3: #8798A0; --line: #C3CFCC;
  --head: #10262E; --head-ink: #EAF2F1; --tape: #F5C400; --tape-deep: #B98F00; --tape-ink: #171507; --tick: rgba(16, 38, 46, .18);
  --water: #1C6C88; --water-soft: #CFE3EB; --ok: #1D7A4B; --warn: #9C5900; --err: #B3261E;
  --font-ui: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: "Barlow SC", "Arial Narrow", system-ui, sans-serif;
  --r-s: 8px; --r-m: 12px; --r-l: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0A171B; --surface: #11252C; --surface-2: #17313A; --ink: #E4EEF0; --ink-2: #A6B8BD; --ink-3: #6E848A; --line: #28454E;
    --head: #061115; --head-ink: #E4EEF0; --tick: rgba(228, 238, 240, .16); --water: #63B7D5; --water-soft: #173F4C;
    --ok: #52C68E; --warn: #E8A646; --err: #F27A70; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #0A171B; --surface: #11252C; --surface-2: #17313A; --ink: #E4EEF0; --ink-2: #A6B8BD; --ink-3: #6E848A; --line: #28454E;
  --head: #061115; --head-ink: #E4EEF0; --tick: rgba(228, 238, 240, .16); --water: #63B7D5; --water-soft: #173F4C;
  --ok: #52C68E; --warn: #E8A646; --err: #F27A70; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 18px/1.45 var(--font-ui); -webkit-tap-highlight-color: transparent; overscroll-behavior-y: contain; }
body.sheet-open { overflow: hidden; }
[hidden] { display: none !important; }
#app { min-height: 100dvh; display: flex; flex-direction: column; }
.view { flex: 1; width: 100%; max-width: 680px; margin: 0 auto; padding: 16px 16px 40px; outline: none; }
body.has-actions .view { padding-bottom: 130px; }
h1 { font-size: 28px; line-height: 1.15; margin: 4px 0 6px; }
h2 { font-size: 20px; margin: 6px 0; }
.h { font-size: 16px; font-weight: 700; color: var(--ink-2); margin: 30px 0 6px; }
p { margin: 0 0 12px; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; }
a { color: var(--water); }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--water); outline-offset: 2px; }

/* Kopfzeile mit Schrittskala */
.top { position: sticky; top: 0; z-index: 30; background: var(--head); color: var(--head-ink); padding-top: env(safe-area-inset-top); }
.topbar { display: flex; align-items: center; gap: 8px; height: 58px; padding: 0 8px; max-width: 680px; margin: 0 auto; }
.iconbtn { width: 48px; height: 48px; border: 0; border-radius: 50%; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; }
.iconbtn:active { background: rgba(255, 255, 255, .14); }
.iconbtn.mic { background: var(--tape); color: var(--tape-ink); }
.iconbtn-spacer { width: 48px; flex: none; }
.ttl { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ttl-main { font-weight: 700; font-size: 19px; }
.ttl-sub { font-size: 14px; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.stepscale { display: flex; list-style: none; margin: 0 auto; padding: 0 12px 10px; gap: 3px; max-width: 680px; }
.stepscale li { flex: 1; height: 26px; border-radius: 3px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font: 600 14px var(--font-num); }
.stepscale li.done { background-color: var(--tape); background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, .55) 0 1px, transparent 1px 7px); background-size: 100% 6px; background-repeat: no-repeat; color: var(--tape-ink); }
.stepscale li.cur { background: var(--head-ink); color: var(--head); }
.stepscale button { all: unset; width: 100%; height: 100%; display: grid; place-items: center; cursor: pointer; }
.runbar button { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 680px; margin: 0 auto; padding: 4px 16px 10px; border: 0; background: transparent; color: var(--tape); font: inherit; cursor: pointer; }
.rb-time { font: 600 22px var(--font-num); font-variant-numeric: tabular-nums; }
.rb-sub { font-size: 15px; color: var(--head-ink); }

/* Alarm */
.alarm { position: fixed; left: 0; right: 0; top: 0; z-index: 60; padding-top: env(safe-area-inset-top); background: var(--tape); color: var(--tape-ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
.alarm.ready { background: var(--ok); color: #fff; }
.alarm.info { background: var(--surface); color: var(--ink); border-bottom: 4px solid var(--tape); }
.alarm button { all: unset; display: flex; gap: 14px; align-items: center; padding: 16px 18px; width: 100%; box-sizing: border-box; cursor: pointer; }
.alarm strong { display: block; font-size: 21px; }
.alarm small { font-size: 16px; }
.alarm .ico { width: 36px; height: 36px; }
@media (prefers-reduced-motion: no-preference) {
  .alarm:not([hidden]) { animation: flash 1.1s ease-in-out 3; }
  @keyframes flash { 50% { filter: brightness(1.18); } }
}

/* Fußleiste */
.actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--page); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; justify-content: center; }
@supports (backdrop-filter: blur(8px)) { .actions { background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(8px); } }
.actions .btn { max-width: 480px; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: var(--r-m); border: 2px solid var(--ink); background: var(--surface); color: var(--ink); font: 700 17px/1.15 var(--font-ui); text-decoration: none; cursor: pointer; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--tape); border-color: var(--tape-deep); color: var(--tape-ink); }
.btn.danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn.ghost { border-color: var(--line); background: transparent; }
.btn.big { min-height: 60px; font-size: 19px; flex: 1; }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 16px; }
.btn.wide { width: 100%; }
.linkbtn { border: 0; background: none; color: var(--ink-2); padding: 6px; cursor: pointer; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; margin: 14px 0; }

/* Eingaben */
.field { margin: 14px 0; }
.field > label, .label { display: block; font-size: 15px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.req { color: var(--err); }
.hint { font-size: 14px; color: var(--ink-2); margin: 6px 0 0; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%; min-height: 52px; padding: 10px 14px; border: 2px solid var(--line); border-radius: var(--r-s);
  background: var(--surface); color: var(--ink); font: 18px var(--font-ui); }
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { border-color: var(--water); outline: none; box-shadow: 0 0 0 3px rgba(28, 108, 136, .22); }
.numwrap { position: relative; display: flex; align-items: stretch; }
input.num { font: 600 28px/1 var(--font-num); letter-spacing: .01em; padding-right: 92px; font-variant-numeric: tabular-nums; }
input.num::placeholder { font: 500 17px var(--font-ui); color: var(--ink-3); }
.unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 500 16px var(--font-num); color: var(--ink-2); pointer-events: none; }
.numwrap.signed input.num { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.pm { flex: none; width: 52px; border: 2px solid var(--line); border-right: 0; border-radius: var(--r-s) 0 0 var(--r-s); background: var(--surface-2); color: var(--ink); font: 700 22px var(--font-num); cursor: pointer; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grid2 input.num { font-size: 24px; padding-right: 66px; }
.grid2 .unit { font-size: 14px; right: 10px; }
@media (max-width: 370px) { .grid2 { grid-template-columns: 1fr; } }

.seg { display: flex; border: 2px solid var(--ink); border-radius: var(--r-m); overflow: hidden; background: var(--surface); }
.seg button { flex: 1; min-height: 50px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink); font: 700 16px var(--font-ui); padding: 6px 8px; cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg button.on { background: var(--ink); color: var(--surface); }
.seg.small button { min-height: 44px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 16px var(--font-ui); cursor: pointer; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--surface); font-weight: 700; }
.check { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 12px 2px; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { width: 30px; height: 30px; border: 2px solid var(--ink-2); border-radius: 7px; display: grid; place-items: center; color: transparent; background: var(--surface); }
.check input:checked + .box { background: var(--ok); border-color: var(--ok); color: #fff; }
.check input:focus-visible + .box { outline: 3px solid var(--water); outline-offset: 2px; }
.check .txt { font-size: 17px; }
.check small { display: block; font-size: 14px; color: var(--ink-2); }

/* Maßband-Fortschritt */
.crit { margin: 6px 0 4px; }
.tape-row { margin: 12px 0; }
.tape-head { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink-2); margin-bottom: 5px; }
.tape-val { font: 600 18px var(--font-num); color: var(--ink); font-variant-numeric: tabular-nums; }
.tape { height: 26px; border-radius: 4px; border: 1px solid var(--line); overflow: hidden; background-color: var(--surface-2); background-image: repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 10%); }
.tape-fill { height: 100%; background-color: var(--tape); background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, .6) 0 1px, transparent 1px 6px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .8) 0 1.5px, transparent 1.5px 30px); background-size: 100% 6px, 100% 12px; background-repeat: no-repeat; transition: width .6s; }
.tape.done { border-color: var(--ok); }
.tape.done .tape-fill { box-shadow: inset 0 -5px 0 var(--ok); }
.param-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip { font: 600 16px var(--font-num); padding: 4px 10px; border-radius: 6px; border: 1.5px solid var(--line); }
.pchip.ok { border-color: var(--ok); color: var(--ok); }
.pchip.bad { border-color: var(--warn); color: var(--warn); }
.ready { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--ok); font-size: 19px; margin: 10px 0 0; }
@media (prefers-reduced-motion: reduce) { .tape-fill { transition: none; } }

/* Uhr */
.clock { text-align: center; padding: 6px 0 2px; }
.clock-main { font: 600 clamp(66px, 22vw, 108px)/1 var(--font-num); font-variant-numeric: tabular-nums; }
.clock-sub { color: var(--ink-2); font-size: 15px; }
.clock-next { font-size: 18px; margin-top: 6px; }
.clock-next strong { font: 600 24px var(--font-num); font-variant-numeric: tabular-nums; }

/* Karten, Hinweise, Listen */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 14px 16px; margin: 14px 0; }
.card.running { border: 2px solid var(--tape-deep); display: flex; flex-direction: column; gap: 10px; }
.card.running > div:first-child { display: flex; flex-direction: column; }
.card.running strong { font-size: 20px; }
.note { background: var(--water-soft); border-radius: var(--r-m); padding: 12px 14px; margin: 12px 0; font-size: 16px; }
.note strong { display: block; margin-bottom: 2px; }
.flowcard .flow-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bigval { font: 600 30px/1.1 var(--font-num); font-variant-numeric: tabular-nums; }
.warn-text { color: var(--warn); font-weight: 700; font-size: 15px; }
.timecard { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kv { margin: 10px 0; }
.kv > div { display: grid; grid-template-columns: minmax(118px, 40%) 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--ink-2); font-size: 15px; }
.kv dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.warns { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.warns li { display: flex; gap: 10px; padding: 10px 12px; border-radius: var(--r-m); background: var(--surface); border-left: 4px solid var(--warn); font-size: 16px; }
.warns li .ico { color: var(--warn); }
.warns li.w-error { border-color: var(--err); } .warns li.w-error .ico { color: var(--err); }
.warns li.w-info { border-color: var(--water); } .warns li.w-info .ico { color: var(--water); }
.inline-ok, .inline-warn, .inline-err, .inline-info { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; margin: 8px 0 0; }
.inline-ok { color: var(--ok); } .inline-warn { color: var(--warn); } .inline-err { color: var(--err); } .inline-info { color: var(--ink-2); }
.inline-ok .ico, .inline-warn .ico, .inline-err .ico, .inline-info .ico { width: 20px; height: 20px; margin-top: 1px; }
.changes { padding-left: 20px; }
.subform { border-left: 3px solid var(--tape); padding-left: 12px; margin: 8px 0 16px; }
details.more { margin: 16px 0; border-top: 1px solid var(--line); padding-top: 4px; }
details.more summary { font-weight: 700; padding: 10px 0; cursor: pointer; }

/* Messstellenschild */
.hero-well { text-align: center; padding: 10px 0 2px; }
.plate { display: inline-flex; flex-direction: column; align-items: center; padding: 6px 16px 5px; border-radius: 5px; border: 1px solid #8D9897; background: linear-gradient(180deg, #F3F5F4, #C7CDCC); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, .3); color: #14181a; }
.plate-nr { font: 600 28px/1 var(--font-num); letter-spacing: .06em; }
.plate-name { font: 500 13px var(--font-num); letter-spacing: .04em; color: #3b4546; margin-top: 2px; }
.well-name { margin-top: 10px; }

/* Messstellenprofil */
.profile-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 8px; margin: 14px 0; }
.profile-wrap:empty { display: none; }
.profile { width: 100%; height: auto; display: block; }
.p-ground { stroke: var(--ink-2); stroke-width: 1.5; }
.p-hatch { stroke: var(--ink-3); stroke-width: 1; }
.p-water { fill: var(--water-soft); }
.p-dd-zone { fill: var(--warn); opacity: .14; }
.p-dd { stroke: var(--warn); stroke-width: 1.5; stroke-dasharray: 5 4; }
.p-wl { stroke: var(--water); stroke-width: 2.5; }
.p-gws { fill: none; stroke: var(--water); stroke-width: 1.5; }
.p-gws-l { stroke: var(--water); stroke-width: 1.5; }
.p-pipe { stroke: var(--ink); stroke-width: 3; }
.p-filter { stroke: var(--ink); stroke-width: 3; stroke-dasharray: 3 3; }
.p-cap { fill: var(--ink); }
.p-cur { stroke: var(--water); stroke-width: 2.5; stroke-dasharray: 3 2; }
.p-cur.over { stroke: var(--err); }
.p-hose { stroke: var(--ink-2); stroke-width: 1.5; }
.p-pump { fill: var(--tape); stroke: var(--ink); stroke-width: 1.5; }
.p-pump.rec { fill: none; stroke: var(--tape-deep); stroke-dasharray: 3 2; stroke-width: 2; }
.p-lead { fill: none; stroke: var(--ink-3); stroke-width: 1; }
.p-lab { font: 600 13px var(--font-num); fill: var(--ink); }
.p-lab-muted { fill: var(--ink-2); } .p-lab-water { fill: var(--water); } .p-lab-warn { fill: var(--warn); } .p-lab-err { fill: var(--err); }
.p-note { font: 14px var(--font-ui); fill: var(--ink-2); }

/* Tabellen */
.tablewrap { overflow-x: auto; margin: 12px 0 6px; }
table.read, table.hist { width: 100%; border-collapse: collapse; font: 500 16px var(--font-num); font-variant-numeric: tabular-nums; }
table caption { text-align: left; font: 700 15px var(--font-ui); color: var(--ink-2); padding-bottom: 6px; }
table th { font: 700 13px var(--font-ui); color: var(--ink-2); text-align: right; padding: 6px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
table td { text-align: right; padding: 7px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table th:first-child, table td:first-child { text-align: left; }

/* Sheets, Spracheingabe, Toast */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(5, 15, 18, .5); opacity: 0; transition: opacity .2s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; background: var(--surface); border-radius: var(--r-l) var(--r-l) 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .22s ease-out; max-width: 680px; margin: 0 auto; }
.sheet-wrap.show .sheet { transform: none; }
.sheet-wrap.show .sheet-backdrop { opacity: 1; }
.sheet-title { font-size: 20px; margin: 0 0 6px; }
.sheet-text { font-size: 18px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 16px; }
.sheet-actions .btn { flex: 1; }
.stopwatch { text-align: center; margin: 10px 0; }
.sw-time { font: 600 56px/1.1 var(--font-num); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-backdrop { transition: none; } }
.micov { position: fixed; inset: 0; z-index: 70; background: rgba(5, 15, 18, .8); display: grid; place-items: center; padding: 24px; }
.mic-panel { background: var(--surface); border-radius: 24px; padding: 28px 20px 20px; width: min(420px, 100%); text-align: center; }
.mic-ring { --lvl: 0; width: 112px; height: 112px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--tape); color: var(--tape-ink); box-shadow: 0 0 0 calc(8px + var(--lvl) * 26px) rgba(245, 196, 0, .32); transition: box-shadow .1s; }
.mic-ring .ico { width: 48px; height: 48px; }
.mic-prompt { color: var(--ink-2); font-size: 16px; }
.mic-text { font: 700 21px/1.3 var(--font-ui); min-height: 2.6em; }
.mic-panel .row { justify-content: center; }
.mic-panel .btn { flex: 1; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 80; background: var(--ink); color: var(--surface); padding: 12px 16px; border-radius: 12px; max-width: min(92vw, 560px); font-size: 16px; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--err); color: #fff; }
.toast.warn { background: var(--warn); color: #fff; }

/* Fotos, Unterschrift */
.photo-cat { margin: 12px 0; }
.photo-row { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { position: relative; width: 96px; height: 96px; margin: 0; border-radius: var(--r-m); overflow: hidden; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-del { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.thumb-del .ico { width: 18px; height: 18px; }
.photo-add { width: 96px; height: 96px; border-radius: var(--r-m); border: 2px dashed var(--ink-3); background: transparent; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 700 15px var(--font-ui); cursor: pointer; }
.sig-wrap { position: relative; border: 2px dashed var(--ink-3); border-radius: var(--r-m); background: #fff; }
.sig-wrap canvas { display: block; width: 100%; height: 170px; touch-action: none; }
.sig-clear { position: absolute; right: 8px; top: 8px; color: #10262E; }

/* Start, Auswahl, Listen */
.hello h1 { font-size: 30px; }
.start { margin: 18px 0; min-height: 68px; font-size: 21px; }
.menu { display: grid; gap: 8px; margin: 10px 0 20px; }
.menu a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); color: var(--ink); text-decoration: none; font-weight: 700; }
.menu a span { flex: 1; }
.menu small { color: var(--ink-2); font: 600 17px var(--font-num); }
.gps-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 12px 14px; }
.gps-card > div { flex: 1; }
.gps-state strong { font: 600 22px var(--font-num); }
.preview { text-align: center; }
.preview .kv { text-align: left; }
.list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.list > li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 14px; }
.list a, .li-main { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.li-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.list-item { display: flex; flex-direction: column; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); color: var(--ink); text-decoration: none; margin-bottom: 8px; }
.list-item .dist { font: 600 17px var(--font-num); color: var(--water); }
.login { max-width: 420px; margin: 7vh auto 0; }
.brand { text-align: center; margin-bottom: 18px; }
.brand svg { width: 76px; height: 76px; }
.brand h1 { font: 600 42px/1 var(--font-num); letter-spacing: .02em; margin-top: 10px; }
.result { text-align: center; padding-top: 5vh; }
.big-ico { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; }
.big-ico .ico { width: 44px; height: 44px; }
.result .files { display: grid; gap: 10px; margin: 22px 0; }
.spinner { width: 54px; height: 54px; border: 5px solid var(--line); border-top-color: var(--tape-deep); border-radius: 50%; margin: 24px auto; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
