:root {
  color-scheme: dark;
  --bg: #090a0a;
  --panel: #111314;
  --panel-strong: #181b1c;
  --line: #2b3030;
  --line-bright: #42494a;
  --text: #f7f7f2;
  --muted: #b8bfbd;
  --accent: #ff8a2d;
  --accent-strong: #ff6f1f;
  --danger: #ff4d5f;
  --warn: #ffc247;
  --listen: #f0f0ea;
  --signal: #6fb7ff;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 68% 12%, rgba(255, 138, 45, 0.08), transparent 28%),
    linear-gradient(135deg, #080909 0%, #111414 58%, #090a0a 100%);
  color: var(--text);
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.shell {
  min-height: 100vh;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

.login-panel {
  min-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 48px;
  align-items: center;
  min-width: 0;
}

.brand-block h1 {
  margin: 0;
  font-size: clamp(56px, 9vw, 112px);
  line-height: 0.9;
  letter-spacing: 0;
}

.brand-lockup {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.broxmedia-logo,
.program-mark {
  display: block;
  object-fit: contain;
}

.broxmedia-logo {
  object-position: left center;
}

.hero-broxmedia {
  width: min(520px, 78vw);
  height: 58px;
}

.program-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.hero-mark {
  width: clamp(92px, 14vw, 132px);
  height: clamp(74px, 11vw, 104px);
}

.header-lockup {
  gap: 5px;
}

.header-broxmedia {
  width: 170px;
  height: 34px;
}

.compact-lockup {
  gap: 8px;
}

.header-mark {
  width: 42px;
  height: 34px;
}

.compact-lockup span {
  color: var(--text);
  font-size: 24px;
  font-weight: 1000;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.subcopy {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.join-form,
.channel-strip,
.people-section,
.event-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 19, 20, 0.94);
}

.join-form {
  display: grid;
  gap: 18px;
  padding: 24px;
  min-width: 0;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select {
  min-height: 48px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-bright);
  border-radius: 6px;
  background: #070808;
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 212, 143, 0.18);
}

.primary-action,
.secondary-action,
.ghost-button,
.mode-button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
}

.primary-action {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: #160b03;
  font-weight: 900;
}

.secondary-action {
  border: 1px solid var(--line-bright);
  background: #171a1a;
  color: var(--text);
  font-weight: 900;
}

.ghost-button,
.mode-button {
  border: 1px solid var(--line-bright);
  background: var(--panel-strong);
  font-weight: 800;
}

.ghost-button.active,
.mode-button.active {
  border-color: var(--accent);
  background: rgba(255, 138, 45, 0.16);
  color: var(--accent);
}

.ghost-button.danger {
  border-color: rgba(255, 77, 95, 0.58);
  color: #ffd7dc;
}

.error-text {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-weight: 700;
}

.notice-text {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.notice-text.warning {
  color: #ffd4b0;
}

.notice-text.ok {
  color: var(--accent);
}

.intercom-view {
  display: grid;
  gap: 18px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.topbar h2 {
  margin: 0;
  font-size: 28px;
}

.status-cluster {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-badge.online {
  border-color: rgba(255, 138, 45, 0.65);
  color: var(--accent);
}

.status-badge.offline {
  border-color: rgba(255, 77, 95, 0.45);
  color: var(--danger);
}

.status-badge.talking {
  border-color: rgba(255, 138, 45, 0.78);
  background: rgba(255, 138, 45, 0.16);
  color: var(--accent);
}

.status-badge.idle {
  border-color: rgba(240, 240, 234, 0.38);
  color: var(--listen);
}

.status-badge.network {
  border-color: rgba(111, 183, 255, 0.44);
  color: var(--signal);
}

.channel-strip {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 140px 120px;
  gap: 12px;
  align-items: end;
  padding: 16px;
}

.talk-surface {
  display: grid;
  grid-template-columns: minmax(280px, 460px) minmax(220px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.ptt-button {
  min-height: 320px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 138, 45, 0.46);
  border-radius: 8px;
  background: rgba(15, 17, 17, 0.98);
  color: var(--text);
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.ptt-icon {
  display: block;
  width: clamp(126px, 34vw, 186px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 138, 45, 0.45);
  border-radius: 50%;
  background:
    linear-gradient(var(--text), var(--text)) center 32% / 23% 34% no-repeat,
    linear-gradient(var(--text), var(--text)) center 62% / 5px 17% no-repeat,
    linear-gradient(var(--text), var(--text)) center 77% / 34% 5px no-repeat,
    radial-gradient(circle at center 37%, transparent 29%, rgba(255, 138, 45, 0.9) 30% 32%, transparent 33%),
    radial-gradient(circle, rgba(255, 138, 45, 0.16), rgba(255, 138, 45, 0.02) 66%, transparent 67%);
  box-shadow: inset 0 0 28px rgba(255, 138, 45, 0.12), 0 18px 50px rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.ptt-button.active {
  border-color: var(--accent);
  background: #3a1b09;
  transform: scale(0.985);
}

.ptt-button.muted {
  border-color: rgba(255, 77, 95, 0.5);
  background: #321018;
}

.control-column {
  display: grid;
  grid-template-rows: 64px auto auto auto auto 1fr;
  gap: 14px;
  min-height: 320px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.audio-control {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.level-row {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.level-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.level-label strong {
  color: var(--text);
  white-space: nowrap;
}

.control-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.control-line strong {
  color: var(--text);
  white-space: nowrap;
}

input[type="range"] {
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--accent);
}

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

.volume-stepper {
  display: none;
}

.volume-stepper button {
  min-height: 40px;
  border: 1px solid var(--line-bright);
  border-radius: 6px;
  background: #171a1a;
  color: var(--text);
  cursor: pointer;
  font-size: 20px;
  font-weight: 1000;
}

.volume-stepper button:active {
  border-color: var(--accent);
  background: rgba(255, 138, 45, 0.16);
  color: var(--accent);
}

.audio-activate {
  min-height: 48px;
  border: 1px solid var(--line-bright);
  border-radius: 6px;
  background: #171a1a;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
}

.audio-activate.active {
  border-color: rgba(255, 138, 45, 0.65);
  background: rgba(255, 138, 45, 0.14);
  color: var(--accent);
}

.meter-shell {
  overflow: hidden;
  height: 28px;
  border: 1px solid var(--line-bright);
  border-radius: 6px;
  background: #050609;
}

.meter-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ffd6a1, var(--accent), var(--accent-strong));
  transition: width 60ms linear;
}

.audio-state {
  margin: 0;
  align-self: end;
  color: var(--muted);
  line-height: 1.45;
}

.relay-state {
  align-self: start;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.relay-state.relay-active {
  color: var(--accent);
}

.relay-state.relay-warning {
  color: var(--warn);
}

.relay-state.relay-error {
  color: var(--danger);
}

.people-section,
.event-section {
  padding: 16px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.section-heading h3 {
  margin: 0;
  font-size: 17px;
}

.section-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.user-card {
  min-height: 92px;
  display: grid;
  gap: 8px;
  align-content: center;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-bright);
  border-radius: 8px;
  background: #0d0f10;
  padding: 12px;
}

.user-card.talking {
  border-left-color: var(--accent);
  background: rgba(255, 138, 45, 0.09);
}

.user-card.all-call {
  border-left-color: var(--warn);
}

.user-card.off-channel {
  opacity: 0.62;
}

.user-name {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 900;
}

.user-meta,
.user-state {
  color: var(--muted);
  font-size: 13px;
}

.user-state {
  color: var(--listen);
  font-weight: 800;
}

.user-audio {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.user-audio.ok,
.user-audio.local {
  color: var(--accent);
}

.user-audio.pending {
  color: var(--warn);
}

.user-audio.bad {
  color: var(--danger);
}

.user-audio.muted {
  color: var(--muted);
}

.event-log {
  max-height: 150px;
  margin: 0;
  padding-left: 22px;
  overflow: auto;
  color: var(--muted);
  line-height: 1.5;
}

#remoteAudio {
  display: none;
}

@media (max-width: 760px) {
  html,
  body {
    height: 100%;
  }

  body {
    min-height: 100dvh;
    overscroll-behavior: none;
  }

  body.intercom-active {
    position: fixed;
    inset: 0;
    overflow: hidden;
    width: 100%;
  }

  .shell {
    height: 100dvh;
    min-height: 0;
    padding: 10px;
    overflow: hidden;
  }

  .login-panel,
  .talk-surface,
  .channel-strip {
    grid-template-columns: 1fr;
  }

  .login-panel {
    height: calc(100dvh - 20px);
    min-height: 0;
    align-content: center;
    gap: 18px;
    overflow: auto;
  }

  .join-form {
    gap: 10px;
    padding: 16px;
  }

  input,
  select,
  .primary-action,
  .secondary-action {
    min-height: 42px;
  }

  .topbar {
    min-height: 0;
    align-items: center;
    flex-direction: row;
    padding-bottom: 8px;
    gap: 8px;
  }

  .status-cluster {
    justify-content: flex-end;
    gap: 6px;
  }

  .status-badge {
    min-height: 26px;
    padding: 0 8px;
    font-size: 10px;
  }

  .intercom-view {
    height: calc(100dvh - 20px);
    grid-template-rows: auto auto minmax(0, 1fr) minmax(124px, 18dvh);
    gap: 8px;
    overflow: hidden;
    transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  }

  body.intercom-active.talking-mode {
    background:
      radial-gradient(circle at 50% 44%, rgba(255, 138, 45, 0.2), transparent 34%),
      linear-gradient(135deg, #110904 0%, #17100b 58%, #090a0a 100%);
  }

  body.intercom-active.talking-mode .intercom-view {
    background:
      radial-gradient(circle at 50% 42%, rgba(255, 138, 45, 0.16), transparent 34%),
      linear-gradient(180deg, rgba(255, 138, 45, 0.08), transparent 48%);
  }

  body.intercom-active.talking-mode .topbar,
  body.intercom-active.talking-mode .channel-strip,
  body.intercom-active.talking-mode .people-section,
  body.intercom-active.talking-mode .control-column {
    border-color: rgba(255, 138, 45, 0.58);
    box-shadow: 0 0 0 1px rgba(255, 138, 45, 0.1);
  }

  .operator-title {
    min-width: 0;
  }

  .header-lockup {
    gap: 2px;
  }

  .header-broxmedia {
    width: 118px;
    height: 24px;
  }

  .compact-lockup {
    display: none;
  }

  .topbar h2 {
    max-width: 42vw;
    overflow: hidden;
    margin-top: 2px;
    font-size: 15px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .brand-block h1 {
    font-size: 48px;
  }

  .hero-broxmedia {
    width: min(360px, 88vw);
    height: 40px;
  }

  .program-lockup {
    gap: 10px;
  }

  .hero-mark {
    width: 66px;
    height: 54px;
  }

  .subcopy {
    display: none;
  }

  .brand-block,
  .join-form,
  .subcopy {
    max-width: 100%;
    min-width: 0;
  }

  .channel-strip {
    grid-template-columns: minmax(0, 1fr) 72px 64px;
    gap: 8px;
    padding: 8px;
  }

  .channel-strip label {
    gap: 4px;
    font-size: 10px;
  }

  .channel-strip select,
  .channel-strip .ghost-button {
    min-height: 38px;
    padding: 0 8px;
    font-size: 12px;
  }

  .talk-surface {
    min-height: 0;
    grid-template-rows: minmax(150px, 1fr) auto;
    gap: 8px;
    justify-items: center;
  }

  .ptt-button {
    position: relative;
    min-height: 0;
    width: min(56vw, 32dvh, 230px);
    height: auto;
    aspect-ratio: 1;
    align-self: center;
    border-width: 3px;
    border-radius: 50%;
    background:
      radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.08), transparent 28%),
      radial-gradient(circle at center, #242829 0%, #151819 66%, #080909 100%);
    box-shadow:
      inset 0 18px 30px rgba(255, 255, 255, 0.045),
      inset 0 -24px 34px rgba(0, 0, 0, 0.48),
      0 20px 42px rgba(0, 0, 0, 0.48);
    -webkit-touch-callout: none;
    touch-action: none;
  }

  .ptt-button::before,
  .ptt-button::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
  }

  .ptt-button::before {
    inset: 9px;
    border: 1px solid rgba(255, 138, 45, 0.38);
    box-shadow: inset 0 0 24px rgba(255, 138, 45, 0.08);
  }

  .ptt-button::after {
    inset: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .ptt-button.active {
    background:
      radial-gradient(circle at 50% 34%, rgba(255, 207, 158, 0.38), transparent 26%),
      radial-gradient(circle at center, #ff9a37 0%, #ff7d24 62%, #80340d 100%);
    border-color: rgba(255, 198, 120, 0.95);
    box-shadow:
      inset 0 16px 28px rgba(255, 255, 255, 0.2),
      inset 0 -26px 36px rgba(75, 27, 3, 0.42),
      0 0 0 5px rgba(255, 138, 45, 0.16),
      0 22px 46px rgba(255, 111, 31, 0.24);
    transform: scale(0.97);
  }

  .ptt-button.active::before {
    border-color: rgba(255, 245, 224, 0.68);
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.18);
  }

  .ptt-button.muted {
    background:
      radial-gradient(circle at center, #30151a 0%, #1a0b0f 68%, #080909 100%);
  }

  .ptt-icon {
    position: relative;
    z-index: 1;
    width: min(36vw, 19dvh, 116px);
    border-color: rgba(255, 138, 45, 0.36);
    background:
      linear-gradient(var(--text), var(--text)) center 32% / 23% 34% no-repeat,
      linear-gradient(var(--text), var(--text)) center 62% / 5px 17% no-repeat,
      linear-gradient(var(--text), var(--text)) center 77% / 34% 5px no-repeat,
      radial-gradient(circle at center 37%, transparent 29%, rgba(255, 138, 45, 0.92) 30% 32%, transparent 33%),
      radial-gradient(circle, rgba(255, 138, 45, 0.12), rgba(255, 138, 45, 0.02) 66%, transparent 67%);
    box-shadow: none;
  }

  .ptt-button.active .ptt-icon {
    border-color: rgba(255, 250, 238, 0.52);
    background:
      linear-gradient(#160b03, #160b03) center 32% / 23% 34% no-repeat,
      linear-gradient(#160b03, #160b03) center 62% / 5px 17% no-repeat,
      linear-gradient(#160b03, #160b03) center 77% / 34% 5px no-repeat,
      radial-gradient(circle at center 37%, transparent 29%, rgba(22, 11, 3, 0.78) 30% 32%, transparent 33%),
      radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 66%, transparent 67%);
  }

  .control-column {
    min-height: 0;
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-rows: 24px 34px 18px;
    gap: 8px;
    padding: 8px;
  }

  .mode-button,
  .audio-activate {
    min-height: 38px;
    font-size: 12px;
  }

  .mic-gain-control {
    display: none;
  }

  .listen-volume-control {
    display: grid;
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: 40px minmax(128px, 1fr) 38px;
    align-items: center;
    gap: 8px;
  }

  .listen-volume-control .control-line {
    display: contents;
  }

  .listen-volume-control .control-line span {
    grid-column: 1;
    color: var(--muted);
    font-size: 0;
    font-weight: 1000;
    white-space: nowrap;
  }

  .listen-volume-control .control-line span::after {
    content: "OUT";
    font-size: 10px;
  }

  .listen-volume-control .control-line strong {
    grid-column: 3;
    color: var(--text);
    font-size: 10px;
    text-align: right;
  }

  .listen-volume-control input[type="range"] {
    display: none;
  }

  .volume-stepper {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    min-width: 0;
  }

  .volume-stepper button {
    min-height: 44px;
    padding: 0;
    border-radius: 8px;
    font-size: 24px;
    touch-action: manipulation;
  }

  .audio-button-row {
    display: none;
  }

  .mode-button {
    grid-row: 1 / 4;
  }

  .mic-level-row {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: 42px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 6px;
  }

  .mic-level-row .level-label {
    display: contents;
  }

  .mic-level-row .level-label span {
    grid-column: 1;
    color: var(--muted);
    font-size: 10px;
    font-weight: 1000;
  }

  .mic-level-row .level-label strong {
    grid-column: 3;
    color: var(--text);
    font-size: 10px;
    text-align: right;
  }

  .meter-shell {
    grid-column: 2;
    height: 24px;
  }

  .audio-state {
    grid-column: 2;
    grid-row: 3;
    align-self: center;
    overflow: hidden;
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .relay-state {
    display: none;
  }

  .people-section {
    min-height: 0;
    overflow: hidden;
    padding: 8px;
  }

  .section-heading {
    margin-bottom: 6px;
  }

  .section-heading h3 {
    font-size: 14px;
  }

  .section-heading span {
    font-size: 10px;
  }

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

  .user-card {
    min-height: 0;
    gap: 3px;
    padding: 6px;
    border-left-width: 3px;
  }

  .user-name {
    font-size: 12px;
  }

  .user-meta,
  .user-state,
  .user-audio {
    overflow: hidden;
    font-size: 9px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .event-section {
    display: none;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  body.intercom-active {
    position: fixed;
    inset: 0;
    overflow: hidden;
    width: 100%;
  }

  .shell {
    height: 100dvh;
    min-height: 0;
    padding: 8px;
    overflow: hidden;
  }

  .intercom-view {
    height: calc(100dvh - 16px);
    display: grid;
    grid-template-columns: minmax(210px, 42vw) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    overflow: hidden;
  }

  .topbar {
    grid-column: 1 / -1;
    min-height: 0;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--line);
  }

  .header-broxmedia {
    width: 112px;
    height: 22px;
  }

  .compact-lockup {
    display: none;
  }

  .topbar h2 {
    max-width: 42vw;
    overflow: hidden;
    margin: 1px 0 0;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .status-cluster {
    gap: 6px;
  }

  .status-badge {
    min-height: 24px;
    padding: 0 8px;
    font-size: 10px;
  }

  .channel-strip {
    display: none;
  }

  .talk-surface {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px;
    justify-items: center;
  }

  .ptt-button {
    position: relative;
    width: min(34vw, 52dvh, 230px);
    height: auto;
    aspect-ratio: 1;
    align-self: center;
    min-height: 0;
    border-width: 3px;
    border-radius: 50%;
    background:
      radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.08), transparent 28%),
      radial-gradient(circle at center, #242829 0%, #151819 66%, #080909 100%);
    box-shadow:
      inset 0 18px 30px rgba(255, 255, 255, 0.045),
      inset 0 -24px 34px rgba(0, 0, 0, 0.48),
      0 20px 42px rgba(0, 0, 0, 0.48);
  }

  .ptt-button::before,
  .ptt-button::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
  }

  .ptt-button::before {
    inset: 8px;
    border: 1px solid rgba(255, 138, 45, 0.38);
    box-shadow: inset 0 0 24px rgba(255, 138, 45, 0.08);
  }

  .ptt-button::after {
    inset: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .ptt-button.active {
    background:
      radial-gradient(circle at 50% 34%, rgba(255, 207, 158, 0.38), transparent 26%),
      radial-gradient(circle at center, #ff9a37 0%, #ff7d24 62%, #80340d 100%);
    border-color: rgba(255, 198, 120, 0.95);
    box-shadow:
      inset 0 16px 28px rgba(255, 255, 255, 0.2),
      inset 0 -26px 36px rgba(75, 27, 3, 0.42),
      0 0 0 5px rgba(255, 138, 45, 0.16),
      0 22px 46px rgba(255, 111, 31, 0.24);
    transform: scale(0.97);
  }

  .ptt-button.active::before {
    border-color: rgba(255, 245, 224, 0.68);
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.18);
  }

  .ptt-button.muted {
    background:
      radial-gradient(circle at center, #30151a 0%, #1a0b0f 68%, #080909 100%);
  }

  .ptt-icon {
    position: relative;
    z-index: 1;
    width: min(21vw, 25dvh, 118px);
    border-color: rgba(255, 138, 45, 0.36);
    background:
      linear-gradient(var(--text), var(--text)) center 32% / 23% 34% no-repeat,
      linear-gradient(var(--text), var(--text)) center 62% / 5px 17% no-repeat,
      linear-gradient(var(--text), var(--text)) center 77% / 34% 5px no-repeat,
      radial-gradient(circle at center 37%, transparent 29%, rgba(255, 138, 45, 0.92) 30% 32%, transparent 33%),
      radial-gradient(circle, rgba(255, 138, 45, 0.12), rgba(255, 138, 45, 0.02) 66%, transparent 67%);
    box-shadow: none;
  }

  .ptt-button.active .ptt-icon {
    border-color: rgba(255, 250, 238, 0.52);
    background:
      linear-gradient(#160b03, #160b03) center 32% / 23% 34% no-repeat,
      linear-gradient(#160b03, #160b03) center 62% / 5px 17% no-repeat,
      linear-gradient(#160b03, #160b03) center 77% / 34% 5px no-repeat,
      radial-gradient(circle at center 37%, transparent 29%, rgba(22, 11, 3, 0.78) 30% 32%, transparent 33%),
      radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 66%, transparent 67%);
  }

  .control-column {
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    grid-template-rows: 32px 28px 16px;
    gap: 6px;
    padding: 7px;
  }

  .mode-button {
    grid-row: 1 / 4;
    min-height: 32px;
    font-size: 11px;
  }

  .mic-gain-control,
  .audio-button-row,
  .relay-state,
  .event-section {
    display: none;
  }

  .mic-level-row {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 6px;
  }

  .mic-level-row .level-label {
    display: contents;
  }

  .mic-level-row .level-label span,
  .mic-level-row .level-label strong {
    font-size: 9px;
  }

  .meter-shell {
    grid-column: 2;
    height: 22px;
  }

  .listen-volume-control {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: 38px minmax(132px, 1fr) 42px;
    align-items: center;
    gap: 8px;
  }

  .listen-volume-control .control-line {
    display: contents;
  }

  .listen-volume-control .control-line span {
    grid-column: 1;
    color: var(--muted);
    font-size: 0;
    font-weight: 1000;
  }

  .listen-volume-control .control-line span::after {
    content: "OUT";
    font-size: 9px;
  }

  .listen-volume-control .control-line strong {
    grid-column: 3;
    font-size: 9px;
    text-align: right;
  }

  .listen-volume-control input[type="range"] {
    display: none;
  }

  .volume-stepper {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .volume-stepper button {
    min-height: 40px;
    padding: 0;
    border-radius: 8px;
    font-size: 22px;
    touch-action: manipulation;
  }

  .audio-state {
    grid-column: 2;
    grid-row: 3;
    align-self: center;
    overflow: hidden;
    font-size: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .people-section {
    grid-column: 2;
    grid-row: 2;
    min-height: 0;
    overflow: hidden;
    padding: 8px;
  }

  .section-heading {
    margin-bottom: 6px;
  }

  .section-heading h3 {
    font-size: 14px;
  }

  .section-heading span {
    font-size: 10px;
  }

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

  .user-card {
    min-height: 0;
    gap: 3px;
    padding: 7px;
    border-left-width: 3px;
  }

  .user-name {
    font-size: 12px;
  }

  .user-meta,
  .user-state,
  .user-audio {
    overflow: hidden;
    font-size: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}
