/* Warm paper and graphite for the collective, layered navy after dark. */
:root {
  color-scheme: light;
  --paper: #f8f6f2;
  --surface: #fffdfa;
  --subtle: #f2efea;
  --wash: #eae6df;
  --raised-wash: #e0dbd2;
  --ink: #292929;
  --body: #504f4e;
  --muted: #645f59;
  --quiet-heading: #746c63;
  --line: #d9d5ce;
  --line-strong: #a49c91;
  --action: #343537;
  --action-hover: #4a4b4e;
  --on-action: #fffdf9;
  --indicator: #81786c;
  --focus: #665849;
  --glass: rgb(248 246 242 / 96%);
  --shadow: rgb(47 42 35 / 9%);
  --deep-shadow: rgb(32 30 29 / 22%);
  --scrim: rgb(27 29 33 / 70%);
  --inverse: #35383d;
  --inverse-surface: #42464d;
  --inverse-line: #73777d;
  --inverse-ink: #fffdf9;
  --inverse-body: #deddd9;
  --inverse-button: #f0ece5;
  --inverse-button-ink: #292c30;
  --warning: #8a4326;
  --warning-surface: #fbede3;
  --warning-line: #b47859;

  --sage-bg: #dae5c7;   --sage-fg: #496638;
  --peach-bg: #f4d6c7;  --peach-fg: #914d36;
  --blue-bg: #cee3ef;   --blue-fg: #33637e;
  --lilac-bg: #e1d8f2;  --lilac-fg: #69528b;
  --yellow-bg: #f4e5b5; --yellow-fg: #805f22;
  --mint-bg: #cce6dd;   --mint-fg: #326c60;
  --pink-bg: #efd5de;   --pink-fg: #8e4e69;
  --indigo-bg: #d7dff4; --indigo-fg: #4b608d;
}
:root.contrast {
  --ink: #222323;
  --body: #383838;
  --muted: #45413c;
  --quiet-heading: #504a42;
  --line: #928a7f;
  --line-strong: #605b54;
}
@media screen {
  :root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #101d30;
    --surface: #1b2b42;
    --subtle: #15253a;
    --wash: #203249;
    --raised-wash: #2a3f58;
    --ink: #f1f3f5;
    --body: #c7d0dc;
    --muted: #b1bdcd;
    --quiet-heading: #afc0d5;
    --line: #394b62;
    --line-strong: #71859c;
    --action: #dce4ec;
    --action-hover: #f6f5f2;
    --on-action: #15253a;
    --indicator: #a8b9cb;
    --focus: #b7d3f0;
    --glass: rgb(16 29 48 / 96%);
    --shadow: rgb(6 15 29 / 25%);
    --deep-shadow: rgb(7 15 28 / 49%);
    --scrim: rgb(9 18 33 / 76%);
    --inverse: #17283e;
    --inverse-surface: #21354e;
    --inverse-line: #536a83;
    --inverse-ink: #f3f4f5;
    --inverse-body: #c5ceda;
    --inverse-button: #e1e6ed;
    --inverse-button-ink: #142438;
    --warning: #ffbc91;
    --warning-surface: #3b3030;
    --warning-line: #bf8f73;

    --sage-bg: #304337;   --sage-fg: #c3d89c;
    --peach-bg: #4a3335;  --peach-fg: #ffbc9e;
    --blue-bg: #253e53;   --blue-fg: #a1d5ef;
    --lilac-bg: #3a3552;  --lilac-fg: #d1bcf4;
    --yellow-bg: #47402d; --yellow-fg: #efd184;
    --mint-bg: #25453f;   --mint-fg: #a6dfcf;
    --pink-bg: #483244;   --pink-fg: #efb4cd;
    --indigo-bg: #2c3853; --indigo-fg: #b6cbf7;
  }
  :root[data-theme="dark"].contrast {
    --ink: #fafbfc;
    --body: #e2e8ef;
    --muted: #d5deea;
    --quiet-heading: #dde5ef;
    --line: #7b8fa5;
    --line-strong: #a2b3c6;
  }
}

/* The same accent and symbol identify a tool in every view. */
.sage   { --tile: var(--sage-bg);   --symbol: var(--sage-fg); }
.peach  { --tile: var(--peach-bg);  --symbol: var(--peach-fg); }
.blue   { --tile: var(--blue-bg);   --symbol: var(--blue-fg); }
.lilac  { --tile: var(--lilac-bg);  --symbol: var(--lilac-fg); }
.yellow { --tile: var(--yellow-bg); --symbol: var(--yellow-fg); }
.mint   { --tile: var(--mint-bg);   --symbol: var(--mint-fg); }
.pink   { --tile: var(--pink-bg);   --symbol: var(--pink-fg); }
.indigo { --tile: var(--indigo-bg); --symbol: var(--indigo-fg); }
.mini-mark, .tool-mark, .catalogue-mark {
  background: var(--tile);
  color: var(--symbol);
}
.tool-symbol {
  display: block;
  width: 64%;
  height: 64%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tool-symbol .tone { fill: currentColor; fill-opacity: .16; stroke: none; }
.app-art {
  background: var(--subtle);
  border-bottom: 1px solid var(--line);
}
.catalogue-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid color-mix(in srgb, var(--symbol) 24%, transparent);
  border-radius: 15px;
  position: relative;
  z-index: 1;
}
.app-art .art-glyph { color: var(--indicator); }
.split-quarter b::before,
.share-purpose h3::before,
.share-amount-grid > div > span > b::before {
  content: "";
  display: inline-block;
  width: .45em;
  height: .45em;
  margin-right: .5em;
  border-radius: 50%;
  background: var(--symbol);
  vertical-align: .1em;
}
.theme-button {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}
.theme-button .icon { width: 18px; height: 18px; }
.setting-row select {
  min-height: 36px;
  max-width: 65%;
  padding: 4px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
::placeholder { color: var(--muted); opacity: 1; }
@media (max-width: 480px) {
  .theme-button { width: 32px; height: 36px; }
  .catalogue-mark { width: 49px; height: 49px; border-radius: 12px; }
}

oh-typed-mark { display:inline-block; position:relative; }
oh-typed-mark[typing]::after { content:""; display:inline-block; height:.82em; border-right:.065em solid currentColor; vertical-align:-.025em; }
.product-wordmark:has(oh-typed-mark) { display:inline-block; position:relative; }
.product-wordmark:has(oh-typed-mark)::before { content:"openhealth.collective"; display:block; visibility:hidden; height:0; pointer-events:none; }
.wordmark:has(oh-typed-mark) { gap:0; }
