/* Deed Atlas app. One accent (deep green), calm surfaces, phone first. (c) 2026 CyberMax. All rights reserved. */
:root {
  --bg: #f5f4ef; --surface: #ffffff; --surface-2: #eeede6; --ink: #17201d; --ink-2: #4c5753; --ink-3: #7a8480;
  --line: #e1e0d8; --accent: #0f5c4d; --accent-ink: #ffffff; --accent-soft: #e1efe9; --good: #1f7a4d; --warn: #9a5b12; --info: #44546a;
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 6px 20px rgba(20, 30, 25, .06);
  --r: 16px; --r-sm: 10px; --tab-h: 64px; --top-h: 58px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1412; --surface: #171e1b; --surface-2: #1e2723; --ink: #e8ece9; --ink-2: #b2bbb7; --ink-3: #87918d;
    --line: #2a3430; --accent: #4fb596; --accent-ink: #06231b; --accent-soft: #173229; --good: #6fd0a0; --warn: #e3a95c; --info: #a7b6c9;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1412; --surface: #171e1b; --surface-2: #1e2723; --ink: #e8ece9; --ink-2: #b2bbb7; --ink-3: #87918d;
  --line: #2a3430; --accent: #4fb596; --accent-ink: #06231b; --accent-soft: #173229; --good: #6fd0a0; --warn: #e3a95c; --info: #a7b6c9;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25); color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .4em; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.02rem; }
button, select, input { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* top bar + tabs */
.appbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; height: var(--top-h); padding: 0 16px; padding-top: env(safe-area-inset-top);
  background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.brand img { border-radius: 8px; }
.statebtn { margin-left: auto; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; cursor: pointer; max-width: 55vw; }
.statebtn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.statebtn svg { width: 18px; height: 18px; color: var(--accent); flex: none; } .statebtn .chev { color: var(--ink-3); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--ink-3); font-size: .72rem; font-weight: 600; }
.tabbar a[aria-current="page"] { color: var(--accent); }
.tabbar a[aria-current="page"] svg { stroke-width: 2.3; }
main { padding: 12px 16px calc(var(--tab-h) + 28px + env(safe-area-inset-bottom)); max-width: 1180px; margin: 0 auto; }
@media (min-width: 900px) {
  .tabbar { position: static; height: auto; display: flex; gap: 4px; background: none; border: 0; padding: 0; margin-left: 18px; order: 2; }
  .tabbar a { flex-direction: row; gap: 6px; font-size: .92rem; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); }
  .tabbar a svg { width: 18px; height: 18px; }
  .tabbar a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
  .statebtn { order: 3; }
  main { padding: 20px 24px 48px; }
}

/* hero, chips */
.hero { margin: 6px 0 12px; } .hero.slim { margin-bottom: 8px; }
.hero h1 { font-size: 1.5rem; } #deals-where { color: var(--accent); }
.sub { color: var(--ink-2); margin: 0 0 .6em; max-width: 62ch; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.stats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 6px; padding-bottom: 2px; } .stats::-webkit-scrollbar { display: none; }
.stat { flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 12px; }
.stat b { display: block; font-size: 1.05rem; } .stat span { color: var(--ink-3); font-size: .8rem; }

/* sections + cards */
.sec { margin: 18px 0 8px; display: flex; align-items: baseline; gap: 10px; }
.sec h2 { margin: 0; font-size: 1.08rem; } .sec .more { margin-left: auto; font-size: .9rem; font-weight: 600; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; }
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.deal { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; cursor: pointer; text-align: left; padding: 0; width: 100%; }
.deal:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.thumb { position: relative; overflow: hidden; height: 128px; background: var(--surface-2) center/cover no-repeat; display: grid; place-items: center; color: var(--ink-3); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .pin { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.thumb .ill { width: 40px; height: 40px; opacity: .55; }
.thumb .cap { position: absolute; left: 12px; bottom: 8px; font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.thumb.plain { background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); color: var(--accent); }
.thumb .osm { position: absolute; right: 4px; bottom: 2px; font-size: .6rem; color: #333; background: rgba(255,255,255,.75); padding: 0 4px; border-radius: 4px; }
.thumb .type { position: absolute; left: 10px; top: 10px; }
.tchip { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.tchip.otc { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.deal .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.price { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price small { font-size: .78rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.badge { font-size: .76rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.place { font-weight: 600; } .meta { color: var(--ink-3); font-size: .86rem; }
.when { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.when.soon { color: var(--warn); } .when.now { color: var(--good); }
.list { display: flex; flex-direction: column; gap: 8px; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; cursor: pointer; text-align: left; width: 100%; }
.row .r1 { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .r2 { color: var(--ink-3); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .amt { text-align: right; font-weight: 800; } .row .amt small { display: block; font-weight: 600; color: var(--ink-3); font-size: .75rem; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); padding: 18px; color: var(--ink-2); }
.empty b { color: var(--ink); }
.skeleton { height: 210px; border-radius: var(--r); background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; margin-bottom: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: .88rem; }
.btn.wide { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* tax filters */
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.filters label { display: flex; flex-direction: column; gap: 3px; font-size: .74rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .03em; min-width: 0; }
.filters select, .filters input { width: 100%; min-height: 42px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 10px; font-size: .95rem; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink); }
.filters .grow { grid-column: 1 / -1; }
.filters .morebtn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 899px) { .filters:not(.open) .x { display: none; } }
@media (min-width: 900px) { .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); } .filters .grow { grid-column: span 4; } .filters .morebtn { display: none; } }
.bar { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; color: var(--ink-2); font-size: .92rem; } .bar .sp { flex: 1; }
.notice { background: var(--accent-soft); color: var(--ink); border-radius: var(--r-sm); padding: 10px 12px; margin: 10px 0; font-size: .92rem; }
.card, .rules { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 14px 0; }
.rules dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; } .rules dt { color: var(--ink-3); } .rules dd { margin: 0; }
.coverage ul { padding-left: 18px; margin: 6px 0; } .coverage li { margin: 3px 0; }
.procard { display: flex; gap: 14px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 16px 0; }
.procard p { margin: 2px 0 0; color: var(--ink-2); font-size: .92rem; }

/* help */
.how { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 6px 0 4px; }
@media (min-width: 760px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how article, .ob article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 6px; }
.prose p { color: var(--ink-2); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; margin: 8px 0; }
.faq summary { cursor: pointer; font-weight: 600; } .faq p { color: var(--ink-2); }
.disc { color: var(--ink-3); font-size: .82rem; margin-top: 18px; } .foot { color: var(--ink-3); font-size: .82rem; }

/* sheets */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(10, 16, 14, .45); }
.sheet { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; background: var(--bg);
  border-radius: 20px 20px 0 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.25); animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(30px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
@media (min-width: 900px) { .sheet { left: auto; top: 0; bottom: 0; width: 480px; max-height: none; border-radius: 0; padding-top: 18px; animation: none; } #onboard, #st-sheet, #pro-sheet { left: 50%; right: auto; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: 720px; max-height: 86vh; border-radius: 20px; } }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 8px; }
.close { position: absolute; z-index: 5; right: 10px; top: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink-2); }
.sheet h2 { padding-right: 44px; }
.dmap { position: relative; height: 180px; border-radius: var(--r); overflow: hidden; background: var(--surface-2); margin: 4px 0 12px; }
.dmap img { position: absolute; width: 256px; height: 256px; }
.dmap .pin { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.4); }
.dmap .osm { position: absolute; right: 6px; bottom: 4px; font-size: .66rem; background: rgba(255,255,255,.8); color: #333; padding: 0 5px; border-radius: 4px; }
.dmap .approx { position: absolute; left: 8px; bottom: 6px; font-size: .72rem; background: rgba(255,255,255,.85); color: #333; padding: 1px 6px; border-radius: 4px; }
.facts { display: grid; grid-template-columns: minmax(0, 38%) 1fr; gap: 6px 14px; margin: 8px 0 4px; font-size: .92rem; }
.facts dt { color: var(--ink-3); } .facts dd { margin: 0; overflow-wrap: anywhere; }
.signal { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-direction: column; gap: 6px; }
.signal li { display: flex; gap: 8px; align-items: flex-start; font-size: .93rem; }
.signal i { flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; background: var(--info); }
.signal .good i { background: var(--good); } .signal .warn i { background: var(--warn); }
.steps { padding-left: 20px; margin: 6px 0; } .steps li { margin: 4px 0; color: var(--ink-2); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 6px; }
.actions .btn { min-width: 0; }
.fine { color: var(--ink-3); font-size: .8rem; }
.stgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
@media (min-width: 640px) { .stgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stgrid button { display: flex; justify-content: space-between; gap: 6px; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px; cursor: pointer; min-height: 48px; }
.stgrid button b { font-weight: 600; } .stgrid button span { color: var(--ink-3); font-size: .82rem; white-space: nowrap; }
.stgrid button.has span { color: var(--accent); font-weight: 700; }
.stgrid button[aria-current="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.near { margin-top: 4px; }
.ob { display: grid; gap: 10px; margin: 6px 0 14px; }
.ob article { padding: 12px 14px; } .ob h3 { margin: 0 0 2px; } .ob p { margin: 0; color: var(--ink-2); font-size: .93rem; } .ob .num { width: 26px; height: 26px; float: left; margin: 0 10px 0 0; } @media (min-width: 760px) { .ob { grid-template-columns: repeat(3, 1fr); } }
#onboard { padding-top: 22px; }

/* map */
.mapwrap { position: relative; margin: 0 -16px; }
#map { height: calc(100vh - var(--top-h) - var(--tab-h) - 34px - env(safe-area-inset-bottom)); min-height: 360px; background: var(--surface-2); }
@media (min-width: 900px) { .mapwrap { margin: 0; } #map { height: calc(100vh - var(--top-h) - 90px); border-radius: var(--r); } }
.maplegend { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: .8rem; color: var(--ink-2); padding: 8px 16px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.dot.lien { background: var(--accent); } .dot.deed { background: var(--surface); border: 2.5px solid var(--accent); } .dot.gov { background: #c4622d; }
.sbub { display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .8rem; border: 2px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.3); }
.sbub.zero { background: var(--surface); color: var(--ink-3); border-color: var(--line); font-weight: 600; }
.marker-cluster { background: transparent; }
.marker-cluster div { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .78rem; border: 3px solid rgba(255,255,255,.85); box-shadow: 0 1px 6px rgba(0,0,0,.3); }
.leaflet-container { font: inherit; }
.leaflet-popup-content { margin: 10px 12px; } .pop b { display: block; } .pop button { margin-top: 6px; }

/* Pro box (pro.js) */
.cmx-pro h2 { font-size: 1.2rem; } .cmx-pro ul { padding-left: 18px; color: var(--ink-2); }
.cmx-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.cmx-plan { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); background: var(--surface); }
.cmx-plan.best { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cmx-plan i { position: absolute; top: -10px; right: 10px; font-style: normal; font-size: .7rem; font-weight: 800; background: var(--accent); color: var(--accent-ink); padding: 2px 8px; border-radius: 999px; }
.cmx-price { font-size: 1.4rem; font-weight: 800; } .cmx-price small { font-size: .8rem; color: var(--ink-3); } .cmx-note { color: var(--ink-3); font-size: .82rem; }
.cmx-pro-small { color: var(--ink-3); font-size: .82rem; }
.cmx-pro-badge { font-size: .7rem; background: var(--accent); color: var(--accent-ink); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.cmx-pro details { margin-top: 8px; } .cmx-pro input { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; background: var(--surface); }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: .9rem; max-width: 90vw; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
@media (min-width: 900px) { .toast { bottom: 24px; } }

/* market, sell, tools (8 Nov 2026) */
.helpbtn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--ink-2); flex: none; order: 4; }
@media (max-width: 899px) { .helpbtn { order: 0; margin-left: 2px; } .statebtn { max-width: 46vw; } }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; background: var(--surface-2); border-radius: 12px; padding: 4px; margin: 0 0 10px; }
.seg button { border: 0; background: transparent; border-radius: 9px; padding: 9px 4px; font-weight: 700; font-size: .86rem; color: var(--ink-2); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.mf .chk { flex-direction: row; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--ink-2); }
.mf .chk input { width: auto; min-height: 0; }
.qf { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
@media (min-width: 900px) { .qf { grid-column: span 4; } }
.dot.buy { background: #3d6fb6; }
.deal.feat { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), var(--shadow); }
.sform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sform h3 { margin: 6px 0 0; }
.sform label { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; font-weight: 700; color: var(--ink-3); min-width: 0; }
.sform input, .sform select, .sform textarea { width: 100%; min-height: 42px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: .95rem; }
.sform textarea { resize: vertical; }
.sform .full { grid-column: 1 / -1; }
.sform .chk { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; font-size: .88rem; color: var(--ink-2); }
.sform .chk input { width: 20px; min-height: 20px; flex: none; margin-top: 2px; }
@media (min-width: 900px) { .sform { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs span { position: relative; } .thumbs img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; }
.thumbs button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; }
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 4px 0 10px; }
.gallery img { height: 200px; max-width: 88%; border-radius: var(--r-sm); object-fit: cover; scroll-snap-align: start; }
.plans { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 6px 0 4px; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.plan.best { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan .pp { display: block; font-size: 1.4rem; font-weight: 800; } .plan .pp small { font-size: .8rem; color: var(--ink-3); }
.plan ul { padding-left: 18px; margin: 6px 0; color: var(--ink-2); font-size: .92rem; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.kpi span { color: var(--ink-3); font-size: .78rem; font-weight: 600; } .kpi b { font-size: 1.3rem; } .kpi small { color: var(--ink-3); font-size: .78rem; }
.kpi.good b { color: var(--good); } .kpi.warn b { color: var(--warn); }
.facts dd.good { color: var(--good); }
.msg { border-top: 1px solid var(--line); padding: 8px 0; font-size: .92rem; overflow-wrap: anywhere; }
.row.static { cursor: default; }
.linkbtn { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0 0 0 6px; font: inherit; font-size: .84rem; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mine .fcode { min-height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; background: var(--surface); color: var(--ink); max-width: 220px; }
code { overflow-wrap: anywhere; font-size: .85rem; background: var(--surface-2); padding: 1px 4px; border-radius: 4px; }
@media (max-width: 599px) { #deals-sub { display: none; } .hero h1 { font-size: 1.3rem; } }
