/* Wohnradar – Kartenpapier, Seeblau, und klare Ja/Nein-Farben */
:root {
  --paper: #eef1ec;
  --paper-2: #e3e8e2;
  --surface: #ffffff;
  --surface-2: #f6f8f5;
  --ink: #1d2b2a;
  --ink-2: #44524f;
  --muted: #6b7a76;
  --line: #d3dbd5;
  --line-2: #e4e9e4;
  --lake: #2f6f8f;
  --lake-ink: #ffffff;
  --lake-soft: #dde9ef;
  --yes: #3b7a57;
  --yes-soft: #dcecdf;
  --no: #b0122a;
  --no-soft: #f5dde0;
  --maybe: #a2800c;
  --maybe-soft: #f3ebcd;
  --shadow: 0 1px 0 rgba(29, 43, 42, .06), 0 6px 18px -10px rgba(29, 43, 42, .25);
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141a19; --paper-2: #1a2120; --surface: #1d2523; --surface-2: #222b29;
    --ink: #e5ebe7; --ink-2: #bcc7c2; --muted: #8b9893; --line: #2f3a37; --line-2: #283230;
    --lake: #5ea3c4; --lake-ink: #0d1a20; --lake-soft: #1f3540;
    --yes: #6cb98a; --yes-soft: #1f3529; --no: #ef6b7d; --no-soft: #3b1f24; --maybe: #d9b44a; --maybe-soft: #3a321a;
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 8px 22px -12px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #141a19; --paper-2: #1a2120; --surface: #1d2523; --surface-2: #222b29;
  --ink: #e5ebe7; --ink-2: #bcc7c2; --muted: #8b9893; --line: #2f3a37; --line-2: #283230;
  --lake: #5ea3c4; --lake-ink: #0d1a20; --lake-soft: #1f3540;
  --yes: #6cb98a; --yes-soft: #1f3529; --no: #ef6b7d; --no-soft: #3b1f24; --maybe: #d9b44a; --maybe-soft: #3a321a;
  --shadow: 0 1px 0 rgba(0,0,0,.3), 0 8px 22px -12px rgba(0,0,0,.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.5 var(--font);
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--lake); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--lake); outline-offset: 2px; border-radius: 4px; }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--line); background: var(--paper);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--r-m);
  color: var(--ink-2); text-decoration: none; font-weight: 500;
}
.nav a svg { width: 19px; height: 19px; flex: none; opacity: .8; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-weight: 650; }
.nav .count { margin-left: auto; font-size: 12.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); }
.nav a[aria-current="page"] .count { background: var(--lake); color: var(--lake-ink); }
.nav .count.hot { background: var(--lake); color: var(--lake-ink); }
.rail-foot { margin-top: auto; padding: 10px 8px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.rail-foot .who { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.status-line { display: flex; gap: 6px; align-items: baseline; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--yes); flex: none; transform: translateY(-1px); }
.pulse.off { background: var(--muted); }
.pulse.err { background: var(--no); }

.main { min-width: 0; padding: 22px 28px 80px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 28px; line-height: 1.15; margin: 0; letter-spacing: -.02em; font-weight: 800; }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 64ch; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.tabbar { display: none; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .main { padding: 16px 16px 96px; }
  .page-head h1 { font-size: 24px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); text-decoration: none; padding: 4px 0; position: relative; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--lake); font-weight: 650; }
  .tabbar .dot { position: absolute; top: 0; left: calc(50% + 7px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--lake); color: var(--lake-ink); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
}

/* ---------- Buttons & Inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 14px;
  border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--lake); border-color: var(--lake); color: var(--lake-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--paper-2); }
.btn.danger { color: var(--no); }
.btn.small { min-height: 30px; padding: 0 10px; font-size: 13.5px; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: default; }
.icon-btn { width: 36px; height: 36px; padding: 0; border-radius: 9px; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span, .field > label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field small, .hint { color: var(--muted); font-size: 13px; line-height: 1.45; }
.input, select.input, textarea.input {
  width: 100%; min-height: 40px; padding: 8px 11px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface); outline: none;
}
.input:focus { border-color: var(--lake); box-shadow: 0 0 0 3px var(--lake-soft); }
textarea.input { resize: vertical; min-height: 80px; }
.range-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.range-pair i { color: var(--muted); font-style: normal; }
.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; padding: 3px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--lake); margin: 2px 0 0; flex: none; }
.check b { font-weight: 600; }
.switch { position: relative; width: 40px; height: 23px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--lake); }
.switch input:checked + span::after { transform: translateX(17px); }
.switch input:focus-visible + span { outline: 2px solid var(--lake); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .sw { width: 9px; height: 9px; border-radius: 50%; }
.chip.x { padding-right: 6px; }
.chip.x button { border: 0; background: none; cursor: pointer; padding: 0 4px; color: inherit; opacity: .6; font-size: 16px; line-height: 1; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; cursor: pointer; font-weight: 600; color: var(--muted); font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--paper-2); color: var(--ink); }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .grow { flex: 1; min-width: 180px; max-width: 320px; }
.toolbar .sep { width: 1px; height: 24px; background: var(--line); }

/* ---------- Listing card ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; position: relative;
}
.card.is-new::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--lake); z-index: 2; }
.card .photo { position: relative; aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; cursor: pointer; }
.card .photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.photo .badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12.5px; font-weight: 650; background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.badge.new { background: var(--lake); color: var(--lake-ink); }
.badge.drop { background: var(--maybe); color: #fff; }
.badge.off { background: var(--ink); color: var(--paper); }
.photo .count { position: absolute; right: 10px; bottom: 10px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0,0,0,.5); padding: 2px 8px; border-radius: 99px; }
.photo .nav-l, .photo .nav-r { position: absolute; top: 0; bottom: 0; width: 34%; cursor: pointer; }
.photo .nav-l { left: 0; } .photo .nav-r { right: 0; }

.card .body { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; cursor: pointer; }
.price { font-size: 25px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.price small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price .was { font-size: 14px; color: var(--muted); text-decoration: line-through; font-weight: 500; margin-left: 6px; }
.facts { display: flex; gap: 14px; font-weight: 650; color: var(--ink); font-size: 15px; }
.facts span + span { position: relative; }
.addr { color: var(--ink-2); font-size: 14px; line-height: 1.35; }
.title { color: var(--muted); font-size: 13.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Fahrplan-Leiste für Pendelzeiten */
.commute { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.cm { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
.cm b { font-weight: 750; color: var(--ink); }
.cm .mode { font-size: 10.5px; font-weight: 800; padding: 1px 4px; border-radius: 3px; background: var(--ink); color: var(--paper); letter-spacing: .02em; }
.cm.over { border-color: var(--no); }
.cm.over b { color: var(--no); }

.meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: auto; padding-top: 6px; }
.voters { display: flex; gap: 4px; }
.voter { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px 0 3px; border-radius: 99px; background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.avatar { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 800; flex: none; }
.avatar.l { width: 26px; height: 26px; font-size: 12px; }
.voter.yes { background: var(--yes-soft); color: var(--yes); }
.voter.no { background: var(--no-soft); color: var(--no); }
.voter.maybe { background: var(--maybe-soft); color: var(--maybe); }

/* Abstimmleiste */
.vote { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid var(--line-2); }
.vote button {
  border: 0; background: transparent; height: 48px; cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.vote button + button { border-left: 1px solid var(--line-2); }
.vote button svg { width: 19px; height: 19px; }
.vote .y[aria-pressed="true"] { background: var(--yes-soft); color: var(--yes); }
.vote .m[aria-pressed="true"] { background: var(--maybe-soft); color: var(--maybe); }
.vote .n[aria-pressed="true"] { background: var(--no-soft); color: var(--no); }
@media (hover: hover) {
  .vote .y:hover { background: var(--yes-soft); color: var(--yes); }
  .vote .m:hover { background: var(--maybe-soft); color: var(--maybe); }
  .vote .n:hover { background: var(--no-soft); color: var(--no); }
}
.vote button:active, .btn:active, .chip:active { transform: scale(.98); }
.card.leaving { animation: leave .28s ease-in forwards; }
.card.leaving.right { animation-name: leave-r; }
@keyframes leave { to { opacity: 0; transform: translateX(-40px) scale(.97); } }
@keyframes leave-r { to { opacity: 0; transform: translateX(40px) scale(.97); } }

/* ---------- Fokus-Modus ---------- */
.focus { max-width: 720px; margin: 0 auto; }
.focus .card .photo { aspect-ratio: 3 / 2; }
.focus .card .price { font-size: 32px; }
.focus .vote button { height: 62px; font-size: 16px; }
.focus .kbd-hint { text-align: center; color: var(--muted); font-size: 13px; margin-top: 12px; }
kbd { font: 600 12px var(--font); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--surface); }
.focus .progress { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.swipe-hint { position: absolute; top: 20px; z-index: 3; font-weight: 800; font-size: 22px; padding: 6px 14px; border-radius: 10px; border: 3px solid; opacity: 0; transform: rotate(-8deg); }
.swipe-hint.y { left: 20px; color: var(--yes); border-color: var(--yes); background: var(--surface); }
.swipe-hint.n { right: 20px; color: var(--no); border-color: var(--no); background: var(--surface); transform: rotate(8deg); }

/* ---------- Leerzustände ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); max-width: 460px; margin: 0 auto; }
.empty h2 { color: var(--ink); font-size: 20px; margin: 14px 0 6px; }
.empty svg { width: 120px; height: 120px; color: var(--line); }
.empty .btn { margin-top: 14px; }

/* ---------- Panels ---------- */
.panel { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.01em; }
.panel h3 { margin: 0 0 4px; font-size: 15.5px; }
.panel > p.lead { margin: 0 0 16px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.divider { height: 1px; background: var(--line-2); margin: 18px 0; }
.two-col { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.two-col .side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 2px; }
.two-col .side a { padding: 8px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.two-col .side a[aria-current="true"] { background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: var(--shadow); }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } .two-col .side { position: static; flex-direction: row; overflow-x: auto; } .two-col .side a { white-space: nowrap; } }

/* ---------- Profile list ---------- */
.profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.pcard { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--pc, var(--lake)); }
.pcard.inactive { opacity: .65; }
.pcard h3 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.pcard .crit { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--ink-2); }
.pcard .crit b { color: var(--ink); }
.pcard .runinfo { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.pcard .runinfo .err { color: var(--no); }
.src-tally { display: flex; gap: 6px; flex-wrap: wrap; }
.src-tally span { font-size: 12px; padding: 1px 7px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line-2); }
.src-tally span.bad { color: var(--no); border-color: var(--no-soft); }

/* ---------- Editor ---------- */
.editor section { scroll-margin-top: 16px; }
.loc-row { display: grid; grid-template-columns: 1fr 180px auto; gap: 10px; align-items: end; padding: 10px; background: var(--surface-2); border-radius: 10px; border: 1px solid var(--line-2); }
.loc-row + .loc-row { margin-top: 8px; }
.loc-row .km { display: flex; align-items: center; gap: 8px; }
.loc-row input[type=range] { flex: 1; accent-color: var(--lake); }
.loc-row .km b { min-width: 52px; text-align: right; }
@media (max-width: 640px) { .loc-row { grid-template-columns: 1fr; } }
.ac { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); z-index: 30; overflow: hidden; }
.ac-list button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; cursor: pointer; }
.ac-list button:hover, .ac-list button.on { background: var(--lake-soft); }
.ac-list small { color: var(--muted); margin-left: 6px; }
.mapbox { height: 300px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.url-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.url-row + .url-row { margin-top: 6px; }
.gen-url { font-size: 13px; word-break: break-all; color: var(--muted); }
.sticky-save { position: sticky; bottom: 0; z-index: 20; display: flex; gap: 10px; justify-content: flex-end; padding: 12px 0; background: linear-gradient(to top, var(--paper) 70%, transparent); }
@media (max-width: 860px) { .sticky-save { bottom: 64px; } }

/* ---------- Merkliste (Pipeline) ---------- */
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.lane { background: var(--paper-2); border-radius: var(--r-l); padding: 10px; min-height: 140px; display: flex; flex-direction: column; gap: 10px; }
.lane h3 { margin: 4px 6px 2px; font-size: 14.5px; display: flex; justify-content: space-between; }
.lane h3 span { color: var(--muted); font-weight: 600; }
.lane.drop { outline: 2px dashed var(--lake); outline-offset: -4px; }
.mini { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; cursor: pointer; }
.mini[draggable="true"] { cursor: grab; }
.mini img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.mini .b { padding: 9px 11px 11px; display: flex; flex-direction: column; gap: 3px; }
.mini .p { font-weight: 800; font-size: 17px; }
.mini .s { font-size: 13px; color: var(--ink-2); }
.mini .when { font-size: 12.5px; font-weight: 650; color: var(--lake); }
@media (max-width: 860px) { .pipeline { grid-template-columns: 1fr; } }
.list-rows { display: flex; flex-direction: column; gap: 8px; }
.lrow { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; cursor: pointer; }
.lrow img, .lrow .ph { width: 96px; height: 68px; object-fit: cover; border-radius: 8px; background: var(--paper-2); }
.lrow .t { font-weight: 700; }
.lrow .s { color: var(--ink-2); font-size: 13.5px; }
.lrow .r { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .lrow { grid-template-columns: 72px 1fr; } .lrow img, .lrow .ph { width: 72px; height: 56px; } .lrow .r { grid-column: 1 / -1; justify-content: flex-start; } }
.section-title { font-size: 16px; margin: 26px 0 10px; display: flex; gap: 8px; align-items: baseline; }
.section-title span { color: var(--muted); font-weight: 500; font-size: 14px; }

/* ---------- Abgelehnt ---------- */
.rej { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.rej:last-child { border-bottom: 0; }
.rej img, .rej .ph { width: 72px; height: 54px; border-radius: 8px; object-fit: cover; background: var(--paper-2); filter: grayscale(.7); }
.rej .t { font-weight: 650; }
.rej .reason { color: var(--no); font-size: 13.5px; }
.rej .s { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .rej { grid-template-columns: 56px 1fr; } .rej > .row { grid-column: 1 / -1; } }

/* ---------- Detail ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15, 22, 21, .45); z-index: 60; display: flex; justify-content: flex-end; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.drawer { width: min(860px, 100%); height: 100%; background: var(--paper); overflow-y: auto; animation: slide .2s ease-out; position: relative; }
@keyframes slide { from { transform: translateX(30px); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .drawer, .overlay, .card.leaving { animation: none !important; } }
.drawer-head { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; align-items: center; padding: 10px 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
.drawer-head .grow { flex: 1; min-width: 0; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery { position: relative; background: #0f1615; aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: contain; }
.gallery .g-prev, .gallery .g-next { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; display: grid; place-items: center; }
.gallery .g-prev { left: 12px; } .gallery .g-next { right: 12px; }
.gallery .g-prev svg, .gallery .g-next svg { width: 20px; height: 20px; color: #1d2b2a; }
.thumbs { display: flex; gap: 6px; padding: 8px 14px; overflow-x: auto; background: var(--paper-2); }
.thumbs img { width: 76px; height: 52px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .6; flex: none; }
.thumbs img.on { opacity: 1; outline: 2px solid var(--lake); }
.detail { padding: 20px 22px 40px; display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; padding: 16px; } }
.detail h2 { margin: 6px 0 4px; font-size: 21px; line-height: 1.25; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14.5px; margin: 14px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.desc { white-space: pre-line; color: var(--ink-2); line-height: 1.6; max-width: 70ch; }
.feat { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.feat span { font-size: 13px; padding: 3px 9px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.feat span.hit { background: var(--yes-soft); border-color: transparent; color: var(--yes); font-weight: 600; }
.side-box { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.side-box + .side-box { margin-top: 14px; }
.side-box h3 { margin: 0; font-size: 14.5px; }
.vote-big { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.vote-big button { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; min-height: 46px; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13.5px; color: var(--ink-2); }
.vote-big button svg { width: 20px; height: 20px; }
.vote-big .y[aria-pressed="true"] { background: var(--yes); color: #fff; border-color: var(--yes); }
.vote-big .m[aria-pressed="true"] { background: var(--maybe); color: #fff; border-color: var(--maybe); }
.vote-big .n[aria-pressed="true"] { background: var(--no); color: #fff; border-color: var(--no); }
.who-voted { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.who-voted div { display: flex; align-items: center; gap: 8px; }
.who-voted em { color: var(--muted); font-style: normal; margin-left: auto; font-size: 13px; }
.stars { display: inline-flex; gap: 2px; }
.stars button { border: 0; background: none; cursor: pointer; padding: 0; color: var(--line); font-size: 20px; line-height: 1; }
.stars button.on { color: var(--maybe); }
.comments { display: flex; flex-direction: column; gap: 10px; }
.comment { display: flex; gap: 9px; }
.comment .c { background: var(--surface-2); border-radius: 4px 12px 12px 12px; padding: 7px 11px; font-size: 14px; flex: 1; }
.comment .c small { display: block; color: var(--muted); font-size: 12px; }
.mini-map { height: 220px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-top: 14px; }
.ph-chart { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.ph-chart div { display: flex; justify-content: space-between; }
.src-links { display: flex; flex-direction: column; gap: 6px; }
.src-links a { display: flex; justify-content: space-between; text-decoration: none; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-weight: 600; font-size: 14px; background: var(--surface-2); }
.src-links a span { color: var(--muted); font-weight: 500; }

/* ---------- Map page ---------- */
.mapwrap { height: calc(100vh - 150px); min-height: 420px; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 860px) { .mapwrap { height: calc(100vh - 210px); } }
.pin { width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.leaflet-popup-content { margin: 10px 12px; font: 14px/1.4 var(--font); }
.leaflet-popup-content b { font-size: 16px; }

/* ---------- Log ---------- */
.log { display: flex; flex-direction: column; }
.log .e { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.log .e time { color: var(--muted); font-size: 13px; }
.log .e .nums { color: var(--ink-2); }
.log .e .errs { color: var(--no); font-size: 13px; margin-top: 4px; }
@media (max-width: 640px) { .log .e { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Targets ---------- */
.targets { display: flex; flex-direction: column; gap: 10px; }
.target { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface-2); }
.target-head { display: flex; align-items: center; gap: 10px; }
.target-head .ch { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.target-head .nm { font-weight: 700; }
.target-head .st { font-size: 12.5px; color: var(--muted); }
.target-head .st.err { color: var(--no); }
.target-body { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; word-break: break-all; }
.bookmarklet { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: var(--lake); color: var(--lake-ink); text-decoration: none; font-weight: 700; cursor: grab; }

/* ---------- Login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth .art { background: var(--lake); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.auth .art svg.rings { position: absolute; right: -120px; top: -80px; width: 620px; height: 620px; opacity: .25; }
.auth .art h1 { font-size: 46px; line-height: 1.05; letter-spacing: -.03em; margin: 0 0 12px; max-width: 12ch; position: relative; }
.auth .art p { max-width: 40ch; opacity: .85; margin: 0; position: relative; }
.auth .form { display: grid; place-items: center; padding: 32px 20px; }
.auth form { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px; }
.auth form h2 { margin: 0 0 4px; font-size: 24px; }
.auth .err { color: var(--no); font-size: 14px; min-height: 20px; }
@media (max-width: 760px) { .auth { grid-template-columns: 1fr; } .auth .art { padding: 28px 22px; min-height: 220px; } .auth .art h1 { font-size: 32px; } }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 22, 21, .45); z-index: 80; display: grid; place-items: center; padding: 16px; animation: fade .12s; }
.modal { background: var(--surface); border-radius: var(--r-l); width: min(460px, 100%); padding: 20px; box-shadow: 0 20px 60px -20px rgba(0,0,0,.5); }
.modal h3 { margin: 0 0 6px; font-size: 18px; }
.modal p { margin: 0 0 12px; color: var(--muted); }
.modal .row { justify-content: flex-end; margin-top: 14px; }
.reason-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

/* ---------- Toast ---------- */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
#toast .t { pointer-events: auto; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; display: flex; gap: 14px; align-items: center; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); animation: fade .15s; }
#toast .t button { background: none; border: 0; color: var(--lake-soft); font-weight: 750; cursor: pointer; padding: 0; }
#toast .t.err { background: var(--no); color: #fff; }
@media (max-width: 860px) { #toast { bottom: 84px; } }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 24px; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.range-pair { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.input { min-width: 0; }
.seg button svg { width: 18px; height: 18px; display: block; }
.focus .card .photo { max-height: 52vh; }

/* =====================================================================
   Gemeinsame Bausteine (Desktop + Handy)
   ===================================================================== */
.topbar { display: none; }
.show-sm { display: none; }
.scroller { margin-bottom: 12px; }
.toolbar.filters select.input { width: auto; }
.filter-toggle { display: none; }
.fcount { min-width: 19px; height: 19px; border-radius: 10px; background: var(--lake); color: var(--lake-ink); font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; padding: 0 5px; }
.detail-votebar { display: none; }
.commute-row { grid-template-columns: 1fr 140px 140px auto; }
.search-row { margin-bottom: 10px; }
.search-row .grow { max-width: 420px; }

/* Bottom-Sheet (Mehr-Menü) */
.sheet-bg { position: fixed; inset: 0; z-index: 90; background: rgba(15, 22, 21, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { width: min(520px, 100%); background: var(--surface); border-radius: 18px 18px 0 0; padding: 8px 12px calc(14px + env(safe-area-inset-bottom)); animation: sheet-up .2s ease-out; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: .6; } }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 10px; }
.sheet-nav { display: flex; flex-direction: column; }
.sheet-nav a, .sheet-nav button { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; background: none; border: 0; cursor: pointer; text-align: left; width: 100%; }
.sheet-nav a:active, .sheet-nav button:active { background: var(--paper-2); }
.sheet-nav svg { width: 22px; height: 22px; color: var(--ink-2); flex: none; }
.sheet-nav button { color: var(--no); }
.sheet-nav button svg { color: var(--no); }

/* =====================================================================
   Tablet & Handy
   ===================================================================== */
@media (max-width: 860px) {
  /* iOS zoomt bei Eingabefeldern unter 16px – vermeiden */
  .input, select.input, textarea.input, input, select, textarea { font-size: 16px; }

  .shell { display: block; }
  .topbar {
    display: flex; align-items: center; gap: 6px; position: sticky; top: 0; z-index: 45;
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px 16px;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line-2);
  }
  .tb-brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.01em; margin-right: auto; min-width: 0; }
  .tb-brand svg { width: 28px; height: 28px; flex: none; }
  .tb-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tb-status { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
  .tb-me { display: grid; place-items: center; width: 40px; height: 40px; }
  .topbar .icon-btn { width: 40px; height: 40px; }
  .topbar .icon-btn svg { width: 20px; height: 20px; }

  .main { padding: 14px 14px calc(92px + env(safe-area-inset-bottom)); }
  .page-head { margin-bottom: 14px; gap: 10px; }
  .page-head h1 { font-size: 24px; }
  .page-head p { font-size: 14px; }
  .page-head .actions { margin-left: 0; width: 100%; }
  .page-head .actions:empty { display: none; }

  /* Tab-Leiste */
  .tabbar { grid-template-columns: repeat(5, 1fr); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px -14px rgba(0,0,0,.35); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; font: 600 11px var(--font); color: var(--muted); text-decoration: none; position: relative; background: none; border: 0; cursor: pointer; border-radius: 12px; }
  .tabbar a[aria-current="page"], .tabbar button[aria-current="page"] { color: var(--lake); }
  .tabbar a[aria-current="page"] svg, .tabbar button[aria-current="page"] svg { stroke-width: 2.2; }
  .tabbar svg { width: 23px; height: 23px; }

  /* Buttons & Felder: Daumen-Grösse */
  .btn { min-height: 44px; }
  .btn.small { min-height: 38px; }
  .chip { min-height: 38px; }
  .check { padding: 6px 0; }
  .check input { width: 20px; height: 20px; }

  /* Neu: Filter */
  .chips.scroller { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px 10px; padding: 2px 14px 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .chips.scroller::-webkit-scrollbar { display: none; }
  .chips.scroller .chip { flex: none; scroll-snap-align: start; }
  .search-row { flex-wrap: nowrap; }
  .search-row .grow { flex: 1; min-width: 0; max-width: none; }
  .filter-toggle { display: inline-flex; flex: none; }
  .toolbar.filters { display: none; }
  .toolbar.filters.open { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--surface); padding: 12px; border-radius: 14px; box-shadow: var(--shadow); }
  .toolbar.filters.open select.input { width: 100%; }
  .toolbar.filters.open > :first-child { grid-column: 1 / -1; }
  .toolbar.filters.open .check { grid-column: 1 / -1; }
  #inboxBody .page-head .actions { width: auto; }

  /* Karten */
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card .body { padding: 12px 14px 10px; }
  .price { font-size: 24px; }
  .vote button { height: 52px; font-size: 15px; }
  .meta { flex-wrap: wrap; row-gap: 6px; }

  /* Fokus-Modus */
  .focus .kbd-hint { display: none; }
  .focus .card .price { font-size: 27px; }
  .focus .vote button { height: 58px; }
  .focus .card .photo { max-height: 42vh; }

  /* Detail: Vollbild + feste Abstimmleiste */
  .overlay { background: var(--paper); }
  .drawer { width: 100%; animation: sheet-up .2s ease-out; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .drawer-head { padding: calc(8px + env(safe-area-inset-top)) 10px 8px; }
  .drawer-head .icon-btn { width: 42px; height: 42px; }
  .hide-sm { display: none !important; }
  .show-sm { display: inline; }
  .gallery { aspect-ratio: 4 / 3; }
  .gallery .g-prev, .gallery .g-next { width: 38px; height: 38px; }
  .detail { padding: 16px 14px 20px; gap: 16px; }
  .detail .price { font-size: 27px; }
  .kv { grid-template-columns: 110px 1fr; font-size: 14px; }
  .kv dd { word-break: break-word; }
  .vote-big { display: none; }
  .detail-votebar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(0,0,0,.4);
  }
  .detail-votebar button { min-height: 50px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font: 700 15px var(--font); color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
  .detail-votebar svg { width: 20px; height: 20px; }
  .detail-votebar .y { color: var(--yes); }
  .detail-votebar .n { color: var(--no); }
  .detail-votebar .m { color: var(--maybe); }
  .detail-votebar .y[aria-pressed="true"] { background: var(--yes); color: #fff; border-color: var(--yes); }
  .detail-votebar .m[aria-pressed="true"] { background: var(--maybe); color: #fff; border-color: var(--maybe); }
  .detail-votebar .n[aria-pressed="true"] { background: var(--no); color: #fff; border-color: var(--no); }
  .who-voted em { display: none; }
  .mini-map { height: 200px; }

  /* Merkliste: Spalten seitlich wischen */
  .pipeline { display: flex; overflow-x: auto; gap: 10px; margin: 0 -14px; padding: 0 14px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pipeline::-webkit-scrollbar { display: none; }
  .lane { flex: 0 0 78%; scroll-snap-align: center; min-height: 180px; }
  .lrow { grid-template-columns: 80px 1fr; gap: 10px; }
  .lrow img, .lrow .ph { width: 80px; height: 60px; }
  .lrow .r { grid-column: 1 / -1; justify-content: flex-start; }

  /* Suchen */
  .profiles { grid-template-columns: 1fr; }
  .pcard { padding: 16px; }
  .pcard .row .btn { flex: 1 1 auto; }

  /* Zweispaltige Seiten (Einstellungen, Editor): Reiter oben */
  .two-col { grid-template-columns: 1fr; gap: 12px; }
  .two-col .side {
    position: sticky; top: calc(56px + env(safe-area-inset-top)); z-index: 30; flex-direction: row; gap: 6px; overflow-x: auto;
    margin: -4px -14px 0; padding: 8px 14px; background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); scrollbar-width: none;
  }
  .two-col .side::-webkit-scrollbar { display: none; }
  .two-col .side a { flex: none; min-height: 38px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
  .two-col .side a[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: none; }
  .panel { padding: 16px; border-radius: 14px; }
  .panel h2 { font-size: 17px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Editor */
  .loc-row, .commute-row { grid-template-columns: 1fr auto; gap: 10px; padding: 12px; }
  .loc-row > .field:first-child, .commute-row > .field:first-child { grid-column: 1 / 2; }
  .loc-row > .field:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .loc-row > button, .commute-row > button { grid-column: 2; grid-row: 1; align-self: end; }
  .commute-row > .field:nth-child(2), .commute-row > .field:nth-child(3) { grid-row: 2; }
  .commute-row { grid-template-columns: 1fr 1fr auto; }
  .commute-row > .field:first-child { grid-column: 1 / 3; }
  .commute-row > button { grid-column: 3; }
  .commute-row > .field:nth-child(2) { grid-column: 1; }
  .commute-row > .field:nth-child(3) { grid-column: 2 / 4; }
  .mapbox { height: 240px; }
  .url-row { grid-template-columns: auto 1fr auto; }
  .sticky-save { bottom: calc(60px + env(safe-area-inset-bottom)); margin: 0 -14px; padding: 12px 14px; }
  .sticky-save .btn { flex: 1; }
  .sticky-save .btn.ghost { flex: 0 0 auto; }
  .range-pair { gap: 6px; }

  /* Benachrichtigungsziele */
  .target-head { flex-wrap: wrap; row-gap: 10px; }
  .target-head > div { flex: 1 1 calc(100% - 100px) !important; }
  .target-head .btn { flex: 1; }

  /* Abgelehnt */
  .rej { grid-template-columns: 64px 1fr; gap: 10px; }
  .rej img, .rej .ph { width: 64px; height: 50px; }
  .rej > .row { grid-column: 1 / -1; }

  /* Modals als Sheet von unten */
  .modal-bg { align-items: flex-end; padding: 0; }
  .modal { width: 100%; border-radius: 18px 18px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); animation: sheet-up .2s ease-out; }
  .modal .row { flex-direction: column-reverse; align-items: stretch; }
  .modal .row .btn { width: 100%; }
  .modal .row[style] { flex-direction: column; }
  .reason-chips .chip { min-height: 40px; }

  #toast { bottom: calc(80px + env(safe-area-inset-bottom)); width: calc(100% - 24px); }
  #toast .t { width: 100%; justify-content: space-between; }
  .overlay ~ #toast, body:has(.overlay) #toast { bottom: calc(86px + env(safe-area-inset-bottom)); }

  .mapwrap { height: calc(100vh - 230px); height: calc(100dvh - 230px); border-radius: 14px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .log .e { padding: 12px 0; }
  .auth .form { align-items: start; padding-top: 28px; }
}

@media (max-width: 380px) {
  .tb-status { display: none; }
  .toolbar.filters.open { grid-template-columns: 1fr; }
  .facts { gap: 10px; }
  .vote button { font-size: 14px; gap: 5px; }
}
.show-sm-flex { display: none; }
.two-col > * { min-width: 0; }
.main > * { max-width: 100%; }
@media (max-width: 860px) {
  .show-sm-flex { display: inline-flex; flex: none; }
  .search-row .icon-btn { width: 44px; height: 44px; }
  .search-row .icon-btn svg { width: 20px; height: 20px; }
  .gallery img { object-fit: cover; }
  .seg.hide-sm { display: none !important; }
  .page-head .actions:not(:has(> :not(.hide-sm))) { display: none; }
  .gen-url { overflow-wrap: anywhere; }
  .code { overflow-wrap: anywhere; }
}
@media (max-width: 860px) {
  .main > .pipeline, .main > .chips.scroller { max-width: none; }
  .sticky-save { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .sticky-save .btn.ghost { display: none; }
  .section-title { flex-wrap: wrap; row-gap: 2px; }
  .section-title span { flex-basis: 100%; }
}
.focus .progress { align-items: center; }
@media (max-width: 860px) { .focus .progress .btn { min-height: 40px; padding: 0 8px; } }
