/* Pand v3: off-white ground, ink type, lime accent, lilac + peach tags. Flat surfaces, hairline borders, pill controls. */
:root {
  --bg: #F6F5F0; --panel: #FFFFFF; --panel-2: #EFEEE8; --panel-3: #E4E2DA;
  --ink: #121212; --muted: #6F6F6A; --line: #E6E4DC;
  --accent: #D8F36A; --accent-ink: #121212; --lilac: #CDBDFF; --peach: #FFD3BF; --sky: #BFE3FF; --mint: #BFF0D6;
  --good: #2E7D4F; --warn: #C77D1A; --bad: #D1483B;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
  --r: 28px; --r-sm: 18px; --shadow: 0 18px 40px rgba(18,18,18,.10);
}
:root[data-theme="dark"] { --bg: #0E0E11; --panel: #17171B; --panel-2: #222227; --panel-3: #2C2C33; --ink: #F4F4F0; --muted: #9A9AA0; --line: #2A2A30; --shadow: 0 18px 40px rgba(0,0,0,.5); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0E0E11; --panel: #17171B; --panel-2: #222227; --panel-3: #2C2C33; --ink: #F4F4F0; --muted: #9A9AA0; --line: #2A2A30; --shadow: 0 18px 40px rgba(0,0,0,.5); } }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink);
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Inter, system-ui, sans-serif;
  overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
body { display: flex; flex-direction: column; height: 100dvh; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h2 { letter-spacing: -.03em; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: calc(var(--safe-top) + 6px) 16px 6px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 21px; letter-spacing: -.04em; }
.brand .logo { width: 28px; height: 28px; border-radius: 9px; }
.count { color: var(--muted); font-weight: 500; font-size: 13px; letter-spacing: -.01em; }
.me { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 4px 12px 4px 4px; font-weight: 600; font-size: 13px; }
.me img { width: 30px; height: 30px; border-radius: 50%; }

#main { flex: 1; min-height: 0; position: relative; }
.view { display: none; height: 100%; }
.view.active { display: flex; flex-direction: column; }
#view-swipe { padding: 0 14px; }
.deck { flex: 1; min-height: 0; position: relative; }

/* card: full page, the whole card scrolls vertically, drag horizontally to vote */
#view-swipe { padding: 0 8px; }
.card { position: absolute; inset: 0; background: var(--panel); border-radius: 26px 26px 0 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-bottom: 0; touch-action: pan-y; will-change: transform; overscroll-behavior: contain; }
.card.behind { transform: scale(.97) translateY(10px); opacity: .5; overflow: hidden; }
.hero { position: relative; height: 72vw; max-height: 480px; min-height: 280px; background: var(--panel-3); }
.hero .slides { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; touch-action: pan-x; scrollbar-width: none; }
.hero .slides::-webkit-scrollbar { display: none; }
.hero .slides img { width: 100%; height: 100%; flex: 0 0 100%; object-fit: cover; display: block; scroll-snap-align: start; background: var(--panel-3); }
.hero > :not(.slides) { pointer-events: none; }
.hero .dots { position: absolute; top: 10px; left: 14px; right: 14px; display: flex; gap: 4px; }
.hero .dots i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.4); }
.hero .dots i.on { background: #fff; }
.hero .badge { position: absolute; top: 22px; left: 14px; background: rgba(18,18,18,.55); color: #fff; backdrop-filter: blur(10px); padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.hero .badge.warn { background: var(--peach); color: #7A3A10; } .hero .badge.bad { background: var(--bad); }
.hero .fit { position: absolute; top: 22px; right: 14px; background: var(--accent); color: var(--accent-ink); padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.hero .stamp { position: absolute; top: 60px; font-size: 28px; font-weight: 900; letter-spacing: 2px; padding: 6px 16px; border-radius: 999px; opacity: 0; transform: rotate(-10deg); }
.hero .stamp.yes { right: 18px; background: var(--accent); color: var(--accent-ink); transform: rotate(10deg); }
.hero .stamp.no { left: 18px; background: #fff; color: var(--ink); }
.hero .stamp.super { left: 50%; top: 20px; transform: translateX(-50%); background: var(--lilac); color: #2B1A66; font-size: 20px; }
.hero .grad { position: absolute; inset: auto 0 0 0; height: 58%; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.hero .headline { position: absolute; left: 18px; right: 18px; bottom: 16px; color: #fff; }
.hero .price { font-size: 32px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.hero .price small { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8); margin-left: 8px; letter-spacing: 0; }
.hero .addr { font-size: 16px; font-weight: 700; margin-top: 8px; letter-spacing: -.01em; }
.hero .area { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 2px; }
.card .body { padding: 14px 16px calc(var(--safe-bottom) + 190px); }
.hint { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { background: var(--panel-2); border-radius: 999px; padding: 6px 11px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip.label-A, .chip.label-A\+, .chip.label-A\+\+, .chip.label-A\+\+\+ { background: var(--mint); color: #1E5B3A; } .chip.label-B { background: #E3F2B8; color: #3E5A10; }
.chip.label-C { background: #FFF0B3; color: #6B4E12; } .chip.label-D { background: var(--peach); color: #7A3A10; }
.chip.label-E, .chip.label-F, .chip.label-G { background: #FFC7C0; color: #7F1D1D; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-bottom: 12px; font-size: 13.5px; }
.kv div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; text-align: right; }
.kv b.good { color: var(--good); } .kv b.warn { color: var(--warn); } .kv b.bad { color: var(--bad); }
.summary { font-size: 15px; line-height: 1.5; margin: 0 0 12px; letter-spacing: -.01em; }
.minimap { height: 220px; border-radius: var(--r-sm); overflow: hidden; margin-bottom: 12px; background: var(--panel-2); position: relative; }
.minimap.tall { height: 280px; }
.arealabel { display: inline-block; background: var(--ink); color: var(--bg); padding: 5px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.25); transform: translate(-50%, -140%); }
.links { display: flex; gap: 8px; flex-wrap: wrap; }
.links a, .links button { flex: 1; min-width: 40%; text-align: center; padding: 12px; background: var(--panel-2); border: 0; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 13.5px; }
.links .dark { background: var(--ink); color: var(--bg); }

/* action buttons */
.actions { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-bottom) + 84px); display: flex; justify-content: center; align-items: center; gap: 14px; z-index: 1200; pointer-events: none; }
.actions .btn { pointer-events: auto; box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.btn { width: 66px; height: 66px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: var(--panel); color: var(--ink); }
.btn svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn.yes { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); width: 74px; height: 74px; }
.btn.yes svg { fill: currentColor; stroke: none; width: 32px; height: 32px; }
.btn.undo, .btn.info { width: 48px; height: 48px; color: var(--muted); }
.btn.undo svg, .btn.info svg { width: 22px; height: 22px; }
.btn.super { background: var(--lilac); color: #2B1A66; border-color: var(--lilac); width: 54px; height: 54px; }
.btn.super svg { fill: currentColor; stroke: none; width: 24px; height: 24px; }
.btn:active { transform: scale(.94); }

.empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; padding: 30px; }
.empty h2 { color: var(--ink); margin: 0 0 6px; font-size: 26px; font-weight: 800; }

/* lists */
.list { overflow-y: auto; padding: 8px 14px calc(var(--safe-bottom) + 90px); display: flex; flex-direction: column; gap: 10px; height: 100%; position: relative; }
.row-wrap { position: relative; border-radius: 22px; overflow: hidden; }
.row-actions { position: absolute; inset: 0; display: flex; justify-content: flex-end; }
.ract { flex: 0 0 84px; border: 0; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; color: #fff; }
.ract.status { background: var(--warn); } .ract.archive { background: var(--bad); } .ract.restore { background: var(--good); }
.row-wrap .row { transition: transform .2s ease; touch-action: pan-y; position: relative; z-index: 1; }
.row { display: flex; flex: 0 0 auto; gap: 12px; background: var(--panel); border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--line); padding: 0; text-align: left; width: 100%; }
.list > * { flex-shrink: 0; }
.row .thumb { width: 108px; flex: 0 0 108px; background: var(--panel-3) center/cover; min-height: 98px; }
.row .info { padding: 11px 12px 11px 0; min-width: 0; flex: 1; }
.row .t1 { font-weight: 800; display: flex; justify-content: space-between; gap: 8px; letter-spacing: -.02em; font-size: 15.5px; }
.row .t1 span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t1 span:last-child { white-space: nowrap; }
.row .t2 { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.row .t3 { font-size: 12.5px; margin-top: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.row .t3.match { color: var(--ink); font-weight: 700; } .row .t3.wait { color: var(--muted); } .row .t3.passed { color: var(--bad); }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--panel-2); color: var(--muted); }
.pill.fit { background: var(--accent); color: var(--accent-ink); } .pill.ink { background: var(--ink); color: var(--bg); }
.pill.lilac { background: var(--lilac); color: #2B1A66; } .pill.good { background: var(--mint); color: #1E5B3A; } .pill.bad { background: #FFC7C0; color: #7F1D1D; } .pill.peach { background: var(--peach); color: #7A3A10; }
.section-h { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 12px 6px 0; }

.segbar { display: flex; margin: 4px 14px 8px; background: var(--panel-2); border-radius: 999px; padding: 4px; }
.segbar button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.segbar button.active { background: var(--ink); color: var(--bg); }
.segbar b { font-size: 11px; margin-left: 3px; opacity: .7; }

/* floating pill nav */
.tabs { position: absolute; left: 50%; bottom: calc(var(--safe-bottom) + 12px); transform: translateX(-50%); display: flex; gap: 2px; background: var(--ink); border-radius: 999px; padding: 6px; box-shadow: var(--shadow); z-index: 1200; }
:root[data-theme="dark"] .tabs { background: var(--panel-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabs { background: var(--panel-2); } }
.tabs button { position: relative; border: 0; background: transparent; color: rgba(255,255,255,.7); padding: 10px 14px; border-radius: 999px; font-weight: 700; font-size: 12.5px; display: flex; align-items: center; gap: 7px; }
.tabs button span { display: none; }
.tabs button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabs button.active { background: var(--accent); color: var(--accent-ink); padding: 10px 16px; }
.tabs button.active span { display: inline; }
.tabs b { position: absolute; top: 2px; right: 6px; background: var(--lilac); color: #2B1A66; font-size: 10px; border-radius: 999px; padding: 1px 6px; }
.tabs b:empty { display: none; }

/* map tab */
#bigmap { flex: 1; z-index: 0; }
.legend { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; padding: 7px 12px; font-size: 12px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; z-index: 5; white-space: nowrap; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.dot.match { background: var(--accent); border: 1px solid #8DA53A; } .dot.mine { background: var(--ink); } .dot.theirs { background: var(--lilac); } .dot.open { background: #B8B8B2; }
.pin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.pin.big { width: 26px; height: 26px; }
.peek { position: absolute; left: 12px; right: 12px; bottom: calc(var(--safe-bottom) + 82px); background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 10px; display: flex; gap: 12px; align-items: center; z-index: 10; box-shadow: var(--shadow); animation: up .22s cubic-bezier(.2,.8,.2,1); }
.peek .thumb { width: 84px; height: 76px; border-radius: 16px; background: var(--panel-3) center/cover; flex: 0 0 84px; }
.peek .info { flex: 1; min-width: 0; }
.peek .t1 { font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peek .t2 { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peek .acts { display: flex; gap: 6px; margin-top: 6px; }
.peek .acts button, .peek .acts a { border: 0; background: var(--panel-2); border-radius: 999px; padding: 7px 11px; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.peek .acts .dark { background: var(--ink); color: var(--bg); }
.leaflet-container { background: var(--panel-2); font: inherit; }
.leaflet-control-attribution { font-size: 9px; opacity: .6; }
.toast { position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 92px); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 13px; z-index: 4000; box-shadow: var(--shadow); max-width: 90vw; text-align: center; }

/* weekly card */
.weekly-card { background: var(--accent); color: var(--accent-ink); border-radius: var(--r); padding: 18px 20px; }
.weekly-card h3 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.03em; }
.weekly-card p { margin: 0 0 14px; font-size: 14px; opacity: .8; }
.weekly-card button { background: var(--accent-ink); color: var(--accent); border: 0; border-radius: 999px; padding: 11px 16px; font-weight: 800; }
.weekly-card button:disabled { opacity: .4; }

/* sheets */
.sheet { position: fixed; inset: 0; background: var(--bg); z-index: 2000; display: flex; flex-direction: column; animation: up .26s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-top) + 10px) 14px 8px; }
.sheet-head .close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; }
.sheet-head .close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.sheet-title { flex: 1; font-weight: 800; font-size: 16px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.sheet-head .spacer { width: 38px; }
.saved-hint { width: 60px; text-align: right; font-size: 12px; color: var(--muted); }
.sheet-body { flex: 1; overflow-y: auto; padding: 4px 16px calc(var(--safe-bottom) + 28px); -webkit-overflow-scrolling: touch; }
.galwrap { position: relative; margin: 4px -16px 14px; }
.gallery { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; height: 66vw; max-height: 440px; scrollbar-width: none; touch-action: pan-x; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { width: 100%; height: 100%; flex: 0 0 100%; object-fit: cover; scroll-snap-align: start; background: var(--panel-3); display: block; }
.galcount { position: absolute; right: 14px; bottom: 12px; background: rgba(18,18,18,.6); color: #fff; backdrop-filter: blur(8px); padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; pointer-events: none; }
.galhint { position: absolute; left: 14px; bottom: 12px; background: rgba(18,18,18,.6); color: #fff; backdrop-filter: blur(8px); padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; pointer-events: none; }
.lightbox { position: fixed; inset: 0; background: #000; z-index: 3000; }
.lb-track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-track img { width: 100vw; height: 100%; flex: 0 0 100vw; object-fit: contain; scroll-snap-align: start; display: block; }
.lb-count { position: absolute; top: calc(var(--safe-top) + 12px); left: 50%; transform: translateX(-50%); color: #fff; background: rgba(255,255,255,.15); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; z-index: 2; }
.lb-close { position: absolute; top: calc(var(--safe-top) + 8px); right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 16px; z-index: 2; }
/* preferences */
.q { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px; }
.q h4 { margin: 0 0 4px; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.q p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.q .val { float: right; font-weight: 800; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opts button { border: 1px solid var(--line); background: var(--panel-2); border-radius: 999px; padding: 8px 12px; font-weight: 700; font-size: 13px; }
.opts button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.opts button.on b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-ink); color: var(--accent); font-size: 11px; margin-right: 5px; }
.opts .grp { width: 100%; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 6px 0 0; }
input[type=range] { width: 100%; accent-color: var(--ink); margin: 6px 0; }
:root[data-theme="dark"] input[type=range] { accent-color: var(--accent); }
.detail-price { font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.detail-price small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.detail-addr { font-size: 17px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }
.detail-area { color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.card-block { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px; }
.card-block h4 { margin: 0 0 10px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.desc { font-size: 15px; line-height: 1.55; white-space: pre-line; }
.desc.clamp { max-height: 7.8em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); }
.linkbtn { background: none; border: 0; color: var(--ink); font-weight: 800; padding: 8px 0 0; text-decoration: underline; text-underline-offset: 3px; }
.vote-row { display: flex; gap: 8px; }
.vote-row button { flex: 1; padding: 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-weight: 800; }
.vote-row button.on.yes { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.vote-row button.on.no { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.primary { width: 100%; padding: 14px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 800; font-size: 15px; }
.primary.accent { background: var(--accent); color: var(--accent-ink); }
.primary.secondary { background: var(--panel-2); color: var(--ink); }
.primary.danger { background: transparent; color: var(--bad); }
.primary:disabled { opacity: .4; }
.stage { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stage .steps { display: flex; gap: 4px; }
.stage .steps i { width: 22px; height: 6px; border-radius: 3px; background: var(--panel-3); }
.stage .steps i.on { background: var(--accent); }
input[type=datetime-local], input[type=date], input[type=email], input[type=text], textarea { width: 100%; font: inherit; color: var(--ink); background: var(--panel-2); border: 0; border-radius: 16px; padding: 13px 14px; }
input[type=text].code { font-size: 22px; letter-spacing: .2em; text-align: center; font-weight: 800; }
textarea { min-height: 84px; resize: vertical; }
.avail-row { display: flex; align-items: center; gap: 8px; }
.avail-row input[type=date] { flex: 0 0 auto; width: auto; }
.seg-times { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.chip-btn { background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.chip-btn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.avail-row .rm { background: none; border: 0; color: var(--muted); font-size: 15px; padding: 6px; flex: 0 0 auto; }
.people-scores { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.people-scores img { width: 18px; height: 18px; border-radius: 50%; vertical-align: -4px; margin-right: 3px; }

/* evaluation */
.cat { padding: 10px 0; border-bottom: 1px solid var(--line); }
.cat:last-child { border-bottom: 0; }
.cat .lab { display: flex; justify-content: space-between; font-weight: 700; font-size: 14.5px; margin-bottom: 8px; letter-spacing: -.01em; }
.cat .lab small { color: var(--muted); font-weight: 500; }
.seg { display: flex; gap: 6px; touch-action: pan-y; position: relative; }
.seg i { flex: 1; height: 36px; border-radius: 12px; background: var(--panel-2); position: relative; transition: background .12s; }
.seg i.on { background: var(--accent); }
.seg i.them::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 6px; height: 6px; border-radius: 50%; background: var(--lilac); transform: translateX(-50%); border: 1px solid #8F7AD9; }
.seg-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.check { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.check:last-child { border-bottom: 0; }
.check .box { width: 26px; height: 26px; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; flex: 0 0 26px; background: var(--panel-2); }
.check.on .box { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.check .box svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; display: none; }
.check.on .box svg { display: block; }
.verdict { display: flex; gap: 8px; }
.verdict button { flex: 1; padding: 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-weight: 800; }
.verdict button.on[data-v=yes] { background: var(--mint); color: #1E5B3A; border-color: var(--mint); }
.verdict button.on[data-v=maybe] { background: #FFF0B3; color: #6B4E12; border-color: #FFF0B3; }
.verdict button.on[data-v=no] { background: #FFC7C0; color: #7F1D1D; border-color: #FFC7C0; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--panel-3); }
.photos button { aspect-ratio: 1; border-radius: 14px; border: 1.5px dashed var(--line); background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; }

/* weekly pick */
.pick { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 10px; }
.pick .box { width: 28px; height: 28px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); display: grid; place-items: center; flex: 0 0 28px; }
.pick.on .box { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pick .box svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; display: none; }
.pick.on .box svg { display: block; }
.pick .thumb { width: 66px; height: 58px; border-radius: 14px; background: var(--panel-3) center/cover; flex: 0 0 66px; }
.pick .info { flex: 1; min-width: 0; }
.pick .t1 { font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .t2 { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.counter { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin: 8px 4px; }
.counter b { color: var(--ink); font-size: 16px; }
.preview { font-size: 13px; white-space: pre-wrap; color: var(--muted); background: var(--panel-2); border-radius: 16px; padding: 12px; max-height: 180px; overflow: auto; }

/* profile & settings */
.phero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 0 16px; }
.phero img { width: 96px; height: 96px; border-radius: 50%; margin-bottom: 10px; }
.phero h2 { margin: 0; font-size: 26px; font-weight: 800; }
.phero .sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: 0; }
.setting .l { font-weight: 600; } .setting .l small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }
.segsm { display: flex; background: var(--panel-2); border-radius: 999px; padding: 3px; }
.segsm button { border: 0; background: transparent; padding: 7px 12px; border-radius: 999px; font-weight: 700; font-size: 12.5px; color: var(--muted); }
.segsm button.active { background: var(--ink); color: var(--bg); }
.segsm button img { width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; }
.setting a { font-weight: 700; }

/* sign in */
.auth .sheet-body { display: flex; flex-direction: column; justify-content: center; max-width: 440px; width: 100%; margin: 0 auto; }
.auth .logo-big { width: 84px; height: 84px; border-radius: 26px; margin: 0 auto 14px; display: block; }
.auth h1 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.04em; text-align: center; }
.auth p { text-align: center; color: var(--muted); margin: 6px 0 22px; }
.oauth { display: flex; gap: 8px; margin-bottom: 14px; }
.oauth button { flex: 1; padding: 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; }
.oauth button svg { width: 18px; height: 18px; }
.or { text-align: center; color: var(--muted); font-size: 12px; margin: 4px 0 12px; }
.guest { text-align: center; margin-top: 18px; }
.guest button { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
