:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --panel: #ffffff;
  --text: #16202a;
  --muted: #667085;
  --line: #d9dee7;
  --accent: #176b52;
  --accent-pressed: #0f533f;
  --danger: #a23a3a;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.shell {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 20px;
}

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

.notes {
  margin-top: 16px;
}

.heading {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 26px;
  line-height: 1.2;
}

h2 {
  font-size: 18px;
}

audio {
  display: block;
  width: 100%;
  margin: 16px 0;
}

.actions {
  display: flex;
  gap: 10px;
  margin: 16px 0 20px;
}

button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 700;
}

#startButton {
  flex: 1;
  background: var(--accent);
  color: #fff;
}

#sendButton {
  width: 120px;
  background: var(--accent);
  color: #fff;
}

#sendButton:disabled {
  cursor: wait;
  opacity: 0.65;
}

#startButton:active {
  background: var(--accent-pressed);
}

#stopButton {
  width: 88px;
  background: #fff;
  border-color: var(--line);
  color: var(--danger);
}

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

.status-grid-wide {
  margin-top: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.field-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.text-input,
.text-area {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  background: #fff;
}

.text-area {
  resize: vertical;
  line-height: 1.5;
}

.status-grid div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 700;
}

ol {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 520px) {
  .shell {
    padding: 14px;
  }

  .panel,
  .notes {
    padding: 16px;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .status-grid-wide {
    grid-template-columns: 1fr;
  }
}
