/* Official opt-in identities. Load after kagaku-ui.css, before consumer input overrides.
   Defaults and explicit-boundary resets live in the base stylesheet; this file supplies deltas.
   Size scales, control density, reading fonts, material effects and app layout remain independent. */

:where([data-kg-preset="jade"], [data-kg-preset="amber"], [data-kg-preset="rose"]) {
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 18px;
    --dur-fast: 140ms;
    --dur-base: 220ms;
    --dur-slow: 320ms;
    --shadow-1-light: 0 1px 3px rgb(34 45 25 / 8%);
    --shadow-1-dark: 0 1px 3px rgb(0 0 0 / 24%);
    --shadow-2-light: 0 5px 14px rgb(34 45 25 / 10%);
    --shadow-2-dark: 0 5px 14px rgb(0 0 0 / 32%);
    --shadow-3-light: 0 15px 35px rgb(34 45 25 / 15%);
    --shadow-3-dark: 0 15px 35px rgb(0 0 0 / 36%);
    --neutral-light: #596456;
    --neutral-dark: #aebe9d;
    --neutral-text-light: #596456;
    --neutral-text-dark: #c0ccb0;
    --neutral-subtle-light: #e4eadd;
    --neutral-subtle-dark: #293325;
    --info-light: #29578a;
    --info-dark: #9cc8ef;
    --info-text-light: #244e7d;
    --info-text-dark: #b1d5f6;
    --info-subtle-light: #e0eaf6;
    --info-subtle-dark: #1a3042;
    --success-light: #2e6b42;
    --success-dark: #a8d4a6;
    --success-text-light: #245d37;
    --success-text-dark: #b9dfb4;
    --success-subtle-light: #e0efde;
    --success-subtle-dark: #263d27;
    --warning-light: #9c5715;
    --warning-dark: #ebc784;
    --warning-text-light: #854810;
    --warning-text-dark: #f2d394;
    --warning-subtle-light: #f8ead2;
    --warning-subtle-dark: #44331e;
    --danger-light: #a33b37;
    --danger-dark: #e9aaa1;
    --danger-text-light: #92322d;
    --danger-text-dark: #f0bdb2;
    --danger-subtle-light: #f8e3dc;
    --danger-subtle-dark: #452724;
    --danger-hover-light: #8e2e2a;
    --danger-hover-dark: #f3bdb2;
    --danger-contrast-light: #fff8ec;
    --danger-contrast-dark: #321a17;
    --activity-period: 900ms;
}

/* Leaf Success remains distinct from sea-glass Accent. */
:where([data-kg-preset="jade"]) {
    --success-light: #536b27;
    --success-dark: #c6d98c;
    --success-text-light: #445b1c;
    --success-text-dark: #d0e4a0;
    --success-subtle-light: #e6edcc;
    --success-subtle-dark: #343e20;
    --bg-light: #d5e7e0;
    --bg-dark: #091613;
    --surface-light: #f5f4e6;
    --surface-dark: #182a24;
    --surface-raised-light: #fffbea;
    --surface-raised-dark: #20352d;
    --surface-sunken-light: #e2ebdf;
    --surface-sunken-dark: #10221c;
    --surface-hover-light: #dceadf;
    --surface-hover-dark: #2a4136;
    --text-light: #243b30;
    --text-dark: #e0e5ce;
    --text-muted-light: #52644f;
    --text-muted-dark: #b3bea1;
    --text-subtle-light: #63765e;
    --text-subtle-dark: #96a88d;
    --border-light: #b9cfc1;
    --border-dark: #415d4e;
    --border-strong-light: #698170;
    --border-strong-dark: #789a83;
    --accent-light: #236454;
    --accent-dark: #9dcebd;
    --accent-text-light: #1c594b;
    --accent-text-dark: #b8deca;
    --accent-hover-light: #194f42;
    --accent-hover-dark: #b4dfcd;
    --accent-contrast-light: #fff9e9;
    --accent-contrast-dark: #15271e;
    --accent-subtle-light: #d1e7d9;
    --accent-subtle-dark: #2a4436;
}

/* Stone Info remains distinct from gold Warning. */
:where([data-kg-preset="amber"]) {
    --neutral-text-light: #546050;
    --info-light: #655e55;
    --info-dark: #c9c1af;
    --info-text-light: #595247;
    --info-text-dark: #ded4bf;
    --info-subtle-light: #ece5d9;
    --info-subtle-dark: #363127;
    --bg-light: #edd4ad;
    --bg-dark: #170e09;
    --surface-light: #fff2dc;
    --surface-dark: #2a1c12;
    --surface-raised-light: #fff8e8;
    --surface-raised-dark: #332317;
    --surface-sunken-light: #f0dec0;
    --surface-sunken-dark: #20150d;
    --surface-hover-light: #f4dfbf;
    --surface-hover-dark: #3d2b1d;
    --text-light: #4c3021;
    --text-dark: #ecdbc0;
    --text-muted-light: #77563d;
    --text-muted-dark: #c4ac8c;
    --text-subtle-light: #835d3e;
    --text-subtle-dark: #ac9373;
    --border-light: #ddbb92;
    --border-dark: #61472d;
    --border-strong-light: #9c6c42;
    --border-strong-dark: #99784e;
    --accent-light: #a04926;
    --accent-dark: #edb66f;
    --accent-text-light: #8f3c1e;
    --accent-text-dark: #f1c38a;
    --accent-hover-light: #893b1c;
    --accent-hover-dark: #f5cb96;
    --accent-contrast-light: #fff7e8;
    --accent-contrast-dark: #301b0c;
    --accent-subtle-light: #f5ddbe;
    --accent-subtle-dark: #503520;
}

/* Blush surfaces become plum at night; magenta Accent stays separate from red Danger. */
:where([data-kg-preset="rose"]) {
    --bg-light: #f3dce5;
    --bg-dark: #180f20;
    --surface-light: #fff3f7;
    --surface-dark: #291a33;
    --surface-raised-light: #fff9fb;
    --surface-raised-dark: #342140;
    --surface-sunken-light: #f4e3ec;
    --surface-sunken-dark: #211429;
    --surface-hover-light: #efd6e3;
    --surface-hover-dark: #40294c;
    --text-light: #44263b;
    --text-dark: #f5e2f1;
    --text-muted-light: #71526a;
    --text-muted-dark: #c9adca;
    --text-subtle-light: #795c72;
    --text-subtle-dark: #b291b8;
    --border-light: #dcb8ca;
    --border-dark: #62466e;
    --border-strong-light: #98637f;
    --border-strong-dark: #a17db0;
    --accent-light: #92376e;
    --accent-dark: #e6a0dc;
    --accent-text-light: #842c63;
    --accent-text-dark: #f0b9e8;
    --accent-hover-light: #7c295e;
    --accent-hover-dark: #f0b6e8;
    --accent-contrast-light: #fff7fb;
    --accent-contrast-dark: #2c1232;
    --accent-subtle-light: #f3d8e7;
    --accent-subtle-dark: #512b58;
    --neutral-light: #6b586a;
    --neutral-dark: #bfa7c5;
    --neutral-text-light: #625061;
    --neutral-text-dark: #d4bcd9;
    --neutral-subtle-light: #eadfe8;
    --neutral-subtle-dark: #382a40;
    --info-light: #355d8a;
    --info-dark: #a1c9ef;
    --info-text-light: #2e527c;
    --info-text-dark: #b7d9f7;
    --info-subtle-light: #e2eaf6;
    --info-subtle-dark: #203348;
    --success-light: #31683f;
    --success-dark: #9ccfa9;
    --success-text-light: #285c35;
    --success-text-dark: #b5dfbf;
    --success-subtle-light: #e1eddc;
    --success-subtle-dark: #243b2d;
    --warning-light: #8c5813;
    --warning-dark: #e7c17b;
    --warning-text-light: #794b10;
    --warning-text-dark: #f3d394;
    --warning-subtle-light: #f6e8cd;
    --warning-subtle-dark: #44341e;
    --danger-light: #a03231;
    --danger-dark: #efa49b;
    --danger-text-light: #8b2728;
    --danger-text-dark: #ffc1b8;
    --danger-subtle-light: #f9e0dc;
    --danger-subtle-dark: #47272b;
    --danger-hover-light: #892526;
    --danger-hover-dark: #ffbbb1;
    --danger-contrast-light: #fff8f5;
    --danger-contrast-dark: #351919;
    --backdrop-color-light: rgb(24 10 28 / 50%);
    --backdrop-color-dark: rgb(24 10 28 / 65%);
    --shadow-1-light: 0 1px 3px rgb(57 26 47 / 8%);
    --shadow-1-dark: 0 1px 3px rgb(0 0 0 / 24%);
    --shadow-2-light: 0 5px 14px rgb(57 26 47 / 10%);
    --shadow-2-dark: 0 5px 14px rgb(0 0 0 / 32%);
    --shadow-3-light: 0 15px 35px rgb(57 26 47 / 15%);
    --shadow-3-dark: 0 15px 35px rgb(0 0 0 / 36%);
}
