@font-face { font-family: "Clash Grotesk"; src: url("clash-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Clash Grotesk"; src: url("clash-grotesk-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
:root {
  color-scheme: light;
  font-family: "Clash Grotesk", "Bahnschrift", system-ui, sans-serif;
  background: #e9e9e6;
  color: #292a27;
  --pixel: #f3f0df;
  --red: #ff745c;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: grid; place-items: center; }
main { width: min(592px, calc(100% - 40px)); padding: 42px 0; }
.recorder {
  border-radius: 30px;
  border: 1px solid #a7a8a1;
  padding: 14px;
  background: linear-gradient(155deg, #f8f8f4 0%, #e2e2db 43%, #cdcec5 100%);
  box-shadow: inset 0 2px 1px #fff, inset 0 -3px 3px #90918755, 0 2px 1px #5b5d4f40, 0 24px 42px -23px #3a3b32a0;
}
.bezel {
  border: 1px solid #9b9c93;
  border-radius: 21px;
  overflow: hidden;
  padding: 5px 5px 0;
  background: linear-gradient(180deg, #d0d1c9, #b8bbb0);
  box-shadow: 0 1px 0 #fff9, inset 0 1px 3px #686c5c44;
}
.screen {
  padding: 22px 23px 21px;
  border-radius: 16px;
  color: var(--pixel);
  background: radial-gradient(ellipse at 20% 0%, #20231e, #111310 75%);
  box-shadow: inset 0 0 0 1px #111, inset 0 3px 10px #000b;
}
.readout { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.clip-name { font-size: 17px; letter-spacing: -.015em; font-weight: 600; }
.version { color: #b3b4a7; font-size: 12px; }
.clock { display: block; width: 180px; height: 45px; margin-top: 19px; }
.timeline { position: relative; height: 116px; margin-top: 7px; }
.signal { display: block; width: 100%; height: 100%; }
.scrub { appearance: none; cursor: crosshair; position: absolute; inset: 37px 0 0; width: 100%; height: calc(100% - 37px); margin: 0; background: transparent; touch-action: pan-y; }
.scrub::-webkit-slider-thumb { appearance: none; width: 1px; height: 1px; background: transparent; }
.scrub::-moz-range-thumb { width: 1px; height: 1px; background: transparent; border: none; }
.gap {
  position: absolute; top: 4px; left: var(--gap-center, 51%); transform: translateX(-50%);
  height: 32px; padding: 0 9px; border-radius: 5px; border: 1px solid #934e40;
  background: #32231e; color: #ff947e; white-space: nowrap;
  font: 600 11px "Cascadia Mono", Consolas, monospace; font-variant-numeric: tabular-nums;
}
.gap:hover { background: #493027; }
.gap:disabled { cursor: default; pointer-events: none; }




.speaker {
  height: 11px; margin: 8px auto 7px; width: 95px; opacity: .8;
  background: radial-gradient(circle, #55594f 0 1px, transparent 1.4px) 0 0 / 5px 5px;
}
.deck { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding: 11px 1px 1px; }
button { font: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid #ff927c; outline-offset: 3px; }
.key {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 53px;
  border: 1px solid #a5a79d; border-radius: 11px; color: #292d27;
  background: linear-gradient(#f4f4ef, #d5d7cc);
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 #a0a399;
  font-size: 15px; font-weight: 600; transition: filter 140ms, transform 220ms cubic-bezier(.2,.75,.35,1);
}
.key:not(:disabled):hover { filter: brightness(1.045); }
.key:not(:disabled):active { transform: translateY(2px); box-shadow: inset 0 1px 3px #676b6050; }
.key svg { width: 18px; height: 18px; }
.play svg { fill: currentColor; }
.play .pause-icon, .play.playing .play-icon, .cut .undo, .cut.applied .scissors { display: none; }
.play.playing .pause-icon, .cut.applied .undo { display: block; }
.cut svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 520px) {
  main { width: calc(100% - 30px); }
  .recorder { border-radius: 25px; padding: 9px; }
  .bezel { border-radius: 18px; }
  .screen { padding: 16px 13px 15px; border-radius: 13px; }
  .timeline { height: 105px; }
  .deck { grid-template-columns: 50px minmax(0, 1fr); gap: 6px; padding-top: 8px; }
  .key { height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}


button { -webkit-tap-highlight-color: transparent; }


