:root {
  color-scheme: dark;
  --bg: #111315;
  --panel: #191c1f;
  --line: #303337;
  --muted: #969a9f;
  --text: #f1f2f3;
  --accent: #d7f76b;
  --red: #ff727c;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 14px;
  background: #23262a;
  color: var(--text);
  font-weight: 600;
}
button:hover {
  background: #32363a;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.svg-defs {
  display: none;
}
a {
  color: var(--accent);
  text-decoration: none;
}
input,
select {
  color: var(--text);
  background: #121416;
  border: 1px solid #3a3e43;
  border-radius: 6px;
  padding: 11px;
  width: 100%;
  min-width: 0;
}
input:focus,
select:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}
input[type="range"] {
  padding: 0;
  accent-color: var(--accent);
  margin-top: 14px;
}
label {
  display: block;
  font-size: 12px;
  color: #c3c5c8;
  font-weight: 550;
}
label input,
label select {
  margin-top: 8px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.7;
}
small {
  font-size: 11px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a2405;
}
.primary:hover {
  background: #e3ff8b;
}
.small-button {
  font-size: 12px;
  padding: 8px 12px;
  min-height: 34px;
  border: 1px solid var(--line);
  background: #24272a;
  border-radius: 6px;
  color: #e4e5e7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.text-button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 4px;
  min-height: 32px;
  font-size: 12px;
  font-weight: 500;
}
.danger {
  color: #ff9da4;
  border-color: #61353a;
  background: #2c1d21;
  font-size: 12px;
  min-height: 42px;
}
.danger:hover {
  background: #50262d;
}
.danger svg {
  width: 15px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 226px;
  flex-shrink: 0;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid #292c30;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  background: #16181a;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 25px;
  font-weight: 760;
  letter-spacing: -1px;
  color: #f1f2f3;
}
.brand-light {
  font-weight: 350;
}
.brand b {
  color: var(--accent);
}
.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #172008;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.brand-mark svg {
  width: 23px;
  height: 23px;
  stroke-width: 2;
}
.studio-tag {
  font-size: 8px;
  letter-spacing: 1.7px;
  color: var(--muted);
  margin: 21px 0 36px;
  display: flex;
  align-items: center;
  gap: 8px;
}
nav {
  display: grid;
  gap: 8px;
}
.nav {
  justify-content: flex-start;
  gap: 12px;
  font-size: 12px;
  min-height: 45px;
  background: none;
  border-color: transparent;
  color: #a6a9ad;
  padding: 10px;
}
.nav.active {
  background: #272c20;
  color: var(--accent);
  border-color: #414b2a;
}
.nav span {
  margin-left: auto;
  background: #3b442c;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 10px;
}
.nav svg {
  width: 18px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 48px;
}
.local-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #b0b5a9;
}
.sidebar-bottom p {
  color: #686e74;
  font-size: 11px;
  margin: 16px 0;
}
.version {
  display: block;
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #5c6268;
  margin-top: 24px;
}
.main-wrap {
  width: calc(100% - 226px);
  margin-left: 226px;
}
.topbar {
  height: 73px;
  border-bottom: 1px solid #292c30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  font-size: 10px;
  letter-spacing: 1.1px;
  color: #a5aaae;
}
.topbar > span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.topbar .slash {
  color: #4d5257;
  margin: 0 4px;
}
.topbar > div {
  display: flex;
  align-items: center;
  gap: 15px;
}
#save-status {
  font-size: 11px;
  letter-spacing: 0;
  color: #8f9990;
}
.topbar .small-button {
  font-weight: 500;
}
main {
  padding: 32px 40px 0;
  max-width: 1700px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 4px 0 27px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--muted);
  font-weight: 600;
}
.page-heading h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  font-weight: 650;
  margin: 9px 0 6px;
}
.page-heading h1 span {
  color: var(--accent);
}
.page-heading p:last-child {
  color: var(--muted);
  font-size: 12px;
}
.record-strip {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px 22px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.rec-label {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rec-label strong {
  font-size: 12px;
  font-weight: 550;
  display: block;
}
.rec-label small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.rec-light {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f27b82;
  box-shadow: 0 0 0 5px #36262b;
  margin: 0 5px;
}
.rec-light.recording {
  background: #ff4a5d;
  animation: blink 1.3s infinite;
}
.rec-time {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 26px;
  letter-spacing: 1px;
  border-left: 1px solid var(--line);
  padding-left: 22px;
  color: #c9ccce;
}
.mic-display {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: #7c8389;
}
.mic-display svg {
  width: 15px;
}
.mic-display meter {
  width: 75px;
  height: 11px;
  accent-color: var(--accent);
}
.mic-display small {
  font-size: 9px;
}
.record-button {
  background: #382328;
  color: #ffa6ad;
  border-color: #6b343d;
  font-size: 11px;
  min-height: 37px;
}
.record-button span {
  color: #ff7484;
}
#record-result {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
audio {
  max-width: 100%;
  height: 36px;
}
.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 25px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.count {
  font-size: 8px;
  letter-spacing: 1px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 6px;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 500;
}
.pads {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.pad {
  position: relative;
  border: 1px solid #383d3c;
  border-top: 2px solid var(--pad-color, #a4b68d);
  background: linear-gradient(150deg, #242927, #1d211f);
  border-radius: 9px;
  min-width: 0;
  overflow: hidden;
  transition:
    background 0.15s,
    border 0.15s;
}
.pad:nth-child(3n + 2) {
  --pad-color: #97b2c8;
  background: linear-gradient(150deg, #25292d, #1d2024);
}
.pad:nth-child(3n) {
  --pad-color: #b3a4ca;
  background: linear-gradient(150deg, #2b272f, #211e25);
}
.pad.empty {
  border-top-color: #494f53;
  background: #1a1d20;
  border-style: dashed;
}
.pad.active {
  background: #3a4823;
  border: 1px solid var(--accent);
  border-top: 2px solid var(--accent);
  box-shadow: 0 0 20px #d7f71a10;
}
.pad-play {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 0;
  border: 0;
  background: none !important;
  width: 100%;
  padding: 16px 13px 13px;
  min-height: 157px;
  text-align: left;
  border-radius: 0;
}
.pad-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 25px;
  padding-right: 22px;
}
.pad-key,
kbd {
  font-family: ui-monospace, SFMono-Regular, monospace;
  background: #ffffff0a;
  border: 1px solid #ffffff19;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 12px;
  color: #dadfde;
}
.pad-type {
  font-size: 8px;
  letter-spacing: 0.6px;
  color: #94a090;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pad-type::before {
  content: "•";
  color: var(--pad-color, #b5ce9c);
}
.pad-name {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}
.pad-meta {
  font-size: 9px;
  color: #929a98;
  font-weight: 400;
  white-space: nowrap;
}
.pad.active .pad-meta {
  color: var(--accent);
}
.pad-edit {
  position: absolute;
  right: 6px;
  top: 10px;
  border: 0;
  padding: 3px;
  min-height: 26px;
  width: 26px;
  background: none;
  color: #9ba29e;
  font-size: 15px;
  z-index: 2;
}
.pad.empty .pad-name {
  color: #82888d;
  font-weight: 400;
}
.pad.empty .pad-meta {
  color: #5b6369;
}
.board-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: #767e83;
  padding: 19px 0;
}
.board-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.tip-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border: 1px solid #303438;
  border-radius: 8px;
  margin-top: 9px;
  background: #171a1c;
}
.tip-card > svg {
  color: #b4bba9;
  width: 25px;
  height: 25px;
}
.tip-card strong {
  font-size: 12px;
}
.tip-card p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.tip-card button {
  margin-left: auto;
  white-space: nowrap;
  font-size: 10px;
}
.run-panel {
  border: 1px solid var(--line);
  background: #191c1f;
  border-radius: 10px;
  padding: 20px;
  align-self: start;
}
.run-panel h2 {
  font-size: 14px;
}
.run-panel .section-heading {
  gap: 5px;
}
.run-panel .section-heading h2 svg {
  width: 17px;
  color: var(--muted);
}
.run-panel .text-button {
  font-size: 10px;
}
.run-panel select {
  font-size: 12px;
  padding: 11px 9px;
  background: #202326;
}
.run-now {
  margin-top: 20px;
  padding: 20px 15px 8px;
  background: #121618;
  border: 1px solid #2e3536;
  border-radius: 7px;
  overflow: hidden;
}
.run-now .eyebrow {
  color: var(--accent);
  font-size: 8px;
}
.run-now strong {
  display: block;
  font-size: 16px;
  margin: 11px 0 7px;
  overflow-wrap: anywhere;
}
.run-now > span {
  font-size: 10px;
  color: var(--muted);
}
.mini-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  margin-top: 13px;
  opacity: 0.4;
}
.mini-wave i {
  width: 6px;
  height: 12px;
  border-radius: 2px;
  background: var(--accent);
  flex: 1;
}
.mini-wave i:nth-child(3n) {
  height: 26px;
}
.mini-wave i:nth-child(4n) {
  height: 20px;
}
.mini-wave i:nth-child(5n) {
  height: 33px;
}
.run-now.playing .mini-wave {
  opacity: 1;
}
.run-now.playing .mini-wave i {
  animation: wave 0.8s infinite alternate;
}
.run-now.playing .mini-wave i:nth-child(2n) {
  animation-delay: 0.4s;
}
.up-next {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.up-next span {
  font-size: 8px;
  color: #737d84;
  letter-spacing: 1px;
}
.up-next strong {
  font-size: 11px;
  color: #c1c7cc;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.run-controls {
  display: flex;
  gap: 8px;
}
.run-controls .primary {
  flex: 1;
  font-size: 12px;
}
.run-controls > button:last-child {
  width: 42px;
}
.run-controls svg,
.next-button svg {
  width: 15px;
  height: 15px;
}
.next-button {
  width: 100%;
  background: #272b2e;
  margin-top: 8px;
  font-size: 11px;
  justify-content: flex-start;
}
.next-button kbd {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 5px;
}
.live-steps {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}
.live-steps li {
  display: flex;
  gap: 9px;
  padding: 10px 0;
  border-top: 1px solid #2c3033;
  color: #848c92;
  font-size: 11px;
  align-items: center;
}
.live-steps li.current {
  color: var(--accent);
}
.live-steps li > span:first-child {
  font-family: monospace;
  font-size: 9px;
}
.live-steps li > span:nth-child(2) {
  flex: 1;
  overflow-wrap: anywhere;
}
.live-steps li small {
  font-size: 8px;
  white-space: nowrap;
}
.run-help {
  font-size: 9px;
  color: #737b81;
  margin-top: 15px;
  line-height: 1.7;
}
footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #25292d;
  padding: 22px 0;
  color: #646d74;
  font-size: 9px;
  margin-top: 39px;
}
footer span:last-child {
  font-size: 8px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.notice {
  background: #3b3020;
  color: #f7d49a;
  border: 1px solid #6e5530;
  border-radius: 7px;
  padding: 14px;
  margin-bottom: 20px;
  font-size: 12px;
}
.drop-zone {
  border: 1px dashed #5b6750;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 35px;
  background: #1c211a;
  border-radius: 10px;
  cursor: pointer;
}
.drop-zone.dragging {
  background: #354326;
  border-color: var(--accent);
}
.drop-zone svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
}
.drop-zone strong {
  font-size: 17px;
}
.drop-zone span,
.drop-zone small {
  color: #929d8b;
  font-size: 12px;
}
.drop-zone input {
  width: auto;
  max-width: 100%;
  font-size: 12px;
  margin-top: 8px;
}
.file-list {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.file-row > svg {
  color: var(--accent);
}
.file-info {
  flex: 1;
  min-width: 0;
}
.file-info strong {
  font-size: 13px;
  display: block;
  overflow-wrap: anywhere;
}
.file-info small {
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.file-row select {
  max-width: 150px;
  font-size: 11px;
}
.file-row button {
  font-size: 11px;
}
.empty-state {
  border: 1px dashed #343b40;
  border-radius: 9px;
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  line-height: 1.8;
}
.editor-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
}
.run-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.run-list button {
  justify-content: flex-start;
  text-align: left;
  overflow-wrap: anywhere;
  background: var(--panel);
  padding: 16px;
}
.run-list button.selected {
  border-color: #829542;
  color: var(--accent);
  background: #252b1f;
}
.run-editor {
  background: var(--panel);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.editor-head {
  display: flex;
  align-items: end;
  gap: 15px;
  margin-bottom: 20px;
}
.editor-head label {
  flex: 1;
}
.step-editor {
  padding: 15px;
  background: #141719;
  border: 1px solid #343a3e;
  border-radius: 7px;
  margin-bottom: 12px;
}
.step-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.step-toolbar strong {
  font-size: 12px;
  margin-right: auto;
}
.step-toolbar button {
  font-size: 12px;
  min-height: 30px;
  padding: 4px 9px;
}
.drag-handle {
  color: #7e898e;
  cursor: grab;
  padding: 3px;
  font-size: 19px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-grid .full {
  grid-column: 1/-1;
}
.field-grid input,
.field-grid select {
  font-size: 12px;
}
.step-editor .field-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.step-editor .field-grid .full {
  grid-column: auto;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.settings-card {
  background: var(--panel);
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.settings-card p {
  color: var(--muted);
  font-size: 12px;
  margin: 14px 0;
}
.settings-card label {
  margin: 20px 0;
}
.settings-card output {
  float: right;
  color: var(--accent);
}
#next-key {
  width: 75px;
  display: block;
  text-transform: uppercase;
}
dialog {
  background: #1c2023;
  color: var(--text);
  border: 1px solid #454d50;
  border-radius: 12px;
  padding: 25px;
  width: 460px;
  max-width: calc(100% - 24px);
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(3px);
}
.dialog-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 26px;
}
.icon-button {
  font-size: 24px;
  background: none;
  min-height: 32px;
  padding: 0 7px;
  border: 0;
}
.login-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 20%, #29311f, #111315 70%);
  padding: 24px;
  z-index: 10;
}
.login-card {
  width: 390px;
  max-width: 100%;
  background: #1a1e20;
  padding: 36px;
  border: 1px solid #394036;
  border-radius: 15px;
  box-shadow: 0 30px 90px #0005;
}
.login-card .brand-mark {
  width: 44px;
  height: 44px;
}
.login-card h1 {
  font-size: 34px;
  margin: 20px 0 5px;
  letter-spacing: -1px;
}
.login-card h1 span {
  color: var(--accent);
}
.login-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.login-card label {
  margin-top: 30px;
}
.login-card button {
  width: 100%;
  margin-top: 20px;
}
.login-card small {
  color: #777f84;
  font-size: 10px;
  line-height: 1.8;
  display: block;
  margin-top: 20px;
}
.login-card #login-message {
  color: #ffb2b7;
  font-size: 12px;
  margin: 20px 0 0;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #303a25;
  border: 1px solid #84964b;
  color: #f1f5e8;
  box-shadow: 0 8px 30px #0009;
  border-radius: 8px;
  padding: 15px 22px;
  z-index: 50;
  max-width: calc(100vw - 30px);
  font-size: 12px;
  line-height: 1.6;
}
#toast.error {
  background: #452b30;
  border-color: #9b535b;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
@keyframes blink {
  50% {
    box-shadow: 0 0 0 5px #6f263080;
    opacity: 0.65;
  }
}
@keyframes wave {
  to {
    transform: scaleY(0.4);
  }
}
@media (min-width: 1500px) {
  .pad-play {
    min-height: 190px;
    padding: 20px;
  }
  .pad-top {
    margin-bottom: 40px;
  }
  .pad-name {
    font-size: 14px;
  }
  .board-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 190px;
    padding: 28px 15px;
  }
  .main-wrap {
    margin-left: 190px;
    width: calc(100% - 190px);
  }
  main {
    padding: 26px 25px 0;
  }
  .topbar {
    padding: 0 25px;
  }
  .board-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 18px;
  }
  .pads {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pad-play {
    min-height: 140px;
  }
  .board-layout > .run-panel {
    padding: 16px;
  }
  .board-footer {
    flex-direction: column;
    gap: 8px;
  }
  .record-strip {
    gap: 18px;
  }
  .mic-display {
    margin-left: 0;
  }
  .record-button {
    margin-left: auto;
  }
  .section-heading > .muted {
    font-size: 10px;
  }
  .tip-card {
    flex-wrap: wrap;
  }
  .step-editor .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 80px;
    padding: 25px 13px;
  }
  .brand {
    justify-content: center;
  }
  .brand > span:last-child,
  .studio-tag,
  .nav span,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    font-size: 0;
    justify-content: center;
  }
  .nav svg {
    width: 22px;
    height: 22px;
  }
  .sidebar nav {
    margin-top: 30px;
  }
  .main-wrap {
    margin-left: 80px;
    width: calc(100% - 80px);
  }
  .topbar {
    height: 65px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .board-layout {
    grid-template-columns: minmax(0, 1fr) 235px;
  }
  .pads {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .record-strip {
    padding: 18px;
    gap: 18px;
  }
  .rec-time {
    font-size: 23px;
  }
  .mic-display {
    margin-left: auto;
  }
  .record-button {
    margin-left: 0;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .file-row {
    flex-wrap: wrap;
  }
  .file-info {
    min-width: 55%;
  }
  .file-row select {
    max-width: none;
    flex: 1;
  }
  .step-editor .field-grid {
    grid-template-columns: 1fr 1fr;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .run-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .run-list button {
    font-size: 12px;
  }
  .section-heading > .muted {
    display: none;
  }
}
@media (max-width: 620px) {
  .sidebar {
    position: sticky;
    inset: 0 0 auto;
    width: 100%;
    height: 64px;
    z-index: 5;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 15px;
  }
  .sidebar nav {
    margin: 0;
    display: flex;
    gap: 5px;
  }
  .nav {
    padding: 8px;
    min-height: 38px;
  }
  .nav svg {
    width: 18px;
    height: 18px;
  }
  .app-shell {
    display: block;
  }
  .main-wrap {
    margin: 0;
    width: 100%;
  }
  .topbar {
    padding: 0 18px;
    height: 52px;
    font-size: 8px;
  }
  .topbar > div {
    gap: 9px;
  }
  #save-status {
    font-size: 9px;
  }
  .topbar .small-button {
    font-size: 10px;
    min-height: 30px;
    padding: 5px 8px;
  }
  main {
    padding: 22px 18px 0;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 25px;
    letter-spacing: -0.8px;
  }
  .page-heading p:last-child {
    font-size: 10px;
  }
  .page-heading .eyebrow {
    font-size: 7px;
  }
  .page-heading .danger {
    font-size: 0;
    padding: 9px;
    min-height: 36px;
  }
  .page-heading .danger svg {
    width: 17px;
    height: 17px;
  }
  .page-heading .danger::after {
    content: "Stopp";
    font-size: 10px;
  }
  .board-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pads {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pad-play {
    min-height: 145px;
    padding: 15px;
  }
  .pad-name {
    font-size: 13px;
  }
  .pad-top {
    margin-bottom: 22px;
  }
  .rec-label {
    gap: 8px;
  }
  .rec-label strong {
    font-size: 11px;
  }
  .rec-label small {
    font-size: 8px;
  }
  .rec-time {
    font-size: 21px;
    padding-left: 16px;
  }
  .record-strip {
    gap: 18px 14px;
    margin-bottom: 26px;
  }
  .mic-display {
    margin-left: 0;
  }
  .record-button {
    margin-left: auto;
    font-size: 10px;
  }
  .mic-display meter {
    width: 65px;
  }
  .board-footer {
    flex-direction: row;
    font-size: 8px;
    gap: 7px;
  }
  .tip-card {
    gap: 10px;
    padding: 17px;
  }
  .tip-card > svg {
    display: none;
  }
  .tip-card button {
    margin-left: 0;
  }
  .run-panel {
    padding: 20px;
  }
  .run-panel h2 {
    font-size: 16px;
  }
  .run-panel .text-button {
    font-size: 12px;
  }
  .record-strip #record-result {
    flex-direction: column;
    align-items: stretch;
  }
  .record-strip audio {
    width: 100%;
  }
  .field-grid,
  .step-editor .field-grid {
    grid-template-columns: 1fr 1fr;
  }
  .run-editor {
    padding: 15px;
  }
  .editor-head {
    align-items: flex-end;
  }
  .editor-head .text-button {
    font-size: 10px;
  }
  .section-heading h2 {
    font-size: 15px;
  }
  .section-heading > .primary {
    font-size: 11px;
  }
  .file-info {
    min-width: 60%;
  }
  .file-row {
    gap: 10px;
  }
  .file-row .small-button {
    font-size: 10px;
  }
  .drop-zone {
    padding: 25px 15px;
    text-align: center;
  }
  .drop-zone span {
    font-size: 11px;
  }
  .drop-zone small {
    font-size: 9px;
  }
  footer {
    gap: 15px;
    font-size: 8px;
  }
  footer span:last-child {
    font-size: 6px;
    white-space: nowrap;
  }
  .login-card {
    padding: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.editor-transport {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.editor-transport strong,
.editor-transport small {
  display: block;
  margin-top: 8px;
}
.editor-transport small {
  color: var(--muted);
}
.transport-buttons {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.transport-buttons button {
  font-size: 11px;
}

/* Talkover and recording stay visible while the studio is in use. */
.talkover-button {
  font-size: 10px;
  min-height: 34px;
  color: #aab99c;
  background: #242b20;
  border-color: #45513a;
  max-width: 250px;
}
.talkover-button.ducking {
  color: #182305;
  background: var(--accent);
  border-color: var(--accent);
}
.check-label {
  display: flex;
  gap: 10px;
  align-items: center;
  line-height: 1.6;
  font-size: 12px;
}
.check-label input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.rec-badge {
  position: fixed;
  top: 16px;
  right: auto;
  left: calc(50% + 113px);
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ca263d;
  color: white;
  padding: 12px 17px;
  border: 1px solid #ff8b96;
  border-radius: 7px;
  box-shadow: 0 6px 28px #0007;
  font-weight: 850;
  font-size: 18px;
  letter-spacing: 2px;
}
.rec-badge > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: white;
  animation: blink 1s infinite;
}
.rec-badge time {
  font:
    13px ui-monospace,
    SFMono-Regular,
    monospace;
  letter-spacing: 1px;
}
body.is-recording .record-strip {
  border-color: #df4b60;
  box-shadow: inset 0 0 0 1px #df4b6033;
}
.countdown-overlay {
  position: fixed;
  inset: 0;
  background: #080c10dc;
  backdrop-filter: blur(8px);
  z-index: 30;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 25px;
}
.countdown-overlay > div {
  width: 380px;
  max-width: 100%;
  padding: 40px 25px;
  border: 1px solid #454d3b;
  border-radius: 18px;
  background: #1b2119;
}
.countdown-overlay strong {
  display: block;
  font:
    800 130px/1.25 ui-monospace,
    SFMono-Regular,
    monospace;
  color: var(--accent);
  margin: 12px 0;
}
.countdown-overlay p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 25px;
}
.run-controls .primary kbd {
  color: #223008;
  border-color: #22300833;
  background: #2230080a;
  font-size: 10px;
}
@media (max-width: 620px) {
  .rec-badge {
    top: auto;
    bottom: 18px;
    right: 16px;
    left: auto;
    transform: none;
    font-size: 16px;
    padding: 10px 12px;
  }
  .rec-badge time {
    font-size: 11px;
  }
  .talkover-button {
    max-width: 100%;
    order: 3;
    width: 100%;
  }
  .record-strip {
    gap: 16px 12px;
  }
  .record-strip #record-result {
    order: 4;
  }
  .record-button {
    font-size: 10px;
  }
  .mic-display {
    margin-left: 0;
  }
}

/* Actual audio position, measured with the audio clock. */
body[data-tab="board"] .page-heading > div {
  display: none;
}
body[data-tab="board"] .page-heading {
  justify-content: flex-end;
  margin: 0 0 16px;
}
.audio-timeline {
  display: block;
  width: 100%;
  margin-top: 13px;
  text-align: left;
  font-weight: 400;
  min-width: 0;
}
.timeline-times {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font:
    10px ui-monospace,
    SFMono-Regular,
    monospace;
  color: #aab4b7;
  font-variant-numeric: tabular-nums;
}
.audio-timeline progress {
  display: block;
  width: 100%;
  height: 5px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 8px;
  background: #ffffff13;
  margin: 7px 0;
  overflow: hidden;
  accent-color: #8b9b70;
}
.audio-timeline progress::-webkit-progress-bar {
  background: #ffffff13;
  border-radius: 8px;
}
.audio-timeline progress::-webkit-progress-value {
  background: #8b9b70;
  border-radius: 8px;
  transition: width 0.1s linear;
}
.audio-timeline progress::-moz-progress-bar {
  background: #8b9b70;
  border-radius: 8px;
}
.audio-timeline.is-active progress::-webkit-progress-value {
  background: var(--accent);
}
.audio-timeline.is-active progress::-moz-progress-bar {
  background: var(--accent);
}
.audio-timeline.is-active .timeline-elapsed {
  color: var(--accent);
}
.timeline-remaining {
  display: block;
  min-height: 22px;
  font-size: 9px;
  line-height: 1.6;
  color: #899698;
  overflow-wrap: anywhere;
}
.pad .audio-timeline {
  margin-top: 12px;
}
.pad-play:has(.audio-timeline) {
  min-height: 208px;
}
.pad .pad-top {
  margin-bottom: 21px;
}
.pad.active .audio-timeline progress {
  box-shadow: 0 0 8px #d7f7301a;
}
.run-now .audio-timeline {
  margin-top: 22px;
  margin-bottom: 10px;
}
.run-now .timeline-times {
  font-size: 12px;
}
.run-now .audio-timeline progress {
  height: 7px;
}
.run-now .timeline-remaining {
  font-size: 10px;
  min-height: 30px;
}
.live-step-name {
  min-width: 0;
}
.step-length {
  display: block;
  color: #738087;
  font:
    10px ui-monospace,
    SFMono-Regular,
    monospace;
  margin-top: 5px;
}
.step-toolbar .file-duration {
  font:
    11px ui-monospace,
    SFMono-Regular,
    monospace;
  color: var(--muted);
}
.editor-transport > div:first-child {
  flex: 1;
  min-width: 200px;
}
.editor-transport .audio-timeline {
  max-width: 460px;
}
.file-duration {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 620px) {
  .pad-play:has(.audio-timeline) {
    min-height: 205px;
  }
  .timeline-times {
    font-size: 10px;
  }
  .timeline-remaining {
    font-size: 9px;
  }
  body[data-tab="board"] .page-heading {
    margin-bottom: 12px;
  }
  .pad .pad-top {
    margin-bottom: 18px;
  }
}

.record-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.record-actions .record-button {
  width: 100%;
  margin: 0;
  min-height: 42px;
  font-size: 12px;
}
.record-actions .record-with-run {
  color: var(--accent);
  background: #293322;
  border-color: #586d39;
}
.record-actions .record-with-run:hover {
  background: #35452a;
}
.record-actions .record-with-run:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.record-shortcut {
  grid-column: 1/-1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
}
.record-shortcut kbd {
  font-size: 10px;
  padding: 2px 6px;
}
@media (max-width: 620px) {
  .record-actions {
    grid-template-columns: 1fr;
    order: 3;
  }
  .record-actions .record-button {
    font-size: 11px;
  }
  .record-strip .talkover-button {
    order: 2;
  }
  .record-strip #record-result {
    order: 4;
  }
}

@media (min-width: 621px) and (max-width: 900px) {
  .rec-badge {
    left: calc(50% + 40px);
  }
}

/* Sky Blue + Hot Pink studio identity. */
:root {
  --bg: #090c14;
  --panel: #111724;
  --line: #273247;
  --muted: #98a6bb;
  --accent: #3bb3e5;
  --pink: #e6007e;
  --text: #f4f7fc;
}
body {
  background:
    radial-gradient(ellipse at 70% -30%, #14223b 0, transparent 62%), var(--bg);
}
.sidebar {
  background: #0c101b;
  border-color: #202a3a;
}
.topbar {
  border-color: #202a3a;
  background: #0c101b99;
}
.brand {
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -1.5px;
  gap: 8px;
}
.brand-light {
  font-weight: 900;
  color: var(--accent);
}
.brand b {
  color: var(--pink);
}
.brand-mark {
  width: 36px;
  height: 36px;
  background: none;
  border-radius: 9px;
  transform: rotate(-3deg);
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.login-card .brand-mark {
  width: 56px;
  height: 56px;
}
.login-screen {
  background:
    radial-gradient(ellipse at 25% 0%, #173b60 0, transparent 55%),
    radial-gradient(ellipse at 100% 80%, #4c1038 0, transparent 55%), #090c14;
}
.login-card {
  background: #101624;
  border-color: #30415b;
}
.primary {
  color: #061623;
  background: var(--accent);
  border-color: var(--accent);
}
.primary:hover {
  background: #75d3fa;
}
.nav.active {
  background: #152c3f;
  border-color: #275b78;
  color: #6ed0f9;
}
.nav.active span {
  background: #224d68;
  color: #9bdefb;
}
.pad {
  --pad-color: #3bb3e5;
  background: linear-gradient(145deg, #172538, #111b2a);
  border-color: #2c4054;
}
.pad:nth-child(3n + 2) {
  --pad-color: #e6007e;
  background: linear-gradient(145deg, #291727, #1b1424);
}
.pad:nth-child(3n) {
  --pad-color: #83cbe8;
  background: linear-gradient(145deg, #152537, #101c2c);
}
.pad.empty {
  border-color: #29364a;
  background: #111725;
}
.pad.active {
  border-color: var(--accent);
  background: linear-gradient(145deg, #17465c, #112a3e);
  box-shadow: 0 0 20px #3bb3e519;
}
.pad:nth-child(even).active {
  border-color: var(--pink);
  background: linear-gradient(145deg, #551c41, #291426);
  box-shadow: 0 0 20px #e6007e19;
}
.pad:nth-child(even).active .pad-meta,
.pad:nth-child(even) .audio-timeline.is-active .timeline-elapsed {
  color: #ff87c4;
}
.pad:nth-child(even)
  .audio-timeline.is-active
  progress::-webkit-progress-value {
  background: var(--pink);
}
.pad:nth-child(even) .audio-timeline.is-active progress::-moz-progress-bar {
  background: var(--pink);
}
.audio-timeline progress::-webkit-progress-value {
  background: #52738b;
}
.audio-timeline progress::-moz-progress-bar {
  background: #52738b;
}
.audio-timeline.is-active progress::-webkit-progress-value {
  background: var(--accent);
}
.audio-timeline.is-active progress::-moz-progress-bar {
  background: var(--accent);
}
.run-panel,
.record-strip,
.settings-card,
.run-editor,
.file-row {
  background: #111724;
  border-color: #293449;
}
.run-now {
  background: #0b1220;
  border-color: #293d56;
}
.run-panel select {
  background: #161f30;
  border-color: #304059;
}
.run-controls .primary kbd {
  color: #0d293b;
  border-color: #0d293b44;
  background: #0d293b11;
}
.next-button {
  background: #1a263a;
  border-color: #30415c;
}
.record-button {
  background: #e6007e;
  color: #fff;
  border-color: #fc4ca9;
}
.record-button span {
  color: #fff;
}
.record-button:hover {
  background: #fa198f;
}
.record-actions .record-with-run {
  background: #3bb3e5;
  color: #071725;
  border-color: #72d1f8;
}
.record-actions .record-with-run:hover {
  background: #75d3fa;
}
.talkover-button {
  background: #122b40;
  border-color: #2c5977;
  color: #7ed6fb;
}
.talkover-button.ducking {
  background: #e6007e;
  border-color: #ff63b5;
  color: #fff;
}
.run-list button.selected {
  background: #152f43;
  border-color: #347798;
  color: #8fddfc;
}
.countdown-overlay > div {
  background: #101d30;
  border-color: #365878;
}
.rec-light {
  background: #ff389b;
  box-shadow: 0 0 0 5px #4b1638;
}
.drop-zone {
  background: #12253a;
  border-color: #3f7d9f;
}
.drop-zone.dragging {
  background: #173b57;
}
.drop-zone span,
.drop-zone small {
  color: #a0bfd2;
}
.tip-card {
  background: #101a28;
}
.brand:focus-visible {
  outline-offset: 7px;
}

/* Desktop soundboard: all controls and ten pads share the available viewport. */
@media (min-width: 901px) {
  .sidebar {
    width: 180px;
    padding: 24px 14px;
  }
  .main-wrap {
    margin-left: 180px;
    width: calc(100% - 180px);
  }
  .rec-badge {
    left: calc(50% + 90px);
  }
  body[data-tab="board"] .main-wrap {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  body[data-tab="board"] .topbar {
    height: 48px;
    min-height: 48px;
    padding: 0 20px;
  }
  body[data-tab="board"] main {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    max-width: none;
    padding: 14px 20px;
    margin: 0;
  }
  body[data-tab="board"] .page-heading,
  body[data-tab="board"] footer,
  body[data-tab="board"] .tip-card {
    display: none;
  }
  body[data-tab="board"] .record-strip {
    display: grid;
    grid-template-columns: minmax(115px, 1fr) auto minmax(
        115px,
        1fr
      ) auto minmax(275px, 1.9fr);
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 0 0 12px;
    flex-shrink: 0;
    border-radius: 9px;
  }
  body[data-tab="board"] .rec-label {
    gap: 9px;
  }
  body[data-tab="board"] .rec-label strong {
    font-size: 11px;
  }
  body[data-tab="board"] .rec-label small {
    font-size: 9px;
    line-height: 1.4;
    margin-top: 3px;
  }
  body[data-tab="board"] .rec-time {
    font-size: clamp(20px, 2vw, 28px);
    padding-left: 10px;
  }
  body[data-tab="board"] .talkover-button {
    font-size: 9px;
    padding: 7px;
    min-height: 34px;
    max-width: none;
    white-space: normal;
  }
  body[data-tab="board"] .mic-display {
    margin: 0;
    gap: 5px;
  }
  body[data-tab="board"] .mic-display meter {
    width: 42px;
  }
  body[data-tab="board"] .mic-display small {
    display: none;
  }
  body[data-tab="board"] .record-actions {
    width: auto;
    padding: 0;
    border: 0;
    gap: 5px 7px;
    grid-template-columns: 1fr 1.35fr;
  }
  body[data-tab="board"] .record-actions .record-button {
    font-size: 10px;
    line-height: 1.35;
    padding: 7px 9px;
    min-height: 36px;
  }
  body[data-tab="board"] .record-shortcut {
    font-size: 8px;
    gap: 5px;
    line-height: 1;
  }
  body[data-tab="board"] .record-shortcut kbd {
    font-size: 8px;
    padding: 1px 4px;
  }
  body[data-tab="board"] #record-result {
    grid-column: 1/-1;
    margin: 0;
    padding-top: 7px;
    gap: 10px;
    flex-wrap: nowrap;
  }
  body[data-tab="board"] #record-result audio {
    height: 30px;
    width: 220px;
  }
  body[data-tab="board"] #record-result .small-button {
    min-height: 30px;
    font-size: 10px;
  }
  body[data-tab="board"] #tab-board {
    flex: 1;
    min-height: 0;
  }
  body[data-tab="board"] .board-layout {
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) clamp(225px, 22vw, 300px);
    gap: 16px;
  }
  body[data-tab="board"] .board-layout > div:first-child {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  body[data-tab="board"] .section-heading {
    margin-bottom: 10px;
    min-height: 24px;
  }
  body[data-tab="board"] .section-heading h2 {
    font-size: 15px;
  }
  body[data-tab="board"] .pads {
    flex: 1;
    min-height: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  body[data-tab="board"] .pad {
    min-height: 0;
  }
  body[data-tab="board"] .pad-play,
  body[data-tab="board"] .pad-play:has(.audio-timeline) {
    height: 100%;
    min-height: 0;
    padding: clamp(10px, 1.7vh, 20px) clamp(9px, 1vw, 16px);
    justify-content: center;
  }
  body[data-tab="board"] .pad-top {
    margin-bottom: clamp(12px, 3vh, 35px);
  }
  body[data-tab="board"] .pad-name {
    font-size: clamp(11px, 1vw, 15px);
  }
  body[data-tab="board"] .pad-meta {
    font-size: 9px;
  }
  body[data-tab="board"] .pad-type {
    font-size: 7px;
  }
  body[data-tab="board"] .audio-timeline {
    margin-top: clamp(10px, 2vh, 24px);
  }
  body[data-tab="board"] .timeline-times {
    font-size: clamp(10px, 0.85vw, 13px);
  }
  body[data-tab="board"] .timeline-remaining {
    font-size: 9px;
    min-height: 28px;
  }
  body[data-tab="board"] .board-footer {
    padding: 10px 0 0;
    font-size: 9px;
    flex-direction: row;
  }
  body[data-tab="board"] .run-panel {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 12px;
    align-self: stretch;
    overflow: hidden;
  }
  body[data-tab="board"] .run-panel > .section-heading {
    min-height: 22px;
    margin-bottom: 8px;
    flex-shrink: 0;
  }
  body[data-tab="board"] .run-panel h2 {
    font-size: 13px;
  }
  body[data-tab="board"] .run-panel select {
    padding: 8px;
    font-size: 11px;
    min-height: 32px;
    flex-shrink: 0;
  }
  body[data-tab="board"] .run-now {
    margin-top: 10px;
    padding: 12px 10px 6px;
    flex-shrink: 0;
  }
  body[data-tab="board"] .run-now strong {
    font-size: 14px;
    margin: 7px 0 5px;
    line-height: 1.3;
  }
  body[data-tab="board"] .run-now > span {
    font-size: 10px;
    line-height: 1.4;
  }
  body[data-tab="board"] .run-now .audio-timeline {
    margin: 14px 0 0;
  }
  body[data-tab="board"] .run-now .timeline-remaining {
    min-height: 22px;
    font-size: 9px;
  }
  body[data-tab="board"] .up-next {
    padding: 10px 0;
    gap: 5px;
    flex-shrink: 0;
  }
  body[data-tab="board"] .up-next strong {
    font-size: 10px;
    line-height: 1.3;
  }
  body[data-tab="board"] .run-controls,
  body[data-tab="board"] .next-button {
    flex-shrink: 0;
  }
  body[data-tab="board"] .run-controls button,
  body[data-tab="board"] .next-button {
    min-height: 34px;
    font-size: 11px;
    padding: 6px 9px;
  }
  body[data-tab="board"] .live-steps {
    flex: 1;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    margin-top: 10px;
    scrollbar-width: thin;
    scrollbar-color: #355a78 transparent;
  }
  body[data-tab="board"] .live-steps li {
    padding: 8px 0;
    font-size: 10px;
  }
  body[data-tab="board"] .run-panel > .run-help {
    display: none;
  }
  body[data-tab="board"] .notice {
    flex-shrink: 0;
    font-size: 11px;
    padding: 8px;
    margin: 0 0 10px;
  }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .sidebar {
    width: 76px;
    padding: 20px 12px;
  }
  .main-wrap {
    margin-left: 76px;
    width: calc(100% - 76px);
  }
  .brand {
    justify-content: center;
  }
  .brand > span:last-child,
  .studio-tag,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    margin-top: 28px;
  }
  .nav {
    justify-content: center;
    font-size: 0;
    padding: 10px;
  }
  .nav span {
    display: none;
  }
  .nav svg {
    width: 22px;
    height: 22px;
  }
  .rec-badge {
    left: calc(50% + 38px);
  }
  body[data-tab="board"] .board-layout {
    grid-template-columns: minmax(0, 1fr) 225px;
    gap: 12px;
  }
  body[data-tab="board"] main {
    padding: 12px;
  }
  body[data-tab="board"] .record-strip {
    grid-template-columns: minmax(100px, 1fr) auto minmax(
        110px,
        1fr
      ) auto minmax(260px, 1.8fr);
    gap: 8px;
    padding: 8px;
  }
  body[data-tab="board"] .rec-label small {
    font-size: 8px;
  }
  body[data-tab="board"] .board-footer > span:last-child {
    display: none;
  }
}
@media (min-width: 901px) and (max-height: 760px) {
  body[data-tab="board"] main {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  body[data-tab="board"] .pad-top {
    margin-bottom: 12px;
  }
  body[data-tab="board"] .run-now {
    padding: 8px;
    margin-top: 8px;
  }
  body[data-tab="board"] .run-now > .eyebrow {
    display: none;
  }
  body[data-tab="board"] .run-now strong {
    font-size: 13px;
    margin: 2px 0 4px;
  }
  body[data-tab="board"] .run-now .audio-timeline {
    margin-top: 8px;
  }
  body[data-tab="board"] .run-now .timeline-remaining {
    min-height: 14px;
    line-height: 1.5;
    font-size: 8px;
  }
  body[data-tab="board"] .run-now .audio-timeline progress {
    margin: 5px 0;
    height: 5px;
  }
  body[data-tab="board"] .up-next {
    flex-direction: row;
    align-items: center;
    gap: 7px;
    padding: 8px 0;
  }
  body[data-tab="board"] .up-next span {
    font-size: 7px;
    white-space: nowrap;
  }
  body[data-tab="board"] .up-next strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body[data-tab="board"] .live-steps li {
    padding: 6px 0;
  }
  body[data-tab="board"] .run-panel .timeline-times {
    font-size: 10px;
  }
  body[data-tab="board"] .pad-play {
    padding: 10px;
  }
  body[data-tab="board"] .audio-timeline {
    margin-top: 10px;
  }
  body[data-tab="board"] .pad-key {
    font-size: 11px;
    padding: 2px 6px;
  }
  body[data-tab="board"] .timeline-remaining {
    min-height: 26px;
    font-size: 8px;
  }
}
/* Small windows keep a usable minimum size instead of hiding controls. */
@media (min-width: 901px) and (max-height: 499px) {
  body[data-tab="board"] .main-wrap {
    height: auto;
    min-height: 100dvh;
  }
  body[data-tab="board"] #tab-board {
    min-height: 390px;
  }
}
@media (max-width: 900px) {
  body[data-tab="board"] .page-heading {
    display: none;
  }
  body[data-tab="board"] .tip-card {
    display: none;
  }
}
@media(min-width:901px){body[data-tab="board"] .rec-badge{top:8px;padding:8px 12px;font-size:14px}body[data-tab="board"] .rec-badge time{font-size:11px}}
