:root {
  --bg: #040914;
  --bg2: #08101d;
  --panel: rgba(10, 18, 31, 0.94);
  --panel-strong: rgba(12, 22, 38, 0.98);
  --card: rgba(13, 21, 34, 0.92);
  --line: rgba(120, 227, 255, 0.14);
  --line-strong: rgba(120, 227, 255, 0.28);
  --text: #f3f8ff;
  --muted: #96a9c2;
  --soft: #c7d6ea;
  --cyan: #79eaff;
  --pink: #ff6fc8;
  --gold: #ffca72;
  --ok: #77f0bf;
  --warn: #ffd58d;
  --bad: #ff8fae;
  --heading: "Bahnschrift", "Segoe UI Variable", "Segoe UI", sans-serif;
  --body: "Segoe UI Variable", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.panel-body {
  position: relative;
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(121, 234, 255, 0.08), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(255, 111, 200, 0.08), transparent 22%),
    radial-gradient(circle at bottom right, rgba(255, 111, 200, 0.10), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg2) 76%);
}

.panel-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, black 52%, transparent 100%);
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
.btn,
.nav a,
.eyebrow,
.chip {
  font-family: var(--heading);
}

h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

h2 {
  font-size: 31px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

h3 {
  font-size: 19px;
  line-height: 1.08;
  font-weight: 850;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  line-height: 1.68;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 900;
  text-transform: uppercase;
}

.shell {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px 18px 40px;
}

.shell-frame {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
}

.rail,
.workspace,
.hero-control,
.stack,
.queue-list,
.log-list,
.room-members,
.assets,
.hero-highlights,
.stats,
.page-grid,
.grid2,
.grid3,
.grid4,
.actions,
.link-grid,
.hero-grid {
  display: grid;
  gap: 12px;
}

.hero,
.card,
.stat,
.pill,
.chip,
.rail-card,
.control-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 29, 47, 0.96), rgba(8, 13, 23, 0.98));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
}

.rail {
  position: sticky;
  top: 18px;
  align-self: start;
}

.rail-card,
.card,
.stat,
.control-card {
  border-radius: 28px;
  padding: 22px;
}

.rail-brand,
.hero {
  overflow: hidden;
}

.rail-brand::before,
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(121, 234, 255, 0.10), transparent 36%),
    linear-gradient(300deg, rgba(255, 111, 200, 0.10), transparent 28%);
  pointer-events: none;
}

.rail-title {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.rail-copy {
  color: var(--muted);
  line-height: 1.6;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips-rail {
  flex-direction: column;
  align-items: stretch;
}

.chip,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 900;
  color: #deebfb;
  background: rgba(6, 12, 21, 0.84);
}

.nav {
  display: grid;
  gap: 10px;
}

.nav a {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 18px;
  text-decoration: none;
  border-radius: 18px;
  font-weight: 850;
  letter-spacing: -0.01em;
  color: #d8e7fb;
  background: rgba(8, 14, 23, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.nav a:hover {
  transform: translateX(2px);
  border-color: rgba(121, 234, 255, 0.16);
}

.nav a.active {
  color: #081d2d;
  background: linear-gradient(180deg, #7cecff, #64d1ff);
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(100, 209, 255, 0.18);
}

.workspace {
  align-content: start;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 18px;
  border-radius: 32px;
  padding: 28px;
}

.hero-copy,
.hero-control {
  position: relative;
  z-index: 1;
}

.hero-highlights {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.highlight,
.metric,
.queue-item,
.log-item,
.asset-item,
.note,
.empty {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 12, 20, 0.82);
  padding: 15px 16px;
}

.highlight span,
.metric span,
.stat span,
.field span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.highlight strong,
.metric strong,
.stat strong {
  display: block;
  font-size: 20px;
  line-height: 1.08;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.highlight small,
.metric small,
.stat small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.hero-control {
  align-content: start;
}

.control-card {
  background: linear-gradient(180deg, rgba(16, 26, 42, 0.98), rgba(9, 14, 24, 0.98));
}

.auth-fields {
  display: grid;
  gap: 14px;
}

.hero-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-room-field {
  grid-column: 1 / -1;
}

.auth-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.session-card {
  padding: 20px;
}

.hero-note {
  margin: 0;
}

.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  min-height: 156px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.page-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-grid.two-col-strong {
  grid-template-columns: minmax(360px, 0.88fr) minmax(0, 1.12fr);
}

.grid2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.actions-tight {
  align-content: start;
}

.link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 50px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 12, 21, 0.86);
  color: var(--text);
  padding: 0 15px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(121, 234, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(121, 234, 255, 0.09);
  background: rgba(7, 14, 24, 0.96);
}

.field textarea {
  min-height: 126px;
  resize: vertical;
  padding: 14px 15px;
}

.btn {
  min-height: 50px;
  border: 0;
  border-radius: 18px;
  padding: 0 18px;
  font-weight: 850;
  letter-spacing: -0.01em;
  cursor: pointer;
  color: var(--text);
  background: linear-gradient(180deg, rgba(30, 42, 65, 0.98), rgba(15, 22, 36, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.btn.primary {
  color: #082034;
  background: linear-gradient(180deg, #7cecff, #65d1ff);
}

.btn.pink {
  background: linear-gradient(180deg, rgba(255, 111, 200, 0.95), rgba(219, 74, 163, 0.95));
}

.btn.warn {
  color: #392108;
  background: linear-gradient(180deg, #ffd88b, #ffbf5e);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.note {
  color: #f4ddb2;
  background: rgba(255, 201, 108, 0.08);
  border-color: rgba(255, 201, 108, 0.16);
  line-height: 1.58;
}

.empty {
  color: var(--muted);
  border-style: dashed;
  background: rgba(255, 255, 255, 0.02);
}

.queue-list,
.log-list {
  max-height: 440px;
  overflow: auto;
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.voice-card {
  min-height: 136px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(10, 18, 30, 0.98), rgba(7, 12, 20, 0.96));
  color: var(--text);
  padding: 15px 16px;
  text-align: left;
  display: grid;
  gap: 10px;
  cursor: pointer;
}

.voice-card.active {
  border-color: rgba(121, 234, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(121, 234, 255, 0.16), 0 12px 34px rgba(121, 234, 255, 0.08);
}

.voice-card strong {
  font-size: 16px;
  line-height: 1.15;
}

.voice-card small {
  color: var(--muted);
  line-height: 1.45;
}

.voice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.voice-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 900;
  color: #081a2a;
  background: linear-gradient(180deg, #7cecff, #62ccff);
}

.voice-pill.tone {
  color: #2d1600;
  background: linear-gradient(180deg, #ffd88b, #ffbf5e);
}

.log-list {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.log-item.bad {
  border-color: rgba(255, 143, 174, 0.24);
}

.text {
  color: #dde8f6;
  line-height: 1.55;
  word-break: break-word;
}

.stage-preview {
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(7, 12, 21, 0.96), rgba(5, 9, 17, 0.98));
  position: relative;
}

.canvas-frame-embed {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}

.stage-composite {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 24px;
}

.stage-guide-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.stage-guide-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 9, 17, 0.12), rgba(4, 9, 17, 0.28)),
    radial-gradient(circle at top left, rgba(121, 234, 255, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 111, 200, 0.10), transparent 26%);
  pointer-events: none;
}

.stage-guide-backdrop .stage-shell {
  inset: 0;
}

.stage-guide-badge,
.stage-overlay-badge {
  position: absolute;
  z-index: 3;
  min-height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.stage-guide-badge {
  left: 16px;
  top: 16px;
  color: #081b24;
  background: linear-gradient(180deg, rgba(121, 234, 255, 0.98), rgba(96, 216, 255, 0.95));
}

.stage-overlay-badge {
  right: 16px;
  top: 16px;
  color: #ffeecf;
  background: rgba(7, 12, 20, 0.72);
}

.canvas-frame-embed.overlay-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
}

.stage-layout-editor {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.stage-layout-empty {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  min-height: 48px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(121, 234, 255, 0.22);
  background: rgba(8, 13, 22, 0.72);
  color: #bfd5ee;
  line-height: 1.55;
  backdrop-filter: blur(8px);
}

.stage-layout-box {
  position: absolute;
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: move;
  user-select: none;
  overflow: hidden;
}

.stage-layout-box.video {
  background: transparent;
}

.stage-layout-box.active {
  box-shadow: inset 0 0 0 1px rgba(121, 234, 255, 0.55), 0 0 0 1px rgba(121, 234, 255, 0.18);
}

.stage-layout-handle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background: linear-gradient(180deg, #7cecff, #62ccff);
  box-shadow: 0 0 0 1px rgba(5, 11, 19, 0.22);
  cursor: nwse-resize;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.stage-layout-box.active .stage-layout-handle {
  opacity: 1;
}

.stage-layout-media {
  position: absolute;
  left: var(--media-fit-left, 0%);
  top: var(--media-fit-top, 0%);
  width: var(--media-fit-width, 100%);
  height: var(--media-fit-height, 100%);
  object-fit: contain;
  object-position: center center;
  display: block;
  pointer-events: none;
  background: transparent;
  border-radius: 14px;
  box-shadow: none;
}

.stage-preview.drop-ready {
  box-shadow: 0 0 0 1px rgba(121, 234, 255, 0.3), 0 0 0 8px rgba(121, 234, 255, 0.06);
}

.stage-preview.editing-layout .stage-layout-box {
  transition: none;
}

.media-workbench {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.media-workbench-editor {
  align-content: start;
}

.media-broadcast-bar,
.media-channel-bar,
.media-stage-shell,
.media-folders-card,
.media-files-card,
.media-inspector-card {
  min-width: 0;
  overflow: hidden;
}

.media-broadcast-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 18px;
  align-items: center;
}

.media-broadcast-copy,
.media-broadcast-actions {
  display: grid;
  gap: 10px;
  align-content: start;
}

.media-broadcast-copy h2,
.media-stage-shell h2,
.media-folders-card h2,
.media-files-card h2,
.media-inspector-card h2 {
  margin-bottom: 0;
}

.media-broadcast-actions {
  justify-items: stretch;
}

.media-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.media-channel-grid-editor {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-channel-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(121, 234, 255, 0.14);
  background: rgba(8, 13, 22, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.media-channel-card span {
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.media-channel-card strong {
  font-size: 22px;
  line-height: 1.05;
}

.media-channel-card small {
  color: var(--muted);
  line-height: 1.45;
}

.media-stage-shell {
  display: grid;
  gap: 14px;
  align-content: start;
}

.media-stage-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
  gap: 16px;
  align-items: end;
}

.media-stage-preview {
  margin-top: 0;
  min-height: clamp(560px, 68vh, 840px);
  width: 100%;
  aspect-ratio: 16 / 9;
}

.media-explorer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(121, 234, 255, 0.12);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(12, 20, 33, 0.98), rgba(7, 12, 20, 0.98));
}

.media-list-pane,
.media-details-pane {
  min-width: 0;
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
}

.media-list-pane {
  background:
    linear-gradient(180deg, rgba(14, 24, 39, 0.9), rgba(9, 15, 25, 0.96));
}

.media-details-pane {
  background: rgba(10, 16, 27, 0.92);
}

.media-list-pane {
  border-right: 1px solid rgba(121, 234, 255, 0.12);
}

.media-list-pane-unified {
  padding: 22px 24px 22px 22px;
}

.media-details-pane-explorer {
  padding: 22px 18px 22px 18px;
}

.media-pane-heading {
  display: grid;
  gap: 6px;
}

.media-pane-heading h2 {
  margin: 0;
}

.media-folder-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0;
}

.media-folder-strip .explorer-folder {
  min-height: 78px;
  justify-content: start;
  text-align: left;
}

.media-folder-list {
  display: grid;
  gap: 10px;
}

.media-explorer-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.media-folder-summary-list {
  margin: 0;
}

.media-folder-summary-list .note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
}

.media-upload-actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.media-upload-status {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 18px;
  border: 1px solid rgba(116, 231, 255, 0.14);
  background: linear-gradient(180deg, rgba(14, 22, 34, 0.92), rgba(10, 17, 28, 0.92));
}

.media-upload-status.uploading {
  border-color: rgba(116, 231, 255, 0.32);
  box-shadow: 0 0 0 1px rgba(116, 231, 255, 0.08), 0 18px 40px rgba(12, 22, 39, 0.18);
}

.media-upload-status.success {
  border-color: rgba(91, 226, 163, 0.32);
}

.media-upload-status.error {
  border-color: rgba(255, 111, 200, 0.34);
}

.media-upload-status-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.media-upload-status-head strong {
  font-size: 14px;
  letter-spacing: 0.01em;
}

.media-upload-spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(116, 231, 255, 0.18);
  border-top-color: rgba(116, 231, 255, 0.95);
  animation: media-upload-spin 0.8s linear infinite;
}

.media-upload-percent {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.media-upload-progress {
  position: relative;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.media-upload-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #74e7ff 0%, #8ea7ff 55%, #ff6fc8 100%);
  box-shadow: 0 0 18px rgba(116, 231, 255, 0.3);
  transition: width 160ms ease;
}

.media-upload-caption {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.media-upload-actions-inline .btn:disabled {
  opacity: 0.66;
  cursor: progress;
}

.media-upload-dropzone-inline {
  min-height: 88px;
  margin-bottom: 0;
}

.media-upload-dropzone-inline.uploading {
  border-color: rgba(116, 231, 255, 0.44);
  box-shadow: 0 0 0 1px rgba(116, 231, 255, 0.18), 0 18px 50px rgba(116, 231, 255, 0.08);
}

.media-selection-actions {
  margin-top: 12px;
}

.media-folder-summary-list .asset-item {
  padding: 12px 14px;
  border-radius: 16px;
}

.media-browser-controls {
  display: grid;
  grid-template-columns: 1.3fr 0.95fr 0.95fr;
  gap: 12px;
}

.media-browser-controls-explorer {
  margin-top: 2px;
}

.media-command-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.media-command-toolbar .btn {
  min-width: 0;
}

.media-file-head {
  grid-template-columns: minmax(0, 1.7fr) minmax(90px, 0.55fr) minmax(90px, 0.45fr) minmax(130px, 0.58fr) minmax(220px, 0.92fr);
  margin-top: 0;
}

.media-file-head-explorer {
  padding-inline: 14px;
}

.media-explorer-scroll {
  max-height: 560px;
  min-height: 420px;
  overflow: auto;
  padding-right: 6px;
}

.media-errors-block {
  margin-top: 0;
}

.media-errors-block .note,
.media-errors-block .empty {
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.media-selection-card {
  margin-top: 0;
}

.media-properties-panel {
  display: grid;
  gap: 14px;
}

.media-layer-metric {
  min-height: 110px;
}

.media-details-pane .note {
  margin-top: 0;
}

.media-details-pane .explorer-selection-grid {
  grid-template-columns: 1fr;
}

.media-details-pane .explorer-selection-thumb {
  width: 100%;
  max-width: none;
  min-height: 180px;
}

.media-details-pane .explorer-selection-thumb img,
.media-details-pane .explorer-selection-thumb video {
  object-fit: contain;
}

.media-details-pane .explorer-selection-meta {
  grid-template-columns: 1fr;
}

.media-details-pane .summary-stack.explorer-selection-state {
  display: none;
}

.media-side-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-upload-grid {
  margin-top: 2px;
}

.media-upload-dropzone-compact {
  min-height: 104px;
}

.media-inspector-primary-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-active-page="media"] .hero,
body[data-active-page="media"] .stats {
  display: none;
}

body[data-active-page="viewer-media"] .hero,
body[data-active-page="viewer-media"] .stats {
  display: none;
}

.media-text-grid,
.media-mic-recorder {
  margin-top: 12px;
}

.media-mic-recorder {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(121, 234, 255, 0.12);
  background: rgba(6, 12, 20, 0.78);
}

.stage-guide-backdrop img.canvas-frame-embed {
  object-fit: cover;
}

.stage-shell {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.stage-shell.transparent {
  background:
    radial-gradient(circle at top left, rgba(121, 234, 255, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 111, 200, 0.10), transparent 28%),
    linear-gradient(180deg, rgba(8, 13, 21, 0.96), rgba(4, 8, 15, 0.98));
}

.stage-shell.color {
  background: linear-gradient(180deg, var(--stage-color, #182639), rgba(7, 11, 20, 0.98));
}

.stage-shell.image {
  background:
    linear-gradient(120deg, rgba(121, 234, 255, 0.12), transparent 28%),
    linear-gradient(300deg, rgba(255, 111, 200, 0.12), transparent 26%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 14px, rgba(255, 255, 255, 0) 14px, rgba(255, 255, 255, 0) 28px),
    linear-gradient(180deg, rgba(13, 22, 36, 0.96), rgba(7, 11, 19, 0.98));
}

.stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 7.6% 10%;
  opacity: 0.42;
}

.stage-frame {
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  border: 1px solid rgba(121, 234, 255, 0.46);
  box-shadow: inset 0 0 70px rgba(121, 234, 255, 0.06);
}

.stage-label {
  position: absolute;
  top: 20px;
  left: 20px;
  min-width: 230px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 111, 200, 0.36);
  background: rgba(9, 15, 25, 0.86);
}

.stage-label strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.stage-label span {
  color: #b6c8dd;
  font-size: 12px;
  line-height: 1.45;
}

.stage-ribbon {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(121, 234, 255, 0.28), rgba(255, 111, 200, 0.28)), rgba(8, 12, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stage-ribbon::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(121, 234, 255, 0.82) 0, rgba(121, 234, 255, 0.82) 18px, rgba(255, 111, 200, 0.82) 18px, rgba(255, 111, 200, 0.82) 34px);
  opacity: 0.52;
}

.chat-zone {
  position: absolute;
  top: 10%;
  bottom: 10%;
  width: var(--chat-width, 27%);
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
}

.chat-zone.right {
  right: 5%;
}

.chat-zone.left {
  left: 5%;
}

.chat-zone span {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(5, 10, 18, 0.84);
  color: #b8cae5;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.actor {
  position: absolute;
  left: var(--actor-left, 62%);
  top: var(--actor-top, 38%);
  width: var(--actor-width, 18%);
  height: var(--actor-height, 44%);
}

.actor-shadow {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -10px;
  height: 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  filter: blur(10px);
}

.actor-body {
  position: absolute;
  inset: 0;
  border-radius: 18px 18px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(8, 14, 22, 0.96), rgba(18, 25, 37, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.actor-body::before {
  content: "";
  position: absolute;
  width: 38%;
  height: 38%;
  left: 31%;
  top: 8%;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7fbff, #d6e2f5);
  box-shadow: 0 0 0 6px rgba(121, 234, 255, 0.10);
}

.actor-body::after {
  content: "";
  position: absolute;
  left: 23%;
  right: 23%;
  bottom: 10%;
  height: 42%;
  border-radius: 24px 24px 12px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)), linear-gradient(180deg, #1a2230, #0f141f);
}

.meter {
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  margin-top: 10px;
}

.meter-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #7cecff, #ff6fc8);
  transition: width 0.18s ease;
}

.assets {
  margin-top: 14px;
}

.asset-library {
  gap: 18px;
}

.library-head {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.explorer-library-summary {
  margin-top: 14px;
}

.library-note {
  color: var(--soft);
}

.library-section {
  display: grid;
  gap: 12px;
}

.library-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.layout-editor-grid input {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.layout-editor-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.explorer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(11, 18, 30, 0.94), rgba(7, 12, 21, 0.96));
}

.explorer-path {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  color: #d8e8fb;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.explorer-status-pill {
  min-height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #aef2ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(121, 234, 255, 0.10);
  border: 1px solid rgba(121, 234, 255, 0.18);
}

.explorer-file-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.7fr) minmax(190px, 0.75fr) minmax(280px, 1fr);
  gap: 12px;
  padding: 12px 16px;
  margin-top: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 13, 22, 0.9);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.explorer-selection-card {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.explorer-selection-grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(121, 234, 255, 0.12);
  background: linear-gradient(180deg, rgba(14, 23, 39, 0.98), rgba(7, 12, 20, 0.96));
}

.explorer-selection-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(135deg, rgba(121, 234, 255, 0.12), transparent 40%), linear-gradient(315deg, rgba(255, 111, 200, 0.1), transparent 32%), rgba(7, 12, 20, 0.92);
  display: grid;
  place-items: center;
}

.explorer-selection-thumb img,
.explorer-selection-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.explorer-selection-thumb strong {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #dceafb;
}

.explorer-selection-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.explorer-selection-copy h3,
.explorer-selection-copy p {
  margin: 0;
}

.explorer-selection-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.explorer-selection-state {
  margin-top: 2px;
}

.explorer-selection-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.explorer-selection-meta .metric {
  min-height: 108px;
}

.explorer-list {
  gap: 10px;
}

.explorer-row {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) 116px 100px 148px 126px;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(10, 17, 28, 0.92), rgba(7, 12, 20, 0.92));
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.explorer-row:hover {
  transform: translateY(-1px);
  border-color: rgba(121, 234, 255, 0.22);
}

.explorer-row.draggable {
  cursor: grab;
}

.explorer-row.draggable:active {
  cursor: grabbing;
}

.explorer-row.active {
  border-color: rgba(121, 234, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(121, 234, 255, 0.12), 0 18px 50px rgba(0, 0, 0, 0.18);
  background: linear-gradient(180deg, rgba(16, 29, 45, 0.98), rgba(8, 14, 23, 0.96));
}

.explorer-row-main {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.explorer-row-thumb {
  width: 52px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, rgba(121, 234, 255, 0.12), transparent 40%), linear-gradient(315deg, rgba(255, 111, 200, 0.1), transparent 32%), rgba(7, 12, 20, 0.94);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.explorer-row-thumb img,
.explorer-row-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.explorer-row-thumb strong {
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #dcebfb;
  text-align: center;
}

.explorer-row-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.explorer-row-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explorer-row-copy small {
  display: block;
  color: var(--muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explorer-row-type,
.explorer-row-size,
.explorer-row-date,
.explorer-row-state {
  min-width: 0;
}

.explorer-row-size strong,
.explorer-row-date small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explorer-row-size strong {
  font-size: 13px;
  line-height: 1.2;
}

.explorer-row-date small {
  color: var(--muted);
  line-height: 1.2;
}

.explorer-row-state {
  display: flex;
  justify-content: flex-start;
}

.media-selection-card .explorer-selection-copy p {
  display: none;
}

.media-selection-card .explorer-selection-meta .metric {
  min-height: 94px;
}

.media-selection-card .summary-line {
  padding: 10px 12px;
}

.state-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #d9e7f5;
}

.state-pill.live {
  border-color: rgba(121, 234, 255, 0.24);
  background: rgba(121, 234, 255, 0.12);
  color: #e3f7ff;
}

.state-pill.idle {
  color: var(--muted);
}

.explorer-row-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.explorer-folder {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 12, 20, 0.86);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.explorer-folder:hover {
  transform: translateY(-1px);
  border-color: rgba(121, 234, 255, 0.22);
}

.explorer-folder.active {
  border-color: rgba(121, 234, 255, 0.34);
  background: linear-gradient(180deg, rgba(18, 38, 58, 0.96), rgba(8, 17, 29, 0.98));
  box-shadow: inset 0 1px 0 rgba(121, 234, 255, 0.16);
}

.explorer-folder strong {
  display: block;
}

.explorer-folder small {
  color: var(--muted);
}

.media-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.channel-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #061b25;
  background: linear-gradient(180deg, rgba(121, 234, 255, 0.98), rgba(102, 214, 255, 0.96));
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}

.channel-pill.video {
  color: #351d00;
  background: linear-gradient(180deg, rgba(255, 208, 122, 0.98), rgba(255, 180, 87, 0.96));
}

.channel-pill.sound {
  color: #fff2f8;
  background: linear-gradient(180deg, rgba(255, 111, 200, 0.98), rgba(223, 80, 168, 0.96));
}

.asset-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(121, 234, 255, 0.16);
  border: 1px solid rgba(121, 234, 255, 0.28);
  color: #aef2ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.upload-dropzone {
  display: grid;
  gap: 8px;
  padding: 18px;
  margin-bottom: 14px;
  border-radius: 20px;
  border: 1px dashed rgba(121, 234, 255, 0.28);
  background: linear-gradient(180deg, rgba(18, 34, 51, 0.74), rgba(8, 14, 23, 0.84));
}

.upload-dropzone strong {
  display: block;
  font-size: 16px;
}

.upload-dropzone span {
  color: var(--muted);
  line-height: 1.5;
}

.upload-dropzone.dragging {
  border-color: rgba(255, 111, 200, 0.48);
  box-shadow: 0 0 0 1px rgba(255, 111, 200, 0.18), 0 18px 50px rgba(255, 111, 200, 0.08);
}

@keyframes media-upload-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.asset-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.asset-item strong {
  display: block;
  margin-bottom: 4px;
}

.asset-item-count {
  display: inline-flex;
  align-items: center;
  align-self: start;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(121, 234, 255, 0.18);
  background: rgba(121, 234, 255, 0.08);
  color: #dff4ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-card {
  position: relative;
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 8px;
  background:
    linear-gradient(180deg, rgba(14, 23, 39, 0.98), rgba(7, 12, 20, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(121, 234, 255, 0.06), transparent 35%),
    linear-gradient(300deg, rgba(255, 111, 200, 0.06), transparent 26%);
}

.media-card-image {
  border-color: rgba(121, 234, 255, 0.12);
}

.media-card-video {
  border-color: rgba(255, 202, 114, 0.12);
}

.media-card-sound {
  border-color: rgba(255, 111, 200, 0.12);
}

.media-main-card {
  min-width: 0;
}

.room-members {
  margin-top: 12px;
}

.member-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(7, 12, 20, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.member-row small {
  color: var(--muted);
  display: block;
}

.member-status {
  min-width: 84px;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.status-online {
  color: #061920;
  background: linear-gradient(180deg, rgba(119, 240, 191, 0.98), rgba(83, 219, 171, 0.96));
  border-color: transparent;
}

.status-lag {
  color: #2f1802;
  background: linear-gradient(180deg, rgba(255, 213, 141, 0.98), rgba(255, 189, 92, 0.96));
  border-color: transparent;
}

.status-stale {
  color: #fff1f5;
  background: linear-gradient(180deg, rgba(255, 143, 174, 0.94), rgba(222, 94, 138, 0.96));
  border-color: transparent;
}

.summary-stack {
  display: grid;
  gap: 10px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(6, 12, 21, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-line strong {
  font-size: 14px;
}

.summary-line span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.summary-line small {
  color: #d9e7fb;
  font-size: 13px;
  font-weight: 800;
}

.route-card {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(11, 19, 32, 0.98), rgba(7, 12, 20, 0.96));
  text-decoration: none;
}

.explorer-selection-routes .route-card {
  min-height: 104px;
}

.route-card span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 900;
}

.route-card strong {
  font-size: 15px;
  line-height: 1.35;
  word-break: break-word;
}

.route-card small {
  color: var(--muted);
  line-height: 1.45;
}

.queue-item-live {
  border-color: rgba(121, 234, 255, 0.24);
  background: linear-gradient(180deg, rgba(16, 31, 48, 0.98), rgba(8, 13, 22, 0.96));
}

.queue-item-queued {
  background: linear-gradient(180deg, rgba(11, 18, 30, 0.98), rgba(7, 12, 20, 0.94));
}

.tts-inline-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tts-voice-inspector {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top right, rgba(125, 218, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(10, 18, 30, 0.98), rgba(7, 12, 20, 0.95));
}

.tts-inspector-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.tts-inspector-head h3 {
  font-size: 22px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.tts-inspector-head p,
.tts-inspector-helper {
  color: var(--muted);
  line-height: 1.55;
}

.tts-inspector-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tts-inspector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tts-inspector-grid .summary-line {
  min-height: 100%;
}

.queue-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.queue-item-meta .pill {
  min-height: 32px;
  padding: 0 12px;
  font-size: 11px;
  background: rgba(10, 18, 30, 0.9);
}

.tts-route-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tts-compose-card .summary-stack .summary-line small,
.tts-voice-inspector .summary-line small {
  max-width: 52%;
  text-align: right;
}

.voice-assignment-card {
  min-height: 120px;
}

.log-list.compact {
  max-height: 280px;
}

.status-line {
  font-weight: 700;
}

.hidden {
  display: none !important;
}

.ok {
  color: var(--ok);
}

.bad {
  color: var(--bad);
}

@media (max-width: 1280px) {
  .shell-frame {
    grid-template-columns: 1fr;
  }

  .rail {
    position: static;
  }

  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero,
  .page-grid.two-col-strong {
    grid-template-columns: 1fr;
  }

  .hero-highlights,
  .stats,
  .grid4,
  .link-grid,
  .asset-grid,
  .explorer-selection-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explorer-file-head,
  .explorer-row {
    grid-template-columns: 1fr;
  }

  .explorer-selection-grid {
    grid-template-columns: 1fr;
  }

  .explorer-row-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-broadcast-bar,
  .media-stage-header,
  .media-explorer-shell {
    grid-template-columns: 1fr;
  }

  .media-browser-controls,
  .media-side-actions,
  .media-channel-grid-editor,
  .media-folder-strip,
  .media-explorer-meta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-stage-preview {
    min-height: 520px;
  }
}

@media (max-width: 880px) {
  .shell {
    padding: 16px 12px 28px;
  }

  .nav,
  .hero-grid,
  .stats,
  .page-grid,
  .page-grid.two-col-strong,
  .grid2,
  .grid3,
  .grid4,
  .actions,
  .link-grid,
  .compact-links,
  .hero-highlights,
  .voice-grid,
  .tts-route-grid,
  .tts-inspector-grid,
  .explorer-rail,
  .media-actions,
  .asset-grid,
  .tts-inline-actions,
  .media-channel-grid,
  .media-browser-controls,
  .media-side-actions,
  .media-upload-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .card,
  .stat,
  .rail-card,
  .control-card {
    border-radius: 24px;
    padding: 18px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 26px;
  }

  .media-file-head,
  .explorer-row {
    grid-template-columns: 1fr;
  }

  .media-stage-preview {
    min-height: 360px;
  }

  .media-explorer-scroll {
    max-height: none;
  }

  .media-explorer-shell {
    grid-template-columns: 1fr;
  }

  .media-upload-actions-inline {
    justify-content: stretch;
  }

  .media-upload-actions-inline .btn {
    flex: 1 1 100%;
  }
}
