/* Care Review — shared tokens and base styles. Sizes in rem; light first, dark follows the system.
   The palette is a clinical record, not a brochure: cool paper, blue-black ink, one teal for actions.
   Violet marks anything the AI drafted, and only that. Red is kept for overdue and adverse. */
:root {
  --ground: #f3f5f6;
  --surface: #ffffff;
  --sunk: #e9edef;
  --ink: #13242c;
  --ink-2: #3c525d;
  --ink-3: #586c77;
  --line: #cbd5da;
  --line-2: #e1e7ea;
  --action: #0b5c66;
  --action-ink: #ffffff;
  --action-soft: #dcefef;
  --ai: #4a3fa0;
  --ai-soft: #eeecfa;
  --wait: #b77a00;
  --wait-soft: #fbefd2;
  --wait-ink: #6e4600;
  --ok: #1b6b42;
  --ok-soft: #e1f2e8;
  --bad: #a3262b;
  --bad-soft: #fbe7e6;
  --grey-soft: #e6ebee;
  --deep: #10303a;
  --deep-ink: #eaf2f3;
  --radius: .375rem;
  --shadow: 0 1px 2px rgba(19, 36, 44, .07), 0 6px 18px rgba(19, 36, 44, .07);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0e181d;
    --surface: #17242b;
    --sunk: #121d23;
    --ink: #e6eef1;
    --ink-2: #b6c5cc;
    --ink-3: #8fa1aa;
    --line: #2d3f48;
    --line-2: #23323a;
    --action: #62c6d0;
    --action-ink: #05252a;
    --action-soft: #17393f;
    --ai: #b7b0f6;
    --ai-soft: #29264a;
    --wait: #e0a82e;
    --wait-soft: #3a2e10;
    --wait-ink: #f3d28a;
    --ok: #6bd29c;
    --ok-soft: #163527;
    --bad: #ff9a94;
    --bad-soft: #40201f;
    --grey-soft: #23323a;
    --deep: #0a1317;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 1rem/1.55 var(--sans); }
h1, h2, h3 { font-weight: 650; line-height: 1.18; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
a { color: var(--action); text-underline-offset: .15em; }
:focus-visible { outline: .19rem solid var(--action); outline-offset: .15rem; border-radius: .2rem; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

.btn { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-weight: 600; cursor: pointer;
       padding: .6rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
       color: var(--ink); text-decoration: none; line-height: 1.2; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.small { padding: .35rem .7rem; font-size: .85rem; }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: default; }

.mark { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.1rem;
        letter-spacing: -.01em; color: inherit; text-decoration: none; }
.mark svg { width: 1.6rem; height: 1.6rem; flex: none; }

/* A chip always carries a word; the colour only repeats it. */
.chip { display: inline-block; font-size: .75rem; font-weight: 600; line-height: 1; padding: .3rem .5rem;
        border-radius: .25rem; background: var(--grey-soft); color: var(--ink-2); white-space: nowrap; border: 1px solid transparent; }
.chip.wait { background: var(--wait-soft); color: var(--wait-ink); }
.chip.go { background: var(--action-soft); color: var(--action); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.ai { background: var(--ai-soft); color: var(--ai); border: 1px dashed var(--ai); }

.demo-bar { background: var(--wait-soft); color: var(--wait-ink); font-size: .85rem; text-align: center; padding: .45rem 1rem; }
.demo-bar a { color: inherit; }
