/* Shared design tokens for both screens. Palette: clinical teal + health green + alert red (accessible contrast on white). */
:root {
  --bg: #f3f6f9;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --ink: #0f172a;
  --muted: #475569;
  --faint: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --brand: #0e7490;
  --brand-strong: #155e75;
  --brand-ink: #ffffff;
  --brand-soft: #e3f3f6;
  --warn: #a16207;
  --warn-soft: #fef6d8;
  --danger: #b91c1c;
  --danger-soft: #fdecec;
  --ok: #15803d;
  --ok-soft: #e3f6ea;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); line-height: 1.5; }
a { color: var(--brand); }
button { font: inherit; cursor: pointer; border: 0; border-radius: var(--radius-sm); padding: 12px 18px; min-height: 44px; transition: background 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.1s var(--ease); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
:focus-visible { outline: 3px solid #38bdf8; outline-offset: 2px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); font-weight: 650; }
.btn-primary:hover:not(:disabled) { background: var(--brand-strong); }
.btn-ok { background: var(--ok); color: #fff; font-weight: 650; }
.btn-ok:hover:not(:disabled) { background: #116b33; }
.btn-ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); font-weight: 600; }
.btn-ghost:hover:not(:disabled) { background: var(--brand-soft); }
.btn-danger { background: var(--danger); color: #fff; font-weight: 600; }
.btn-quiet { background: #eef2f6; color: var(--ink); font-weight: 550; }
.btn-quiet:hover:not(:disabled) { background: #e2e8f0; }
.btn-sm { padding: 7px 12px; min-height: 36px; font-size: 0.88rem; }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 12px; width: 100%; transition: border-color 0.15s; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(14, 116, 144, 0.25); outline-offset: 0; border-color: var(--brand); }
label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.demo-banner { background: #0f172a; color: #e2e8f0; text-align: center; font-size: 0.8rem; padding: 6px 12px; letter-spacing: 0.02em; }
.demo-banner b { color: #fcd34d; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef2f6; color: var(--muted); white-space: nowrap; }
.chip.danger { background: var(--danger-soft); color: var(--danger); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.brand { background: var(--brand-soft); color: var(--brand-strong); }
.hidden { display: none !important; }
.card { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); }
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
