/* The beat store (approved design, Network/concepts/store, 2026-10-28). Warm black, cool white, Inter for
   everything, pills and round buttons, 12px cards. The accent is the ink; colour only from each beat's own glow. */
@font-face { font-family: Inter; src: url('/fonts/InterVariable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --black: #0a0908; --white: #f2f3f5;
  --page: #0a0908; --ink: #f2f3f5; --on-ink: #0a0908; --i: 242, 243, 245;
  --surface: #161514; --surface-2: #1f1e1d; --sheet: #11100f; --glass: rgba(16, 15, 14, .84);
  --muted: rgba(var(--i), .62); --faint: rgba(var(--i), .4); --line: rgba(var(--i), .14); --hair: rgba(var(--i), .08);
  --field: rgba(var(--i), .045); --ph: #3a3a3c;
  --g1: #9a9aa2; --g2: #44444a;
  --sans: Inter, system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --page: #f2f3f5; --ink: #0a0908; --on-ink: #f2f3f5; --i: 10, 9, 8;
  --surface: #ffffff; --surface-2: #e9eaed; --sheet: #fbfbfc; --glass: rgba(248, 248, 250, .86);
  --ph: #c9cacd; color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--page); color: var(--ink); }
body {
  font-family: var(--sans); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss03';
  overflow-x: hidden; min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.own { stroke-width: 2; width: 16px; height: 16px; }
svg.f { fill: currentColor; stroke: none; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { position: relative; isolation: isolate; min-height: 100dvh; }
.wrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 16px 120px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.wrap.narrow { max-width: 760px; }

/* light from his picture (or the first beat's colours) behind the header: light, not paint */
.halo { position: absolute; left: 0; right: 0; top: 0; height: 420px; z-index: 0; overflow: hidden; pointer-events: none; }
.halo img { width: 100%; height: 100%; object-fit: cover; filter: blur(48px); opacity: .34; transform: scale(1.25); }
.halo .light { position: absolute; inset: -10%; background: radial-gradient(45% 55% at 25% 20%, color-mix(in srgb, var(--g1) 70%, transparent), transparent 70%), radial-gradient(45% 55% at 80% 35%, color-mix(in srgb, var(--g2) 60%, transparent), transparent 72%); filter: blur(40px); opacity: .32; }
.halo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--page) 60%, transparent) 55%, var(--page) 100%); }
.halo.hart { height: 560px; }
.halo.hart .light { opacity: .55; }

/* the round header buttons: his row (Home, Map … Search, Theme), plus the cart and the account */
.top { display: flex; align-items: center; gap: 8px; padding: 12px 0 6px; padding-top: max(12px, env(safe-area-inset-top)); }
.sp { flex: 1; }
.top.withback { gap: 5px; } /* seven round buttons fit 375 px: 7 × 44 + 6 × 5 = 338 ≤ 343 */
svg.i.back { stroke-width: 2.2; }
.rb { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--glass); border: 1px solid var(--line); color: var(--ink); flex: none; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.rb.me { padding: 0; }
.rb .initial { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-weight: 650; font-size: 14px; }
.badge { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font: 700 11px/19px var(--sans); text-align: center; box-shadow: 0 0 0 2px var(--page); font-variant-numeric: tabular-nums; }
.badge.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.3); } }
.acctwrap { position: relative; }
.menu { position: absolute; right: 0; top: 52px; z-index: 30; min-width: 190px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--sheet); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.menu .who { padding: 8px 12px 6px; color: var(--muted); font-size: 12.5px; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--field); }
.menu form { margin: 0; }
.face { display: block; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--hair); }
.face.ph { display: inline-grid; place-items: center; background: var(--ph); color: rgba(var(--i), .85); font-weight: 650; font-size: 18px; }

/* pills */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--field); color: var(--ink); font: 600 14px/1.2 var(--sans); white-space: nowrap; }
.pill.ink { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.pill.sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.pill.ghost { background: none; }
.pill.wide { width: 100%; }
.pill.big { min-height: 54px; font-size: 16px; letter-spacing: -.01em; }
.pill .i { width: 17px; height: 17px; }
.pill:disabled, .pill[aria-disabled='true'] { opacity: .5; cursor: not-allowed; }
.pill:active:not(:disabled) { transform: scale(.98); }
.eyebrow { margin: 0; color: var(--muted); font: 700 11.5px/1.3 var(--sans); letter-spacing: .11em; text-transform: uppercase; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.error { margin: 10px 2px 0; color: var(--ink); font-size: 14px; font-weight: 600; padding: 10px 14px; border: 1px solid var(--ink); border-radius: 12px; }
.error:empty { display: none; }
.empty { color: var(--muted); padding: 24px 2px; margin: 0; }

/* his brand block: compact so the beats lead */
.brand { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; }
.brand .face { width: 52px; height: 52px; }
.brand .who { flex: 1; min-width: 0; }
.brand h1 { margin: 0; font: 700 22px/1.1 var(--sans); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .port { padding: 0 13px; }
.only-desk-i { display: none; }

/* Beats · Loops · Samples · Kits */
.seg { display: flex; gap: 4px; margin: 16px 0 0; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--field); }
.seg button { flex: 1; min-height: 38px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); transition: background .2s, color .2s; }
.seg button[aria-pressed='true'] { background: var(--ink); color: var(--on-ink); }

.searchrow { display: flex; gap: 8px; margin: 12px 0 0; }
.search { flex: 1; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--field); color: var(--faint); min-width: 0; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--ink); font: 16px var(--sans); outline: none; }
.search input::placeholder { color: var(--faint); }
.search:focus-within { border-color: rgba(var(--i), .45); }
.rb.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chips { display: flex; gap: 6px; margin: 10px -16px 0; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; flex: none; height: 36px; padding: 0 12px 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink); background: none; }
.chip .i { width: 15px; height: 15px; color: var(--muted); }
.chip.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip.on .i { color: var(--on-ink); }
.chip.plain { padding: 0 14px; }

/* the track list */
.listhead { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 0 4px; }
.listhead a, .listhead button { font-size: 13.5px; font-weight: 600; }
.rows { margin: 0; padding: 0; list-style: none; }
.row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 36px; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.tile { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; isolation: isolate; background: #111; color: #f2f3f5; flex: none; }
.tile::before { content: ''; position: absolute; inset: -30%; z-index: -1; background: radial-gradient(60% 60% at 25% 20%, var(--g1), transparent 70%), radial-gradient(60% 60% at 85% 90%, var(--g2), transparent 72%); filter: blur(6px); opacity: .9; }
.tile svg { width: 16px; height: 16px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.tilebtn { display: block; border-radius: 10px; }
.tile .pz, .playing .tile .pl { display: none; }
.playing .tile .pz { display: block; }
.row.current .tile { box-shadow: 0 0 0 1px rgba(242, 243, 245, .5), 0 0 22px color-mix(in srgb, var(--g1) 55%, transparent); }
.row .t { min-width: 0; }
.row .t a { display: flex; align-items: center; gap: 7px; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t small { display: block; margin-top: 1px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .price { text-align: right; font-variant-numeric: tabular-nums; line-height: 1.2; }
.row .price small { display: block; color: var(--faint); font-size: 11.5px; }
.row .price b { font-size: 15px; font-weight: 650; }
.row.sold { opacity: .5; }
.add { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--field); position: relative; }
.add::after { content: ''; position: absolute; inset: -4px; }
.add .i { width: 17px; height: 17px; }
.add.in { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.add:disabled { opacity: .35; cursor: not-allowed; }
.eq { display: none; gap: 2px; align-items: flex-end; height: 12px; flex: none; }
.current .eq { display: inline-flex; }
.row .t .nm { overflow: hidden; text-overflow: ellipsis; }
.eq i { display: block; width: 2.5px; height: 6px; background: var(--ink); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
.row.current:not(.playing) .eq i { animation-play-state: paused; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 12px; } }
.desk { display: none; }

/* the player bar: one at a time, stays */
.player { position: fixed; z-index: 10; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 8px 0 10px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 18px 50px rgba(0, 0, 0, .5), 0 0 40px color-mix(in srgb, var(--g1) 16%, transparent); overflow: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .35s; }
.player.away { transform: translateY(140%); opacity: 0; pointer-events: none; }
.player .pp { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--on-ink); flex: none; }
.player .pp svg { width: 18px; height: 18px; }
.player .pp .pz, .player.playing .pp .pl { display: none; }
.player.playing .pp .pz { display: block; }
.player .t { flex: 1; min-width: 0; line-height: 1.25; }
.player .t a { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .t small { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.player .bar { position: absolute; left: 62px; right: 24px; bottom: 4px; height: 10px; display: flex; align-items: center; }
.player .bar i { display: block; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: rgba(var(--i), .16); pointer-events: none; }
.player .bar i b { display: block; height: 100%; width: var(--p, 0%); border-radius: 2px; background: var(--ink); }
.player .bar input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }

/* cards and big numbers */
.card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tiles3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 0; }
.stat { padding: 12px 12px 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); min-width: 0; }
.stat b { display: block; font: 650 26px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat small { display: block; margin-top: 7px; color: var(--muted); font: 700 10.5px/1.2 var(--sans); letter-spacing: .11em; text-transform: uppercase; }

/* product page */
.crumb { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; height: 36px; padding: 0 14px 0 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); font-size: 13.5px; font-weight: 600; max-width: 100%; }
.crumb .face { width: 28px; height: 28px; font-size: 12px; }
.crumb .i { width: 15px; height: 15px; color: var(--muted); }
.art { position: relative; margin: 14px 0 0; aspect-ratio: 1 / .78; border-radius: 12px; overflow: hidden; isolation: isolate; background: #0d0c0b; border: 1px solid var(--hair); }
.art .light { position: absolute; inset: -25%; z-index: -1; background: radial-gradient(42% 48% at 30% 30%, var(--g1), transparent 70%), radial-gradient(40% 46% at 72% 70%, var(--g2), transparent 72%), radial-gradient(30% 30% at 55% 45%, color-mix(in srgb, var(--g1) 50%, var(--g2)), transparent 70%); filter: blur(34px); opacity: .92; animation: breathe 6s ease-in-out infinite; }
.art.playing .light { animation-duration: 3s; }
.art .grain { position: absolute; inset: 0; z-index: -1; opacity: .18; background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px); background-size: 3px 3px; mix-blend-mode: overlay; }
@keyframes breathe { 50% { transform: scale(1.05); opacity: .8; } }
.art .play { position: absolute; left: 14px; bottom: 14px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #f2f3f5; color: #0a0908; }
.art .play svg { width: 22px; height: 22px; }
.art .play .pz, .art.playing .play .pl { display: none; }
.art.playing .play .pz { display: block; }
.art .tag { position: absolute; right: 14px; bottom: 20px; color: rgba(242, 243, 245, .8); font-size: 12px; font-weight: 600; }
.wave { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; }
.wave .bars { position: relative; flex: 1; display: flex; align-items: center; gap: 2px; height: 40px; min-width: 0; overflow: hidden; cursor: pointer; }
.wave .bars i { flex: 1; min-width: 1.5px; height: 12%; border-radius: 2px; background: rgba(var(--i), .26); transition: height .4s ease; }
.wave .bars i.on { background: var(--ink); }
.wave .bars input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.wave .time { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptitle h1 { margin: 18px 0 0; font: 700 36px/1.02 var(--sans); letter-spacing: -.035em; overflow-wrap: anywhere; }
.ptitle p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 10px; }
.sec a { font-size: 13.5px; font-weight: 600; }
.soldnote { margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-weight: 600; }

.lic { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); text-align: left; width: 100%; transition: border-color .2s, background .2s, box-shadow .2s; }
.opt .r { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--faint); }
.opt b { display: block; font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }
.opt small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.opt .amt { font: 650 24px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.opt[aria-checked='true'] { border-color: var(--ink); background: var(--surface-2); box-shadow: 0 0 0 1px var(--ink), 0 10px 40px color-mix(in srgb, var(--g1) 16%, transparent); }
.opt[aria-checked='true'] .r { border-color: var(--ink); background: radial-gradient(circle, var(--ink) 0 4.5px, transparent 5.5px); }
.opt:disabled { opacity: .4; cursor: not-allowed; }

.cmp { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.cmp th, .cmp td { padding: 9px 4px; border-bottom: 1px solid var(--hair); text-align: right; vertical-align: top; }
.cmp th:first-child, .cmp td:first-child { text-align: left; color: var(--muted); font-weight: 500; padding-left: 0; }
.cmp thead th { color: var(--muted); font: 700 10.5px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding-bottom: 8px; }
.cmp td { font-weight: 600; }
.cmp .pick { color: var(--ink); background: rgba(var(--i), .05); }
.fine { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.fine a, a.u { color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.buybar { position: fixed; z-index: 10; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 7px 0 20px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.buybar .t { flex: 1; min-width: 0; line-height: 1.2; }
.buybar .t small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .t b { font: 650 20px/1.1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.buybar .pill { min-height: 54px; padding: 0 22px; font-size: 15.5px; }

/* sheets */
.scrim { position: fixed; inset: 0; z-index: 20; background: rgba(5, 5, 4, .66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.scrim.open { opacity: 1; }
.sheet { position: fixed; z-index: 21; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto; overscroll-behavior: contain; padding: 10px 16px 22px; padding-bottom: max(22px, env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--sheet); border-top: 1px solid var(--line); box-shadow: 0 -20px 60px rgba(0, 0, 0, .6); transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.sheet.open { transform: none; }
.sheet .grab { width: 38px; height: 5px; margin: 0 auto 12px; border-radius: 9px; background: rgba(var(--i), .24); }
.sheet h2 { margin: 0; font: 700 24px/1.1 var(--sans); letter-spacing: -.025em; }
.shead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shead .who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.shead .who h2 { font-size: 21px; }
.shead .who small { color: var(--muted); }
.sheet .pill.big { margin-top: 16px; }

.item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.item .t { min-width: 0; }
.item .t b { display: block; font-size: 15.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .t small { display: block; color: var(--muted); font-size: 13px; }
.item .t button { font-size: 13px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; min-height: 32px; }
.item .p { text-align: right; font: 650 16px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.item .p button { display: block; margin: 6px 0 0 auto; color: var(--muted); font-size: 12.5px; font-weight: 500; min-height: 32px; }
.item .tiersmall { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.item.gone { opacity: .6; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 0; }
.total b { font: 700 30px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.acct { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); font-size: 13.5px; }
.acct .face { width: 32px; height: 32px; font-size: 13px; }
.acct .initial { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-weight: 650; flex: none; }
.acct > span:not(.face):not(.initial) { flex: 1; min-width: 0; line-height: 1.35; }
.acct small { display: block; color: var(--muted); font-size: 12.5px; }
.agree { position: relative; display: flex; gap: 10px; align-items: flex-start; margin: 14px 2px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.agree input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.agree .box { position: relative; flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--faint); color: var(--on-ink); }
.agree .box svg { width: 14px; height: 14px; stroke-width: 2.6; opacity: 0; }
.agree input:checked + .box { background: var(--ink); border-color: var(--ink); }
.agree input:checked + .box svg { opacity: 1; }
.agree input:focus-visible + .box { outline: 2px solid var(--ink); outline-offset: 2px; }
.agree a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 12px 0 0; color: var(--muted); font-size: 12.5px; text-align: center; }
.secure .i { width: 15px; height: 15px; }

/* checkout */
.test { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.test i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 8px rgba(var(--i), .6); }
.summary { margin: 14px 0 0; padding: 4px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); }
.summary .item:last-of-type { border-bottom: 0; }
.summary .total { margin: 6px 0 12px; }
.paybox { margin: 22px 0 0; min-height: 120px; }
#checkout { border-radius: 14px; overflow: hidden; }
.waiting { display: flex; align-items: center; gap: 10px; padding: 18px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }

/* after paying, purchases, license */
.ptop h1 { margin: 18px 0 0; font: 700 34px/1.05 var(--sans); letter-spacing: -.03em; }
.ptop p { margin: 6px 0 0; color: var(--muted); }
.paid { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--ink); border-radius: 12px; font-size: 14px; font-weight: 600; }
.paid.quiet { border-color: var(--line); color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 12px rgba(var(--i), .7); flex: none; }
.dot.pulse { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.8); } }
.buy { position: relative; margin: 12px 0 0; padding: 16px 14px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; isolation: isolate; }
.buy::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 120%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--g1) 30%, transparent), transparent); filter: blur(20px); }
.buy .hd { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; }
.buy .hd b { display: block; font-size: 17px; font-weight: 650; letter-spacing: -.015em; }
.buy .hd small { display: block; color: var(--muted); font-size: 13px; }
.licno { margin: 14px 0 0; }
.licno small { display: block; color: var(--muted); font: 700 10.5px/1.2 var(--sans); letter-spacing: .11em; text-transform: uppercase; }
.licno b { display: block; margin-top: 5px; font: 650 25px/1.05 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.licno.big b { font-size: clamp(28px, 8vw, 40px); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.btns .pill { flex: 1 1 auto; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.up { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: calc(100% + 28px); margin: 14px -14px -14px; padding: 12px 14px; border-top: 1px solid var(--hair); font-size: 13.5px; text-align: left; min-height: 48px; }
.up span { color: var(--muted); }
.up b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.lines { margin: 8px 0 0; padding: 0; list-style: none; }
.lines li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.lines li span:first-child { color: var(--muted); }
.lines li span:last-child { text-align: right; font-weight: 600; }
.plain { margin: 8px 0 0; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; font-size: 14px; }

.foot { margin: 40px 0 0; color: var(--faint); font-size: 12.5px; }
.foot p { margin: 4px 0; }
.foot a { text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }

/* filter and license sheets */
.fine.center { text-align: center; }
.fsec { margin-top: 22px; }
.fsec .eyebrow { margin-bottom: 6px; }
.fbtns { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 22px; }
.sheet .lic { margin-top: 10px; }
.sheet .shead + .eyebrow { margin-top: 20px; }
.sheettl { display: grid; gap: 12px; margin-top: 14px; }
.sheettl div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sheettl span small { display: block; color: var(--muted); font-size: 12.5px; }
.sheettl > div > b { font-size: 22px; letter-spacing: -.03em; }
.bpmread { display: flex; align-items: baseline; gap: 10px; }
.bpmread b { font: 650 40px/1 var(--sans); letter-spacing: -.035em; }
.bpmread span { color: var(--muted); font-size: 13px; }
.ruler { position: relative; height: 64px; margin: 10px 0 0; }
.ruler .ticks { position: absolute; left: 0; right: 0; bottom: 16px; height: 30px; display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.ruler .ticks i { width: 1px; height: 10px; background: rgba(var(--i), .3); }
.ruler .ticks i:nth-child(5n+1) { height: 20px; background: rgba(var(--i), .55); }
.ruler .range { position: absolute; bottom: 16px; height: 30px; border-radius: 6px; background: rgba(var(--i), .08); border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); pointer-events: none; }
.ruler .lab { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; pointer-events: none; }
.ruler input { position: absolute; left: -11px; right: -11px; width: calc(100% + 22px); bottom: 12px; height: 38px; margin: 0; background: none; -webkit-appearance: none; appearance: none; pointer-events: none; }
.ruler input::-webkit-slider-runnable-track { height: 38px; background: none; }
.ruler input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 38px; border-radius: 999px; background: transparent; cursor: ew-resize; }
.ruler input::-moz-range-track { background: none; }
.ruler input::-moz-range-thumb { pointer-events: auto; width: 22px; height: 38px; border: 0; border-radius: 999px; background: transparent; cursor: ew-resize; }
.ruler input:focus-visible { outline: none; }
.ruler input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--ink); }
.keys { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 10px 0 0; }
.keys button { height: 40px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; }
.keys button.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.mm { display: flex; gap: 6px; margin: 8px 0 0; }
.mm .chip { flex: 1; justify-content: center; padding: 0; }
.chipwrap { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .wrap { padding: 0 40px 130px; }
  .top { padding-top: 20px; }
  .brand { margin-top: 22px; gap: 16px; }
  .brand .face { width: 72px; height: 72px; font-size: 26px; }
  .brand h1 { font-size: 30px; }
  .brand p { font-size: 14px; }
  .only-desk-i { display: inline-flex; }
  .brand .port { padding: 0 14px; }
  .listhead { margin-top: 24px; margin-bottom: 10px; }
  .store { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
  .tools { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; }
  .tools .seg { margin: 0; flex: none; width: 420px; }
  .tools .searchrow { margin: 0; flex: 1; }
  .chips { margin: 12px 0 0; padding: 0; overflow: visible; flex-wrap: wrap; }
  .row { grid-template-columns: 44px minmax(0, 1fr) 80px 100px 70px 100px 36px; gap: 16px; padding: 9px 6px; }
  .row .t small { display: none; }
  .desk { display: block; }
  .cols { display: grid; grid-template-columns: 44px minmax(0, 1fr) 80px 100px 70px 100px 36px; gap: 16px; padding: 0 6px 8px; border-bottom: 1px solid var(--hair); }
  .cols span { color: var(--faint); font: 700 10.5px/1.2 var(--sans); letter-spacing: .11em; text-transform: uppercase; }
  .cols span:nth-child(6) { text-align: right; }
  .row .c { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink); }
  .row .c.muted { color: var(--muted); }
  .aside { position: sticky; top: 20px; margin-top: 22px; }
  .aside .card { padding: 16px; }
  .aside .tl { display: grid; gap: 12px; margin-top: 14px; }
  .aside .tl div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .aside .tl span b { font-weight: 600; }
  .aside .tl span small { display: block; color: var(--muted); font-size: 12.5px; }
  .aside .tl > div > b { font-size: 22px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
  .player { left: 50%; right: auto; width: 760px; bottom: 20px; transform: translateX(-50%); }
  .player.away { transform: translate(-50%, 140%); }
  .prod { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 8px; }
  .prod .art { margin-top: 18px; aspect-ratio: 1 / .6; }
  .ptitle h1 { margin-top: 18px; font-size: 52px; }
  .buybar { left: 50%; right: auto; width: 560px; bottom: 20px; transform: translateX(-50%); }
  .co { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 48px; align-items: start; }
  .co .paybox { margin-top: 30px; }
  .sheet.modal { left: 50%; right: auto; bottom: auto; top: 50%; width: 480px; max-height: 90vh; border-radius: 20px; border: 1px solid var(--line); padding: 22px 24px; transform: translate(-50%, -46%); opacity: 0; transition: transform .25s, opacity .25s; }
  .sheet.modal.open { transform: translate(-50%, -50%); opacity: 1; }
  .sheet .grab { display: none; }
  .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
  .grid2 .buy { margin-top: 0; }
}
.only-phone { }
@media (min-width: 900px) { .only-phone { display: none !important; } }
.only-desk { display: none; }
@media (min-width: 900px) { .only-desk { display: block; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .top, .player, .buybar, .btns, .foot, .halo { display: none !important; }
  :root { --page: #fff; --ink: #000; --i: 0, 0, 0; --surface: #fff; }
  .buy::before { display: none; }
}

/* the sign-in / sign-out notes the Worker writes (src/auth.js) */
main.msg { max-width: 560px; margin: 0 auto; padding: max(48px, env(safe-area-inset-top)) 16px 48px; }
main.msg h1 { margin: 0 0 8px; font: 700 34px/1.05 var(--sans); letter-spacing: -.03em; }
main.msg p { color: var(--muted); }
