:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f1f4f8; --fg: #0f172a; --muted: #64748b; --line: #e2e8f0;
  --accent: #0284c7; --accent-ink: #ffffff; --accent-soft: #e0f2fe;
  --go: #16a34a; --go-soft: #dcfce7; --go-ink: #166534;
  --warn: #d97706; --warn-soft: #fef3c7;
  --no: #dc2626; --no-soft: #fee2e2;
  --night: #e2e8f0;
  --launch: #ea580c; --landing: #16a34a; --site: #0284c7; --custom: #7c3aed;
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 10px 30px -10px rgba(15, 23, 42, .25), 0 2px 6px rgba(15, 23, 42, .06);
  --glass: rgba(255, 255, 255, .86);
  --sheet-w: 440px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120; --surface: #111827; --surface-2: #1e293b; --fg: #e5e7eb; --muted: #94a3b8; --line: #263244;
    --accent: #38bdf8; --accent-ink: #082f49; --accent-soft: #0c2a3f;
    --go: #22c55e; --go-soft: #0f2e1c; --go-ink: #86efac;
    --warn: #f59e0b; --warn-soft: #3a2a07; --no: #f87171; --no-soft: #3b1215; --night: #1e293b;
    --glass: rgba(17, 24, 39, .86);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#map { position: fixed; inset: 0; z-index: 0; }

/* ---------- Top bar ---------- */
.topbar { position: fixed; z-index: 1000; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px;
  padding: 6px; background: var(--glass); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); max-width: 860px; }
.brand { display: flex; align-items: center; gap: 6px; padding: 0 8px 0 6px; font-weight: 600; white-space: nowrap; letter-spacing: -.01em; }
.brand svg { width: 26px; height: 26px; color: var(--accent); stroke-width: 0; }
.brand b { font-weight: 600; color: var(--muted); }
.search { position: relative; flex: 1; min-width: 0; }
.search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search input { width: 100%; height: 40px; padding: 0 12px 0 38px; border: 1px solid transparent; border-radius: 12px; background: var(--surface-2);
  color: var(--fg); font: 15px var(--font); outline: none; transition: border-color .15s, background .15s; }
.search input:focus { border-color: var(--accent); background: var(--surface); }
.results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); max-height: 55vh; overflow: auto; }
.results li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.results li:hover, .results li.sel { background: var(--surface-2); }
.results .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.results small { color: var(--muted); white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; font-weight: 500; white-space: nowrap; transition: background .15s, transform .05s; }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn-filter { position: relative; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); }
.dot-badge { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--surface); }
.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 12px; }
.seg button { border: 0; background: transparent; padding: 0 10px; height: 34px; border-radius: 9px; cursor: pointer; color: var(--muted); font-weight: 500; font-size: 13px; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface-2); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Map bits ---------- */
.leaflet-container { font: 13px var(--font); background: var(--bg); }
.leaflet-top.leaflet-left { top: 72px; }
.leaflet-top.leaflet-right { top: 72px; }
.leaflet-bar, .leaflet-control-layers { border: 1px solid var(--line) !important; border-radius: 12px !important; box-shadow: var(--shadow) !important; overflow: hidden; }
.leaflet-bar a { background: var(--surface); color: var(--fg); border-color: var(--line); width: 36px; height: 36px; line-height: 36px; }
.leaflet-control-layers { background: var(--surface); color: var(--fg); }
.leaflet-control-attribution { background: var(--glass) !important; border-radius: 8px 0 0 0; color: var(--muted); }
.pin { width: 26px; height: 32px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.pin svg { width: 26px; height: 32px; stroke: none; }
.pin .body { fill: var(--c); } .pin .ring { fill: #fff; }
.pin.launch { --c: var(--launch); } .pin.landing { --c: var(--landing); } .pin.site { --c: var(--site); } .pin.custom { --c: var(--custom); }
.pin.sel svg { transform: scale(1.25); transform-origin: 50% 100%; }
.cluster { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 28%, transparent), 0 4px 10px rgba(0,0,0,.25); }
.cluster.lg { width: 48px; height: 48px; font-size: 14px; }
.legend { display: flex; gap: 12px; padding: 7px 12px; background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); color: var(--fg); font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.toast { position: fixed; z-index: 900; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 16px;
  border-radius: 999px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center; pointer-events: none;
  transition: opacity .3s; }
.toast.hide { opacity: 0; }

/* ---------- Sheet ---------- */
.sheet { position: fixed; z-index: 1001; top: 76px; right: 12px; bottom: 12px; width: var(--sheet-w); max-width: calc(100% - 24px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
  animation: sheet-in .22s ease-out; }
@keyframes sheet-in { from { opacity: 0; transform: translateX(16px); } }
.sheet .close { position: absolute; top: 14px; right: 14px; z-index: 5; }
.grab { display: none; }
.sheet-body { overflow-y: auto; padding: 18px 18px 28px; overscroll-behavior: contain; }
.site-head { padding-right: 44px; }
.kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--site)); }
.site-head h2 { margin: 4px 0 6px; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; }
.fact { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); font-size: 12px; color: var(--muted); font-weight: 500; }
.fact b { color: var(--fg); font-weight: 600; }
.fact a { color: var(--accent); text-decoration: none; }

.verdict { margin: 16px 0 12px; padding: 16px; border-radius: var(--radius); background: var(--go-soft); color: var(--go-ink); position: relative; }
.verdict.none { background: var(--surface-2); color: var(--fg); }
.verdict.loading { background: var(--surface-2); color: var(--muted); }
.verdict .lbl { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.verdict .big { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0; line-height: 1.25; }
.verdict .sub { font-size: 13px; opacity: .85; }
.verdict .more { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.verdict .more li { padding: 4px 9px; border-radius: 999px; background: color-mix(in srgb, var(--go) 16%, transparent); font-size: 12px; font-weight: 600; cursor: pointer; }
.reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.reasons span { padding: 4px 9px; border-radius: 999px; background: var(--no-soft); color: var(--no); font-size: 12px; font-weight: 600; }
.verdict .act { margin-top: 12px; height: 34px; font-size: 13px; }

.chiprow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 16px; }
.cchip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 500; cursor: pointer; color: var(--fg); }
.cchip:hover { border-color: var(--accent); }
.cchip.edit { color: var(--accent); border-color: transparent; background: var(--accent-soft); }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.day { flex: 0 0 auto; width: 96px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; text-align: left;
  scroll-snap-align: start; transition: border-color .15s, box-shadow .15s; }
.day:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.day.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.day .dw { font-weight: 600; font-size: 13px; }
.day .dd { font-size: 11px; color: var(--muted); }
.day .bar { display: flex; gap: 1px; height: 8px; margin: 8px 0 6px; border-radius: 4px; overflow: hidden; }
.day .bar i { flex: 1; background: var(--night); }
.day .bar i.ok { background: var(--go); } .day .bar i.no { background: color-mix(in srgb, var(--no) 45%, var(--night)); }
.day .dn { font-size: 12px; font-weight: 600; }
.day .dn.go { color: var(--go); } .day .dn.nogo { color: var(--muted); font-weight: 500; }
.day .dx { font-size: 11px; color: var(--muted); margin-top: 2px; }

.hours-head { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 6px; }
.hours-head h3 { margin: 0; font-size: 15px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 32px; height: 18px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(14px); }
.hours { display: flex; flex-direction: column; gap: 4px; }
.hr { display: grid; grid-template-columns: 48px 70px 1fr 46px 50px; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2);
  border-left: 4px solid transparent; font-variant-numeric: tabular-nums; }
.hr.ok { background: var(--go-soft); border-left-color: var(--go); }
.hr.off { opacity: .55; }
.hr .t { font-weight: 600; }
.hr .w { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.hr .arr { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); flex: none; }
.hr .arr svg { width: 14px; height: 14px; stroke-width: 2.5; }
.hr .spd { display: flex; align-items: baseline; gap: 4px; }
.hr .spd b { font-size: 15px; }
.hr .spd small { color: var(--muted); font-size: 11px; }
.hr .tmp, .hr .rain { text-align: right; }
.hr .rain small { display: block; font-size: 10px; color: var(--muted); line-height: 1; }
.hr .sky { grid-column: 2 / -1; font-size: 11px; color: var(--muted); margin-top: -2px; }
.hr .bad { color: var(--no); }
.hr .bad small { color: var(--no); }
.legend-line { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 0; font-size: 11px; color: var(--muted); }
.legend-line span { display: inline-flex; align-items: center; gap: 5px; }
.legend-line i { width: 10px; height: 10px; border-radius: 3px; }
.src { font-size: 11px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.src a { color: var(--accent); }
.err { color: var(--no); }
.skeleton { height: 64px; border-radius: 12px; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear; margin-bottom: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Filters modal ---------- */
.modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); backdrop-filter: blur(2px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; width: min(520px, calc(100% - 24px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); min-height: 0; display: flex; flex-direction: column; background: var(--surface);
  border-radius: 22px; box-shadow: var(--shadow); animation: pop .22s cubic-bezier(.2,.9,.3,1.2); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.modal-head h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.modal-body { overflow-y: auto; padding: 6px 20px 12px; }
.modal-foot { display: flex; justify-content: space-between; gap: 8px; padding: 12px 20px 18px; border-top: 1px solid var(--line); }
.modal-foot .btn-primary { min-width: 160px; }
.fsec { padding: 14px 0; border-bottom: 1px solid var(--line); }
.fsec:last-child { border-bottom: 0; }
.fsec h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; }
.fsec h4 output { font-weight: 700; color: var(--accent); font-size: 14px; font-variant-numeric: tabular-nums; }
.fsec .hint2 { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.presets { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.preset { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: left; }
.preset b { display: block; font-size: 13px; }
.preset small { color: var(--muted); font-size: 11px; }
.preset.on { border-color: var(--accent); background: var(--accent-soft); }

/* Range sliders (single and dual) */
.range { position: relative; height: 28px; }
.range .track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px; background: var(--line); }
.range .fill { position: absolute; top: 12px; height: 4px; border-radius: 4px; background: var(--accent); }
.range input { position: absolute; left: 0; width: 100%; top: 0; height: 28px; margin: 0; background: none; pointer-events: none; appearance: none; -webkit-appearance: none; }
.range input::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--accent);
  box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: grab; }
.range input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: grab; }
.range input::-moz-range-track { background: none; }
.range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--accent-soft); }
.scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 2px; }

/* Compass */
.dirwrap { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center; }
.compass-rose { width: 180px; height: 180px; }
.compass-rose path.wedge { fill: var(--surface-2); stroke: var(--surface); stroke-width: 2; cursor: pointer; transition: fill .12s; }
.compass-rose path.wedge:hover { fill: color-mix(in srgb, var(--go) 25%, var(--surface-2)); }
.compass-rose path.wedge.on { fill: var(--go); }
.compass-rose path.wedge.ro { cursor: default; }
.compass-rose text { font: 600 11px var(--font); fill: var(--muted); stroke: none; pointer-events: none; text-anchor: middle; dominant-baseline: central; }
.compass-rose text.on { fill: #fff; }
.compass-rose circle.hub { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.seg-v { display: flex; flex-direction: column; gap: 6px; }
.seg-v label { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.seg-v label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.seg-v input { margin: 2px 0 0; accent-color: var(--accent); }
.seg-v b { display: block; font-size: 13px; font-weight: 600; }
.seg-v small { color: var(--muted); font-size: 11px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stepper button { width: 36px; height: 34px; border: 0; background: var(--surface-2); cursor: pointer; font-size: 18px; }
.stepper span { min-width: 54px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .topbar { top: 8px; left: 8px; right: 8px; flex-wrap: wrap; border-radius: 16px; }
  .brand span { display: none; }
  .brand { padding: 0 2px 0 4px; }
  .search { order: 0; }
  .btn-filter .lbl { display: none; }
  .btn-filter { width: 40px; padding: 0; }
  .seg { display: none; }
  .leaflet-top.leaflet-left, .leaflet-top.leaflet-right { top: 64px; }
  .sheet { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; height: 55vh; border-radius: 22px 22px 0 0; border-bottom: 0;
    animation: sheet-up .25s ease-out; padding-bottom: env(safe-area-inset-bottom); }
  .site-head { touch-action: none; cursor: grab; }
  @keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
  .grab { display: block; border: 0; background: none; padding: 10px 0 8px; width: 100%; cursor: grab; touch-action: none; }
  .grab span { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto; }
  .sheet .close { top: 14px; }
  .sheet-body { padding-top: 6px; }
  .modal { place-items: end center; }
  .modal-card { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 22px 22px 0 0; animation: sheet-up .25s ease-out; }
  .dirwrap { grid-template-columns: 1fr; justify-items: center; }
  .seg-v { width: 100%; }
  .toast { bottom: 16px; }
  .legend { display: none; }
  .hr { grid-template-columns: 44px 64px 1fr 42px 46px; padding: 8px; }
}
.sheet-units { display: none; }
@media (max-width: 640px) { .sheet-units { display: inline-flex; margin-top: 10px; } }

/* ---------- Accounts ---------- */
.topbar { max-width: 920px; }
.btn-acct { width: 40px; padding: 0; border-radius: 50%; flex: none; }
.btn-acct .avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.menu { position: absolute; top: calc(100% + 8px); right: 6px; z-index: 1500; width: 260px; padding: 6px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); animation: pop .15s ease-out; }
.menu .who { padding: 10px 12px 8px; }
.menu .who b { display: block; }
.menu .who small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; display: block; }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none;
  text-align: left; cursor: pointer; color: var(--fg); text-decoration: none; font-size: 14px; }
.menu button:hover, .menu a:hover { background: var(--surface-2); }
.menu svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.star { position: absolute; top: 14px; right: 58px; z-index: 5; }
.star svg { width: 18px; height: 18px; }
.star.on { color: #f59e0b; } .star.on svg { fill: #f59e0b; }
.site-head .desc { margin: 10px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.site-head .desc b { color: var(--fg); font-weight: 600; }
.rec { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); }
.rec > div { flex: 1; min-width: 0; }
.rec b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.rec span { display: block; font-weight: 600; margin-top: 2px; }
.rec small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.rec .btn { height: 34px; font-size: 13px; flex: none; }
.seg.scope { width: 100%; }
.seg.scope button { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.modal-card.wide { width: min(620px, calc(100% - 24px)); }
.seg.tabs { display: flex; margin-bottom: 14px; }
.seg.tabs button { flex: 1; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; }
.form label small { font-weight: 400; color: var(--muted); font-size: 12px; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea {
  font: 15px var(--font); color: var(--fg); background: var(--surface-2); border: 1px solid transparent; border-radius: 12px; padding: 10px 12px; outline: none; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); background: var(--surface); }
.form input:disabled { opacity: .7; }
.form textarea { resize: vertical; min-height: 64px; }
.form .check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.form .check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.form .check a { color: var(--accent); }
.form fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 12px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.form legend { font-size: 13px; font-weight: 600; padding: 0 6px; }
.form legend small { font-weight: 400; color: var(--muted); }
.form fieldset .btn { align-self: flex-start; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form .checks { display: flex; gap: 18px; }
.form details summary { cursor: pointer; font-weight: 600; font-size: 13px; padding: 4px 0; }
.form details[open] { display: flex; flex-direction: column; gap: 10px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.form-err { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--no-soft); color: var(--no); font-size: 13px; font-weight: 500; }
.form.inline { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.form.inline input { flex: 1; min-width: 160px; }
.form.inline .form-err { flex-basis: 100%; }
.lead { color: var(--muted); margin: 0 0 4px; line-height: 1.55; }
.note { padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--fg); font-size: 13px; margin: 0 0 12px; }
.linkbtn { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; font-size: 13px; font-weight: 500; }
.btn-danger { background: var(--no); border-color: var(--no); color: #fff; }
.danger { margin-top: 22px; padding: 14px; border: 1px solid color-mix(in srgb, var(--no) 40%, var(--line)); border-radius: 14px; }
.danger p { margin: 4px 0 10px; color: var(--muted); font-size: 13px; }
.sub-rose { grid-template-columns: 150px 1fr; }
.sub-rose .compass-rose { width: 150px; height: 150px; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.list li[data-site] { cursor: pointer; }
.list li[data-site]:hover { background: var(--accent-soft); }
.list .grow { flex: 1; min-width: 0; }
.list b { display: block; }
.list small { display: block; color: var(--muted); font-size: 12px; }
.list small.rn { color: var(--fg); margin-top: 4px; }
.list .chev { color: var(--muted); font-size: 20px; }
.dotk { width: 10px; height: 10px; border-radius: 50%; background: var(--site); flex: none; }
.dotk.launch { background: var(--launch); } .dotk.landing { background: var(--landing); }
.status { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.status.pending { background: var(--warn-soft); color: var(--warn); }
.status.approved { background: var(--go-soft); color: var(--go); }
.status.rejected { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.done { text-align: center; padding: 10px 0; }
.done .big-check { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: var(--go-soft); color: var(--go); display: grid; place-items: center; font-size: 28px; font-weight: 700; }
.done h3 { margin: 0 0 6px; }
body.picking #map { cursor: crosshair; }
body.picking .leaflet-container { cursor: crosshair; }
@media (max-width: 640px) {
  .menu { right: 0; left: 0; width: auto; }
  .form .row2 { grid-template-columns: 1fr; }
  .sub-rose { grid-template-columns: 1fr; }
  .star { right: 56px; }
}

.site-head .rec, .site-head .desc { margin-right: -44px; }
