:root {
  color-scheme: dark;
  --bg: #102824;
  --panel: #f2f0e7;
  --ink: #10221f;
  --muted: #65736f;
  --line: #c8d0c2;
  --accent: #d84e34;
  --accent-2: #21a67a;
  --dark: #143631;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(120deg, rgba(216, 78, 52, 0.2), transparent 34%),
    linear-gradient(160deg, #102824 0%, #173d36 52%, #263c35 100%);
  color: var(--panel);
}

button,
input,
select {
  font: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.console {
  width: min(100%, 760px);
  background: var(--panel);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 32px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.status {
  min-width: 92px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #dce4d7;
  color: var(--dark);
  text-align: center;
  font-weight: 800;
  white-space: nowrap;
}

.status.live {
  background: var(--accent-2);
  color: white;
}

.setup {
  display: grid;
  grid-template-columns: 150px minmax(160px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 13px 12px;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--accent-2);
}

button {
  border: 0;
  border-radius: 6px;
  min-height: 48px;
  padding: 0 18px;
  background: #dce4d7;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary {
  background: var(--accent);
  color: white;
}

.meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.meters div {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

meter {
  width: 100%;
  height: 18px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

#mute.active {
  background: var(--accent);
  color: white;
}

#ptt.active {
  background: var(--accent-2);
  color: white;
}

.toggle {
  min-height: 48px;
  display: flex;
  grid-template-columns: none;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 0 6px;
}

.toggle input {
  width: 20px;
  height: 20px;
}

.readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 0;
}

.readout div {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
  font-weight: 800;
}

@media (max-width: 640px) {
  .shell {
    padding: 12px;
    place-items: stretch;
  }

  .console {
    min-height: calc(100vh - 24px);
  }

  .topbar,
  .setup,
  .settings,
  .meters,
  .readout {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .controls button {
    flex: 1 1 140px;
  }
}
