.amwfs-root {
  --amwfs-playhead-progress: 0;
  --amwfs-bg: #070a0f;
  --amwfs-ink: #07100f;
  --amwfs-panel: #10161d;
  --amwfs-panel-2: #161d26;
  --amwfs-panel-3: #222b36;
  --amwfs-line: rgba(255, 255, 255, 0.1);
  --amwfs-line-2: rgba(255, 255, 255, 0.18);
  --amwfs-text: #f7f4ef;
  --amwfs-muted: #9ca8b4;
  --amwfs-teal: #58ddcc;
  --amwfs-yellow: #f5c84c;
  --amwfs-pink: #ff5a76;
  --amwfs-green: #79dc89;
  --amwfs-blue: #76a7ff;
  --amwfs-orange: #ff9a48;
  --amwfs-violet: #b08cff;
  position: fixed;
  inset: 0;
  z-index: 2147482300;
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr);
  color: var(--amwfs-text);
  background:
    linear-gradient(90deg, rgba(88, 221, 204, 0.08) 0, transparent 21%),
    linear-gradient(180deg, #0b0d13 0, #050607 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

.amwfs-root[hidden] {
  display: none;
}

.amwfs-root::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 3;
  height: 3px;
  background: linear-gradient(90deg, var(--amwfs-teal), var(--amwfs-yellow), var(--amwfs-pink), var(--amwfs-blue));
  pointer-events: none;
}

body.amwfs-open {
  overflow: hidden;
}

.amwfs-root *,
.amwfs-root *::before,
.amwfs-root *::after,
.amwfs-open-sidebar {
  box-sizing: border-box;
}

.amwfs-root button,
.amwfs-root input,
.amwfs-root textarea {
  font: inherit;
}

.amwfs-root button,
.amwfs-open-sidebar {
  cursor: pointer;
}

.amwfs-topbar {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--amwfs-line);
  background: rgba(7, 8, 9, 0.94);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.amwfs-brand,
.amwfs-command-bar,
.amwfs-status-actions,
.amwfs-row,
.amwfs-transport {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.amwfs-brand {
  gap: 10px;
  font-weight: 900;
}

.amwfs-brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.amwfs-brand span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.amwfs-command-bar {
  justify-content: center;
  flex-wrap: wrap;
}

.amwfs-status-actions {
  justify-content: flex-end;
}

.amwfs-tab,
.amwfs-primary,
.amwfs-secondary,
.amwfs-record,
.amwfs-seek,
.amwfs-back,
.amwfs-open-sidebar {
  min-height: 34px;
  border: 1px solid var(--amwfs-line-2);
  border-radius: 8px;
  color: var(--amwfs-text);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 850;
  white-space: nowrap;
}

.amwfs-tab {
  padding: 0 11px;
  font-size: 12px;
}

.amwfs-tab.is-active,
.amwfs-primary,
.amwfs-open-sidebar {
  color: var(--amwfs-ink);
  border-color: var(--amwfs-teal);
  background: var(--amwfs-teal);
}

.amwfs-record {
  color: #fff;
  border-color: var(--amwfs-pink);
  background: var(--amwfs-pink);
}

.amwfs-secondary,
.amwfs-back,
.amwfs-seek {
  padding: 0 12px;
}

.amwfs-back {
  color: #ffe7a5;
  border-color: rgba(245, 200, 76, 0.68);
}

.amwfs-screen {
  min-height: 0;
  display: grid;
  grid-template-columns: 306px minmax(560px, 1fr) 424px;
  gap: 1px;
  background: var(--amwfs-line);
}

.amwfs-panel,
.amwfs-stage,
.amwfs-side {
  min-width: 0;
  min-height: 0;
  background: var(--amwfs-panel);
}

.amwfs-panel {
  overflow: auto;
  padding: 14px;
}

.amwfs-stage {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    linear-gradient(90deg, rgba(88, 221, 204, 0.04), transparent 36%),
    #0b1015;
}

.amwfs-panel h1,
.amwfs-stage h2,
.amwfs-side h2,
.amwfs-card h3,
.amwfs-panel p,
.amwfs-stage p,
.amwfs-side p {
  margin: 0;
  letter-spacing: 0;
}

.amwfs-panel-head,
.amwfs-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.amwfs-panel-head h1 {
  font-size: 27px;
  line-height: 1.05;
}

.amwfs-panel-head p,
.amwfs-field span,
.amwfs-status {
  color: var(--amwfs-muted);
  font-weight: 760;
}

.amwfs-panel-head p {
  margin-top: 5px;
  font-size: 13px;
}

.amwfs-field {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
}

.amwfs-field span {
  font-size: 12px;
}

.amwfs-field input,
.amwfs-field textarea,
.amwfs-lyrics-editor {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--amwfs-line-2);
  border-radius: 8px;
  color: var(--amwfs-text);
  background: #080c10;
  outline: 0;
}

.amwfs-field input {
  height: 39px;
  padding: 0 11px;
}

.amwfs-field textarea {
  min-height: 132px;
  padding: 11px;
  line-height: 1.4;
  resize: vertical;
}

.amwfs-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.amwfs-mode {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px solid var(--amwfs-line);
  border-radius: 8px;
  padding: 9px;
  color: var(--amwfs-text);
  background: var(--amwfs-panel-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

label.amwfs-mode {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.amwfs-mode strong {
  display: block;
  font-size: 13px;
}

.amwfs-mode small {
  display: block;
  margin-top: 2px;
  color: var(--amwfs-muted);
  font-size: 11px;
  font-weight: 760;
}

.amwfs-mode.is-active {
  color: var(--amwfs-ink);
  border-color: var(--amwfs-yellow);
  background: var(--amwfs-yellow);
}

.amwfs-mode.is-active small {
  color: rgba(7, 16, 15, 0.74);
}

.amwfs-composer-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.amwfs-composer-actions .amwfs-primary {
  grid-column: 1 / -1;
}

.amwfs-status {
  margin: 0;
  min-height: 18px;
  font-size: 13px;
}

.amwfs-stage-head {
  padding: 16px;
  border-bottom: 1px solid var(--amwfs-line);
  background:
    linear-gradient(90deg, rgba(88, 221, 204, 0.16), transparent 30%),
    linear-gradient(120deg, transparent 0 52%, rgba(255, 90, 118, 0.13) 52% 70%, transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 10px),
    #111820;
}

.amwfs-stage-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.amwfs-stage-title h2 {
  font-size: 26px;
}

.amwfs-stage-title p {
  margin-top: 5px;
  color: var(--amwfs-muted);
  font-size: 13px;
  font-weight: 760;
}

.amwfs-now-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 11px;
  border: 1px solid var(--amwfs-line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(245, 200, 76, 0.08), transparent 45%),
    #0a0f14;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.amwfs-now-strip strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.amwfs-now-strip small {
  color: var(--amwfs-muted);
  font-weight: 760;
}

.amwfs-mini-wave,
.amwfs-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
}

.amwfs-mini-wave {
  height: 31px;
  padding: 0 7px;
  border: 1px solid rgba(88, 221, 204, 0.24);
  border-radius: 8px;
  color: var(--amwfs-teal);
  background: rgba(88, 221, 204, 0.06);
}

.amwfs-mini-wave span,
.amwfs-wave span {
  flex: 1 0 3px;
  height: var(--amwfs-wave-height);
  border-radius: 2px;
  background: currentColor;
}

.amwfs-track-board {
  min-height: 0;
  overflow: auto;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.038) 1px, transparent 1px) 0 0 / 74px 100%,
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 100% 68px,
    #090d12;
}

.amwfs-timeline-panel {
  position: relative;
  min-width: 0;
  border: 1px solid var(--amwfs-line);
  border-radius: 8px;
  overflow: hidden;
  background: #080c11;
  box-shadow:
    8px 8px 0 rgba(88, 221, 204, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.amwfs-timeline-ruler {
  display: grid;
  grid-template-columns: 114px minmax(0, 1fr) 106px;
  min-height: 34px;
  border-bottom: 1px solid var(--amwfs-line);
  color: var(--amwfs-muted);
  background: #0b1117;
  font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.amwfs-timeline-ruler > span {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  white-space: nowrap;
}

.amwfs-timeline-ruler > span:first-child,
.amwfs-timeline-ruler > span:last-child {
  border-left: 0;
}

.amwfs-ruler-ticks {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.amwfs-ruler-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--amwfs-tick-left);
  width: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.095);
}

.amwfs-ruler-tick span {
  position: absolute;
  top: 50%;
  left: 0;
  min-width: 46px;
  color: var(--amwfs-muted);
  text-align: center;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.amwfs-ruler-tick.is-first span {
  left: 5px;
  text-align: left;
  transform: translateY(-50%);
}

.amwfs-ruler-tick.is-last span {
  left: -5px;
  text-align: right;
  transform: translate(-100%, -50%);
}

.amwfs-ruler-scrub {
  display: grid;
  grid-template-columns: 114px minmax(0, 1fr) 106px;
  align-items: center;
  min-height: 35px;
  border-bottom: 1px solid var(--amwfs-line);
  background:
    linear-gradient(90deg, rgba(88, 221, 204, 0.08), transparent 42%),
    #091018;
}

.amwfs-ruler-scrub > span,
.amwfs-ruler-scrub output {
  color: var(--amwfs-muted);
  font: 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.amwfs-ruler-scrub input[type="range"] {
  width: 100%;
  min-width: 0;
  margin: 0;
  accent-color: var(--amwfs-teal);
}

.amwfs-playhead {
  position: absolute;
  top: 69px;
  bottom: 0;
  left: calc(114px + ((100% - 220px) * var(--amwfs-playhead-progress)));
  z-index: 4;
  width: 2px;
  background: var(--amwfs-teal);
  box-shadow: 0 0 16px rgba(88, 221, 204, 0.45);
  pointer-events: none;
  transition: left 70ms linear;
}

.amwfs-playhead::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid #080c10;
  border-radius: 50%;
  background: var(--amwfs-teal);
  transform: translateX(-50%);
}

.amwfs-playhead span {
  position: absolute;
  top: 8px;
  left: 8px;
  border: 1px solid rgba(88, 221, 204, 0.38);
  border-radius: 8px;
  padding: 4px 6px;
  color: var(--amwfs-ink);
  background: var(--amwfs-teal);
  font: 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
  white-space: nowrap;
}

.amwfs-timeline-track {
  --amwfs-track-color: var(--amwfs-yellow);
  display: grid;
  grid-template-columns: 114px minmax(0, 1fr) 106px;
  min-height: 134px;
  border-bottom: 1px solid var(--amwfs-line);
  background: color-mix(in srgb, var(--amwfs-track-color) 5%, #0a0f15);
}

.amwfs-timeline-track:last-child {
  border-bottom: 0;
}

.amwfs-timeline-track.is-yellow {
  --amwfs-track-color: var(--amwfs-yellow);
}

.amwfs-timeline-track.is-pink {
  --amwfs-track-color: var(--amwfs-pink);
}

.amwfs-timeline-track.is-teal {
  --amwfs-track-color: var(--amwfs-teal);
}

.amwfs-timeline-track.is-blue {
  --amwfs-track-color: var(--amwfs-blue);
}

.amwfs-timeline-track.is-orange {
  --amwfs-track-color: var(--amwfs-orange);
}

.amwfs-timeline-track.is-violet {
  --amwfs-track-color: var(--amwfs-violet);
}

.amwfs-timeline-label {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 14px 10px;
  border-right: 1px solid var(--amwfs-line);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--amwfs-track-color) 18%, #111821), #111821 70%);
}

.amwfs-timeline-label strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 17px;
}

.amwfs-timeline-label small {
  color: var(--amwfs-muted);
  font-size: 12px;
  font-weight: 820;
}

.amwfs-target-pill {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 9px;
  color: var(--amwfs-ink);
  background: var(--amwfs-track-color);
  font-size: 11px;
  font-weight: 900;
}

.amwfs-timeline-lane {
  position: relative;
  min-width: 0;
  min-height: 134px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / var(--amwfs-grid-step, 20%) 100%,
    linear-gradient(180deg, transparent 0 49%, rgba(255, 255, 255, 0.055) 49% 50%, transparent 50%),
    color-mix(in srgb, var(--amwfs-track-color) 4%, #080c11);
}

.amwfs-timeline-lane.is-empty::before {
  content: "reference lane";
  position: absolute;
  left: 14px;
  top: 16px;
  color: rgba(247, 244, 239, 0.34);
  font-size: 12px;
  font-weight: 850;
}

.amwfs-timeline-clip {
  position: absolute;
  left: var(--amwfs-clip-left);
  top: var(--amwfs-clip-top);
  width: var(--amwfs-clip-width);
  min-width: 0;
  min-height: 64px;
  box-sizing: border-box;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid color-mix(in srgb, var(--amwfs-track-color) 70%, transparent);
  border-radius: 8px;
  padding: 8px 10px;
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.06) 18px 20px),
    color-mix(in srgb, var(--amwfs-track-color) 18%, #111821);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.amwfs-timeline-clip.is-short {
  padding-inline: 5px;
}

.amwfs-timeline-clip.is-short small,
.amwfs-timeline-clip.is-short .amwfs-wave {
  display: none;
}

.amwfs-timeline-clip strong,
.amwfs-timeline-clip small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.amwfs-timeline-clip strong {
  font-size: 13px;
}

.amwfs-timeline-clip small {
  color: rgba(247, 244, 239, 0.72);
  font-size: 11px;
  font-weight: 760;
}

.amwfs-wave {
  height: 23px;
  color: var(--amwfs-track-color);
}

.amwfs-timeline-actions {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 10px;
  border-left: 1px solid var(--amwfs-line);
  background: rgba(17, 24, 33, 0.72);
}

.amwfs-timeline-actions .amwfs-secondary,
.amwfs-timeline-actions .amwfs-record {
  width: 100%;
  min-height: 33px;
}

.amwfs-transport {
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--amwfs-line);
  background: #0d1319;
}

.amwfs-timecode {
  color: var(--amwfs-teal);
  font: 27px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
}

.amwfs-play-toggle[aria-pressed="true"] {
  border-color: var(--amwfs-yellow);
  background: var(--amwfs-yellow);
}

.amwfs-root.is-playing .amwfs-playhead {
  box-shadow: 0 0 22px rgba(88, 221, 204, 0.74);
}

.amwfs-root.is-playing .amwfs-wave span,
.amwfs-root.is-playing .amwfs-mini-wave span {
  animation: amwfs-wave-breathe 740ms ease-in-out infinite;
}

.amwfs-root.is-playing .amwfs-meter span {
  animation: amwfs-meter-bounce 620ms ease-in-out infinite;
}

.amwfs-root.is-playing .amwfs-wave span:nth-child(2n),
.amwfs-root.is-playing .amwfs-mini-wave span:nth-child(2n),
.amwfs-root.is-playing .amwfs-meter span:nth-child(2n) {
  animation-delay: -180ms;
}

.amwfs-root.is-playing .amwfs-wave span:nth-child(3n),
.amwfs-root.is-playing .amwfs-mini-wave span:nth-child(3n),
.amwfs-root.is-playing .amwfs-meter span:nth-child(3n) {
  animation-delay: -320ms;
}

@keyframes amwfs-wave-breathe {
  0%,
  100% {
    transform: scaleY(0.72);
    opacity: 0.72;
  }

  50% {
    transform: scaleY(1.14);
    opacity: 1;
  }
}

@keyframes amwfs-meter-bounce {
  0%,
  100% {
    transform: scaleY(0.58);
    opacity: 0.64;
  }

  50% {
    transform: scaleY(1.05);
    opacity: 1;
  }
}

.amwfs-side {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(88, 221, 204, 0.09), transparent 34%),
    var(--amwfs-panel);
}

.amwfs-lyrics-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--amwfs-line);
}

.amwfs-lyrics-head h2 {
  font-size: 21px;
}

.amwfs-lyrics-head p {
  margin-top: 4px;
  color: var(--amwfs-muted);
  font-size: 12px;
  font-weight: 760;
}

.amwfs-lyrics-stack {
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.amwfs-lyrics-pad {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
  border: 1px solid var(--amwfs-line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(245, 200, 76, 0.06), transparent 30%),
    #0a0f14;
  box-shadow: 8px 8px 0 rgba(255, 90, 118, 0.08);
}

.amwfs-lyrics-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px;
  border-bottom: 1px solid var(--amwfs-line);
}

.amwfs-lyric-chip {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  color: var(--amwfs-ink);
  background: var(--amwfs-teal);
  font-size: 11px;
  font-weight: 900;
}

.amwfs-lyric-chip.is-alt {
  background: var(--amwfs-yellow);
}

.amwfs-lyrics-editor {
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 22px 100%,
    #080c10;
  color: #e5ebe8;
  font-size: 14px;
  line-height: 1.5;
  resize: none;
}

.amwfs-lyrics-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 45px;
  padding: 8px 10px;
  border-top: 1px solid var(--amwfs-line);
  color: var(--amwfs-muted);
  font-size: 11px;
  font-weight: 850;
}

.amwfs-lyric-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.amwfs-lyric-quick {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--amwfs-line);
  border-radius: 8px;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(176, 140, 255, 0.13), transparent 40%),
    var(--amwfs-panel-2);
}

.amwfs-lyric-quick strong {
  font-size: 13px;
}

.amwfs-lyric-quick small {
  color: var(--amwfs-muted);
  font-size: 12px;
  font-weight: 760;
}

.amwfs-card {
  border: 1px solid var(--amwfs-line);
  border-radius: 8px;
  background: var(--amwfs-panel-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.amwfs-card header {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--amwfs-line);
}

.amwfs-card h3 {
  font-size: 14px;
}

.amwfs-card header span {
  color: var(--amwfs-muted);
  font-size: 11px;
  font-weight: 850;
}

.amwfs-meter-card {
  margin: 0 14px 14px;
}

.amwfs-meter {
  height: 80px;
  display: flex;
  align-items: end;
  gap: 6px;
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(121, 220, 137, 0.08), transparent),
    #0a0f14;
}

.amwfs-meter span {
  flex: 1;
  height: var(--amwfs-meter-height);
  min-height: 8px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--amwfs-green), var(--amwfs-teal));
  box-shadow: 0 0 18px rgba(88, 221, 204, 0.18);
}

.amwfs-open-sidebar {
  flex: 0 0 auto;
  min-height: 32px;
  margin-left: auto;
  color: var(--amwfs-ink);
  font-size: 12px;
}

@media (max-width: 1180px) {
  .amwfs-root {
    height: auto;
    min-height: 100vh;
    overflow: auto;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .amwfs-topbar {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    padding-block: 10px;
  }

  .amwfs-command-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
    order: 2;
  }

  .amwfs-status-actions {
    justify-content: stretch;
    order: 3;
  }

  .amwfs-status-actions .amwfs-secondary,
  .amwfs-status-actions .amwfs-back {
    flex: 1;
  }

  .amwfs-command-bar .amwfs-tab {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .amwfs-screen {
    grid-template-columns: minmax(0, 1fr);
  }

  .amwfs-stage {
    order: 1;
  }

  .amwfs-panel {
    order: 2;
  }

  .amwfs-side {
    order: 3;
    min-height: 640px;
  }
}

@media (max-width: 720px) {
  .amwfs-topbar {
    min-height: 60px;
    padding: 10px;
  }

  .amwfs-command-bar,
  .amwfs-status-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .amwfs-status-actions .amwfs-back {
    grid-column: 1 / -1;
  }

  .amwfs-panel,
  .amwfs-stage-head,
  .amwfs-track-board,
  .amwfs-transport {
    padding: 10px;
  }

  .amwfs-stage-title,
  .amwfs-now-strip,
  .amwfs-transport,
  .amwfs-lyrics-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .amwfs-stage-title h2 {
    font-size: 23px;
  }

  .amwfs-now-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .amwfs-timeline-ruler {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .amwfs-ruler-scrub {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .amwfs-ruler-scrub output {
    display: none;
  }

  .amwfs-playhead {
    left: calc(82px + ((100% - 82px) * var(--amwfs-playhead-progress)));
  }

  .amwfs-timeline-ruler > span:last-child {
    display: none;
  }

  .amwfs-timeline-track {
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 118px;
  }

  .amwfs-timeline-label {
    padding: 12px 8px;
  }

  .amwfs-timeline-label strong {
    font-size: 15px;
  }

  .amwfs-timeline-lane {
    min-height: 118px;
  }

  .amwfs-timeline-clip {
    min-width: 0;
    min-height: 56px;
    padding: 7px 8px;
  }

  .amwfs-timeline-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--amwfs-line);
    border-left: 0;
    padding: 8px;
  }

  .amwfs-mode-grid,
  .amwfs-composer-actions,
  .amwfs-lyric-quick-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .amwfs-composer-actions .amwfs-primary {
    grid-column: auto;
  }

  .amwfs-timecode {
    font-size: 23px;
  }
}
