:root {
  color-scheme: light;
  --ink: #15221d;
  --muted: #63716b;
  --surface: rgba(255,255,255,.88);
  --line: #d9e1dd;
  --brand: #17684a;
  --brand-dark: #10271f;
  --danger: #b22c32;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(circle at 80% 0, #d9eee4 0, transparent 34%), #f2f4ef;
  color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
main { width: min(100%, 560px); margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 18px max(32px, env(safe-area-inset-bottom)); }
header { display: flex; align-items: center; justify-content: space-between; }
.eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .2em; color: var(--brand); }
.hero { margin: 30px 0 24px; }
h1 { margin: 0 0 8px; font-size: clamp(2rem, 9vw, 3.2rem); line-height: 1.02; letter-spacing: -.04em; }
h2 { margin: 0 0 16px; font-size: 1.1rem; }
p { color: var(--muted); }
.card { margin: 14px 0; padding: 18px; background: var(--surface); border: 1px solid rgba(255,255,255,.8); border-radius: 18px; box-shadow: 0 12px 35px rgba(22,46,36,.07); backdrop-filter: blur(15px); }
.compact { padding: 15px 18px; }
label { display: block; margin: 12px 0 6px; font-weight: 650; }
label:first-of-type { margin-top: 0; }
label span, .hint { color: var(--muted); font-size: .82rem; font-weight: 400; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 12px; background: #fff; color: var(--ink); font: inherit; }
textarea { resize: vertical; }
button, .file-button { min-height: 48px; border: 0; border-radius: 13px; padding: 0 18px; font: inherit; font-weight: 750; cursor: pointer; }
.icon-button { min-width: 48px; padding: 0; background: rgba(255,255,255,.72); color: var(--ink); font-size: 1.4rem; }
.row { display: flex; gap: 9px; flex-wrap: wrap; }
.secondary, .file-button { display: inline-flex; align-items: center; justify-content: center; background: var(--brand-dark); color: white; }
.text-button { background: transparent; color: var(--muted); }
.recorder { min-height: 270px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.timer { margin-bottom: 20px; font: 500 2.2rem/1 ui-monospace, SFMono-Regular, monospace; font-variant-numeric: tabular-nums; }
.record-button, .stop-button { z-index: 2; min-width: 210px; min-height: 66px; border-radius: 999px; color: white; font-size: 1.08rem; box-shadow: 0 10px 25px rgba(0,0,0,.14); }
.record-button { background: var(--brand); }
.stop-button { background: var(--danger); }
.pulse { position: absolute; top: 105px; width: 220px; height: 80px; border-radius: 999px; background: rgba(178,44,50,.14); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .35; } }
.status { min-height: 24px; margin: 18px 0 4px; text-align: center; }
progress { width: 210px; accent-color: var(--brand); }
.result dl { margin: 0; }
.result dl div { display: grid; grid-template-columns: 100px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); } dd { margin: 0; overflow-wrap: anywhere; }
footer { margin-top: 28px; padding: 0 6px; font-size: .86rem; }
summary { cursor: pointer; font-weight: 700; }
[hidden] { display: none !important; }
button:disabled { opacity: .55; cursor: default; }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
