#float-workspace {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  pointer-events: none;
  contain: layout style;
}

.float-dock-rail {
  position: absolute;
  left: 0;
  top: 48px;
  bottom: 0;
  width: 42px;
  z-index: 15;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 4px 6px;
  background: rgba(1, 4, 9, 0.82);
  border-right: 1px solid #30363d;
  backdrop-filter: blur(8px);
  overflow-y: auto;
  overflow-x: hidden;
}
.float-dock-rail button {
  width: 34px;
  height: 30px;
  flex-shrink: 0;
  border: 1px solid #30363d;
  border-radius: 6px;
  background: #161b22;
  color: #8b949e;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  padding: 0;
}
.float-dock-rail button:hover,
.float-dock-rail button.active {
  border-color: #58a6ff;
  color: #58a6ff;
}
.float-dock-rail .dock-collapse-right {
  color: #8b949e;
  border-color: #484f58;
  font-size: 0.75rem;
}
.float-dock-rail .dock-collapse-right:hover,
.float-dock-rail .dock-collapse-right.active {
  color: #d29922;
  border-color: #d29922;
}
.float-dock-rail .dock-focus { margin-top: auto; color: #3fb950; }

.float-panel.dock-collapsed {
  pointer-events: none !important;
  visibility: hidden;
  opacity: 0;
}
.float-panel.dock-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.float-panel {
  position: absolute;
  pointer-events: auto;
  background: rgba(1, 4, 9, 0.92);
  border: 1px solid #30363d;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  padding: 6px 8px;
  contain: layout style paint;
  will-change: transform;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 0;
}
.float-panel > [id$="-host"] {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.float-hd {
  flex-shrink: 0;
  font: 600 0.55rem Menlo, monospace;
  color: #6e7681;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.float-tr,
.float-bl,
.float-br,
.float-video,
.float-grand,
.float-mpc,
.float-beat,
.float-wave,
.float-strudel {
  left: 0;
  top: 0;
  width: min(300px, 28vw);
  max-width: 300px;
  z-index: 12;
}
.float-tr { width: min(320px, 30vw); max-width: 320px; z-index: 13; }
.float-bl { width: min(300px, 28vw); max-width: 300px; z-index: 13; }
.float-br { width: min(320px, 30vw); max-width: 320px; z-index: 13; }
.float-video { z-index: 12; }
.float-grand { z-index: 12; }
.float-mpc { z-index: 12; }
.float-beat { z-index: 12; }
.float-wave { z-index: 12; }
.float-strudel { width: min(340px, 30vw); max-width: 340px; z-index: 13; }
#float-strudel-host {
  display: flex;
  flex-direction: column;
}

.strudel-pane {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  min-height: 320px;
}
.sp-toolbar,
.sp-presets,
.sp-load-row {
  flex-shrink: 0;
}
.sp-load-row {
  display: flex;
  gap: 4px;
  align-items: center;
}
.sp-url {
  flex: 1;
  min-width: 0;
  min-height: 32px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 7px;
  color: #c9d1d9;
  font: 600 0.62rem Menlo, monospace;
  padding: 6px 8px;
}
.sp-url:focus {
  outline: none;
  border-color: #58a6ff;
  box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.25);
}
.sp-status {
  flex-shrink: 0;
  margin: 0;
  font-size: 0.52rem;
  color: #6e7681;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-editor-wrap {
  flex: 1;
  min-height: 140px;
  display: flex;
  overflow: hidden;
}
.sp-code {
  flex: 1;
  width: 100%;
  min-height: 140px;
  resize: vertical;
  background: #0a0d12;
  border: 1px solid #30363d;
  border-radius: 8px;
  color: #e6edf3;
  font: 600 0.68rem/1.45 Menlo, SFMono-Regular, monospace;
  padding: 8px 10px;
  tab-size: 2;
  -webkit-font-smoothing: antialiased;
}
.sp-code:focus {
  outline: none;
  border-color: #58a6ff;
}
.sp-iframe-wrap {
  flex: 1;
  min-height: 200px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #30363d;
}
.sp-iframe {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: 0;
  background: #0d1117;
}
.ml-strudel-presets { margin-top: -2px; }

.float-chat-route-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 6px;
}
.float-chat-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.float-chat-field > span {
  font-size: 0.46rem;
  color: #6e7681;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
#float-chat-from,
#float-chat-to {
  width: 100%;
  min-width: 0;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 4px;
  color: #c9d1d9;
  font: inherit;
  font-size: 0.62rem;
  padding: 6px 8px;
}
#float-chat-from { color: #8b949e; }
.float-chat-log {
  flex: 1;
  min-height: 140px;
  max-height: min(32vh, 280px);
  overflow: auto;
  font-size: 0.6rem;
  line-height: 1.4;
  margin-bottom: 6px;
  padding: 6px;
  background: #0a0d12;
  border: 1px solid #21262d;
  border-radius: 6px;
}
.float-chat-line {
  padding: 5px 0;
  border-bottom: 1px solid #161b22;
}
.float-chat-line:last-child { border-bottom: none; }
.float-chat-line.local { opacity: 0.92; }
.float-chat-route {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
  font-size: 0.52rem;
}
.float-chat-from {
  font-weight: 600;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.float-chat-arrow { color: #484f58; flex-shrink: 0; }
.float-chat-to {
  color: #58a6ff;
  font-weight: 600;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.float-chat-text {
  color: #c9d1d9;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.58rem;
}
.float-chat-compose {
  display: flex;
  gap: 6px;
  align-items: stretch;
  flex-shrink: 0;
}
#float-chat-in {
  flex: 1;
  min-width: 0;
  min-height: 72px;
  max-height: 120px;
  resize: vertical;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #c9d1d9;
  font: inherit;
  font-size: 0.62rem;
  line-height: 1.4;
  padding: 8px 10px;
}
#float-chat-send {
  min-width: 36px;
  align-self: flex-end;
  border: 1px solid #30363d;
  border-radius: 6px;
  background: #21262d;
  color: #58a6ff;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  padding: 8px 6px;
}
#float-chat-send:hover { border-color: #58a6ff; background: #30363d; }

.float-meta { font-size: 0.52rem; color: #6e7681; margin-top: 3px; }

/* music lab (float panel) */
.music-lab { display: flex; flex-direction: column; gap: 5px; }
.ml-toolbar { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ml-bpm-lbl { font-size: 0.52rem; color: #6e7681; margin-right: 2px; }
.ml-theory {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0;
  border-top: 1px solid #21262d;
  border-bottom: 1px solid #21262d;
}
.ml-theory-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ml-theory-field {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.48rem;
  color: #6e7681;
}
.ml-theory-field span { min-width: 1.4em; }
.ml-theory-field select,
.ml-theory-field input[type="number"] {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 3px;
  color: #c9d1d9;
  font: inherit;
  font-size: 0.5rem;
  padding: 2px 3px;
  max-width: 52px;
}
.ml-theory-swing input[type="range"] { width: 48px; accent-color: #58a6ff; }
.ml-lock, .ml-chip-toggle {
  border: 1px solid #30363d;
  border-radius: 3px;
  background: #161b22;
  color: #6e7681;
  cursor: pointer;
  font: inherit;
  font-size: 0.48rem;
  padding: 2px 5px;
}
.ml-lock.locked, .ml-chip-toggle.active {
  border-color: #58a6ff;
  color: #58a6ff;
  background: #21262d;
}
.ml-theory-presets { flex-wrap: wrap; }
.ml-theory-presets .qb-chip { font-size: 0.45rem; padding: 2px 5px; }
.ml-theory-meta { font-size: 0.45rem; color: #484f58; line-height: 1.3; }
.ml-chart-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0;
  border-bottom: 1px solid #21262d;
}
.ml-chart-presets { flex-wrap: wrap; }
.ml-chart-presets .qb-chip { font-size: 0.43rem; padding: 2px 4px; }
.ml-structure-chart,
.ml-mode-chart {
  width: 100%;
  display: block;
  border-radius: 4px;
  border: 1px solid #21262d;
  background: #0a0d12;
}
.ml-chart-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 18px;
  padding: 3px 4px;
  border: 1px solid #21262d;
  border-radius: 4px;
  background: #0a0d12;
}
.ml-chart-cell {
  font: 0.5rem Menlo, monospace;
  color: #58a6ff;
  padding: 1px 4px;
  border-radius: 3px;
  background: #161b22;
  border: 1px solid #30363d;
}
.ml-chart-ph { font-size: 0.45rem; color: #484f58; }
.ml-btn.ml-link { color: #c9d1d9; }
.ml-btn.ml-send { color: #3fb950; border-color: #238636; }
.ml-waveform {
  width: 100%;
  height: 36px;
  display: block;
  border-radius: 4px;
  border: 1px solid #21262d;
  background: #0a0d12;
}
.ml-staff {
  min-height: 52px;
  border: 1px solid #21262d;
  border-radius: 4px;
  background: #0a0d12;
  overflow: hidden;
}
.ml-staff svg { display: block; margin: 0 auto; }
.ml-staff-ph { font-size: 0.5rem; color: #484f58; padding: 4px 6px; display: block; }
.ml-section-hd {
  font: 600 0.5rem Menlo, monospace;
  color: #484f58;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ml-pads {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}
.ml-pad {
  aspect-ratio: 1;
  border: 1px solid #30363d;
  border-radius: 4px;
  background: linear-gradient(145deg, #21262d, #161b22);
  cursor: pointer;
  font: inherit;
  padding: 2px;
  color: #8b949e;
}
.ml-pad.active { border-color: #f0883e; box-shadow: 0 0 6px #f0883e44; }
.ml-pad:active { filter: brightness(1.15); }
.ml-pad-lbl { font-size: 0.45rem; display: block; line-height: 1.1; }
.ml-steps {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 2px;
}
.ml-step {
  height: 18px;
  border: 1px solid #30363d;
  border-radius: 2px;
  background: #161b22;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.ml-step.on { background: #388bfd; border-color: #58a6ff; }
.ml-step.playhead { outline: 1px solid #f0883e; }
.ml-send-row { display: flex; gap: 4px; }
#ml-send-target {
  flex: 1;
  min-width: 0;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 4px;
  color: #c9d1d9;
  font: inherit;
  font-size: 0.55rem;
  padding: 3px 4px;
}
.ml-piano {
  position: relative;
  height: 56px;
  user-select: none;
  touch-action: none;
}
.ml-piano .ml-white { display: flex; gap: 1px; height: 56px; }
.ml-piano .ml-black {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 34px;
  pointer-events: none;
}
.ml-key {
  border: 1px solid #30363d;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.ml-white-key {
  flex: 1;
  background: linear-gradient(180deg, #e6edf3, #c9d1d9);
  border-radius: 0 0 3px 3px;
  min-width: 8px;
}
.ml-black-key {
  position: absolute;
  width: 11px;
  height: 34px;
  background: #161b22;
  border-radius: 0 0 2px 2px;
  pointer-events: auto;
  z-index: 2;
}
.ml-key.active { filter: brightness(0.85); }
.ml-meta { font-size: 0.5rem; color: #6e7681; }
.ml-strudel-row { display: flex; gap: 4px; }
#ml-strudel {
  flex: 1;
  min-width: 0;
  min-height: 32px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 7px;
  color: #c9d1d9;
  font: 600 0.62rem Menlo, monospace;
  padding: 6px 8px;
}
#ml-strudel:focus {
  outline: none;
  border-color: #58a6ff;
}
/* full music panes */
.mp-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.mp-bpm { font-size: 0.52rem; color: #6e7681; margin-right: 2px; }
.mp-meta { font-size: 0.5rem; color: #6e7681; margin-top: 4px; }
.mp-grand-staff { min-height: 88px; }
.mp-grand-piano {
  position: relative;
  height: 96px;
  user-select: none;
  touch-action: none;
  margin-top: 4px;
}
.mp-grand-piano .mp-white { display: flex; gap: 1px; height: 96px; }
.mp-grand-piano .mp-black {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 58px;
  pointer-events: none;
}
.mp-key {
  border: 1px solid #30363d;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.mp-white-key {
  flex: 1;
  background: linear-gradient(180deg, #e6edf3, #c9d1d9);
  border-radius: 0 0 3px 3px;
  min-width: 6px;
}
.mp-black-key {
  position: absolute;
  width: 58%;
  max-width: 14px;
  min-width: 8px;
  height: 58px;
  background: #161b22;
  border-radius: 0 0 2px 2px;
  pointer-events: auto;
  z-index: 2;
  transform: translateX(-50%);
}
.mp-key.active { filter: brightness(0.85); }
.mp-mpc-pads {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.mp-mpc-pad {
  aspect-ratio: 1;
  border: 1px solid #30363d;
  border-radius: 6px;
  background: linear-gradient(145deg, #21262d, #161b22);
  cursor: pointer;
  font: inherit;
  padding: 6px 4px;
  color: #8b949e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
}
.mp-mpc-pad.active { border-color: #f0883e; box-shadow: 0 0 8px #f0883e44; }
.mp-mpc-pad.hit { filter: brightness(1.25); transform: scale(0.97); }
.mp-pad-lbl { font-size: 0.62rem; font-weight: 600; }
.mp-pad-kind { font-size: 0.42rem; color: #6e7681; text-transform: uppercase; }
.mp-beat-hd {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px;
  font-size: 0.48rem;
  color: #484f58;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.mp-beat-grid { display: flex; flex-direction: column; gap: 2px; }
.mp-beat-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px;
  align-items: center;
}
.mp-beat-row.active .mp-beat-pad-lbl { color: #f0883e; }
.mp-beat-pad-lbl {
  font-size: 0.48rem;
  color: #8b949e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mp-beat-steps {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 2px;
}
.mp-beat-cell {
  height: 20px;
  border: 1px solid #30363d;
  border-radius: 2px;
  background: #161b22;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.mp-beat-cell.on { background: #388bfd; border-color: #58a6ff; }
.mp-beat-cell.playhead { outline: 1px solid #f0883e; }
.mp-beat-send {
  flex: 1;
  min-width: 0;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 4px;
  color: #c9d1d9;
  font: inherit;
  font-size: 0.55rem;
  padding: 3px 4px;
}
.mp-wave-edit,
.mp-wave-live {
  width: 100%;
  display: block;
  border-radius: 4px;
  border: 1px solid #21262d;
  background: #0a0d12;
  touch-action: none;
}
.mp-wave-edit { height: 140px; cursor: crosshair; margin-bottom: 4px; }
.mp-wave-live { height: 48px; }

/* processing wing */
.proc-wing { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.proc-td-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  align-items: stretch;
}
.proc-td-top-wrap {
  background: #0a0d12;
  border: 1px solid #21262d;
  border-radius: 6px;
  padding: 4px;
  min-height: 0;
}
.proc-td-top {
  width: 100%;
  height: 96px;
  display: block;
  border-radius: 4px;
  background: #010409;
}
.proc-td-ctrl {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: flex-start;
}
.proc-td-ctrl .proc-btn.active { border-color: #bc8cff; color: #d2a8ff; }
.proc-td-log {
  font-size: 0.46rem;
  color: #6e7681;
  line-height: 1.3;
  max-height: 48px;
  overflow: auto;
  margin: 0;
}
.proc-chop-strip {
  width: 100%;
  height: 28px;
  display: block;
  border-radius: 4px;
  background: #010409;
  border: 1px solid #21262d;
}
.proc-status {
  font-size: 0.5rem;
  color: #8b949e;
  line-height: 1.35;
  max-height: 36px;
  overflow: auto;
  margin: 0;
  white-space: pre-wrap;
}
.proc-viz-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.proc-viz-box {
  background: #0a0d12;
  border: 1px solid #21262d;
  border-radius: 6px;
  padding: 4px;
  text-align: center;
}
.proc-viz-lbl {
  display: block;
  font-size: 0.48rem;
  color: #6e7681;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.proc-bloch,
.proc-vectorscope {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.proc-eq-hd,
.proc-ch-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.5rem;
  color: #6e7681;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.proc-eq-sliders {
  display: flex;
  gap: 2px;
  justify-content: space-between;
  align-items: flex-end;
  height: 72px;
  padding: 4px 2px;
  background: #0a0d12;
  border: 1px solid #21262d;
  border-radius: 6px;
}
.proc-eq-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
  font-size: 0.42rem;
  color: #6e7681;
}
.proc-eq-band input[type="range"] {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 14px;
  height: 52px;
  margin: 2px 0 0;
  accent-color: #58a6ff;
}
.proc-ch-strips { display: flex; flex-direction: column; gap: 4px; }
.proc-ch {
  background: #0a0d12;
  border: 1px solid #21262d;
  border-radius: 6px;
  padding: 4px 6px;
}
.proc-ch-top {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 3px;
}
.proc-ch-label {
  font-size: 0.55rem;
  font-weight: 600;
  color: #c9d1d9;
  margin-right: auto;
}
.proc-btn {
  border: 1px solid #30363d;
  border-radius: 3px;
  background: #21262d;
  color: #8b949e;
  cursor: pointer;
  font: inherit;
  font-size: 0.48rem;
  padding: 1px 4px;
  line-height: 1.3;
}
.proc-btn:hover,
.proc-btn.active {
  border-color: #58a6ff;
  color: #58a6ff;
}
.proc-btn.proc-solo.active { border-color: #d29922; color: #d29922; }
.proc-btn.proc-send.active { border-color: #3fb950; color: #3fb950; }
.proc-btn.proc-ch-add {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0 6px;
  color: #3fb950;
  border-color: #238636;
}
.proc-btn.proc-osc-toggle.active,
.proc-btn.proc-mic-toggle.active {
  border-color: #3fb950;
  color: #3fb950;
}
.proc-sliders,
.proc-master {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}
.proc-master { grid-template-columns: repeat(5, 1fr); margin-top: 2px; }
.proc-knob {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 0.42rem;
  color: #6e7681;
}
.proc-knob span { text-transform: uppercase; }
.proc-knob input[type="range"] {
  width: 100%;
  height: 12px;
  accent-color: #58a6ff;
}
.proc-pan input { accent-color: #d29922; }
.proc-transport {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.proc-osc-freq { flex: 1; min-width: 60px; accent-color: #58a6ff; }
.proc-osc-hz { font-size: 0.48rem; color: #6e7681; min-width: 42px; }

/* video feed wing */
.vid-wing { display: flex; flex-direction: column; gap: 5px; }
.vid-wing-compact { gap: 3px; font-size: 0.55rem; }
.vid-wing-compact .vid-stage { min-height: 72px; max-height: 96px; }
.vid-wing-compact .vid-el { max-height: 96px; }
.vid-wing-compact .vid-status { font-size: 0.48rem; max-height: 28px; overflow: hidden; }
.vid-wing-compact .vid-scrub { gap: 2px; }
.vid-wing-compact .vid-transport,
.vid-wing-compact .vid-source,
.vid-wing-compact .vid-controls,
.vid-wing-compact .vid-filters,
.vid-wing-compact .vid-out { flex-wrap: wrap; gap: 3px; }
.vid-wing-compact .vid-btn { font-size: 0.55rem; padding: 2px 5px; }
.vid-wing-compact .vid-knob { font-size: 0.48rem; }
.vid-wing-compact .vid-knob input { width: 48px; }
.vid-wing-compact .vid-url { font-size: 0.55rem; min-height: 22px; }
.vid-wing-compact .lvr-player { min-height: 64px; }
.vid-wing-compact .lvr-iframe,
.vid-wing-compact .lvr-vid { height: 72px; }
.vid-vwall-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.5rem;
  color: #6e7681;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.vid-vwall-host { display: flex; flex-direction: column; gap: 4px; }
.vid-live-rail-host { margin-top: 6px; }

.lvr-root {
  display: flex; flex-direction: column; gap: 6px;
  padding: 6px; background: #0d1117; border: 1px solid #21262d; border-radius: 6px;
}
.lvr-hd { display: flex; justify-content: space-between; align-items: center; font-size: 0.55rem; color: #6e7681; text-transform: uppercase; letter-spacing: 0.04em; }
.lvr-paste-row { display: flex; gap: 6px; align-items: stretch; }
.lvr-paste { flex: 1; min-height: 44px; background: #161b22; border: 1px solid #30363d; border-radius: 4px; color: #c9d1d9; font: inherit; font-size: 0.62rem; padding: 6px; resize: vertical; }
.lvr-btn { padding: 4px 8px; border: 1px solid #30363d; border-radius: 4px; background: #21262d; color: #8b949e; cursor: pointer; font: inherit; font-size: 0.62rem; }
.lvr-btn:hover { border-color: #58a6ff; color: #58a6ff; }
.lvr-tabs { display: flex; flex-wrap: wrap; gap: 4px; max-height: 72px; overflow-y: auto; }
.lvr-tab {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px;
  border: 1px solid #30363d; border-radius: 4px; background: #161b22; color: #8b949e; cursor: pointer; font: inherit; font-size: 0.58rem;
}
.lvr-tab.active { border-color: #58a6ff; color: #58a6ff; background: #1c2330; }
.lvr-tab-x { color: #484f58; font-size: 0.75rem; line-height: 1; padding: 0 2px; }
.lvr-tab-x:hover { color: #f85149; }
.lvr-player { min-height: 120px; background: #010409; border: 1px solid #30363d; border-radius: 4px; overflow: hidden; position: relative; }
.lvr-iframe, .lvr-vid { width: 100%; height: 180px; border: 0; display: block; background: #000; }
.lvr-empty { padding: 16px; font-size: 0.62rem; color: #484f58; text-align: center; }
.lvr-tools { display: flex; gap: 6px; }
.vw-cap-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.vw-cap-lbl { font-size: 0.48rem; color: #484f58; text-transform: uppercase; }
.vw-cap-track {
  flex: 1;
  min-width: 48px;
  height: 6px;
  background: #21262d;
  border-radius: 3px;
  overflow: hidden;
}
.vw-cap-fill {
  height: 100%;
  width: 0;
  background: #3fb950;
  border-radius: 3px;
  transition: width 0.2s;
}
.vw-cap-fill[data-level="warn"] { background: #d29922; }
.vw-cap-fill[data-level="lag"] { background: #f85149; }
.vw-cap-total { font-size: 0.45rem; color: #8b949e; }
.vw-cap-risk { font-size: 0.45rem; color: #3fb950; }
.vw-cap-risk[data-level="warn"] { color: #d29922; }
.vw-cap-risk[data-level="lag"] { color: #f85149; }
.vw-user-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.vw-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.42rem;
  padding: 2px 4px;
  border: 1px solid #30363d;
  border-radius: 4px;
  background: #161b22;
  color: #8b949e;
}
.vw-chip-name { color: #c9d1d9; font-weight: 600; }
.vw-chip-res { color: #6e7681; }
.vw-chip-cap { color: #d29922; }
.vw-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  max-height: 160px;
  overflow: auto;
}
.vw-tile {
  position: relative;
  aspect-ratio: 16/10;
  border: 2px solid #58a6ff88;
  border-radius: 4px;
  overflow: hidden;
  background: #010409;
}
.vw-tile.local { border-color: #3fb95088; }
.vw-tile-vid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.vw-tile-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #484f58;
}
.vw-tile-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 4px;
  padding: 2px 4px;
  background: rgba(1, 4, 9, 0.82);
  font-size: 0.4rem;
  color: #8b949e;
}
.vw-tile-name { color: #c9d1d9; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-tile-cap { color: #d29922; }
.vid-btn.vid-vwall-live.active { border-color: #3fb950; color: #3fb950; }
.vid-status {
  font-size: 0.48rem;
  color: #8b949e;
  margin: 0;
  line-height: 1.3;
  max-height: 28px;
  overflow: auto;
  white-space: pre-wrap;
}
.vid-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: #010409;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #21262d;
}
.vid-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  transform-origin: center center;
}
.vid-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6e7681;
  font-size: 1.2rem;
}
.vid-meta {
  position: absolute;
  right: 4px;
  bottom: 4px;
  font-size: 0.42rem;
  color: #8b949e;
  background: rgba(1, 4, 9, 0.75);
  padding: 2px 4px;
  border-radius: 3px;
  pointer-events: none;
}
.vid-scrub { display: flex; flex-direction: column; gap: 2px; }
.vid-seek { width: 100%; accent-color: #58a6ff; height: 14px; }
.vid-time { font-size: 0.45rem; color: #6e7681; text-align: right; }
.vid-transport,
.vid-src-btns,
.vid-controls,
.vid-filters,
.vid-out {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}
.vid-source { display: flex; flex-direction: column; gap: 3px; }
.vid-url {
  width: 100%;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 4px;
  color: #c9d1d9;
  font: inherit;
  font-size: 0.52rem;
  padding: 4px 6px;
}
.vid-btn {
  border: 1px solid #30363d;
  border-radius: 4px;
  background: #21262d;
  color: #c9d1d9;
  cursor: pointer;
  font: inherit;
  font-size: 0.55rem;
  padding: 3px 6px;
  line-height: 1.2;
}
.vid-btn:hover,
.vid-btn.active { border-color: #58a6ff; color: #58a6ff; }
.vid-rate,
.vid-fit {
  font: inherit;
  font-size: 0.48rem;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 4px;
  color: #8b949e;
  padding: 2px 4px;
}
.vid-knob {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 48px;
  font-size: 0.4rem;
  color: #6e7681;
  gap: 1px;
}
.vid-knob input { width: 100%; height: 10px; accent-color: #58a6ff; }
.vid-filters .vid-knob { min-width: 56px; }
.vid-src-btns .vid-btn { flex: 1; }
.vid-out { justify-content: flex-end; }

.float-peer-chats {
  display: none;
}
.float-peer-chat {
  position: absolute;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 4px;
  background: rgba(1, 4, 9, 0.9);
  border: 1px solid #58a6ff;
  border-radius: 6px;
  font-size: 0.55rem;
  max-width: 180px;
}
.fpc-name {
  font-weight: 600;
  color: #c9d1d9;
  max-width: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fpc-in {
  flex: 1;
  min-width: 0;
  width: 72px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 3px;
  color: #c9d1d9;
  font: inherit;
  font-size: 0.52rem;
  padding: 2px 4px;
}
.fpc-send {
  border: 1px solid #30363d;
  border-radius: 3px;
  background: #21262d;
  color: #8b949e;
  cursor: pointer;
  font: inherit;
  font-size: 0.55rem;
  padding: 1px 4px;
}