:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #18201c;
  --muted: #65716a;
  --line: #dce2dd;
  --accent: #0e7c66;
  --accent-strong: #095f4f;
  --warn: #b75e00;
  --shadow: 0 18px 50px rgba(26, 38, 33, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--accent-strong);
  overflow-wrap: anywhere;
}

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

button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 0 16px;
}

button:hover {
  border-color: var(--accent);
}

button.primary,
.listen-button {
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

button.primary:hover,
.listen-button:hover {
  background: var(--accent-strong);
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
}

textarea {
  resize: vertical;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

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

.topbar h1,
.panel h2,
.listen-hero h1 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 0.95;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 20px;
}

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

.panel form,
form.panel {
  display: grid;
  gap: 16px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.actions,
.listen-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.icon-button {
  width: 42px;
  min-width: 42px;
  padding: 0;
  font-size: 1.2rem;
}

.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 9px 13px;
  white-space: nowrap;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c6cec8;
  box-shadow: 0 0 0 6px rgba(198, 206, 200, 0.25);
}

.status-dot.live {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(14, 124, 102, 0.16);
}

.meter {
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e9e5;
}

.meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0e7c66, #c4a24b);
  transition: width 80ms linear;
}

.hint {
  margin: 14px 0 0;
  color: var(--muted);
}

.preview {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.steps {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.steps li {
  margin: 8px 0;
}

.steps li.active {
  color: var(--accent-strong);
  font-weight: 800;
}

.audience-body {
  background: #111714;
  color: #fff;
}

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

.listen-hero {
  width: min(520px, 100%);
  text-align: center;
}

.listen-hero h1 {
  font-size: clamp(2.2rem, 12vw, 4.6rem);
  line-height: 0.95;
}

.listen-hero p {
  color: rgba(255, 255, 255, 0.74);
}

.listen-button {
  width: 100%;
  min-height: 64px;
  margin: 28px 0 16px;
  font-size: 1.05rem;
}

.listen-controls {
  justify-content: center;
}

.listen-controls button,
.listen-controls input {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.listen-controls label {
  min-width: 180px;
  color: rgba(255, 255, 255, 0.74);
}

.listen-status {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.64);
}

@media (max-width: 780px) {
  .shell {
    width: min(100% - 24px, 680px);
    padding: 20px 0;
  }

  .topbar,
  .grid.two,
  .split {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }
}
