/* SoundRec's own parts on top of the kit: the record panel, the sound switches and the guide. */
[hidden] { display: none !important; }
.hero-title { letter-spacing: -0.01em; }
.yours { display: inline-flex; align-items: center; gap: var(--s2); margin: var(--s2) 0 0; padding: 0.35rem 0.8rem; border: 2px solid var(--ink); border-radius: var(--pill); background: var(--surface); font-weight: 700; font-size: var(--step--1); }
.dot { display: inline-block; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--brand); flex: none; }

.rec-panel, .rec-panel:is(*) { background: var(--surface); color: var(--ink); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: var(--s4); gap: var(--s3); text-align: left; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.rec-panel > * { grid-column: 1 / -1; }
.screen { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #15181c; color: #eef1f4; display: grid; place-items: center; overflow: hidden; }
.screen-art { width: 62%; height: auto; }
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.count { position: absolute; inset: 0; display: grid; place-items: center; font: 400 clamp(4rem, 10vw, 7rem)/1 var(--font-display); color: #fff; background: rgb(0 0 0 / 0.55); }
.rec-badge { position: absolute; top: 0.6rem; left: 0.6rem; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.6rem; border-radius: var(--pill); background: rgb(0 0 0 / 0.7); color: #fff; font: 400 0.95rem/1 var(--font-mono); }
.rec-badge .dot { animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .rec-badge .dot { animation: none; } }
.status { margin: 0; font-weight: 600; }
.status.warn { color: var(--brand-text); }
.rec-actions { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.rec-panel .btn { margin-top: 0; justify-self: start; }
.rec-panel .btn-primary { background: var(--brand); color: var(--brand-ink); border: 2px solid var(--ink); }
.rec-panel .rec-btn { gap: 0.55rem; }
.rec-panel .rec-btn .dot { background: var(--brand-ink); }
.rec-panel .rec-btn.on .dot { border-radius: 2px; }
.rec-panel #save { background: var(--ink); color: var(--bg); border: 2px solid var(--ink); }
.rec-panel .btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line-strong); }
.sums { margin: 0; color: var(--ink-2); }

.inputs { border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); align-content: start; }
.opt { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.opt legend, .switch b { font-family: var(--font-display); font-weight: 400; font-size: var(--step-0); }
.opt legend { margin-bottom: var(--s2); }
.seg { flex-wrap: wrap; }
.hint { margin: 0; color: var(--ink-2); }
.switch { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; cursor: pointer; }
.switch input { width: 1.4rem; height: 1.4rem; margin: 0.15rem 0 0; accent-color: var(--brand); }
.switch small { display: block; color: var(--ink-2); font-size: var(--step--1); }
.switch.off { opacity: 0.6; cursor: default; }
.meter { display: grid; grid-template-columns: 1fr auto; gap: var(--s2); align-items: center; }
.meter i { display: block; height: 0.6rem; border-radius: var(--pill); background: linear-gradient(to right, var(--brand) var(--lvl, 0%), var(--surface-2) var(--lvl, 0%)); border: 1px solid var(--line); }
.assure { margin: 0; }

.lead { max-width: 60ch; }
.guide { margin-top: var(--s5); background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); }
.guide tr.here td { background: color-mix(in oklab, var(--accent) 30%, var(--surface)); }
.guide tr.here td:first-child::after { content: " (your browser)"; font-weight: 700; }
.steps { margin: var(--s5) 0; }
details.more { margin-top: var(--s3); }
.mac-go { gap: 0.55rem; background: var(--brand); color: var(--brand-ink); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.mac-go .dot { background: var(--brand-ink); }
.narrow h2 { margin-top: var(--s6); }
.narrow h2:first-child { margin-top: 0; }
html[data-layout="workbench"] .hero-title { max-width: none; }
html[data-layout="workbench"] .section-alt { background: color-mix(in oklab, var(--bg) 45%, var(--surface)); }
.narrow .steps { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.site-header nav a { white-space: nowrap; }
@media (max-width: 420px) { .site-header nav { gap: var(--s3); font-size: var(--step--1); } }
.notice.spaced { margin-top: var(--s5); }
.seg button { min-height: 44px; }
@media (max-width: 600px) {
  .seg { display: flex; width: 100%; }
  .seg button { flex: 1 1 0; padding-inline: 0.4rem; }
  .rec-panel { padding: var(--s3); gap: var(--s2); }
  .screen { aspect-ratio: 16 / 8; }
  .screen-art { width: 50%; }
}
/* Guide pages: a longer title than the home page's, the preset line and the related links. */
.hero-title.page-title { font-size: var(--step-3); }
.preset-note { margin: 0; color: var(--ink-2); font-weight: 600; }
.related { display: grid; gap: var(--s2); padding-left: 1.2rem; }
.guide-list { display: grid; gap: var(--s2) var(--s5); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); padding-left: 1.2rem; margin-top: var(--s4); }
.narrow .guide { margin-top: var(--s4); }
