:root {
  color-scheme: light;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #18281f;
  background: #edf2e9;
  accent-color: #225837;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body { margin: 0; }
main { max-width: 49rem; margin: 0 auto; padding: clamp(2rem, 8vw, 5.5rem) 1.25rem 2.5rem; }
header { margin: 0 0 2rem; }
.eyebrow { letter-spacing: .12em; font: 700 .9rem ui-monospace, monospace; color: #225837; }
h1 { margin: .35rem 0; font-size: clamp(2rem, 7vw, 3.7rem); font-weight: 800; line-height: 1.1; }
.intro { color: #42604c; font-size: 1rem; line-height: 1.65; }
form, section { background: #fff; border: 1px solid #cbd9c9; border-radius: 1.1rem; padding: clamp(1rem, 4vw, 1.75rem); }
section { margin-top: 1rem; }
.row, .controls { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.controls { flex-wrap: wrap; margin-top: 1.25rem; }
label { font-weight: 650; }
output, #timing, footer, .examples span { color: #506a56; font-size: .875rem; }
textarea { resize: vertical; display: block; width: 100%; margin: .65rem 0 .8rem; padding: .85rem; font: inherit; color: inherit; line-height: 1.65; background: #f9fbf8; border: 1px solid #b8cabb; border-radius: .65rem; }
button, select { font: inherit; color: inherit; background: #fff; padding: .5rem .8rem; border: 1px solid #b8cabb; border-radius: .5rem; }
button { cursor: pointer; }
button:not(:disabled):hover { background: #eef5ed; }
button:disabled { cursor: wait; }
button.primary { color: white; background: #225837; border-color: #225837; font-weight: 700; padding: .7rem 1.15rem; }
button.primary:not(:disabled):hover { background: #163a24; }
button.primary:disabled { opacity: .55; }
select { margin-left: .4rem; }
.examples, footer { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.examples button { font-size: .875rem; padding: .35rem .6rem; }
#status { font-size: .9rem; color: #3e5a46; margin: 1rem 0 0; line-height: 1.5; }
#retry { margin-top: .6rem; }
audio { width: 100%; }
a { color: #225837; white-space: nowrap; }
footer { padding: 1rem .2rem; gap: 1rem; }
:focus-visible { outline: 2px solid #286d42; outline-offset: 3px; }
