/* REVOUAR ivory chassis, instrument scales, controls, and library.
   Rule order preserves the approved responsive design. */

:root {
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, serif;
  display: grid;
  place-items: center;
  padding: 55px 28px;
}
.stage {
  width: min(1220px, 100%);
}
.radio {
  padding: 36px 40px 34px;
  border: 1px solid #c6bca7;
  border-radius: 30px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 4px 30px;
}
.brand {
  font:
    600 24px Arial,
    sans-serif;
  letter-spacing: 0.32em;
}
.edition,
.label,
.status {
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.edition {
  font-size: 10px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.dial {
  position: relative;
  height: 193px;
  border-radius: 17px;
  border: 4px solid #bdb29e;
  overflow: hidden;
  transition:
    background 1s,
    box-shadow 1s;
}
.needle {
  position: absolute;
  top: 62px;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #99542f;
  box-shadow: 1px 0 1px #522b2530;
  transform: translateX(-50%);
  transition:
    left 90ms linear,
    background 0.8s,
    box-shadow 0.8s;
  pointer-events: none;
}
.on .needle {
  background: #c85b22;
  box-shadow: 0 0 9px #d7874b70;
}
.spectrum {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.dial:focus-within {
  outline: 3px solid #9b5427;
  outline-offset: 5px;
}
.lower {
  display: grid;
}
.status {
  font-size: 9px;
  margin: 17px 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
}
.power {
  cursor: pointer;
}
.label {
  font-size: 9px;
  display: block;
  margin-top: 10px;
}
.controls {
  display: flex;
  justify-content: center;
}
.knob-wrap {
  text-align: center;
}
.knob {
  position: relative;
  border-radius: 50%;
  box-shadow: 0 6px 8px #65563c30;
  border: 1px solid #a5977e;
  width: 126px;
  height: 126px;
}
.knob:before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid #b1a389;
}
.pointer {
  position: absolute;
  inset: 15px;
  transform: rotate(0deg);
  pointer-events: none;
}
.pointer:before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 1.5px);
  width: 3px;
  height: 17px;
  border-radius: 2px;
}
button:focus-visible,
.knob:focus-visible,
input:focus-visible {
  outline: 3px solid #9b5427;
  outline-offset: 5px;
}
button:disabled,
.knob[aria-disabled="true"] {
  cursor: default;
}
@media (max-width: 800px) {
  body {
    padding: 30px 16px;
  }
  .radio {
    padding: 28px 24px;
  }
  .lower {
    grid-template-columns: 1fr 160px;
  }
  .speaker {
    display: none;
  }
  .controls {
    gap: 13px;
  }
  .knob {
    width: 108px;
    height: 108px;
  }
}
@media (max-width: 520px) {
  header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
  }
  .brand {
    font-size: 21px;
  }
  .dial {
    height: 173px;
  }
  .needle {
    top: 85px;
  }
  .lower {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .controls {
    gap: 30px;
  }
  .knob {
    width: 102px;
    height: 102px;
  }
}
.band-knob .pointer {
  inset: 14px;
}
.volume-knob .pointer {
  inset: 12px;
}
.volume-knob .pointer:before {
  height: 11px;
  width: 2px;
}
.band-knob .pointer:before {
  height: 13px;
  width: 2px;
}
.band-knob:before,
.volume-knob:before {
  inset: 5px;
}
@media (max-width: 1000px) {
  .lower {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .speaker {
    display: none;
  }
}
@media (max-width: 650px) {
  .lower {
    grid-template-columns: 1fr;
  }
  .controls {
    gap: 24px;
  }
  .status {
    margin-bottom: 12px;
  }
  .controls .knob {
    width: 104px;
    height: 104px;
  }
  .controls .band-knob {
    width: 72px;
    height: 72px;
  }
  .controls .volume-knob {
    width: 56px;
    height: 56px;
  }
}

.double-dial {
  height: 300px;
  padding: 0 28px;
}
.scale-row {
  height: 50%;
  position: relative;
}
.upper {
  border-bottom: 1px solid #8f79563b;
}
.track {
  position: absolute;
  inset: 0 15px;
}
.scale-heading {
  position: absolute;
  top: 9px;
  left: 0;
  font:
    9px Arial,
    sans-serif;
  letter-spacing: 0.2em;
}
.graduations {
  position: absolute;
  left: 0;
  right: 0;
  top: 91px;
}
.printed-numbers {
  position: absolute;
  inset: 53px 0 auto;
}
.printed-numbers span {
  position: absolute;
  transform: translateX(-50%);
}
.scale-row .needle {
  height: auto;
  transition:
    background 0.8s,
    box-shadow 0.8s;
  z-index: 1;
}
.scale-row .needle-down {
  top: 0;
  left: 17%;
  background: #aa4a22;
}
.scale-row .needle-up {
  bottom: 0;
  left: 50%;
  background: #86613e;
}
.on .scale-row .needle-down {
  background: #d96428;
}
.on .scale-row .needle-up {
  background: #b17b35;
}
.scale-row .spectrum {
  z-index: 2;
}
.scale-row:focus-within {
  outline: 2px solid #a26735;
  outline-offset: -3px;
}
.on .push-cap,
.power:active .push-cap {
  transform: translateY(1px);
  box-shadow: inset 0 1px 3px #75603f55;
}
@media (max-width: 650px) {
  .double-dial {
    padding: 0 15px;
    height: 290px;
  }
  .track {
    left: 6px;
    right: 6px;
  }
  .scale-heading {
    font-size: 8px;
  }
  .lower {
    gap: 26px;
  }
}
.lower {
  padding-top: 38px;
}
.speaker-section {
  display: grid;
}
.speaker {
  display: block;
}
.speaker-section .status {
  height: 14px;
  margin: 0;
}
.controls .knob-wrap {
  display: grid;
  justify-items: center;
}
.controls .label {
  font-size: 10px;
}
.controls .knob {
  width: 112px;
  height: 112px;
}
.controls .band-knob {
  width: 78px;
  height: 78px;
}
.controls .volume-knob {
  width: 60px;
  height: 60px;
}
.scale-row .needle:before,
.scale-row .needle:after {
  content: none;
}
@media (max-width: 900px) {
  .speaker {
    width: 168px;
  }
}
@media (max-width: 420px) {
  .speaker {
    align-self: center;
  }
  .controls {
    gap: 16px;
  }
  .controls .knob-wrap {
    gap: 14px;
  }
  .controls .knob {
    width: 96px;
    height: 96px;
  }
  .controls .band-knob {
    width: 66px;
    height: 66px;
  }
  .controls .volume-knob {
    width: 52px;
    height: 52px;
  }
}
.speaker {
  align-self: center;
}
.power {
  border: 1px solid #bbac91;
  transition:
    box-shadow 0.5s,
    border-color 0.5s;
}
.push-cap {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px solid #f7eddb;
  transform: translateY(-1px);
  transition:
    transform 0.15s,
    box-shadow 0.3s,
    background 0.6s;
}
.power-word {
  font:
    600 11px Arial,
    sans-serif;
  text-shadow: 0 1px 0 #fffcf0;
  transition:
    color 0.7s,
    text-shadow 0.7s;
}
.on .power {
  border-color: #b8a68a;
  box-shadow:
    inset 0 2px 4px #67533430,
    0 1px 0 #fff9ed;
}
.on .push-cap {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 3px #81683d25,
    0 1px 1px #fff6e6;
}
.power:active .push-cap {
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px #7d633735;
}
@media (max-width: 900px) {
  .speaker-section {
    justify-self: start;
  }
}
@media (max-width: 420px) {
  .speaker {
    width: 126px;
    height: 140px;
  }
  .power {
    width: 100px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.controls .label,
.speaker-section .status {
  line-height: 14px;
  margin: 0;
}
@media (max-width: 900px) {
  .lower {
    grid-template-columns: 168px minmax(116px, 1fr);
    gap: 26px 20px;
  }
  .controls {
    grid-column: 1 / -1;
    justify-self: center;
  }
  .controls .knob-wrap {
    grid-template-rows: 112px 14px;
  }
}
@media (max-width: 420px) {
  .lower {
    grid-template-columns: 126px minmax(108px, 1fr);
    gap: 24px 10px;
  }
}
.lower {
  align-items: start;
}
.speaker-section {
  justify-items: start;
}
.speaker-section .status {
  font-size: 9px;
  gap: 8px;
  letter-spacing: 0.14em;
}
.power {
  width: 74px;
  height: 30px;
  padding: 3px;
  border-radius: 9px;
}
.push-cap {
  border-radius: 6px;
  box-shadow:
    0 2px 3px #75634425,
    inset 0 1px 1px #fffdf5;
}
.power-word {
  font-size: 9px;
  letter-spacing: 0.13em;
  padding-left: 0.13em;
}
.controls {
  grid-column: 2;
  justify-self: end;
}
@media (max-width: 700px) {
  .lower {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .speaker-section {
    justify-self: center;
    justify-items: center;
  }
  .controls {
    grid-column: 1;
    justify-self: center;
  }
  .controls .knob-wrap {
    grid-template-rows: 112px 20px;
  }
}
@media (max-width: 420px) {
  .controls .knob-wrap {
    grid-template-rows: 96px 20px;
  }
}
:root {
  --ink: #24231f;
  --orange: #b35326;
  --paper: #eee8db;
}
body {
  background: radial-gradient(
    ellipse at 50% 36%,
    #fffdf8 0%,
    #f8f5ee 65%,
    #eee9df 100%
  );
  color: var(--ink);
}
.radio {
  background: linear-gradient(115deg, #f4efe4 0%, #eee8dc 48%, #f0ebdf 100%);
  border-color: #c7bead;
  box-shadow:
    inset 0 0 0 3px #faf7ee,
    inset 0 0 0 5px #ddd5c5,
    0 24px 36px -21px #6c5a3d70,
    0 3px 5px #82725218;
}
.brand {
  color: #161714;
  font-weight: 600;
}
.edition {
  color: #35332c;
}
.dial {
  border-color: #bcb39f;
  background: linear-gradient(
    180deg,
    #cfc6b3 0%,
    #e5ddcc 35%,
    #eee7d7 80%,
    #ded5c1 100%
  );
  box-shadow:
    inset 0 6px 13px #544b3b45,
    inset 0 -2px 6px #fffcf36b,
    0 1px 0 #fffaf0;
}
.on .dial {
  background: linear-gradient(
    180deg,
    #d5c9b1 0%,
    #eee3cb 35%,
    #f4ebd7 80%,
    #e6d9bd 100%
  );
  border-color: #bcb19a;
  box-shadow:
    inset 0 6px 13px #544b3b40,
    inset 0 0 32px #ffecc13b,
    0 1px 0 #fffaf0,
    0 0 18px #f0d29a12;
}
.upper {
  border-bottom-color: #9a8e752e;
}
.scale-heading {
  color: #6c6352;
}
.scale-row .needle-down,
.scale-row .needle-up {
  background: #a8653d;
  box-shadow: 1px 0 1px #56352125;
}
.on .scale-row .needle-down,
.on .scale-row .needle-up {
  background: #bc5828;
  box-shadow: 0 0 5px #c46a3330;
}
.speaker {
  opacity: 1;
  background: radial-gradient(
      circle,
      #2d2b26 2.35px,
      #736957 2.6px,
      transparent 3px
    )
    0 0/14px 14px;
}
.controls .knob {
  background: repeating-conic-gradient(#a3967f 0 2deg, #dbd1bd 2deg 4deg);
  border-color: #a99b83;
  box-shadow:
    0 6px 8px #64523935,
    0 1px 2px #51473320;
}
.knob:before {
  background: linear-gradient(135deg, #f7f2e7 0%, #e9e0cf 55%, #d7cbb5 100%);
  border-color: #b4a58a;
  box-shadow:
    inset 0 0 0 3px #eee5d3,
    inset 0 1px 3px #fff9ee;
}
.pointer:before {
  background: #35332b;
}
.label,
.status {
  color: #36332a;
}
.power {
  background: linear-gradient(145deg, #cfc5b2, #eee7da);
  border-color: #bcae95;
  box-shadow:
    inset 0 2px 3px #67533420,
    0 1px 0 #fffaf1;
}
.push-cap {
  background: linear-gradient(145deg, #faf6ed, #e9dfcd);
  border-color: #f7f0e3;
}
.power-word {
  color: #655b49;
}
.power:hover .push-cap {
  background: linear-gradient(145deg, #fffaf1, #eee3d0);
}
.on .push-cap {
  background: linear-gradient(145deg, #f0e5d0, #f5ead5);
}
.on .power-word {
  color: #b35326;
  text-shadow:
    0 0 4px #ffd494bb,
    0 0 11px #eda04770;
}
.knob {
  --rotation: 0deg;
  isolation: isolate;
  background: none !important;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.knob:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(#a3967f 0 2deg, #dbd1bd 2deg 4deg);
  transform: rotate(var(--rotation));
  z-index: -1;
  pointer-events: none;
}
.knob:before {
  z-index: 0;
  pointer-events: none;
}
.knob .pointer {
  z-index: 1;
}
.knob.turning {
  cursor: grabbing;
  box-shadow:
    0 4px 6px #64523930,
    0 1px 2px #51473320;
}
.knob.turning:before {
  box-shadow:
    inset 0 0 0 3px #eee5d3,
    inset 0 1px 3px #fff9ee,
    0 0 0 1px #a48d6840;
}

.explore-mode {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font:
    12px Arial,
    sans-serif;
  color: #766b58;
}
.explore-mode button {
  font: inherit;
  letter-spacing: 0.04em;
  border: 1px solid #c6b89e;
  border-radius: 7px;
  padding: 9px 14px;
  background: #f0e8d8;
  color: #655640;
  cursor: pointer;
}
.explore-mode button[aria-pressed="true"] {
  background: #ead9bc;
  border-color: #b16a37;
  color: #874019;
  box-shadow: 0 0 12px #e4ad5925;
}
.mouse-exploring .double-dial {
  outline: 1px solid #bc7c4260;
  outline-offset: 5px;
}
.mouse-exploring .scale-row .spectrum {
  cursor: ew-resize;
}
@media (max-width: 650px) {
  .explore-mode {
    text-align: center;
    line-height: 1.7;
  }
}
.graduations {
  background: none;
  height: 27px;
}
.scale-tick {
  position: absolute;
  top: 0;
  display: block;
  width: 1px;
  height: 9px;
  background: #746957;
  transform: translateX(-50%);
}
.scale-tick.middle-tick {
  height: 17px;
  background: #554b3b;
}
.scale-tick.major-tick {
  height: 27px;
  width: 2px;
  background: #302c24;
}
.document-numbers {
  top: 120px;
}
.printed-numbers {
  font:
    12px Arial,
    sans-serif;
  font-variant-numeric: tabular-nums;
  color: #343027;
}
.scale-row .needle {
  width: 2px;
}
@media (max-width: 650px) {
  .printed-numbers {
    font-size: 10px;
  }
  .document-numbers {
    top: 117px;
  }
}
@media (max-width: 420px) {
  .printed-numbers {
    font-size: 9px;
  }
  .scale-tick.minor-tick {
    opacity: 0.65;
  }
}
.controls {
  gap: 18px;
  align-items: start;
}
.rotary-unit {
  position: relative;
  width: 156px;
  height: 156px;
  display: grid;
  place-items: center;
}
.knob-scale {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.knob-scale line {
  stroke: #766953;
  stroke-width: 1;
}
.knob-scale .ring-major {
  stroke: #443d30;
  stroke-width: 1.5;
}
.knob-scale text {
  fill: #6e624e;
  font:
    9px Arial,
    sans-serif;
  text-anchor: middle;
}
.controls .knob,
.controls .band-knob,
.controls .volume-knob {
  width: 98px;
  height: 98px;
}
.controls .knob:before {
  inset: 6px;
}
.controls .knob .pointer {
  inset: 16px;
}
.controls .knob .pointer:before {
  height: 15px;
  width: 3px;
  left: calc(50% - 1.5px);
}
@media (max-width: 850px) {
  .lower {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .speaker-section {
    justify-items: center;
  }
  .controls {
    grid-column: 1;
    justify-self: center;
    gap: 14px;
  }
}
@media (max-width: 580px) {
  .rotary-unit {
    width: 124px;
    height: 124px;
  }
  .controls {
    gap: 4px;
  }
  .controls .knob,
  .controls .band-knob,
  .controls .volume-knob {
    width: 78px;
    height: 78px;
  }
  .controls .knob .pointer {
    inset: 14px;
  }
  .controls .knob .pointer:before {
    height: 12px;
  }
}
@media (max-width: 440px) {
  .rotary-unit {
    width: 92px;
    height: 92px;
  }
  .controls {
    gap: 3px;
  }
  .controls .knob,
  .controls .band-knob,
  .controls .volume-knob {
    width: 58px;
    height: 58px;
  }
  .controls .knob:before {
    inset: 4px;
  }
  .controls .knob .pointer {
    inset: 11px;
  }
  .controls .knob .pointer:before {
    height: 9px;
    width: 2px;
    left: calc(50% - 1px);
  }
}

html,
body,
.stage {
  user-select: none;
  -webkit-user-select: none;
}
button,
.dial {
  touch-action: manipulation;
}
.knob {
  touch-action: none;
}

.scale-row .scale-heading {
  top: 10px;
  left: 0;
  font:
    10px Arial,
    sans-serif;
  letter-spacing: 0.2em;
  color: #665b49;
  line-height: 14px;
}
.scale-row .graduations {
  top: 83px;
  height: 27px;
}
.scale-row .printed-numbers {
  top: 118px;
  font:
    12px Arial,
    sans-serif;
  font-variant-numeric: tabular-nums;
  color: #343027;
}
@media (max-width: 650px) {
  .scale-row .scale-heading {
    font-size: 9px;
  }
  .scale-row .printed-numbers {
    font-size: 10px;
  }
}
@media (max-width: 420px) {
  .scale-row .printed-numbers {
    font-size: 9px;
  }
}
.upper .graduations {
  top: 88px;
}
.upper .printed-numbers {
  top: 120px;
}
.lower-scale .graduations {
  top: 30px;
}
.lower-scale .printed-numbers {
  top: 65px;
}
.upper .scale-heading {
  z-index: 3;
}
.lower-scale .scale-heading {
  z-index: 3;
}
.scale-row .needle-down {
  bottom: 16px;
}
.scale-row .needle-up {
  top: 18px;
}
@media (max-width: 650px) {
  .upper .graduations {
    top: 85px;
  }
  .upper .printed-numbers {
    top: 114px;
  }
}
.upper .scale-heading {
  top: 10px;
  bottom: auto;
  left: 0;
  font-size: 10px;
  line-height: 14px;
}
.lower-scale .scale-heading {
  top: auto;
  bottom: 10px;
  left: 0;
  font-size: 10px;
  line-height: 14px;
}
@media (max-width: 650px) {
  .upper .scale-heading,
  .lower-scale .scale-heading {
    font-size: 9px;
  }
}

.explore-mode {
  margin-top: 20px;
  gap: 18px;
}
kbd {
  font: inherit;
  padding: 2px 5px;
  border: 1px solid #c5b79d;
  border-radius: 4px;
}
#mouse-notice:empty {
  display: none;
}

#library {
  width: min(710px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  padding: 5px;
  border: 1px solid #b4a58c;
  border-radius: 22px;
  background: #f7f1e6;
  color: #292720;
  box-shadow:
    0 22px 60px #34291955,
    inset 0 0 0 2px #fffaf0;
  overflow: hidden;
}
#library::backdrop {
  background: #332c2459;
  backdrop-filter: blur(3px);
}
.library-shell {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  max-height: calc(100dvh - 52px);
  border: 1px solid #d8cebc;
  border-radius: 17px;
  padding: 32px;
  background: linear-gradient(120deg, #f8f3e9, #eee6d7);
}
.library-header {
  margin: 0 0 24px;
  align-items: flex-start;
  flex-shrink: 0;
}
.library-eyebrow {
  font:
    10px Arial,
    sans-serif;
  letter-spacing: 0.3em;
  margin: 0 0 18px;
}
.library-header h2 {
  font:
    normal clamp(27px, 4vw, 39px) Georgia,
    serif;
  margin: 0;
}
.library-close {
  border: 0;
  background: none;
  color: #39342a;
  font: 30px Arial;
  cursor: pointer;
  width: 36px;
  height: 36px;
}
.library-list {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b5a185 #eee5d4;
  scrollbar-gutter: stable;
  max-height: 270px;
  min-height: 80px;
  border-top: 1px solid #cabea9;
  border-bottom: 1px solid #cabea9;
  padding-right: 12px;
}
.library-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 112px;
  padding: 22px 4px;
  border-bottom: 1px solid #cabea970;
}
.library-row:last-child {
  border-bottom: 0;
}
.library-row.selected,
.library-row:has(input:checked) {
  border-bottom-color: #bc612e;
}
.library-row:focus-within {
  outline: 1px solid #bc612e;
  outline-offset: -2px;
}
.library-row input {
  margin: 0;
  accent-color: #b65a29;
  width: 14px;
  height: 14px;
}
.document-icon {
  width: 29px;
  height: 35px;
}
.document-icon svg {
  width: 100%;
  height: 100%;
}
.library-row strong {
  font:
    normal clamp(20px, 3vw, 28px) Georgia,
    serif;
  display: block;
}
.library-row small {
  font:
    11px Arial,
    sans-serif;
  letter-spacing: 0.12em;
  display: block;
  margin-top: 10px;
  color: #76654b;
}
.forthcoming {
  color: #807561;
}
.forthcoming .document-icon {
  opacity: 0.5;
}
.library-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-top: 27px;
  flex-shrink: 0;
}
.open-file,
.library-tune {
  height: 49px;
  border-radius: 24px;
  padding: 0 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font:
    19px Georgia,
    serif;
}
.open-file {
  border: 1px solid #c9beac;
  background: #e9e2d7;
  color: #9c9282;
  cursor: not-allowed;
  box-shadow: inset 0 1px 2px #7463470d;
}
.open-file svg {
  width: 18px;
  height: 24px;
  opacity: 0.55;
}
.file-option {
  display: grid;
  gap: 9px;
}
.file-option > span {
  font:
    10px Arial,
    sans-serif;
  color: #8c816f;
  text-align: center;
}
.library-tune {
  background: linear-gradient(#ba622d, #ac4c20);
  border: 1px solid #964b21;
  color: #fff8eb;
  min-width: 175px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #e7a270;
}
.library-tune:hover {
  background: #a94c23;
}
.library-tune span {
  font: 26px Arial;
  margin-left: 15px;
}
.library-list:focus-visible {
  outline: 2px solid #b7763d;
  outline-offset: 3px;
}
@media (max-width: 520px) {
  .library-shell {
    padding: 21px 17px;
  }
  .library-header {
    gap: 8px;
  }
  .library-row {
    gap: 12px;
    grid-template-columns: 20px minmax(0, 1fr);
  }
  .document-icon {
    width: 23px;
  }
  .library-footer {
    gap: 12px;
  }
  .open-file,
  .library-tune {
    font-size: 15px;
    padding: 0 15px;
    min-width: 0;
  }
  .library-tune span {
    margin-left: 0;
  }
  .library-list {
    max-height: 240px;
  }
}
@media (max-height: 560px) {
  .library-shell {
    padding: 16px;
  }
  .library-header {
    margin-bottom: 12px;
  }
  .library-eyebrow {
    margin-bottom: 7px;
  }
  .library-footer {
    padding-top: 12px;
  }
}
.radio-bottom-row {
  justify-content: space-between;
  width: 100%;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #b7aa9126;
}
.radio-bottom-row > .power {
  flex: 0 0 74px;
}
@media (max-width: 650px) {
  .radio-bottom-row {
    gap: 20px;
    align-items: center;
  }
}
@media (max-width: 420px) {
  .radio-bottom-row {
    gap: 16px;
  }
}

.power-reception {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.power-reception > .power {
  flex: 0 0 74px;
}
.power-reception .status {
  margin: 0;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.14em;
  white-space: nowrap;
  line-height: 14px;
}
.speaker-section {
  gap: 0;
}
@media (max-width: 650px) {
  .radio-bottom-row {
    flex-wrap: wrap;
  }
  .power-reception {
    gap: 14px;
  }
}
@media (max-width: 420px) {
  .speaker-section {
    grid-template-rows: 140px;
  }
}
.speaker-section {
  justify-self: start;
}
.library-key {
  height: 30px;
  padding: 3px;
  border: 1px solid #bcae95;
  border-radius: 9px;
  background: linear-gradient(145deg, #cfc5b2, #eee7da);
  box-shadow:
    inset 0 2px 3px #67533420,
    0 1px 0 #fffaf1;
  cursor: pointer;
  min-width: 84px;
}
.library-key span {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 0 10px;
  border: 1px solid #f7f0e3;
  border-radius: 6px;
  background: linear-gradient(145deg, #faf6ed, #e9dfcd);
  box-shadow:
    0 2px 3px #75634425,
    inset 0 1px 1px #fffdf5;
  font:
    600 9px Arial,
    sans-serif;
  letter-spacing: 0.13em;
  color: #655b49;
}
.library-key:hover span {
  background: linear-gradient(145deg, #fffaf1, #eee3d0);
}
.library-key:active span {
  transform: translateY(1px);
  box-shadow: inset 0 1px 3px #81683d25;
}
@media (max-width: 850px) {
  .speaker-section {
    justify-self: center;
  }
  .controls .knob-wrap {
    grid-template-rows: 156px 20px;
  }
}
@media (max-width: 440px) {
  .power-reception {
    gap: 12px;
  }
}

.explore-mode:not(:has(#mouse-notice:not(:empty))) {
  display: none;
}
.controls {
  align-self: start;
}
.controls .knob-wrap {
  grid-template-rows: 156px 16px;
  gap: 3px;
  align-items: center;
}
.controls .label {
  margin: 0;
  line-height: 16px;
  align-self: start;
}
@media (max-width: 580px) {
  .controls .knob-wrap {
    grid-template-rows: 124px 16px;
    gap: 3px;
  }
}
@media (max-width: 440px) {
  .controls .knob-wrap {
    grid-template-rows: 92px 16px;
    gap: 3px;
  }
}
/* Four complete rows of perforations directly in the ivory case. */
.speaker-section {
  grid-template-rows: auto;
  width: min(720px, 100%);
  min-width: 0;
  align-self: center;
  justify-self: center;
}
.speaker {
  --hole-core: #423c31;
  --hole-rim: #94856c;
  display: block;
  width: 100%;
  height: 56px;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: radial-gradient(
      circle at 50% 47%,
      var(--hole-core) 0 1.6px,
      var(--hole-rim) 1.9px,
      transparent 2.3px
    )
    0 0 / 14px 14px round;
  box-shadow: none;
}

.radio {
  container-type: inline-size;
}
.radio-bottom-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 24px;
}
@container (max-width:1000px) {
  .radio-bottom-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .power-reception {
    justify-self: start;
  }
}
@container (max-width:460px) {
  .radio-bottom-row {
    gap: 23px;
  }
  .power-reception {
    gap: 12px;
    flex-wrap: wrap;
  }
}
@container (max-width:270px) {
  .power-reception {
    gap: 10px;
  }
}
.lower {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
}
.makers-mark {
  align-self: center;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #8d7e65;
  text-shadow: 0 1px 0 #fffaf0b3;
  text-decoration: none;
  padding: 12px 5px;
  border-radius: 3px;
}
.makers-intro {
  font:
    italic 13px Georgia,
    serif;
  color: #9a8b74;
}
.makers-series {
  font:
    8px Arial,
    sans-serif;
  color: #9b8c75;
  white-space: nowrap;
}
.makers-link:hover {
  color: #a56539;
}
.makers-link:focus-visible {
  outline: 2px solid #a8784c;
  outline-offset: 5px;
}
.lower > .controls {
  grid-column: 2;
}
@container (max-width:900px) {
  .lower {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
  .speaker-section {
    justify-self: center;
  }
  .makers-mark {
    grid-column: 2;
    grid-row: 1;
  }
  .lower > .controls {
    grid-column: 1 / -1;
    justify-self: center;
  }
}
@container (max-width:350px) {
  .lower {
    gap: 20px 12px;
  }
  .makers-series {
    letter-spacing: 0.08em;
  }
}
.makers-intro {
  font-size: 13px;
}
.makers-series {
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: 0.17em;
}
.makers-credit {
  margin-top: 10px;
  font:
    italic 10px/1.7 Georgia,
    serif;
  color: #a2947e;
}
.makers-credit .makers-link {
  font:
    9px Arial,
    sans-serif;
  letter-spacing: 0.09em;
  color: #a96535;
  text-decoration: none;
  text-underline-offset: 3px;
}
@container (max-width:350px) {
  .makers-intro {
    font-size: 11px;
  }
  .makers-series {
    font-size: 8px;
  }
}
.makers-mark {
  gap: 10px;
}
.makers-mark .makers-intro {
  font-size: 15px;
  color: #8d7e65;
}
.library-header h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 400;
  letter-spacing: 0.015em;
}
.library-row strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(18px, 2.5vw, 23px);
  font-weight: 400;
  letter-spacing: 0.015em;
}
.open-file,
.library-tune {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  letter-spacing: 0.035em;
}

/* Quiet ownership and privacy note outside the radio chassis. */
.site-note {
  text-transform: uppercase;
  margin-top: 14px;
  text-align: center;
  font:
    10px/1.6 Arial,
    Helvetica,
    sans-serif;
  letter-spacing: 0.025em;
  color: #938775;
}
.site-note span {
  margin: 0 7px;
}

/* Provenance stays beside the edition in the Library. */
.library-reference {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  margin-top: 13px;
  color: #7e7059;
  font:
    11px/1.5 Arial,
    sans-serif;
}
.reference-label {
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.1em;
  padding-top: 2px;
}
.library-reference a {
  color: inherit;
  text-underline-offset: 3px;
}
.reference-note {
  display: block;
  color: #968871;
  font-size: 10px;
  margin-top: 2px;
}

.makers-credit .makers-link:hover {
  color: #944419;
  text-decoration: underline;
}

/* Edition title is fixed while listening; topics remain discoveries. */
.loaded-idea {
  position: absolute;
  top: 33px;
  left: 12px;
  right: 12px;
  margin: 0;
  padding: 3px 4px;
  text-align: center;
  font:
    300 15px/1.4 "Segoe UI",
    Arial,
    sans-serif;
  font-weight: 300;
  letter-spacing: 0.16em;
  color: #4f3923;
  text-shadow: none;
  pointer-events: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-transform: uppercase;
}
.power-reception {
  flex-wrap: wrap;
  max-width: 100%;
}
.power-reception .night-switch {
  margin: 0;
  flex-shrink: 0;
  padding: 8px;
  font-size: 9px;
}
@media (max-width: 650px) {
  .loaded-idea {
    font-size: 13px;
    top: 33px;
  }
}
@media (max-width: 420px) {
  .loaded-idea {
    font-size: 12px;
    top: 33px;
  }
}

/* RAF handles travel. At the seam the needle reappears at the other edge,
   without sweeping backwards through the stations. Knob rotations stay unbounded. */
#needle,
#band-needle {
  transition:
    background 0.8s,
    box-shadow 0.8s;
}

/* Full circular signal face shares the frequency dial's ivory material.
   Volume position remains on the turning outer rim. */
.voice-meter {
  position: absolute;
  z-index: 2;
  inset: 7%;
  width: 86%;
  height: 86%;
  pointer-events: none;
  border: 1px solid #bcb39f;
  border-radius: 50%;
  background: linear-gradient(
    180deg,
    #cfc6b3 0%,
    #e5ddcc 35%,
    #eee7d7 80%,
    #ded5c1 100%
  );
  box-shadow:
    inset 0 3px 7px #544b3b35,
    inset 0 -1px 3px #fffcf36b;
}
.on .voice-meter {
  background: linear-gradient(
    180deg,
    #d5c9b1 0%,
    #eee3cb 35%,
    #f4ebd7 80%,
    #e6d9bd 100%
  );
}
.voice-meter .meter-ticks {
  stroke: #746957;
  stroke-width: 0.65;
}
.voice-meter .meter-major {
  stroke: #302c24;
  stroke-width: 1.1;
}
.voice-meter .meter-numbers {
  fill: #665b49;
  font:
    6px Arial,
    sans-serif;
  text-anchor: middle;
}
.voice-meter .meter-caption {
  fill: #6c6352;
  font:
    5px Arial,
    sans-serif;
  letter-spacing: 1.1px;
  text-anchor: middle;
}
.voice-meter .meter-needle {
  stroke: #a8653d;
  stroke-width: 1.35;
  stroke-linecap: round;
}
.on .voice-meter .meter-needle {
  stroke: #bc5828;
}
.voice-meter .meter-hub {
  fill: #b4a58a;
  stroke: #736045;
  stroke-width: 0.6;
}
.controls .volume-knob .pointer {
  inset: 2%;
  z-index: 3;
}
.controls .volume-knob .pointer:before {
  height: 5px;
  width: 2px;
  left: calc(50% - 1px);
}
@media (max-width: 420px) {
  .controls .volume-knob .pointer:before {
    height: 3px;
  }
}
/* One-page field notes, animated only while the guide is open. */
#help-dialog {
  overflow: auto;
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  padding: 5px;
  border: 1px solid #b4a58c;
  border-radius: 22px;
  background: #f1eadc;
  color: #4d4231;
  box-shadow: 0 22px 60px #34291955;
}
#help-dialog::backdrop {
  background: #30281e70;
  backdrop-filter: blur(3px);
}
.help-shell {
  padding: 24px;
  border: 1px solid #d3c6af;
  border-radius: 17px;
}
.help-header {
  margin: 0 0 20px;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}
.help-eyebrow {
  margin: 0 0 9px;
  font:
    9px Arial,
    sans-serif;
  letter-spacing: 0.22em;
}
.help-header h2 {
  margin: 0;
  font:
    normal 27px Georgia,
    serif;
}
.help-intro {
  margin: 9px 0 0;
  font:
    12px/1.5 Arial,
    sans-serif;
  color: #76664f;
}
#help-close {
  flex-shrink: 0;
  border: 0;
  background: none;
  color: inherit;
  font: 28px Arial;
  width: 36px;
  height: 36px;
  cursor: pointer;
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 18px;
}
.help-gesture {
  padding: 12px 0 16px;
  border-top: 1px solid #b9a98e55;
}
.help-gesture h3 {
  margin: 0 0 5px;
  font:
    500 12px Arial,
    sans-serif;
  letter-spacing: 0.06em;
}
.help-gesture p {
  margin: 0;
  font:
    11px/1.5 Arial,
    sans-serif;
}
.help-gesture small {
  display: block;
  margin-top: 4px;
  font:
    10px/1.4 Arial,
    sans-serif;
  color: #847155;
}
.gesture {
  width: 94px;
  height: 64px;
  margin-bottom: 6px;
  color: #947952;
}
.gesture rect,
.gesture path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gesture .left-button,
.gesture .right-button {
  fill: transparent;
  stroke: none;
}
.gesture .move-arrows,
.gesture .double-mark {
  display: none;
}
.gesture .double-mark {
  fill: #a96836;
  font:
    12px Arial,
    sans-serif;
}
.double-left .double-mark,
.double-right .double-mark {
  display: block;
}
.double-left .left-button,
.double-right .right-button {
  animation: guide-double 3s infinite;
}
.hold-left .left-button,
.hold-right .right-button {
  fill: #bc784255;
}
.hold-left .move-arrows,
.hold-right .move-arrows {
  display: block;
}
.hold-left .mouse-body,
.hold-right .mouse-body {
  animation: guide-travel 3s ease-in-out infinite;
}
.scroll .wheel-mark {
  stroke: #b16b30;
  stroke-width: 3;
  animation: guide-scroll 2s ease-in-out infinite;
}
.escape {
  display: grid;
  place-items: center;
}
.escape kbd {
  padding: 8px 12px;
  border-color: #b7a484;
  border-radius: 5px;
  font:
    13px Arial,
    sans-serif;
  animation: guide-key 3s infinite;
}
.help-notes {
  padding-top: 10px;
  border-top: 1px solid #b9a98e55;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
}
.help-notes p {
  margin: 0;
  font:
    10px/1.6 Arial,
    sans-serif;
  color: #76664f;
}
.help-notes p:nth-last-child(-n + 2) {
  flex-basis: 100%;
}
#help-done {
  display: block;
  margin: 17px auto 0;
  padding: 8px 24px;
  border: 1px solid #b89f79;
  border-radius: 15px;
  background: #e8ddc8;
  color: #675032;
  font:
    11px Arial,
    sans-serif;
  cursor: pointer;
}
@keyframes guide-double {
  0%,
  12%,
  24%,
  100% {
    fill: transparent;
  }
  5%,
  8%,
  17%,
  20% {
    fill: #bf784caa;
  }
}
@keyframes guide-travel {
  0%,
  100% {
    transform: translateX(-8px);
  }
  50% {
    transform: translateX(8px);
  }
}
@keyframes guide-scroll {
  0%,
  100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(3px);
  }
}
@keyframes guide-key {
  0%,
  20%,
  100% {
    background: transparent;
  }
  8%,
  14% {
    background: #bf784c35;
  }
}
#help-dialog:not([open]) * {
  animation-play-state: paused;
}
@media (max-width: 560px) {
  .help-shell {
    padding: 16px;
  }
  .help-header h2 {
    font-size: 23px;
  }
  .help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
  }
  .help-gesture {
    padding: 8px 0 10px;
  }
  .gesture {
    height: 46px;
    margin-bottom: 3px;
  }
  .help-gesture small {
    display: none;
  }
}
@media (max-height: 650px) and (min-width: 561px) {
  .help-shell {
    padding: 15px 22px;
  }
  .help-header {
    margin-bottom: 9px;
  }
  .help-gesture {
    padding: 6px 0 9px;
  }
  .gesture {
    height: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #help-dialog * {
    animation: none !important;
  }
  .double-left .left-button,
  .double-right .right-button {
    fill: #bf784c80;
  }
}

/* A shallow grille and centred knobs stack consistently at every width. */
.lower {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.lower > .controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(720px, 100%);
  gap: 0;
  grid-column: 1;
  align-self: center;
  justify-self: center;
}
.radio-bottom-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
}
.radio-bottom-row .makers-mark {
  margin-left: auto;
  padding: 0;
  align-self: center;
  text-align: right;
  align-items: flex-end;
}
.radio-bottom-row .makers-credit {
  margin-top: 0;
}

@container (max-width:900px) {
  .lower {
    grid-template-columns: minmax(0, 1fr);
  }
  .lower > .controls {
    grid-column: 1;
  }
}

/* One compact, wrapping footer alongside the bottom buttons. */

.radio-bottom-row .site-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 16px;
  margin: 0 0 0 auto;
  text-align: right;
  font-size: 10px;
}
.site-note span {
  margin: 0;
}
.site-note .makers-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: #a6683b;
  text-decoration: none;
  white-space: nowrap;
}
.site-note .makers-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@container (max-width:600px) {
  .radio-bottom-row .site-note {
    flex-basis: 100%;
    gap: 6px 12px;
  }
}
