/* public/app.css: the prototype <style> block, unchanged (docs/05 §1). GENERATED by scripts/build-app-js.py. */
:root{
  --bg:#F2F4EF; --surface:#FFFFFF; --surface-2:#F6F7F3; --ink:#1E2935; --muted:#5B6976; --line:#DCE1D8;
  --gold:#EFA20F; --gold-ink:#1E2935; --gold-soft:#FCEBC4; --red:#B8322A; --red-soft:#F7E0DD; --lime:#3B7A27; --lime-soft:#E2F0D7;
  --shadow:0 1px 2px rgba(30,41,53,.08);
  --display:'Bricolage Grotesque','Avenir Next','Segoe UI',system-ui,sans-serif;
  --body:'Instrument Sans','Helvetica Neue','Segoe UI',system-ui,-apple-system,sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#131920; --surface:#1B232D; --surface-2:#222C38; --ink:#EEF1EA; --muted:#9DAAB6; --line:#2E3945;
    --gold:#F5B53A; --gold-ink:#1A1F26; --gold-soft:#3A2F18; --red:#EF6F63; --red-soft:#3B2220; --lime:#94CF68; --lime-soft:#223219;
    --shadow:0 1px 2px rgba(0,0,0,.4); color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#131920; --surface:#1B232D; --surface-2:#222C38; --ink:#EEF1EA; --muted:#9DAAB6; --line:#2E3945;
  --gold:#F5B53A; --gold-ink:#1A1F26; --gold-soft:#3A2F18; --red:#EF6F63; --red-soft:#3B2220; --lime:#94CF68; --lime-soft:#223219;
  --shadow:0 1px 2px rgba(0,0,0,.4); color-scheme:dark;
}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;overflow-x:hidden}
button,input,select,textarea{font:inherit;color:inherit}
a{color:inherit}
img,svg{max-width:100%}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px;border-radius:6px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.wrap{max-width:1120px;margin:0 auto;padding:0 20px}
.ic{width:20px;height:20px;flex:none}
.muted{color:var(--muted)}

/* Header */
.top{position:sticky;top:0;z-index:30;background:var(--bg);background:color-mix(in srgb,var(--bg) 90%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.top-in{display:flex;align-items:center;gap:12px;height:64px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-family:var(--display);font-weight:800;font-size:25px;letter-spacing:-.03em}
.brand svg{width:34px;height:34px}
.nav-desk{display:flex;gap:2px;margin-left:16px}
.nav-link{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:10px;text-decoration:none;color:var(--muted);font-weight:500;position:relative}
.nav-link:hover{color:var(--ink);background:var(--surface-2)}
.nav-link.active{color:var(--ink);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
.top-right{margin-left:auto;display:flex;gap:8px;align-items:center}
.iconbtn{position:relative;width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:var(--surface);display:grid;place-items:center;cursor:pointer;text-decoration:none;color:var(--ink)}
.avatar{width:40px;height:40px;border-radius:50%;background:var(--ink);color:var(--bg);display:grid;place-items:center;font-weight:700;font-size:14px;text-decoration:none}
.badge{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--red);color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center;line-height:1}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 16px;border-radius:12px;border:1px solid var(--line);background:var(--surface);font-weight:600;cursor:pointer;text-decoration:none;white-space:nowrap;color:var(--ink)}
.btn:hover{border-color:var(--muted)}
.btn.gold{background:var(--gold);border-color:var(--gold);color:var(--gold-ink)}
.btn.gold:hover{filter:brightness(1.05)}
.btn.ink{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.btn.ghost{background:transparent;border-color:transparent}
.btn.ghost:hover{background:var(--surface-2)}
.btn.danger{color:var(--red)}
.btn.sm{height:34px;padding:0 12px;font-size:14px;border-radius:10px}
.btn.block{width:100%}
.btn:disabled{opacity:.55;cursor:not-allowed}
.bottom-nav{display:none}
@media (max-width:760px){
  .nav-desk{display:none}
  .top-in{height:58px}
  .hide-m{display:none !important}
  .bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:30;background:var(--surface);border-top:1px solid var(--line);padding:6px 6px calc(6px + env(safe-area-inset-bottom))}
  .bottom-nav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:600;padding:6px 0;text-decoration:none;color:var(--muted);border-radius:10px;position:relative}
  .bottom-nav a.active{color:var(--ink);background:var(--surface-2)}
  .bottom-nav .badge{top:0;right:calc(50% - 22px)}
  main{padding-bottom:84px}
}

/* Hero + clock */
.hero{padding:40px 0 8px}
.hero h1{font-family:var(--display);font-weight:800;font-size:clamp(34px,6.2vw,68px);line-height:1;letter-spacing:-.035em;margin:0;max-width:17ch;text-wrap:balance}
.hero h1 .l2{display:block;font-weight:500;letter-spacing:-.03em;margin-top:.12em}
.hero p{color:var(--muted);max-width:58ch;margin:16px 0 0;font-size:18px}
.hero-cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}

.tl{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:18px 18px 14px;margin-top:26px;--label:176px}
.tl-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:8px;flex-wrap:wrap}
.tl-head h2{font-family:var(--display);font-size:20px;margin:0;letter-spacing:-.01em}
.tl-legend{display:flex;gap:14px;font-size:13px;color:var(--muted)}
.tl-legend i{display:inline-block;width:14px;height:10px;border-radius:3px;margin-right:6px;vertical-align:middle}
.tl-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:6px 0 16px}
.tl-day{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:12px;padding:7px 2px;display:grid;gap:1px;justify-items:center;cursor:pointer;font:inherit;min-width:0}
.tl-day:hover{border-color:var(--muted)}
.tl-day b{font-size:15px;line-height:1.2}
.tl-day span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.tl-day.today span{color:var(--ink);font-weight:700}
.tl-day.none b{color:var(--muted)}
.tl-day.on{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.tl-day.on b{color:var(--bg)}
.tl-day.on span{color:var(--bg);opacity:.85}
.tl-back{background:none;border:0;padding:0;font:inherit;font-size:14px;font-weight:700;color:var(--ink);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.tl-body{display:grid;grid-template-columns:var(--label) minmax(0,1fr)}
.tl-names{position:relative;z-index:1;background:var(--surface);transition:box-shadow .15s}
.tl-body.scrolled .tl-names{box-shadow:10px 0 10px -10px rgba(0,0,0,.35)}
.tl-names-head{height:22px}
.tl-name{display:block;width:100%;height:38px;line-height:38px;border:0;background:none;padding:0 12px 0 0;text-align:left;font:inherit;font-weight:600;font-size:14px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.tl-name:hover{color:var(--ink)}
.tl-scroll{overflow-x:auto;overflow-y:hidden;min-width:0;overscroll-behavior-x:contain}
.tl-grid{position:relative;min-width:520px;padding-bottom:24px}
.tl-ticks{position:relative;height:22px;font-size:12px;color:var(--muted)}
.tl-ticks span{position:absolute;top:0;transform:translateX(-50%);white-space:nowrap}
.tl-ticks span:first-child{transform:none}
.tl-ticks span:last-child{transform:translateX(-100%)}
.tl-row{height:38px;padding:4px 0;cursor:pointer}
.tl-row:hover .tl-track{box-shadow:inset 0 0 0 1px var(--line)}
.tl-track{position:relative;height:30px;border-radius:8px;background-image:linear-gradient(to right,var(--line) 1px,transparent 1px);background-size:calc(100% / 6) 100%;background-color:var(--surface-2)}
.tl-bar{position:absolute;top:3px;bottom:3px;border-radius:7px;display:flex;align-items:center;padding:0 8px;font-size:12px;font-weight:700;overflow:hidden;white-space:nowrap;min-width:6px}
.tl-bar.on{background:var(--gold);color:var(--gold-ink)}
.tl-bar.soon,.tl-bar.later,.tl-bar.day{background:var(--gold-soft);color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--gold)}
.tl-bar.ended{background:var(--surface);color:var(--muted);box-shadow:inset 0 0 0 1px var(--line)}
.tl-bar.hit{padding-right:20px}
.tl-bar.hit::after{content:"";position:absolute;right:6px;top:50%;width:8px;height:8px;margin-top:-4px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 2px var(--surface)}
.tl-now{position:absolute;top:22px;bottom:18px;left:0;right:0;pointer-events:none}
.tl-now i{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:var(--red);border-radius:2px}
.tl-now i::after{content:attr(data-t);position:absolute;bottom:-20px;left:50%;transform:translateX(-50%);background:var(--red);color:#fff;font-size:11px;font-style:normal;font-weight:700;padding:1px 7px;border-radius:999px;white-space:nowrap}
.tl-empty{padding:18px 0 6px;color:var(--muted)}
.tl-note{font-size:14px;color:var(--muted);margin-top:4px}
.status.day{color:var(--ink)}
.sched .sel{color:var(--ink);font-weight:700}
.sched span.sel:not(.d){box-shadow:inset 0 -2px 0 var(--gold)}
@media (max-width:760px){.tl{--label:108px;padding:14px 12px 10px;border-radius:18px}.tl-name{font-size:13px}.tl-grid{min-width:460px}.tl-days{gap:4px}.tl-day{padding:6px 0;border-radius:10px}.tl-day b{font-size:14px}.tl-day span{font-size:11px}}

/* Explore tools */
.section-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:34px 0 12px}
.section-h h2{font-family:var(--display);font-size:24px;letter-spacing:-.015em;margin:0}
.tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:28px 0 16px}
.search{flex:1 1 280px;display:flex;align-items:center;gap:8px;height:46px;padding:0 14px;background:var(--surface);border:1px solid var(--line);border-radius:14px;color:var(--muted)}
.search:focus-within{border-color:var(--gold);box-shadow:0 0 0 3px var(--gold-soft)}
.search input{border:0;outline:0;background:none;flex:1;min-width:0;color:var(--ink)}
.chips{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.chip{height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);cursor:pointer;font-weight:600;font-size:14px;display:inline-flex;align-items:center;gap:6px;color:var(--ink);white-space:nowrap}
.chip:hover{border-color:var(--muted)}
.chip.active{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.chip .n{font-weight:500;opacity:.7}
.sel{height:36px;border-radius:999px;border:1px solid var(--line);background:var(--surface);padding:0 12px;font-size:14px;font-weight:600;cursor:pointer}
.scroll-x{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.scroll-x::-webkit-scrollbar{display:none}

/* Matches strip */
.mstrip{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 8px}
.mcard{flex:0 0 250px;background:var(--surface);border:1px solid var(--line);border-left:5px solid var(--lime);border-radius:14px;padding:12px 14px;text-align:left;cursor:pointer;color:var(--ink)}
.mcard:hover{border-color:var(--lime)}
.mcard .t{font-weight:700;display:flex;justify-content:space-between;gap:8px}
.mcard .r{font-size:14px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Restaurant cards */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}
@media (max-width:400px){.grid{grid-template-columns:1fr}}
.rcard{background:var(--surface);border:1px solid var(--line);border-radius:18px;display:flex;flex-direction:column;overflow:hidden;min-width:0}
.rcard.is-on{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold)}
.rcard-main{padding:16px 16px 12px;cursor:pointer;flex:1;border-radius:18px 18px 0 0}
.rcard-main:hover h3{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.rhead{display:flex;gap:12px;align-items:center}
.mono{width:50px;height:50px;border-radius:50%;background:var(--acc,#334155);color:#fff;display:grid;place-items:center;font-family:var(--display);font-weight:700;font-size:17px;flex:none;box-shadow:inset 0 0 0 3px rgba(255,255,255,.28),inset 0 0 0 5px rgba(0,0,0,.08)}
.mono.lg{width:64px;height:64px;font-size:22px;box-shadow:inset 0 0 0 4px rgba(255,255,255,.35)}
.rhead h3{margin:0;font-family:var(--display);font-size:19px;line-height:1.15;letter-spacing:-.01em}
.sub{margin:2px 0 0;color:var(--muted);font-size:14px}
.ftag{font-size:12px;font-weight:700;color:var(--gold-ink);background:var(--gold);padding:2px 8px;border-radius:999px;margin-left:auto;align-self:flex-start;white-space:nowrap}
.status{display:inline-flex;align-items:center;gap:7px;margin-top:12px;font-size:13px;font-weight:700;padding:4px 10px;border-radius:999px;background:var(--surface-2);color:var(--muted)}
.status.on{background:var(--gold);color:var(--gold-ink)}
.status.soon{background:var(--gold-soft);color:var(--ink)}
.status.later{color:var(--ink)}
.status .dot{width:7px;height:7px;border-radius:50%;background:currentColor}
.status.on .dot{animation:pulse 1.8s ease-in-out infinite}
@keyframes pulse{50%{opacity:.25}}
.deals{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:3px}
.deals li{display:flex;align-items:baseline;gap:8px;font-size:15px;padding:3px 8px;margin:0 -8px;border-radius:8px;min-width:0}
.deals li.hit{background:var(--lime-soft)}
.deals li.sim{box-shadow:inset 0 0 0 1px var(--lime)}
.deals .dn{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.leader{flex:1;border-bottom:2px dotted var(--line);transform:translateY(-5px);min-width:14px}
.dp{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.was{color:var(--muted);text-decoration:line-through;font-size:13px;font-weight:500;margin-right:5px}
.more{font-size:13px;color:var(--muted);margin-top:6px}
.mchips{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.mchip{font-size:12px;font-weight:700;padding:3px 9px;border-radius:999px;background:var(--lime-soft);color:var(--lime);display:inline-flex;gap:5px;align-items:center;white-space:nowrap}
.mchip.sim{background:transparent;box-shadow:inset 0 0 0 1px var(--lime)}
.mchip .ic{width:13px;height:13px}
.rfoot{display:flex;gap:2px;padding:8px 10px;border-top:1px solid var(--line);align-items:center}
.rfoot .spacer{flex:1}
.tbtn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 10px;border-radius:10px;border:0;background:none;cursor:pointer;color:var(--muted);font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap}
.tbtn:hover{background:var(--surface-2);color:var(--ink)}
.rating{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:700;color:var(--ink);white-space:nowrap}
.rating .ic{width:15px;height:15px;color:var(--gold);fill:var(--gold)}
.rating .n{color:var(--muted);font-weight:500}
.rating.new{color:var(--muted);font-weight:600}
.stars{position:relative;display:inline-flex;gap:2px;line-height:0}
.stars .row{display:inline-flex;gap:2px}
.stars .ic{width:18px;height:18px}
.stars .base .ic{color:var(--line);fill:var(--line)}
.stars .fill{position:absolute;inset:0 auto 0 0;overflow:hidden;white-space:nowrap}
.stars .fill .ic{color:var(--gold);fill:var(--gold)}
.rate-sum{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.rate-big{font-family:var(--display);font-size:44px;font-weight:800;line-height:1;letter-spacing:-.03em}
.rate-dist{flex:1;min-width:190px;display:grid;gap:4px}
.rate-dist div{display:grid;grid-template-columns:34px 1fr 30px;gap:8px;align-items:center;font-size:13px;color:var(--muted)}
.rate-dist .ic{width:12px;height:12px;color:var(--gold);fill:var(--gold);vertical-align:-1px}
.rate-dist i{height:8px;border-radius:4px;background:var(--surface-2);position:relative;overflow:hidden;box-shadow:inset 0 0 0 1px var(--line)}
.rate-dist i::after{content:"";position:absolute;inset:0;width:var(--w);background:var(--gold);border-radius:4px}
.rate-input{display:flex;gap:4px;margin:8px 0 4px}
.rate-input button{width:44px;height:44px;border:0;background:none;border-radius:10px;cursor:pointer;display:grid;place-items:center;color:var(--line);padding:0}
.rate-input button .ic{width:32px;height:32px;fill:currentColor;stroke-width:1.5}
.rate-input button.on{color:var(--gold)}
.rate-input:hover button{color:var(--gold)}
.rate-input button:hover ~ button{color:var(--line)}
.rate-input button:focus-visible{outline:3px solid var(--gold);outline-offset:0}
.dhead .rating{color:#fff;margin-top:10px}
.dhead .rating .n{color:rgba(255,255,255,.8)}
#pc-aud,#pc-plan,#bd-r-plan,#ap-plan{min-width:140px}
.plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin:0 0 16px}
.plan-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:20px;display:flex;flex-direction:column;gap:12px}
.plan-card.hi{border-color:var(--gold)}
.plan-card.current{box-shadow:0 0 0 2px var(--gold)}
.plan-top{display:flex;justify-content:space-between;align-items:center;gap:8px;font-family:var(--display);font-size:20px}
.plan-price{font-family:var(--display);font-size:40px;font-weight:800;letter-spacing:-.03em;line-height:1}
.plan-price span{font-size:15px;font-weight:500;color:var(--muted);letter-spacing:0}
.plan-feats{list-style:none;margin:0;padding:0;display:grid;gap:7px;flex:1}
.plan-feats li{display:flex;gap:8px;align-items:flex-start;font-size:15px}
.plan-feats .ic{width:16px;height:16px;color:var(--lime);margin-top:3px;flex:none;stroke-width:3}
.plan-now{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.plan-now-name{font-family:var(--display);font-size:24px;font-weight:700}
.plan-badge{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;padding:3px 10px;border-radius:999px;background:var(--gold-soft);color:var(--ink)}
.plan-badge .ic{width:14px;height:14px;fill:var(--gold);color:var(--gold)}
.locked{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px;padding:12px 14px;border:1px dashed var(--line);border-radius:14px;background:var(--surface-2)}
.locked > div{flex:1 1 200px;display:grid}.locked span{font-size:14px;color:var(--muted)}
.locked-panel h2 .ic{width:18px;height:18px;vertical-align:-2px}
.promo-ok{color:var(--lime);font-weight:600}.promo-bad{color:var(--red);font-weight:600}
.co-line{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line)}
.co-apple{background:#000;color:#fff;border-color:#000}
.mo-pill{display:inline-flex;align-items:center;gap:6px;margin-top:10px;font-size:12px;font-weight:700;padding:3px 9px;border-radius:999px;background:var(--ink);color:var(--bg)}
.mo-pill .ic{width:13px;height:13px}
.mo-banner{display:flex;gap:12px;align-items:center;background:var(--gold-soft)}
.mo-banner > .ic{width:26px;height:26px;flex:none}
.mo-banner span{display:block;font-size:14px;color:var(--muted)}
.member-price{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:700;padding:2px 8px;border-radius:999px;background:var(--ink);color:var(--bg)}
.member-price .ic{width:12px;height:12px}
.mo-dash{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;background:var(--gold-soft);border-color:var(--gold)}
.mo-code{font-family:var(--display);font-size:38px;font-weight:800;letter-spacing:.2em}
.pass{position:relative;width:min(380px,100%);border-radius:26px;padding:26px 24px;color:#fff;background:linear-gradient(145deg,#1E2935,#3a2a12 60%,#EFA20F);box-shadow:0 30px 60px rgba(0,0,0,.45);text-align:center;overflow:hidden}
.pass::after{content:"";position:absolute;inset:-40%;background:linear-gradient(115deg,transparent 40%,rgba(255,255,255,.18) 50%,transparent 60%);animation:pass-shine 3s linear infinite}
@keyframes pass-shine{from{transform:translateX(-30%)}to{transform:translateX(30%)}}
.pass-top{display:flex;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:14px;opacity:.9}.pass-top svg{width:28px;height:28px}
.pass h2{font-family:var(--display);font-size:30px;margin:16px 0 4px;letter-spacing:-.02em}
.pass-offer{font-family:var(--display);font-size:24px;font-weight:800;color:#FFD27A}
.pass-rest{opacity:.9;margin-top:2px}
.pass-live{display:inline-flex;align-items:center;gap:8px;margin:18px 0 10px;font-size:28px;font-weight:700;font-variant-numeric:tabular-nums}
.pass-dot{width:10px;height:10px;border-radius:50%;background:#86efac;animation:pulse 1s ease-in-out infinite}
.pass-code{display:inline-grid;gap:2px;padding:10px 18px;border-radius:14px;background:rgba(0,0,0,.25)}
.pass-code span{font-size:12px;opacity:.85}.pass-code b{font-family:var(--display);font-size:32px;letter-spacing:.25em}
.pass-terms{font-size:13px;opacity:.85;margin:12px 0 0;position:relative;z-index:1}
@media (prefers-reduced-motion: reduce){.pass::after,.pass-dot{animation:none}}
.interval-seg{margin:0 0 14px;width:max-content;max-width:100%}
.save-tag{display:inline-block;margin-left:4px;padding:1px 6px;border-radius:999px;background:var(--gold-soft);color:var(--gold-ink);font-size:12px;font-weight:700}
.invite-link{display:flex;gap:6px;margin-top:6px}
.invite-link .input{height:34px;font-size:13px;min-width:0;flex:1}
.danger-zone{border-color:var(--red)}
.danger-zone h2{color:var(--red)}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.panel-head h2{margin:0 0 6px}
.dash-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px}
.dash-top .spacer{flex:1}
.rswitch select{min-width:220px;max-width:100%;font-weight:600}
.sheet.wide{width:min(780px,100%)}
.sheet.wide .seg button{white-space:normal;height:auto;min-height:36px;padding:6px 10px;line-height:1.2}
.imp-head{position:sticky;top:0;z-index:3;display:flex;align-items:flex-start;gap:12px;justify-content:space-between;padding:18px 20px 14px;background:var(--bg);border-bottom:1px solid var(--line)}
.imp-head h2{font-family:var(--display);font-size:24px;letter-spacing:-.02em;margin:0;line-height:1.15}
.imp-pick{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.imp-btn{display:grid;justify-items:center;gap:4px;padding:18px 10px;border:1.5px dashed var(--line);border-radius:16px;background:var(--surface);cursor:pointer;text-align:center}
.imp-btn:hover,.imp-btn:focus-within{border-color:var(--gold);background:var(--gold-soft)}
.imp-btn .ic{width:28px;height:28px;color:var(--ink)}
.imp-btn span{font-size:13px;color:var(--muted)}
.imp-files{display:grid;gap:8px;margin-top:14px}
.imp-file{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.imp-file img{width:48px;height:48px;object-fit:cover;border-radius:8px}
.imp-pdf{width:48px;height:48px;border-radius:8px;background:var(--surface-2);display:grid;place-items:center;font-size:11px;font-weight:700;color:var(--muted)}
.imp-pdf .ic{width:18px;height:18px}
.imp-file .nm{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}
.imp-foot{position:sticky;bottom:0;z-index:3;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line)}
.imp-foot .spacer{flex:1}
.imp-err{color:var(--red);font-weight:600;font-size:14px;flex:1 1 220px}
.imp-reading{text-align:center;padding:48px 20px}
.imp-reading h3{font-family:var(--display);font-size:22px;margin:16px 0 4px}
.imp-spinner{width:44px;height:44px;margin:0 auto;border-radius:50%;border:4px solid var(--gold-soft);border-top-color:var(--gold);animation:imp-spin .9s linear infinite}
@keyframes imp-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion: reduce){.imp-spinner{animation:none;border-top-color:var(--gold)}}
.imp-hours{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.imp-rows{display:grid;gap:10px;padding:0 20px}
.imp-row{border:1px solid var(--line);border-radius:14px;padding:10px 14px 4px;background:var(--surface)}
.imp-row.warn{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold)}
.imp-row.off{background:var(--surface-2);opacity:.85;padding-bottom:10px}
.imp-row-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.imp-row-top .spacer{flex:1}
.imp-inc input{width:22px;height:22px;accent-color:var(--gold);cursor:pointer;margin:0;vertical-align:middle}
.imp-row .row{align-items:flex-end}
.imp-meta{display:grid;gap:3px;font-size:13px;color:var(--muted);margin:-4px 0 10px}
.imp-issue{color:var(--red);font-weight:600}
.imp-callout{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:var(--gold-soft);border-color:var(--gold)}
.imp-callout > div:first-child .ic{width:30px;height:30px}
.imp-callout .t{flex:1 1 240px;display:grid}
.imp-callout .t span{color:var(--muted);font-size:14px}
@media (max-width:760px){.imp-pick{grid-template-columns:1fr}.imp-rows{padding:0 12px}.imp-head{padding:14px 14px 12px}}
.locbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.locpill{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:6px 14px 6px 12px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font:inherit;font-size:15px;color:var(--ink);cursor:pointer;max-width:100%;text-align:left;flex-wrap:wrap}
.locpill:hover{border-color:var(--muted)}
.locpill .ic{width:18px;height:18px;color:var(--red)}
.locpill .ic.sm{width:16px;height:16px;color:var(--muted)}
.locpill .muted{font-weight:500}
.locpill.unset{border-style:dashed}
.rmeta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:2px}
.dist{display:inline-flex;align-items:center;gap:3px;font-size:13px;font-weight:600;color:var(--muted);white-space:nowrap}
.dist .ic{width:14px;height:14px}
.or{display:flex;align-items:center;gap:10px;margin:16px 0 12px;color:var(--muted);font-size:13px;font-weight:600}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}
.city-results{margin-top:6px;max-height:260px;overflow:auto}
.city-opt{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border:0;border-radius:10px;background:none;font:inherit;color:var(--ink);cursor:pointer;text-align:left}
.city-opt:hover{background:var(--surface-2)}
.city-opt.on{background:var(--gold-soft)}
.city-opt .ic{width:18px;height:18px;color:var(--muted);flex:none}
.city-opt .ct{flex:1;font-weight:600}
.city-opt .cn{font-size:13px;color:var(--muted)}
.geo-ok{color:var(--lime);font-weight:600;display:inline-flex;align-items:center;gap:4px}
.geo-ok .ic{width:14px;height:14px}
.geo-warn{color:var(--red);font-weight:600}
.tbtn.fav-on{color:var(--red)}
.tbtn.fav-on svg{fill:currentColor}
.tbtn.bell-on{color:var(--ink)}
.tbtn.bell-on svg{fill:var(--gold)}
.tbtn .ic{width:18px;height:18px}

/* Overlay / sheet / dialog */
.overlay{position:fixed;inset:0;z-index:50;background:rgba(12,17,23,.5);display:flex;justify-content:flex-end}
.overlay.anim{animation:fade .16s ease-out}
.overlay.center{align-items:center;justify-content:center;padding:16px}
@keyframes fade{from{opacity:0}}
@keyframes slide{from{transform:translateX(40px);opacity:.4}}
@keyframes rise{from{transform:translateY(40px);opacity:.4}}
.sheet{width:min(600px,100%);height:100%;background:var(--bg);display:flex;flex-direction:column;box-shadow:-20px 0 60px rgba(0,0,0,.18)}
.anim .sheet{animation:slide .22s ease-out}
.sheet-body{overflow-y:auto;flex:1;overscroll-behavior:contain}
.dialog{width:min(460px,100%);background:var(--surface);border-radius:22px;padding:26px;max-height:calc(100vh - 32px);overflow:auto;position:relative}
.anim .dialog{animation:rise .2s ease-out}
@media (max-width:760px){
  .overlay:not(.center){align-items:flex-end}
  .sheet{height:94vh;border-radius:22px 22px 0 0;overflow:hidden}
  /* WebKit doesn't clip a composited scroller to an ancestor's radius, so content painted above the
     sheet's top edge (seen on an iPhone, kit v28). The scroller carries the radius itself. */
  .sheet-body{border-radius:22px 22px 0 0}
  .anim .sheet{animation:rise .22s ease-out}
}
.dhead{background:var(--acc,#334155);color:#fff;padding:22px 20px 22px;position:relative}
.dhead .mono{background:rgba(255,255,255,.16)}
.dhead h2{font-family:var(--display);font-size:32px;margin:14px 0 2px;letter-spacing:-.025em;line-height:1.05;padding-right:40px}
.dhead p{margin:0;opacity:.88}
.dhead .status{background:rgba(255,255,255,.18);color:#fff}
.dhead .status.on{background:var(--gold);color:var(--gold-ink)}
.dclose{position:absolute;top:14px;right:14px;width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.18);border:0;color:#fff;display:grid;place-items:center;cursor:pointer}
.dclose:hover{background:rgba(255,255,255,.3)}
.dactions{display:flex;gap:8px;flex-wrap:wrap;padding:14px 20px;border-bottom:1px solid var(--line);background:var(--surface)}
.dactions .btn.on-fav{color:var(--red);border-color:var(--red)}
.dactions .btn.on-fav svg{fill:currentColor}
.dactions .btn.on-bell{border-color:var(--gold);background:var(--gold-soft)}
.dactions .btn.on-bell svg{fill:var(--gold)}
.dsec{padding:20px;border-bottom:1px solid var(--line)}
.dsec h3{font-family:var(--display);font-size:19px;margin:0 0 10px;letter-spacing:-.01em}
.sched{display:grid;grid-template-columns:52px 1fr;gap:5px 14px;font-size:15px}
.sched .d{color:var(--muted);font-weight:600}
.sched .today{color:var(--ink);font-weight:700}
.sched .today+span{font-weight:700}
.loc{display:flex;gap:12px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.loc:first-of-type{border-top:0}
.loc .ic{color:var(--muted)}
.loc-t{flex:1;min-width:0}
.loc-t b{display:block;font-size:15px}
.loc-t span{font-size:14px;color:var(--muted)}
.menu-group{margin-top:6px}
.menu-group h4{font-size:14px;color:var(--muted);margin:14px 0 4px;font-weight:700}
.mi{display:flex;gap:10px;padding:10px 12px;margin:0 -12px;border-radius:12px;align-items:flex-start}
.mi.hit{background:var(--lime-soft)}
.mi.sim{box-shadow:inset 0 0 0 1px var(--lime)}
.mi-main{flex:1;min-width:0;cursor:pointer;background:none;border:0;padding:0;text-align:left}
.mi-top{display:flex;gap:8px;align-items:baseline}
.mi-name{font-weight:700}
.mi-desc{color:var(--muted);font-size:14px;margin-top:2px}
.mi-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;align-items:center}
.save{font-size:12px;font-weight:700;color:var(--lime)}
.dayonly{font-size:12px;font-weight:700;padding:2px 8px;border-radius:999px;background:var(--gold-soft);color:var(--ink)}
.likebtn{width:36px;height:36px;border-radius:10px;border:0;background:none;cursor:pointer;color:var(--muted);display:grid;place-items:center;flex:none}
.likebtn:hover{background:var(--surface-2);color:var(--red)}
.likebtn.on{color:var(--red)}
.likebtn.on svg{fill:currentColor}

/* Forms */
.field{display:grid;gap:6px;margin-bottom:14px;min-width:0}
.lbl{font-size:14px;font-weight:700}
.input{height:44px;border:1px solid var(--line);border-radius:11px;background:var(--surface);padding:0 12px;width:100%;min-width:0}
.input:focus{outline:0;border-color:var(--gold);box-shadow:0 0 0 3px var(--gold-soft)}
textarea.input{height:auto;padding:10px 12px;min-height:84px;resize:vertical;line-height:1.45}
select.input{cursor:pointer}
.help{font-size:13px;color:var(--muted)}
.err{background:var(--red-soft);color:var(--red);padding:10px 12px;border-radius:10px;font-size:14px;font-weight:600;margin-bottom:14px}
.legal{max-width:76ch}
.legal h2{font-family:var(--display);font-size:30px;letter-spacing:-.02em;margin:0 0 6px}
.legal h3{font-family:var(--display);font-size:21px;letter-spacing:-.01em;margin:30px 0 8px}
.legal h4{font-size:17px;margin:20px 0 6px}
.legal p{margin:0 0 12px;line-height:1.6}
.legal ul{margin:0 0 14px;padding-left:22px}
.legal li{margin-bottom:6px;line-height:1.55}
.legal-table{overflow-x:auto;margin:0 0 16px;border:1px solid var(--line);border-radius:12px}
.legal-table table{border-collapse:collapse;width:100%;font-size:14px}
.legal-table th,.legal-table td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top}
.legal-table th{background:var(--surface-2);font-weight:700}
.legal-table tr:last-child td{border-bottom:0}
.consent{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);margin:14px 0;cursor:pointer}
.consent input{appearance:auto;-webkit-appearance:auto;width:20px;height:20px;margin:2px 0 0;flex:none;accent-color:var(--gold);cursor:pointer}
.consent span{font-size:14px;line-height:1.45}
.consent.bad{border-color:var(--red)}
.disclosure{border:1px solid var(--line);border-radius:12px;padding:14px;background:var(--surface-2);margin:8px 0 0}
.disclosure li{font-size:14px;line-height:1.5;margin-bottom:6px}
.disclosure ul{margin:0;padding-left:20px}
.foot-links{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:8px}
.foot-links a{color:var(--muted);font-weight:600}
.seg{display:flex;gap:4px;background:var(--surface-2);padding:4px;border-radius:12px;border:1px solid var(--line);max-width:100%;min-width:0}
.seg button{flex:1;border:0;background:none;height:36px;padding:0 12px;border-radius:9px;cursor:pointer;font-weight:600;color:var(--muted);white-space:nowrap}
.seg button.active{background:var(--surface);color:var(--ink);box-shadow:var(--shadow),0 0 0 1px var(--line)}
.role-pick{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
.role-opt{border:1.5px solid var(--line);border-radius:14px;padding:14px;text-align:left;background:var(--surface);cursor:pointer;color:var(--ink)}
.role-opt.active{border-color:var(--gold);background:var(--gold-soft)}
.role-opt strong{display:block;font-size:15px;margin:6px 0 2px}
.role-opt span{font-size:13px;color:var(--muted);line-height:1.35;display:block}
.dialog h2{font-family:var(--display);font-size:28px;letter-spacing:-.02em;margin:10px 0 4px;line-height:1.1}
.dialog .x{position:absolute;top:14px;right:14px}
.switch{display:flex;align-items:center;gap:12px;padding:10px 0;cursor:pointer}
.switch input{appearance:none;-webkit-appearance:none;width:44px;height:26px;border-radius:999px;background:var(--line);position:relative;cursor:pointer;flex:none;transition:background .15s;margin:0}
.switch input::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .15s;box-shadow:0 1px 2px rgba(0,0,0,.25)}
.switch input:checked{background:var(--lime)}
.switch input:checked::after{transform:translateX(18px)}
.switch span b{display:block;font-size:15px}
.switch span small{color:var(--muted);font-size:13px}

/* Pages */
.page{padding-top:30px;padding-bottom:60px}
.page-h{font-family:var(--display);font-size:clamp(30px,4.4vw,44px);letter-spacing:-.03em;margin:0 0 6px;line-height:1.05}
.page-sub{color:var(--muted);margin:0 0 24px;max-width:62ch}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:20px;margin-bottom:16px}
.panel h2{font-family:var(--display);font-size:21px;margin:0 0 4px;letter-spacing:-.01em}
.panel > .help:first-of-type{margin-bottom:14px}
.two{display:grid;grid-template-columns:1.2fr .8fr;gap:16px;align-items:start}
@media (max-width:900px){.two{grid-template-columns:1fr}}
.tabs{display:flex;gap:2px;overflow-x:auto;border-bottom:1px solid var(--line);margin-bottom:22px;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tab{border:0;background:none;padding:10px 14px;font-weight:700;color:var(--muted);cursor:pointer;border-bottom:3px solid transparent;white-space:nowrap;margin-bottom:-1px}
.tab.active{color:var(--ink);border-color:var(--gold)}
.stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;margin-bottom:16px}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px 16px}
.stat b{display:block;font-family:var(--display);font-size:32px;line-height:1.1;letter-spacing:-.02em}
.stat span{color:var(--muted);font-size:14px}
.table-wrap{overflow-x:auto;margin:0 -20px;padding:0 20px}
table{border-collapse:collapse;width:100%;font-size:14px}
th,td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap;vertical-align:middle}
th{color:var(--muted);font-weight:700;font-size:13px}
td .btn.sm{height:30px}
.pill{font-size:12px;font-weight:700;padding:2px 9px;border-radius:999px;background:var(--surface-2);white-space:nowrap;display:inline-block}
.pill.ok{background:var(--lime-soft);color:var(--lime)}
.pill.bad{background:var(--red-soft);color:var(--red)}
.pill.gold{background:var(--gold-soft);color:var(--ink)}
.daypick{display:flex;gap:4px;flex-wrap:wrap}
.daypick button{min-width:42px;height:34px;border-radius:9px;border:1px solid var(--line);background:var(--surface);cursor:pointer;font-size:13px;font-weight:700;color:var(--muted)}
.daypick button.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.editrow{border:1px solid var(--line);border-radius:14px;padding:14px 14px 4px;margin-bottom:12px;background:var(--surface-2);position:relative}
.editrow .rm{position:absolute;top:8px;right:8px}
.editrow .row{align-items:flex-end}
.deal-prev{margin:-2px 0 12px;padding:8px 10px;border-radius:10px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
.deal-prev b{color:var(--ink)}
.deal-prev s{color:var(--muted);font-weight:500}
.deal-warn{color:var(--red);font-weight:600}
.row{display:flex;gap:10px;flex-wrap:wrap}
.row>.field{flex:1 1 150px}
/* A segmented control can't shrink below its labels: squeezed into a 150px column its buttons spill
   out of the pill and off the screen (seen on an iPhone at 414px, kit v28). Give it a whole row on a
   phone. This must come after .row>.field: same specificity, so the later rule wins. */
@media (max-width:760px){.row>.seg-field{flex:1 1 100%}}
.row>.field.sm{flex:0 1 110px}
.row>.field.lg{flex:2 1 240px}
.tv-pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);color:var(--ink);margin-top:10px;max-width:100%}
.tv-pill svg{width:14px;height:14px;flex:none}
.tv-line{display:flex;align-items:center;gap:6px;margin-top:2px;font-size:13px;color:var(--muted)}
.tv-line svg{width:14px;height:14px;flex:none}
.tv-filter{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-weight:600}
.tv-filter svg{width:16px;height:16px}
.tv-filter.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.clash{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border:1px solid var(--gold);background:var(--gold-soft);border-radius:12px;margin-top:14px}
.clash div{flex:1;display:flex;flex-direction:column;gap:2px}
.clash b{font-size:14px}
.clash span{font-size:13px;color:var(--muted)}
.savebar{position:sticky;bottom:0;display:flex;align-items:center;gap:12px;justify-content:flex-end;padding:14px 0;background:var(--bg);border-top:1px solid var(--line);margin-top:8px;z-index:5}
@media (max-width:760px){.savebar{bottom:66px}}
.unsaved{color:var(--muted);font-size:14px;margin-right:auto;visibility:hidden;font-weight:600}
.savebar.dirty .unsaved{visibility:visible}
.banner{display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:var(--gold-soft);border:1px solid var(--gold);border-radius:16px;padding:14px 16px;margin-bottom:16px}
.banner .t{flex:1 1 260px}
.banner.bad{background:var(--red-soft);border-color:var(--red)}
.empty{text-align:center;padding:44px 20px;color:var(--muted);background:var(--surface);border:1px dashed var(--line);border-radius:18px}
.empty h3{color:var(--ink);font-family:var(--display);font-size:22px;margin:0 0 6px;letter-spacing:-.01em}
.empty p{margin:0 auto 16px;max-width:44ch}
.note{display:flex;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line);cursor:pointer;align-items:flex-start;background:var(--surface);width:100%;border-left:0;border-right:0;border-top:0;text-align:left;color:var(--ink)}
.note:last-child{border-bottom:0}
.note:hover{background:var(--surface-2)}
.note.unread{background:var(--gold-soft)}
.note .mono{width:40px;height:40px;font-size:14px}
.note b{display:block}
.note p{margin:2px 0 0;color:var(--muted);font-size:14px}
.note time{font-size:12px;color:var(--muted);white-space:nowrap}
.list{border:1px solid var(--line);border-radius:18px;overflow:hidden}
.kwchips{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.kwchip{display:inline-flex;align-items:center;gap:2px;background:var(--lime-soft);color:var(--lime);font-weight:700;padding:3px 4px 3px 12px;border-radius:999px;font-size:14px}
.kwchip button{border:0;background:none;color:inherit;cursor:pointer;width:26px;height:26px;border-radius:50%;display:grid;place-items:center}
.kwchip button:hover{background:rgba(0,0,0,.08)}
.kwchip .ic{width:14px;height:14px}
.suggest{display:flex;flex-wrap:wrap;gap:6px}
.suggest .chip{height:32px;font-size:13px}
.check{display:flex;gap:10px;align-items:center;padding:6px 0;font-size:15px}
.check .box{width:22px;height:22px;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center;flex:none}
.check.done{color:var(--muted)}
.check.done .box{background:var(--lime);border-color:var(--lime);color:#fff}
.check .box .ic{width:13px;height:13px;stroke-width:3}
.chart{width:100%;height:auto;display:block}
.chart text{fill:var(--muted);font-size:10px;font-family:var(--body)}
.bars-h{display:grid;gap:8px}
.bars-h .b{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;font-size:14px}
.bars-h .b i{grid-column:1/-1;height:8px;border-radius:4px;background:var(--surface-2);position:relative;overflow:hidden}
.bars-h .b i::after{content:"";position:absolute;inset:0;width:var(--w);background:var(--gold);border-radius:4px}
.swatches{display:flex;gap:8px;flex-wrap:wrap}
.swatches button{width:34px;height:34px;border-radius:50%;border:0;cursor:pointer;box-shadow:inset 0 0 0 3px rgba(255,255,255,.3)}
.swatches button.on{outline:3px solid var(--ink);outline-offset:2px}
.foot{color:var(--muted);font-size:13px;padding:10px 0 40px;text-align:center}
/* Phones: the footer follows main, outside its padding, so it must clear the fixed bottom nav itself.
   This rule must come after .foot above: a media query adds no specificity (VPS finding, kit v16). */
@media (max-width:760px){.foot{padding-bottom:calc(96px + env(safe-area-inset-bottom))}}
.foot-theme{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:12px;flex-wrap:wrap}
.foot-theme .seg{width:max-content;max-width:100%}
.appearance-seg{width:max-content;max-width:100%}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(16px);background:var(--ink);color:var(--bg);padding:12px 18px;border-radius:14px;font-weight:600;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:90;max-width:calc(100% - 32px);box-shadow:0 12px 30px rgba(0,0,0,.25)}
.toast.show{opacity:1;transform:translateX(-50%)}
@media (max-width:760px){.toast{bottom:88px}}
.loading{min-height:70vh;display:grid;place-items:center;text-align:center;color:var(--muted)}
.loading svg{width:64px;height:64px;animation:tilt 1.4s ease-in-out infinite;transform-origin:50% 80%}
@keyframes tilt{50%{transform:rotate(-12deg)}}
.inline-link{background:none;border:0;padding:0;color:var(--ink);font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation:none !important;transition:none !important}}
