/* ===== MySolarModel — dark theme (2026-11-13) =====
   Linked in App.razor right after app.css, as <link id="theme-dark" media="…">:
     user chose Dark  → media="screen"
     user chose Light → media="not all"   (never applies)
     no choice yet    → media="screen and (prefers-color-scheme: dark)"   (follows the device)
   mySolar.setTheme (site.js) changes the media when the user switches. Never applies to print. */
:root {
    color-scheme: dark;   /* native inputs, selects, checkboxes and scrollbars follow */
    --ink: #e6edf5;
    --ink-2: #b8c4d3;
    --muted: #8d9db2;
    --line: #2a3a4f;
    --line-strong: #3f536d;
    --bg: #0b1522;
    --card: #13202f;
    --surface-2: #182739;
    --surface-3: #1f3045;
    --hover: #22354c;
    --row-hover: #1a2a3e;
    --track: #26384f;
    --disabled-bg: #1a2636;
    --note-bg: #182739;
    --chip-bg: #24344a;
    --chip-ink: #b8c4d3;
    --link: #7cb6ff;
    --on-ink: #0b1522;
    --tip-bg: #2b3f59;
    --tip-ink: #f3f6fa;
    --topbar-bg: rgba(13, 24, 38, .9);
    --sum: #6f97ec;
    --pos: #3fbf86;
    --neg: #f07a73;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .25);

    /* amber (warnings, payback year, save bar, subscriber) */
    --amber-bg-1: rgba(245, 165, 36, .07);
    --amber-bg-2: rgba(245, 165, 36, .11);
    --amber-bg-3: rgba(245, 165, 36, .11);
    --amber-bg-4: rgba(245, 165, 36, .16);
    --amber-bg-5: rgba(245, 165, 36, .12);
    --amber-bg-6: rgba(245, 165, 36, .14);
    --amber-bg-7: rgba(245, 165, 36, .18);
    --amber-bg-8: rgba(245, 165, 36, .24);
    --amber-line-1: rgba(245, 165, 36, .28);
    --amber-line-2: rgba(245, 165, 36, .38);
    --amber-line-3: rgba(245, 165, 36, .45);
    --amber-ink-1: #f2c26a;
    --amber-ink-2: #efc77e;
    --amber-ink-3: #efc77e;
    --amber-ink-4: #efc77e;
    --amber-ink-5: #f2c26a;
    --amber-ink-6: #f7d79a;
    /* red (problems, expired, delete confirmations) */
    --red-bg-1: rgba(240, 122, 115, .14);
    --red-bg-2: rgba(240, 122, 115, .10);
    --red-bg-3: rgba(240, 122, 115, .08);
    --red-bg-4: rgba(240, 122, 115, .24);
    --red-line-1: rgba(240, 122, 115, .35);
    --red-line-2: rgba(240, 122, 115, .45);
    --red-ink-1: #f4a29c;
    --red-ink-2: #f4b1ac;
    --red-ink-3: #f4a29c;
    /* green / teal (ok, active) */
    --green-bg-1: rgba(63, 191, 134, .15);
    --green-bg-2: rgba(63, 191, 134, .15);
    --green-bg-3: rgba(63, 191, 134, .12);
    --teal-bg: rgba(17, 158, 138, .2);
    --green-ink-1: #86dcb2;
    --green-ink-2: #86dcb2;
    --green-ink-3: #86dcb2;
    /* blue / purple notes */
    --blue-bg-1: rgba(124, 182, 255, .14);
    --blue-bg-2: rgba(111, 151, 236, .16);
    --blue-bg-3: rgba(124, 182, 255, .09);
    --blue-bg-4: rgba(124, 182, 255, .08);
    --purple-bg: rgba(109, 91, 208, .16);
}
/* Text that sat on a pale amber background in light mode */
html .devcode { color: var(--amber-ink-6); }
html .tip-btn:hover, html .tip-btn:focus-visible { color: var(--sun); }
html .tier-free { color: var(--ink-2); }
/* Bright stand-alone pieces (construction sign, error bar) keep their light look, so their text stays dark */
html .construction-body span { color: #3d4a5a; }
html #blazor-error-ui { color: #1f1f1f; }
html #blazor-error-ui a { color: #1d5fb8; }
html .feature:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .4); }
html .verdict { background: linear-gradient(135deg, var(--amber-bg-1), var(--card)); }

