:root {
  --bg: #f3efe5;
  --panel: rgba(255, 251, 244, 0.85);
  --panel-border: rgba(42, 57, 48, 0.18);
  --text: #1e2a24;
  --muted: #55655b;
  --accent: #0d7a5f;
  --accent-strong: #095c47;
  --danger: #9a2d2d;
  --shadow: 0 24px 60px rgba(35, 44, 39, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(13, 122, 95, 0.2), transparent 28%),
    radial-gradient(circle at bottom right, rgba(186, 95, 51, 0.18), transparent 24%),
    linear-gradient(160deg, #ece4d6 0%, #f8f5ef 40%, #ece9df 100%);
}

button,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.hero {
  margin-bottom: 22px;
}

.eyebrow,
.panel-eyebrow,
.status-label,
.hint code {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow,
.panel-eyebrow,
.status-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.hero h1,
.panel-header h2 {
  margin: 0;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

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

.hero-copy {
  max-width: 62ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.controls {
  padding: 22px;
  margin-bottom: 22px;
}

.control-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.control-row + .control-row {
  margin-top: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
  flex: 1 1 260px;
}

.field span {
  color: var(--muted);
  font-size: 0.92rem;
}

select,
button,
textarea {
  border-radius: 16px;
  border: 1px solid rgba(42, 57, 48, 0.18);
}

select,
button {
  min-height: 48px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
}

button {
  cursor: pointer;
  transition:
    transform 120ms ease,
    background 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(13, 122, 95, 0.4);
  box-shadow: 0 12px 24px rgba(13, 122, 95, 0.12);
}

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

.actions button {
  min-width: 168px;
}

.record-button {
  background: linear-gradient(135deg, var(--accent), #0ca07a);
  color: #f7fffb;
  border-color: rgba(13, 122, 95, 0.5);
}

.record-button.active {
  background: linear-gradient(135deg, var(--danger), #cf5656);
  border-color: rgba(154, 45, 45, 0.5);
}

.status-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 18px;
}

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

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

.text-panel {
  padding: 20px;
}

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

.panel-actions {
  display: flex;
  gap: 10px;
}

textarea {
  width: 100%;
  min-height: 360px;
  resize: vertical;
  padding: 16px 18px;
  line-height: 1.6;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
}

code {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(31, 47, 40, 0.08);
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
}

@media (max-width: 860px) {
  .shell {
    width: min(100vw - 20px, 100%);
    padding-top: 20px;
  }

  .controls,
  .text-panel {
    padding: 16px;
  }

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

  textarea {
    min-height: 260px;
  }
}

