/* Card vocabulary, verbatim from the approved design sample
   (design-samples/v2/index.html). These are the styles the card
   fragments were built from: icons, stages, plan bands, receipts,
   guide sources, player deck. The sample's short variable names
   alias the app's --color-* palette below, so the palette has one
   source of truth. */

:root {
  --paper: var(--color-paper, #fafaf8); --sheet: var(--color-sheet, #f2f1ee); --rule: var(--color-rule, #e2e1dc);
  --ink: var(--color-ink, #171614); --ash: var(--color-ash, #57544e); --mist: var(--color-mist, #6f6b64);
  --accent: var(--color-accent, #1f5fd6); --accent-ink: var(--color-accent-ink, #ffffff); --white: var(--color-white, #fff);
  --danger: var(--color-danger, #b42318); --success: var(--color-success, #067647); --warn: var(--color-warn, #b54708);
}

/* Icons: inline SVG sprite, currentColor, no external loading */
.ic {
  display: inline-block; width: 1rem; height: 1rem; flex: 0 0 auto; vertical-align: -0.125em;
}

.s10 {
  width: .625rem; height: .625rem;
}

.s12 {
  width: .75rem; height: .75rem;
}

.s14 {
  width: .875rem; height: .875rem;
}

.s16 {
  width: 1rem; height: 1rem;
}

.s20 {
  width: 1.25rem; height: 1.25rem;
}

.btn-quiet {
  background: none; border: 0; padding: .5rem 0; color: var(--accent); font-size: .875rem; line-height: 1.25rem; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

@media (hover: none) {
  .btn, .qr, .stem, .play-disc, .source { transform: none !important; }
}

/* Folio header */
.folio {
  max-width: 1240px; margin: 0 auto; padding: 56px 32px 0;
}

.folio-bar {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding-bottom: 1.125rem;
}

.folio-bar .label {
  color: var(--ink);
}

.folio-bar .spacer {
  flex: 1;
}

.display {
  font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; max-width: 15ch;
}

.deck {
  margin: 1.125rem 0 0; max-width: 58ch; font-size: 1.0625rem; line-height: 1.7; color: var(--ash);
}

.spectrum-rule {
  height: 2px; margin-top: 2.25rem; border-radius: 9999px; background: linear-gradient(90deg, #ff3d68, #ff7a3d, #ffd23d, #4ade80, #38bdf8, #7c5cff, #ff3d68); opacity: .85;
}

/* Spread: thread + marginalia */
.spread {
  max-width: 1240px; margin: 0 auto; padding: 40px 32px 120px; display: grid; grid-template-columns: minmax(0, 760px) 300px; column-gap: 64px; align-items: start;
}

.beat.in {
  opacity: 1; transform: none;
}

.ghost-folio {
  position: absolute; left: -128px; top: 32px; font-size: 2.5rem; font-weight: 700; letter-spacing: -0.04em; color: color-mix(in srgb, var(--rule) 80%, var(--paper)); font-variant-numeric: tabular-nums;
}

.dj-detail {
  font-size: .9375rem; line-height: 1.7; color: var(--ash); margin: 0 0 1rem; max-width: 58ch;
}

.quick-replies {
  display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.125rem;
}

.qr {
  border: 1px solid var(--rule); background: var(--white); border-radius: 9999px; padding: .4375rem .875rem; font-size: .8125rem; line-height: 1.25rem; font-weight: 500; font-family: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}

.qr:hover {
  border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, #fff);
}

/* Receipt: used-and-collapsed card */
.receipt {
  display: flex; align-items: center; gap: .5rem; margin: 1rem 0 0; padding: .5rem .75rem; border: 1px solid var(--rule); border-radius: .5rem; background: var(--sheet); font-size: .8125rem; color: var(--ash);
}

.receipt .ic {
  color: var(--success);
}

.receipt strong {
  color: var(--ink); font-weight: 600;
}

.receipt button {
  margin-left: auto; background: none; border: 0; color: var(--accent); font: inherit; font-size: .8125rem; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

.actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: .625rem; margin-top: 1.125rem;
}

.reassure {
  display: flex; gap: .5rem; align-items: flex-start; margin: 1rem 0 0; font-size: .75rem; line-height: 1.6; color: var(--mist); max-width: 58ch;
}

.reassure .ic {
  color: var(--success); margin-top: .125rem;
}

/* Consent pool */
.pool {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem;
}

.owner {
  display: flex; align-items: center; gap: .5rem; min-width: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: .5rem; padding: .5rem .625rem; flex: 1 1 11rem;
}

.owner img {
  width: 2.125rem; height: 2.125rem; border-radius: 9999px; flex: 0 0 2.125rem; border: 1px solid var(--rule); background: var(--white); object-fit: cover;
}

.owner b {
  display: block; font-size: .75rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.owner span {
  display: block; font-size: .6875rem; color: var(--mist); white-space: nowrap; margin-top: .125rem;
}

.track {
  display: grid; grid-template-columns: 1fr auto; gap: .375rem .875rem; align-items: center; padding: .75rem 0; border-top: 1px solid var(--rule);
}

.track:first-child {
  border-top: 0;
}

.track b {
  font-size: .875rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.track-meta {
  grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: var(--mist); font-variant-numeric: tabular-nums;
}

.eq {
  display: inline-flex; align-items: center; gap: 2px; height: 11px;
}

.eq i {
  width: 2.5px; border-radius: 2px; background: currentColor; height: 11px; transform-origin: center; animation: eqb 1.15s ease-in-out infinite;
}

.eq i:nth-child(2) {
  animation-delay: .22s;
}

.eq i:nth-child(3) {
  animation-delay: .44s;
}

/* Guide: numbered reading list */
.sources {
  margin-top: 1.25rem;
}

.source {
  display: grid; grid-template-columns: 1.75rem 2.5rem 1fr auto; gap: .875rem; align-items: center; padding: .875rem 0; border-top: 1px solid var(--rule); text-decoration: none; color: inherit;
}

.source:first-child {
  border-top: 0;
}

.source-folio {
  font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; color: var(--rule); font-variant-numeric: tabular-nums;
}

.source-mark {
  position: relative; width: 2.5rem; height: 2.5rem; border-radius: .5rem; border: 1px solid var(--rule); background: var(--sheet); display: flex; align-items: center; justify-content: center; font-size: .8125rem; font-weight: 700; color: var(--ash);
}

.source-mark img {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: .375rem; object-fit: contain; background: var(--sheet); border-radius: .5rem;
}

.source-title {
  font-size: .9375rem; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: .375rem; transition: color .15s ease;
}

.source:hover .source-title {
  color: var(--accent);
}

.source-title .ic {
  color: var(--mist);
}

.source-domain {
  display: block; font-size: .75rem; color: var(--mist); margin-top: .125rem;
}

.lic {
  display: inline-flex; align-items: center; gap: .25rem; font-size: .6875rem; line-height: 1.125rem; font-weight: 600; border-radius: .25rem; padding: .1875rem .4375rem; white-space: nowrap;
}

.lic-ok {
  color: var(--success); background: color-mix(in srgb, var(--success) 8%, #fff); border: 1px solid color-mix(in srgb, var(--success) 25%, transparent);
}

.lic-buy {
  color: var(--ash); background: var(--sheet); border: 1px solid var(--rule);
}

.lic-warn {
  color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, #fff); border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent);
}

/* Plan: the tape bleeds to the card edges */
.plan-head {
  display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap;
}

.plan-head .chips {
  margin-left: auto; display: flex; gap: .375rem; flex-wrap: wrap;
}

.tape {
  display: flex; gap: 2px; height: 3.25rem; margin: 1.125rem -1.25rem 0; background: var(--rule); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}

.band {
  display: flex; align-items: center; min-width: .55rem; padding: 0 .5rem; position: relative; overflow: hidden; white-space: nowrap; font-size: .625rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; transition: filter .15s ease;
}

.band:hover {
  filter: brightness(1.04) saturate(1.12);
}

.b-intro {
  background: color-mix(in srgb, var(--accent) 16%, #fff); color: var(--ash);
}

.b-verse {
  background: color-mix(in srgb, var(--ash) 42%, #fff); color: #fff;
}

.b-drop {
  background: var(--accent); color: var(--accent-ink);
}

.b-break {
  background: color-mix(in srgb, var(--mist) 34%, #fff); color: var(--ink);
}

.b-outro {
  background: color-mix(in srgb, var(--ash) 22%, #fff); color: var(--ink);
}

.band.is-sel {
  outline: 2px solid var(--ink); outline-offset: -2px;
}

.kept {
  position: absolute; top: .25rem; right: .25rem; width: 1rem; height: 1rem; border-radius: .25rem; background: rgba(255, 255, 255, .85); color: var(--ink); display: flex; align-items: center; justify-content: center;
}

.band-rail {
  display: flex; gap: 2px; margin: 0 -1.25rem;
}

.band-cell {
  min-width: .55rem; padding: .4375rem .5rem 0; overflow: hidden; white-space: nowrap; font-size: .625rem; color: var(--mist); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: .5rem; height: 1.75rem;
}

.stems {
  display: inline-flex; gap: .25rem; align-items: center;
}

.stems .ic {
  color: color-mix(in srgb, var(--mist) 38%, var(--paper));
}

.stems .ic.on {
  color: var(--ash);
}

.xf-rail {
  display: flex; gap: 2px; height: 1.125rem; margin: 0 -1.25rem; align-items: center;
}

.xf-cell {
  min-width: .55rem; display: flex; justify-content: center;
}

.xf-mark {
  width: .375rem; height: .375rem; transform: rotate(45deg); background: var(--mist); opacity: .5;
}

.edit-pop {
  margin: 1rem 0 0 20%; width: 15.5rem; border: 1px solid var(--rule); border-radius: .5rem; background: var(--white); box-shadow: 0 10px 30px rgba(23, 22, 20, .12); padding: .375rem; position: relative;
}

.edit-pop::before {
  content: ""; position: absolute; top: -.375rem; left: 2.5rem; width: .75rem; height: .75rem; background: var(--white); border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); transform: rotate(45deg);
}

.edit-pop button {
  display: flex; width: 100%; align-items: center; gap: .5rem; background: none; border: 0; border-radius: .375rem; padding: .5rem .625rem; font: inherit; font-size: .8125rem; color: var(--ink); cursor: pointer; text-align: left;
}

.edit-pop button:hover {
  background: var(--sheet);
}

.edit-pop button.danger {
  color: var(--danger);
}

.plan-note {
  display: flex; gap: .5rem; margin-top: 1.125rem; padding: .6875rem .875rem; background: var(--sheet); border-radius: .5rem; font-size: .8125rem; line-height: 1.6; color: var(--ash);
}

.plan-note .ic {
  color: var(--accent); margin-top: .125rem;
}

.plan-note strong {
  color: var(--ink);
}

/* Render and player: light, the v1 .mix-player language */
.render {
  padding: 1.25rem 1.25rem 1.375rem;
}

.render-top {
  display: flex; align-items: baseline; gap: .75rem;
}

.render-top h2 {
  font-size: 1.125rem; font-weight: 600;
}

.render-eta {
  margin-left: auto; font-size: .8125rem; color: var(--ash); font-variant-numeric: tabular-nums;
}

.sweep-rail {
  position: relative; height: .5rem; margin: 1rem 0 1.25rem; border-radius: 9999px; background: var(--rule); overflow: hidden;
}

.sweep-fill {
  position: absolute; inset: 0 auto 0 0; width: 62%; border-radius: 9999px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, #fff), var(--accent));
}

.sweep-fill::after {
  content: ""; position: absolute; inset: 0; border-radius: 9999px; background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .35) 50%, transparent 75%); background-size: 220% 100%; animation: sweep 2.6s linear infinite;
}

.sweep-head {
  position: absolute; top: -2px; bottom: -2px; left: 62%; width: 2px; background: var(--ink);
}

.stages {
  list-style: none; margin: 0; padding: 0;
}

.stages li {
  display: grid; grid-template-columns: 1.5rem 1fr auto; gap: .625rem; align-items: center; padding: .5rem 0; border-top: 1px solid var(--rule); font-size: .875rem;
}

.stages li:first-child {
  border-top: 0;
}

.st-ic {
  display: flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 9999px;
}

.st-done {
  background: color-mix(in srgb, var(--success) 12%, #fff); color: var(--success);
}

.st-run {
  background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent);
}

.st-wait {
  background: var(--sheet); color: var(--mist);
}

.stages .when {
  font-size: .75rem; color: var(--mist); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: .375rem;
}

.preview {
  display: flex; align-items: center; gap: .75rem; margin-top: 1.125rem; padding: .75rem .875rem; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: .5rem; background: color-mix(in srgb, var(--accent) 5%, #fff);
}

.preview b {
  font-size: .8125rem; font-weight: 600;
}

.preview span {
  font-size: .75rem; color: var(--ash); line-height: 1.55;
}

.play-disc {
  display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; flex: 0 0 2.5rem; border: 0; border-radius: 9999px; background: var(--accent); color: var(--accent-ink); cursor: pointer; transition: filter .15s ease;
}

.play-disc:hover {
  filter: brightness(1.1);
}

.play-disc.big {
  width: 3rem; height: 3rem; flex-basis: 3rem;
}

.deck-head {
  display: flex; align-items: baseline; gap: .625rem; flex-wrap: wrap;
}

.deck-head h2 {
  font-size: 1.125rem; font-weight: 600;
}

.deck-head .chips {
  margin-left: auto; display: flex; gap: .375rem;
}

.wave {
  display: block; width: 100%; height: 5.5rem; margin-top: .875rem; border-radius: .625rem; cursor: pointer; touch-action: none;
}

.reflect {
  display: flex; gap: 2px; height: .5rem; margin-top: .5rem;
}

.r-band {
  position: relative; overflow: hidden; border-radius: 9999px;
}

.r-band::before {
  content: ""; position: absolute; inset: 0; background: inherit; opacity: .28;
}

.r-fill {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 9999px; background: inherit;
}

.transport {
  display: flex; align-items: center; gap: .75rem; margin-top: .875rem;
}

.clock {
  font-size: .8125rem; color: var(--ash); font-variant-numeric: tabular-nums;
}

.clock b {
  color: var(--ink); font-weight: 600;
}

.ab {
  display: inline-flex; border: 1px solid var(--rule); border-radius: .375rem; overflow: hidden; margin-left: auto; background: var(--white);
}

.ab button {
  border: 0; background: transparent; color: var(--ash); font: inherit; font-size: .75rem; line-height: 1.125rem; font-weight: 500; padding: .4375rem .75rem; cursor: pointer;
}

.ab button + button {
  border-left: 1px solid var(--rule);
}

.ab button.on {
  background: var(--ink); color: var(--white);
}

.stem-row {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .875rem;
}

.stem {
  display: inline-flex; align-items: center; gap: .375rem; border: 1px solid var(--rule); border-radius: 9999px; background: var(--white); padding: .3125rem .6875rem; font-size: .75rem; line-height: 1.125rem; font-weight: 500; font-family: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s ease, opacity .15s ease;
}

.stem:hover {
  border-color: var(--accent);
}

.stem .ic {
  color: var(--accent);
}

.stem.off {
  opacity: .55;
}

.stem.off .ic {
  color: var(--mist);
}

.export-row {
  display: flex; align-items: center; gap: .625rem; flex-wrap: wrap; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--rule);
}

.quota {
  margin-left: auto; text-align: right;
}

.quota-bar {
  width: 8.5rem; height: .25rem; border-radius: 9999px; background: var(--rule); overflow: hidden;
}

.quota-bar i {
  display: block; width: 100%; height: 100%; background: var(--accent);
}

.quota small {
  display: block; margin-top: .25rem; font-size: .6875rem; color: var(--mist);
}

/* Marginalia */
.notes {
  position: sticky; top: 32px;
}

.note {
  padding: 1rem 0; border-top: 1px solid var(--rule);
}

.note:first-child {
  border-top: 0; padding-top: 0;
}

.note .n {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--accent); margin-bottom: .375rem;
}

.note p {
  margin: 0 0 .5rem; font-size: .8125rem; line-height: 1.7; color: var(--ash);
}

.note p strong {
  color: var(--ink); font-weight: 600;
}

.colophon {
  max-width: 1240px; margin: 0 auto; padding: 24px 32px 72px; border-top: 1px solid var(--rule); font-size: .8125rem; line-height: 1.75; color: var(--mist); columns: 2; column-gap: 64px;
}

.colophon p {
  margin: 0 0 .75rem; break-inside: avoid;
}

/* Mobile */
@media (max-width: 1120px) {
  .spread { grid-template-columns: 1fr; }
  .notes { position: static; margin-top: 2.5rem; }
  .ghost-folio { display: none; }
}

@media (max-width: 720px) {
  .folio { padding: 40px 20px 0; }
  .spread { padding: 28px 20px 88px; }
  .colophon { padding: 20px 20px 56px; columns: 1; }
  .module, .render, .mix-player { padding: 1.125rem 1rem 1.25rem; }
  .tape, .band-rail, .xf-rail { margin-left: -1rem; margin-right: -1rem; }
  .source { grid-template-columns: 2.5rem 1fr; gap: .625rem .75rem; }
  .source-folio { display: none; }
  .source .lic { grid-column: 2; justify-self: start; margin-top: .125rem; }
  .edit-pop { margin-left: 0; width: 100%; }
  .edit-pop::before { display: none; }
  .actions { gap: .5rem; }
  .receipt { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .band-rail, .xf-rail { display: none; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .actions .btn-quiet { align-self: flex-start; }
  .transport { flex-wrap: wrap; }
  .ab { margin-left: 0; }
  .export-row .btn { flex: 1 1 100%; }
  .quota { margin-left: 0; text-align: left; }
}

@media (pointer: coarse) {
  .btn, .qr, .stem, .edit-pop button, .ab button { min-height: 44px; }
  .play-disc { min-width: 44px; min-height: 44px; }
  .source { padding: 1rem 0; }
  .receipt button { min-height: 44px; }
}

@keyframes eqb {
  0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); }
}

@keyframes sweep {
  from { background-position: 220% 0; } to { background-position: -80% 0; }
}

.b-build {
  background: color-mix(in srgb, var(--accent) 40%, #fff); color: var(--ink);
}

.b-other {
  background: color-mix(in srgb, var(--mist) 20%, #fff); color: var(--ink);
}

/* The guide card's disclosure speaks in the quiet link voice, not the
   browser's native marker. */
details summary {
  list-style: none;
  cursor: pointer;
}

details summary::-webkit-details-marker {
  display: none;
}

/* Review sharpenings: hands that read as hands, rows that breathe, and
   contrast that holds at 10px. */
.band-cell {
  display: flex; align-items: center; gap: 0.5rem; padding-bottom: 0.25rem;
}
.swap-hand {
  margin-left: auto; display: inline-flex;
}
.swap-hand .icon-btn {
  width: 1.5rem; height: 1.5rem; border: 0; border-radius: 0.375rem;
  background: none; color: var(--mist);
}
.swap-hand .icon-btn:hover {
  background: var(--sheet); color: var(--ink);
}
.stems .ic {
  color: color-mix(in srgb, var(--mist) 30%, var(--paper));
}
.stems .ic.on {
  color: var(--ink);
}
.b-verse {
  color: var(--ink);
}
.actions {
  margin-top: 1.375rem;
}
.source-title {
  align-items: flex-start;
}
.source-title .ic {
  margin-top: 0.25rem; flex: 0 0 auto;
}

/* The timeline sits in its own box: it never ramps into the card's edges. */
.tape-box {
  margin: 1.125rem 0 0; padding: 0.75rem 0.875rem 0.625rem;
  border: 1px solid var(--rule); border-radius: 0.75rem; background: var(--white);
}
.tape-box .tape { margin: 0; }
.tape-box .band-rail { margin: 0; }

/* The key picker: a searchable list in the product's own language.
   Native selects have no place in this design. */
.keypick {
  position: relative;
}
.keypick-btn {
  width: 100%; display: flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--rule); border-radius: 0.375rem; background: var(--white);
  padding: 0.5rem 0.625rem; font: inherit; font-size: 0.875rem; color: var(--ink);
  cursor: pointer; text-align: left;
}
.keypick-btn:hover { border-color: var(--ash); }
.keypick-btn[aria-expanded="true"] { border-color: var(--accent); }
.keypick-btn svg { margin-left: auto; color: var(--mist); flex: 0 0 auto; }
.keypick-pop {
  position: absolute; z-index: 30; top: calc(100% + 0.375rem); left: 0; right: 0;
  border: 1px solid var(--rule); border-radius: 0.5rem; background: var(--white);
  box-shadow: 0 10px 30px rgba(23, 22, 20, 0.12); padding: 0.375rem;
}
.keypick-search {
  width: 100%; border: 1px solid var(--rule); border-radius: 0.375rem;
  padding: 0.5rem 0.625rem; font: inherit; font-size: 0.875rem; color: var(--ink);
  margin-bottom: 0.375rem;
}
.keypick-search:focus { outline: none; border-color: var(--accent); }
.keypick-list {
  list-style: none; margin: 0; padding: 0; max-height: 12.5rem; overflow-y: auto;
}
.keypick-list li {
  padding: 0.5rem 0.625rem; border-radius: 0.375rem; cursor: pointer;
  font-size: 0.8125rem; line-height: 1.25rem; color: var(--ink);
  display: flex; gap: 0.5rem; align-items: baseline;
}
.keypick-list li:hover, .keypick-list li.is-active { background: var(--sheet); }
.keypick-list li[aria-selected="true"] { color: var(--accent); font-weight: 600; }
.keypick-code {
  color: var(--mist); font-variant-numeric: tabular-nums; min-width: 1.75rem;
}

/* The tuning panel: the plan card's own instrument. Tempo is a fader with
   a stepper, keys come from the wheel that actually mixes, and the blocks
   breathe. */
.adjust {
  margin-top: 1.25rem;
}
.adjust-toggle {
  display: inline-flex; align-items: center; gap: 0.375rem; cursor: pointer;
  color: var(--accent); font-size: 0.875rem; font-weight: 500;
  list-style: none;
}
.adjust-toggle::-webkit-details-marker { display: none; }
.adjust-toggle svg { transition: transform 0.15s ease; }
.adjust[open] .adjust-toggle svg { transform: rotate(180deg); }
.adjust-panel {
  margin-top: 0.875rem; padding: 1.25rem;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 0.75rem;
}
.adjust-note {
  margin: 0; font-size: 0.8125rem; line-height: 1.55; color: var(--ash);
}
.adjust-block {
  display: grid; gap: 0.625rem;
}
.stepper {
  display: flex; align-items: center; gap: 0.75rem;
}
.stepper-btn {
  width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  border: 1px solid var(--rule); background: var(--white); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease;
}
.stepper-btn:hover { border-color: var(--ash); }
.stepper-btn:active { background: var(--sheet); }
.stepper-value {
  font-size: 1.75rem; font-weight: 650; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--ink);
  min-width: 3.25rem; text-align: center;
}
.stepper-unit {
  font-size: 0.6875rem; color: var(--mist); text-transform: uppercase;
  letter-spacing: 0.06em;
}
.fader {
  -webkit-appearance: none; appearance: none; width: 100%; height: 0.25rem;
  border-radius: 9999px; background: var(--rule); outline: none; cursor: pointer;
}
.fader::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 1.25rem; height: 1.25rem; border-radius: 9999px;
  background: var(--accent); border: 2px solid var(--white);
  box-shadow: 0 1px 3px rgba(23, 22, 20, 0.2); cursor: pointer;
}
.fader::-moz-range-thumb {
  width: 1.125rem; height: 1.125rem; border-radius: 9999px;
  background: var(--accent); border: 2px solid var(--white);
  box-shadow: 0 1px 3px rgba(23, 22, 20, 0.2); cursor: pointer;
}
.fader:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.fader-scale {
  display: flex; justify-content: space-between;
  font-size: 0.6875rem; color: var(--mist); font-variant-numeric: tabular-nums;
}
.wheel {
  display: flex; flex-wrap: wrap; gap: 0.375rem;
}
.wheel .chip {
  cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease;
}
.wheel .chip:hover { border-color: var(--ash); }
.adjust-hint {
  margin: 0; font-size: 0.75rem; line-height: 1.5; color: var(--mist);
}
.adjust-actions {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
@media (max-width: 720px) {
  .stepper-btn { width: 2.75rem; height: 2.75rem; }
  .adjust-panel { padding: 1rem; }
}
