:root {
  --bg: #f2f2f7; --card: #fff; --card2: #e9e9ee; --text: #000; --text2: rgba(60,60,67,.62); --text3: rgba(60,60,67,.35);
  --sep: rgba(60,60,67,.16); --fill: rgba(120,120,128,.12); --fill2: rgba(120,120,128,.2);
  --tint: #007aff; --red: #ff3b30; --green: #34c759; --orange: #ff9500; --pink: #ff2d55;
  --bar: rgba(249,249,249,.82); --sheet: #f2f2f7; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.06);
  --r: 14px; --tabh: 54px;
  --sat: env(safe-area-inset-top); --sab: env(safe-area-inset-bottom);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000; --card: #1c1c1e; --card2: #2c2c2e; --text: #fff; --text2: rgba(235,235,245,.62); --text3: rgba(235,235,245,.3);
    --sep: rgba(84,84,88,.55); --fill: rgba(120,120,128,.24); --fill2: rgba(120,120,128,.36);
    --tint: #0a84ff; --red: #ff453a; --green: #30d158; --orange: #ff9f0a; --pink: #ff375f;
    --bar: rgba(22,22,24,.82); --sheet: #1c1c1e; --shadow: none;
  }
  .sheet .group, .sheet .search.in-sheet { background: var(--card2) !important; }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", sans-serif;
  letter-spacing: -.01em; overscroll-behavior-y: none;
}
body.locked { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3, p { margin: 0; }
em { font-style: normal; }
.muted { color: var(--text2); font-weight: 400; }
.tint { color: var(--tint) !important; }
.red { color: var(--red); }
.center { text-align: center; display: block; margin-inline: auto; }

#view { padding: calc(var(--sat) + 8px) 16px calc(var(--tabh) + var(--sab) + 28px); max-width: 640px; margin: 0 auto; min-height: 100vh; }

/* Large title header */
.lt { padding: 10px 2px 10px; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .02em; }
.eyebrow .link { text-transform: none; font-size: 13px; }
.lt-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.lt h1 { font-size: 32px; font-weight: 800; letter-spacing: -.025em; line-height: 1.12; min-width: 0; }
.lt-act { display: flex; gap: 8px; align-items: center; flex: none; }
.iconbtn { width: 36px; height: 36px; border-radius: 50%; background: var(--fill); color: var(--tint); display: grid; place-items: center; }
.iconbtn svg { width: 20px; height: 20px; stroke-width: 2.4; }

/* Section headers & grouped lists */
.sec { font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--text2); margin: 26px 16px 7px; display: flex; align-items: center; gap: 8px; letter-spacing: .01em; }
.sec .link { margin-left: auto; text-transform: none; }
.sec.big { font-size: 20px; text-transform: none; color: var(--text); font-weight: 700; margin: 28px 4px 8px; flex-wrap: wrap; letter-spacing: -.015em; }
.sec.big small { font-size: 13px; font-weight: 500; color: var(--text2); width: 100%; }
.group { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.foot { font-size: 13px; color: var(--text2); margin: 10px 16px; }
.count { font-size: 13px; color: var(--text2); margin: 14px 16px 6px; }
.link { color: var(--tint); font-weight: 500; }
.link.sm { font-size: 15px; }

.row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; min-height: 52px; position: relative; width: 100%; text-align: left; cursor: pointer; }
.row + .row::before, .row + .rank::before, .rank + .rank::before, .flight + .flight::before, .frow + .frow::before, .fcol + .fcol::before, .fcol + .frow::before, .frow + .fcol::before {
  content: ""; position: absolute; top: 0; right: 0; left: 16px; border-top: .5px solid var(--sep);
}
.row:active, .rank .rk-main:active { background: var(--fill); }
.row > svg:last-child { width: 16px; height: 16px; color: var(--text3); stroke-width: 2.5; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row-t { font-size: 16px; font-weight: 500; line-height: 1.25; }
.row-s { font-size: 13.5px; color: var(--text2); line-height: 1.3; }
.row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; max-width: 42%; }
.row.is-done .row-t { color: var(--text2); }
.row .time { width: 74px; flex: none; white-space: nowrap; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; }
.row .time small { font-weight: 400; color: var(--text2); font-size: 12px; }
.row .bar { width: 4px; align-self: stretch; border-radius: 2px; background: var(--c); flex: none; margin: 2px 0; }
.link-row { color: var(--tint); }
.link-row svg:first-child { color: var(--tint); }
.empty-row { padding: 14px 16px; color: var(--text2); font-size: 15px; }

.ic { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; font-size: 18px;
  background: color-mix(in srgb, var(--c) 16%, transparent); }
.ic.big { width: 48px; height: 48px; border-radius: 12px; font-size: 26px; }

.pill { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 99px; white-space: nowrap; background: var(--fill); color: var(--text2); }
.pill.tint { background: color-mix(in srgb, var(--tint) 14%, transparent); color: var(--tint); }
.pill.green { background: color-mix(in srgb, var(--green) 18%, transparent); color: color-mix(in srgb, var(--green) 75%, var(--text)); }
.pill.sm { font-size: 11px; padding: 2px 6px; }
.vp { font-size: 12px; font-weight: 600; color: var(--text2); white-space: nowrap; }

.av { width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: -.02em; display: inline-grid; place-items: center; flex: none; }
.av.xs { width: 22px; height: 22px; font-size: 9.5px; }
.av.lg { width: 72px; height: 72px; font-size: 30px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 16px; border-radius: 12px;
  background: var(--tint); color: #fff; font-weight: 600; font-size: 16px; }
.btn svg { width: 19px; height: 19px; stroke-width: 2.2; }
.btn.tinted { background: color-mix(in srgb, var(--tint) 15%, transparent); color: var(--tint); }
.btn.ghost { background: var(--fill); color: var(--text); }
.btn.danger { background: color-mix(in srgb, var(--red) 13%, transparent); color: var(--red); }
.btn.wide { width: 100%; margin-top: 14px; }
.btn:active, .iconbtn:active, .chip:active, .dchip:active, .act:active, .vb:active { transform: scale(.97); opacity: .85; }
.btnrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

/* Segmented controls */
.seg { display: inline-flex; background: var(--fill); border-radius: 9px; padding: 2px; }
.seg button { padding: 6px 14px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--text); }
.seg button.on { background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.14); font-weight: 600; }
@media (prefers-color-scheme: dark) { .seg button.on { background: #636366; } }
.seg.sm button { padding: 5px 11px; font-size: 13px; }
.seg.wide { display: flex; margin: 4px 0 16px; }
.seg.wide button { flex: 1; padding: 8px; }

/* Cards */
.card { background: var(--card); border-radius: 18px; padding: 16px; margin-top: 12px; box-shadow: var(--shadow); }
.card.hero { text-align: center; padding: 28px 20px; }
.card.hero h2 { font-size: 20px; margin: 6px 0 4px; }
.card.hero .btn { margin-top: 16px; }
.big-emoji { font-size: 44px; line-height: 1.1; }
.sub { color: var(--text2); font-size: 15px; }
.kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--tint); letter-spacing: .02em; display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.focus.secondary .kicker { color: var(--text2); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.fc-main { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.fc-main h2 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.prog { height: 5px; border-radius: 3px; background: var(--fill); margin-top: 14px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--tint); border-radius: 3px; }

.alerts { display: grid; gap: 8px; margin-top: 4px; }
.alert { background: color-mix(in srgb, var(--orange) 14%, var(--card)); border-radius: 12px; padding: 11px 14px; font-size: 15px; line-height: 1.35; }
.alert.warn { background: color-mix(in srgb, var(--red) 12%, var(--card)); margin: 10px 0; }

/* Weather */
.wx { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.wxd { background: var(--card); border-radius: 14px; padding: 10px 2px 8px; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 15px; font-weight: 600; box-shadow: var(--shadow); }
.wxd b { font-size: 12px; color: var(--text2); font-weight: 600; text-transform: uppercase; }
.wxd.on { outline: 2px solid var(--tint); outline-offset: -2px; }
.wxi { font-size: 22px; line-height: 1.3; }
.wxd small { color: var(--text2); font-weight: 500; font-size: 13px; }
.wxd em { font-size: 11px; color: var(--tint); font-weight: 600; }

/* Sticky bars */
.sticky { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  margin: 0 -16px; padding: calc(var(--sat) + 6px) 16px 8px; }

/* Calendar */
.daystrip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.dchip { display: flex; flex-direction: column; align-items: center; padding: 6px 0 4px; border-radius: 14px; }
.dchip small { font-size: 12px; font-weight: 600; color: var(--text2); text-transform: uppercase; }
.dchip b { font-size: 21px; font-weight: 600; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; margin: 1px 0; }
.dchip.today b { color: var(--red); }
.dchip.on b { background: var(--text); color: var(--bg); }
.dchip.on.today b { background: var(--red); color: #fff; }
.dchip i { font-style: normal; font-size: 10px; color: var(--text3); letter-spacing: 1px; line-height: 1; height: 10px; }
.dayhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin: 14px 2px 10px; }
.dayhead h2 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.dwx { font-size: 14px; font-weight: 600; color: var(--text2); white-space: nowrap; }
.tl { position: relative; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 4px; cursor: copy; }
.hr { position: absolute; left: 0; right: 0; height: 0; border-top: .5px solid var(--sep); }
.hr:first-child { border-top: 0; }
.hr span { position: absolute; left: 8px; top: -8px; font-size: 11.5px; font-weight: 500; color: var(--text2); background: var(--card); padding-right: 4px; font-variant-numeric: tabular-nums; }
.hr:first-child span { top: 3px; }
.ev { position: absolute; border-radius: 8px; padding: 4px 8px 4px 9px; text-align: left; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start;
  background: color-mix(in srgb, var(--c) 18%, var(--card)); border-left: 3.5px solid var(--c); cursor: pointer; z-index: 1; }
.ev b { font-size: 13.5px; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: color-mix(in srgb, var(--c) 45%, var(--text)); }
.ev span { font-size: 11.5px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.short { flex-direction: row; align-items: center; gap: 6px; padding-top: 0; padding-bottom: 0; }
.ev.short b { -webkit-line-clamp: 1; flex: 1; min-width: 0; white-space: nowrap; text-overflow: ellipsis; display: block; }
.ev.done { opacity: .5; }
.ev.conflict { box-shadow: inset 0 0 0 1.5px var(--red); }
.nowline { position: absolute; left: 50px; right: 0; border-top: 2px solid var(--red); z-index: 2; pointer-events: none; }
.nowline::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

/* Explore */
.searchwrap { padding-bottom: 6px; }
.search { display: flex; align-items: center; gap: 6px; background: var(--fill); border-radius: 11px; padding: 0 10px; height: 40px; color: var(--text2); }
.search svg { width: 18px; height: 18px; }
.search input { flex: 1; border: 0; background: none; outline: none; height: 100%; font-size: 17px; color: var(--text); min-width: 0; }
.search input::placeholder { color: var(--text2); }
.search.in-sheet { margin: 18px 0 10px; background: var(--card); }
.chips { display: flex; gap: 7px; overflow-x: auto; margin: 9px -16px 0; padding: 0 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 13px; border-radius: 99px; background: var(--card); font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow); white-space: nowrap; }
.chip small { color: var(--text2); font-weight: 500; margin-left: 2px; }
.chip.on { background: var(--text); color: var(--bg); }
.chip.on small { color: inherit; opacity: .65; }
.chip.sm { padding: 5px 11px; font-size: 13.5px; background: var(--fill); box-shadow: none; }
.chip.sm.on { background: var(--tint); color: #fff; }
.chips.cats { margin-top: 7px; }
.empty { text-align: center; padding: 32px 20px 4px; color: var(--text2); }
.empty .btn { margin-top: 14px; }

/* Vote */
.vcard { padding: 20px 18px 14px; }
.vc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.vc-top .ic { margin-right: auto; }
.vcard h2 { font-size: 24px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; }
.vcard .sub { margin-top: 3px; }
.notes { font-size: 15.5px; line-height: 1.45; margin-top: 12px; color: var(--text); white-space: pre-wrap; }
.notes.pad { margin: 0; padding: 13px 16px; }
.others { display: flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 15px; }
.others span:not(.av) { margin-right: 8px; }
.vbtns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 12px; }
.vb { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 0 10px; border-radius: 16px; background: var(--fill); font-weight: 600; font-size: 15px; }
.vb span { font-size: 30px; line-height: 1.15; }
.vb.must { background: color-mix(in srgb, var(--pink) 14%, transparent); color: var(--pink); }
.vb.want { background: color-mix(in srgb, var(--tint) 13%, transparent); color: var(--tint); }
.vcard .link.center { padding: 8px; font-size: 15px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--text2); margin: 0 4px 10px; align-items: center; }
.legend .av { width: 22px; height: 22px; font-size: 9.5px; margin-right: -9px; }
.rank { display: flex; align-items: center; gap: 4px; position: relative; padding-left: 4px; }
.rn { width: 26px; text-align: center; font-weight: 700; font-size: 15px; color: var(--text2); flex: none; font-variant-numeric: tabular-nums; }
.rk-main { flex: 1; min-width: 0; padding: 10px 4px; display: flex; flex-direction: column; gap: 5px; cursor: pointer; border-radius: 8px; }
.rk-v { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 12px; }
.mv { display: inline-flex; align-items: center; gap: 2px; opacity: .45; }
.mv.must, .mv.want { opacity: 1; }
.mv.skip { opacity: .7; }
.mini { display: flex; flex-direction: column; gap: 3px; padding: 6px 8px 6px 2px; flex: none; }
.mini button { width: 40px; height: 28px; border-radius: 7px; font-size: 13px; background: var(--fill); filter: grayscale(1); opacity: .6; }
.mini button.on { filter: none; opacity: 1; }
.mini button.on.must { background: color-mix(in srgb, var(--pink) 20%, transparent); }
.mini button.on.want { background: color-mix(in srgb, var(--tint) 20%, transparent); }
.mini button.on.skip { background: var(--fill2); }

/* Trip */
.flight { padding: 13px 16px; position: relative; }
.flight small { font-size: 13px; color: var(--text2); font-weight: 500; }
.flight b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.01em; margin: 1px 0; }
.flight b span { color: var(--text3); font-weight: 400; }
.flight .sub { font-size: 14px; }
.todo { cursor: default; }
.cb { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--text3); flex: none; display: grid; place-items: center; }
.cb.on { background: var(--green); border-color: var(--green); color: #fff; }
.cb svg { width: 15px; height: 15px; stroke-width: 3; }
.todo.is-done .row-t { text-decoration: line-through; color: var(--text2); }
.todo [data-act="open"] { cursor: pointer; }
.x { width: 30px; height: 30px; font-size: 22px; color: var(--text3); }
.log .row-t { font-size: 15px; font-weight: 400; }

/* Tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around;
  padding: 6px 4px calc(var(--sab) + 4px); background: var(--bar); border-top: .5px solid var(--sep);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.tabbar button { flex: 1; max-width: 110px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 500; color: var(--text2); position: relative; padding: 2px 0; }
.tabbar button svg { width: 26px; height: 26px; stroke-width: 1.7; }
.tabbar button.on { color: var(--tint); }
.tabbar button.on svg { stroke-width: 2.2; }
.badge { position: absolute; top: -2px; left: calc(50% + 6px); background: var(--red); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }

/* Sheet */
#sheet .backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 30; opacity: 0; transition: opacity .25s; }
#sheet .sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; max-width: 640px; margin: 0 auto; max-height: calc(100% - var(--sat) - 20px);
  background: var(--sheet); border-radius: 14px 14px 0 0; transform: translateY(105%); transition: transform .32s cubic-bezier(.32,.72,0,1);
  display: flex; flex-direction: column; box-shadow: 0 -4px 30px rgba(0,0,0,.15); }
#sheet.open .backdrop { opacity: 1; }
#sheet.open .sheet { transform: none; }
.grab { position: relative; height: 40px; flex: none; display: flex; justify-content: center; padding-top: 6px; }
.grab i { width: 36px; height: 5px; border-radius: 3px; background: var(--text3); }
.done-btn { position: absolute; right: 16px; top: 10px; color: var(--tint); font-weight: 600; font-size: 17px; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 16px calc(var(--sab) + 30px); }
.sh-head { display: flex; gap: 12px; align-items: center; }
.sh-head h2 { font-size: 22px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; }
.sh-head .sub { margin-top: 2px; }
.sh-head + .group { margin-top: 18px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.badges:empty { display: none; }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; margin-top: 16px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 11px 0 9px; border-radius: 12px; background: var(--card); color: var(--tint); font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow); }
.act svg { width: 23px; height: 23px; }
.act.on { background: var(--green); color: #fff; }
@media (prefers-color-scheme: dark) { .act { background: var(--card2); } }
.sheet .sec { margin-left: 4px; }

/* Forms */
.form .frow, .form .fcol { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 6px 14px 6px 16px; width: 100%; }
.form .fcol { flex-direction: column; align-items: stretch; gap: 3px; padding-top: 10px; padding-bottom: 10px; }
.fcol span { font-size: 12.5px; font-weight: 600; color: var(--text2); }
.fcol input, .fcol select, .fcol textarea { border: 0; background: none; outline: none; font-size: 17px; padding: 2px 0; width: 100%; resize: vertical; }
.frow select, .frow input[type=time] { border: 0; background: var(--fill); border-radius: 8px; padding: 6px 10px; font-size: 16px; outline: none; color: var(--text); max-width: 62%; text-align: right; -webkit-appearance: none; appearance: none; }
.frow input[type=time] { min-width: 110px; }
.frow.primary { justify-content: center; color: var(--tint); font-weight: 600; }
.frow.danger { justify-content: center; color: var(--red); }
.frow.split { gap: 10px; }
.frow.split .btn { flex: 1; height: 42px; }
.nudge div { display: flex; gap: 6px; }
.nudge button { background: var(--fill); border-radius: 8px; padding: 6px 9px; font-size: 14px; font-weight: 600; color: var(--tint); font-variant-numeric: tabular-nums; }
.switch { -webkit-appearance: none; appearance: none; width: 51px; height: 31px; border-radius: 16px; background: var(--fill2); position: relative; transition: background .2s; flex: none; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: transform .2s; }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(20px); }
.vseg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; }
.vseg button { padding: 10px 0; border-radius: 10px; background: var(--fill); font-weight: 600; font-size: 15px; }
.vseg button.on.must { background: var(--pink); color: #fff; }
.vseg button.on.want { background: var(--tint); color: #fff; }
.vseg button.on.skip { background: var(--text2); color: var(--bg); }
.vlist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 4px 16px 14px; font-size: 14.5px; }
.vlist span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.vlist em { color: var(--text3); }
.addbtn { width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: #fff; display: grid; place-items: center; }
.addbtn svg { width: 16px; height: 16px; stroke-width: 2.8; }
.row-end:has(.addbtn) { flex-direction: row; align-items: center; gap: 8px; }

/* Toast */
.toast { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabh) + var(--sab) + 18px); z-index: 50; max-width: 520px; margin: 0 auto;
  background: rgba(30,30,32,.94); color: #fff; border-radius: 14px; padding: 12px 14px 12px 16px; display: flex; align-items: center; gap: 12px;
  font-size: 15px; transform: translateY(20px); opacity: 0; pointer-events: none; transition: .25s; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.toast span { flex: 1; }
.toast button { color: #64d2ff; font-weight: 700; }
.toast.show { transform: none; opacity: 1; pointer-events: auto; }
@media (prefers-color-scheme: dark) { .toast { background: rgba(58,58,60,.96); } }

/* Gate */
.gate-wrap { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; }
.gate-wrap[hidden] { display: none; }
.gate { max-width: 420px; margin: 0 auto; padding: calc(var(--sat) + 12vh) 24px 40px; text-align: center; }
.gate h1 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 6px; }
.gate form { margin-top: 26px; }
.gate input { width: 100%; height: 52px; border-radius: 14px; border: 0; background: var(--card); text-align: center; font-size: 22px; letter-spacing: .3em; outline: none; box-shadow: var(--shadow); }
.err { color: var(--red); margin-top: 12px; min-height: 22px; font-size: 15px; }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.who button { background: var(--card); border-radius: 20px; padding: 20px 8px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; box-shadow: var(--shadow); }
.who button:active { transform: scale(.97); }
.spinner { width: 28px; height: 28px; margin: 20vh auto 0; border-radius: 50%; border: 3px solid var(--fill2); border-top-color: var(--tint); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Offline */
.offline-bar { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: var(--orange); color: #000; font-size: 13px; font-weight: 600; text-align: center; padding: calc(var(--sat) + 4px) 10px 5px; }
body.offline .offline-bar { display: block; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
