:root {
  --rec: #ff4d4d;
  --rec-deep: #4a0d0d;
  --warn: #facc15;
  --key-line: rgba(255, 255, 255, 0.5);
}

html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body { gap: 1.2rem; padding-top: 0; padding-bottom: 2.5rem; justify-content: flex-start; }

canvas { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }

.ico { display: inline-flex; width: 16px; height: 16px; flex: none; }
.ico svg { width: 100%; height: 100%; display: block; }
.ico.big { width: 32px; height: 32px; }

kbd {
  font: inherit;
  font-size: 0.56rem;
  margin-left: 0.5rem;
  padding: 0 0.28rem;
  border: 1px solid currentColor;
  opacity: 0.55;
}

@media (hover: none), (pointer: coarse) { kbd { display: none; } }

.top {
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.onair {
  position: relative;
  margin-top: 1.5rem;
  padding: 0.25rem 0.8rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.4);
  background: #0b0f0d;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.onair::before,
.onair::after {
  content: '';
  position: absolute;
  bottom: 100%;
  width: 2px;
  height: 1.7rem;
  background: rgba(255, 255, 255, 0.3);
}

.onair::before { left: 12%; }
.onair::after { right: 12%; }

.compact .top { min-height: 12.5rem; }

.onair.live {
  color: #fff;
  background: var(--rec);
  border-color: #fff;
  animation: blink 1.4s steps(1) infinite;
}

.onair.held { color: #fff; background: var(--rec-deep); border-color: var(--rec); }

@keyframes blink {
  0%, 74%, 100% { background: var(--rec); }
  75%, 90% { background: var(--rec-deep); }
}

.mic-tag {
  --tail: 50%;
  position: fixed;
  z-index: 0;
  font: inherit;
  text-align: left;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
  color: #fff;
  background: #000;
  border: 1px solid var(--key-line);
  cursor: pointer;
  transition: background-color 0.1s ease, border-color 0.1s ease, opacity 0.2s steps(3);
}

.mic-tag.away { opacity: 0; pointer-events: none; }

.mic-tag::after {
  content: '';
  position: absolute;
  top: 100%;
  left: calc(var(--tail) - 3px);
  width: 6px;
  height: 6px;
  background: var(--tag, var(--key-line));
}

.mic-tag b { display: flex; align-items: center; gap: 0.35rem; font-size: 0.68rem; font-weight: normal; }
.mic-tag b::before { content: ''; width: 7px; height: 7px; flex: none; background: var(--tag, var(--key-line)); }
.mic-tag small { display: block; font-size: 0.56rem; color: rgba(255, 255, 255, 0.72); }
.mic-tag small:empty { display: none; }

.mic-tag.off { --tag: var(--warn); border-color: var(--warn); }
.mic-tag.off b::before { animation: tag-blink 1.6s steps(1) infinite; }
.mic-tag.asking { --tag: var(--warn); border-color: var(--warn); cursor: default; }
.mic-tag.blocked { --tag: var(--rec); border-color: var(--rec); }
.mic-tag.blocked b { color: var(--rec); }

@keyframes tag-blink { 0%, 60%, 100% { opacity: 1; } 61%, 90% { opacity: 0.15; } }

@media (hover: hover) {
  .mic-tag:hover:not(:disabled) { background: var(--mint-deep); border-color: var(--mint); }
}

@media (pointer: coarse) {
  .mic-tag { padding: 0.4rem 0.6rem; }
}

.rack {
  width: 100%;
  max-width: 60rem;
  padding: 1.1rem 1.5rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-align: left;
}

.screw {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--mint-dark);
  box-shadow: inset 2px 2px 0 var(--mint-deep);
}

.screw.tl { top: 5px; left: 5px; }
.screw.tr { top: 5px; right: 5px; }
.screw.bl { bottom: 5px; left: 5px; }
.screw.br { bottom: 5px; right: 5px; }

.key {
  font: inherit;
  font-size: 0.74rem;
  line-height: 1.2;
  color: var(--text);
  background: #000;
  border: 1px solid var(--key-line);
  padding: 0.55rem 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}

.key.small { font-size: 0.64rem; padding: 0.36rem 0.55rem; }

@media (hover: hover) {
  .key:hover:not(:disabled) { color: #fff; background: var(--mint-deep); border-color: var(--mint); }
}
.key:active:not(:disabled) { transform: translateY(1px); }
.key:disabled { color: rgba(255, 255, 255, 0.35); border-color: rgba(255, 255, 255, 0.2); cursor: not-allowed; }

.key.go,
.key[aria-pressed='true'] { color: var(--btn-text); background: var(--mint); border-color: var(--mint); }

@media (hover: hover) {
  .key.go:hover:not(:disabled),
  .key[aria-pressed='true']:hover:not(:disabled) { color: #000; background: #fff; border-color: #fff; }
}

.key.go:disabled { color: rgba(255, 255, 255, 0.4); background: #000; border-color: rgba(255, 255, 255, 0.2); }

@media (hover: hover) {
  .key.danger:hover:not(:disabled) { color: #fff; background: var(--rec-deep); border-color: var(--rec); }
}

.key.rec { color: #fff; }
.key.rec .ico { color: var(--rec); }
@media (hover: hover) {
  .key.rec:hover:not(:disabled) { background: var(--rec-deep); border-color: var(--rec); }
}
.key.rec.live { color: #fff; background: var(--rec); border-color: var(--rec); }
.key.rec.live .ico { color: #fff; }
@media (hover: hover) {
  .key.rec.live:hover:not(:disabled) { color: #000; background: #fff; border-color: #fff; }
}
@media (hover: hover) {
  .key.rec.live:hover:not(:disabled) .ico { color: #000; }
}

@media (hover: hover) {
  .link:hover { color: #fff; }
}

.pick {
  font: inherit;
  font-size: 0.66rem;
  color: var(--text);
  background: #000;
  border: 1px solid var(--key-line);
  padding: 0.36rem 0.5rem;
  min-width: 0;
  cursor: pointer;
}

@media (hover: hover) {
  .pick:hover:not(:disabled) { border-color: var(--mint); }
}
.pick:disabled { color: var(--text-muted); border-color: rgba(255, 255, 255, 0.2); cursor: default; }

.head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.74rem;
  font-weight: normal;
  letter-spacing: 0.03em;
  color: var(--mint-light);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}

.head .hint { font-size: 0.58rem; color: var(--text-muted); text-align: right; }

.grow { flex: 1; }

.strip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  background: #000;
}

.lamp { width: 10px; height: 10px; flex: none; background: rgba(255, 255, 255, 0.16); }
.lamp.on { background: var(--mint); }
.lamp.rec { background: var(--rec); }

.strip .pick { flex: 0 1 15rem; }

.input { flex: 1 1 8rem; min-width: 6rem; overflow: hidden; }
.input .sqbar { justify-content: flex-start; gap: 2px; }
.input .sqbar i { flex: none; transition: none; }

.strip-keys { display: flex; gap: 0.35rem; margin-left: auto; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }

.tab {
  font: inherit;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text);
  background: #000;
  border: 1px solid var(--key-line);
  padding: 0.6rem;
  cursor: pointer;
  transition: background-color 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}

@media (hover: hover) {
  .tab:hover { color: #fff; background: var(--mint-deep); border-color: var(--mint); }
}
.tab[aria-selected='true'] { color: var(--btn-text); background: var(--mint); border-color: var(--mint); }
@media (hover: hover) {
  .tab[aria-selected='true']:hover { color: #000; background: #fff; border-color: #fff; }
}
.tab.taping:not([aria-selected='true']) { color: #fff; border-color: var(--rec); background: var(--rec-deep); }

.pane { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.2rem; }
.rec-pane { display: flex; flex-direction: column; gap: 1rem; }

.meter { display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }

.vu { width: 100%; aspect-ratio: 16 / 8.2; border: 2px solid var(--key-line); background: #c2fbe0; }

.readout { display: flex; align-items: flex-start; gap: 0.85rem; min-height: 4.1rem; }

.read { display: flex; align-items: baseline; gap: 0.25rem; flex: none; min-width: 6.7rem; }

.num {
  font-size: 2.9rem;
  line-height: 1;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.num.hot { color: var(--warn); }
.num.danger { color: var(--rec); }

.unit { font-size: 0.72rem; color: var(--text-muted); }

.said { min-width: 0; padding-top: 0.1rem; }
.like { font-size: 0.92rem; line-height: 1.3; color: var(--mint-light); }
.joke { font-size: 0.66rem; line-height: 1.45; margin-top: 0.2rem; color: var(--text-soft); }

.next {
  font-size: 0.66rem;
  min-height: 2.15em;
  padding: 0.3rem 0.5rem;
  color: var(--text-soft);
  background: #000;
  border: 1px solid var(--line);
}

.next b { font-weight: normal; color: var(--text); }
.next em { font-style: normal; color: var(--mint-light); }

.hist { width: 100%; height: 4.2rem; background: #000; border: 1px solid var(--line); }

.hist-axis {
  display: flex;
  justify-content: space-between;
  margin-top: -0.55rem;
  font-size: 0.54rem;
  color: var(--text-muted);
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
.stats div { padding: 0.35rem 0.45rem; border: 1px solid var(--line); background: #000; }
.stats dt { font-size: 0.54rem; color: var(--text-muted); white-space: nowrap; }
.stats dd { font-size: 0.95rem; font-variant-numeric: tabular-nums; }

.meter-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; font-size: 0.6rem; margin-top: -0.25rem; }
.meter-foot .link { font-size: inherit; color: var(--text-muted); }
@media (hover: hover) {
  .meter-foot .link:hover { color: #fff; }
}
.ears { color: var(--warn); text-align: right; }

.cal { font-size: 0.66rem; color: var(--text-soft); border-top: 1px solid var(--line); padding-top: 0.5rem; }
.cal summary { cursor: pointer; color: var(--text-soft); user-select: none; }
@media (hover: hover) {
  .cal summary:hover { color: #fff; }
}
.cal[open] summary { color: var(--mint-light); margin-bottom: 0.45rem; }
.cal p { line-height: 1.5; margin-bottom: 0.5rem; }
.cal-keys { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.4rem; }

.slide { display: flex; flex-direction: column; gap: 0.1rem; font-size: 0.6rem; color: var(--text-muted); }
.slide em { font-style: normal; color: var(--mint-light); }

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1.5rem;
  background: transparent;
  cursor: pointer;
}

input[type='range']::-webkit-slider-runnable-track { height: 1px; background: var(--key-line); }
input[type='range']::-moz-range-track { height: 1px; background: var(--key-line); }
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -4.5px;
  background: var(--mint);
  border: 0;
}
input[type='range']::-moz-range-thumb { width: 10px; height: 10px; background: var(--mint); border: 0; border-radius: 0; }
@media (hover: hover) {
  input[type='range']:hover::-webkit-slider-thumb { background: #fff; }
}
@media (hover: hover) {
  input[type='range']:hover::-moz-range-thumb { background: #fff; }
}

.scale { display: flex; flex-direction: column; min-width: 0; }

.head .roll-keys { display: flex; gap: 0.25rem; }
.head .key.small { padding: 0.2rem 0.3rem; }
.head .key .ico { width: 12px; height: 12px; }

.roll {
  --row: 3.5rem;
  --gap: 2px;
  position: relative;
  height: calc(var(--row) * 5 + var(--gap) * 4);
  margin-top: 0.45rem;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.roll.dragging { cursor: grabbing; }

.roll::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc((var(--row) + var(--gap)) * 2);
  height: var(--row);
  border-top: 2px solid var(--mint);
  border-bottom: 2px solid var(--mint);
  pointer-events: none;
  z-index: 1;
}

.roll-track {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  transform: translateY(calc(var(--off, 0) * (var(--row) + var(--gap))));
  transition: transform 0.24s steps(6);
}

.rung {
  font: inherit;
  flex: none;
  height: var(--row);
  display: grid;
  grid-template-columns: 2.1rem 18px minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0 0.45rem 0 0.35rem;
  text-align: left;
  color: var(--text-soft);
  background: #000;
  border: none;
  border-left: 4px solid rgba(255, 255, 255, 0.14);
  cursor: inherit;
  opacity: 1;
  transition: background-color 0.1s ease, color 0.1s ease, opacity 0.14s steps(2);
}

.rung.near { opacity: 0.78; }
.rung.edge { opacity: 0.5; }

.rung .at { font-size: 0.68rem; font-variant-numeric: tabular-nums; text-align: right; color: var(--text-muted); }
.rung .ico { width: 18px; height: 18px; }
.rung b { display: block; font-size: 0.68rem; font-weight: normal; line-height: 1.3; color: var(--text); }
.rung small { display: block; font-size: 0.56rem; line-height: 1.35; color: var(--text-muted); }

.rung.lit { border-left-color: var(--mint-dark); }
.rung.lit.hot { border-left-color: var(--warn); }
.rung.lit.danger { border-left-color: var(--rec); }

.rung.here { background: var(--mint-deep); border-left-color: var(--mint); }
.rung.here.hot { background: #3b3006; border-left-color: var(--warn); }
.rung.here.danger { background: var(--rec-deep); border-left-color: var(--rec); }
.rung.here .at, .rung.here small { color: var(--text-soft); }

@media (hover: hover) {
  .rung:hover { color: #fff; background: #05271a; opacity: 1; }
  .rung:hover small, .rung:hover .at { color: #fff; }
}

.rung[aria-pressed='true'],
.rung[aria-pressed='true'].here { background: var(--mint); border-left-color: var(--mint); color: var(--btn-text); opacity: 1; }
.rung[aria-pressed='true'] b,
.rung[aria-pressed='true'] small,
.rung[aria-pressed='true'] .at { color: var(--btn-text); }

@media (hover: hover) {
  .rung[aria-pressed='true']:hover { background: #fff; color: #000; }
  .rung[aria-pressed='true']:hover b,
  .rung[aria-pressed='true']:hover small,
  .rung[aria-pressed='true']:hover .at { color: #000; }
}

.lower { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.lower-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }

.deck { display: flex; flex-direction: column; gap: 0.6rem; }

.reel { width: 100%; height: 6.5rem; background: #000; border: 2px solid var(--key-line); }
.deck.live .reel { border-color: var(--rec); }

.transport { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.transport .key { font-size: 0.82rem; padding: 0.65rem 0.95rem; }
.transport .key.rec { min-width: 8.6rem; }

.timer {
  font-size: 1.45rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-left: 0.5rem;
  color: var(--text);
}

.deck.live .timer { color: var(--rec); }

.coach { font-size: 0.68rem; line-height: 1.4; color: var(--text-soft); margin-left: auto; text-align: right; }
.coach.good { color: var(--mint-light); }
.coach.warn { color: var(--warn); }
.coach.bad { color: var(--rec); }

.shelf { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 1.2rem; align-items: start; }

.tape-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 0.45rem;
}

.tape-row {
  font: inherit;
  width: 100%;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  grid-template-areas: 'ico name time' 'ico when wave';
  column-gap: 0.5rem;
  align-items: center;
  padding: 0.4rem 0.5rem;
  text-align: left;
  color: var(--text);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background-color 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}

.tape-row .ico { grid-area: ico; width: 18px; height: 18px; color: var(--mint); }
.tape-row b { grid-area: name; font-size: 0.72rem; font-weight: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tape-row .t { grid-area: time; font-size: 0.62rem; font-variant-numeric: tabular-nums; }
.tape-row small { grid-area: when; font-size: 0.56rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tape-row .note { grid-area: wave; font-size: 0.54rem; color: var(--mint-light); text-align: right; }

@media (hover: hover) {
  .tape-row:hover { color: #fff; border-color: var(--mint); background: var(--mint-deep); }
}
@media (hover: hover) {
  .tape-row:hover small { color: #fff; }
}

.tape-row.on { color: var(--btn-text); background: var(--mint); border-color: var(--mint); }
.tape-row.on .ico, .tape-row.on small, .tape-row.on .note { color: var(--btn-text); }
@media (hover: hover) {
  .tape-row.on:hover { color: #000; background: #fff; border-color: #fff; }
}
@media (hover: hover) {
  .tape-row.on:hover .ico, .tape-row.on:hover small, .tape-row.on:hover .note { color: #000; }
}

.empty, .nothing {
  font-size: 0.68rem;
  line-height: 1.6;
  text-align: center;
  color: var(--text-muted);
}

.empty { padding: 1.4rem 0.5rem; display: flex; flex-direction: column; align-items: center; }
.empty .ico { margin-bottom: 0.5rem; color: var(--mint-dark); }

.nothing { padding: 3rem 1rem; border: 1px dashed var(--line); }

.open { min-width: 0; }

.tape { display: flex; flex-direction: column; gap: 0.65rem; }

.tape-top { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }

.name {
  font: inherit;
  font-size: 1rem;
  flex: 1 1 10rem;
  min-width: 0;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.15rem 0.1rem;
  outline: none;
}

@media (hover: hover) {
  .name:hover { border-bottom-color: var(--text-soft); }
}
.name:focus { border-bottom-color: var(--mint); }

.tape-meta { font-size: 0.58rem; color: var(--text-muted); }

.scrub { width: 100%; height: 4.6rem; background: #000; border: 1px solid var(--key-line); cursor: pointer; touch-action: none; }
@media (hover: hover) {
  .scrub:hover { border-color: var(--mint); }
}

.tape-keys { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.clock { font-size: 0.68rem; font-variant-numeric: tabular-nums; color: var(--text-soft); margin: 0 0.25rem; }

.words { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.3rem; }

.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }

.tier {
  font: inherit;
  text-align: left;
  padding: 0.45rem 0.55rem;
  color: var(--text);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background-color 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}

.tier b { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.74rem; font-weight: normal; }
.tier b em { font-style: normal; font-size: 0.58rem; color: var(--text-soft); }
.tier small { display: block; margin-top: 0.15rem; font-size: 0.58rem; line-height: 1.4; color: var(--text-soft); }

@media (hover: hover) {
  .tier:hover { color: #fff; border-color: var(--mint); background: var(--mint-deep); }
}
@media (hover: hover) {
  .tier:hover small, .tier:hover b em { color: #fff; }
}

.tier[aria-checked='true'] { color: var(--btn-text); background: var(--mint); border-color: var(--mint); }
.tier[aria-checked='true'] small, .tier[aria-checked='true'] b em { color: var(--btn-text); }
@media (hover: hover) {
  .tier[aria-checked='true']:hover { color: #000; background: #fff; border-color: #fff; }
}
@media (hover: hover) {
  .tier[aria-checked='true']:hover small, .tier[aria-checked='true']:hover b em { color: #000; }
}

.setup { display: flex; flex-direction: column; gap: 0.5rem; }
.setup-row { display: flex; gap: 0.4rem; }
.setup-row .pick { flex: 1; font-size: 0.72rem; }
.setup-row .key { flex: 1; }

.fine { font-size: 0.58rem; line-height: 1.5; color: var(--text-muted); }
.fine .link { font-size: inherit; color: var(--text-soft); text-decoration: underline; }
@media (hover: hover) {
  .fine .link:hover { color: #fff; }
}

.busy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1rem 0.5rem;
  font-size: 0.72rem;
  color: var(--text-soft);
  background: #000;
  border: 1px solid var(--line);
}

.heard { font-size: 0.62rem; line-height: 1.5; color: var(--text-muted); text-align: center; min-height: 1.5em; word-break: break-word; }
.busy .link { font-size: 0.62rem; }

.done { display: flex; flex-direction: column; gap: 0.55rem; }

.lines {
  border: 1px solid var(--line);
  background: #000;
}

.line {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr);
  gap: 0.35rem;
  padding: 0.28rem 0.45rem;
  border-left: 3px solid transparent;
}

.line .stamp {
  font: inherit;
  font-size: 0.58rem;
  line-height: 1.7;
  padding: 0;
  text-align: left;
  color: var(--mint-light);
  background: none;
  border: none;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) {
  .line .stamp:hover { color: #fff; text-decoration: underline; }
}

.line .say { font-size: 0.7rem; line-height: 1.5; outline: none; word-break: break-word; }
.line .say:focus { background: #0b1d15; }
.line.now { background: var(--mint-deep); border-left-color: var(--mint); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.68rem;
  white-space: nowrap;
  background: #000;
  border: 1px solid var(--mint);
}

.foot { color: rgba(255, 255, 255, 0.62); margin-top: 0; padding: 0.15rem 0.5rem; background: #000; border: 1px solid var(--line); }
.foot a { color: rgba(255, 255, 255, 0.85); }

.rack .status { text-align: center; min-height: 1.3em; font-size: 0.7rem; }

@media (min-width: 761px) {
  .roll { --row: 4.1rem; }
}

@media (max-width: 760px) {
  .pane { grid-template-columns: minmax(0, 1fr); }
  .lower-row { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .shelf { grid-template-columns: minmax(0, 1fr); }
  .nothing { padding: 1.4rem 1rem; }
  .coach { margin-left: 0; width: 100%; text-align: left; }
}

@media (max-width: 520px) {
  .rack { padding: 0.9rem 0.9rem 0.6rem; }
  .strip .pick { flex: 1 1 calc(100% - 1.6rem); }
  .input { flex: 1 1 100%; }
  .strip-keys { width: 100%; margin-left: 0; }
  .strip-keys .key { flex: 1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .readout { flex-direction: column; gap: 0.3rem; }
  .num { font-size: 2.6rem; }
  .transport .key { flex: 1; min-width: 0; }
  .transport .key.rec { min-width: 0; }
  .timer { width: 100%; margin-left: 0; text-align: center; order: -1; }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .toast { left: 0.8rem; right: 0.8rem; transform: none; white-space: normal; justify-content: space-between; }
}

@media (pointer: coarse) {
  .key.small, .pick { min-height: 2.5rem; }
  .key { min-height: 2.75rem; }
  .pick, .name, .line .say { font-size: 16px; }
  .link, .cal summary { padding: 0.45rem 0; }
  .tape-row { padding: 0.6rem 0.55rem; }
  .line .stamp { min-height: 2rem; font-size: 0.68rem; }
  .scrub { height: 5.5rem; }
  input[type='range'] { height: 2.5rem; }
  input[type='range']::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -10.5px; }
  input[type='range']::-moz-range-thumb { width: 22px; height: 22px; }
  .head .key.small { min-height: 2.5rem; min-width: 2.75rem; }
}
