/* ===================================================================
   RondoQ — the look (light by default, evening theme on [data-theme=dark])
   Agreed from the prototype, 12 Nov 2026: white workspace, soft tints,
   deep-navy primary, gold only for accents. Type: Geist, Geist Mono for
   references. Marcellus is the wordmark only.
   =================================================================== */
/* Fonts are served from rondoq.com itself (website session, 14 Nov 2026):
   faster, no visitor data sent to a third party, and a strict security policy. */
@font-face { font-family: Geist; src: url('/fonts/geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Marcellus; src: url('/fonts/marcellus.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --glass: rgba(255,255,255,.72); --glass-edge: rgba(255,255,255,.9); --glass-line: rgba(14,23,38,.08); --glass-hi: rgba(255,255,255,.8); --glass-shadow: rgba(14,23,38,.18);
  --bg: #F4F6FA; --card: #FFFFFF; --line: #E4E8EF; --line2: #D6DCE5;
  --ink: #0E1726; --text: #2B3646; --muted: #5B6678; --dim: #6B7588;
  --navy: #13233C; --navy2: #24406A; --gold: #B48F4C; --gold-soft: #D3B878; --gold-text: #8A6A2F;
  --sunk: #F7F8FB; --seg: #EEF1F5; --track: #EDF0F4;
  --blue-bg: rgba(124,156,196,.16); --blue: #2A4F80;
  --amber-bg: rgba(224,138,30,.16); --amber: #8A4B0C;
  --red-bg: rgba(214,54,43,.14); --red: #A12A20;
  --green-bg: rgba(52,168,113,.16); --green: #1F7A4D;
  --gold-bg: rgba(211,184,120,.18); --gold-fg: #6E521E;
  --grey-bg: rgba(147,160,179,.16); --grey: #4A5568;
  --shadow: 0 1px 2px rgba(14,23,38,.04), 0 10px 28px rgba(14,23,38,.06);
  --radius: 16px;
  --sans: Geist, Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
html[data-theme="dark"] {
  --glass: rgba(16,25,39,.68); --glass-edge: rgba(255,255,255,.10); --glass-line: rgba(255,255,255,.08); --glass-hi: rgba(255,255,255,.06); --glass-shadow: rgba(0,0,0,.45);
  --bg: #0A111C; --card: #101927; --line: #1C2738; --line2: #24324A;
  --ink: #E9ECF1; --text: #D5DCE6; --muted: #93A0B3; --dim: #7F8BA0;
  --sunk: #0D1522; --seg: #0C1420; --track: #17212F; --gold-text: #E6CF98;
  --blue: #AFC6E4; --amber: #F2B66B; --red: #F5958C; --green: #86D8AE; --gold-fg: #E6CF98; --grey: #C3CBD7;
  --shadow: 0 12px 32px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; overscroll-behavior-y: contain; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--gold-text); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.ref { font-family: var(--mono); color: var(--gold-text); font-size: 12.5px; }
[hidden] { display: none !important; }

/* ---- Layout ---- */
.shell { min-height: 100vh; display: flex; }
.side { width: 248px; flex: none; background: var(--card); border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 8px 22px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; background: linear-gradient(145deg, #E8D5A3, #B48F4C); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 18px rgba(180,143,76,.25); }
.brand-name { font-family: Marcellus, serif; font-size: 20px; letter-spacing: .3px; }
.brand-name small { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 1.6px; color: var(--gold-text); vertical-align: 3px; }
.brand-org { font-size: 11.5px; color: var(--muted); }
.nav-sec { font-size: 10.5px; font-weight: 600; letter-spacing: 1.2px; color: var(--dim); padding: 14px 10px 6px; text-transform: uppercase; }
.nav-a { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 10px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 14px; font-weight: 500; }
.nav-a svg { color: #7A8597; flex: none; }
.nav-a:hover { background: var(--sunk); }
.nav-a.on { background: linear-gradient(180deg, #FBF4E3, #F6EBD0); box-shadow: inset 0 0 0 1px rgba(180,143,76,.3); color: #5E4517; font-weight: 600; }
html[data-theme="dark"] .nav-a.on { background: rgba(211,184,120,.10); color: #F3E6C4; }
.nav-a.on svg { color: var(--gold-text); }
.nav-a .count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--seg); color: var(--muted); font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.nav-a.on .count { background: rgba(180,143,76,.2); color: #5E4517; }
.nav-a.soon { opacity: .55; }
.me { margin-top: auto; padding-top: 18px; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--sunk); }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: linear-gradient(145deg, var(--navy2), var(--navy)); color: #E2CB91; }
.main { flex: 1; min-width: 0; padding: 30px 36px 60px; max-width: 1320px; display: flex; flex-direction: column; gap: 22px; }
.topbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.topbar h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.8px; line-height: 1.15; }
.topbar .sub { margin-top: 6px; font-size: 14px; color: var(--muted); }
.topbar .sub strong { color: var(--ink); font-weight: 600; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; position: relative; }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.grow2 { flex: 2 1 320px; min-width: 0; } .grow3 { flex: 3 1 440px; min-width: 0; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

/* ---- Surfaces ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 20px 22px; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 22px 10px; }
.card-h h2, .h2 { margin: 0; font-size: 16px; font-weight: 600; }
.hero { position: relative; overflow: hidden; border-radius: 20px; padding: 26px 30px; color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 28px;
  background: radial-gradient(520px 280px at 96% -10%, rgba(211,184,120,.30), rgba(211,184,120,0) 70%), linear-gradient(115deg, #142742 0%, #1B3459 55%, #24457A 100%);
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 20px 50px rgba(19,35,60,.22); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; }
.hero .eyebrow { color: #E2CB91; }
.hero-title { font-size: 26px; font-weight: 700; letter-spacing: -.6px; line-height: 1.2; }
.hero ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: #DDE4EF; }
.hero li { display: flex; align-items: center; gap: 10px; }
.hero li::before { content: ''; width: 6px; height: 6px; border-radius: 3px; background: #E2CB91; flex: none; }
.ring { position: relative; width: 112px; height: 112px; flex: none; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; letter-spacing: -.8px; }

/* ---- Lists ---- */
.item { display: flex; align-items: center; gap: 14px; padding: 12px 22px; text-decoration: none; color: var(--ink); border-top: 1px solid rgba(14,23,38,.06); background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; cursor: pointer; }
.item:hover { background: var(--sunk); }
.tile { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; font-family: var(--mono); font-size: 10.5px; font-weight: 600; }
.item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.item-title { font-size: 14px; font-weight: 600; }
.item-meta { font-size: 12.5px; color: var(--muted); }
.empty { padding: 28px 22px; text-align: center; color: var(--muted); font-size: 14px; }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* ---- Pills, tones ---- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.dot::before { content: ''; width: 6px; height: 6px; border-radius: 3px; background: currentColor; }
.t-blue { background: var(--blue-bg); color: var(--blue); } .t-amber { background: var(--amber-bg); color: var(--amber); }
.t-red { background: var(--red-bg); color: var(--red); } .t-green { background: var(--green-bg); color: var(--green); }
.t-gold { background: var(--gold-bg); color: var(--gold-fg); } .t-grey { background: var(--grey-bg); color: var(--grey); }

/* ---- KPI tiles ---- */
.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.kpi { --tint: transparent; background: linear-gradient(160deg, var(--tint) 0%, var(--card) 58%); }
.k-amber { --tint: #FBF1DC; } .k-blue { --tint: #E6EEF9; } .k-red { --tint: #FBE7E5; } .k-green { --tint: #E8F5EE; } .k-purple { --tint: #F3ECFA; }
html[data-theme="dark"] .k-amber { --tint: rgba(211,170,90,.16); } html[data-theme="dark"] .k-blue { --tint: rgba(110,150,220,.16); }
html[data-theme="dark"] .k-red { --tint: rgba(230,110,100,.16); } html[data-theme="dark"] .k-green { --tint: rgba(90,190,140,.14); } html[data-theme="dark"] .k-purple { --tint: rgba(170,130,220,.16); }
.kpi-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi-val { font-size: 36px; font-weight: 700; letter-spacing: -1.2px; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 12.5px; color: var(--muted); }

/* ---- Controls ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #B9C2CF; }
.btn.primary { border: 0; color: #fff; font-weight: 600; background: linear-gradient(180deg, var(--navy2), var(--navy)); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 8px 20px rgba(19,35,60,.25); }
.btn.sm { height: 36px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.icon-btn { width: 42px; height: 42px; padding: 0; position: relative; }
.badge-dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 4px; background: #E5A54B; box-shadow: 0 0 0 2px var(--card); }
.seg { align-self: flex-start; display: inline-flex; gap: 4px; padding: 3px; border-radius: 11px; background: var(--seg); border: 1px solid var(--line); }
.seg button { height: 34px; padding: 0 14px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(14,23,38,.1); }
.search { display: flex; align-items: center; gap: 10px; height: 42px; width: 300px; max-width: 100%; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line2); background: var(--card); color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--ink); }
.kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line2); border-radius: 6px; padding: 2px 6px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text); }
.input, .field input, .field select, .field textarea { height: 46px; border: 1px solid var(--line2); border-radius: 12px; padding: 0 14px; background: var(--card); color: var(--ink); font-size: 15px; font-weight: 400; width: 100%; }
.field textarea { height: auto; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.err { color: var(--red); font-size: 13.5px; font-weight: 500; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.kv > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.kv .k { font-size: 12px; color: var(--muted); }
.kv .v { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.kv .wide { grid-column: 1 / -1; }
.kv .wide .v { font-weight: 400; line-height: 1.7; white-space: pre-line; color: var(--text); }

/* ---- Progress and history ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.steps div { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--dim); font-weight: 500; }
.steps span { height: 6px; border-radius: 3px; background: var(--track); }
.steps .done { color: var(--ink); } .steps .done span { background: #6F93C2; }
.steps .now { color: var(--ink); font-weight: 700; } .steps .now span { background: linear-gradient(90deg, #E2CB91, #C4A25C); }
.hist { display: flex; gap: 12px; }
.hist-mark { display: flex; flex-direction: column; align-items: center; width: 22px; flex: none; }
.hist-mark b { width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; font-size: 11px; }
.hist-mark i { flex: 1; width: 1px; background: var(--line2); margin: 4px 0; }
.hist-body { padding-bottom: 16px; display: flex; flex-direction: column; gap: 3px; }
.yourstep { position: relative; overflow: hidden; border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px;
  background: radial-gradient(420px 200px at 100% 0%, rgba(211,184,120,.16), rgba(211,184,120,0) 70%), var(--card);
  border: 1px solid rgba(180,143,76,.45); box-shadow: 0 0 0 4px rgba(211,184,120,.10), var(--shadow); }
.yourstep .eyebrow { color: var(--gold-text); }

/* ---- Dialog (settles in on a computer, a sheet on a phone) ---- */
@keyframes rq-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes rq-up { from { transform: translateY(100%); } to { transform: none; } }
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(14,23,38,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.dialog { width: 100%; max-width: 480px; max-height: calc(100vh - 48px); overflow-y: auto; padding: 28px; border-radius: 22px; background: rgba(255,255,255,.96); backdrop-filter: blur(24px) saturate(160%); border: 1px solid rgba(14,23,38,.08); box-shadow: 0 40px 90px rgba(14,23,38,.25); display: flex; flex-direction: column; gap: 16px; animation: rq-in .32s cubic-bezier(.2,.8,.2,1); }
html[data-theme="dark"] .dialog { background: rgba(20,30,46,.94); border-color: rgba(255,255,255,.1); }
.dialog h3 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.4px; }
.dialog .actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.popover { position: absolute; right: 0; top: 52px; width: 380px; max-width: 92vw; z-index: 40; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.9); backdrop-filter: blur(22px) saturate(160%); border: 1px solid rgba(14,23,38,.08); box-shadow: 0 30px 70px rgba(14,23,38,.18); animation: rq-in .3s cubic-bezier(.2,.8,.2,1); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: 0 16px 40px rgba(14,23,38,.3); animation: rq-in .25s ease; max-width: 90vw; }
.toast.bad { background: #8A1F1F; }

/* ---- Skeleton while loading ---- */
@keyframes rq-shine { to { background-position: -200% 0; } }
.skel { border-radius: 10px; background: linear-gradient(90deg, var(--track) 25%, var(--sunk) 50%, var(--track) 75%); background-size: 200% 100%; animation: rq-shine 1.2s linear infinite; }

/* ---- Phone ---- */
.tabbar { display: none; }
@media (max-width: 860px) {
  .side { display: none; }
  .main { padding: 20px 16px 120px; }
  .topbar h1 { font-size: 24px; }
  .search { width: 100%; }
  .tabbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 30; height: 66px; border-radius: 33px; align-items: center; justify-content: space-around; padding: 0 6px;
    background: var(--glass); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hi), 0 12px 34px var(--glass-shadow);
    transition: height .32s cubic-bezier(.32,.72,0,1), left .32s cubic-bezier(.32,.72,0,1), right .32s cubic-bezier(.32,.72,0,1), border-radius .32s; }
  .tabbar a { width: 66px; height: 54px; border-radius: 27px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: 10.5px; font-weight: 600; }
  .tabbar a.on { color: var(--gold-fg); background: var(--gold-bg); }
  .overlay { align-items: flex-end; padding: 0; }
  .dialog { max-width: none; border-radius: 22px 22px 0 0; animation: rq-up .38s cubic-bezier(.32,.72,0,1); padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  input, select, textarea { font-size: 16px !important; }
}

/* ---- Version footer, About facts, and the "new version" bar ---- */
.app-foot { display: block; margin-top: 28px; padding: 10px 0 4px; font-size: 12.5px; color: var(--muted); text-decoration: none; }
.app-foot:hover, .app-foot:focus-visible { color: var(--ink); text-decoration: underline; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.update-bar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; width: min(560px, calc(100vw - 24px)); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 14px; background: var(--card); color: var(--ink); border: 1px solid var(--line2); box-shadow: 0 16px 40px rgba(14,23,38,.22); font-size: 14px; line-height: 1.45; animation: rq-in .25s ease; }
@media (max-width: 900px) { .update-bar { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 78px); } }

/* ---- Access: support visit, trial/subscription ending, read-only, locked ---- */
.access-bar { display: block; margin: 0 0 18px; padding: 11px 16px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; border: 1px solid var(--line2); background: var(--card); color: var(--ink); }
.access-bar a { font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.access-bar.soft { background: var(--gold-bg); color: var(--gold-fg); border-color: transparent; }
.access-bar.amber { background: rgba(242,182,107,.18); color: var(--ink); border-color: rgba(242,182,107,.45); }
.access-bar.red { background: rgba(214,69,60,.10); color: var(--ink); border-color: rgba(214,69,60,.35); }
.access-bar.blue { background: rgba(80,130,200,.12); color: var(--ink); border-color: rgba(80,130,200,.35); }
.shell.bare ~ .tabbar { display: none; }
.shell.bare .side { display: none; }

/* ---- Glass and scrolling, like iOS (owner, 15 Nov 2026) ----
   1. A frosted bar slides in at the top with the page title once the big
      title has scrolled away; tap it to go back to the top.
   2. On phones the tab bar tucks in smaller while you scroll down and comes
      back as soon as you scroll up (js/glass.js sets .compact).
   3. Rows of cards on phones swipe sideways and settle on each card.
   4. Sheets that rise from the bottom have a handle: drag down to close. */
.glassbar { position: fixed; top: 0; left: 248px; right: 0; z-index: 35; height: calc(52px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) clamp(16px, 3vw, 40px) 0;
  display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--glass-line);
  background: var(--glass); backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%);
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .22s ease, transform .28s cubic-bezier(.32,.72,0,1); cursor: pointer; }
.glassbar b { font-size: 15.5px; font-weight: 650; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.scrolled .glassbar { opacity: 1; transform: none; pointer-events: auto; }
.shell.bare ~ .glassbar { left: 0; }
.snap-row::-webkit-scrollbar { display: none; }
.sheet-grip { display: none; }
@media (max-width: 860px) {
  .glassbar { left: 0; justify-content: center; }
  .tabbar a { transition: height .32s cubic-bezier(.32,.72,0,1), width .32s cubic-bezier(.32,.72,0,1); }
  .tabbar a span { transition: opacity .18s ease; }
  .tabbar.compact { height: 52px; left: 22%; right: 22%; border-radius: 26px; }
  .tabbar.compact a { height: 42px; width: 50px; gap: 0; }
  .tabbar.compact a span { opacity: 0; height: 0; overflow: hidden; }
  .snap-row { display: flex !important; overflow-x: auto; gap: 12px; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scroll-padding: 0 16px; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .snap-row > * { flex: 0 0 72%; scroll-snap-align: start; scroll-snap-stop: always; }
  .dialog { position: relative; padding-top: 30px; touch-action: pan-y; }
  .dialog.dragging { animation: none; transition: none; }
  .dialog.settle { transition: transform .3s cubic-bezier(.32,.72,0,1); }
  .sheet-grip { display: block; position: absolute; top: 0; left: 0; right: 0; height: 26px; cursor: grab; touch-action: none; }
  .sheet-grip::after { content: ''; position: absolute; top: 9px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: var(--line2); }
}
@media (prefers-reduced-motion: reduce) {
  .glassbar, .tabbar, .tabbar a, .tabbar a span, .dialog.settle { transition: none !important; }
}
