/* CrystalCare web page. Plain, readable, large targets, visible focus; the system font and the
   system light/dark preference. Nothing decorative competes with the controls. */
:root {
  color-scheme: light dark;
  --bg: #fbf9f4;
  --fg: #1d1a16;
  --muted: #5a544b;
  --line: #cfc8bb;
  --accent: #4a3f8a;
  --accent-fg: #ffffff;
  --focus: #b85c00;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17151a;
    --fg: #ece8e0;
    --muted: #b3aca0;
    --line: #4a4550;
    --accent: #b9aef4;
    --accent-fg: #17151a;
    --focus: #ffb060;
  }
}
html { background: var(--bg); color: var(--fg); }
body {
  margin: 0;
  font: 18px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
h1 { font-size: 2rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
p { margin: 0.5rem 0; }
fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 1rem 0;
  padding: 0.75rem 1rem 1rem;
}
legend { font-weight: 600; padding: 0 0.4rem; }
label { display: block; margin: 0.5rem 0 0.25rem; }
select, input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  min-height: 44px;
}
.check { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.75rem; }
.check input { width: 1.4rem; height: 1.4rem; margin: 0; }
.check label { margin: 0; }
.help { color: var(--muted); font-size: 0.95rem; margin: 0.25rem 0 0; }
.buttons { display: flex; gap: 0.75rem; margin: 1.25rem 0; }
button {
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  min-height: 48px;
  min-width: 7rem;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  cursor: pointer;
}
button[disabled] { opacity: 0.5; cursor: default; }
audio { width: 100%; margin: 0.5rem 0 1rem; }
.status {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  min-height: 4rem;
  max-height: 16rem;
  overflow-y: auto;
}
.status p { margin: 0.35rem 0; }
details { margin-top: 2rem; color: var(--muted); }
summary { cursor: pointer; color: var(--fg); font-weight: 600; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
