:root {
  color-scheme: dark;
  --bg: #090907;
  --surface: #11110f;
  --panel: #151512;
  --panel-2: #1d1c18;
  --line: #2c2a24;
  --line-soft: #222019;
  --text: #fbf7ef;
  --muted: #a7a197;
  --quiet: #746e62;
  --gold: #d4a855;
  --gold-2: #f1c979;
  --red: #ef5350;
  --blue: #64b5f6;
  --green: #8bd17c;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  font-family: Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 42% at 50% -18%, rgba(212, 168, 85, 0.13), transparent 62%),
    linear-gradient(180deg, #19140e 0%, var(--bg) 42%);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 12.4rem minmax(20rem, 1.35fr) minmax(18rem, 0.9fr);
  gap: 0.65rem;
  align-items: stretch;
  min-height: 0;
  padding: 0.52rem 1rem;
  border-bottom: 1px solid rgba(212, 168, 85, 0.18);
  background: rgba(9, 9, 7, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.transport,
.readout,
.loop-editor,
.room-actions,
.section-title,
.octave-row,
.track-name-row,
.track-buttons {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.68rem;
  align-self: center;
}

.brand-logo {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(212, 168, 85, 0.22));
}

.brand p,
.brand h1 {
  margin: 0;
}

.brand p {
  color: var(--muted);
  font-size: 0.75rem;
}

.brand h1 {
  font-size: 1.02rem;
  letter-spacing: 0;
}

.transport,
.edit-tools,
.readout {
  gap: 0.56rem;
}

.readout {
  justify-content: flex-end;
}

.top-seed,
.top-capture {
  min-width: 18rem;
  padding: 0.42rem 0.52rem;
  border: 1px solid rgba(212, 168, 85, 0.1);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.016);
}

.top-seed {
  min-width: 0;
}

.top-capture {
  min-width: 0;
}

.compact-title {
  margin-bottom: 0.32rem;
}

.top-seed-grid,
.capture-grid {
  display: grid;
  gap: 0.42rem;
}

.top-seed-grid {
  grid-template-columns: 1fr 1fr 1.4fr;
}

.capture-grid {
  grid-template-columns: minmax(9rem, 1fr) 8.4rem 5.2rem;
}

.top-seed-grid input,
.capture-grid select,
.capture-grid input {
  width: 100%;
}

.topbar input,
.topbar select {
  padding: 0.28rem 0.42rem;
  border-radius: 0.45rem;
  font-size: 0.86rem;
}

.topbar label span {
  margin-bottom: 0.14rem;
  font-size: 0.66rem;
}

.top-capture .compact-status {
  overflow: hidden;
  min-height: 0;
  margin: 0.34rem 0 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capture-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.8rem;
  gap: 0.55rem;
  align-items: end;
}

.capture-meter {
  margin: 0.42rem 0 0;
}

.icon-button,
.pill-button,
.small-button,
.mini-button,
.wide-button {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #191914, #11110f);
  color: var(--text);
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
}

.icon-button.compact {
  width: 2.45rem;
  height: 2.45rem;
  font-weight: 800;
}

.pill-button,
.small-button,
.mini-button,
.wide-button {
  min-height: 2.3rem;
  border-radius: 999px;
  padding: 0 0.85rem;
}

.mini-button {
  min-height: 2.35rem;
  padding: 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.wide-button {
  width: 100%;
}

.icon-button:hover,
.pill-button:hover,
.small-button:hover,
.mini-button:hover,
.wide-button:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 168, 85, 0.55);
}

.icon-button.primary,
.icon-button.active,
.mini-button[aria-pressed="true"],
.pill-button[aria-pressed="true"],
.track-buttons .on {
  background: rgba(212, 168, 85, 0.16);
  border-color: var(--gold);
  color: var(--gold-2);
}

.icon-button.record.active,
.icon-button.record:hover {
  background: rgba(239, 83, 80, 0.18);
  border-color: var(--red);
  color: #ffd2d1;
}

label span,
.field-row span,
.input-grid span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
}

input,
select,
.grid-label {
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #10100e;
  color: var(--text);
  padding: 0.48rem 0.55rem;
}

input[type="number"] {
  width: 4.35rem;
}

.grid-label {
  display: block;
  min-width: 5.2rem;
}

.check-label input {
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
}

.position-display {
  flex: 0 0 auto;
  min-width: 8.7rem;
  color: var(--gold-2);
  font-size: 1.12rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21.5rem;
  gap: 1rem;
  padding: 1rem;
}

.workspace.room-panel-collapsed {
  grid-template-columns: minmax(0, 1fr) 0;
  gap: 0;
}

.workspace.room-panel-collapsed .side {
  width: 0;
  border: 0;
  overflow: hidden;
}

.room,
.side {
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(17, 17, 15, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.side {
  display: grid;
  gap: 0;
}

.room-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.room-head p {
  margin: 0 0 0.18rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.room-head strong {
  font-size: 1rem;
}

.loop-editor {
  gap: 0.65rem;
}

.side-toggle {
  margin-left: auto;
}

.transport-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  align-items: center;
  padding: 0.52rem 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 23, 19, 0.92), rgba(13, 13, 11, 0.96));
}

.transport-strip .transport {
  flex: 0 0 auto;
}

.metro-control {
  position: relative;
  display: inline-flex;
}

.metro-volume-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.55rem);
  left: 50%;
  width: 10rem;
  padding: 0.65rem;
  border: 1px solid rgba(212, 168, 85, 0.34);
  border-radius: 0.55rem;
  background: rgba(17, 17, 15, 0.98);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.metro-volume-panel[hidden] {
  display: none;
}

.metro-volume-panel input {
  width: 100%;
  padding: 0;
}

.transport-strip .edit-tools {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  padding-left: 0.65rem;
  border-left: 1px solid var(--line);
}

.edit-tools .muted {
  min-width: 8.2rem;
  white-space: nowrap;
}

.transport-strip .readout {
  flex: 1 1 22rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.transport-strip .readout label {
  min-width: 4.8rem;
}

.transport-strip .readout label:has(#gridSelect) {
  display: grid;
  grid-template-columns: minmax(4.7rem, 1fr) auto;
  gap: 0 0.35rem;
  min-width: 11.4rem;
  align-items: end;
}

.transport-strip .readout label:has(#gridSelect) span {
  grid-column: 1 / -1;
}

.transport-strip label span {
  margin-bottom: 0.12rem;
  font-size: 0.66rem;
}

.transport-strip input,
.transport-strip select,
.transport-strip .grid-label {
  padding: 0.34rem 0.46rem;
}

.notice {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(212, 168, 85, 0.3);
  background: rgba(212, 168, 85, 0.1);
  color: var(--gold-2);
}

.notice[hidden] {
  display: none;
}

.timeline-frame {
  display: grid;
  grid-template-columns: 15.3rem minmax(0, 1fr);
  min-height: 40rem;
  overflow: hidden;
}

.track-column {
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.16);
}

.track-toolbar {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 0.7rem;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 13, 11, 0.96);
}

.track-toolbar .small-button {
  width: 100%;
  min-height: 1.95rem;
}

.arranger-label {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 0.75rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.track-card {
  min-height: 108px;
  padding: 0.7rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.012);
  overflow: hidden;
}

.track-card.armed {
  background: rgba(212, 168, 85, 0.07);
}

.track-card.selected-track {
  box-shadow: inset 3px 0 0 var(--gold);
}

.track-name-row {
  gap: 0.45rem;
}

.track-color {
  flex: 0 0 auto;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
}

.track-name-row input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.2rem 0;
  font-weight: 700;
}

.track-meta {
  margin: 0.15rem 0 0.45rem 1.15rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.track-buttons {
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.track-buttons button {
  flex: 1 1 auto;
  min-height: 1.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #11110f;
  color: var(--text);
  font-size: 0.74rem;
  padding: 0 0.55rem;
}

.range-row {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.45rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.74rem;
}

.range-row input {
  width: 100%;
  padding: 0;
}

.field-row,
.input-grid {
  margin-top: 0.48rem;
}

.field-row select {
  width: 100%;
}

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

.input-grid select {
  width: 100%;
}

.track-input-panel {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line-soft);
}

.track-instrument-head {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.track-instrument-head select {
  min-width: 6.5rem;
}

.compact-octave {
  gap: 0.45rem;
  margin: 0;
}

.compact-octave .small-button {
  min-height: 1.85rem;
  padding: 0 0.62rem;
}

.timeline-viewport {
  position: relative;
  overflow: auto;
  min-height: 40rem;
  contain: layout paint;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.026) 1px, transparent 1px) 0 38px / var(--beat-width, 48px) 100%,
    linear-gradient(90deg, rgba(212,168,85,0.09) 1px, transparent 1px) 0 38px / var(--bar-width, 192px) 100%,
    #0d0d0b;
}

.timeline-viewport.drag-ready {
  outline: 2px solid rgba(241, 201, 121, 0.75);
  outline-offset: -2px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.026) 1px, transparent 1px) 0 38px / var(--beat-width, 48px) 100%,
    linear-gradient(90deg, rgba(212,168,85,0.16) 1px, transparent 1px) 0 38px / var(--bar-width, 192px) 100%,
    rgba(212, 168, 85, 0.065);
}

.ruler {
  position: sticky;
  top: 0;
  z-index: 8;
  height: 38px;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 13, 11, 0.96);
}

.arranger-lane {
  position: relative;
  height: 34px;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.026) 1px, transparent 1px) 0 0 / var(--beat-width, 48px) 100%,
    rgba(255, 255, 255, 0.012);
}

.arranger-section {
  position: absolute;
  top: 5px;
  height: 23px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--section-color) 62%, #fff 10%);
  border-radius: 0.42rem;
  background: color-mix(in srgb, var(--section-color) 24%, #11110f 76%);
  color: var(--text);
  text-align: left;
  cursor: grab;
}

.arranger-section:active {
  cursor: grabbing;
}

.arranger-section.selected {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}

.arranger-section strong {
  display: block;
  padding: 0 0.7rem;
  overflow: hidden;
  font-size: 0.72rem;
  line-height: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arranger-name-input {
  position: absolute;
  inset: 1px 0.55rem;
  width: calc(100% - 1.1rem);
  padding: 0 0.2rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
}

.arranger-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.55rem;
  align-items: end;
}

.arranger-fields input {
  width: 100%;
}

.arranger-trim {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0.48rem;
  cursor: ew-resize;
}

.arranger-trim.left {
  left: 0;
}

.arranger-trim.right {
  right: 0;
}

.bar-label {
  position: absolute;
  top: 0.6rem;
  color: var(--quiet);
  font-size: 0.72rem;
  transform: translateX(0.45rem);
}

.loop-band {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  background: rgba(212, 168, 85, 0.09);
}

.loop-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0.75rem;
  cursor: ew-resize;
}

.loop-handle.left {
  left: -0.38rem;
}

.loop-handle.right {
  right: -0.38rem;
}

.loop-handle::after {
  content: "";
  position: absolute;
  top: 0.55rem;
  bottom: 0.55rem;
  left: 50%;
  width: 3px;
  border-radius: 999px;
  background: var(--gold-2);
  box-shadow: 0 0 12px rgba(241, 201, 121, 0.45);
  transform: translateX(-50%);
}

.timeline {
  position: relative;
  min-height: calc(100% - 72px);
}

.lane {
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--lane-color, #d4a855) 10%, transparent) 0 4px, transparent 4px),
    rgba(255, 255, 255, 0.006);
}

.lane.armed {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--lane-color, #d4a855) 30%, transparent) 0 4px, transparent 4px),
    rgba(212, 168, 85, 0.04);
}

.playhead {
  position: absolute;
  z-index: 12;
  top: 0;
  left: 0;
  width: 2px;
  pointer-events: none;
  background: var(--gold-2);
  box-shadow: 0 0 18px rgba(241, 201, 121, 0.36);
}

.clip,
.recording-clip {
  position: absolute;
  top: 1rem;
  height: 76px;
  border: 1px solid color-mix(in srgb, var(--clip-color) 70%, #fff 10%);
  border-radius: 0.48rem;
  background: color-mix(in srgb, var(--clip-color) 18%, #11110f 82%);
  overflow: hidden;
  user-select: none;
}

.clip {
  cursor: grab;
}

.clip:active {
  cursor: grabbing;
}

.clip.selected {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}

.clip.pending {
  opacity: 0.72;
}

.clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.clip strong {
  position: absolute;
  left: 0.55rem;
  bottom: 0.38rem;
  max-width: calc(100% - 1rem);
  color: var(--text);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.wave-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
  font-size: 0.75rem;
}

.trim-handle {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 0.55rem;
  cursor: ew-resize;
}

.trim-handle.left {
  left: 0;
}

.trim-handle.right {
  right: 0;
}

.recording-clip {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0 0.65rem;
  border-color: var(--red);
  background: rgba(239, 83, 80, 0.14);
  color: #ffd2d1;
}

.recording-clip span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(239, 83, 80, 0.55);
}

.selection-box {
  position: absolute;
  z-index: 30;
  border: 1px solid var(--gold);
  background: rgba(212, 168, 85, 0.12);
  pointer-events: none;
}

.selection-box[hidden] {
  display: none;
}

.tool-section {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.seed-section {
  background: rgba(212, 168, 85, 0.045);
}

.section-title {
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}

.section-title > span:first-child {
  font-weight: 800;
}

.muted,
.input-status,
.activity-empty {
  color: var(--muted);
  font-size: 0.78rem;
}

.stack-field {
  display: block;
  margin-top: 0.7rem;
}

.stack-field input,
.stack-field textarea,
.stack-field select {
  width: 100%;
  resize: vertical;
}

.compact-field {
  margin-bottom: 0.7rem;
}

.input-status {
  min-height: 2rem;
  margin-bottom: 0.7rem;
}

.offset-row {
  display: grid;
  grid-template-columns: 1fr 4.4rem auto;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.offset-row span {
  margin: 0;
}

.offset-row input {
  width: 100%;
}

.meter {
  height: 0.55rem;
  overflow: hidden;
  margin-bottom: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0b0b09;
}

.meter span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
  transition: width 0.08s linear;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.instrument-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.006));
}

.octave-row {
  justify-content: space-between;
  margin-bottom: 0.8rem;
  color: var(--muted);
}

.piano {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.4rem;
}

.piano button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.45rem;
  min-height: 3.4rem;
  color: var(--text);
  font-weight: 700;
}

.piano .white {
  background: linear-gradient(180deg, #fff7e7, #d9cbaa);
  color: #15120b;
  font-size: 0.72rem;
}

.piano .black {
  background: linear-gradient(180deg, #222, #070707);
  font-size: 0.66rem;
}

.drum-pads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.drum-pads button {
  min-height: 4.5rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background:
    linear-gradient(160deg, rgba(212, 168, 85, 0.16), rgba(255, 255, 255, 0.02)),
    #11110f;
  color: var(--text);
}

.drum-pads strong,
.drum-pads span {
  display: block;
}

.drum-pads span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.room-actions {
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.active-worker-panel,
.stream-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(212, 168, 85, 0.22);
  border-radius: 0.55rem;
  background: rgba(212, 168, 85, 0.055);
}

.stream-panel {
  border-color: rgba(100, 181, 246, 0.24);
  background: rgba(100, 181, 246, 0.052);
}

.active-worker-panel span,
.stream-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.active-worker-panel strong,
.stream-panel strong {
  display: block;
  margin-top: 0.16rem;
  font-size: 0.88rem;
}

.presence-list,
.version-list {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.presence-item {
  display: grid;
  grid-template-columns: 0.7rem 1fr;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.02);
}

.presence-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  box-shadow: 0 0 14px currentColor;
}

.presence-item.offline {
  opacity: 0.55;
}

.presence-item.active-worker {
  border-color: rgba(212, 168, 85, 0.44);
  background: rgba(212, 168, 85, 0.075);
}

.presence-item strong,
.presence-item p {
  margin: 0;
}

.presence-item strong {
  font-size: 0.82rem;
}

.presence-item p {
  color: var(--muted);
  font-size: 0.72rem;
}

.version-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  min-height: 2.4rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.55rem;
  background: #10100e;
  color: var(--text);
  padding: 0 0.65rem;
  text-align: left;
}

.version-item span,
.version-item small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-item small {
  font-size: 0.68rem;
}

.activity-feed {
  display: grid;
  gap: 0.5rem;
}

.activity-item {
  display: grid;
  grid-template-columns: 0.55rem 1fr;
  gap: 0.5rem;
  align-items: center;
}

.activity-item span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
}

.activity-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 1100px) {
  .topbar,
  .workspace {
    grid-template-columns: 1fr;
  }

  .top-seed-grid,
  .capture-grid {
    grid-template-columns: 1fr;
  }

  .transport,
  .readout {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .workspace {
    padding: 0.75rem;
  }
}

@media (max-width: 760px) {
  .timeline-frame {
    grid-template-columns: 11.5rem minmax(0, 1fr);
  }

  .track-card {
    padding: 0.55rem;
  }

  .room-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
