/* Appholm design tokens. Light by default; dark under [data-theme="dark"]
   and, for [data-theme="system"], under the system preference. No shadows in
   either theme: depth comes from lightness. Coral appears in the mark only.
   Indigo on navy: the action colour carries white text in light and dark
   text in dark, so buttons always read --on-action, never a fixed white. */
:root {
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius-s: 8px; --radius-m: 12px; --radius-l: 16px; --nav-h: 64px; --side-w: 216px;

  --page: #F6F8FC; --surface: #FFFFFF; --raised: #EEF2F9;
  --border: #DDE3EE; --border-strong: #C3CCDC; --divider: #E6EBF3; --dashed: #8E9AB0;
  --text: #0A1428; --text-2: #2C3A52; --muted: #4A5870;
  --action: #5847D6; --action-hover: #4535B8; --on-action: #FFFFFF;
  --link: #5847D6; --link-hover: #4535B8;
  --mark: #5847D6; --tint: #F0EEFF; --tint-text: #35289E; --coral: #FF8A5B;
  --review-bg: #FBF0D9; --review-text: #6B4500;
  --good-bg: #ECFDF5; --good-text: #047857;
  --attention-bg: #FEF2F2; --attention-text: #B91C1C;
  --neutral-bg: #EEF2F9; --neutral-text: #2C3A52;
  --avatar-bg: #DDE3EE; --avatar-text: #2C3A52; --avatar-alt-bg: #CFFAFE; --avatar-alt-text: #155E75;
  --overlay: rgba(10, 20, 40, 0.55);
  --focus: #5847D6;
  color-scheme: light;
}
[data-theme="dark"] {
  --page: #070D18; --surface: #0E1626; --raised: #18233A;
  --border: #22304A; --border-strong: #32425F; --divider: #1A2538; --dashed: #4B5B78;
  --text: #F5F7FC; --text-2: #C6CEDD; --muted: #8E9BB3;
  --action: #9D8FFF; --action-hover: #B4A9FF; --on-action: #08142A;
  --link: #B4A9FF; --link-hover: #CFC8FF;
  --mark: #9D8FFF; --tint: #1E1A4F; --tint-text: #D2CCFF;
  --review-bg: #2B1F06; --review-text: #FCD34D;
  --good-bg: #052E22; --good-text: #6EE7B7;
  --attention-bg: #2A0F12; --attention-text: #FCA5A5;
  --neutral-bg: #18233A; --neutral-text: #C6CEDD;
  --avatar-bg: #32425F; --avatar-text: #C6CEDD; --avatar-alt-bg: #164E63; --avatar-alt-text: #A5F3FC;
  --overlay: rgba(3, 7, 16, 0.72);
  --focus: #B4A9FF;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  [data-theme="system"] {
    --page: #070D18; --surface: #0E1626; --raised: #18233A;
    --border: #22304A; --border-strong: #32425F; --divider: #1A2538; --dashed: #4B5B78;
    --text: #F5F7FC; --text-2: #C6CEDD; --muted: #8E9BB3;
    --action: #9D8FFF; --action-hover: #B4A9FF; --on-action: #08142A;
    --link: #B4A9FF; --link-hover: #CFC8FF;
    --mark: #9D8FFF; --tint: #1E1A4F; --tint-text: #D2CCFF;
    --review-bg: #2B1F06; --review-text: #FCD34D;
    --good-bg: #052E22; --good-text: #6EE7B7;
    --attention-bg: #2A0F12; --attention-text: #FCA5A5;
    --neutral-bg: #18233A; --neutral-text: #C6CEDD;
    --avatar-bg: #32425F; --avatar-text: #C6CEDD; --avatar-alt-bg: #164E63; --avatar-alt-text: #A5F3FC;
    --overlay: rgba(3, 7, 16, 0.72);
    --focus: #B4A9FF;
    color-scheme: dark;
  }
}
