/* ================= Self-Hosted Fonts (OFL WOFF2 — Zero External CDN) ================= */
@font-face {
  font-family: "Sora";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/Sora-Light.woff2") format("woff2");
}

@font-face {
  font-family: "Sora";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/Sora-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Sora";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/Sora-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "Sora";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/Sora-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "Sora";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/Sora-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "Sora";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/Sora-ExtraBold.woff2") format("woff2");
}

@font-face {
  font-family: "Sora";
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/Sora-ExtraBold.woff2") format("woff2");
}

@font-face {
  font-family: "Kode Mono";
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  src: url("./fonts/KodeMono-Bold.woff2") format("woff2");
}

/* ================= Signal Blocks v3 Color Tokens (Light & Dark, Zero Shadows) ================= */
:root {
  --bg-canvas: #f4f1ea;
  --bg-surface: #ffffff;
  --bg-subtle: #eae6dc;
  --bg-inset: #f4f1ea;
  --ink-primary: #0e0f12;
  --ink-secondary: #4a4f5c;
  --ink-muted: #646a78;
  --ink-inv: #ffffff;

  --rule: #0e0f12;
  --rule-soft: #d6d1c6;

  --cobalt: #0057ff;
  --cobalt-deep: #003ec2;
  --cobalt-muted: #5270a6;

  --ochre: #ffb800;
  --ochre-deep: #e5a400;
  --ochre-muted: #c2a459;

  --mint: #00e082;
  --mint-deep: #00be6d;
  --mint-muted: #7bbfa1;

  --acid: #d9ff26;

  --coral: #ff3b30;
  --coral-deep: #d92b21;
  --coral-muted: #a65b57;

  --cyan: #00b8ff;
  --cyan-muted: #4d9ab8;

  --bar-bg: #0e0f12;
  --bar-ink: #ffffff;
  --self-msg-bg: #e7fbf1;

  --code-dark-bg: #0e0f12;
  --code-dark-ink: #f5f4ef;

  /* Semantic aliases (also read by renderTopology SVG) */
  --accent-live: var(--mint);
  --accent-live-hover: var(--mint-deep);
  --accent-live-bg: #e4fbf1;
  --accent-live-ink: #0e0f12;
  --accent-live-border: var(--rule);

  --accent-action: var(--cobalt);
  --accent-action-hover: var(--cobalt-deep);
  --accent-action-bg: #e6efff;
  --accent-action-ink: #003ec2;
  --accent-action-border: var(--cobalt);

  --accent-warn: var(--ochre);
  --accent-warn-bg: #fff4cf;
  --accent-warn-ink: #0e0f12;
  --accent-warn-border: var(--rule);

  --accent-danger: var(--coral);
  --accent-danger-bg: #ffe7e6;
  --accent-danger-ink: #9f1b14;
  --accent-danger-border: var(--coral);

  --font-sans: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Kode Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-track: -0.045em;
}

[data-theme="dark"] {
  --bg-canvas: #0b0c0f;
  --bg-surface: #13151b;
  --bg-subtle: #1a1d25;
  --bg-inset: #1a1d25;
  --ink-primary: #f5f4ef;
  --ink-secondary: #9ca2b2;
  --ink-muted: #7c8292;
  --ink-inv: #0b0c0f;

  --rule: #2e3342;
  --rule-soft: #222632;

  --cobalt: #1e6bff;
  --cobalt-deep: #0e53d9;
  --cobalt-muted: #2b4578;

  --ochre: #ffc21a;
  --ochre-deep: #e0a400;
  --ochre-muted: #a88d48;

  --mint: #00e589;
  --mint-deep: #00bf72;
  --mint-muted: #5e9e81;

  --acid: #d9ff26;

  --coral: #ff453a;
  --coral-deep: #d93126;
  --coral-muted: #733633;

  --cyan: #24c4ff;
  --cyan-muted: #296b85;

  --bar-bg: #000000;
  --bar-ink: #f5f4ef;
  --self-msg-bg: #0d251c;

  --code-dark-bg: #07080a;
  --code-dark-ink: #f5f4ef;

  --accent-live-bg: #0e2c21;
  --accent-live-ink: #72f5be;
  --accent-live-border: var(--mint);

  --accent-action-bg: #102042;
  --accent-action-ink: #8cb7ff;
  --accent-action-border: var(--cobalt);

  --accent-warn-bg: #2c240c;
  --accent-warn-ink: #ffd75e;
  --accent-warn-border: var(--ochre);

  --accent-danger-bg: #311211;
  --accent-danger-ink: #ff8c85;
  --accent-danger-border: var(--coral);
}

/* ================= Reset & Base ================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0;
}

.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
  transition: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.hidden {
  display: none !important;
}

/* ================= Kinetic Animations ================= */
@keyframes chevPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(3px);
  }
}

@keyframes curtainIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tilePop {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes sqPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

@keyframes voicePreviewPulse {
  0%,
  100% {
    transform: scaleY(0.45);
    opacity: 0.45;
  }
  50% {
    transform: scaleY(1);
    opacity: 0.92;
  }
}

.chevrons {
  display: inline-flex;
  gap: 1px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.chevrons span {
  opacity: 0.48;
}

.chev-trigger:hover .chevrons span:nth-child(1) {
  animation: chevPulse 620ms infinite 0ms;
}
.chev-trigger:hover .chevrons span:nth-child(2) {
  animation: chevPulse 620ms infinite 100ms;
}
.chev-trigger:hover .chevrons span:nth-child(3) {
  animation: chevPulse 620ms infinite 200ms;
}

/* ================= App Shell & Mode Visibility ================= */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-canvas);
}

html[data-advanced="false"] .advanced-only {
  display: none !important;
}

html[data-advanced="true"] .simple-only {
  display: none !important;
}

html[data-advanced="false"][data-in-room="false"] .room-only {
  display: none !important;
}

html[data-advanced="false"][data-in-room="false"] .workbench {
  display: none !important;
}

html[data-advanced="false"][data-in-room="true"] .room-lobby,
html[data-advanced="true"] .room-lobby {
  display: none !important;
}

/* Lock viewport cleanly on desktop so Lobby fills screen and Room keeps Chat Composer pinned */
html[data-advanced="false"][data-in-room="false"] .app-shell,
html[data-advanced="false"][data-in-room="true"] .app-shell,
html[data-advanced="true"] .app-shell {
  height: 100vh;
  overflow: hidden;
}

/* ================= Brandless Topbar — Big Prominent Name Field Left, Controls Right ================= */
.topbar {
  height: 62px;
  min-height: 62px;
  background: var(--bar-bg);
  color: var(--bar-ink);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: 2px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 30;
  flex-shrink: 0;
}

.name-hero-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  border-right: 2px solid rgba(255, 255, 255, 0.14);
  min-width: 280px;
  transition: background-color 140ms ease;
}

.name-hero-wrap:focus-within {
  background: rgba(255, 255, 255, 0.06);
}

.name-hero-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: var(--mint);
  color: #0e0f12;
  flex-shrink: 0;
  user-select: none;
}

.name-hero-input {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  width: 220px;
  padding: 4px 2px;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  outline: none;
  transition: border-color 140ms ease, width 180ms ease;
}

.name-hero-input:focus {
  border-bottom-color: var(--acid);
  width: 260px;
}

.name-edit-hint {
  color: rgba(255, 255, 255, 0.38);
  display: inline-flex;
  align-items: center;
  pointer-events: none;
  flex-shrink: 0;
}

.name-hero-wrap:focus-within .name-edit-hint {
  color: var(--acid);
}

.identity-bar {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  border-left: 2px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.stat-chip strong {
  color: #ffffff;
  font-weight: 700;
}

.stat-chip.live {
  color: var(--mint);
}

.stat-chip.live strong {
  color: var(--mint);
}

.status-dot {
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.status-dot.online {
  background: var(--mint);
}

.top-bar-btn {
  border: none;
  border-left: 2px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #ffffff;
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease;
}

.top-bar-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.top-bar-btn.is-active {
  background: var(--acid);
  color: #0e0f12;
}

.top-bar-icon {
  padding: 0 18px;
}

/* ================= Default Simple Lobby: Expanding Split Doors ================= */
.room-lobby {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lobby-passphrase-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 24px;
  background: var(--acid);
  color: #0e0f12;
  border-bottom: 3px solid #0e0f12;
  flex-shrink: 0;
}

.lobby-passphrase-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lobby-passphrase-head strong {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lobby-passphrase-head span {
  font-size: 13px;
  opacity: 0.85;
}

.lobby-passphrase-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex: 1;
  max-width: 480px;
  min-width: 240px;
}

.lobby-passphrase-row .text-input {
  background: #ffffff;
  color: #0e0f12;
  border: 2px solid #0e0f12;
}

.lobby-notice {
  margin: 0 !important;
  border: none !important;
  border-bottom: 3px solid #0e0f12 !important;
  padding: 12px 24px !important;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.lobby-doors {
  flex: 1;
  display: flex;
  min-height: 0;
}

.lobby-door {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 44px 36px;
  transition: flex 380ms cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  min-width: 0;
}

.door-create {
  background: var(--cobalt);
  color: #ffffff;
  border-right: 3px solid #0e0f12;
}

.door-join {
  background: var(--ochre);
  color: #0e0f12;
}

.lobby-doors:hover .lobby-door {
  flex: 0.78;
}

.lobby-doors .lobby-door:hover,
.lobby-doors .lobby-door:focus-within {
  flex: 1.42;
}

.door-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.door-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 2px solid currentColor;
}

.door-arrow {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lobby-door:hover .door-arrow,
.lobby-door:focus-within .door-arrow {
  transform: translateX(10px);
}

.door-body {
  margin: 24px 0;
  max-width: 470px;
}

.door-title {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: clamp(36px, 4.1vw, 58px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: var(--display-track);
  text-transform: uppercase;
}

.door-title .t-thin {
  font-weight: 300;
  display: block;
  font-size: 0.54em;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.door-copy {
  margin: 0 0 28px;
  font-size: 15.5px;
  line-height: 1.48;
  opacity: 0.92;
  max-width: 400px;
}

.door-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.slab-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid currentColor;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: background-color 140ms ease;
}

.door-create .slab-input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.door-create .slab-input:focus {
  background: rgba(255, 255, 255, 0.24);
}

.door-join .slab-input {
  background: rgba(14, 15, 18, 0.08);
}

.door-join .slab-input::placeholder {
  color: rgba(14, 15, 18, 0.64);
}

.door-join .slab-input:focus {
  background: rgba(14, 15, 18, 0.15);
}

.slab-cta {
  border: 2px solid #0e0f12;
  background: #0e0f12;
  color: #ffffff;
  padding: 16px 22px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 140ms ease, color 140ms ease;
}

.slab-cta:hover {
  background: var(--acid);
  color: #0e0f12;
}

.door-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.88;
  border-top: 2px solid currentColor;
  padding-top: 14px;
}

/* ================= Room Workbench (Full-Bleed Architectural Layout) ================= */
.workbench {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  animation: curtainIn 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-advanced="true"] .workbench {
  grid-template-columns: minmax(0, 1fr) 368px;
}

.main-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.rail {
  border-left: 2px solid var(--rule);
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
}

/* ================= Simple Room Ribbon (Leave Room Completely Isolated Top-Right) ================= */
.simple-room-bar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: var(--bg-surface);
  border-bottom: 2px solid var(--rule);
  min-height: 52px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.simple-room-info {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.simple-room-title {
  margin: 0;
  display: flex;
  align-items: center;
  padding: 10px 22px;
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: var(--display-track);
  text-transform: uppercase;
  border-right: 2px solid var(--rule);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simple-room-status-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: var(--ochre);
  color: #0e0f12;
  border-right: 2px solid var(--rule);
  transition: background-color 160ms ease;
}

.simple-room-status-wrap.is-live {
  background: var(--mint);
}

.simple-room-status-wrap .badge {
  border: none;
  background: transparent;
  color: #0e0f12;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-sq {
  width: 8px;
  height: 8px;
  background: #0e0f12;
  flex-shrink: 0;
  animation: sqPulse 1.4s steps(2, end) infinite;
}

.simple-room-actions {
  display: flex;
  align-items: stretch;
  margin-left: auto;
}

.ribbon-btn {
  border: none;
  border-left: 2px solid var(--rule);
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background-color 130ms ease, color 130ms ease;
}

.ribbon-btn-copy {
  background: var(--ochre);
  color: #0e0f12;
}

.ribbon-btn-copy:hover {
  background: var(--acid);
}

.ribbon-btn-leave {
  background: var(--coral);
  color: #ffffff;
}

.ribbon-btn-leave:hover {
  background: var(--coral-deep);
}

/* ================= Generic Architectural Panels ================= */
.panel {
  background: var(--bg-surface);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 22px;
  border-bottom: 2px solid var(--rule);
  background: var(--bg-surface);
  flex-wrap: wrap;
}

.panel-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.panel-body {
  padding: 16px;
}

/* ================= Metro Live Voice Channel Wall ================= */
.voice-stage-panel {
  background: var(--bg-subtle);
  border-bottom: 2px solid var(--rule);
  flex-shrink: 0;
}

.voice-stage-header {
  padding: 10px 22px;
}

.voice-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice-stage-header .badge {
  padding: 3px 8px;
  background: var(--ink-primary);
  color: var(--ink-inv);
  border: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voice-stage-panel.is-live .voice-stage-header .badge {
  background: var(--mint);
  color: #0e0f12;
}

.voice-header-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

#voice-join-hint {
  color: var(--cobalt);
}

[data-theme="dark"] #voice-join-hint {
  color: var(--acid);
}

.voice-stage-body {
  padding: 0;
  overflow: hidden;
}

.voice-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(264px, 1fr));
  gap: 0;
  margin-bottom: -2px;
}

/* Let <li> participant tiles share the exact .voice-mosaic grid seamlessly with #voice-join-card */
.voice-stage-grid {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}

.voice-card {
  --voice-level: 0;
  position: relative;
  min-height: 196px;
  padding: 16px 18px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  overflow: hidden;
  transition: background-color 180ms ease;
}

.voice-card.is-entering {
  animation: tilePop 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Full-color flat Metro participant palettes */
.voice-card.tile-coral {
  background: var(--coral);
  color: #ffffff;
}

.voice-card.tile-cobalt {
  background: var(--cobalt);
  color: #ffffff;
}

.voice-card.tile-mint {
  background: var(--mint);
  color: #0e0f12;
}

.voice-card.tile-ochre {
  background: var(--ochre);
  color: #0e0f12;
}

.voice-card.tile-cyan {
  background: var(--cyan);
  color: #0e0f12;
}

/* Per-hue muted color states (Mute softens self; Deafen softens all others — NEVER black/grey) */
.voice-card.tile-coral.is-color-muted {
  background: var(--coral-muted);
}

.voice-card.tile-cobalt.is-color-muted {
  background: var(--cobalt-muted);
}

.voice-card.tile-mint.is-color-muted {
  background: var(--mint-muted);
}

.voice-card.tile-ochre.is-color-muted {
  background: var(--ochre-muted);
}

.voice-card.tile-cyan.is-color-muted {
  background: var(--cyan-muted);
}

.voice-tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}

.tile-mono {
  font-family: var(--font-sans);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: var(--display-track);
  user-select: none;
}

.tile-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 2px solid currentColor;
  white-space: nowrap;
}

.speak-star {
  width: 10px;
  height: 10px;
  display: none;
  flex-shrink: 0;
}

.voice-card.is-speaking .speak-star {
  display: inline-block;
  animation: spinSlow 4s linear infinite;
}

.tile-lower {
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}

.voice-tile-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.voice-card-name {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-you-pill {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  background: #0e0f12;
  color: var(--acid);
}

.tile-control-slot {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.tile-prejoin-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.84;
}

/* Integrated Self Controls inside YOUR card: Icon-only Mute & Deafen separated left, larger Leave Voice right */
.self-card-controls {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.self-audio-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.self-ctrl-icon {
  width: 36px;
  height: 36px;
  border: 2px solid #0e0f12;
  background: rgba(255, 255, 255, 0.88);
  color: #0e0f12;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.self-ctrl-icon:hover {
  background: #ffffff;
}

.self-ctrl-icon.is-toggled {
  background: var(--ochre);
  color: #0e0f12;
  border-color: #0e0f12;
}

.self-ctrl-leave {
  height: 36px;
  flex: 1;
  min-width: 124px;
  max-width: 186px;
  margin-left: auto;
  border: 2px solid #0e0f12;
  background: #0e0f12;
  color: #ffffff;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.self-ctrl-leave:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: #ffffff;
}

/* Per-peer Mute + Volume Slider inside remote tiles */
.voice-peer-mixer {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
}

.tile-mute-btn {
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
  height: 30px;
  padding: 0 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 120ms ease, color 120ms ease;
}

.tile-mute-btn:hover {
  background: rgba(14, 15, 18, 0.16);
}

.tile-mute-btn.is-muted {
  background: #0e0f12;
  color: #ffffff;
  border-color: #0e0f12;
}

.voice-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 20px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}

.voice-volume-slider:focus {
  outline: none;
}

.voice-volume-slider::-webkit-slider-runnable-track {
  height: 4px;
  background: currentColor;
  opacity: 0.45;
}

.voice-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 18px;
  margin-top: -7px;
  background: #0e0f12;
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: background-color 110ms ease;
}

.voice-card.tile-ochre .voice-volume-slider::-webkit-slider-thumb,
.voice-card.tile-cyan .voice-volume-slider::-webkit-slider-thumb,
.voice-card.tile-mint .voice-volume-slider::-webkit-slider-thumb {
  border-color: #0e0f12;
}

.voice-volume-slider:hover::-webkit-slider-thumb,
.voice-volume-slider:focus::-webkit-slider-thumb {
  background: var(--acid);
  border-color: #0e0f12;
}

.voice-volume-slider::-moz-range-track {
  height: 4px;
  background: currentColor;
  opacity: 0.45;
  border: none;
}

.voice-volume-slider::-moz-range-thumb {
  width: 10px;
  height: 16px;
  background: #0e0f12;
  border: 2px solid #ffffff;
  border-radius: 0;
  cursor: pointer;
}

.voice-volume-slider:hover::-moz-range-thumb {
  background: var(--acid);
  border-color: #0e0f12;
}

/* 10-Column Bauhaus Floor Equalizer */
.voice-eq {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  align-items: end;
  height: 34px;
  margin: 0 -18px;
  padding: 0 12px;
}

.voice-eq-bar {
  background: currentColor;
  height: 4px;
  opacity: 0.42;
  transform-origin: bottom center;
  transition: height 90ms linear, opacity 120ms ease;
}

.voice-card.is-speaking .voice-eq-bar {
  opacity: 0.96;
}

.voice-eq.is-preview .voice-eq-bar {
  opacity: 0.72;
  animation: voicePreviewPulse 1.5s ease-in-out infinite;
}

.voice-eq.is-preview .voice-eq-bar:nth-child(1),
.voice-eq.is-preview .voice-eq-bar:nth-child(10) {
  height: 7px;
  animation-delay: 0ms;
}
.voice-eq.is-preview .voice-eq-bar:nth-child(2),
.voice-eq.is-preview .voice-eq-bar:nth-child(9) {
  height: 11px;
  animation-delay: 120ms;
}
.voice-eq.is-preview .voice-eq-bar:nth-child(3),
.voice-eq.is-preview .voice-eq-bar:nth-child(8) {
  height: 15px;
  animation-delay: 240ms;
}
.voice-eq.is-preview .voice-eq-bar:nth-child(4),
.voice-eq.is-preview .voice-eq-bar:nth-child(7) {
  height: 19px;
  animation-delay: 360ms;
}
.voice-eq.is-preview .voice-eq-bar:nth-child(5),
.voice-eq.is-preview .voice-eq-bar:nth-child(6) {
  height: 22px;
  animation-delay: 480ms;
}

/* In-Grid "+ Join Voice" Tile (Morphs into YOUR card on join) */
.join-voice-card {
  min-height: 196px;
  border-right: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  background: var(--bg-surface);
  color: var(--ink-primary);
  display: flex;
  flex-direction: column;
}

.join-voice-main {
  flex: 1;
  border: none;
  background: transparent;
  color: inherit;
  padding: 16px 18px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  transition: background-color 150ms ease, color 150ms ease;
}

.join-voice-main:hover {
  background: var(--mint);
  color: #0e0f12;
}

.join-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.join-plus {
  width: 36px;
  height: 36px;
  border: 2px solid currentColor;
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.join-voice-main:hover .join-plus {
  transform: rotate(90deg);
}

.join-tile-label {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: var(--display-track);
  text-transform: uppercase;
  display: block;
}

.join-tile-sub {
  font-size: 12.5px;
  opacity: 0.74;
  display: block;
  margin-top: 2px;
}

.join-listen-strip {
  border: none;
  border-top: 2px solid var(--rule);
  background: var(--bg-subtle);
  color: var(--ink-primary);
  padding: 9px 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 130ms ease, color 130ms ease;
}

.join-listen-strip:hover {
  background: var(--ink-primary);
  color: var(--ink-inv);
}

/* Empty Channel Tile (sits cleanly beside + Join Voice when 0 participants are in voice) */
.voice-empty-stage {
  min-height: 196px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  background: var(--bg-subtle);
  color: var(--ink-secondary);
}

.voice-idle-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
}

.voice-idle-bars span {
  display: block;
  width: 6px;
  background: var(--ink-secondary);
  opacity: 0.45;
}

.voice-idle-bars span:nth-child(1) {
  height: 8px;
}
.voice-idle-bars span:nth-child(2) {
  height: 18px;
}
.voice-idle-bars span:nth-child(3) {
  height: 26px;
}
.voice-idle-bars span:nth-child(4) {
  height: 14px;
}
.voice-idle-bars span:nth-child(5) {
  height: 22px;
}
.voice-idle-bars span:nth-child(6) {
  height: 10px;
}

.voice-empty-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.voice-empty-text strong {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-primary);
}

.voice-empty-text span {
  font-size: 13px;
  color: var(--ink-secondary);
}

.voice-inline-notice {
  margin: 0 !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
  padding: 10px 22px !important;
}

/* ================= Primary Chat Workspace ================= */
.chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg-surface);
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.log-toolbar {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 22px;
  border-bottom: 2px solid var(--rule);
  background: var(--bg-subtle);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  min-width: 180px;
  border: 2px solid var(--rule);
  background-color: var(--bg-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234a4f5c' stroke-width='2.6' stroke-linecap='square'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cline x1='21' y1='21' x2='15.8' y2='15.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 11px center;
  padding: 7px 11px 7px 34px;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  transition: border-color 120ms ease, background-color 120ms ease;
}

[data-theme="dark"] .search-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca2b2' stroke-width='2.6' stroke-linecap='square'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cline x1='21' y1='21' x2='15.8' y2='15.8'/%3E%3C/svg%3E");
}

.search-input:focus {
  border-color: var(--cobalt);
}

[data-theme="dark"] .search-input:focus {
  border-color: var(--acid);
}

.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.select-input {
  -webkit-appearance: none;
  appearance: none;
  border: 2px solid var(--rule);
  background-color: var(--bg-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 12 12'%3E%3Cpolygon points='1,3 11,3 6,9' fill='%230e0f12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding: 7px 32px 7px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

[data-theme="dark"] .select-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 12 12'%3E%3Cpolygon points='1,3 11,3 6,9' fill='%23f5f4ef'/%3E%3C/svg%3E");
}

.select-input:hover {
  background-color: var(--ochre);
  color: #0e0f12;
  border-color: #0e0f12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 12 12'%3E%3Cpolygon points='1,3 11,3 6,9' fill='%230e0f12'/%3E%3C/svg%3E");
}

.select-input:focus {
  border-color: var(--cobalt);
}

.log-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  scrollbar-width: thin;
  scrollbar-color: var(--rule) var(--bg-subtle);
}

.log-feed .empty-state {
  margin: 22px;
}

.log-entry {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  border-bottom: 1px solid var(--rule-soft);
  background: var(--bg-surface);
}

.log-entry.is-new {
  animation: curtainIn 160ms ease-out;
}

.log-entry.is-self {
  background: var(--self-msg-bg);
}

.msg-stripe {
  background: var(--cobalt);
}

.msg-stripe.tile-coral {
  background: var(--coral);
}

.msg-stripe.tile-cobalt {
  background: var(--cobalt);
}

.msg-stripe.tile-mint {
  background: var(--mint);
}

.msg-stripe.tile-ochre {
  background: var(--ochre);
}

.msg-stripe.tile-cyan {
  background: var(--cyan);
}

.log-entry-main {
  padding: 13px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.log-entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.log-author-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.log-author {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.log-type-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border: 1.5px solid var(--rule);
  background: var(--bg-subtle);
  color: var(--ink-primary);
}

.log-order-tuple {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-secondary);
}

.log-text-body {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Clickable Links & Flat Link Slabs */
.chat-link {
  color: var(--cobalt);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}

[data-theme="dark"] .chat-link {
  color: var(--acid);
}

.chat-link-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.chat-link-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 12px;
  border: 2px solid var(--rule);
  background: var(--bg-subtle);
  color: var(--ink-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.chat-link-card:hover {
  background: var(--acid);
  color: #0e0f12;
  border-color: #0e0f12;
}

.chat-link-host {
  white-space: nowrap;
}

.chat-link-path {
  opacity: 0.72;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}

/* Shared Inline Images */
.chat-image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.chat-image-btn {
  padding: 0;
  border: 2px solid var(--rule);
  background: var(--bg-subtle);
  overflow: hidden;
  cursor: zoom-in;
  display: block;
  max-width: 340px;
  transition: border-color 120ms ease;
}

.chat-image-btn:hover {
  border-color: var(--cobalt);
}

[data-theme="dark"] .chat-image-btn:hover {
  border-color: var(--acid);
}

.chat-image-thumb {
  display: block;
  max-width: 100%;
  max-height: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.log-json-pre {
  margin: 4px 0 0;
  padding: 10px 12px;
  background: var(--bg-subtle);
  border: 2px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.45;
  overflow-x: auto;
  color: var(--ink-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

.raw-jsonl-view {
  margin: 0;
  padding: 16px 22px;
  background: var(--code-dark-bg);
  color: var(--code-dark-ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  flex: 1;
}

/* ================= Inline Badges Flat Chat Composer ================= */
.composer {
  border-top: 2px solid var(--rule);
  background: var(--bg-surface);
  flex-shrink: 0;
  transition: background-color 140ms ease;
}

.composer.drag-over {
  background: var(--accent-action-bg);
  outline: 3px dashed var(--cobalt);
  outline-offset: -4px;
}

.composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 22px;
  border-bottom: 2px solid var(--rule);
  background: var(--bg-subtle);
}

.composer-modes {
  display: inline-flex;
  gap: 0;
  border: 2px solid var(--rule);
  background: var(--bg-surface);
}

.mode-btn {
  border: none;
  background: transparent;
  padding: 5px 13px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: background-color 110ms ease, color 110ms ease;
}

.mode-btn + .mode-btn {
  border-left: 2px solid var(--rule);
}

.mode-btn:hover:not(.active) {
  background: var(--bg-subtle);
  color: var(--ink-primary);
}

.mode-btn.active {
  background: var(--cobalt);
  color: #ffffff;
}

.chat-image-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 22px;
  background: var(--bg-subtle);
  border-bottom: 2px solid var(--rule);
}

.staged-image-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border: 2px solid var(--rule);
  background: var(--bg-surface);
}

.staged-image-chip img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  display: block;
}

.staged-image-meta {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--ink-secondary);
  max-width: 140px;
}

.staged-image-name {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staged-image-remove {
  border: 2px solid var(--rule);
  background: var(--bg-subtle);
  color: var(--ink-primary);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.staged-image-remove:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: #ffffff;
}

.composer-row {
  display: flex;
  align-items: stretch;
  min-height: 56px;
}

.composer-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.composer-text-input {
  flex: 1;
  width: 100%;
  border: none;
  background: transparent;
  padding: 15px 18px 15px 22px;
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  outline: none;
  min-width: 0;
}

.composer-text-input::placeholder {
  color: var(--ink-secondary);
  opacity: 0.82;
}

.comp-inline-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 12px;
  flex-shrink: 0;
}

.inline-chip {
  border: 1.5px solid var(--rule);
  background: var(--bg-subtle);
  color: var(--ink-primary);
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

.inline-chip-btn {
  cursor: pointer;
  background: var(--ochre);
  color: #0e0f12;
  border-color: #0e0f12;
  transition: background-color 110ms ease;
}

.inline-chip-btn:hover {
  background: var(--acid);
}

.composer-send-btn {
  border: none;
  border-left: 2px solid var(--rule);
  background: var(--cobalt);
  color: #ffffff;
  padding: 0 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background-color 120ms ease, color 120ms ease;
}

.composer-send-btn:hover {
  background: var(--acid);
  color: #0e0f12;
}

.composer-structured {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 22px;
}

.structured-meta-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.structured-meta-row .text-input {
  width: 170px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.preset-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.preset-chip {
  border: 2px solid var(--rule);
  background: var(--bg-subtle);
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-primary);
  cursor: pointer;
}

.preset-chip:hover {
  background: var(--acid);
  color: #0e0f12;
  border-color: #0e0f12;
}

#composer-error {
  margin: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
  padding: 10px 22px;
}

/* ================= Advanced Sidebar Rail (Flat Metro Controls) ================= */
.rail {
  scrollbar-width: thin;
  scrollbar-color: var(--rule) var(--bg-subtle);
}

.rail::-webkit-scrollbar,
.log-feed::-webkit-scrollbar,
.telemetry-log::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.rail::-webkit-scrollbar-track,
.log-feed::-webkit-scrollbar-track,
.telemetry-log::-webkit-scrollbar-track {
  background: var(--bg-subtle);
}

.rail::-webkit-scrollbar-thumb,
.log-feed::-webkit-scrollbar-thumb,
.telemetry-log::-webkit-scrollbar-thumb {
  background: var(--rule);
}

/* Global flat Metro checkbox fallback (zero native rounded browser checkboxes) */
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--rule);
  background: var(--bg-surface);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  margin: 0;
  transition: background-color 120ms ease, border-color 120ms ease;
}

input[type="checkbox"]:checked {
  background: var(--mint);
  border-color: #0e0f12;
}

input[type="checkbox"]:checked::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2.5px solid #0e0f12;
  border-bottom: 2.5px solid #0e0f12;
  transform: rotate(-45deg) translateY(-1px);
}

.rail .panel {
  border-bottom: 2px solid var(--rule);
  background: var(--bg-surface);
}

.rail .panel-header {
  padding: 11px 16px;
  background: var(--bg-subtle);
  border-left: 5px solid var(--cobalt);
}

.rail > .panel:nth-of-type(2) .panel-header {
  border-left-color: var(--mint);
}

.rail > .diagnostics-panel .panel-header {
  border-left-color: var(--ochre);
}

.rail .panel-body {
  padding: 14px 16px;
  background: var(--bg-surface);
}

.btn-link {
  border: 2px solid var(--rule);
  background: var(--bg-surface);
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-primary);
  cursor: pointer;
  transition: background-color 110ms ease, color 110ms ease;
}

.btn-link:hover {
  background: var(--acid);
  border-color: #0e0f12;
  color: #0e0f12;
}

/* Key / Passphrase Accordion */
.e2ee-bar {
  margin-top: 12px;
  background: var(--bg-subtle);
  border: 2px solid var(--rule);
  border-left: 5px solid var(--cobalt);
}

.e2ee-bar-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-primary);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background-color 110ms ease;
}

.e2ee-bar-summary:hover {
  background: var(--bg-surface);
}

.e2ee-bar-summary > span:first-child {
  padding: 2px 7px;
  background: var(--ink-primary);
  color: var(--ink-inv);
  font-size: 10px;
}

.e2ee-bar-summary::-webkit-details-marker {
  display: none;
}

.e2ee-summary-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#e2ee-mode-label {
  color: var(--ink-secondary);
}

.e2ee-toggle-hint {
  padding: 2px 7px;
  border: 1.5px solid var(--rule);
  background: var(--bg-surface);
  color: var(--ink-primary);
  font-size: 9.5px;
  transition: background-color 110ms ease, color 110ms ease;
}

.e2ee-bar[open] .e2ee-toggle-hint,
.e2ee-bar-summary:hover .e2ee-toggle-hint {
  background: var(--acid);
  border-color: #0e0f12;
  color: #0e0f12;
}

.e2ee-bar-content {
  padding: 10px 11px 11px;
  border-top: 2px solid var(--rule);
  background: var(--bg-surface);
}

.e2ee-bar-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.e2ee-bar-row .text-input {
  flex: 1;
  min-width: 0;
  padding: 6px 9px;
  font-size: 12px;
  background: var(--bg-subtle);
}

.e2ee-bar-row .text-input:focus {
  background: var(--bg-surface);
}

.e2ee-bar-hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--ink-secondary);
  line-height: 1.4;
}

.quick-banner {
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 2px solid var(--rule);
  border-left: 5px solid var(--cobalt);
  background: var(--accent-action-bg);
  color: var(--accent-action-ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-banner-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.quick-banner-sub {
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

/* Long-Lived Reusable Room Link Card */
.room-link-card {
  padding: 12px;
  border: 2px solid var(--rule);
  border-left: 5px solid var(--cobalt);
  background: var(--bg-subtle);
  margin-bottom: 12px;
}

.room-link-card.is-active {
  background: var(--bg-surface);
  border-color: var(--rule);
  border-left: 5px solid var(--mint);
}

.room-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.room-card-title {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-create-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.room-create-row .text-input {
  flex: 1;
  min-width: 0;
  padding: 6px 9px;
  font-size: 12.5px;
  background: var(--bg-surface);
}

.room-link-input {
  width: 100%;
  border: 2px solid var(--rule);
  background: var(--bg-subtle);
  color: var(--ink-primary);
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  outline: none;
  text-overflow: ellipsis;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.room-link-input:focus {
  border-color: var(--cobalt);
  background: var(--bg-surface);
}

.connect-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.connect-divider::before,
.connect-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--rule-soft);
}

.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.role-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 5px;
  padding: 12px;
  border: 2px solid var(--rule);
  border-top: 4px solid var(--ochre);
  background: var(--bg-subtle);
  color: var(--ink-primary);
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.role-card:hover {
  background: var(--ochre);
  border-color: #0e0f12;
  color: #0e0f12;
}

.role-card.primary {
  background: var(--cobalt);
  border-color: var(--rule);
  border-top: 4px solid var(--acid);
  color: #ffffff;
}

.role-card.primary:hover {
  background: var(--acid);
  border-color: #0e0f12;
  color: #0e0f12;
}

.role-card-title {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
}

.role-card-desc {
  font-size: 11.5px;
  line-height: 1.38;
  opacity: 0.86;
}

.wizard-flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wizard-step {
  border: 2px solid var(--rule-soft);
  border-left: 4px solid var(--rule-soft);
  background: var(--bg-subtle);
  padding: 10px 12px;
}

.wizard-step.active {
  background: var(--bg-surface);
  border-color: var(--rule);
  border-left: 4px solid var(--cobalt);
}

.wizard-step.done {
  background: var(--accent-live-bg);
  border-color: var(--rule);
  border-left: 4px solid var(--mint);
}

.wizard-step.upcoming {
  opacity: 0.6;
}

.wizard-step-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-num {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--bg-surface);
  color: var(--ink-primary);
  border: 2px solid var(--rule);
}

.wizard-step.active .step-num {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #ffffff;
}

.wizard-step.done .step-num {
  background: var(--mint);
  border-color: #0e0f12;
  color: #0e0f12;
}

.wizard-step-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-primary);
  flex: 1;
}

.wizard-step-body {
  margin-top: 8px;
  padding-left: 30px;
}

/* Form Controls & Metro Buttons (Advanced Panels & Dialogs) */
.step-hint {
  font-size: 11.5px;
  color: var(--ink-secondary);
  margin: 0 0 10px;
  line-height: 1.45;
}

.code-box,
.text-input,
.json-input {
  width: 100%;
  border: 2px solid var(--rule);
  background: var(--bg-surface);
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  transition: border-color 120ms ease;
}

.code-box,
.json-input {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.45;
  resize: vertical;
  word-break: break-all;
}

.code-box:focus,
.text-input:focus,
.json-input:focus {
  border-color: var(--cobalt);
}

[data-theme="dark"] .code-box:focus,
[data-theme="dark"] .text-input:focus,
[data-theme="dark"] .json-input:focus {
  border-color: var(--acid);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border: 2px solid var(--rule);
  background: var(--bg-surface);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.btn:hover:not(:disabled) {
  background: var(--ink-primary);
  color: var(--ink-inv);
}

.btn.is-active {
  background: var(--acid);
  border-color: #0e0f12;
  color: #0e0f12;
}

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

.btn-primary {
  background: #0e0f12;
  border-color: #0e0f12;
  color: #ffffff;
}

[data-theme="dark"] .btn-primary {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--acid);
  border-color: #0e0f12;
  color: #0e0f12;
}

.btn-live {
  background: var(--mint);
  border-color: #0e0f12;
  color: #0e0f12;
}

.btn-live:hover:not(:disabled) {
  background: var(--acid);
  color: #0e0f12;
}

.btn-accent {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #ffffff;
}

.btn-accent:hover:not(:disabled) {
  background: var(--cobalt-deep);
  border-color: var(--cobalt-deep);
  color: #ffffff;
}

.btn-danger {
  background: var(--coral);
  border-color: var(--coral);
  color: #ffffff;
}

.btn-danger:hover:not(:disabled) {
  background: var(--coral-deep);
  border-color: var(--coral-deep);
  color: #ffffff;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 10.5px;
}

.inline-notice {
  margin-top: 10px;
  padding: 8px 11px;
  font-size: 12px;
  line-height: 1.4;
  border: 2px solid var(--rule);
}

.inline-notice.info {
  background: var(--accent-action-bg);
  border-color: var(--accent-action-border);
  color: var(--accent-action-ink);
}

.inline-notice.success {
  background: var(--accent-live-bg);
  border-color: var(--accent-live-border);
  color: var(--accent-live-ink);
}

.inline-notice.warn {
  background: var(--accent-warn-bg);
  border-color: var(--accent-warn-border);
  color: var(--accent-warn-ink);
}

.inline-notice.error {
  background: var(--accent-danger-bg);
  border-color: var(--accent-danger-border);
  color: var(--accent-danger-ink);
}

/* Topology SVG & Peer List */
.topology-wrap {
  background: var(--bg-surface);
  border: 2px solid var(--rule);
  margin-bottom: 12px;
  overflow: hidden;
}

.topology-svg {
  width: 100%;
  height: 160px;
  display: block;
}

.topology-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  background: var(--bg-subtle);
  border-top: 2px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.legend-items {
  display: flex;
  gap: 10px;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  vertical-align: -1px;
  border: 1px solid #0e0f12;
}

.legend-dot.live-dot {
  background: var(--mint);
}

.legend-dot.warn-dot {
  background: var(--ochre);
}

/* Flat Metro Switch Row (#auto-mesh-toggle) */
.toggle-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  padding: 0;
  background: var(--bg-subtle);
  border: 2px solid var(--rule);
  margin-bottom: 12px;
  transition: background-color 120ms ease;
}

.toggle-row:hover {
  background: var(--bg-surface);
}

.toggle-row label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-primary);
  cursor: pointer;
  user-select: none;
  min-width: 0;
}

.toggle-row input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 38px;
  height: 20px;
  border: 2px solid var(--rule);
  background: var(--bg-surface);
  position: relative;
  display: inline-block;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.toggle-row input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border: none;
  background: var(--ink-primary);
  transform: translateX(0);
  transition: transform 150ms cubic-bezier(0.22, 1, 0.36, 1), background-color 140ms ease;
}

.toggle-row input[type="checkbox"]:checked {
  background: var(--mint);
  border-color: #0e0f12;
}

.toggle-row input[type="checkbox"]:checked::after {
  transform: translateX(18px);
  background: #0e0f12;
}

#auto-mesh-badge {
  display: grid;
  place-items: center;
  min-width: 48px;
  padding: 0 10px;
  border-left: 2px solid var(--rule);
  background: var(--bg-surface);
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: background-color 140ms ease, color 140ms ease;
}

.toggle-row:has(input:checked) #auto-mesh-badge {
  background: var(--mint);
  color: #0e0f12;
}

/* Speaker-Matched Flat Metro Peer List */
.peer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.peer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 2px solid var(--rule);
  border-left: 5px solid var(--cobalt);
  background: var(--bg-subtle);
}

.peer-item.tile-coral {
  border-left-color: var(--coral);
}

.peer-item.tile-cobalt {
  border-left-color: var(--cobalt);
}

.peer-item.tile-ochre {
  border-left-color: var(--ochre);
}

.peer-item.tile-cyan {
  border-left-color: var(--cyan);
}

.peer-item.is-pending {
  border-left-color: var(--ochre);
  border-style: dashed;
  border-left-style: solid;
}

.peer-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.peer-name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.peer-id {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-secondary);
  overflow-wrap: break-word;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid var(--rule);
  background: var(--bg-surface);
  color: var(--ink-primary);
}

.badge.auto {
  background: var(--mint);
  border-color: #0e0f12;
  color: #0e0f12;
}

.badge.pending {
  background: var(--ochre);
  border-color: #0e0f12;
  color: #0e0f12;
}

.empty-state {
  padding: 20px 16px;
  text-align: center;
  color: var(--ink-secondary);
  font-size: 13px;
  border: 2px dashed var(--rule-soft);
  background: var(--bg-subtle);
}

/* Diagnostics / Activity Panel */
.diagnostics-summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: background-color 110ms ease;
}

.diagnostics-summary:hover {
  background: var(--bg-surface);
}

.diagnostics-summary::-webkit-details-marker {
  display: none;
}

.diagnostics-panel:not([open]) .diagnostics-summary {
  border-bottom: none;
}

.telemetry-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.metric-tile {
  background: var(--bg-subtle);
  border: 2px solid var(--rule);
  border-top: 4px solid var(--cobalt);
  padding: 7px 8px;
}

.metric-tile:nth-child(2) {
  border-top-color: var(--ochre);
}

.metric-tile:nth-child(3) {
  border-top-color: var(--mint);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  display: block;
  margin-bottom: 2px;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-primary);
}

.telemetry-log {
  max-height: 170px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border: 2px solid var(--rule);
  background: var(--bg-canvas);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-secondary);
  scrollbar-width: thin;
  scrollbar-color: var(--rule) var(--bg-subtle);
}

.telemetry-entry {
  padding: 5px 7px;
  background: var(--bg-surface);
  border-left: 4px solid var(--rule);
  word-break: break-word;
}

.telemetry-entry.event-auto {
  border-left-color: var(--mint);
}

.telemetry-entry.event-sync {
  border-left-color: var(--cobalt);
}

.telemetry-entry.event-err {
  border-left-color: var(--coral);
}

/* ================= Image Lightbox Modal ================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(11, 12, 15, 0.92);
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox-img {
  max-width: min(94vw, 1100px);
  max-height: 88vh;
  border: 3px solid var(--acid);
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 2px solid #ffffff;
  background: #0e0f12;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-close:hover {
  background: var(--acid);
  border-color: var(--acid);
  color: #0e0f12;
}

/* ================= Toast (Cleared Above Bottom Composer Bar) ================= */
.toast {
  position: fixed;
  right: 20px;
  bottom: 72px;
  z-index: 50;
  max-width: 420px;
  padding: 10px 16px;
  background: #0e0f12;
  color: var(--acid);
  border: 2px solid var(--acid);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= Responsive Breakpoints ================= */
@media (max-width: 1020px) {
  html[data-advanced="true"] .app-shell {
    height: auto;
    overflow: visible;
  }

  html[data-advanced="true"] .workbench {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .rail {
    border-left: none;
    border-top: 2px solid var(--rule);
    overflow-y: visible;
  }

  .chip-secondary {
    display: none;
  }
}

@media (max-width: 820px) {
  html[data-advanced="false"][data-in-room="false"] .app-shell {
    height: auto;
    overflow: visible;
  }

  .lobby-doors {
    flex-direction: column;
  }

  .door-create {
    border-right: none;
    border-bottom: 3px solid #0e0f12;
  }

  .lobby-door {
    padding: 28px 22px;
  }

  .name-hero-wrap {
    min-width: 0;
    padding: 0 14px;
    gap: 10px;
  }

  .name-hero-input {
    width: 140px;
    font-size: 17px;
  }

  .name-hero-input:focus {
    width: 165px;
  }

  .stat-chip.room-only {
    display: none;
  }
}

@media (max-width: 560px) {
  .topbar {
    height: 56px;
    min-height: 56px;
  }

  .name-hero-tag {
    display: none;
  }

  .name-hero-input {
    width: 124px;
    font-size: 16px;
  }

  .top-bar-btn {
    padding: 0 12px;
    font-size: 10.5px;
  }

  .simple-room-title {
    font-size: 16px;
    padding: 10px 14px;
  }

  .ribbon-btn {
    padding: 10px 14px;
    font-size: 10.5px;
  }

  .voice-mosaic {
    grid-template-columns: 1fr;
  }

  .comp-inline-badges .inline-chip:not(.inline-chip-btn) {
    display: none;
  }

  .composer-send-btn {
    padding: 0 16px;
  }
}
