/* Calm, legible, large targets. No animation, no decoration. */
:root {
  --bg: #f4f1ec; --surface: #ffffff; --ink: #24211d; --muted: #6b655c; --line: #ddd6cc;
  --accent: #4f6b5a; --accent-ink: #ffffff; --warn: #a3311a; --warn-bg: #fbeeea; --ok: #3f6b4a;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1b1a18; --surface: #252320; --ink: #eeeae4; --muted: #aaa398; --line: #3a3732;
          --accent: #8fb39c; --accent-ink: #14130f; --warn: #f4a08a; --warn-bg: #2d1c17; --ok: #9ccaa8; color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-size: 18px; line-height: 1.5; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
main { max-width: 560px; margin: 0 auto; padding: 20px 18px 48px; }
h1 { font-size: 26px; margin: 8px 0 18px; font-weight: 600; }
h2 { font-size: 20px; margin: 22px 0 10px; font-weight: 600; }
p { margin: 0 0 12px; }
.quiet { color: var(--muted); }
button, .button {
  font: inherit; font-size: 18px; min-height: 52px; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; width: 100%; margin: 6px 0; text-align: center; text-decoration: none; display: block;
}
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
button.speak { min-height: 140px; font-size: 30px; border-radius: 70px; font-weight: 600; margin: 10px 0 18px; }
button.danger { color: var(--warn); border-color: var(--warn); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button[disabled] { opacity: 0.6; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 0 0 8px; }
.seg button { margin: 0; border: 0; border-radius: 0; min-height: 52px; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.status { font-size: 22px; font-weight: 600; margin: 8px 0 4px; }
.status.safe { color: var(--ok); }
.alarm { background: var(--warn-bg); color: var(--warn); border: 2px solid var(--warn); border-radius: 12px; padding: 14px; font-weight: 600; margin: 10px 0; }
.timer { font-variant-numeric: tabular-nums; font-size: 40px; font-weight: 300; margin: 4px 0 10px; }
ul.list { list-style: none; padding: 0; margin: 0; }
ul.list li button { text-align: left; display: flex; justify-content: space-between; gap: 10px; }
ul.list small { color: var(--muted); font-size: 15px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 10px 0; }
.flag { color: var(--muted); font-size: 15px; font-style: italic; }
.ai { color: var(--muted); font-size: 16px; border-left: 3px solid var(--line); padding-left: 10px; margin: 8px 0; }
textarea, input[type="text"] { width: 100%; font: inherit; font-size: 18px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
textarea { min-height: 140px; }
label.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
label.switch input { width: 28px; height: 28px; }
audio.player { width: 100%; margin: 6px 0; }
pre.consent { white-space: pre-wrap; font: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.back { width: auto; display: inline-block; min-height: 44px; padding: 8px 14px; }
