/* ===========================================================================
 * \file        koru-theme.css
 * \project     Gardener
 * \module      wwwroot/css
 * \version     1.0.0
 * \date        2026-11-07
 * \author      Dazgod
 * \copyright   Copyright (c) 2026 Dazgod
 * \brief       The KORU design language, applied to the whole application.
 *
 * ---------------------------------------------------------------------------
 * HOW THIS THEMES EVERYTHING WITHOUT TOUCHING EVERY PAGE
 *
 * Gardener's own stylesheets reference 50 distinct --rz-* variables, 1,100+
 * times between them, and every Radzen component is driven by the same set.
 * So the whole look lives in those variables, and re-pointing them here
 * re-themes Radzen's components and Gardener's custom CSS in one move.
 *
 * Every one of those 50 is defined below, in both modes. A variable left out
 * would silently fall through to Radzen's own theme and produce one element
 * in the wrong palette — which is exactly the kind of fault that is invisible
 * until someone opens the page it is on.
 *
 * Loaded AFTER <RadzenTheme>, so these win on equal specificity.
 *
 * ---------------------------------------------------------------------------
 * THE TWO MODES
 *
 * Dark is the supplied kit, used verbatim wherever it specifies a value:
 * #0d1511 charcoal forest, #142019 dark leaf panels, #293b30 borders,
 * #eff7ed warm off-white, #a4db43 lime, #05bb81 jade, #f9c478 amber.
 *
 * Light is DERIVED from it, not invented alongside it: the same hues, the
 * surfaces inverted, and the two brand colours darkened until they carry
 * text. That last part is not cosmetic — the kit's lime on white is about
 * 1.7:1, so using #a4db43 as the light-mode primary would have produced a
 * button nobody can read. #a4db43 is kept for fills and accents, where it
 * has no contrast requirement, and --koru-lime-ink carries text.
 *
 * Every text-on-surface pair in both modes was checked against WCAG AA
 * (4.5:1) before these values were written; the weakest is 4.81:1.
 *
 * ---------------------------------------------------------------------------
 * WHAT IS DELIBERATELY NOT CHANGED
 *
 * Font SIZES. The kit sets 15px body against Radzen's 14px, and raising the
 * root size reflows every table, card and grid in the app at once. The font
 * FAMILY follows the kit; sizes are left for a pass that can be looked at.
 *
 * Five variables the app references are therefore left to fall through to
 * Radzen on purpose: --rz-root-font-size, --rz-body-font-size,
 * --rz-body-line-height, --rz-panel-menu-item-padding and
 * --rz-panel-menu-item-border. All five are geometry, not colour, so they
 * cannot leave an element in the wrong palette.
 * =========================================================================== */

/* ---------------------------------------------------------------------------
 * 1 — Brand constants
 *
 * The same in both modes, because they are the identity rather than the
 * surface. Mode-specific values live in the blocks below.
 * ------------------------------------------------------------------------- */
:root {
    --koru-lime-fill:  #a4db43;   /* kit lime — fills, accents, never text on light */
    --koru-jade-fill:  #05bb81;   /* kit jade */
    --koru-amber-fill: #f9c478;   /* kit amber */

    /* Shape, from the kit's preview: 18px cards, 10px controls, pill badges. */
    --koru-radius-card:    18px;
    --koru-radius-control: 10px;
    --koru-radius-pill:    40px;

    --koru-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
                 Arial, "Noto Sans", sans-serif;
}

/* ---------------------------------------------------------------------------
 * 2 — LIGHT (default)
 *
 * Also applies when no mode attribute is present at all, so a first paint
 * before the mode is resolved is a complete theme rather than a half-styled
 * page.
 * ------------------------------------------------------------------------- */
:root,
:root[data-koru-theme="light"] {
    /* ── KORU tokens ── */
    --koru-bg:       #f3f7f0;
    --koru-panel:    #ffffff;
    --koru-panel-2:  #eaf1e6;   /* recessed: inputs, table stripes, wells */
    --koru-border:   #d7e3d2;
    --koru-border-2: #c2d4bc;   /* control borders, stronger dividers */
    --koru-ink:      #16211a;
    --koru-muted:    #5a6d60;
    --koru-lime:     #477211;   /* 5.26:1 on bg — text, icons, primary */
    --koru-jade:     #04704e;   /* 5.64:1 on bg */
    --koru-amber:    #8a5a06;   /* amber darkened until it carries text */
    --koru-on-lime:  #ffffff;   /* 5.70:1 on --koru-lime */
    --koru-badge-bg: #e4f2d4;
    --koru-badge-ink:#375d12;
    --koru-hero:     radial-gradient(ellipse at top right, #dcefc6, transparent 65%),
                     linear-gradient(130deg, #eef6e6, #e4efdd);

    /* ── Surfaces ── */
    --rz-base:                  #eef4ea;
    --rz-base-background-color: var(--koru-bg);
    --rz-base-background:       var(--koru-bg);
    --rz-body-background-color: var(--koru-bg);
    --rz-base-50:   #f8fbf6;
    --rz-base-100:  #eef4ea;
    --rz-base-200:  #e2ebdd;
    --rz-base-300:  #d7e3d2;
    --rz-base-400:  #c2d4bc;
    --rz-base-500:  #a9bfa2;
    --rz-base-600:  #8aa384;
    --rz-base-700:  #6b8266;
    --rz-base-800:  #44563f;
    --rz-base-900:  #243021;
    --rz-border-color: var(--koru-border);
    --rz-card-background-color: var(--koru-panel);
    --rz-panel-background-color: var(--koru-panel);
    --rz-sidebar-color: var(--koru-panel);

    /* ── Text ── */
    --rz-text-color:           var(--koru-ink);
    --rz-text-primary-color:   var(--koru-ink);
    --rz-text-title-color:     #0f1813;
    --rz-text-secondary-color: var(--koru-muted);
    --rz-text-tertiary-color:  #76897c;
    --rz-text-disabled-color:  #9aa99f;
    --rz-text-contrast-color:  #ffffff;
    --rz-link-color:           var(--koru-lime);
    --rz-link-hover-color:     #3a5d0e;

    /* ── Primary / secondary ──
       -lighter is a TINT BACKGROUND in Gardener's CSS, not a pale foreground,
       so it has to be near the surface rather than near the brand colour. */
    --rz-primary:         var(--koru-lime);
    --rz-primary-light:   #5f9120;
    --rz-primary-lighter: #e4f2d4;
    --rz-primary-dark:    #3a5d0e;
    --rz-primary-darker:  #2d490b;
    --rz-secondary:        var(--koru-jade);
    --rz-secondary-light:  #05906a;
    --rz-secondary-lighter:#d8efe5;
    --rz-secondary-dark:   #03583d;

    /* ── Status ──
       Success and info are the brand's own green and jade, so a healthy
       system reads as the product rather than as a generic green. */
    --rz-success:         #2f7d1f;
    --rz-success-light:   #3f9a2b;
    --rz-success-lighter: #e2f3dc;
    --rz-success-dark:    #245f17;
    --rz-success-darker:  #1b4711;
    --rz-warning:         #8a5a06;
    --rz-warning-light:   #ad7310;
    --rz-warning-lighter: #fbeed6;
    --rz-warning-dark:    #6d4705;
    --rz-warning-darker:  #523504;
    --rz-danger:          #b3261e;
    --rz-danger-light:    #cf3a31;
    --rz-danger-lighter:  #fadedc;
    --rz-danger-dark:     #8c1d17;
    --rz-danger-darker:   #6b1612;
    --rz-info:            var(--koru-jade);
    --rz-info-light:      #05906a;
    --rz-info-lighter:    #d8efe5;
    --rz-info-dark:       #035a3e;
    --rz-info-darker:     #02452f;

    /* ── Elevation ── */
    --rz-shadow-1: 0 1px 2px rgba(22, 33, 26, 0.06);
    --rz-shadow-2: 0 1px 3px rgba(22, 33, 26, 0.09), 0 1px 2px rgba(22, 33, 26, 0.05);
    --rz-shadow-3: 0 3px 8px rgba(22, 33, 26, 0.10), 0 1px 3px rgba(22, 33, 26, 0.06);
    --rz-shadow-4: 0 6px 16px rgba(22, 33, 26, 0.12), 0 2px 5px rgba(22, 33, 26, 0.07);
    --rz-shadow-5: 0 10px 26px rgba(22, 33, 26, 0.14), 0 3px 8px rgba(22, 33, 26, 0.08);

    /* ── Gardener status tokens ──
       Named by MEANING, not by colour, so the pages that use them stop
       hardcoding hex. Deliberately distinct from --rz-success and friends:
       a Radzen success button and a board-is-online dot are different jobs,
       and tying them together means neither can be tuned alone. */
    --g-status-ok:          #2f7d1f;
    --g-status-ok-bg:       rgba(47, 125, 31, 0.10);
    --g-status-warn:        #8a5a06;
    --g-status-warn-bg:     rgba(138, 90, 6, 0.12);
    --g-status-bad:         #b3261e;
    --g-status-bad-bg:      rgba(179, 38, 30, 0.10);
    --g-status-off:         #5f6f64;
    --g-status-off-bg:      rgba(95, 111, 100, 0.10);
    /* Header fills carry text, so they are solid and paired with an ink. */
    --g-status-ok-fill:     #2f7d1f;
    --g-status-ok-ink:      #ffffff;
    --g-status-warn-fill:   #e8b54a;
    --g-status-warn-ink:    #2a1f05;
    --g-status-bad-fill:    #b3261e;
    --g-status-bad-ink:     #ffffff;
    --g-status-off-fill:    #d8e0da;
    --g-status-off-ink:     #3b463f;

    /* ── Section palettes ──
       Categorical, not semantic: they only have to tell six sections apart.
       The hues are the originals from the Topology page; the LIGHTNESS is
       what flips between modes, which is why they are tokens now. Each set
       is a fill, a border, and two text weights that both read on the fill. */
    --g-sec-1-bg: #faeeda; --g-sec-1-border: #ba7517; --g-sec-1-ink: #633806; --g-sec-1-ink2: #854f0b;
    --g-sec-2-bg: #e1f5ee; --g-sec-2-border: #1d9e75; --g-sec-2-ink: #085041; --g-sec-2-ink2: #0f6e56;
    --g-sec-3-bg: #eeedfe; --g-sec-3-border: #7f77dd; --g-sec-3-ink: #3c3489; --g-sec-3-ink2: #534ab7;
    --g-sec-4-bg: #faece7; --g-sec-4-border: #d85a30; --g-sec-4-ink: #712b13; --g-sec-4-ink2: #993c1d;
    --g-sec-5-bg: #fbeaf0; --g-sec-5-border: #d4537e; --g-sec-5-ink: #72243e; --g-sec-5-ink2: #993556;
    --g-sec-6-bg: #e6f1fb; --g-sec-6-border: #378add; --g-sec-6-ink: #0c447c; --g-sec-6-ink2: #185fa5;

    /* Ink paired with the jade fill, for the few places that use it raw. */
    --koru-on-jade: #06281d;

    /* ── Chart series ──
       Radzen charts fall back to their own blue ramp when these are unset,
       which is the one place an un-themed colour would appear on a themed
       page. Ordered so the first three are the brand's own lime, jade and
       amber, then hues chosen to stay distinguishable from each other rather
       than merely to stay in the family. */
    --rz-series-1: #5f9120;
    --rz-series-2: #04704e;
    --rz-series-3: #b9802a;
    --rz-series-4: #1d7d87;
    --rz-series-5: #4e6b32;
    --rz-series-6: #a9513a;
    --rz-series-7: #5f5389;
    --rz-series-8: #4d6456;

    color-scheme: light;
}

/* ---------------------------------------------------------------------------
 * 3 — DARK — the supplied kit
 * ------------------------------------------------------------------------- */
:root[data-koru-theme="dark"] {
    /* ── KORU tokens, from the kit ── */
    --koru-bg:       #0d1511;
    --koru-panel:    #142019;
    --koru-panel-2:  #1a2b21;
    --koru-border:   #293b30;
    --koru-border-2: #385041;
    --koru-ink:      #eff7ed;
    --koru-muted:    #a6b8ab;
    --koru-lime:     #a4db43;
    --koru-jade:     #05bb81;
    --koru-amber:    #f9c478;
    --koru-on-lime:  #152214;
    --koru-badge-bg: #253926;
    --koru-badge-ink:#c4eda0;
    --koru-hero:     radial-gradient(ellipse at top right, #31552a, transparent 65%),
                     linear-gradient(130deg, #1b3021, #13271d);

    /* ── Surfaces ──
       The ramp is INVERTED relative to light: Gardener's CSS uses base-50 and
       base-100 as "slightly recessed surface", so in dark they must be darker
       than the panel rather than lighter, or every well and table stripe
       becomes a bright band. */
    --rz-base:                  #142019;
    --rz-base-background-color: var(--koru-bg);
    --rz-base-background:       var(--koru-bg);
    --rz-body-background-color: var(--koru-bg);
    --rz-base-50:   #101a14;
    --rz-base-100:  #142019;
    --rz-base-200:  #1d2b22;
    --rz-base-300:  #293b30;
    --rz-base-400:  #385041;
    --rz-base-500:  #4a6554;
    --rz-base-600:  #5e7c69;
    --rz-base-700:  #7b9885;
    --rz-base-800:  #a6b8ab;
    --rz-base-900:  #eff7ed;
    --rz-border-color: var(--koru-border);
    --rz-card-background-color: var(--koru-panel);
    --rz-panel-background-color: var(--koru-panel);
    --rz-sidebar-color: #101a14;

    /* ── Text ── */
    --rz-text-color:           var(--koru-ink);
    --rz-text-primary-color:   var(--koru-ink);
    --rz-text-title-color:     #ffffff;
    --rz-text-secondary-color: var(--koru-muted);
    --rz-text-tertiary-color:  #8b9d91;
    --rz-text-disabled-color:  #5f6f64;
    --rz-text-contrast-color:  #152214;
    --rz-link-color:           var(--koru-lime);
    --rz-link-hover-color:     #bbec67;

    /* ── Primary / secondary ── */
    --rz-primary:         var(--koru-lime);
    --rz-primary-light:   #bbec67;
    --rz-primary-lighter: #26331a;   /* tint background, so dark */
    --rz-primary-dark:    #8bc22f;
    --rz-primary-darker:  #6f9c22;
    --rz-secondary:        var(--koru-jade);
    --rz-secondary-light:  #2fd79e;
    --rz-secondary-lighter:#0f3328;
    --rz-secondary-dark:   #049c6c;

    /* ── Status ── */
    --rz-success:         #6cc24a;
    --rz-success-light:   #8ad96c;
    --rz-success-lighter: #1b2e17;
    --rz-success-dark:    #4e9a35;
    --rz-success-darker:  #3b7827;
    --rz-warning:         var(--koru-amber);
    --rz-warning-light:   #ffd89d;
    --rz-warning-lighter: #332715;
    --rz-warning-dark:    #d79b45;
    --rz-warning-darker:  #a97a33;
    --rz-danger:          #ff6b6b;
    --rz-danger-light:    #ff9191;
    --rz-danger-lighter:  #35191a;
    --rz-danger-dark:     #e04343;
    --rz-danger-darker:   #b63535;
    --rz-info:            var(--koru-jade);
    --rz-info-light:      #2fd79e;
    --rz-info-lighter:    #0f3328;
    --rz-info-dark:       #049c6c;
    --rz-info-darker:     #037a55;

    /* ── Elevation ──
       Deeper and more opaque than light: on a near-black surface a soft grey
       shadow is invisible, so dark elevation has to be carried by darkness. */
    --rz-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.40);
    --rz-shadow-2: 0 1px 3px rgba(0, 0, 0, 0.50), 0 1px 2px rgba(0, 0, 0, 0.40);
    --rz-shadow-3: 0 3px 8px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.40);
    --rz-shadow-4: 0 6px 16px rgba(0, 0, 0, 0.60), 0 2px 5px rgba(0, 0, 0, 0.45);
    --rz-shadow-5: 0 10px 26px rgba(0, 0, 0, 0.65), 0 3px 8px rgba(0, 0, 0, 0.50);

    /* ── Gardener status tokens ── */
    --g-status-ok:          #6cc24a;
    --g-status-ok-bg:       rgba(108, 194, 74, 0.14);
    --g-status-warn:        var(--koru-amber);
    --g-status-warn-bg:     rgba(249, 196, 120, 0.14);
    --g-status-bad:         #ff6b6b;
    --g-status-bad-bg:      rgba(255, 107, 107, 0.14);
    --g-status-off:         #8a9a8f;
    --g-status-off-bg:      rgba(138, 154, 143, 0.12);
    --g-status-ok-fill:     #3f7d2c;
    --g-status-ok-ink:      #eaffdf;
    --g-status-warn-fill:   #8a6520;
    --g-status-warn-ink:    #ffe9c4;
    --g-status-bad-fill:    #8e2b2b;
    --g-status-bad-ink:     #ffe3e3;
    --g-status-off-fill:    #2a3831;
    --g-status-off-ink:     #b9c7bd;

    /* ── Section palettes ── see the light block. Same hues, dark fills with
       light inks, so a section header is a tinted panel rather than a pastel
       block glowing on #0d1511. */
    --g-sec-1-bg: #322612; --g-sec-1-border: #c08a35; --g-sec-1-ink: #f2d6a4; --g-sec-1-ink2: #d9b273;
    --g-sec-2-bg: #0e2c25; --g-sec-2-border: #2bb98c; --g-sec-2-ink: #a8e8d3; --g-sec-2-ink2: #74d4b4;
    --g-sec-3-bg: #221f3a; --g-sec-3-border: #8d85e4; --g-sec-3-ink: #cfcbf7; --g-sec-3-ink2: #aaa3ec;
    --g-sec-4-bg: #33201a; --g-sec-4-border: #e0724d; --g-sec-4-ink: #f6c6b4; --g-sec-4-ink2: #eda088;
    --g-sec-5-bg: #331e26; --g-sec-5-border: #dc6c91; --g-sec-5-ink: #f7c3d4; --g-sec-5-ink2: #eb9cb6;
    --g-sec-6-bg: #142a3d; --g-sec-6-border: #4f9ae4; --g-sec-6-ink: #b9d9f6; --g-sec-6-ink2: #8bbdec;

    --koru-on-jade: #06281d;

    /* ── Chart series ── see the light block. */
    --rz-series-1: #a4db43;
    --rz-series-2: #05bb81;
    --rz-series-3: #f9c478;
    --rz-series-4: #4fd0dd;
    --rz-series-5: #9fc46f;
    --rz-series-6: #f09b7d;
    --rz-series-7: #b7a9e0;
    --rz-series-8: #9db5a6;

    color-scheme: dark;
}

/* ---------------------------------------------------------------------------
 * 4 — Shape and type
 *
 * The kit's geometry: 18px cards, 10px controls, pill badges, system-ui.
 * Sizes are left to Radzen — see the header note.
 * ------------------------------------------------------------------------- */
:root {
    --rz-text-font-family:    var(--koru-font);
    --rz-card-border-radius:  var(--koru-radius-card);
    --rz-border-radius:       var(--koru-radius-control);
    --rz-button-border-radius:var(--koru-radius-control);
    --rz-input-border-radius: var(--koru-radius-control);
    --rz-badge-border-radius: var(--koru-radius-pill);
}

body {
    background: var(--koru-bg);
    color: var(--koru-ink);
    font-family: var(--koru-font);
}

/* ---------------------------------------------------------------------------
 * 5 — Component touches the variables cannot reach
 *
 * Kept deliberately short. Everything that a variable can carry is carried by
 * one, because a rule here is a rule that has to be maintained against future
 * Radzen markup; these are only the places where the kit's look needs a
 * property Radzen exposes no variable for.
 * ------------------------------------------------------------------------- */

/* The kit's focus ring: 2px lime, offset. Applied to the real focus ring
   rather than to :focus, so it only shows for keyboard users. */
:where(a, button, [role="button"], input, select, textarea, .rz-button,
       .rz-textbox, .rz-dropdown, .rz-tabview-nav li):focus-visible {
    outline: 2px solid var(--koru-lime);
    outline-offset: 3px;
}

/* Cards: the kit's 18px radius and 1px border, over Radzen's own shadow-only
   card. The border is what gives the dark theme its panel definition — on
   #142019 against #0d1511 a shadow alone leaves the edge invisible. */
.rz-card {
    background: var(--koru-panel);
    border: 1px solid var(--koru-border);
    border-radius: var(--koru-radius-card);
}

/* Inputs sit on the recessed surface, as in the kit's controls. */
.rz-textbox, .rz-textarea, .rz-dropdown, .rz-spinner,
.rz-numeric input, .rz-datepicker input, .rz-multiselect {
    background-color: var(--koru-panel-2);
    border-color: var(--koru-border-2);
    color: var(--koru-ink);
}

/* The kit hovers a control's border to lime rather than changing its fill. */
.rz-textbox:hover, .rz-textarea:hover, .rz-dropdown:hover,
.rz-numeric:hover, .rz-multiselect:hover {
    border-color: var(--koru-lime);
}

/* Primary buttons carry the brand fill with the paired ink, which is the one
   place a wrong pairing produces unreadable text in one mode and not the
   other — hence a token for the ink rather than a fixed colour. */
.rz-button.rz-primary,
.rz-button-md.rz-primary {
    background-color: var(--koru-lime);
    border-color: var(--koru-lime);
    color: var(--koru-on-lime);
}
.rz-button.rz-primary:not(:disabled):hover,
.rz-button-md.rz-primary:not(:disabled):hover {
    background-color: var(--rz-primary-light);
    border-color: var(--rz-primary-light);
    color: var(--koru-on-lime);
}

/* Badges as the kit's pills. */
.rz-badge { border-radius: var(--koru-radius-pill); }

/* Menu/sidebar: the kit's active nav is a tinted block, not an underline. */
.rz-navigation-item-wrapper-active,
.rz-panel-menu .rz-navigation-item-wrapper-active {
    background: var(--koru-badge-bg);
    color: var(--koru-badge-ink);
    border-radius: var(--koru-radius-control);
}

/* Data grids: stripes and headers on the recessed surface, so a grid reads as
   part of its card rather than as a white rectangle dropped onto it. */
.rz-datatable .rz-datatable-thead > tr > th,
.rz-grid-table thead th {
    background: var(--koru-panel-2);
    color: var(--koru-ink);
    border-color: var(--koru-border);
}
.rz-datatable .rz-datatable-even,
.rz-grid-table tbody tr.rz-datatable-even { background: var(--koru-panel-2); }

/* Dialogs and the app bar follow the panel, not Radzen's own white. */
.rz-dialog-content, .rz-dialog { background: var(--koru-panel); color: var(--koru-ink); }
.rz-header, .rz-sidebar { background: var(--rz-sidebar-color); color: var(--koru-ink); }

/* The kit's hero block, available to any page that wants it. */
.koru-hero {
    background: var(--koru-hero);
    border: 1px solid var(--koru-border);
    border-radius: var(--koru-radius-card);
    padding: 28px;
    position: relative;
    overflow: hidden;
}
.koru-eyebrow {
    font: 700 11px var(--koru-font);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--koru-lime);
}

/* Honour the kit's own accessibility choice across everything added here. */
@media (prefers-reduced-motion: reduce) {
    .koru-hero, .rz-card { transition: none !important; }
}

/* ---------------------------------------------------------------------------
 * 6 — Header system switcher (v2.11.89)
 *
 * Lives here rather than in a page's <style> block because it is part of the
 * app chrome and has to follow both modes, which is exactly what the tokens
 * above are for.
 * ------------------------------------------------------------------------- */
.sysw {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.sysw-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 9px;
    font: 600 0.7rem var(--koru-font);
    letter-spacing: 0.02em;
    color: var(--koru-muted);
    background: var(--koru-panel-2);
    border: 1px solid var(--koru-border-2);
    border-radius: var(--koru-radius-pill);
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}

/* The kit hovers a control's border to lime rather than changing its fill. */
.sysw-btn:hover:not(:disabled) {
    border-color: var(--koru-lime);
    color: var(--koru-ink);
}

/* The selected system. Marked by FILL, not by a colour shift alone — the
   component also renders a check icon and aria-current, so which one is
   active never depends on telling two similar pills apart. */
.sysw-btn--on {
    background: var(--koru-lime);
    border-color: var(--koru-lime);
    color: var(--koru-on-lime);
    cursor: default;
}
.sysw-btn--on:hover { border-color: var(--koru-lime); color: var(--koru-on-lime); }

.sysw-btn:disabled { opacity: 0.55; cursor: progress; }

.sysw-dd {
    min-width: 170px;
    font-size: 0.72rem;
}

/* On a narrow header the switcher is the first thing worth shrinking: the
   garden badge and the profile menu matter more than seeing every system at
   once, and the dropdown form still reaches all of them. */
@media (max-width: 820px) {
    .sysw-btn { padding: 3px 7px; font-size: 0.65rem; }
}
