/* Vibrasan app — clinical paper by day, deep pine at night; the player is always the dark instrument screen. */
:root {
  --paper: #F2F6F3; --surface: #FFFFFF; --sunken: #E4ECE7; --raise: #FAFCFB;
  --ink: #0C2B2A; --ink-2: #3F5957; --ink-3: #5C7370;
  --vir: #0B7A68; --vir-deep: #075647; --vir-hi: #12A58B; --mint: #7FF0D0; --mint-ink: #DEF6EF;
  --scope: #031716; --scope-2: #04201E; --pulse: #E5553B;
  --line: rgba(12, 43, 42, .09); --line-2: rgba(12, 43, 42, .16);
  --tint: #0B7A68;
  --sh-1: 0 1px 1px rgba(12, 43, 42, .04), 0 2px 6px -2px rgba(12, 43, 42, .08);
  --sh-2: 0 1px 2px rgba(12, 43, 42, .05), 0 12px 28px -16px rgba(12, 43, 42, .24), 0 34px 60px -44px rgba(11, 122, 104, .38);
  --sh-3: 0 2px 4px rgba(3, 23, 22, .08), 0 20px 44px -18px rgba(3, 23, 22, .36), 0 60px 100px -60px rgba(11, 122, 104, .5);
  --glow-a: rgba(127, 240, 208, .30); --glow-b: rgba(11, 122, 104, .10);
  --r-s: 12px; --r-m: 18px; --r-l: 24px; --r-xl: 32px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --glide: cubic-bezier(.22, 1, .36, 1);
  --f-display: "Newsreader", Georgia, serif;
  --f-sans: "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --tab-h: 66px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="day"]) {
    --paper: #061A18; --surface: #0B2624; --sunken: #041311; --raise: #0E2C2A;
    --ink: #E4F1ED; --ink-2: #AEC6C0; --ink-3: #82A09A;
    --vir: #2FBF9E; --vir-deep: #1F9C80; --vir-hi: #66E3C3;
    --line: rgba(222, 246, 239, .08); --line-2: rgba(222, 246, 239, .15);
    --tint: #04201E;
    --sh-1: 0 1px 1px rgba(0, 0, 0, .3), 0 2px 6px -2px rgba(0, 0, 0, .35);
    --sh-2: 0 1px 2px rgba(0, 0, 0, .35), 0 14px 30px -16px rgba(0, 0, 0, .6), 0 34px 60px -44px rgba(47, 191, 158, .22);
    --sh-3: 0 2px 4px rgba(0, 0, 0, .35), 0 22px 46px -18px rgba(0, 0, 0, .7), 0 60px 100px -60px rgba(47, 191, 158, .3);
    --glow-a: rgba(127, 240, 208, .10); --glow-b: rgba(47, 191, 158, .06);
    color-scheme: dark;
  }
}
:root[data-theme="night"] {
  --paper: #061A18; --surface: #0B2624; --sunken: #041311; --raise: #0E2C2A;
  --ink: #E4F1ED; --ink-2: #AEC6C0; --ink-3: #82A09A;
  --vir: #2FBF9E; --vir-deep: #1F9C80; --vir-hi: #66E3C3;
  --line: rgba(222, 246, 239, .08); --line-2: rgba(222, 246, 239, .15);
  --tint: #04201E;
  --sh-1: 0 1px 1px rgba(0, 0, 0, .3), 0 2px 6px -2px rgba(0, 0, 0, .35);
  --sh-2: 0 1px 2px rgba(0, 0, 0, .35), 0 14px 30px -16px rgba(0, 0, 0, .6), 0 34px 60px -44px rgba(47, 191, 158, .22);
  --sh-3: 0 2px 4px rgba(0, 0, 0, .35), 0 22px 46px -18px rgba(0, 0, 0, .7), 0 60px 100px -60px rgba(47, 191, 158, .3);
  --glow-a: rgba(127, 240, 208, .10); --glow-b: rgba(47, 191, 158, .06);
  color-scheme: dark;
}

/* ── base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink);
  font: 400 16px/1.7 var(--f-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60rem 36rem at 100% -8%, var(--glow-a), transparent 62%),
    radial-gradient(42rem 30rem at -12% 38%, var(--glow-b), transparent 65%),
    radial-gradient(50rem 40rem at 60% 120%, var(--glow-b), transparent 70%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .055; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.17 0 0 0 0 0.16 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--vir-hi); outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.ic { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic-s { width: 18px; height: 18px; }

/* ── type ─────────────────────────────────────────────────────────── */
.display { font: 400 clamp(2.6rem, 10.5vw, 4.25rem)/.98 var(--f-display); letter-spacing: -.03em; font-optical-sizing: auto; text-wrap: balance; }
.display em, .h1 em, .h2 em { font-style: italic; color: var(--vir); }
.h1 { font: 400 clamp(2.15rem, 7.4vw, 3.1rem)/1.02 var(--f-display); letter-spacing: -.03em; font-optical-sizing: auto; text-wrap: balance; }
.h2 { font: 400 clamp(1.6rem, 5vw, 2.05rem)/1.08 var(--f-display); letter-spacing: -.028em; font-optical-sizing: auto; text-wrap: balance; }
.h3 { font: 500 1.2rem/1.2 var(--f-display); letter-spacing: -.015em; }
.eyebrow { font: 500 .6875rem/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.mono { font-family: var(--f-mono); letter-spacing: .04em; }
.dim { color: var(--ink-2); }
.mute { color: var(--ink-3); }
.lede { font-size: 1.02rem; line-height: 1.7; color: var(--ink-2); max-width: 36rem; }
.small { font-size: .875rem; line-height: 1.6; }
.link { color: var(--vir); text-decoration: none; font-weight: 500; position: relative; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--glide); }
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }
.link:active { opacity: .7; }

/* ── layout ───────────────────────────────────────────────────────── */
.shell { min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
#view { width: 100%; max-width: 1180px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + var(--s5)) var(--s4) calc(var(--tab-h) + 112px + env(safe-area-inset-bottom)); min-width: 0; }
.signed-out .rail, .signed-out .tabbar { display: none !important; }
.signed-out #view { padding-bottom: calc(var(--s7) + env(safe-area-inset-bottom)); }
.stack > * + * { margin-top: var(--s5); }
.sec { margin-top: var(--s7); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); }
.row { display: flex; align-items: center; gap: var(--s3); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.scroller { display: flex; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--s4); margin: 0 calc(var(--s4) * -1); padding: 4px var(--s4) 18px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; flex: 0 0 auto; }

@media (min-width: 720px) {
  #view { padding-left: var(--s6); padding-right: var(--s6); }
  .grid-2 { gap: var(--s4); }
  .scroller { margin: 0 calc(var(--s6) * -1); padding-left: var(--s6); padding-right: var(--s6); scroll-padding-inline: var(--s6); }
}
@media (min-width: 1000px) {
  .shell { grid-template-columns: 252px minmax(0, 1fr); }
  #view { padding: var(--s7) var(--s7) 140px; }
  .scroller { margin: 0; padding-left: 0; padding-right: 0; scroll-padding-inline: 0; }
}

/* view entrance: a short staggered rise */
.rise > * { animation: rise .7s var(--glide) both; }
.rise > *:nth-child(2) { animation-delay: .05s; } .rise > *:nth-child(3) { animation-delay: .1s; } .rise > *:nth-child(4) { animation-delay: .15s; }
.rise > *:nth-child(5) { animation-delay: .2s; } .rise > *:nth-child(6) { animation-delay: .25s; } .rise > *:nth-child(n+7) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── navigation ───────────────────────────────────────────────────── */
.rail { display: none; position: sticky; top: 0; height: 100dvh; flex-direction: column; gap: 4px; padding: var(--s6) var(--s4); border-right: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 500 1.4rem/1 var(--f-display); letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; }
.rail .brand { margin: 0 var(--s2) var(--s6); }
.navlink { position: relative; display: flex; align-items: center; gap: var(--s3); height: 46px; padding: 0 var(--s3); border-radius: var(--r-s); color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; isolation: isolate; transition: transform .45s var(--spring); }
.navlink::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--surface); box-shadow: var(--sh-1); opacity: 0; transition: opacity .25s ease; z-index: -1; }
.navlink:hover::before { opacity: .6; }
.navlink[aria-current="page"] { color: var(--ink); }
.navlink[aria-current="page"]::before { opacity: 1; }
.navlink[aria-current="page"] .ic { color: var(--vir); }
.navlink:active { transform: scale(.98); }
.rail-foot { margin-top: auto; padding: var(--s4) var(--s3) 0; border-top: 1px solid var(--line); }

.tabbar {
  position: fixed; left: var(--s3); right: var(--s3); bottom: calc(var(--s3) + env(safe-area-inset-bottom)); z-index: 40;
  height: var(--tab-h); border-radius: 22px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 var(--s2);
  background: color-mix(in oklab, var(--surface) 84%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 0 0 1px var(--line), var(--sh-3);
}
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--ink-3); font: 500 .625rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; transition: transform .45s var(--spring); }
.tab .ic { width: 23px; height: 23px; }
.tab[aria-current="page"] { color: var(--vir); }
.tab[aria-current="page"]::after { content: ""; position: absolute; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px color-mix(in oklab, var(--mint) 25%, transparent); }
.tab:hover { color: var(--ink-2); }
.tab[aria-current="page"]:hover { color: var(--vir); }
.tab:active { transform: scale(.92); }
@media (min-width: 1000px) { .rail { display: flex; } .tabbar { display: none; } }

/* ── buttons & controls ───────────────────────────────────────────── */
.btn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 var(--s5); border-radius: 999px; font-weight: 600; font-size: .975rem; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform .45s var(--spring);
}
.btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.btn:hover::after { opacity: .08; }
.btn:active { transform: scale(.965); }
.btn:active::after { opacity: .14; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-primary { background: var(--vir); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(7, 86, 71, .25), 0 14px 26px -14px rgba(11, 122, 104, .9); }
:root[data-theme="night"] .btn-primary { color: #032420; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="day"]) .btn-primary { color: #032420; } }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-mint { background: var(--mint); color: #03231F; box-shadow: 0 14px 30px -14px rgba(127, 240, 208, .55); }
.btn-dark-ghost { color: var(--mint-ink); box-shadow: inset 0 0 0 1px rgba(222, 246, 239, .22); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 var(--s4); font-size: .875rem; }
.btn .ic { width: 20px; height: 20px; }

.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; isolation: isolate; transition: transform .45s var(--spring); }
.icon-btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: 0; transition: opacity .2s ease; z-index: -1; }
.icon-btn:hover::before { opacity: .08; }
.icon-btn:active { transform: scale(.9); }
.icon-btn[aria-pressed="true"] .ic { fill: var(--pulse); stroke: var(--pulse); }

.chip {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px;
  font-size: .875rem; font-weight: 500; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; transition: transform .4s var(--spring);
}
.chip::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--vir); opacity: 0; transition: opacity .2s ease; z-index: -1; }
.chip:hover { color: var(--ink); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { color: #fff; box-shadow: none; }
.chip[aria-pressed="true"]::before, .chip[aria-selected="true"]::before { opacity: 1; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { position: relative; isolation: isolate; min-height: 40px; padding: 0 var(--s2); border-radius: 12px; font-size: .875rem; font-weight: 500; color: var(--ink-2); transition: transform .4s var(--spring); }
.seg button::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--surface); box-shadow: var(--sh-1); opacity: 0; transition: opacity .2s ease; z-index: -1; }
.seg button[aria-selected="true"] { color: var(--ink); }
.seg button[aria-selected="true"]::before { opacity: 1; }
.seg button:hover { color: var(--ink); }
.seg button:active { transform: scale(.96); }

.field { display: grid; gap: 7px; }
.field > span { font: 500 .6875rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.input {
  width: 100%; min-height: 54px; padding: 0 var(--s4); border: 0; border-radius: 15px; background: var(--sunken); color: var(--ink);
  font: 400 1rem var(--f-sans); box-shadow: inset 0 0 0 1px var(--line); -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--ink-3); opacity: .8; }
.input:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--vir); background: var(--surface); }
.pw { position: relative; }
.pw .input { padding-right: 72px; }
.pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); min-height: 38px; padding: 0 12px; border-radius: 10px; font: 500 .75rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--vir); }
.pw button:hover { background: var(--surface); }
.pw button:active { transform: translateY(-50%) scale(.95); }
.form-err { min-height: 1.4em; font-size: .875rem; color: var(--pulse); }
.form-ok { font-size: .9rem; color: var(--vir); }

.toggle { position: relative; width: 50px; height: 30px; border-radius: 999px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line-2); flex: 0 0 auto; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: var(--sh-1); transition: transform .45s var(--spring); }
.toggle[aria-checked="true"] { background: var(--vir); box-shadow: none; }
.toggle[aria-checked="true"]::after { transform: translateX(20px); }
.toggle:active::after { transform: scale(.9); }
.toggle[aria-checked="true"]:active::after { transform: translateX(20px) scale(.9); }

input[type="range"].range { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; }
input[type="range"].range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--mint) 0 var(--v, 50%), rgba(222, 246, 239, .16) var(--v, 50%)); }
input[type="range"].range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(127, 240, 208, .18), 0 4px 10px rgba(0, 0, 0, .35); transition: transform .3s var(--spring); }
input[type="range"].range:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"].range::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(222, 246, 239, .16); }
input[type="range"].range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--mint); }
input[type="range"].range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(127, 240, 208, .18); }

/* ── surfaces ─────────────────────────────────────────────────────── */
.card { position: relative; isolation: isolate; background: var(--surface); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line), var(--sh-2); }
.pad { padding: var(--s5); }
.press { transition: transform .55s var(--spring); cursor: pointer; text-align: left; display: block; width: 100%; color: inherit; text-decoration: none; }
.press:hover { transform: translateY(-3px); }
.press:active { transform: scale(.98); }
.press:hover .ph img { transform: scale(1.04); }

.scope { position: relative; isolation: isolate; overflow: hidden; background: var(--scope); color: var(--mint-ink); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px rgba(127, 240, 208, .1), 0 1px 2px rgba(3, 23, 22, .2), 0 26px 54px -26px rgba(3, 23, 22, .6), 0 60px 90px -60px rgba(11, 122, 104, .55); }
.scope canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ro { position: absolute; z-index: 2; font: 500 .6875rem/1 var(--f-mono); letter-spacing: .08em; color: rgba(222, 246, 239, .82); white-space: nowrap; pointer-events: none; text-transform: uppercase; }
.ro b { font-weight: 500; color: var(--mint); margin-right: .5em; }
.ro.tl { top: 14px; left: 16px; } .ro.tr { top: 14px; right: 16px; } .ro.bl { bottom: 14px; left: 16px; } .ro.br { bottom: 14px; right: 16px; }
.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pulse); margin-right: 8px; box-shadow: 0 0 0 4px rgba(229, 85, 59, .18); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

.ph { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-m); background: var(--sunken); aspect-ratio: 4 / 3; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--glide); }
.ph::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--tint); mix-blend-mode: multiply; opacity: .22; pointer-events: none; }
.ph::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 58%); pointer-events: none; }
.ph-tag { position: absolute; z-index: 2; left: 12px; bottom: 11px; right: 12px; font: 500 .625rem/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .92); }
.lock { position: absolute; z-index: 2; top: 10px; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(3, 23, 22, .62); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lock .ic { width: 15px; height: 15px; }

.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.spec > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec > div:nth-child(odd) { padding-right: 12px; }
.spec dt { font: 500 .625rem/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.spec dd { margin: 5px 0 0; font-size: .925rem; font-weight: 500; }
.hz { font: 500 1rem/1 var(--f-mono); letter-spacing: .02em; color: var(--vir); }

/* list rows */
.list { display: grid; }
.li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; width: 100%; transition: transform .45s var(--spring); }
.li:last-child { border-bottom: 0; }
.li:hover .li-t { color: var(--vir); }
.li:active { transform: scale(.985); }
.li-img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--scope); box-shadow: inset 0 0 0 1px var(--line); }
.li-t { font-weight: 500; font-size: .975rem; line-height: 1.3; }
.li-s { font: 400 .75rem/1.4 var(--f-mono); letter-spacing: .04em; color: var(--ink-3); margin-top: 3px; }
.li-go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--vir); box-shadow: inset 0 0 0 1px var(--line-2); }
.li-go .ic { width: 18px; height: 18px; }

/* ── welcome / auth ───────────────────────────────────────────────── */
:root { --mark-ring: var(--vir); --mark-plus: var(--vir); --mark-dot: var(--mint); }
.dark, .scope { --mark-ring: var(--mint); --mark-plus: #E6F6F1; --mark-dot: #0B7A68; }
.auth { display: grid; grid-template-areas: "brand" "side" "copy"; gap: var(--s5); align-content: start; min-height: calc(100dvh - 80px); }
.auth-brand { grid-area: brand; } .auth-side { grid-area: side; } .auth-copy { grid-area: copy; }
.auth-form .auth-side { display: none; }
.auth-top { display: flex; align-items: center; justify-content: space-between; }
.auth-scope { aspect-ratio: 1 / 1; width: min(100%, 44dvh); margin: 0 auto; }
.auth-copy .display { margin-top: var(--s2); }
.auth-copy .lede { margin-top: var(--s4); }
.auth-cta { display: grid; gap: var(--s3); margin-top: var(--s6); }
.ticks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: var(--s4); font: 500 .6875rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ticks span { display: inline-flex; align-items: center; gap: 6px; }
.ticks span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--vir-hi); }
.auth-card { padding: var(--s5); }
.auth-card form { display: grid; gap: var(--s4); margin-top: var(--s5); }
.auth-swap { margin-top: var(--s4); text-align: center; font-size: .925rem; color: var(--ink-2); }
.fine { font-size: .78rem; line-height: 1.55; color: var(--ink-3); }
@media (min-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "brand side" "copy side"; column-gap: var(--s8); row-gap: var(--s6); align-items: center; }
  .auth-brand { align-self: start; }
  .auth-form .auth-side { display: block; }
  .auth-side { align-self: center; }
  .auth-scope { width: min(100%, 72dvh); }
}

.goals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s5); }
.goal { padding: var(--s4); border-radius: var(--r-m); text-align: left; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); transition: transform .45s var(--spring); }
.goal:hover { transform: translateY(-2px); }
.goal:active { transform: scale(.97); }
.goal[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--vir), var(--sh-2); }
.goal .hz { font-size: .8rem; }
.goal b { display: block; margin-top: 10px; font: 500 1.25rem/1.1 var(--f-display); letter-spacing: -.015em; }
.goal small { display: block; margin-top: 4px; font-size: .8rem; line-height: 1.45; color: var(--ink-3); }
@media (min-width: 720px) { .goals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── home ─────────────────────────────────────────────────────────── */
.top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); font: 500 1.05rem/1 var(--f-display); color: var(--vir); text-decoration: none; transition: transform .45s var(--spring); flex: 0 0 auto; }
.avatar:hover { transform: translateY(-2px); }
.avatar:active { transform: scale(.94); }
.plan-chip { position: relative; display: inline-flex; align-items: center; gap: 10px; margin-top: var(--s4); padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); font-size: .85rem; font-weight: 500; transition: transform .45s var(--spring); }
.plan-chip:hover { transform: translateY(-1px); }
.plan-chip:active { transform: scale(.97); }
.plan-chip .pill { font: 500 .625rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; padding: 6px 8px; border-radius: 999px; background: color-mix(in oklab, var(--vir) 14%, transparent); color: var(--vir); }
.plan-chip .ic { width: 16px; height: 16px; color: var(--ink-3); }

.dose { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; color: var(--mint-ink); }
.dose::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(100deg, var(--scope) 30%, rgba(3, 23, 22, .82) 52%, rgba(3, 23, 22, .1) 82%); }
.dose-body { position: relative; z-index: 2; padding: var(--s5); display: grid; gap: var(--s3); }
.dose-fig { position: absolute; z-index: 0; right: -22%; top: 50%; width: 82%; aspect-ratio: 1; transform: translateY(-50%); opacity: .95; mask-image: radial-gradient(closest-side, #000 58%, transparent); -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent); }
.dose .eyebrow { color: var(--mint); }
.dose h2 { font: 400 clamp(1.9rem, 7.5vw, 2.6rem)/1 var(--f-display); letter-spacing: -.03em; max-width: 14ch; }
.dose .meta { font: 500 .75rem/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(222, 246, 239, .75); }
.dose .btn { justify-self: start; margin-top: var(--s2); }
@media (min-width: 720px) { .dose-body { padding: var(--s6); min-height: 300px; align-content: end; } .dose-fig { width: 52%; right: -2%; } }

.sos { width: 158px; padding: var(--s4); border-radius: var(--r-m); text-align: left; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); transition: transform .45s var(--spring); }
.sos:hover { transform: translateY(-2px); }
.sos:active { transform: scale(.96); }
.sos .hz { font-size: .75rem; white-space: nowrap; }
:root[data-theme="night"] .scope { box-shadow: inset 0 0 0 1px rgba(127, 240, 208, .16), 0 26px 54px -26px rgba(0, 0, 0, .7); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="day"]) .scope { box-shadow: inset 0 0 0 1px rgba(127, 240, 208, .16), 0 26px 54px -26px rgba(0, 0, 0, .7); } }
.sos b { display: block; margin-top: 18px; font: 500 1.1rem/1.15 var(--f-display); letter-spacing: -.01em; }
.sos small { display: block; margin-top: 4px; font: 400 .7rem/1.3 var(--f-mono); letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.stat { padding: var(--s4); border-radius: var(--r-m); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); }
.stat b { display: block; font: 400 2rem/1 var(--f-display); letter-spacing: -.03em; }
.stat span { display: block; margin-top: 8px; font: 500 .625rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 92px; margin-top: var(--s4); padding: var(--s4) var(--s4) 0; }
.bar-col { display: grid; justify-items: center; gap: 6px; height: 100%; align-content: end; }
.bar-col i { display: block; width: 100%; max-width: 26px; height: 52px; border-radius: 7px; background: var(--sunken); position: relative; overflow: hidden; }
.bar-col i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(to top, var(--vir), var(--vir-hi)); transform-origin: bottom; transform: scaleY(var(--h, 0)); transition: transform .9s var(--glide); }
.bar-col span { font: 500 .6rem/1 var(--f-mono); letter-spacing: .08em; color: var(--ink-3); }
.bar-col.today span { color: var(--vir); }

.pcard { width: 240px; }
.pcard .ph { aspect-ratio: 4 / 3.2; }
.pcard b { display: block; margin-top: 12px; font: 500 1.1rem/1.2 var(--f-display); letter-spacing: -.01em; }
.pcard small { display: block; margin-top: 4px; font: 400 .72rem/1.3 var(--f-mono); letter-spacing: .05em; color: var(--ink-3); }

.progress { height: 6px; border-radius: 6px; background: var(--sunken); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--vir), var(--vir-hi)); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .9s var(--glide); }

/* ── library ──────────────────────────────────────────────────────── */
.search { position: relative; margin-top: var(--s5); }
.search .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 48px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); }
.tabs { margin-top: var(--s4); }
.tabs .seg button { padding: 0 2px; font-size: .8125rem; }
@media (min-width: 720px) { .tabs .seg { max-width: 560px; } .tabs .seg button { font-size: .875rem; } }
.group { margin-top: var(--s6); }
.group-h { display: flex; align-items: baseline; gap: var(--s3); margin-bottom: var(--s3); }
.group-h .h3 { font-size: 1.35rem; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s3); }
.tile .ph { aspect-ratio: 1 / 1.02; }
.tile b { display: block; margin-top: 10px; font: 500 1.02rem/1.22 var(--f-display); letter-spacing: -.01em; }
.tile small { display: block; margin-top: 3px; font: 400 .7rem/1.35 var(--f-mono); letter-spacing: .05em; color: var(--ink-3); }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5) var(--s4); } .tile .ph { aspect-ratio: 4 / 3; } }
@media (min-width: 1200px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.freq { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--s4); align-items: center; padding: var(--s3); border-radius: var(--r-m); text-align: left; width: 100%; transition: transform .45s var(--spring); position: relative; isolation: isolate; }
.freq::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); z-index: -1; }
.freq:hover { transform: translateY(-2px); }
.freq:active { transform: scale(.985); }
.freq img { width: 64px; height: 64px; border-radius: 16px; }
.freq .num { font: 400 1.6rem/1 var(--f-mono); letter-spacing: -.02em; color: var(--ink); }
.freq .num small { font-size: .8rem; color: var(--ink-3); margin-left: 3px; }
.freq .role { margin-top: 5px; font-size: .875rem; color: var(--ink-2); }
.freqs { display: grid; gap: var(--s3); margin-top: var(--s5); }
@media (min-width: 720px) { .freqs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.breaths { display: grid; gap: var(--s3); margin-top: var(--s5); }
@media (min-width: 720px) { .breaths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.breath { padding: var(--s5); text-align: left; }
.breath .pat { font: 400 1.5rem/1 var(--f-mono); letter-spacing: .02em; color: var(--vir); }
.breath b { display: block; margin-top: 14px; font: 500 1.3rem/1.15 var(--f-display); letter-spacing: -.015em; }
.breath p { margin-top: 6px; font-size: .9rem; line-height: 1.6; color: var(--ink-2); }

/* ── programmes ───────────────────────────────────────────────────── */
.progs { display: grid; gap: var(--s4); margin-top: var(--s5); }
@media (min-width: 720px) { .progs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prog { overflow: hidden; }
.prog .ph { border-radius: 0; aspect-ratio: 16 / 8.5; }
.prog-body { padding: var(--s4) var(--s5) var(--s5); display: grid; gap: var(--s3); }
.prog-body .h3 { font-size: 1.35rem; }
.prog-meta { display: flex; justify-content: space-between; gap: var(--s3); font: 500 .6875rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.hero-ph { aspect-ratio: 16 / 10; border-radius: var(--r-l); }
@media (min-width: 900px) { .prog-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: end; } .hero-ph { aspect-ratio: 4 / 3; } }
.days { display: grid; margin-top: var(--s4); }
.dayrow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; width: 100%; transition: transform .45s var(--spring); }
.dayrow:active { transform: scale(.985); }
.dayrow:hover .t { color: var(--vir); }
.dayrow .n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font: 500 .8rem/1 var(--f-mono); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.dayrow.done .n { background: var(--vir); color: #fff; box-shadow: none; }
.dayrow.next .n { box-shadow: inset 0 0 0 2px var(--vir); color: var(--vir); }
.dayrow .t { font-weight: 500; line-height: 1.3; }
.dayrow .s { font: 400 .75rem/1.4 var(--f-mono); letter-spacing: .04em; color: var(--ink-3); margin-top: 2px; }
.dayrow .r { font: 500 .75rem/1 var(--f-mono); color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }

/* ── you ──────────────────────────────────────────────────────────── */
.plan-card { padding: var(--s5); display: grid; gap: var(--s3); overflow: hidden; }
.plan-card .label { font: 500 .625rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--vir); }
.plan-card .h2 { font-size: 1.85rem; }
.plan-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow-a), transparent); z-index: -1; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 60px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.setrow:last-child { border-bottom: 0; }
.setrow .k { font-weight: 500; }
.setrow .v { font-size: .875rem; color: var(--ink-3); }
.setrow select.input { min-height: 42px; width: auto; padding: 0 36px 0 14px; font-size: .9rem; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.links { display: grid; }
.links a, .links button { display: flex; align-items: center; justify-content: space-between; min-height: 54px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; text-align: left; transition: transform .45s var(--spring); }
.links a:hover, .links button:hover { color: var(--vir); }
.links a:active, .links button:active { transform: scale(.99); }
.links .ic { color: var(--ink-3); width: 18px; height: 18px; }
.empty { padding: var(--s5); border-radius: var(--r-m); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: .925rem; }

/* ── mini player ──────────────────────────────────────────────────── */
.mini {
  position: fixed; z-index: 41; left: var(--s3); right: var(--s3); bottom: calc(var(--tab-h) + var(--s3) + 10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--s2); height: 64px; padding: 0 6px 0 10px;
  border-radius: 20px; background: var(--scope); color: var(--mint-ink); box-shadow: inset 0 0 0 1px rgba(127, 240, 208, .12), var(--sh-3);
  transform: translateY(160%); opacity: 0; pointer-events: none; transition: transform .6s var(--spring), opacity .3s ease;
}
.mini.on { transform: none; opacity: 1; pointer-events: auto; }
.mini img { width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto; object-fit: cover; }
.mini-t { display: block; font-weight: 500; font-size: .9rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-s { display: block; margin-top: 2px; font: 400 .7rem/1.3 var(--f-mono); letter-spacing: .06em; color: rgba(222, 246, 239, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-open { display: flex; align-items: center; gap: var(--s3); min-width: 0; height: 100%; text-align: left; color: inherit; transition: transform .45s var(--spring); }
.mini-open:active { transform: scale(.98); }
.mini-open:hover .mini-t { color: var(--mint); }
.mini .icon-btn { color: #fff; }
@media (min-width: 1000px) { .mini { left: calc(252px + var(--s5)); right: var(--s5); bottom: var(--s5); max-width: 560px; } }

/* ── player ───────────────────────────────────────────────────────── */
.player {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain; background: var(--scope); color: var(--mint-ink);
  transform: translateY(102%); transition: transform .7s var(--glide), visibility 0s linear .7s; visibility: hidden;
}
.player.open { transform: none; visibility: visible; transition: transform .7s var(--glide), visibility 0s; }
.player::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(48rem 30rem at 85% -10%, rgba(127, 240, 208, .13), transparent 60%), radial-gradient(40rem 30rem at -10% 110%, rgba(11, 122, 104, .22), transparent 65%); }
.pl { position: relative; max-width: 1160px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 8px) var(--s4) calc(var(--s6) + env(safe-area-inset-bottom)); }
.pl-top { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: var(--s2); height: 56px; }
.pl-top .eyebrow { text-align: center; color: rgba(222, 246, 239, .66); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-top .icon-btn { color: var(--mint-ink); }
.pl-main { display: grid; gap: var(--s5); margin-top: var(--s2); }
.pl-scope { aspect-ratio: 1 / 1; width: 100%; max-width: min(100%, 58dvh); margin: 0 auto; border-radius: var(--r-xl); }
.pl-ring { position: absolute; z-index: 1; left: 50%; top: 50%; width: 76%; aspect-ratio: 1; margin: -38% 0 0 -38%; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(127, 240, 208, .55), 0 0 40px rgba(127, 240, 208, .12); pointer-events: none; transform: scale(.6); opacity: 0; transition: opacity .6s ease; will-change: transform; }
.pl-ring.on { opacity: 1; }
.pl-title { font: 400 clamp(1.9rem, 7vw, 2.75rem)/1.02 var(--f-display); letter-spacing: -.03em; color: #F1FBF8; text-wrap: balance; }
.pl-sub { margin-top: 8px; font-size: .95rem; line-height: 1.6; color: rgba(222, 246, 239, .72); max-width: 34rem; }
.pl-breath { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-top: var(--s5); padding: 14px 0; border-top: 1px solid rgba(222, 246, 239, .12); border-bottom: 1px solid rgba(222, 246, 239, .12); }
.pl-phase { font: 400 1.6rem/1 var(--f-display); letter-spacing: -.02em; color: var(--mint); }
.pl-count { font: 400 1.6rem/1 var(--f-mono); color: #F1FBF8; min-width: 2ch; text-align: right; }
.pl-tech { font: 500 .6875rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(222, 246, 239, .55); }
.pl-progress { margin-top: var(--s5); }
.pl-bar { position: relative; height: 4px; border-radius: 4px; background: rgba(222, 246, 239, .14); overflow: hidden; }
.pl-bar i { position: absolute; inset: 0; border-radius: inherit; background: var(--mint); transform-origin: left; transform: scaleX(0); }
.pl-times { display: flex; justify-content: space-between; margin-top: 9px; font: 500 .75rem/1 var(--f-mono); letter-spacing: .06em; color: rgba(222, 246, 239, .62); }
.pl-transport { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: var(--s4); }
.pl-transport .icon-btn { color: var(--mint-ink); width: 52px; height: 52px; }
.pl-transport .left { justify-self: start; display: inline-flex; align-items: center; gap: 2px; }
.pl-transport .right { justify-self: end; }
.pl-timer { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border-radius: 999px; font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mint-ink); box-shadow: inset 0 0 0 1px rgba(222, 246, 239, .18); transition: transform .4s var(--spring); }
.pl-timer:hover { box-shadow: inset 0 0 0 1px rgba(222, 246, 239, .34); }
.pl-timer:active { transform: scale(.95); }
.pl-play { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--mint); color: #03231F; box-shadow: 0 0 0 10px rgba(127, 240, 208, .1), 0 18px 40px -12px rgba(127, 240, 208, .5); transition: transform .5s var(--spring); }
.pl-play .ic { width: 34px; height: 34px; }
.pl-play:hover { transform: scale(1.04); }
.pl-play:active { transform: scale(.93); }
.pl-play::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(127, 240, 208, .35); opacity: 0; transform: scale(.9); }
.player.playing .pl-play::after { animation: halo 3.2s var(--glide) infinite; }
@keyframes halo { 0% { opacity: .9; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.35); } }
.pl-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: var(--s3); font: 500 .6875rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(222, 246, 239, .6); }
.pl-hint .ic { width: 16px; height: 16px; }

.pl-panel { margin-top: var(--s5); border-radius: var(--r-l); background: rgba(222, 246, 239, .045); box-shadow: inset 0 0 0 1px rgba(222, 246, 239, .09); }
.pl-panel > button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 58px; padding: 0 var(--s5); font: 500 .75rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mint-ink); }
.pl-panel > button .ic { transition: transform .5s var(--spring); }
.pl-panel > button[aria-expanded="true"] .ic { transform: rotate(180deg); }
.pl-panel > button:active { opacity: .7; }
.pl-sets { display: grid; gap: var(--s5); padding: 0 var(--s5) var(--s5); }
.pl-set > .k { display: flex; justify-content: space-between; gap: var(--s3); margin-bottom: 10px; font: 500 .625rem/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(222, 246, 239, .55); }
.pl-set > .k b { font-weight: 500; color: var(--mint); letter-spacing: .08em; }
.pl-set .note { margin-top: 8px; font-size: .8rem; line-height: 1.5; color: rgba(222, 246, 239, .6); }
.dark .seg { background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px rgba(222, 246, 239, .08); }
.dark .seg button { color: rgba(222, 246, 239, .7); }
.dark .seg button::before { background: rgba(127, 240, 208, .14); box-shadow: inset 0 0 0 1px rgba(127, 240, 208, .3); }
.dark .seg button[aria-selected="true"], .dark .seg button:hover { color: #F1FBF8; }
.dark .chip { color: rgba(222, 246, 239, .78); box-shadow: inset 0 0 0 1px rgba(222, 246, 239, .18); }
.dark .chip:hover { color: #fff; }
.dark .chip::before { background: var(--mint); }
.dark .chip[aria-pressed="true"] { color: #03231F; }
.dark .toggle { background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px rgba(222, 246, 239, .18); }
.dark .toggle[aria-checked="true"] { background: var(--mint); }
.mixrow { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: var(--s3); font-size: .85rem; color: rgba(222, 246, 239, .78); }
.mixrow + .mixrow { margin-top: 4px; }
.depthwave { width: 100%; height: 30px; margin-top: 10px; }
.depthwave path { fill: none; stroke: var(--mint); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .85; }

.pl-over { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: var(--s3); padding: var(--s5); text-align: center; background: rgba(3, 23, 22, .82); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transform: scale(1.03); transition: opacity .5s ease, transform .7s var(--glide); }
.pl-over.on { opacity: 1; pointer-events: auto; transform: none; }
.pl-over h3 { font: 400 clamp(1.7rem, 6vw, 2.3rem)/1.05 var(--f-display); letter-spacing: -.03em; color: #F1FBF8; }
.pl-over p { font-size: .9rem; line-height: 1.6; color: rgba(222, 246, 239, .75); max-width: 24rem; }
.pl-over .row { margin-top: var(--s3); flex-wrap: wrap; justify-content: center; }
@media (min-width: 900px) {
  .pl { padding-left: var(--s7); padding-right: var(--s7); }
  .pl-main { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s7); align-items: start; margin-top: var(--s5); }
  .pl-scope { max-width: none; position: sticky; top: var(--s5); }
}

/* ── sheets, toast ────────────────────────────────────────────────── */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; display: grid; align-items: end; pointer-events: none; visibility: hidden; transition: visibility 0s linear .6s; }
.sheet-wrap.on { visibility: visible; transition: visibility 0s; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(3, 23, 22, .5); opacity: 0; transition: opacity .35s ease; }
.sheet { position: relative; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain; padding: var(--s3) var(--s5) calc(var(--s6) + env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0; background: var(--surface); color: var(--ink); box-shadow: var(--sh-3); transform: translateY(104%); transition: transform .6s var(--glide); }
.sheet-grip { width: 42px; height: 5px; margin: 0 auto var(--s4); border-radius: 5px; background: var(--line-2); }
.sheet-wrap.on { pointer-events: auto; }
.sheet-wrap.on .sheet-scrim { opacity: 1; }
.sheet-wrap.on .sheet { transform: none; }
.sheet-x { position: absolute; top: 12px; right: 12px; }
@media (min-width: 720px) { .sheet-wrap { align-items: center; } .sheet { width: min(600px, calc(100% - 48px)); margin: 0 auto; border-radius: 30px; transform: translateY(30px) scale(.98); opacity: 0; transition: transform .6s var(--glide), opacity .3s ease; } .sheet-wrap.on .sheet { opacity: 1; } .sheet-grip { display: none; } }

.plans { display: grid; gap: var(--s3); margin-top: var(--s5); }
.plan { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: var(--s4); border-radius: var(--r-m); text-align: left; box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .45s var(--spring); }
.plan:hover { transform: translateY(-2px); }
.plan:active { transform: scale(.98); }
.plan[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--vir), var(--sh-2); background: color-mix(in oklab, var(--vir) 5%, var(--surface)); }
.plan .dot { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); display: grid; place-items: center; }
.plan[aria-checked="true"] .dot { box-shadow: inset 0 0 0 7px var(--vir); }
.plan b { display: block; font-weight: 600; }
.plan small { display: block; font-size: .8rem; color: var(--ink-3); }
.plan .price { text-align: right; font: 400 1.5rem/1 var(--f-display); letter-spacing: -.02em; }
.plan .price small { font: 500 .625rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.plan .badge { position: absolute; top: -9px; right: 14px; padding: 4px 9px; border-radius: 999px; background: var(--mint); color: #03231F; font: 600 .6rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.incl { display: grid; gap: 8px; margin-top: var(--s5); padding: 0; list-style: none; }
.incl li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .925rem; color: var(--ink-2); }
.incl .ic { width: 18px; height: 18px; color: var(--vir); margin-top: 3px; }
.cite { padding: var(--s4); border-radius: var(--r-m); background: var(--sunken); }
.cite b { display: block; font: 500 .6875rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--vir); }
.cite p { margin-top: 6px; font-size: .9rem; line-height: 1.6; color: var(--ink-2); }
.cite a { display: inline-block; margin-top: 6px; font-size: .8rem; }
.bandrow { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: var(--s3); align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bandrow:last-child { border-bottom: 0; }
.bandrow b { display: block; font-weight: 600; font-size: .9rem; }
.bandrow small { display: block; font: 400 .7rem/1.3 var(--f-mono); color: var(--ink-3); }
.bandrow svg { width: 100%; height: 26px; }
.bandrow path { fill: none; stroke: var(--ink-3); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: .7; }
.bandrow.on path { stroke: var(--vir); opacity: 1; stroke-width: 2; }
.bandrow.on b { color: var(--vir); }

.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--tab-h) + 96px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--paper); font-size: .9rem; font-weight: 500; box-shadow: var(--sh-3); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: transform .5s var(--spring), opacity .25s ease; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }

.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--paper); z-index: 100; transition: opacity .4s ease; }
.boot svg { width: 56px; height: 56px; animation: breathe 2.6s var(--glide) infinite; }
.boot.gone { opacity: 0; pointer-events: none; }
@keyframes breathe { 0%, 100% { transform: scale(.92); opacity: .75; } 50% { transform: scale(1.04); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
