/* Dusk — dark product site.
   Restrained canvas, compact type, the product and the live art carried inside
   framed surfaces rather than smeared behind the copy. */

:root {
  --bg: #08080a;
  --bg-2: #0c0c10;
  --surface: rgba(255,255,255,.032);
  --surface-2: rgba(255,255,255,.055);
  --line: rgba(255,255,255,.085);
  --line-2: rgba(255,255,255,.14);

  --tx: #ededef;
  --tx-dim: #8b8b95;
  --tx-faint: #5e5e68;

  --shot-shadow: 0 50px 100px -40px rgba(0,0,0,.9);
  --glow: rgba(124,107,255,.20);
  --nav-bg: rgba(12,12,16,.72);
  --btn-p-bg: var(--tx);
  --btn-p-tx: #08080a;
  --scheme: dark;

  --violet: #7c6bff;
  --teal: #36bab8;
  --amber: #e5a057;

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --page: 1180px;
  --r: 12px;
  --r-lg: 18px;
  --ease: cubic-bezier(.16,1,.3,1);
}

/* Light is a full sibling palette, not an inversion — the wallpaper art is
   dark, so light mode leans on framing and contrast instead of glow. */
:root[data-theme="light"] {
  --bg: #fbfbfa;
  --bg-2: #ffffff;
  --surface: rgba(20,20,26,.028);
  --surface-2: rgba(20,20,26,.055);
  --line: rgba(20,20,26,.11);
  --line-2: rgba(20,20,26,.2);

  --tx: #16161a;
  --tx-dim: #61616b;
  --tx-faint: #8e8e98;

  --shot-shadow: 0 40px 80px -40px rgba(20,20,40,.35);
  --glow: rgba(124,107,255,.16);
  --nav-bg: rgba(255,255,255,.78);
  --btn-p-bg: #16161a;
  --btn-p-tx: #ffffff;
  --scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fbfbfa;
    --bg-2: #ffffff;
    --surface: rgba(20,20,26,.028);
    --surface-2: rgba(20,20,26,.055);
    --line: rgba(20,20,26,.11);
    --line-2: rgba(20,20,26,.2);
    --tx: #16161a;
    --tx-dim: #61616b;
    --tx-faint: #8e8e98;
    --shot-shadow: 0 40px 80px -40px rgba(20,20,40,.35);
    --glow: rgba(124,107,255,.16);
    --nav-bg: rgba(255,255,255,.78);
    --btn-p-bg: #16161a;
    --btn-p-tx: #ffffff;
    --scheme: light;
  }
}

html { color-scheme: var(--scheme); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 24px; }

/* ---------- live surfaces ---------- */

[data-effect] { position: relative; overflow: hidden; background: #0a0a0d center/cover no-repeat; }
[data-effect] > .dusk-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
[data-effect] > * { position: relative; z-index: 1; }

/* ---------- nav ---------- */

.nav-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 80; display: flex; justify-content: center; padding: 0 16px; }
.nav {
  display: flex; align-items: center; gap: 26px;
  width: 100%; max-width: var(--page);
  padding: 9px 9px 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
          backdrop-filter: saturate(180%) blur(18px);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: -.03em; }
.brand img { width: 21px; height: 21px; border-radius: 5px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin-left: 6px; }
.nav-links a { font-size: 13px; color: var(--tx-dim); padding: 6px 10px; border-radius: 8px; transition: color .16s, background .16s; }
.nav-links a:hover { color: var(--tx); background: var(--surface-2); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 999px; padding: 9px 16px;
  font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background .18s, border-color .18s;
}
.btn:active { transform: translateY(1px); }
.btn-p { background: var(--btn-p-bg); color: var(--btn-p-tx); }
.btn-p:hover { opacity: .88; }
.btn-g { border-color: var(--line-2); color: var(--tx); }
.btn-g:hover { background: var(--surface-2); }
.btn-lg { padding: 12px 22px; font-size: 14px; }

/* ---------- hero ---------- */

.hero { position: relative; padding: 118px 0 0; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -280px; transform: translateX(-50%);
  width: 1100px; height: 760px; pointer-events: none;
  background: radial-gradient(ellipse at center, var(--glow), transparent 62%);
  filter: blur(10px);
}
.hero-in { position: relative; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px 5px 9px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 12px; color: var(--tx-dim); margin-bottom: 26px;
}
.pill b { color: var(--tx); font-weight: 600; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(54,186,184,.55) } 70%,100% { box-shadow: 0 0 0 11px rgba(54,186,184,0) } }

h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 700; letter-spacing: -.042em; line-height: 1.06;
  max-width: 19ch; margin: 0 auto 18px;
  text-wrap: balance;
}
h1 span { color: var(--tx-faint); }

.sub { text-wrap: pretty; font-size: 16px; color: var(--tx-dim); max-width: 52ch; margin: 0 auto 28px; }
.cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.micro { margin-top: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--tx-faint); }
.micro a { color: var(--tx-dim); border-bottom: 1px solid var(--line-2); }

/* ---------- Mac App Store badge ---------- */
/* Apple's artwork, unmodified and unrecoloured. Both lockups ship and the
   theme picks one, so the badge always sits on the contrast it was drawn for.
   Clear space is a quarter of the badge height, per Apple's marketing
   guidelines — hence the margin rather than the usual button gap. */

.mas {
  display: inline-block;
  line-height: 0;
  border: 0;
  border-radius: 9px;
  margin: 0 10px;
  transition: transform .2s cubic-bezier(.2,.7,.3,1), opacity .2s;
}
.mas img { display: block; height: 40px; width: auto; }
.mas-lg img { height: 48px; }
.mas:hover { transform: translateY(-2px); opacity: .88; }
.mas:active { transform: translateY(0); }
.mas:focus-visible { outline: 2px solid var(--tx-dim); outline-offset: 5px; }

/* dark is the default, so the white lockup leads */
.mas .blk { display: none; }
.mas .wht { display: block; }
:root[data-theme="light"] .mas .blk { display: block; }
:root[data-theme="light"] .mas .wht { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .mas .blk { display: block; }
  :root:not([data-theme="dark"]) .mas .wht { display: none; }
}

/* the closing panel keeps its dark veil in either theme */
:root .close .mas .blk { display: none; }
:root .close .mas .wht { display: block; }

/* the nav badge is a shortcut, not the hero moment */
.nav-right .mas { margin: 0 0 0 4px; }
.nav-right .mas img { height: 30px; }

/* a plain text alternative sitting under a badge */
.alt-dl { margin-top: 16px; font-size: 13px; color: var(--tx-faint); }
.alt-dl a { color: var(--tx-dim); border-bottom: 1px solid var(--line-2); }
.alt-dl a:hover { color: var(--tx); }

@media (max-width: 620px) {
  .nav-right .mas { display: none; }
  .mas-lg img { height: 44px; }
}

/* the product, framed */
.shot {
  margin: 38px auto 0; max-width: 940px; padding: 0 24px;
  position: relative;
}
.shot-frame {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shot-shadow);
  background: #0a0a0d;
}
.shot img { width: 100%; }

/* ---------- strip ---------- */

.strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-top: 76px;
}
.strip div { padding: 20px 24px; text-align: center; border-right: 1px solid var(--line); }
.strip div:last-child { border-right: 0; }
.strip b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.03em; }
.strip span { font-size: 12px; color: var(--tx-faint); }

/* ---------- sections ---------- */

section { padding: 72px 0; }
.head { margin-bottom: 28px; max-width: 62ch; }
.head.mid { text-align: center; margin-left: auto; margin-right: auto; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 12px;
}
.head h2 { text-wrap: pretty; font-size: 17px; font-weight: 600; letter-spacing: -.025em; line-height: 1.45; }
.head h2 span { color: var(--tx-dim); font-weight: 400; }

/* ---------- bento ---------- */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cell {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color .28s, transform .28s var(--ease);
}
.cell:hover { border-color: var(--line-2); }
.cell-pad { padding: 22px; }
.c6 { grid-column: span 6; } .c4 { grid-column: span 4; }
.c3 { grid-column: span 3; } .c2 { grid-column: span 2; }

.cell h3 { font-size: 15px; font-weight: 600; letter-spacing: -.025em; margin-bottom: 7px; }
.cell p { font-size: 13.5px; color: var(--tx-dim); }
.cell .tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tx-faint); margin-bottom: 12px; display: block;
}

/* a cell whose interior is a live backdrop */
.cell-live { min-height: 244px; display: flex; flex-direction: column; justify-content: flex-end; }
.cell-live .veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,8,10,.10) 40%, rgba(8,8,10,.88));
}
.cell-live .cell-pad { position: relative; z-index: 2; }

/* the tuner */
.tuner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.dots { display: flex; gap: 7px; }
.dots button {
  width: 22px; height: 22px; border-radius: 50%; padding: 0; cursor: pointer;
  background: var(--s); border: 2px solid transparent;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.dots button:hover { transform: scale(1.15); }
.dots button[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff; transform: scale(1.1); }
.swap-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--tx-dim); background: var(--surface-2); border: 1px solid var(--line);
  padding: 6px 11px; border-radius: 999px; cursor: pointer;
  transition: color .18s, border-color .18s;
}
.swap-btn:hover { color: var(--tx); border-color: var(--line-2); }

/* the framed desktop */
.deskcell { min-height: 300px; padding: 22px; display: flex; align-items: center; justify-content: center; }
.desk {
  position: relative; width: 100%; aspect-ratio: 16/10;
  border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.9);
}
.desk-bar {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  padding: 5px 10px; font-size: 9.5px; color: rgba(255,255,255,.8);
  background: rgba(18,18,22,.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.desk-bar b { font-weight: 700; }
.desk-bar .r { margin-left: auto; font-family: var(--mono); }
.desk-dock {
  position: absolute; z-index: 2; left: 50%; bottom: 9px; transform: translateX(-50%);
  display: flex; gap: 6px; padding: 5px 8px; border-radius: 12px;
  background: rgba(24,24,30,.5); border: 1px solid rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.desk-dock i { width: 22px; height: 22px; border-radius: 6px; background: var(--c,#555); }
.desk-dock i img { width: 100%; height: 100%; border-radius: 6px; }

/* ---------- three-up text rows ---------- */

.rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.rows p { font-size: 13.5px; color: var(--tx-dim); }
.rows b { color: var(--tx); font-weight: 600; }

/* ---------- faq ---------- */

.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 0;
  font-size: 14.5px; font-weight: 600; letter-spacing: -.02em;
  display: flex; justify-content: space-between; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--tx-faint); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { font-size: 13.5px; color: var(--tx-dim); padding-bottom: 18px; max-width: 66ch; }

/* ---------- closing ---------- */

.close { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-align: center; }
.close .veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,8,10,.62), rgba(8,8,10,.82)); }
.close-in { position: relative; z-index: 2; padding: 74px 24px; }
.close h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; letter-spacing: -.04em; margin-bottom: 12px; }
.close p { color: var(--tx-dim); max-width: 44ch; margin: 0 auto 24px; font-size: 15px; }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line); padding: 52px 0 60px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
/* .brand is a flex row; keep it inline here so it does not span the line */
.foot-top .brand { display: inline-flex; color: var(--tx); }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
footer nav a { font-size: 13.5px; color: var(--tx-dim); }
footer nav a:hover { color: var(--tx); }

/* Attribution, kept quiet but legible. Apple's marketing guidelines ask for
   the trademark line wherever their badge appears. Matches the home page. */
.legal {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid; gap: 10px;
  font-size: 12px; line-height: 1.55; color: var(--tx-faint);
  max-width: 68ch;
}

/* ---------- reading pages ---------- */

.doc { max-width: 720px; margin: 0 auto; padding: 132px 24px 90px; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); max-width: none; text-align: left; margin: 0 0 12px; }
.doc .updated { font-size: 13px; color: var(--tx-faint); margin-bottom: 34px; }
.doc h2 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); margin: 40px 0 12px; }
.doc p, .doc li { font-size: 15px; color: var(--tx-dim); margin-bottom: 12px; line-height: 1.68; }
.doc ul { padding-left: 20px; }
.doc strong { color: var(--tx); font-weight: 600; }
.doc a { color: var(--tx); border-bottom: 1px solid var(--line-2); }
.doc .callout { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 20px 22px; margin: 24px 0; }
.doc .callout p { margin: 0; }
.doc details { border-bottom: 1px solid var(--line); }
.doc summary { cursor: pointer; padding: 16px 0; font-size: 14.5px; font-weight: 600; color: var(--tx); }
.doc details p { padding-bottom: 16px; }

/* ---------- motion ---------- */

[data-r] { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .8s var(--ease); }
[data-r].in { opacity: 1; transform: none; }

@media (max-width: 940px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .c6,.c4,.c3,.c2 { grid-column: span 2; }
  .rows { grid-template-columns: 1fr; gap: 18px; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .c6,.c4,.c3,.c2 { grid-column: span 1; }
  section { padding: 68px 0; }
  .strip div { padding: 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-r] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .pill i { animation: none; }
  html { scroll-behavior: auto; }
}


/* ---------- theme switch ---------- */

.theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex: none;
  border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line);
  color: var(--tx-dim);
  transition: color .18s, border-color .18s, background .18s;
}
.theme-btn:hover { color: var(--tx); border-color: var(--line-2); background: var(--surface-2); }
.theme-btn svg { width: 15px; height: 15px; }
.theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .sun,
:root:not([data-theme="dark"]) .theme-btn .sun { display: block; }
:root[data-theme="light"] .theme-btn .moon,
:root:not([data-theme="dark"]) .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }

/* ---------- price cards ---------- */

.price { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.price .cell { display: flex; flex-direction: column; }
.price .amount {
  font-size: 30px; font-weight: 800; letter-spacing: -.04em;
  margin: 2px 0 4px;
}
.price .amount small { font-size: 13px; font-weight: 500; color: var(--tx-dim); letter-spacing: -.01em; }
.price ul { list-style: none; margin: 14px 0 0; }
.price li {
  font-size: 13.5px; color: var(--tx-dim);
  padding: 6px 0 6px 22px; position: relative;
}
.price li::before {
  content: "✓"; position: absolute; left: 0; top: 6px;
  color: var(--violet); font-weight: 700;
}
.price .foot { margin-top: auto; padding-top: 18px; }
.price .best { border-color: var(--line-2); }
@media (max-width: 760px) { .price { grid-template-columns: 1fr; } }


  .chips button { font-size: 11px; padding: 5px 9px }
}

/* ============================================================
   The app, running in the hero.
   A faithful rebuild of the Dusk interface — same rail, panel,
   tabs and shelf — driving a real shader.
   ============================================================ */

.app {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shot-shadow);
  background: #08080b;
  color: #fff;
}

.app-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 13px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.tl { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.tl.r { background: #ff5f57 } .tl.y { background: #febc2e } .tl.g { background: #28c840 }
.app-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: -.02em;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.app-title img { width: 14px; height: 14px; border-radius: 4px; }
.app-bar { position: relative; }

.app-body { position: relative; aspect-ratio: 16 / 10; }
.app-stage { position: absolute; inset: 0; }
.app-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,6,10,.30) 0%, transparent 26%,
                              transparent 62%, rgba(6,6,10,.42) 100%);
}

/* --- glass, the way the app does it --- */
.rail, .panel {
  position: absolute; z-index: 2;
  background: rgba(22,22,28,.5);
  border: 1px solid rgba(255,255,255,.13);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
          backdrop-filter: saturate(180%) blur(22px);
  box-shadow: 0 16px 40px -18px rgba(0,0,0,.8);
}

.rail {
  left: 18px; top: 50%; transform: translateY(-50%);
  border-radius: 26px;
  padding: 12px 8px;
  display: flex; flex-direction: column; gap: 12px;
}
.rail button {
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: transparent; color: rgba(255,255,255,.72);
  display: grid; place-items: center; cursor: pointer;
  transition: color .16s, transform .2s var(--ease), background .16s;
}
.rail button:hover { color: #fff; background: rgba(255,255,255,.12); transform: scale(1.08) }
.rail svg { width: 15px; height: 15px; }
.rail .ic-play { display: none }
.app.is-paused .rail .ic-play { display: block }
.app.is-paused .rail .ic-pause { display: none }

.panel {
  right: 18px; top: 18px; bottom: 18px; width: 244px;
  border-radius: 20px;
  padding: 16px;
  display: flex; flex-direction: column;
}
.panel-cat {
  font-size: 8.5px; font-weight: 700; letter-spacing: .22em;
  color: rgba(255,255,255,.42); margin-bottom: 3px;
}
.panel-name {
  font-size: 19px; font-weight: 700; letter-spacing: -.035em;
  margin-bottom: 13px; color: #fff;
  transition: opacity .2s ease;
}
.panel-name.swap { opacity: 0 }

.panel-apply {
  width: 100%; padding: 8px 0; margin-bottom: 12px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: -.01em;
  background: #fff; color: #101014;
  transition: opacity .16s, transform .16s var(--ease);
}
.panel-apply:hover { transform: translateY(-1px) }
.panel-apply.is-active {
  background: transparent; color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.2); cursor: default;
}
.panel-apply.is-active::before {
  content: "●"; color: var(--teal); font-size: 8px; margin-right: 6px; vertical-align: middle;
}

.tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  padding: 2px; border-radius: 8px;
  background: rgba(255,255,255,.07);
  margin-bottom: 14px;
}
.tabs button {
  border: 0; border-radius: 6px; padding: 5px 0; cursor: pointer;
  font-family: var(--font); font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,.66); background: transparent;
  transition: background .16s, color .16s;
}
.tabs button[aria-selected="true"] { background: #3b82f6; color: #fff }

.tab-body { display: flex; flex-direction: column; gap: 13px; }
/* display:flex would otherwise beat the hidden attribute */
.tab-body[hidden] { display: none; }
.tab-body .row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 11px; color: rgba(255,255,255,.72);
}
.swatch-set { display: flex; gap: 5px; }
.swatch-set button {
  width: 17px; height: 17px; border-radius: 50%; padding: 0; cursor: pointer;
  background: var(--s, transparent); border: 2px solid transparent;
  box-shadow: 0 0 0 1px rgba(255,255,255,.3);
  transition: transform .18s var(--ease), box-shadow .18s;
}
.swatch-set button:hover { transform: scale(1.18) }
.swatch-set button[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff; transform: scale(1.1) }
.swatch-set .reset { background: conic-gradient(#e56b3d,#9eff1a,#36bab8,#7c6bff,#e56b3d); position: relative }
.swatch-set .reset::after { content:""; position:absolute; inset:4px; border-radius:50%; background:#1b1b22 }

.slider { display: flex; flex-direction: column; gap: 6px; }
.slider span {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; color: rgba(255,255,255,.72);
}
.slider b {
  font-family: var(--mono); font-size: 10px; font-weight: 400;
  color: rgba(255,255,255,.45);
}
.app input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 3px; border-radius: 2px; outline: none;
  background: rgba(255,255,255,.22);
}
.app input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; border-radius: 50%; background: #fff; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.6);
  transition: transform .15s var(--ease);
}
.app input[type=range]:active::-webkit-slider-thumb { transform: scale(1.3) }
.app input[type=range]::-moz-range-thumb {
  width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; cursor: pointer;
}

.panel-empty { font-size: 11px; color: rgba(255,255,255,.42); line-height: 1.5 }

.panel-reset {
  margin-top: auto; padding-top: 12px;
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font); font-size: 10.5px; font-weight: 500;
  color: rgba(255,255,255,.42);
  transition: color .16s;
}
.panel-reset:hover { color: rgba(255,255,255,.8) }

/* --- shelf --- */

.shelf {
  display: flex; gap: 9px;
  padding: 12px 13px;
  overflow-x: auto;
  background: rgba(255,255,255,.035);
  border-top: 1px solid rgba(255,255,255,.07);
  scrollbar-width: thin;
}
.shelf::-webkit-scrollbar { height: 5px }
.shelf::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 3px }

.thumb {
  flex: none; width: 96px; cursor: pointer;
  background: none; border: 0; padding: 0;
  font-family: var(--font);
  transition: transform .22s var(--ease);
}
.thumb:hover { transform: translateY(-3px) }
.thumb .pic {
  display: block;              /* a span ignores width/height without this */
  position: relative;
  width: 96px; height: 60px; border-radius: 7px; overflow: hidden;
  background: #111 center/cover no-repeat;
  border: 1px solid rgba(255,255,255,.14);
  transition: border-color .2s, box-shadow .2s;
}
.thumb[aria-pressed="true"] .pic {
  border-color: #fff;
  box-shadow: 0 0 0 1px #fff;
}
.thumb .cap {
  display: block; margin-top: 5px;
  font-size: 9px; font-weight: 500; letter-spacing: -.01em;
  color: rgba(255,255,255,.55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.thumb[aria-pressed="true"] .cap { color: #fff; font-weight: 700 }

.thumb .lock, .thumb .new {
  position: absolute; font-weight: 800; line-height: 1;
}
.thumb .lock {
  right: 4px; top: 4px;
  width: 15px; height: 15px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff;
  display: grid; place-items: center; font-size: 8px;
}
.thumb .new {
  left: 4px; top: 4px;
  font-size: 6.5px; letter-spacing: .06em;
  background: #fff; color: #000;
  padding: 2px 4px; border-radius: 999px;
}
.thumb.locked .pic { opacity: .62 }

.shot-hint { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--tx-faint) }

@media (max-width: 860px) {
  .panel { position: static; width: auto; margin: 0; border-radius: 0;
           border: 0; border-top: 1px solid rgba(255,255,255,.08);
           background: rgba(18,18,24,.9); }
  .app-body { aspect-ratio: 16 / 11 }
  .rail { left: 10px }
}
