/* The color palettes in use (Settings → Color palettes, SPEC ADM-09). */
:root { --bg:#f7f7f5; --fg:#0f1e2a; --muted:#4a5a68; --card:#ffffff; --search:#ffffff; --entry:#ffffff; --line:#c9dbe8; --subtle:#e6f1fa; --accent:#0369a1; --accent-fg:#ffffff; --ok:#15803d; --warn:#b45309; --bad:#c81e1e; --bad-bg:#fff0f0; --focus:#0284c7; --mark:#fff1a8; --lane-notes:#7e3fb5; --lane-calls:#0f766e; --lane-meetings:#c2410c; --lane-tasks:#0369a1; --lane-emails:#15803d; --lane-surveys:#be185d; --lane-changes:#4a5a68; --lane-journeys:#a16207; --lane-stages:#4a4fa8; --swim-holiday:#ffefdc; --depth-1:#1f5fa8; --depth-2:#1b6e3a; --depth-3:#8a4b1a; --depth-4:#6b4fa0; --tl-done:#3d6b4f; --tl-planned:#4f6688; --stage-done-bg:#e4f2e9; --stage-now-bg:#e3edf9; --stage-cut-bg:#efefeb; --stage-stall-bg:#fbefd8; --stage-ahead:#7d7d76; --stage-arrow:#5c5c57; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg:#121212; --fg:#ffffff; --muted:#a9b0b4; --card:#171f24; --search:#171f24; --entry:#171f24; --line:#3e454a; --subtle:#2a3236; --accent:#0ea5e9; --accent-fg:#000000; --ok:#4aff6b; --warn:#ffac38; --bad:#ff6161; --bad-bg:#3b1d1d; --focus:#5bb8ef; --mark:#3e350c; --lane-notes:#b9a3ff; --lane-calls:#61c2ff; --lane-meetings:#ff9f43; --lane-tasks:#0ea5e9; --lane-emails:#4aff6b; --lane-surveys:#ff8580; --lane-changes:#a9b0b4; --lane-journeys:#ffcf94; --lane-stages:#a9adf5; --swim-holiday:#2e2617; --depth-1:#7fb2ee; --depth-2:#5fcf8a; --depth-3:#f0ad73; --depth-4:#c4a8f0; --tl-done:#7fbf95; --tl-planned:#93abd0; --stage-done-bg:#1e3326; --stage-now-bg:#1c2a3d; --stage-cut-bg:#2a2a27; --stage-stall-bg:#3a2e1a; --stage-ahead:#85857e; --stage-arrow:#a6a6a0; }
}
:root[data-theme="dark"] { --bg:#121212; --fg:#ffffff; --muted:#a9b0b4; --card:#171f24; --search:#171f24; --entry:#171f24; --line:#3e454a; --subtle:#2a3236; --accent:#0ea5e9; --accent-fg:#000000; --ok:#4aff6b; --warn:#ffac38; --bad:#ff6161; --bad-bg:#3b1d1d; --focus:#5bb8ef; --mark:#3e350c; --lane-notes:#b9a3ff; --lane-calls:#61c2ff; --lane-meetings:#ff9f43; --lane-tasks:#0ea5e9; --lane-emails:#4aff6b; --lane-surveys:#ff8580; --lane-changes:#a9b0b4; --lane-journeys:#ffcf94; --lane-stages:#a9adf5; --swim-holiday:#2e2617; --depth-1:#7fb2ee; --depth-2:#5fcf8a; --depth-3:#f0ad73; --depth-4:#c4a8f0; --tl-done:#7fbf95; --tl-planned:#93abd0; --stage-done-bg:#1e3326; --stage-now-bg:#1c2a3d; --stage-cut-bg:#2a2a27; --stage-stall-bg:#3a2e1a; --stage-ahead:#85857e; --stage-arrow:#a6a6a0; }
/* The sidebar inverted for light mode */
#side { --bg:#121212; --fg:#ffffff; --muted:#a9b0b4; --card:#171f24; --search:#171f24; --entry:#171f24; --line:#3e454a; --subtle:#2a3236; --accent:#0ea5e9; --accent-fg:#000000; --ok:#4aff6b; --warn:#ffac38; --bad:#ff6161; --bad-bg:#3b1d1d; --focus:#5bb8ef; --mark:#3e350c; --lane-notes:#b9a3ff; --lane-calls:#61c2ff; --lane-meetings:#ff9f43; --lane-tasks:#0ea5e9; --lane-emails:#4aff6b; --lane-surveys:#ff8580; --lane-changes:#a9b0b4; --lane-journeys:#ffcf94; --lane-stages:#a9adf5; --swim-holiday:#2e2617; --depth-1:#7fb2ee; --depth-2:#5fcf8a; --depth-3:#f0ad73; --depth-4:#c4a8f0; --tl-done:#7fbf95; --tl-planned:#93abd0; --stage-done-bg:#1e3326; --stage-now-bg:#1c2a3d; --stage-cut-bg:#2a2a27; --stage-stall-bg:#3a2e1a; --stage-ahead:#85857e; --stage-arrow:#a6a6a0; color-scheme: dark; }
/* The sidebar inverted for dark mode */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #side { --bg:#f7f7f5; --fg:#0f1e2a; --muted:#4a5a68; --card:#ffffff; --search:#ffffff; --entry:#ffffff; --line:#c9dbe8; --subtle:#e6f1fa; --accent:#0369a1; --accent-fg:#ffffff; --ok:#15803d; --warn:#b45309; --bad:#c81e1e; --bad-bg:#fff0f0; --focus:#0284c7; --mark:#fff1a8; --lane-notes:#7e3fb5; --lane-calls:#0f766e; --lane-meetings:#c2410c; --lane-tasks:#0369a1; --lane-emails:#15803d; --lane-surveys:#be185d; --lane-changes:#4a5a68; --lane-journeys:#a16207; --lane-stages:#4a4fa8; --swim-holiday:#ffefdc; --depth-1:#1f5fa8; --depth-2:#1b6e3a; --depth-3:#8a4b1a; --depth-4:#6b4fa0; --tl-done:#3d6b4f; --tl-planned:#4f6688; --stage-done-bg:#e4f2e9; --stage-now-bg:#e3edf9; --stage-cut-bg:#efefeb; --stage-stall-bg:#fbefd8; --stage-ahead:#7d7d76; --stage-arrow:#5c5c57; color-scheme: light; }
}
:root[data-theme="dark"] #side { --bg:#f7f7f5; --fg:#0f1e2a; --muted:#4a5a68; --card:#ffffff; --search:#ffffff; --entry:#ffffff; --line:#c9dbe8; --subtle:#e6f1fa; --accent:#0369a1; --accent-fg:#ffffff; --ok:#15803d; --warn:#b45309; --bad:#c81e1e; --bad-bg:#fff0f0; --focus:#0284c7; --mark:#fff1a8; --lane-notes:#7e3fb5; --lane-calls:#0f766e; --lane-meetings:#c2410c; --lane-tasks:#0369a1; --lane-emails:#15803d; --lane-surveys:#be185d; --lane-changes:#4a5a68; --lane-journeys:#a16207; --lane-stages:#4a4fa8; --swim-holiday:#ffefdc; --depth-1:#1f5fa8; --depth-2:#1b6e3a; --depth-3:#8a4b1a; --depth-4:#6b4fa0; --tl-done:#3d6b4f; --tl-planned:#4f6688; --stage-done-bg:#e4f2e9; --stage-now-bg:#e3edf9; --stage-cut-bg:#efefeb; --stage-stall-bg:#fbefd8; --stage-ahead:#7d7d76; --stage-arrow:#5c5c57; color-scheme: light; }
/* Link style, light mode: draw */
:root[data-theme="light"] a:where(:not([class]):not(.sx-list a, .sx-links a, .rec-parts a, .tabs a, .tags .chip a, .pal-scene a, .be-paper a)){color:var(--fg);font-weight:500;text-decoration:none;padding-bottom:2px;background:linear-gradient(var(--accent),var(--accent)) 0 100%/0 2px no-repeat,linear-gradient(color-mix(in srgb,var(--fg) 18%,transparent),color-mix(in srgb,var(--fg) 18%,transparent)) 0 100%/100% 2px no-repeat;-webkit-box-decoration-break:clone;box-decoration-break:clone;transition:background-size .3s ease,color .2s}:root[data-theme="light"] a:where(:not([class]):not(.sx-list a, .sx-links a, .rec-parts a, .tabs a, .tags .chip a, .pal-scene a, .be-paper a)):hover,:root[data-theme="light"] a:where(:not([class]):not(.sx-list a, .sx-links a, .rec-parts a, .tabs a, .tags .chip a, .pal-scene a, .be-paper a)):focus-visible{color:var(--accent);background-size:100% 2px,100% 2px}:root[data-theme="light"] a:where(:not([class]):not(.sx-list a, .sx-links a, .rec-parts a, .tabs a, .tags .chip a, .pal-scene a, .be-paper a)):focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:3px}@media (prefers-reduced-motion:reduce){:root[data-theme="light"] a:where(:not([class]):not(.sx-list a, .sx-links a, .rec-parts a, .tabs a, .tags .chip a, .pal-scene a, .be-paper a)){transition:none!important}}
@media not all and (prefers-color-scheme: dark) {
:root:not([data-theme="dark"]) a:where(:not([class]):not(.sx-list a, .sx-links a, .rec-parts a, .tabs a, .tags .chip a, .pal-scene a, .be-paper a)){color:var(--fg);font-weight:500;text-decoration:none;padding-bottom:2px;background:linear-gradient(var(--accent),var(--accent)) 0 100%/0 2px no-repeat,linear-gradient(color-mix(in srgb,var(--fg) 18%,transparent),color-mix(in srgb,var(--fg) 18%,transparent)) 0 100%/100% 2px no-repeat;-webkit-box-decoration-break:clone;box-decoration-break:clone;transition:background-size .3s ease,color .2s}:root:not([data-theme="dark"]) a:where(:not([class]):not(.sx-list a, .sx-links a, .rec-parts a, .tabs a, .tags .chip a, .pal-scene a, .be-paper a)):hover,:root:not([data-theme="dark"]) a:where(:not([class]):not(.sx-list a, .sx-links a, .rec-parts a, .tabs a, .tags .chip a, .pal-scene a, .be-paper a)):focus-visible{color:var(--accent);background-size:100% 2px,100% 2px}:root:not([data-theme="dark"]) a:where(:not([class]):not(.sx-list a, .sx-links a, .rec-parts a, .tabs a, .tags .chip a, .pal-scene a, .be-paper a)):focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:3px}@media (prefers-reduced-motion:reduce){:root:not([data-theme="dark"]) a:where(:not([class]):not(.sx-list a, .sx-links a, .rec-parts a, .tabs a, .tags .chip a, .pal-scene a, .be-paper a)){transition:none!important}}
}
/* Link style, dark mode: draw */
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) a:where(:not([class]):not(.sx-list a, .sx-links a, .rec-parts a, .tabs a, .tags .chip a, .pal-scene a, .be-paper a)){color:var(--fg);font-weight:500;text-decoration:none;padding-bottom:2px;background:linear-gradient(var(--accent),var(--accent)) 0 100%/0 2px no-repeat,linear-gradient(color-mix(in srgb,var(--fg) 18%,transparent),color-mix(in srgb,var(--fg) 18%,transparent)) 0 100%/100% 2px no-repeat;-webkit-box-decoration-break:clone;box-decoration-break:clone;transition:background-size .3s ease,color .2s}:root:not([data-theme="light"]) a:where(:not([class]):not(.sx-list a, .sx-links a, .rec-parts a, .tabs a, .tags .chip a, .pal-scene a, .be-paper a)):hover,:root:not([data-theme="light"]) a:where(:not([class]):not(.sx-list a, .sx-links a, .rec-parts a, .tabs a, .tags .chip a, .pal-scene a, .be-paper a)):focus-visible{color:var(--accent);background-size:100% 2px,100% 2px}:root:not([data-theme="light"]) a:where(:not([class]):not(.sx-list a, .sx-links a, .rec-parts a, .tabs a, .tags .chip a, .pal-scene a, .be-paper a)):focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:3px}@media (prefers-reduced-motion:reduce){:root:not([data-theme="light"]) a:where(:not([class]):not(.sx-list a, .sx-links a, .rec-parts a, .tabs a, .tags .chip a, .pal-scene a, .be-paper a)){transition:none!important}}
}
:root[data-theme="dark"] a:where(:not([class]):not(.sx-list a, .sx-links a, .rec-parts a, .tabs a, .tags .chip a, .pal-scene a, .be-paper a)){color:var(--fg);font-weight:500;text-decoration:none;padding-bottom:2px;background:linear-gradient(var(--accent),var(--accent)) 0 100%/0 2px no-repeat,linear-gradient(color-mix(in srgb,var(--fg) 18%,transparent),color-mix(in srgb,var(--fg) 18%,transparent)) 0 100%/100% 2px no-repeat;-webkit-box-decoration-break:clone;box-decoration-break:clone;transition:background-size .3s ease,color .2s}:root[data-theme="dark"] a:where(:not([class]):not(.sx-list a, .sx-links a, .rec-parts a, .tabs a, .tags .chip a, .pal-scene a, .be-paper a)):hover,:root[data-theme="dark"] a:where(:not([class]):not(.sx-list a, .sx-links a, .rec-parts a, .tabs a, .tags .chip a, .pal-scene a, .be-paper a)):focus-visible{color:var(--accent);background-size:100% 2px,100% 2px}:root[data-theme="dark"] a:where(:not([class]):not(.sx-list a, .sx-links a, .rec-parts a, .tabs a, .tags .chip a, .pal-scene a, .be-paper a)):focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:3px}@media (prefers-reduced-motion:reduce){:root[data-theme="dark"] a:where(:not([class]):not(.sx-list a, .sx-links a, .rec-parts a, .tabs a, .tags .chip a, .pal-scene a, .be-paper a)){transition:none!important}}
/* Status colors (Settings → Color palettes) */
:root { --status-positive:#16a34a; --status-positive-fg:#000000; --status-negative:#dc2626; --status-negative-fg:#ffffff; --status-neutral:#6b7280; --status-neutral-fg:#ffffff; --status-default:#2563eb; --status-default-fg:#ffffff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --status-positive:#4ade80; --status-positive-fg:#000000; --status-negative:#f87171; --status-negative-fg:#000000; --status-neutral:#9ca3af; --status-neutral-fg:#000000; --status-default:#60a5fa; --status-default-fg:#000000; }
}
:root[data-theme="dark"] { --status-positive:#4ade80; --status-positive-fg:#000000; --status-negative:#f87171; --status-negative-fg:#000000; --status-neutral:#9ca3af; --status-neutral-fg:#000000; --status-default:#60a5fa; --status-default-fg:#000000; }
.st-positive { background:var(--status-positive); color:var(--status-positive-fg); }
.st-negative { background:var(--status-negative); color:var(--status-negative-fg); }
.st-neutral { background:var(--status-neutral); color:var(--status-neutral-fg); }
.st-default { background:var(--status-default); color:var(--status-default-fg); }
