/* ═══════════════════════════════════════════════════════════════
   COLOR THEMES — 5 switchable palettes, each with Dark + Light
   Default: Soviet Retro (original warm amber/khaki)
   Midnight Steel: Cool blue-steel industrial
   Carbon Forge: Charcoal + neon lime tuner/racing
   Crimson Workshop: Deep blacks + bold red mechanical
   Arctic Chrome: Slate gray + icy teal modern
   ═══════════════════════════════════════════════════════════════ */

/* ---------- DEFAULT / SOVIET RETRO (dark) ---------- */
:root {
    --brass: #D4943A;
    --brass-light: #E8B05C;
    --brass-dark: #A06B20;
    --olive: #5A5A3A;
    --olive-dark: #3A3A24;
    --olive-light: #7A7A52;
    --copper: #C45C3C;
    --gunmetal: #33332A;
    --steel: #7A7A6E;
    --text-primary: #E8E2D4;
    --text-secondary: #B5AFA0;
    --bg-primary: #1C1B16;
    --bg-secondary: #252420;
    --bg-card: #2A2924;
    --bg-inset: rgba(0,0,0,0.35);
    --accent-green: #7A8C42;
    --danger: #B83A2A;
    --info-blue: #6A8A6A;
    --sidebar-width: 270px;
    --accent-rgb: 212,148,58;
    --head-font: 'Trebuchet MS', sans-serif;
}

/* ---------- SOVIET RETRO (light) ---------- */
[data-theme="light"] {
    --brass: #8B6914;
    --brass-light: #A07D1C;
    --brass-dark: #6B510F;
    --olive: #6A6A4A;
    --olive-dark: #4A4A34;
    --olive-light: #8A8A62;
    --copper: #A04A2E;
    --gunmetal: #D5D5CC;
    --steel: #6A6A5E;
    --text-primary: #1C1B16;
    --text-secondary: #4A4840;
    --bg-primary: #F0EDE4;
    --bg-secondary: #E4E1D8;
    --bg-card: #DAD7CE;
    --bg-inset: rgba(0,0,0,0.06);
    --accent-green: #5A6C32;
    --danger: #A03020;
    --info-blue: #4A6A4A;
    --accent-rgb: 139,105,20;
}

/* ---------- MIDNIGHT STEEL (dark) ---------- */
[data-color="editor"] {
    --brass: #4A9E6E;
    --brass-light: #5CB882;
    --brass-dark: #387A54;
    --olive: #3A4A40;
    --olive-dark: #28332C;
    --olive-light: #4E6358;
    --copper: #E88030;
    --gunmetal: #1A2026;
    --steel: #6A7A8A;
    --text-primary: #E4E8EC;
    --text-secondary: #8A96A4;
    --bg-primary: #0C0F12;
    --bg-secondary: #111619;
    --bg-card: #171D22;
    --bg-inset: rgba(0,0,0,0.35);
    --accent-green: #4CAF50;
    --danger: #C44040;
    --info-blue: #4F86AE;
    --accent-rgb: 74,158,110;
    --head-font: 'Trebuchet MS', 'Segoe UI', sans-serif;
}

[data-color="midnight"] {
    --brass: #4A9EDB;
    --brass-light: #6BB5EC;
    --brass-dark: #2D6FA3;
    --olive: #3A4A5A;
    --olive-dark: #242E38;
    --olive-light: #5A7090;
    --copper: #E05555;
    --gunmetal: #1C2128;
    --steel: #6A7A8A;
    --text-primary: #D6DCE4;
    --text-secondary: #8B95A5;
    --bg-primary: #0F1318;
    --bg-secondary: #161B22;
    --bg-card: #1C2128;
    --bg-inset: rgba(0,0,0,0.4);
    --accent-green: #4A8A6A;
    --danger: #C44040;
    --info-blue: #3D7BAA;
    --accent-rgb: 74,158,219;
    --head-font: 'Rajdhani', sans-serif;
}

/* ---------- MIDNIGHT STEEL (light) ---------- */
[data-color="midnight"][data-theme="light"] {
    --brass: #2A6FA0;
    --brass-light: #3580B5;
    --brass-dark: #1D5580;
    --olive: #4A5A6A;
    --olive-dark: #3A4A58;
    --olive-light: #6A8098;
    --copper: #C04040;
    --gunmetal: #D0D5DC;
    --steel: #5A6A7A;
    --text-primary: #151B22;
    --text-secondary: #4A5568;
    --bg-primary: #EDF1F5;
    --bg-secondary: #E0E5EC;
    --bg-card: #D4DAE2;
    --bg-inset: rgba(0,0,0,0.06);
    --accent-green: #3A7A5A;
    --danger: #A03030;
    --info-blue: #2D6090;
    --accent-rgb: 42,111,160;
}

/* ---------- CARBON FORGE (dark) ---------- */
[data-color="carbon"] {
    --brass: #8BC34A;
    --brass-light: #A4D65E;
    --brass-dark: #5E8A2E;
    --olive: #3A3E30;
    --olive-dark: #282C20;
    --olive-light: #5A6248;
    --copper: #E67E22;
    --gunmetal: #21231E;
    --steel: #6A7060;
    --text-primary: #E0E4D8;
    --text-secondary: #959E88;
    --bg-primary: #111210;
    --bg-secondary: #1A1C18;
    --bg-card: #21231E;
    --bg-inset: rgba(0,0,0,0.4);
    --accent-green: #6CA838;
    --danger: #D44A2A;
    --info-blue: #6A9A50;
    --accent-rgb: 139,195,74;
    --head-font: 'Exo 2', sans-serif;
}

/* ---------- CARBON FORGE (light) ---------- */
[data-color="carbon"][data-theme="light"] {
    --brass: #4A7A20;
    --brass-light: #5C8E2A;
    --brass-dark: #3A6018;
    --olive: #5A6048;
    --olive-dark: #4A5038;
    --olive-light: #7A8262;
    --copper: #C06A18;
    --gunmetal: #D2D5CC;
    --steel: #5A6050;
    --text-primary: #1A1C18;
    --text-secondary: #4A5040;
    --bg-primary: #ECEFE6;
    --bg-secondary: #E0E4DA;
    --bg-card: #D5DACB;
    --bg-inset: rgba(0,0,0,0.06);
    --accent-green: #4A8A28;
    --danger: #B83A20;
    --info-blue: #4A7A38;
    --accent-rgb: 74,122,32;
}

/* ---------- CRIMSON WORKSHOP (dark) ---------- */
[data-color="crimson"] {
    --brass: #D44040;
    --brass-light: #E65A5A;
    --brass-dark: #9A2A2A;
    --olive: #4A3A34;
    --olive-dark: #342824;
    --olive-light: #6A5248;
    --copper: #E8A040;
    --gunmetal: #221E1C;
    --steel: #7A6A62;
    --text-primary: #E8E0DC;
    --text-secondary: #A0948C;
    --bg-primary: #12100F;
    --bg-secondary: #1A1716;
    --bg-card: #221E1C;
    --bg-inset: rgba(0,0,0,0.4);
    --accent-green: #6A8A4A;
    --danger: #D44040;
    --info-blue: #7A8A6A;
    --accent-rgb: 212,64,64;
    --head-font: 'Oswald', sans-serif;
}

/* ---------- CRIMSON WORKSHOP (light) ---------- */
[data-color="crimson"][data-theme="light"] {
    --brass: #A82020;
    --brass-light: #BE2A2A;
    --brass-dark: #801818;
    --olive: #5A4A44;
    --olive-dark: #4A3A34;
    --olive-light: #7A6258;
    --copper: #C08030;
    --gunmetal: #D5D0CC;
    --steel: #6A5A52;
    --text-primary: #1A1614;
    --text-secondary: #5A504A;
    --bg-primary: #F2EDEA;
    --bg-secondary: #E6E0DC;
    --bg-card: #DBD4CF;
    --bg-inset: rgba(0,0,0,0.06);
    --accent-green: #4A7A2A;
    --danger: #A82020;
    --info-blue: #5A7A4A;
    --accent-rgb: 168,32,32;
}

/* ---------- ARCTIC CHROME (dark) ---------- */
[data-color="arctic"] {
    --brass: #3ABCB0;
    --brass-light: #5ED4C8;
    --brass-dark: #28887E;
    --olive: #3A4A4E;
    --olive-dark: #283438;
    --olive-light: #5A7278;
    --copper: #D8884A;
    --gunmetal: #1D2328;
    --steel: #6A7A82;
    --text-primary: #DAE2E8;
    --text-secondary: #8A9AA8;
    --bg-primary: #101416;
    --bg-secondary: #171C20;
    --bg-card: #1D2328;
    --bg-inset: rgba(0,0,0,0.35);
    --accent-green: #4AA080;
    --danger: #C45050;
    --info-blue: #3A9A8A;
    --accent-rgb: 58,188,176;
    --head-font: 'Chakra Petch', sans-serif;
}

/* ---------- ARCTIC CHROME (light) ---------- */
[data-color="arctic"][data-theme="light"] {
    --brass: #1E8A80;
    --brass-light: #28A098;
    --brass-dark: #166A62;
    --olive: #4A5A5E;
    --olive-dark: #3A4A4E;
    --olive-light: #6A8288;
    --copper: #B87040;
    --gunmetal: #D0D5D8;
    --steel: #506068;
    --text-primary: #141A1E;
    --text-secondary: #4A5A68;
    --bg-primary: #EDF2F4;
    --bg-secondary: #E0E6EA;
    --bg-card: #D4DBDF;
    --bg-inset: rgba(0,0,0,0.05);
    --accent-green: #3A8A6A;
    --danger: #A04040;
    --info-blue: #2A7A6A;
    --accent-rgb: 30,138,128;
}

/* ---------- LIVONIA (dark) — Forest greens & earthy browns ---------- */
[data-color="livonia"] {
    --brass: #6B9E4A;
    --brass-light: #82B85E;
    --brass-dark: #4A7232;
    --olive: #3A4230;
    --olive-dark: #282E20;
    --olive-light: #5A6448;
    --copper: #C4843A;
    --gunmetal: #21261C;
    --steel: #6A7260;
    --text-primary: #DDE4D4;
    --text-secondary: #94A084;
    --bg-primary: #121410;
    --bg-secondary: #1A1E16;
    --bg-card: #21261C;
    --bg-inset: rgba(0,0,0,0.38);
    --accent-green: #5A8A38;
    --danger: #B84A2A;
    --info-blue: #5A8A4A;
    --accent-rgb: 107,158,74;
    --head-font: 'Barlow Condensed', sans-serif;
}

/* ---------- LIVONIA (light) ---------- */
[data-color="livonia"][data-theme="light"] {
    --brass: #3A6A22;
    --brass-light: #4A7E2E;
    --brass-dark: #2A5218;
    --olive: #5A6248;
    --olive-dark: #4A5238;
    --olive-light: #7A8462;
    --copper: #A06A28;
    --gunmetal: #D2D5CC;
    --steel: #5A6250;
    --text-primary: #181C14;
    --text-secondary: #4A5240;
    --bg-primary: #ECF0E6;
    --bg-secondary: #E0E4D8;
    --bg-card: #D5DACB;
    --bg-inset: rgba(0,0,0,0.06);
    --accent-green: #4A7A28;
    --danger: #A03A20;
    --info-blue: #4A7A3A;
    --accent-rgb: 58,106,34;
}

/* ---------- NAMALSK (dark) — Cold arctic blues & industrial greys ---------- */
[data-color="namalsk"] {
    --brass: #4A88B4;
    --brass-light: #62A0CC;
    --brass-dark: #326A90;
    --olive: #2E3640;
    --olive-dark: #202830;
    --olive-light: #4A5668;
    --copper: #AE7050;
    --gunmetal: #1A2028;
    --steel: #5A6878;
    --text-primary: #CCD4E0;
    --text-secondary: #7888A0;
    --bg-primary: #0C1018;
    --bg-secondary: #121820;
    --bg-card: #182028;
    --bg-inset: rgba(0,0,0,0.42);
    --accent-green: #4A7A6A;
    --danger: #B04444;
    --info-blue: #3A6A90;
    --accent-rgb: 74,136,180;
    --head-font: 'Share Tech', sans-serif;
}

/* ---------- NAMALSK (light) ---------- */
[data-color="namalsk"][data-theme="light"] {
    --brass: #2A5A7A;
    --brass-light: #346E92;
    --brass-dark: #1E4862;
    --olive: #4A5260;
    --olive-dark: #3A4250;
    --olive-light: #6A7688;
    --copper: #906040;
    --gunmetal: #CCD0D8;
    --steel: #4A5868;
    --text-primary: #101820;
    --text-secondary: #3A4A5E;
    --bg-primary: #E6EAF0;
    --bg-secondary: #D8DEE6;
    --bg-card: #CCD4DE;
    --bg-inset: rgba(0,0,0,0.06);
    --accent-green: #3A6A5A;
    --danger: #903838;
    --info-blue: #2A5A78;
    --accent-rgb: 42,90,122;
}

/* ---------- SAKHAL (dark) — Icy blue-grey frost tones ---------- */
[data-color="sakhal"] {
    --brass: #8AA0B8;
    --brass-light: #A2B8CE;
    --brass-dark: #607888;
    --olive: #343840;
    --olive-dark: #262A30;
    --olive-light: #505860;
    --copper: #B08868;
    --gunmetal: #1E2228;
    --steel: #606A78;
    --text-primary: #D0D6E0;
    --text-secondary: #788494;
    --bg-primary: #101218;
    --bg-secondary: #161A20;
    --bg-card: #1C2028;
    --bg-inset: rgba(0,0,0,0.38);
    --accent-green: #6A8A7A;
    --danger: #A85050;
    --info-blue: #6A8298;
    --accent-rgb: 138,160,184;
    --head-font: 'Jura', sans-serif;
}

/* ---------- SAKHAL (light) ---------- */
[data-color="sakhal"][data-theme="light"] {
    --brass: #4A6072;
    --brass-light: #587080;
    --brass-dark: #3A4E5E;
    --olive: #505860;
    --olive-dark: #404850;
    --olive-light: #6A7280;
    --copper: #906A4A;
    --gunmetal: #C8CCD2;
    --steel: #505A68;
    --text-primary: #141820;
    --text-secondary: #404A5A;
    --bg-primary: #EAECF0;
    --bg-secondary: #DDE0E6;
    --bg-card: #D0D4DA;
    --bg-inset: rgba(0,0,0,0.05);
    --accent-green: #5A7A6A;
    --danger: #8A4040;
    --info-blue: #4A6278;
    --accent-rgb: 74,96,114;
}

/* ---------- VIOLET STORM (dark) — Royal electric purple ---------- */
[data-color="violet"] {
    --brass: #9B59D0;
    --brass-light: #B370E8;
    --brass-dark: #7040A0;
    --olive: #302840;
    --olive-dark: #221C30;
    --olive-light: #4E3E68;
    --copper: #D0884A;
    --gunmetal: #1C1828;
    --steel: #685888;
    --text-primary: #E0D8EE;
    --text-secondary: #9488AA;
    --bg-primary: #0E0C14;
    --bg-secondary: #141020;
    --bg-card: #1C1828;
    --bg-inset: rgba(0,0,0,0.4);
    --accent-green: #6A9A6A;
    --danger: #C84848;
    --info-blue: #7A6AA0;
    --accent-rgb: 155,89,208;
    --head-font: 'Orbitron', sans-serif;
}

/* ---------- VIOLET STORM (light) ---------- */
[data-color="violet"][data-theme="light"] {
    --brass: #6A3A98;
    --brass-light: #7E48B0;
    --brass-dark: #522A78;
    --olive: #4A4058;
    --olive-dark: #3A3048;
    --olive-light: #6A5A7A;
    --copper: #A86A30;
    --gunmetal: #D4D0DA;
    --steel: #584A70;
    --text-primary: #1A1420;
    --text-secondary: #4A3E5A;
    --bg-primary: #F0ECF4;
    --bg-secondary: #E4DEEc;
    --bg-card: #D6D0E0;
    --bg-inset: rgba(0,0,0,0.05);
    --accent-green: #4A7A4A;
    --danger: #A03838;
    --info-blue: #5A4A78;
    --accent-rgb: 106,58,152;
}

/* ---------- EMBER GLOW (dark) — Warm fiery orange ---------- */
[data-color="ember"] {
    --brass: #E07828;
    --brass-light: #F09040;
    --brass-dark: #B85E18;
    --olive: #3E3028;
    --olive-dark: #2C201A;
    --olive-light: #5E4838;
    --copper: #C4643A;
    --gunmetal: #221A14;
    --steel: #7A6250;
    --text-primary: #EEE0D4;
    --text-secondary: #A89078;
    --bg-primary: #121010;
    --bg-secondary: #1C1614;
    --bg-card: #241E1A;
    --bg-inset: rgba(0,0,0,0.4);
    --accent-green: #6A9A4A;
    --danger: #D04040;
    --info-blue: #B07030;
    --accent-rgb: 224,120,40;
    --head-font: 'Teko', sans-serif;
}

/* ---------- EMBER GLOW (light) ---------- */
[data-color="ember"][data-theme="light"] {
    --brass: #B85A10;
    --brass-light: #D06A18;
    --brass-dark: #944808;
    --olive: #5A4A3A;
    --olive-dark: #4A3A2A;
    --olive-light: #7A6450;
    --copper: #A04A28;
    --gunmetal: #D8D0C8;
    --steel: #685640;
    --text-primary: #1C1410;
    --text-secondary: #584838;
    --bg-primary: #F4EDE6;
    --bg-secondary: #E8E0D6;
    --bg-card: #DCD2C6;
    --bg-inset: rgba(0,0,0,0.06);
    --accent-green: #4A8A3A;
    --danger: #A83030;
    --info-blue: #8A5820;
    --accent-rgb: 184,90,16;
}

/* ---------- NEON MAGENTA (dark) — Bold cyberpunk pink ---------- */
[data-color="magenta"] {
    --brass: #E040A0;
    --brass-light: #F058B8;
    --brass-dark: #B03080;
    --olive: #38283A;
    --olive-dark: #281C2A;
    --olive-light: #583E58;
    --copper: #D08850;
    --gunmetal: #201820;
    --steel: #785878;
    --text-primary: #ECD8E8;
    --text-secondary: #A888A0;
    --bg-primary: #120C12;
    --bg-secondary: #1A1218;
    --bg-card: #221A22;
    --bg-inset: rgba(0,0,0,0.42);
    --accent-green: #6A9A70;
    --danger: #D04848;
    --info-blue: #A04888;
    --accent-rgb: 224,64,160;
    --head-font: 'Audiowide', sans-serif;
}

/* ---------- NEON MAGENTA (light) ---------- */
[data-color="magenta"][data-theme="light"] {
    --brass: #A82878;
    --brass-light: #C03090;
    --brass-dark: #881E60;
    --olive: #504050;
    --olive-dark: #403040;
    --olive-light: #705868;
    --copper: #A86A38;
    --gunmetal: #D6CED4;
    --steel: #684860;
    --text-primary: #1C1218;
    --text-secondary: #584050;
    --bg-primary: #F4ECF0;
    --bg-secondary: #E8DEE4;
    --bg-card: #DCD0D8;
    --bg-inset: rgba(0,0,0,0.05);
    --accent-green: #4A7A50;
    --danger: #A03030;
    --info-blue: #803868;
    --accent-rgb: 168,40,120;
}

/* ---------- SOLAR FLARE (dark) — Bright golden yellow ---------- */
[data-color="solar"] {
    --brass: #E0B820;
    --brass-light: #F0CA38;
    --brass-dark: #B89410;
    --olive: #383020;
    --olive-dark: #282214;
    --olive-light: #585030;
    --copper: #C88830;
    --gunmetal: #201C10;
    --steel: #787050;
    --text-primary: #F0E8D0;
    --text-secondary: #A89870;
    --bg-primary: #10100C;
    --bg-secondary: #181810;
    --bg-card: #22201A;
    --bg-inset: rgba(0,0,0,0.4);
    --accent-green: #6A9A48;
    --danger: #D04838;
    --info-blue: #B09418;
    --accent-rgb: 224,184,32;
    --head-font: 'Russo One', sans-serif;
}

/* ---------- SOLAR FLARE (light) ---------- */
[data-color="solar"][data-theme="light"] {
    --brass: #8A7008;
    --brass-light: #A08410;
    --brass-dark: #6A5800;
    --olive: #585038;
    --olive-dark: #484028;
    --olive-light: #787048;
    --copper: #A06A18;
    --gunmetal: #D4D0C0;
    --steel: #686040;
    --text-primary: #181810;
    --text-secondary: #504A30;
    --bg-primary: #F4F0E4;
    --bg-secondary: #E8E4D4;
    --bg-card: #DCDAC8;
    --bg-inset: rgba(0,0,0,0.06);
    --accent-green: #4A7A38;
    --danger: #A83028;
    --info-blue: #787010;
    --accent-rgb: 138,112,8;
}

/* ---------- EMERALD DEPTHS (dark) — Deep jewel green ---------- */
[data-color="emerald"] {
    --brass: #2EAA6E;
    --brass-light: #40C488;
    --brass-dark: #1E8A54;
    --olive: #243830;
    --olive-dark: #182822;
    --olive-light: #3A5848;
    --copper: #C08848;
    --gunmetal: #142018;
    --steel: #507858;
    --text-primary: #D4EEE0;
    --text-secondary: #78AA90;
    --bg-primary: #0A100C;
    --bg-secondary: #101A14;
    --bg-card: #182420;
    --bg-inset: rgba(0,0,0,0.42);
    --accent-green: #2E9A60;
    --danger: #C04848;
    --info-blue: #288A5A;
    --accent-rgb: 46,170,110;
    --head-font: 'Exo 2', sans-serif;
}

/* ---------- EMERALD DEPTHS (light) ---------- */
[data-color="emerald"][data-theme="light"] {
    --brass: #1A7A4A;
    --brass-light: #22905A;
    --brass-dark: #126038;
    --olive: #3A5040;
    --olive-dark: #2A4030;
    --olive-light: #5A7860;
    --copper: #9A6830;
    --gunmetal: #C8D4CC;
    --steel: #406850;
    --text-primary: #101C14;
    --text-secondary: #384A40;
    --bg-primary: #E8F0EC;
    --bg-secondary: #DCE6E0;
    --bg-card: #CEDAD2;
    --bg-inset: rgba(0,0,0,0.05);
    --accent-green: #1A7A4A;
    --danger: #983838;
    --info-blue: #1A6A44;
    --accent-rgb: 26,122,74;
}

/* ---------- BRONZE AGE (dark) — Warm metallic copper ---------- */
[data-color="bronze"] {
    --brass: #C48040;
    --brass-light: #D89858;
    --brass-dark: #9A6230;
    --olive: #3A3028;
    --olive-dark: #28201A;
    --olive-light: #585040;
    --copper: #C47838;
    --gunmetal: #201A14;
    --steel: #806848;
    --text-primary: #ECE0D0;
    --text-secondary: #A09078;
    --bg-primary: #121010;
    --bg-secondary: #1A1614;
    --bg-card: #24201C;
    --bg-inset: rgba(0,0,0,0.38);
    --accent-green: #6A8A4A;
    --danger: #C04444;
    --info-blue: #9A7038;
    --accent-rgb: 196,128,64;
    --head-font: 'Cinzel', serif;
}

/* ---------- BRONZE AGE (light) ---------- */
[data-color="bronze"][data-theme="light"] {
    --brass: #8A5820;
    --brass-light: #A06828;
    --brass-dark: #704818;
    --olive: #584A3A;
    --olive-dark: #483A2A;
    --olive-light: #786850;
    --copper: #985830;
    --gunmetal: #D4CCC2;
    --steel: #685438;
    --text-primary: #1C1610;
    --text-secondary: #584830;
    --bg-primary: #F0EAE2;
    --bg-secondary: #E4DCD2;
    --bg-card: #D8D0C4;
    --bg-inset: rgba(0,0,0,0.06);
    --accent-green: #4A6A38;
    --danger: #983838;
    --info-blue: #785428;
    --accent-rgb: 138,88,32;
}

/* ---------- BURGUNDY WINE (dark) — Rich deep wine red ---------- */
[data-color="burgundy"] {
    --brass: #983050;
    --brass-light: #B04068;
    --brass-dark: #782040;
    --olive: #382028;
    --olive-dark: #28141C;
    --olive-light: #583840;
    --copper: #C08050;
    --gunmetal: #201418;
    --steel: #785060;
    --text-primary: #ECd8E0;
    --text-secondary: #A88090;
    --bg-primary: #10080C;
    --bg-secondary: #181014;
    --bg-card: #221820;
    --bg-inset: rgba(0,0,0,0.42);
    --accent-green: #6A8A58;
    --danger: #C04040;
    --info-blue: #883050;
    --accent-rgb: 152,48,80;
    --head-font: 'Playfair Display', serif;
}

/* ---------- BURGUNDY WINE (light) ---------- */
[data-color="burgundy"][data-theme="light"] {
    --brass: #701838;
    --brass-light: #882048;
    --brass-dark: #581028;
    --olive: #504048;
    --olive-dark: #403038;
    --olive-light: #685860;
    --copper: #9A6238;
    --gunmetal: #D4C8CE;
    --steel: #603848;
    --text-primary: #1C1018;
    --text-secondary: #503848;
    --bg-primary: #F2EAEE;
    --bg-secondary: #E6DDE2;
    --bg-card: #D8CED4;
    --bg-inset: rgba(0,0,0,0.05);
    --accent-green: #4A6A40;
    --danger: #883030;
    --info-blue: #682840;
    --accent-rgb: 112,24,56;
}

/* ---------- SLATE OPS (dark) — Neutral monochrome ---------- */
[data-color="slate"] {
    --brass: #8A8A8A;
    --brass-light: #A0A0A0;
    --brass-dark: #686868;
    --olive: #343434;
    --olive-dark: #262626;
    --olive-light: #505050;
    --copper: #A08870;
    --gunmetal: #1E1E1E;
    --steel: #606060;
    --text-primary: #DCDCDC;
    --text-secondary: #888888;
    --bg-primary: #101010;
    --bg-secondary: #181818;
    --bg-card: #202020;
    --bg-inset: rgba(0,0,0,0.4);
    --accent-green: #6A8A6A;
    --danger: #B04848;
    --info-blue: #707070;
    --accent-rgb: 138,138,138;
    --head-font: 'Inter', sans-serif;
}

/* ---------- SLATE OPS (light) ---------- */
[data-color="slate"][data-theme="light"] {
    --brass: #505050;
    --brass-light: #606060;
    --brass-dark: #3A3A3A;
    --olive: #505050;
    --olive-dark: #404040;
    --olive-light: #707070;
    --copper: #806848;
    --gunmetal: #CCCCCC;
    --steel: #484848;
    --text-primary: #141414;
    --text-secondary: #484848;
    --bg-primary: #EEEEEE;
    --bg-secondary: #E2E2E2;
    --bg-card: #D4D4D4;
    --bg-inset: rgba(0,0,0,0.05);
    --accent-green: #4A6A4A;
    --danger: #903030;
    --info-blue: #505050;
    --accent-rgb: 80,80,80;
}

/* ---------- LAVENDER HAZE (dark) — Soft pastel purple ---------- */
[data-color="lavender"] {
    --brass: #A088C8;
    --brass-light: #B8A0DE;
    --brass-dark: #7868A0;
    --olive: #302838;
    --olive-dark: #221C2A;
    --olive-light: #4A4058;
    --copper: #C0906A;
    --gunmetal: #1C1820;
    --steel: #686078;
    --text-primary: #E4DEF0;
    --text-secondary: #908AA0;
    --bg-primary: #0E0C12;
    --bg-secondary: #14101A;
    --bg-card: #1E1A24;
    --bg-inset: rgba(0,0,0,0.38);
    --accent-green: #6A907A;
    --danger: #B84848;
    --info-blue: #8070A0;
    --accent-rgb: 160,136,200;
    --head-font: 'Quicksand', sans-serif;
}

/* ---------- LAVENDER HAZE (light) ---------- */
[data-color="lavender"][data-theme="light"] {
    --brass: #5A4888;
    --brass-light: #6A58A0;
    --brass-dark: #483870;
    --olive: #484058;
    --olive-dark: #383048;
    --olive-light: #6A6078;
    --copper: #986840;
    --gunmetal: #D0CCD8;
    --steel: #584E6A;
    --text-primary: #161020;
    --text-secondary: #443C58;
    --bg-primary: #F0ECF6;
    --bg-secondary: #E4E0EC;
    --bg-card: #D6D2E0;
    --bg-inset: rgba(0,0,0,0.05);
    --accent-green: #4A705A;
    --danger: #903838;
    --info-blue: #584878;
    --accent-rgb: 90,72,136;
}

/* ---------- CORAL REEF (dark) — Warm salmon pink ---------- */
[data-color="coral"] {
    --brass: #E08060;
    --brass-light: #F09878;
    --brass-dark: #B86048;
    --olive: #3A2E2A;
    --olive-dark: #2A201C;
    --olive-light: #584840;
    --copper: #D07850;
    --gunmetal: #221A18;
    --steel: #806858;
    --text-primary: #F0E0DA;
    --text-secondary: #A89088;
    --bg-primary: #12100E;
    --bg-secondary: #1A1614;
    --bg-card: #241E1C;
    --bg-inset: rgba(0,0,0,0.38);
    --accent-green: #6A9A68;
    --danger: #D04040;
    --info-blue: #B06848;
    --accent-rgb: 224,128,96;
    --head-font: 'Nunito', sans-serif;
}

/* ---------- CORAL REEF (light) ---------- */
[data-color="coral"][data-theme="light"] {
    --brass: #B05838;
    --brass-light: #C86848;
    --brass-dark: #904428;
    --olive: #584840;
    --olive-dark: #483830;
    --olive-light: #786858;
    --copper: #A85838;
    --gunmetal: #D8D0CC;
    --steel: #685448;
    --text-primary: #1C1410;
    --text-secondary: #584840;
    --bg-primary: #F4EDE8;
    --bg-secondary: #E8E0DA;
    --bg-card: #DCD2CC;
    --bg-inset: rgba(0,0,0,0.06);
    --accent-green: #4A7A4A;
    --danger: #A03030;
    --info-blue: #8A4830;
    --accent-rgb: 176,88,56;
}

/* ---------- SEAFOAM (dark) — Cool mint green ---------- */
[data-color="seafoam"] {
    --brass: #58C8A0;
    --brass-light: #70E0B8;
    --brass-dark: #40A080;
    --olive: #283832;
    --olive-dark: #1C2824;
    --olive-light: #3E5A4E;
    --copper: #C09060;
    --gunmetal: #141E1A;
    --steel: #588068;
    --text-primary: #D6F0E4;
    --text-secondary: #80AA98;
    --bg-primary: #0A100E;
    --bg-secondary: #101816;
    --bg-card: #182220;
    --bg-inset: rgba(0,0,0,0.4);
    --accent-green: #48B088;
    --danger: #C04848;
    --info-blue: #48A080;
    --accent-rgb: 88,200,160;
    --head-font: 'Comfortaa', sans-serif;
}

/* ---------- SEAFOAM (light) ---------- */
[data-color="seafoam"][data-theme="light"] {
    --brass: #2A8A60;
    --brass-light: #34A070;
    --brass-dark: #1E704C;
    --olive: #3A5048;
    --olive-dark: #2A4038;
    --olive-light: #5A7868;
    --copper: #986838;
    --gunmetal: #C8D4CE;
    --steel: #406858;
    --text-primary: #101C16;
    --text-secondary: #384A42;
    --bg-primary: #E8F2EE;
    --bg-secondary: #DCE8E2;
    --bg-card: #CEDCD6;
    --bg-inset: rgba(0,0,0,0.05);
    --accent-green: #2A7A58;
    --danger: #903838;
    --info-blue: #2A7A5A;
    --accent-rgb: 42,138,96;
}

/* ---------- DESERT STORM (dark) — Sandy warm beige ---------- */
[data-color="desert"] {
    --brass: #C8A870;
    --brass-light: #DCC088;
    --brass-dark: #A08858;
    --olive: #383028;
    --olive-dark: #282018;
    --olive-light: #585040;
    --copper: #B88040;
    --gunmetal: #201C16;
    --steel: #807060;
    --text-primary: #EEE6D8;
    --text-secondary: #A09880;
    --bg-primary: #12100C;
    --bg-secondary: #1A1810;
    --bg-card: #22201A;
    --bg-inset: rgba(0,0,0,0.38);
    --accent-green: #7A9050;
    --danger: #C04840;
    --info-blue: #A08858;
    --accent-rgb: 200,168,112;
    --head-font: 'Saira Condensed', sans-serif;
}

/* ---------- DESERT STORM (light) ---------- */
[data-color="desert"][data-theme="light"] {
    --brass: #7A6838;
    --brass-light: #907A48;
    --brass-dark: #625228;
    --olive: #585040;
    --olive-dark: #484030;
    --olive-light: #787058;
    --copper: #906028;
    --gunmetal: #D4CEC2;
    --steel: #685C48;
    --text-primary: #1A180E;
    --text-secondary: #504A38;
    --bg-primary: #F2EEE4;
    --bg-secondary: #E8E4D8;
    --bg-card: #DAD6CA;
    --bg-inset: rgba(0,0,0,0.06);
    --accent-green: #5A7038;
    --danger: #983030;
    --info-blue: #786838;
    --accent-rgb: 122,104,56;
}

/* ---------- SKYNET::MAINFRAME (dark) — Terminator green CRT terminal ---------- */
[data-color="skynet"] {
    --brass: #00DD00;
    --brass-light: #00FF00;
    --brass-dark: #009900;
    --olive: #1A2A1A;
    --olive-dark: #0A1A0A;
    --olive-light: #2A4A2A;
    --copper: #FF0000;
    --gunmetal: #081408;
    --steel: #3A5A3A;
    --text-primary: #00CC00;
    --text-secondary: #008800;
    --bg-primary: #040804;
    --bg-secondary: #061008;
    --bg-card: #081408;
    --bg-inset: rgba(0,255,0,0.04);
    --accent-green: #00AA00;
    --danger: #FF0000;
    --info-blue: #00AA00;
    --accent-rgb: 0,221,0;
    --head-font: 'Share Tech Mono', 'Consolas', monospace;
}

/* ---------- SKYNET::MAINFRAME (light) ---------- */
[data-color="skynet"][data-theme="light"] {
    --brass: #007A00;
    --brass-light: #009A00;
    --brass-dark: #005A00;
    --olive: #5A7A5A;
    --olive-dark: #4A6A4A;
    --olive-light: #7A9A7A;
    --copper: #CC0000;
    --gunmetal: #C8D8C8;
    --steel: #4A6A4A;
    --text-primary: #0A1A0A;
    --text-secondary: #3A5A3A;
    --bg-primary: #E8F0E8;
    --bg-secondary: #D8E8D8;
    --bg-card: #CCDCCC;
    --bg-inset: rgba(0,100,0,0.06);
    --accent-green: #007A00;
    --danger: #AA0000;
    --info-blue: #006A00;
    --accent-rgb: 0,122,0;
}

/* ---------- SKYNET::T-1000 (dark) — Terminator blue chrome / liquid metal ---------- */
[data-color="t1000"] {
    --brass: #8AB4F8;
    --brass-light: #A8CCF8;
    --brass-dark: #5A8AD0;
    --olive: #1A2030;
    --olive-dark: #101520;
    --olive-light: #3A4A6A;
    --copper: #F87171;
    --gunmetal: #12141C;
    --steel: #4A5A7A;
    --text-primary: #8898B8;
    --text-secondary: #4A5A7A;
    --bg-primary: #0C0E14;
    --bg-secondary: #0E1018;
    --bg-card: #12141C;
    --bg-inset: rgba(138,180,248,0.04);
    --accent-green: #6ACEA0;
    --danger: #F87171;
    --info-blue: #5A8AD0;
    --accent-rgb: 138,180,248;
    --head-font: 'Exo 2', sans-serif;
}

/* ---------- SKYNET::T-1000 (light) ---------- */
[data-color="t1000"][data-theme="light"] {
    --brass: #2A6FA0;
    --brass-light: #3580B5;
    --brass-dark: #1D5580;
    --olive: #4A5A6A;
    --olive-dark: #3A4A58;
    --olive-light: #6A8098;
    --copper: #C04040;
    --gunmetal: #D0D5DC;
    --steel: #5A6A7A;
    --text-primary: #151B22;
    --text-secondary: #4A5568;
    --bg-primary: #EDF1F5;
    --bg-secondary: #E0E5EC;
    --bg-card: #D4DAE2;
    --bg-inset: rgba(42,111,160,0.06);
    --accent-green: #3A7A5A;
    --danger: #A03030;
    --info-blue: #2D6090;
    --accent-rgb: 42,111,160;
}

/* ---------- SKYNET::T-800 (dark) — Terminator red endoskeleton ---------- */
[data-color="t800"] {
    --brass: #FF2020;
    --brass-light: #FF4040;
    --brass-dark: #CC1010;
    --olive: #2A1818;
    --olive-dark: #1A1010;
    --olive-light: #4A2828;
    --copper: #E8A040;
    --gunmetal: #161212;
    --steel: #5A4040;
    --text-primary: #B8A0A0;
    --text-secondary: #6A5050;
    --bg-primary: #0D0A0A;
    --bg-secondary: #110E0E;
    --bg-card: #161212;
    --bg-inset: rgba(255,32,32,0.04);
    --accent-green: #6A8A4A;
    --danger: #FF2020;
    --info-blue: #8A4040;
    --accent-rgb: 255,32,32;
    --head-font: 'Orbitron', sans-serif;
}

/* ---------- SKYNET::T-800 (light) ---------- */
[data-color="t800"][data-theme="light"] {
    --brass: #A81818;
    --brass-light: #C02020;
    --brass-dark: #801010;
    --olive: #5A4444;
    --olive-dark: #4A3434;
    --olive-light: #7A5858;
    --copper: #C08030;
    --gunmetal: #D5D0CC;
    --steel: #6A5050;
    --text-primary: #1A1414;
    --text-secondary: #5A4A4A;
    --bg-primary: #F2EDEA;
    --bg-secondary: #E6E0DC;
    --bg-card: #DBD4CF;
    --bg-inset: rgba(168,24,24,0.06);
    --accent-green: #4A7A2A;
    --danger: #A81818;
    --info-blue: #5A3030;
    --accent-rgb: 168,24,24;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 2px solid var(--brass-dark);
    overflow-y: auto;
    z-index: 100;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--brass-dark) transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--brass-dark); border-radius: 3px; }

.sidebar-brand {
    text-align: center;
    padding: 10px 16px 20px;
    border-bottom: 1px solid rgba(var(--accent-rgb),0.2);
    margin-bottom: 12px;
}

.sidebar-brand h2 {
    font-family: var(--head-font);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--brass);
}

.sidebar-brand .version {
    font-size: 0.68rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    display: block;
    margin-top: 4px;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar a:hover {
    color: var(--brass-light);
    background: rgba(var(--accent-rgb),0.06);
    border-left-color: var(--brass-dark);
}

.sidebar a.active {
    color: var(--brass);
    background: rgba(var(--accent-rgb),0.1);
    border-left-color: var(--brass);
    font-weight: 600;
}

.sidebar a i {
    width: 18px;
    text-align: center;
    font-size: 0.78rem;
    opacity: 0.7;
}

.sidebar-divider {
    height: 1px;
    background: rgba(var(--accent-rgb),0.15);
    margin: 10px 20px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(var(--accent-rgb),0.15);
    margin-top: 12px;
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
}

.sidebar-footer a {
    display: inline;
    padding: 0;
    color: var(--brass);
    border: none;
    font-size: 0.65rem;
}

/* ===== SIDEBAR HIDE/SHOW TOGGLE (injected by FoXy.js) ===== */
.sidebar { transition: background 0.3s ease, border-color 0.3s ease, transform 0.25s ease; }
body.sidebar-hidden .sidebar { transform: translateX(-100%); }
/* Collapsed: content keeps exactly the width it had with the sidebar open, it just slides left */
body.sidebar-hidden .main {
    margin-left: 0;
    max-width: min(calc(100vw - var(--sidebar-width)), calc(var(--sidebar-width) + 960px));
}

.sidebar-toggle {
    position: fixed;
    top: 18px;
    left: calc(var(--sidebar-width) + 10px);
    z-index: 310;
    width: 34px; height: 34px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid rgba(var(--accent-rgb),0.2);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: left 0.25s ease, color 0.2s, border-color 0.2s, background 0.3s ease;
}
.sidebar-toggle:hover { color: var(--brass); border-color: var(--brass-dark); }
body.sidebar-hidden .sidebar-toggle { left: 10px; }
.sidebar-toggle .fa-chevron-right { display: none; }
body.sidebar-hidden .sidebar-toggle .fa-chevron-left { display: none; }
body.sidebar-hidden .sidebar-toggle .fa-chevron-right { display: inline; }

/* ===== MAIN CONTENT ===== */
.main {
    margin-left: var(--sidebar-width);
    padding: 40px 50px 80px;
    max-width: calc(var(--sidebar-width) + 960px);
}

.page-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(var(--accent-rgb),0.15);
}

.page-header h1 {
    font-family: var(--head-font);
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--brass);
    margin-bottom: 6px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ===== SEARCH + CONTROLS ===== */
.toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
}

.search-bar {
    position: relative;
    flex: 1;
}

.search-bar input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid rgba(var(--accent-rgb),0.2);
    border-radius: 6px;
    padding: 11px 16px 11px 40px;
    color: var(--text-primary);
    font-size: 0.86rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-bar input:focus { border-color: var(--brass); }
.search-bar input::placeholder { color: var(--text-secondary); opacity: 0.5; }

.search-bar i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brass-dark);
}

.search-count {
    font-size: 0.72rem;
    color: var(--text-secondary);
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

.controls button {
    background: transparent;
    border: 1px solid var(--brass-dark);
    color: var(--brass);
    padding: 9px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.controls button:hover { background: rgba(var(--accent-rgb),0.1); }

/* ===== COLLAPSIBLE SECTIONS ===== */
.faq-section {
    margin-bottom: 6px;
    border: 1px solid rgba(var(--accent-rgb),0.12);
    border-radius: 6px;
    background: var(--bg-secondary);
    overflow: hidden;
    transition: border-color 0.2s, background 0.3s ease;
}

.faq-section:hover { border-color: rgba(var(--accent-rgb),0.25); }
.faq-section.open { border-color: rgba(var(--accent-rgb),0.3); }

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.section-header:hover { background: rgba(var(--accent-rgb),0.05); }

.section-header .section-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(var(--accent-rgb),0.1);
    border-radius: 6px;
    color: var(--brass);
    font-size: 0.82rem;
    flex-shrink: 0;
}

.faq-section.open .section-icon { background: rgba(var(--accent-rgb),0.18); }

.section-header h3 {
    font-family: var(--head-font);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brass);
    flex: 1;
}

.section-header .section-count {
    font-size: 0.68rem;
    color: var(--text-secondary);
    background: var(--bg-inset);
    padding: 2px 9px;
    border-radius: 10px;
}

.section-header .chevron {
    color: var(--brass-dark);
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.faq-section.open .chevron { transform: rotate(90deg); }

.section-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-section.open .section-body { max-height: none; }

.section-content {
    padding: 0 20px 16px;
    border-top: 1px solid rgba(var(--accent-rgb),0.1);
}

/* ===== Q&A ITEMS ===== */
.qa-item {
    border-bottom: 1px solid rgba(var(--accent-rgb),0.07);
}

.qa-item:last-child { border-bottom: none; }

/* "NEW" badge — add class="new" to any qa-item to flag new/updated content */
.qa-item.new { border-left: 3px solid var(--copper); }
.qa-item.new::before {
    content: "NEW";
    position: absolute;
    right: 8px;
    top: 14px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--copper);
    background: rgba(var(--accent-rgb),0.08);
    padding: 1px 7px;
    border-radius: 3px;
}
.qa-item { position: relative; }

.question {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 0;
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    user-select: none;
    transition: color 0.2s;
}

.question:hover { color: var(--brass-light); }

.question .q-chevron {
    color: var(--brass-dark);
    font-size: 0.6rem;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.qa-item.open .q-chevron { transform: rotate(90deg); color: var(--brass); }

.answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.qa-item.open .answer { max-height: none; }

.answer-inner {
    padding: 0 0 16px 24px;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.8;
}

.answer-inner p { margin-bottom: 10px; }
.answer-inner strong { color: var(--text-primary); }
.answer-inner ul, .answer-inner ol { margin: 10px 0; padding-left: 20px; }
.answer-inner li { margin: 4px 0; }
.answer-inner a { color: var(--brass); text-decoration: none; }
.answer-inner a:hover { color: var(--brass-light); text-decoration: underline; }

/* ===== CONTENT ELEMENTS ===== */

.config-table, .value-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 0.82rem;
}

.config-table th, .value-table th {
    background: var(--bg-inset);
    color: var(--brass);
    padding: 10px 14px;
    text-align: left;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--brass-dark);
}

.config-table td, .value-table td {
    padding: 8px 14px;
    border-bottom: 1px solid rgba(var(--accent-rgb),0.08);
    color: var(--text-secondary);
    vertical-align: top;
}

.config-table tr:nth-child(even), .value-table tr:nth-child(even) { background: rgba(0,0,0,0.15); }
.config-table tr:hover, .value-table tr:hover { background: rgba(var(--accent-rgb),0.04); }
.config-table code, .value-table code { font-size: 0.8em; }

.item-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.item-card {
    background: var(--bg-inset);
    border: 1px solid rgba(var(--accent-rgb),0.15);
    border-radius: 6px;
    padding: 18px 14px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.item-card:hover { border-color: var(--brass-dark); transform: translateY(-1px); }

.card-icon { color: var(--brass); font-size: 1.4rem; margin-bottom: 10px; }

.item-card h4 {
    font-family: var(--head-font);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brass);
    margin-bottom: 8px;
}

.item-card p { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.6; }

.classlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 6px;
    margin-top: 12px;
}

.classlist-grid span {
    background: var(--bg-inset);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.78rem;
}

.classlist-grid code { color: var(--brass-light); font-size: 0.8rem; }

.info-box {
    background: color-mix(in srgb, var(--info-blue) 10%, transparent);
    border-left: 4px solid var(--info-blue);
    border-radius: 4px;
    padding: 12px 16px;
    margin: 14px 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.info-box strong { color: var(--text-primary); }

.warning-box {
    background: color-mix(in srgb, var(--danger) 10%, transparent);
    border-left: 4px solid var(--danger);
    border-radius: 4px;
    padding: 12px 16px;
    margin: 14px 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.announcement-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: color-mix(in srgb, var(--copper) 10%, var(--bg-card));
    border: 1px solid color-mix(in srgb, var(--copper) 30%, transparent);
    border-left: 4px solid var(--copper);
    border-radius: 6px;
    padding: 18px 22px;
    margin: 0 0 24px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.65;
}
.announcement-banner .announcement-icon {
    font-size: 1.4rem;
    color: var(--copper);
    flex-shrink: 0;
    margin-top: 2px;
}
.announcement-banner .announcement-content strong {
    color: var(--text-primary);
}
.announcement-banner .announcement-content a {
    color: var(--copper);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.announcement-banner .announcement-content a:hover {
    color: var(--text-primary);
}

code {
    background: var(--bg-inset);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.82em;
    color: var(--brass-light);
    font-family: 'Consolas', 'Courier New', monospace;
}

pre {
    background: var(--bg-inset);
    border: 1px solid rgba(var(--accent-rgb),0.1);
    border-radius: 5px;
    padding: 16px;
    overflow-x: auto;
    margin: 12px 0;
    font-size: 0.78rem;
    line-height: 1.6;
}

pre code { background: none; padding: 0; font-size: inherit; }

.config-key { color: var(--brass-light); font-family: 'Consolas', monospace; font-size: 0.82rem; }

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px; height: 40px;
    background: var(--brass-dark);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 200;
}

.back-to-top.visible { opacity: 1; }
.back-to-top:hover { background: var(--brass); }

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    display: none;
}

.no-results i { font-size: 2rem; color: var(--brass-dark); margin-bottom: 12px; display: block; }

[data-theme="light"] .sidebar-brand { border-bottom-color: rgba(var(--accent-rgb),0.25); }
[data-theme="light"] .sidebar a:hover { background: rgba(var(--accent-rgb),0.08); }
[data-theme="light"] .sidebar a.active { background: rgba(var(--accent-rgb),0.12); }
[data-theme="light"] .sidebar-divider { background: rgba(var(--accent-rgb),0.2); }
[data-theme="light"] .search-bar input { background: var(--bg-secondary); border-color: rgba(var(--accent-rgb),0.3); }
[data-theme="light"] .search-bar input:focus { border-color: var(--brass); }
[data-theme="light"] .faq-section { border-color: rgba(var(--accent-rgb),0.18); }
[data-theme="light"] .faq-section:hover { border-color: rgba(var(--accent-rgb),0.35); }
[data-theme="light"] .faq-section.open { border-color: rgba(var(--accent-rgb),0.4); }
[data-theme="light"] .section-header:hover { background: rgba(var(--accent-rgb),0.06); }
[data-theme="light"] .section-header .section-icon { background: rgba(var(--accent-rgb),0.12); }
[data-theme="light"] .faq-section.open .section-icon { background: rgba(var(--accent-rgb),0.2); }
[data-theme="light"] .section-content { border-top-color: rgba(var(--accent-rgb),0.15); }
[data-theme="light"] .qa-item { border-bottom-color: rgba(var(--accent-rgb),0.1); }
[data-theme="light"] .controls button { border-color: var(--brass-dark); }
[data-theme="light"] .controls button:hover { background: rgba(var(--accent-rgb),0.1); }
[data-theme="light"] .config-table td, [data-theme="light"] .value-table td { border-bottom-color: rgba(var(--accent-rgb),0.12); }
[data-theme="light"] .config-table tr:nth-child(even), [data-theme="light"] .value-table tr:nth-child(even) { background: rgba(0,0,0,0.04); }
[data-theme="light"] .config-table tr:hover, [data-theme="light"] .value-table tr:hover { background: rgba(var(--accent-rgb),0.06); }
[data-theme="light"] .item-card { border-color: rgba(var(--accent-rgb),0.2); }
[data-theme="light"] .item-card:hover { border-color: var(--brass-dark); }
[data-theme="light"] pre { border-color: rgba(var(--accent-rgb),0.15); }
[data-theme="light"] .page-header { border-bottom-color: rgba(var(--accent-rgb),0.2); }
[data-theme="light"] .sidebar-footer { border-top-color: rgba(var(--accent-rgb),0.2); }
[data-theme="light"] .info-box { background: color-mix(in srgb, var(--info-blue) 12%, transparent); }
[data-theme="light"] .warning-box { background: color-mix(in srgb, var(--danger) 10%, transparent); }
[data-theme="light"] .announcement-banner { background: color-mix(in srgb, var(--copper) 8%, white); border-color: color-mix(in srgb, var(--copper) 25%, transparent); }
[data-theme="light"] .qa-item.new { border-left-color: var(--copper); }
[data-theme="light"] .qa-item.new::before { background: rgba(var(--accent-rgb),0.08); color: var(--copper); }

/* ===== THE HUB ===== */
.float-hub {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 300;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

/* Gear trigger — always visible */
.float-hub-trigger {
    width: 40px; height: 40px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid rgba(var(--accent-rgb),0.2);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    flex-shrink: 0;
    order: 1;
}

.float-hub-trigger:hover {
    color: var(--brass);
    border-color: rgba(var(--accent-rgb),0.4);
}

.float-hub-trigger .fa-gear {
    transition: transform 0.4s ease;
}

.float-hub:hover .float-hub-trigger .fa-gear {
    transform: rotate(90deg);
}

[data-theme="light"] .float-hub-trigger { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }

/* Button bar — slides out on hub hover */
.float-controls {
    display: flex;
    gap: 6px;
    order: 0;
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.float-hub:hover .float-controls {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

/* Individual buttons */
.float-btn-wrap { position: relative; }

.float-btn {
    width: 38px; height: 38px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid rgba(var(--accent-rgb),0.15);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.float-btn:hover {
    color: var(--brass);
    border-color: rgba(var(--accent-rgb),0.3);
    background: var(--bg-secondary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

[data-theme="light"] .float-btn { box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
[data-theme="light"] .float-btn:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

/* Sun/moon visibility */
.float-btn .fa-sun { display: inline; }
.float-btn .fa-moon { display: none; }
[data-theme="light"] .float-btn .fa-sun { display: none; }
[data-theme="light"] .float-btn .fa-moon { display: inline; }

/* Chaos/dice button */
.float-btn-chaos { color: var(--danger); }
.float-btn-chaos:hover { color: var(--brass); transform: rotate(30deg); }

/* ===== HOVER-TO-OPEN panels ===== */
.float-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid rgba(var(--accent-rgb),0.15);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.95);
    transition: all 0.25s ease;
    pointer-events: none;
    min-width: 180px;
}

[data-theme="light"] .float-panel { box-shadow: 0 8px 32px rgba(0,0,0,0.12); }

/* Panel opens on HOVER over the whole wrap area (button + panel) */
.float-expandable:hover .float-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.float-expandable:hover .float-btn {
    color: var(--brass);
    border-color: rgba(var(--accent-rgb),0.3);
    background: var(--bg-secondary);
}

/* Click-to-open panels (for sliders) */
.float-clickable .float-panel {
    transition: all 0.25s ease;
}

.float-clickable.panel-open .float-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.float-clickable.panel-open .float-btn {
    color: var(--brass);
    border-color: rgba(var(--accent-rgb),0.3);
    background: var(--bg-secondary);
}

/* Panel pinned open via click (for sliders) */
.float-expandable.panel-pinned .float-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.float-expandable.panel-pinned .float-btn {
    color: var(--brass);
    border-color: rgba(var(--accent-rgb),0.3);
    background: var(--bg-secondary);
}

.float-panel-label {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    opacity: 0.5;
    padding: 0 2px 6px;
}

/* --- Grids inside panels --- */
.float-grid {
    display: grid;
    gap: 4px;
}

.float-grid.color-grid { grid-template-columns: repeat(5, 1fr); }
.float-grid.style-grid { grid-template-columns: repeat(5, 1fr); min-width: 170px; }

.color-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    padding: 3px;
    transition: all 0.2s;
}

.color-dot span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: transform 0.2s;
}

.color-dot:hover span { transform: scale(1.15); }
.color-dot:hover { border-color: rgba(var(--accent-rgb),0.3); }
.color-dot.active { border-color: var(--brass); background: rgba(var(--accent-rgb),0.1); }
.color-dot.active span { box-shadow: 0 0 6px rgba(var(--accent-rgb),0.4); }

.style-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.68rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.style-dot:hover { color: var(--text-primary); background: rgba(var(--accent-rgb),0.06); border-color: rgba(var(--accent-rgb),0.15); }
.style-dot.active { color: var(--brass); background: rgba(var(--accent-rgb),0.1); border-color: rgba(var(--accent-rgb),0.25); }

/* Mode grid */
.float-grid.mode-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; min-width: 120px; }

.mode-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.7rem;
    color: var(--text-secondary);
    transition: all 0.2s;
    white-space: nowrap;
}

.mode-dot i { font-size: 0.65rem; }
.mode-dot:hover { color: var(--text-primary); background: rgba(var(--accent-rgb),0.06); border-color: rgba(var(--accent-rgb),0.15); }
.mode-dot.active { color: var(--brass); background: rgba(var(--accent-rgb),0.1); border-color: rgba(var(--accent-rgb),0.25); }

/* Slider panels */
.float-slider-panel { min-width: 160px; }

.float-slider-wrap {
    padding: 4px 2px 2px;
}

.float-slider-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.float-slider-row input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 4px;
    background: rgba(var(--accent-rgb),0.15);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.float-slider-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--brass);
    border: 2px solid var(--bg-card);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.15s;
}

.float-slider-row input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.float-slider-row input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--brass);
    border: 2px solid var(--bg-card);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    cursor: pointer;
}

.float-slider-value {
    font-size: 0.65rem;
    color: var(--brass);
    font-weight: 600;
    min-width: 28px;
    text-align: right;
}

.float-slider-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--text-secondary);
    opacity: 0.4;
    cursor: pointer;
    font-size: 0.55rem;
    transition: all 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.float-slider-reset:hover {
    opacity: 1;
    color: var(--brass);
    border-color: rgba(var(--accent-rgb),0.2);
}

/* Click-to-toggle panels (for sliders) */
.float-clickable.panel-open .float-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.float-clickable.panel-open .float-btn {
    color: var(--brass);
    border-color: rgba(var(--accent-rgb),0.3);
    background: var(--bg-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   STYLE PRESETS — 5 curated looks bundling fonts, density,
   borders, separators, animations, tables, and more.
   ═══════════════════════════════════════════════════════════════ */

/* ---------- TACTICAL: Sharp, compact, military precision ---------- */
[data-style="tactical"] .faq-section,
[data-style="tactical"] .section-header .section-icon,
[data-style="tactical"] .search-bar input,
[data-style="tactical"] .controls button,
[data-style="tactical"] .item-card,
[data-style="tactical"] pre,
[data-style="tactical"] .info-box,
[data-style="tactical"] .warning-box,
[data-style="tactical"] code { border-radius: 0; }
[data-style="tactical"] .back-to-top,
[data-style="tactical"] .float-btn,
[data-style="tactical"] .float-hub-trigger,

[data-style="tactical"] .back-to-top { border-radius: 4px; }
[data-style="tactical"] .section-header .section-count { border-radius: 2px; }
[data-style="tactical"] .color-dot,
[data-style="tactical"] .style-dot { border-radius: 2px; }

[data-style="tactical"] body { line-height: 1.55; }
[data-style="tactical"] .qa-item .question { padding: 9px 0; font-size: 0.85rem; }
[data-style="tactical"] .answer-inner { padding: 0 0 10px 24px; font-size: 0.82rem; line-height: 1.65; }
[data-style="tactical"] .section-header { padding: 10px 20px; }
[data-style="tactical"] .faq-section { margin-bottom: 3px; }
[data-style="tactical"] .item-cards { gap: 8px; }
[data-style="tactical"] .item-card { padding: 14px 12px; }

[data-style="tactical"] .section-content { border-top-style: dashed; }
[data-style="tactical"] .sidebar-divider { border-top: 1px dashed rgba(var(--accent-rgb),0.2); background: none; height: auto; }
[data-style="tactical"] .qa-item { border-bottom-style: dashed; }
[data-style="tactical"] .page-header { border-bottom-style: dashed; }

[data-style="tactical"] .faq-section,
[data-style="tactical"] .qa-item,
[data-style="tactical"] .section-header,
[data-style="tactical"] .controls button,
[data-style="tactical"] .search-bar input { transition: none; }
[data-style="tactical"] .section-header .chevron { transition: transform 0.1s ease; }
[data-style="tactical"] .question .q-chevron { transition: transform 0.1s ease; }
[data-style="tactical"] .section-body { transition: max-height 0.15s ease; }
[data-style="tactical"] .answer { transition: max-height 0.12s ease; }

[data-style="tactical"] .faq-section:hover { border-color: rgba(var(--accent-rgb),0.2); }
[data-style="tactical"] .item-card:hover { transform: none; border-color: var(--brass-dark); }
[data-style="tactical"] .section-header:hover { background: rgba(var(--accent-rgb),0.03); }

[data-style="tactical"] .config-table td,
[data-style="tactical"] .value-table td { border-bottom: 1px solid rgba(var(--accent-rgb),0.12); }
[data-style="tactical"] .config-table,
[data-style="tactical"] .value-table { border: 1px solid rgba(var(--accent-rgb),0.1); }
[data-style="tactical"] .config-table th,
[data-style="tactical"] .value-table th { border-bottom-width: 1px; }
[data-style="tactical"] .config-table tr:nth-child(even),
[data-style="tactical"] .value-table tr:nth-child(even) { background: none; }

[data-style="tactical"] .info-box,
[data-style="tactical"] .warning-box { border-left-width: 3px; border: 1px solid; }
[data-style="tactical"] .info-box { border-color: var(--info-blue); }
[data-style="tactical"] .warning-box { border-color: var(--danger); }

[data-style="tactical"] .sidebar::-webkit-scrollbar { width: 3px; }
[data-style="tactical"] .prev-main::-webkit-scrollbar { width: 3px; }
[data-style="tactical"] .sidebar { scrollbar-width: thin; }

[data-style="tactical"] pre code { font-family: 'JetBrains Mono', 'Consolas', monospace; font-size: 0.76rem; }
[data-style="tactical"] code { font-family: 'JetBrains Mono', 'Consolas', monospace; }

/* ---------- CLEAN: Pill borders, spacious, modern sans ---------- */
[data-style="clean"] .faq-section,
[data-style="clean"] .item-card,
[data-style="clean"] .info-box,
[data-style="clean"] .warning-box { border-radius: 14px; }
[data-style="clean"] .section-header .section-icon { border-radius: 10px; }
[data-style="clean"] .search-bar input { border-radius: 20px; padding-left: 44px; }
[data-style="clean"] .search-bar i { left: 18px; }
[data-style="clean"] .controls button { border-radius: 20px; padding: 9px 20px; }
[data-style="clean"] pre { border-radius: 12px; }
[data-style="clean"] code { border-radius: 6px; }
[data-style="clean"] .section-header .section-count { border-radius: 12px; }
[data-style="clean"] .color-dot,
[data-style="clean"] .style-dot { border-radius: 8px; }
[data-style="clean"] .back-to-top,
[data-style="clean"] .float-btn,
[data-style="clean"] .float-hub-trigger,

[data-style="clean"] .back-to-top { border-radius: 50%; }

[data-style="clean"] body { font-family: 'DM Sans', sans-serif; line-height: 1.85; }
[data-style="clean"] .sidebar-brand h2,
[data-style="clean"] .page-header h1,
[data-style="clean"] .section-header h3,
[data-style="clean"] .item-card h4 { font-family: 'DM Sans', sans-serif; }

[data-style="clean"] .qa-item .question { padding: 16px 0; font-size: 0.92rem; }
[data-style="clean"] .answer-inner { padding: 0 0 20px 24px; font-size: 0.88rem; line-height: 1.9; }
[data-style="clean"] .section-header { padding: 18px 24px; }
[data-style="clean"] .section-content { padding: 0 24px 20px; }
[data-style="clean"] .faq-section { margin-bottom: 10px; }
[data-style="clean"] .main { padding: 48px 56px 90px; }
[data-style="clean"] .item-cards { gap: 16px; }
[data-style="clean"] .item-card { padding: 22px 18px; }
[data-style="clean"] .page-header { margin-bottom: 40px; padding-bottom: 30px; }

[data-style="clean"] .sidebar { background: color-mix(in srgb, var(--bg-secondary) 80%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-right: 1px solid rgba(var(--accent-rgb),0.1); }

[data-style="clean"] .section-content { border-top: none; }
[data-style="clean"] .qa-item { border-bottom-color: transparent; }
[data-style="clean"] .qa-item + .qa-item { border-top: 1px solid rgba(var(--accent-rgb),0.06); }
[data-style="clean"] .page-header { border-bottom: none; background: linear-gradient(180deg, rgba(var(--accent-rgb),0.04) 0%, transparent 100%); border-radius: 14px; padding: 30px 24px; margin-bottom: 30px; }
[data-style="clean"] .sidebar-divider { background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb),0.15), transparent); }

[data-style="clean"] .faq-section,
[data-style="clean"] .qa-item,
[data-style="clean"] .section-header,
[data-style="clean"] .controls button,
[data-style="clean"] .search-bar input,
[data-style="clean"] .item-card { transition: all 0.4s ease; }
[data-style="clean"] .section-header .chevron { transition: transform 0.4s ease; }
[data-style="clean"] .question .q-chevron { transition: transform 0.35s ease; }
[data-style="clean"] .section-body { transition: max-height 0.5s ease; }
[data-style="clean"] .answer { transition: max-height 0.45s ease; }

[data-style="clean"] .faq-section:hover { border-color: rgba(var(--accent-rgb),0.2); box-shadow: 0 2px 16px rgba(0,0,0,0.08); }
[data-style="clean"] .item-card:hover { transform: translateY(-3px); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

[data-style="clean"] .config-table tr:nth-child(even),
[data-style="clean"] .value-table tr:nth-child(even) { background: none; }
[data-style="clean"] .config-table td,
[data-style="clean"] .value-table td { border-bottom: 1px solid rgba(var(--accent-rgb),0.05); }
[data-style="clean"] .config-table th,
[data-style="clean"] .value-table th { border-bottom: 1px solid rgba(var(--accent-rgb),0.12); }

[data-style="clean"] .info-box { border-left: none; background: color-mix(in srgb, var(--info-blue) 12%, transparent); border-radius: 14px; padding: 16px 20px; }
[data-style="clean"] .warning-box { border-left: none; background: color-mix(in srgb, var(--danger) 12%, transparent); border-radius: 14px; padding: 16px 20px; }

[data-style="clean"] .sidebar::-webkit-scrollbar { width: 0px; }
[data-style="clean"] .sidebar { scrollbar-width: none; }

/* ---------- TERMINAL: Monospace everything, hacker aesthetic ---------- */
[data-style="terminal"] .faq-section,
[data-style="terminal"] .section-header .section-icon,
[data-style="terminal"] .search-bar input,
[data-style="terminal"] .controls button,
[data-style="terminal"] .item-card,
[data-style="terminal"] pre,
[data-style="terminal"] .info-box,
[data-style="terminal"] .warning-box,
[data-style="terminal"] code { border-radius: 0; }
[data-style="terminal"] .back-to-top,
[data-style="terminal"] .float-btn,
[data-style="terminal"] .float-hub-trigger,

[data-style="terminal"] .back-to-top { border-radius: 2px; }
[data-style="terminal"] .section-header .section-count { border-radius: 2px; }
[data-style="terminal"] .color-dot,
[data-style="terminal"] .style-dot { border-radius: 1px; }

[data-style="terminal"] body { font-family: 'JetBrains Mono', 'Consolas', 'Courier New', monospace; line-height: 1.6; font-size: 13px; }
[data-style="terminal"] .sidebar-brand h2,
[data-style="terminal"] .page-header h1,
[data-style="terminal"] .section-header h3,
[data-style="terminal"] .item-card h4 { font-family: 'JetBrains Mono', 'Consolas', monospace; }
[data-style="terminal"] code,
[data-style="terminal"] pre code { font-family: 'JetBrains Mono', 'Consolas', monospace; }

[data-style="terminal"] .qa-item .question { padding: 8px 0; font-size: 0.84rem; }
[data-style="terminal"] .answer-inner { padding: 0 0 10px 20px; font-size: 0.8rem; line-height: 1.7; }
[data-style="terminal"] .section-header { padding: 10px 16px; }
[data-style="terminal"] .faq-section { margin-bottom: 2px; }
[data-style="terminal"] .item-cards { gap: 6px; }
[data-style="terminal"] .item-card { padding: 12px 10px; }
[data-style="terminal"] .sidebar a { font-size: 0.78rem; font-family: 'JetBrains Mono', monospace; }

[data-style="terminal"] .sidebar { border-right: 1px solid rgba(var(--accent-rgb),0.3); }
[data-style="terminal"] .section-content { border-top: 1px solid rgba(var(--accent-rgb),0.15); }
[data-style="terminal"] .page-header { border-bottom: 1px solid rgba(var(--accent-rgb),0.2); }
[data-style="terminal"] .sidebar-divider { background: rgba(var(--accent-rgb),0.2); }

[data-style="terminal"] .faq-section,
[data-style="terminal"] .qa-item,
[data-style="terminal"] .section-header,
[data-style="terminal"] .controls button,
[data-style="terminal"] .search-bar input,
[data-style="terminal"] .item-card { transition: none; }
[data-style="terminal"] .section-header .chevron { transition: transform 0.08s linear; }
[data-style="terminal"] .question .q-chevron { transition: transform 0.08s linear; }
[data-style="terminal"] .section-body { transition: max-height 0.1s linear; }
[data-style="terminal"] .answer { transition: max-height 0.08s linear; }

[data-style="terminal"] .faq-section:hover { border-color: rgba(var(--accent-rgb),0.3); }
[data-style="terminal"] .item-card:hover { transform: none; }
[data-style="terminal"] .section-header:hover { background: rgba(var(--accent-rgb),0.04); }

[data-style="terminal"] pre { border: 1px solid rgba(var(--accent-rgb),0.2); background: rgba(0,0,0,0.5); }
[data-style="terminal"] pre code { color: var(--accent-green); }
[data-style="terminal"] code { color: var(--accent-green); background: rgba(0,0,0,0.3); }

[data-style="terminal"] .config-table,
[data-style="terminal"] .value-table { border: 1px solid rgba(var(--accent-rgb),0.15); }
[data-style="terminal"] .config-table td,
[data-style="terminal"] .value-table td { border-bottom: 1px solid rgba(var(--accent-rgb),0.1); border-right: 1px solid rgba(var(--accent-rgb),0.06); }
[data-style="terminal"] .config-table td:last-child,
[data-style="terminal"] .value-table td:last-child { border-right: none; }
[data-style="terminal"] .config-table th,
[data-style="terminal"] .value-table th { border-bottom: 1px solid rgba(var(--accent-rgb),0.2); border-right: 1px solid rgba(var(--accent-rgb),0.08); }
[data-style="terminal"] .config-table th:last-child,
[data-style="terminal"] .value-table th:last-child { border-right: none; }
[data-style="terminal"] .config-table tr:nth-child(even),
[data-style="terminal"] .value-table tr:nth-child(even) { background: rgba(0,0,0,0.15); }

[data-style="terminal"] .info-box { border: 1px solid var(--info-blue); border-left-width: 3px; }
[data-style="terminal"] .warning-box { border: 1px solid var(--danger); border-left-width: 3px; }

[data-style="terminal"] .sidebar::-webkit-scrollbar { width: 3px; }
[data-style="terminal"] .sidebar::-webkit-scrollbar-thumb { border-radius: 0; }
[data-style="terminal"] .sidebar { scrollbar-width: thin; }

[data-style="terminal"] .question::before { content: "> "; color: var(--brass-dark); font-weight: 400; }

/* ---------- EDITORIAL: Serif, relaxed, refined ---------- */
[data-style="editorial"] .faq-section { border-radius: 8px; }
[data-style="editorial"] .section-header .section-icon { border-radius: 8px; }
[data-style="editorial"] .search-bar input { border-radius: 8px; }
[data-style="editorial"] .controls button { border-radius: 8px; }
[data-style="editorial"] .item-card { border-radius: 8px; }
[data-style="editorial"] pre { border-radius: 8px; }
[data-style="editorial"] .info-box,
[data-style="editorial"] .warning-box { border-radius: 6px; }

[data-style="editorial"] body { font-family: 'Lora', 'Georgia', serif; line-height: 1.9; }
[data-style="editorial"] .sidebar-brand h2,
[data-style="editorial"] .page-header h1,
[data-style="editorial"] .section-header h3,
[data-style="editorial"] .item-card h4 { font-family: 'Lora', 'Georgia', serif; font-style: normal; }
[data-style="editorial"] .sidebar a { font-family: 'Lora', serif; font-size: 0.8rem; }
[data-style="editorial"] .page-header h1 { letter-spacing: 3px; font-size: 1.6rem; }
[data-style="editorial"] .section-header h3 { letter-spacing: 1.5px; font-size: 0.88rem; }

[data-style="editorial"] .qa-item .question { padding: 16px 0; font-size: 0.92rem; }
[data-style="editorial"] .answer-inner { padding: 0 0 20px 24px; font-size: 0.88rem; line-height: 2; }
[data-style="editorial"] .section-header { padding: 18px 24px; }
[data-style="editorial"] .section-content { padding: 0 24px 20px; }
[data-style="editorial"] .faq-section { margin-bottom: 8px; }
[data-style="editorial"] .main { padding: 48px 56px 90px; }
[data-style="editorial"] .item-cards { gap: 14px; }
[data-style="editorial"] .item-card { padding: 20px 16px; }
[data-style="editorial"] .page-header { margin-bottom: 40px; padding-bottom: 28px; }

[data-style="editorial"] .section-content { border-top-color: transparent; }
[data-style="editorial"] .page-header { border-bottom-image: linear-gradient(90deg, transparent, rgba(var(--accent-rgb),0.25), transparent) 1; border-bottom-style: solid; border-bottom-width: 1px; }
[data-style="editorial"] .sidebar-divider { background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb),0.15), transparent); }

[data-style="editorial"] .faq-section,
[data-style="editorial"] .qa-item,
[data-style="editorial"] .section-header,
[data-style="editorial"] .controls button,
[data-style="editorial"] .search-bar input,
[data-style="editorial"] .item-card { transition: all 0.5s ease; }
[data-style="editorial"] .section-header .chevron { transition: transform 0.5s ease; }
[data-style="editorial"] .question .q-chevron { transition: transform 0.4s ease; }
[data-style="editorial"] .section-body { transition: max-height 0.6s ease; }
[data-style="editorial"] .answer { transition: max-height 0.5s ease; }

[data-style="editorial"] .faq-section:hover { border-color: rgba(var(--accent-rgb),0.2); }
[data-style="editorial"] .item-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

[data-style="editorial"] .info-box { border-left-width: 5px; padding: 16px 20px; }
[data-style="editorial"] .warning-box { border-left-width: 5px; padding: 16px 20px; }

[data-style="editorial"] .config-table td,
[data-style="editorial"] .value-table td { padding: 10px 14px; }
[data-style="editorial"] .config-table th,
[data-style="editorial"] .value-table th { padding: 12px 14px; }

[data-style="editorial"] .sidebar::-webkit-scrollbar { width: 4px; }
[data-style="editorial"] .sidebar::-webkit-scrollbar-thumb { background: rgba(var(--accent-rgb),0.15); }

/* ---------- NEON / CYBERPUNK: Glowing borders, text shadows, electric ---------- */
[data-style="neon"] .faq-section { border: 1px solid rgba(var(--accent-rgb),0.3); box-shadow: 0 0 8px rgba(var(--accent-rgb),0.1), inset 0 0 8px rgba(var(--accent-rgb),0.03); border-radius: 2px; }
[data-style="neon"] .faq-section:hover { border-color: rgba(var(--accent-rgb),0.6); box-shadow: 0 0 16px rgba(var(--accent-rgb),0.2), inset 0 0 12px rgba(var(--accent-rgb),0.05); }
[data-style="neon"] .section-header .section-icon { border-radius: 2px; box-shadow: 0 0 6px rgba(var(--accent-rgb),0.2); }
[data-style="neon"] .search-bar input { border-radius: 2px; border: 1px solid rgba(var(--accent-rgb),0.3); }
[data-style="neon"] .search-bar input:focus { box-shadow: 0 0 12px rgba(var(--accent-rgb),0.3); border-color: var(--brass); }
[data-style="neon"] .controls button { border-radius: 2px; border: 1px solid rgba(var(--accent-rgb),0.2); }
[data-style="neon"] .controls button:hover { box-shadow: 0 0 8px rgba(var(--accent-rgb),0.3); border-color: var(--brass); }
[data-style="neon"] .item-card { border-radius: 2px; border: 1px solid rgba(var(--accent-rgb),0.15); }
[data-style="neon"] .item-card:hover { border-color: rgba(var(--accent-rgb),0.5); box-shadow: 0 0 12px rgba(var(--accent-rgb),0.15); transform: none; }
[data-style="neon"] pre { border-radius: 2px; border: 1px solid rgba(var(--accent-rgb),0.2); }
[data-style="neon"] code { border-radius: 2px; }
[data-style="neon"] .info-box { border: 1px solid var(--info-blue); box-shadow: 0 0 8px rgba(var(--accent-rgb),0.08); border-radius: 2px; }
[data-style="neon"] .warning-box { border: 1px solid var(--danger); box-shadow: 0 0 8px rgba(var(--accent-rgb),0.08); border-radius: 2px; }
[data-style="neon"] .back-to-top,
[data-style="neon"] .float-btn,
[data-style="neon"] .float-hub-trigger,

[data-style="neon"] .back-to-top { border-radius: 4px; box-shadow: 0 0 10px rgba(var(--accent-rgb),0.3); }

[data-style="neon"] .page-header h1 { text-shadow: 0 0 20px rgba(var(--accent-rgb),0.4), 0 0 40px rgba(var(--accent-rgb),0.15); }
[data-style="neon"] .section-header h3 { text-shadow: 0 0 8px rgba(var(--accent-rgb),0.2); }
[data-style="neon"] .sidebar a.active { text-shadow: 0 0 8px rgba(var(--accent-rgb),0.3); }

[data-style="neon"] .sidebar { border-right: 1px solid rgba(var(--accent-rgb),0.25); box-shadow: 2px 0 12px rgba(var(--accent-rgb),0.08); }
[data-style="neon"] .section-content { border-top: 1px solid rgba(var(--accent-rgb),0.15); }
[data-style="neon"] .qa-item { border-bottom: 1px solid rgba(var(--accent-rgb),0.08); }
[data-style="neon"] .page-header { border-bottom: 1px solid rgba(var(--accent-rgb),0.25); }
[data-style="neon"] .sidebar-divider { background: rgba(var(--accent-rgb),0.25); box-shadow: 0 0 4px rgba(var(--accent-rgb),0.15); }

[data-style="neon"] .config-table,
[data-style="neon"] .value-table { border: 1px solid rgba(var(--accent-rgb),0.2); }
[data-style="neon"] .config-table th,
[data-style="neon"] .value-table th { border-bottom: 1px solid rgba(var(--accent-rgb),0.3); text-shadow: 0 0 6px rgba(var(--accent-rgb),0.2); }
[data-style="neon"] .config-table td,
[data-style="neon"] .value-table td { border-bottom: 1px solid rgba(var(--accent-rgb),0.08); }

[data-style="neon"] .faq-section,
[data-style="neon"] .item-card,
[data-style="neon"] .section-header { transition: all 0.3s ease; }
[data-style="neon"] .section-header .chevron { transition: transform 0.25s ease; }
[data-style="neon"] .question .q-chevron { transition: transform 0.25s ease; }

[data-style="neon"] .sidebar::-webkit-scrollbar { width: 4px; }
[data-style="neon"] .sidebar::-webkit-scrollbar-thumb { background: rgba(var(--accent-rgb),0.4); box-shadow: 0 0 4px rgba(var(--accent-rgb),0.3); }

/* ---------- RETRO / CRT: Scanlines, phosphor glow, old monitor ---------- */
[data-style="crt"] .main::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0.06) 0px,
        rgba(0,0,0,0.06) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 999;
}
[data-theme="light"][data-style="crt"] .main::before {
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 3px);
}

[data-style="crt"] .faq-section,
[data-style="crt"] .section-header .section-icon,
[data-style="crt"] .search-bar input,
[data-style="crt"] .controls button,
[data-style="crt"] .item-card,
[data-style="crt"] pre,
[data-style="crt"] .info-box,
[data-style="crt"] .warning-box,
[data-style="crt"] code { border-radius: 0; }
[data-style="crt"] .back-to-top,
[data-style="crt"] .float-btn,
[data-style="crt"] .float-hub-trigger,

[data-style="crt"] .back-to-top { border-radius: 2px; }

[data-style="crt"] body { font-family: 'VT323', 'Courier New', monospace; font-size: 15px; line-height: 1.6; }
[data-style="crt"] .sidebar-brand h2,
[data-style="crt"] .page-header h1,
[data-style="crt"] .section-header h3,
[data-style="crt"] .item-card h4,
[data-style="crt"] .sidebar a,
[data-style="crt"] code,
[data-style="crt"] pre code { font-family: 'VT323', 'Courier New', monospace; }
[data-style="crt"] .page-header h1 { text-shadow: 0 0 10px rgba(var(--accent-rgb),0.5); letter-spacing: 4px; }
[data-style="crt"] .section-header h3 { text-shadow: 0 0 4px rgba(var(--accent-rgb),0.3); letter-spacing: 2px; }

[data-style="crt"] .qa-item .question { padding: 8px 0; font-size: 0.92rem; }
[data-style="crt"] .answer-inner { font-size: 0.88rem; line-height: 1.65; }
[data-style="crt"] .faq-section { margin-bottom: 3px; }
[data-style="crt"] .sidebar a { font-size: 0.82rem; letter-spacing: 0.5px; }

[data-style="crt"] pre { border: 1px solid rgba(var(--accent-rgb),0.25); background: rgba(0,0,0,0.5); }
[data-style="crt"] pre code { color: var(--accent-green); text-shadow: 0 0 4px rgba(var(--accent-rgb),0.3); }
[data-style="crt"] code { color: var(--accent-green); }

[data-style="crt"] .faq-section,
[data-style="crt"] .qa-item,
[data-style="crt"] .section-header,
[data-style="crt"] .item-card { transition: none; }
[data-style="crt"] .section-header .chevron { transition: transform 0.08s linear; }
[data-style="crt"] .question .q-chevron { transition: transform 0.08s linear; }
[data-style="crt"] .section-body { transition: max-height 0.1s linear; }
[data-style="crt"] .answer { transition: max-height 0.08s linear; }
[data-style="crt"] .faq-section:hover { border-color: rgba(var(--accent-rgb),0.3); }
[data-style="crt"] .item-card:hover { transform: none; }

[data-style="crt"] .info-box { border: 1px solid var(--info-blue); }
[data-style="crt"] .warning-box { border: 1px solid var(--danger); }

[data-style="crt"] .sidebar::-webkit-scrollbar { width: 4px; }
[data-style="crt"] .sidebar::-webkit-scrollbar-thumb { border-radius: 0; }
[data-style="crt"] .sidebar { scrollbar-width: thin; }

[data-style="crt"] .question::before { content: "█ "; color: var(--brass-dark); font-weight: 400; }

/* ---------- GLASSMORPHISM: Frosted panels, blur, transparency ---------- */
[data-style="glass"] .faq-section { background: rgba(var(--accent-rgb),0.04); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(var(--accent-rgb),0.12); border-radius: 16px; }
[data-style="glass"] .faq-section:hover { border-color: rgba(var(--accent-rgb),0.25); background: rgba(var(--accent-rgb),0.06); }
[data-style="glass"] .section-header .section-icon { border-radius: 12px; background: rgba(var(--accent-rgb),0.08); backdrop-filter: blur(6px); }
[data-style="glass"] .search-bar input { border-radius: 16px; background: rgba(var(--accent-rgb),0.05); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(var(--accent-rgb),0.12); padding-left: 44px; }
[data-style="glass"] .search-bar i { left: 18px; }
[data-style="glass"] .controls button { border-radius: 16px; background: rgba(var(--accent-rgb),0.06); border: 1px solid rgba(var(--accent-rgb),0.1); backdrop-filter: blur(6px); }
[data-style="glass"] .item-card { border-radius: 14px; background: rgba(var(--accent-rgb),0.04); backdrop-filter: blur(8px); border: 1px solid rgba(var(--accent-rgb),0.1); }
[data-style="glass"] .item-card:hover { transform: translateY(-2px); background: rgba(var(--accent-rgb),0.07); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
[data-style="glass"] pre { border-radius: 12px; background: rgba(0,0,0,0.25); backdrop-filter: blur(6px); border: 1px solid rgba(var(--accent-rgb),0.1); }
[data-style="glass"] .info-box { border-radius: 14px; border-left: none; background: rgba(var(--accent-rgb),0.06); backdrop-filter: blur(6px); border: 1px solid rgba(var(--accent-rgb),0.1); padding: 16px 20px; }
[data-style="glass"] .warning-box { border-radius: 14px; border-left: none; background: rgba(var(--accent-rgb),0.06); backdrop-filter: blur(6px); border: 1px solid rgba(var(--accent-rgb),0.1); padding: 16px 20px; }
[data-style="glass"] .back-to-top,
[data-style="glass"] .float-btn,
[data-style="glass"] .float-hub-trigger,

[data-style="glass"] .back-to-top { border-radius: 50%; backdrop-filter: blur(8px); }
[data-style="glass"] .color-dot,
[data-style="glass"] .style-dot { border-radius: 10px; }
[data-style="glass"] .section-header .section-count { border-radius: 10px; }

[data-style="glass"] .sidebar { background: rgba(var(--accent-rgb),0.03); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-right: 1px solid rgba(var(--accent-rgb),0.1); }
[data-style="glass"] .section-content { border-top: 1px solid rgba(var(--accent-rgb),0.06); }
[data-style="glass"] .qa-item { border-bottom: 1px solid rgba(var(--accent-rgb),0.04); }
[data-style="glass"] .page-header { border-bottom: none; background: rgba(var(--accent-rgb),0.03); border-radius: 16px; padding: 28px 24px; margin-bottom: 28px; }
[data-style="glass"] .sidebar-divider { background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb),0.12), transparent); }

[data-style="glass"] .main { padding: 40px 48px 80px; }
[data-style="glass"] .faq-section { margin-bottom: 10px; }
[data-style="glass"] .qa-item .question { padding: 14px 0; }
[data-style="glass"] .answer-inner { padding: 0 0 18px 24px; line-height: 1.85; }

[data-style="glass"] .faq-section,
[data-style="glass"] .item-card,
[data-style="glass"] .section-header { transition: all 0.4s ease; }
[data-style="glass"] .section-header .chevron { transition: transform 0.35s ease; }
[data-style="glass"] .question .q-chevron { transition: transform 0.3s ease; }
[data-style="glass"] .section-body { transition: max-height 0.45s ease; }

[data-style="glass"] .config-table,
[data-style="glass"] .value-table { border: 1px solid rgba(var(--accent-rgb),0.08); border-radius: 10px; overflow: hidden; }
[data-style="glass"] .config-table tr:nth-child(even),
[data-style="glass"] .value-table tr:nth-child(even) { background: rgba(var(--accent-rgb),0.03); }

[data-style="glass"] .sidebar::-webkit-scrollbar { width: 0px; }
[data-style="glass"] .sidebar { scrollbar-width: none; }

/* ---------- BRUTALIST: Raw, high-contrast, blocky, no decoration ---------- */
[data-style="brutalist"] .faq-section,
[data-style="brutalist"] .section-header .section-icon,
[data-style="brutalist"] .search-bar input,
[data-style="brutalist"] .controls button,
[data-style="brutalist"] .item-card,
[data-style="brutalist"] pre,
[data-style="brutalist"] .info-box,
[data-style="brutalist"] .warning-box,
[data-style="brutalist"] code,
[data-style="brutalist"] .back-to-top,
[data-style="brutalist"] .float-btn,
[data-style="brutalist"] .float-hub-trigger,

[data-style="brutalist"] .back-to-top,
[data-style="brutalist"] .section-header .section-count,
[data-style="brutalist"] .color-dot,
[data-style="brutalist"] .style-dot { border-radius: 0; }

[data-style="brutalist"] body { font-family: 'Arial', 'Helvetica', sans-serif; line-height: 1.5; }
[data-style="brutalist"] .sidebar-brand h2,
[data-style="brutalist"] .page-header h1,
[data-style="brutalist"] .section-header h3 { font-family: 'Arial Black', 'Impact', sans-serif; text-transform: uppercase; }
[data-style="brutalist"] .page-header h1 { font-size: 2rem; letter-spacing: 6px; border-bottom: 4px solid var(--brass); padding-bottom: 16px; }
[data-style="brutalist"] .section-header h3 { font-size: 0.9rem; letter-spacing: 3px; }

[data-style="brutalist"] .faq-section { border: 2px solid rgba(var(--accent-rgb),0.3); margin-bottom: 4px; background: var(--bg-card); }
[data-style="brutalist"] .faq-section:hover { border-color: var(--brass); }
[data-style="brutalist"] .section-header { padding: 12px 16px; }
[data-style="brutalist"] .section-header:hover { background: rgba(var(--accent-rgb),0.08); }
[data-style="brutalist"] .section-header .section-icon { border: 2px solid rgba(var(--accent-rgb),0.2); }
[data-style="brutalist"] .qa-item .question { padding: 10px 0; font-size: 0.86rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
[data-style="brutalist"] .answer-inner { padding: 0 0 12px 24px; font-size: 0.84rem; line-height: 1.6; }
[data-style="brutalist"] .item-card { border: 2px solid rgba(var(--accent-rgb),0.15); padding: 14px 12px; }
[data-style="brutalist"] .item-card:hover { transform: none; border-color: var(--brass); }

[data-style="brutalist"] .section-content { border-top: 2px solid rgba(var(--accent-rgb),0.15); }
[data-style="brutalist"] .qa-item { border-bottom: 2px solid rgba(var(--accent-rgb),0.08); }
[data-style="brutalist"] .page-header { border-bottom: none; margin-bottom: 30px; }
[data-style="brutalist"] .sidebar { border-right: 3px solid var(--brass); }
[data-style="brutalist"] .sidebar-divider { background: var(--brass); height: 2px; }

[data-style="brutalist"] .info-box { border: 2px solid var(--info-blue); border-left-width: 6px; background: transparent; }
[data-style="brutalist"] .warning-box { border: 2px solid var(--danger); border-left-width: 6px; background: transparent; }

[data-style="brutalist"] .search-bar input { border: 2px solid rgba(var(--accent-rgb),0.3); }
[data-style="brutalist"] .controls button { border: 2px solid rgba(var(--accent-rgb),0.2); }
[data-style="brutalist"] .controls button:hover { border-color: var(--brass); background: rgba(var(--accent-rgb),0.1); }

[data-style="brutalist"] .config-table,
[data-style="brutalist"] .value-table { border: 2px solid rgba(var(--accent-rgb),0.2); }
[data-style="brutalist"] .config-table th,
[data-style="brutalist"] .value-table th { border-bottom: 2px solid rgba(var(--accent-rgb),0.3); text-transform: uppercase; letter-spacing: 1px; }
[data-style="brutalist"] .config-table td,
[data-style="brutalist"] .value-table td { border-bottom: 1px solid rgba(var(--accent-rgb),0.1); }
[data-style="brutalist"] .config-table tr:nth-child(even),
[data-style="brutalist"] .value-table tr:nth-child(even) { background: none; }

[data-style="brutalist"] .faq-section,
[data-style="brutalist"] .item-card,
[data-style="brutalist"] .section-header { transition: none; }
[data-style="brutalist"] .section-header .chevron { transition: transform 0.05s linear; }
[data-style="brutalist"] .question .q-chevron { transition: transform 0.05s linear; }
[data-style="brutalist"] .section-body { transition: max-height 0.08s linear; }
[data-style="brutalist"] .answer { transition: max-height 0.06s linear; }

[data-style="brutalist"] .sidebar::-webkit-scrollbar { width: 4px; }
[data-style="brutalist"] .sidebar::-webkit-scrollbar-thumb { border-radius: 0; background: var(--brass); }

/* ---------- NEWSPAPER: Classic print, serif, column feel ---------- */
[data-style="newspaper"] .faq-section { border-radius: 0; border: none; border-bottom: 1px solid rgba(var(--accent-rgb),0.15); margin-bottom: 0; background: transparent; }
[data-style="newspaper"] .faq-section:hover { border-color: rgba(var(--accent-rgb),0.3); }
[data-style="newspaper"] .section-header .section-icon { display: none; }
[data-style="newspaper"] .section-header .section-count { border-radius: 0; }

[data-style="newspaper"] body { font-family: 'Georgia', 'Times New Roman', serif; line-height: 1.8; }
[data-style="newspaper"] .sidebar-brand h2,
[data-style="newspaper"] .page-header h1 { font-family: 'Playfair Display', 'Georgia', serif; }
[data-style="newspaper"] .section-header h3 { font-family: 'Georgia', serif; font-size: 0.95rem; font-style: italic; letter-spacing: 0; text-transform: none; }
[data-style="newspaper"] .page-header h1 { font-size: 2.2rem; letter-spacing: 2px; text-align: center; }
[data-style="newspaper"] .page-header p { text-align: center; font-style: italic; }
[data-style="newspaper"] .page-header { border-bottom: 3px double rgba(var(--accent-rgb),0.3); margin-bottom: 30px; padding-bottom: 20px; }

[data-style="newspaper"] .qa-item .question { padding: 12px 0; font-size: 0.9rem; font-style: italic; }
[data-style="newspaper"] .answer-inner { font-size: 0.86rem; line-height: 1.85; text-align: justify; column-count: 1; }
[data-style="newspaper"] .section-header { padding: 14px 20px; }
[data-style="newspaper"] .section-content { border-top: 1px solid rgba(var(--accent-rgb),0.1); }
[data-style="newspaper"] .qa-item { border-bottom: 1px dotted rgba(var(--accent-rgb),0.12); }

[data-style="newspaper"] .sidebar-divider { background: none; border-top: 1px solid rgba(var(--accent-rgb),0.15); height: auto; }
[data-style="newspaper"] .sidebar a { font-family: 'Georgia', serif; }

[data-style="newspaper"] .search-bar input,
[data-style="newspaper"] .controls button,
[data-style="newspaper"] .item-card,
[data-style="newspaper"] pre,
[data-style="newspaper"] .info-box,
[data-style="newspaper"] .warning-box { border-radius: 0; }

[data-style="newspaper"] .info-box { border: none; border-top: 1px solid var(--info-blue); border-bottom: 1px solid var(--info-blue); padding: 14px 16px; background: transparent; }
[data-style="newspaper"] .warning-box { border: none; border-top: 1px solid var(--danger); border-bottom: 1px solid var(--danger); padding: 14px 16px; background: transparent; }

[data-style="newspaper"] .item-card:hover { transform: none; }
[data-style="newspaper"] .faq-section,
[data-style="newspaper"] .item-card,
[data-style="newspaper"] .section-header { transition: all 0.3s ease; }

/* ---------- NOTEBOOK: Lined-paper texture, handwritten vibe ---------- */
[data-style="notebook"] body { font-family: 'Patrick Hand', 'Comic Sans MS', cursive; font-size: 15px; line-height: 2; background-image: repeating-linear-gradient(transparent, transparent 31px, rgba(var(--accent-rgb),0.08) 31px, rgba(var(--accent-rgb),0.08) 32px); }
[data-style="notebook"] .sidebar { background-image: none; }

[data-style="notebook"] .sidebar-brand h2,
[data-style="notebook"] .page-header h1,
[data-style="notebook"] .section-header h3,
[data-style="notebook"] .item-card h4,
[data-style="notebook"] .sidebar a { font-family: 'Patrick Hand', 'Comic Sans MS', cursive; }
[data-style="notebook"] .page-header h1 { font-size: 2rem; }
[data-style="notebook"] .section-header h3 { font-size: 1rem; text-transform: none; letter-spacing: 0; }

[data-style="notebook"] .faq-section { border-radius: 0; border: none; border-left: 3px solid rgba(var(--accent-rgb),0.2); background: transparent; margin-bottom: 6px; }
[data-style="notebook"] .faq-section:hover { border-left-color: var(--brass); }
[data-style="notebook"] .section-header .section-icon { display: none; }
[data-style="notebook"] .section-header { padding: 10px 16px; }
[data-style="notebook"] .section-content { border-top: none; }
[data-style="notebook"] .qa-item { border-bottom: 1px dashed rgba(var(--accent-rgb),0.1); }
[data-style="notebook"] .qa-item .question { padding: 10px 0; font-size: 0.95rem; }
[data-style="notebook"] .answer-inner { font-size: 0.9rem; line-height: 2; }
[data-style="notebook"] .page-header { border-bottom: 2px solid rgba(var(--accent-rgb),0.2); margin-bottom: 24px; }
[data-style="notebook"] .sidebar-divider { background: none; border-top: 1px dashed rgba(var(--accent-rgb),0.2); height: auto; }

[data-style="notebook"] .search-bar input,
[data-style="notebook"] .controls button { border-radius: 4px; }
[data-style="notebook"] .item-card { border-radius: 4px; border: 1px dashed rgba(var(--accent-rgb),0.15); }
[data-style="notebook"] .item-card:hover { transform: none; border-color: var(--brass); }
[data-style="notebook"] .info-box,
[data-style="notebook"] .warning-box { border-radius: 0; border-left-width: 3px; }
[data-style="notebook"] pre { border-radius: 0; }
[data-style="notebook"] .section-header .section-count { border-radius: 8px; }

[data-style="notebook"] .faq-section,
[data-style="notebook"] .item-card { transition: all 0.2s ease; }

/* ---------- BLUEPRINT: Grid lines, technical drawing feel ---------- */
[data-style="blueprint"] body { background-image: linear-gradient(rgba(var(--accent-rgb),0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--accent-rgb),0.04) 1px, transparent 1px); background-size: 20px 20px; }
[data-style="blueprint"] .sidebar { background-image: none; }

[data-style="blueprint"] body { font-family: 'Share Tech Mono', 'Courier New', monospace; font-size: 13px; line-height: 1.65; }
[data-style="blueprint"] .sidebar-brand h2,
[data-style="blueprint"] .page-header h1,
[data-style="blueprint"] .section-header h3,
[data-style="blueprint"] .item-card h4,
[data-style="blueprint"] .sidebar a,
[data-style="blueprint"] code,
[data-style="blueprint"] pre code { font-family: 'Share Tech Mono', 'Courier New', monospace; }
[data-style="blueprint"] .page-header h1 { letter-spacing: 6px; text-transform: uppercase; font-size: 1.4rem; }
[data-style="blueprint"] .section-header h3 { letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; }

[data-style="blueprint"] .faq-section { border: 1px solid rgba(var(--accent-rgb),0.15); border-radius: 0; margin-bottom: 4px; background: transparent; }
[data-style="blueprint"] .faq-section:hover { border-color: rgba(var(--accent-rgb),0.35); }
[data-style="blueprint"] .section-header .section-icon { border-radius: 0; border: 1px solid rgba(var(--accent-rgb),0.2); }
[data-style="blueprint"] .section-header { padding: 10px 16px; }
[data-style="blueprint"] .qa-item .question { padding: 8px 0; font-size: 0.82rem; }
[data-style="blueprint"] .answer-inner { font-size: 0.8rem; }
[data-style="blueprint"] .section-content { border-top: 1px dashed rgba(var(--accent-rgb),0.15); }
[data-style="blueprint"] .qa-item { border-bottom: 1px dashed rgba(var(--accent-rgb),0.08); }
[data-style="blueprint"] .page-header { border-bottom: 1px solid rgba(var(--accent-rgb),0.2); }
[data-style="blueprint"] .sidebar-divider { background: rgba(var(--accent-rgb),0.15); }
[data-style="blueprint"] .sidebar { border-right: 1px solid rgba(var(--accent-rgb),0.2); }

[data-style="blueprint"] .search-bar input,
[data-style="blueprint"] .controls button,
[data-style="blueprint"] .item-card,
[data-style="blueprint"] pre,
[data-style="blueprint"] .info-box,
[data-style="blueprint"] .warning-box,
[data-style="blueprint"] code { border-radius: 0; }
[data-style="blueprint"] .back-to-top,
[data-style="blueprint"] .float-btn,
[data-style="blueprint"] .float-hub-trigger,

[data-style="blueprint"] .back-to-top { border-radius: 2px; }

[data-style="blueprint"] .info-box { border: 1px solid var(--info-blue); background: transparent; }
[data-style="blueprint"] .warning-box { border: 1px solid var(--danger); background: transparent; }
[data-style="blueprint"] .item-card { border: 1px dashed rgba(var(--accent-rgb),0.15); }
[data-style="blueprint"] .item-card:hover { transform: none; border-color: rgba(var(--accent-rgb),0.35); border-style: solid; }

[data-style="blueprint"] .config-table,
[data-style="blueprint"] .value-table { border: 1px solid rgba(var(--accent-rgb),0.15); }
[data-style="blueprint"] .config-table th,
[data-style="blueprint"] .value-table th { border-bottom: 1px solid rgba(var(--accent-rgb),0.2); }
[data-style="blueprint"] .config-table td,
[data-style="blueprint"] .value-table td { border-bottom: 1px dashed rgba(var(--accent-rgb),0.08); border-right: 1px dashed rgba(var(--accent-rgb),0.06); }
[data-style="blueprint"] .config-table td:last-child,
[data-style="blueprint"] .value-table td:last-child { border-right: none; }
[data-style="blueprint"] .config-table tr:nth-child(even),
[data-style="blueprint"] .value-table tr:nth-child(even) { background: none; }

[data-style="blueprint"] .faq-section,
[data-style="blueprint"] .item-card { transition: none; }
[data-style="blueprint"] .section-header .chevron,
[data-style="blueprint"] .question .q-chevron { transition: transform 0.1s linear; }

[data-style="blueprint"] .question::before { content: "// "; color: var(--brass-dark); opacity: 0.5; }

/* ---------- WIKI: Minimal, dense, Wikipedia-like documentation ---------- */
[data-style="wiki"] body { font-family: 'Noto Sans', 'Helvetica', 'Arial', sans-serif; font-size: 13.5px; line-height: 1.65; }
[data-style="wiki"] .sidebar-brand h2,
[data-style="wiki"] .page-header h1 { font-family: 'Linux Libertine', 'Georgia', serif; }
[data-style="wiki"] .section-header h3 { font-family: 'Noto Sans', sans-serif; font-size: 0.92rem; text-transform: none; letter-spacing: 0; border-bottom: 1px solid rgba(var(--accent-rgb),0.2); padding-bottom: 4px; }
[data-style="wiki"] .page-header h1 { font-size: 1.7rem; letter-spacing: 0; }
[data-style="wiki"] .sidebar a { font-size: 0.78rem; }

[data-style="wiki"] .faq-section { border: none; border-radius: 0; margin-bottom: 2px; background: transparent; }
[data-style="wiki"] .faq-section:hover { background: rgba(var(--accent-rgb),0.02); }
[data-style="wiki"] .section-header .section-icon { display: none; }
[data-style="wiki"] .section-header .section-count { border-radius: 2px; font-size: 0.65rem; }
[data-style="wiki"] .section-header { padding: 8px 0; }
[data-style="wiki"] .section-content { padding: 0 0 12px 0; border-top: none; }
[data-style="wiki"] .qa-item .question { padding: 6px 0; font-size: 0.84rem; color: var(--brass); }
[data-style="wiki"] .qa-item .question:hover { text-decoration: underline; }
[data-style="wiki"] .answer-inner { font-size: 0.82rem; line-height: 1.65; padding: 0 0 10px 16px; }
[data-style="wiki"] .qa-item { border-bottom: none; }
[data-style="wiki"] .page-header { border-bottom: 1px solid rgba(var(--accent-rgb),0.2); margin-bottom: 20px; padding-bottom: 8px; }
[data-style="wiki"] .sidebar-divider { background: rgba(var(--accent-rgb),0.12); }

[data-style="wiki"] .item-card { border-radius: 2px; border: 1px solid rgba(var(--accent-rgb),0.1); }
[data-style="wiki"] .item-card:hover { transform: none; }
[data-style="wiki"] .item-cards { gap: 6px; }
[data-style="wiki"] .search-bar input { border-radius: 2px; }
[data-style="wiki"] .controls button { border-radius: 2px; }
[data-style="wiki"] pre { border-radius: 2px; }
[data-style="wiki"] .info-box,
[data-style="wiki"] .warning-box { border-radius: 0; border-left-width: 3px; padding: 10px 14px; font-size: 0.82rem; }

[data-style="wiki"] .config-table td,
[data-style="wiki"] .value-table td { font-size: 0.8rem; padding: 4px 10px; }
[data-style="wiki"] .config-table th,
[data-style="wiki"] .value-table th { font-size: 0.78rem; padding: 6px 10px; }

[data-style="wiki"] .faq-section,
[data-style="wiki"] .item-card { transition: all 0.15s ease; }
[data-style="wiki"] .section-header .chevron,
[data-style="wiki"] .question .q-chevron { transition: transform 0.15s ease; }

/* ---------- COZY: Warm spacing, soft shadows, gentle everything ---------- */
[data-style="cozy"] .faq-section { border-radius: 16px; border: none; box-shadow: 0 2px 12px rgba(0,0,0,0.06); margin-bottom: 14px; }
[data-style="cozy"] .faq-section:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
[data-style="cozy"] .section-header .section-icon { border-radius: 12px; }
[data-style="cozy"] .search-bar input { border-radius: 24px; padding: 14px 20px 14px 48px; font-size: 0.9rem; border: none; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
[data-style="cozy"] .search-bar i { left: 20px; }
[data-style="cozy"] .controls button { border-radius: 24px; padding: 10px 22px; border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
[data-style="cozy"] .item-card { border-radius: 14px; border: none; box-shadow: 0 2px 10px rgba(0,0,0,0.05); padding: 22px 18px; }
[data-style="cozy"] .item-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,0.1); }
[data-style="cozy"] pre { border-radius: 14px; box-shadow: inset 0 2px 8px rgba(0,0,0,0.08); }
[data-style="cozy"] .info-box { border-radius: 14px; border: none; padding: 18px 22px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); background: color-mix(in srgb, var(--info-blue) 10%, var(--bg-card)); }
[data-style="cozy"] .warning-box { border-radius: 14px; border: none; padding: 18px 22px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); background: color-mix(in srgb, var(--danger) 10%, var(--bg-card)); }
[data-style="cozy"] .back-to-top,
[data-style="cozy"] .float-btn,
[data-style="cozy"] .float-hub-trigger,

[data-style="cozy"] .back-to-top { border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
[data-style="cozy"] .section-header .section-count { border-radius: 14px; }
[data-style="cozy"] .color-dot,
[data-style="cozy"] .style-dot { border-radius: 10px; }

[data-style="cozy"] body { line-height: 1.95; }
[data-style="cozy"] .qa-item .question { padding: 18px 0; font-size: 0.92rem; }
[data-style="cozy"] .answer-inner { padding: 0 0 22px 24px; font-size: 0.88rem; line-height: 2; }
[data-style="cozy"] .section-header { padding: 20px 26px; }
[data-style="cozy"] .section-content { padding: 0 26px 24px; border-top: none; }
[data-style="cozy"] .main { padding: 52px 60px 100px; }
[data-style="cozy"] .page-header { margin-bottom: 40px; padding-bottom: 30px; border-bottom: none; }
[data-style="cozy"] .item-cards { gap: 16px; }
[data-style="cozy"] .qa-item { border-bottom-color: rgba(var(--accent-rgb),0.05); }
[data-style="cozy"] .sidebar-divider { background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb),0.1), transparent); }

[data-style="cozy"] .faq-section,
[data-style="cozy"] .item-card,
[data-style="cozy"] .section-header,
[data-style="cozy"] .controls button { transition: all 0.5s ease; }
[data-style="cozy"] .section-header .chevron { transition: transform 0.45s ease; }
[data-style="cozy"] .question .q-chevron { transition: transform 0.4s ease; }
[data-style="cozy"] .section-body { transition: max-height 0.55s ease; }
[data-style="cozy"] .answer { transition: max-height 0.5s ease; }

[data-style="cozy"] .config-table { border-radius: 10px; overflow: hidden; border: none; box-shadow: 0 1px 6px rgba(0,0,0,0.04); }
[data-style="cozy"] .value-table { border-radius: 10px; overflow: hidden; border: none; box-shadow: 0 1px 6px rgba(0,0,0,0.04); }

[data-style="cozy"] .sidebar::-webkit-scrollbar { width: 0px; }
[data-style="cozy"] .sidebar { scrollbar-width: none; }

/* ---------- DENSE: Ultra-compact, maximum info per screen ---------- */
[data-style="dense"] body { font-size: 12.5px; line-height: 1.45; }
[data-style="dense"] .faq-section { margin-bottom: 1px; border-radius: 2px; }
[data-style="dense"] .section-header { padding: 6px 12px; }
[data-style="dense"] .section-header .section-icon { width: 24px; height: 24px; font-size: 0.6rem; border-radius: 3px; }
[data-style="dense"] .section-header h3 { font-size: 0.78rem; }
[data-style="dense"] .section-header .section-count { font-size: 0.55rem; padding: 1px 5px; border-radius: 2px; }
[data-style="dense"] .section-content { padding: 0 10px 6px; }
[data-style="dense"] .qa-item .question { padding: 4px 0; font-size: 0.76rem; }
[data-style="dense"] .qa-item .question .q-chevron { font-size: 0.55rem; }
[data-style="dense"] .answer-inner { padding: 0 0 6px 16px; font-size: 0.74rem; line-height: 1.5; }
[data-style="dense"] .answer-inner p { margin-bottom: 4px; }
[data-style="dense"] .main { padding: 16px 24px 40px; }
[data-style="dense"] .page-header { margin-bottom: 14px; padding-bottom: 10px; }
[data-style="dense"] .page-header h1 { font-size: 1.1rem; }
[data-style="dense"] .page-header p { font-size: 0.72rem; }
[data-style="dense"] .toolbar { margin-bottom: 14px; gap: 6px; }
[data-style="dense"] .search-bar input { padding: 6px 10px 6px 32px; font-size: 0.76rem; border-radius: 3px; }
[data-style="dense"] .search-bar i { left: 10px; font-size: 0.68rem; }
[data-style="dense"] .controls button { padding: 5px 10px; font-size: 0.68rem; border-radius: 3px; }
[data-style="dense"] .item-cards { gap: 4px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
[data-style="dense"] .item-card { padding: 8px 6px; border-radius: 3px; }
[data-style="dense"] .item-card h4 { font-size: 0.68rem; }
[data-style="dense"] .item-card .item-class { font-size: 0.6rem; }
[data-style="dense"] .faq-section:hover { border-color: rgba(var(--accent-rgb),0.2); }
[data-style="dense"] .item-card:hover { transform: none; }

[data-style="dense"] pre { font-size: 0.7rem; padding: 8px 10px; border-radius: 3px; }
[data-style="dense"] .info-box,
[data-style="dense"] .warning-box { padding: 6px 10px; font-size: 0.72rem; border-radius: 2px; }
[data-style="dense"] .config-table td,
[data-style="dense"] .value-table td { padding: 2px 6px; font-size: 0.7rem; }
[data-style="dense"] .config-table th,
[data-style="dense"] .value-table th { padding: 3px 6px; font-size: 0.68rem; }

[data-style="dense"] .faq-section,
[data-style="dense"] .item-card,
[data-style="dense"] .section-header { transition: none; }
[data-style="dense"] .section-header .chevron { transition: transform 0.08s linear; }
[data-style="dense"] .question .q-chevron { transition: transform 0.08s linear; }
[data-style="dense"] .section-body { transition: max-height 0.1s linear; }
[data-style="dense"] .answer { transition: max-height 0.08s linear; }

[data-style="dense"] .sidebar a { padding: 4px 14px; font-size: 0.72rem; }
[data-style="dense"] .sidebar-brand { padding: 12px 14px 8px; }
[data-style="dense"] .sidebar-brand h2 { font-size: 0.85rem; }

/* ---------- CARDS: Every Q&A as a separate floating card ---------- */
[data-style="cards"] .faq-section { border: none; border-radius: 14px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
[data-style="cards"] .faq-section:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
[data-style="cards"] .section-header { padding: 16px 22px; }
[data-style="cards"] .section-header .section-icon { border-radius: 10px; }
[data-style="cards"] .section-header .section-count { border-radius: 10px; }
[data-style="cards"] .section-content { padding: 4px 14px 14px; border-top: none; }

[data-style="cards"] .qa-item { border-bottom: none; background: var(--bg-inset); border-radius: 10px; margin-bottom: 8px; padding: 0; overflow: hidden; border: 1px solid rgba(var(--accent-rgb),0.06); }
[data-style="cards"] .qa-item:hover { border-color: rgba(var(--accent-rgb),0.15); }
[data-style="cards"] .qa-item .question { padding: 12px 16px; }
[data-style="cards"] .answer-inner { padding: 0 16px 14px 36px; }

[data-style="cards"] .search-bar input { border-radius: 14px; }
[data-style="cards"] .controls button { border-radius: 14px; }
[data-style="cards"] .item-card { border-radius: 12px; border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
[data-style="cards"] .item-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
[data-style="cards"] .item-cards { gap: 12px; }
[data-style="cards"] pre { border-radius: 10px; }
[data-style="cards"] .info-box,
[data-style="cards"] .warning-box { border-radius: 10px; }
[data-style="cards"] .back-to-top,
[data-style="cards"] .float-btn,
[data-style="cards"] .float-hub-trigger,

[data-style="cards"] .back-to-top { border-radius: 50%; }
[data-style="cards"] .color-dot,
[data-style="cards"] .style-dot { border-radius: 8px; }

[data-style="cards"] .page-header { border-bottom: none; margin-bottom: 30px; }
[data-style="cards"] .main { padding: 40px 44px 80px; }
[data-style="cards"] .sidebar-divider { background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb),0.1), transparent); }

[data-style="cards"] .faq-section,
[data-style="cards"] .qa-item,
[data-style="cards"] .item-card { transition: all 0.3s ease; }
[data-style="cards"] .section-header .chevron { transition: transform 0.3s ease; }
[data-style="cards"] .question .q-chevron { transition: transform 0.25s ease; }
[data-style="cards"] .section-body { transition: max-height 0.4s ease; }

[data-style="cards"] .config-table,
[data-style="cards"] .value-table { border-radius: 8px; overflow: hidden; }

/* ---------- OUTLINE: No fills, just borders and lines ---------- */
[data-style="outline"] .faq-section { background: transparent; border: 1px solid rgba(var(--accent-rgb),0.2); border-radius: 4px; margin-bottom: 6px; }
[data-style="outline"] .faq-section:hover { border-color: rgba(var(--accent-rgb),0.4); }
[data-style="outline"] .section-header .section-icon { background: transparent; border: 1px solid rgba(var(--accent-rgb),0.2); border-radius: 4px; }
[data-style="outline"] .section-header .section-count { background: transparent; border: 1px solid rgba(var(--accent-rgb),0.15); border-radius: 4px; }
[data-style="outline"] .search-bar input { background: transparent; border: 1px solid rgba(var(--accent-rgb),0.2); border-radius: 4px; }
[data-style="outline"] .controls button { background: transparent; border: 1px solid rgba(var(--accent-rgb),0.2); border-radius: 4px; }
[data-style="outline"] .controls button:hover { border-color: var(--brass); color: var(--brass); }
[data-style="outline"] .item-card { background: transparent; border: 1px solid rgba(var(--accent-rgb),0.15); border-radius: 4px; }
[data-style="outline"] .item-card:hover { transform: none; border-color: rgba(var(--accent-rgb),0.35); }
[data-style="outline"] pre { background: rgba(0,0,0,0.15); border: 1px solid rgba(var(--accent-rgb),0.15); border-radius: 4px; }
[data-style="outline"] code { background: rgba(0,0,0,0.1); border-radius: 3px; }
[data-style="outline"] .info-box { background: transparent; border: 1px solid var(--info-blue); border-radius: 4px; }
[data-style="outline"] .warning-box { background: transparent; border: 1px solid var(--danger); border-radius: 4px; }
[data-style="outline"] .back-to-top,
[data-style="outline"] .float-btn,
[data-style="outline"] .float-hub-trigger,
[data-style="outline"] .back-to-top { background: transparent; border: 2px solid var(--brass-dark); color: var(--brass); border-radius: 50%; box-shadow: none; }
[data-style="outline"] .float-btn:hover,
[data-style="outline"] .float-hub-trigger:hover,
[data-style="outline"] .back-to-top:hover { border-color: var(--brass); }
[data-style="outline"] .color-dot,
[data-style="outline"] .style-dot { border-radius: 4px; }

[data-style="outline"] .section-content { border-top: 1px solid rgba(var(--accent-rgb),0.1); }
[data-style="outline"] .qa-item { border-bottom: 1px solid rgba(var(--accent-rgb),0.06); }
[data-style="outline"] .page-header { border-bottom: 1px solid rgba(var(--accent-rgb),0.2); }
[data-style="outline"] .sidebar { background: transparent; border-right: 1px solid rgba(var(--accent-rgb),0.15); }
[data-style="outline"] .sidebar-divider { background: rgba(var(--accent-rgb),0.1); }
[data-style="outline"] .sidebar a:hover,
[data-style="outline"] .sidebar a.active { background: transparent; border-left-color: var(--brass); }

[data-style="outline"] .config-table,
[data-style="outline"] .value-table { border: 1px solid rgba(var(--accent-rgb),0.15); background: transparent; }
[data-style="outline"] .config-table th,
[data-style="outline"] .value-table th { background: transparent; border-bottom: 1px solid rgba(var(--accent-rgb),0.2); }
[data-style="outline"] .config-table td,
[data-style="outline"] .value-table td { border-bottom: 1px solid rgba(var(--accent-rgb),0.06); background: transparent; }
[data-style="outline"] .config-table tr:nth-child(even),
[data-style="outline"] .value-table tr:nth-child(even) { background: transparent; }

[data-style="outline"] .faq-section,
[data-style="outline"] .item-card { transition: all 0.25s ease; }
[data-style="outline"] .section-header .chevron,
[data-style="outline"] .question .q-chevron { transition: transform 0.2s ease; }

/* ═══════════════════════════════════════════════════════════════
   FOXYNOFLYZONE — Mod-specific elements
   Player Guide sections, timelines, scenarios, command blocks,
   sub-TOC, Prism.js syntax highlights, VIP badge
   ═══════════════════════════════════════════════════════════════ */

/* --- Player Guide section & item styling --- */
.faq-section.player-section { border-color: rgba(65,105,225,0.35); }
.faq-section.player-section .section-icon { background: rgba(65,105,225,0.15); color: #4169E1; }
.faq-section.player-section .section-header h3 { color: #4169E1; }
[data-theme="light"] .faq-section.player-section .section-header h3 { color: #1e3a8a; }

.qa-item.player-item { border-left: 3px solid #4169E1; }
.qa-item.player-item .question { color: #4169E1; }
[data-theme="light"] .qa-item.player-item .question { color: #1e3a8a; }

/* --- Sub table of contents --- */
.sub-toc {
    background: rgba(65,105,225,0.08);
    padding: 16px 20px;
    margin: 14px 0;
    border-radius: 6px;
    border-left: 4px solid #4169E1;
}
.sub-toc h3 { color: #4169E1; margin-bottom: 12px; font-size: 1rem; font-family: var(--head-font); }
.sub-toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 6px;
}
.sub-toc a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 10px;
    display: block;
    background: rgba(65,105,225,0.08);
    border-left: 3px solid #4169E1;
    border-radius: 3px;
    font-size: 0.82rem;
    transition: all 0.2s;
}
.sub-toc a:hover {
    background: rgba(65,105,225,0.16);
    color: var(--text-primary);
    border-left-width: 5px;
    padding-left: 14px;
}

/* --- Scenario boxes --- */
.scenario-box {
    background: var(--bg-inset);
    border: 1px solid rgba(var(--accent-rgb),0.15);
    border-radius: 6px;
    padding: 16px;
    margin: 14px 0;
}
.scenario-box h4 {
    color: var(--brass);
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-family: var(--head-font);
}
.scenario-box p { margin-bottom: 6px; }

/* --- Timeline styling --- */
.timeline { margin: 14px 0; padding-left: 16px; }
.timeline-item {
    position: relative;
    padding: 12px 0 12px 32px;
    border-left: 2px solid var(--brass);
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brass);
    box-shadow: 0 0 6px rgba(var(--accent-rgb),0.4);
}
.timeline-item strong {
    color: var(--brass);
    font-size: 0.92rem;
}
.timeline-item p { margin: 4px 0; }
.timeline-item ul { margin: 6px 0; padding-left: 18px; }
.timeline-item li { margin: 4px 0; }

/* --- Command blocks --- */
.command-block {
    background: var(--bg-inset);
    border: 1px solid var(--danger);
    border-radius: 4px;
    padding: 12px 16px;
    margin: 10px 0;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.82rem;
    color: var(--text-primary);
}
.command-block strong { color: var(--danger); }

/* --- VIP badge --- */
.vip-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3px 12px;
    border-radius: 16px;
    font-size: 0.68rem;
    font-weight: bold;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}

/* --- Prism.js syntax highlighting overrides --- */
pre[class*="language-"],
code[class*="language-"] {
    background: none !important;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.82em;
    line-height: 1.6;
    text-shadow: none !important;
}
pre[class*="language-"] {
    background: var(--bg-inset) !important;
    border: 1px solid rgba(var(--accent-rgb),0.12);
    border-radius: 5px;
    margin: 12px 0;
    padding: 16px;
    overflow-x: auto;
}
pre[class*="language-"] code {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}
.line-highlight { display: none !important; }
.token.property, .token.tag, .token.constant, .token.symbol, .token.deleted { color: var(--brass-light) !important; background: transparent !important; }
.token.string, .token.char, .token.attr-value, .token.inserted { color: #7FDBCA !important; background: transparent !important; }
.token.number { color: #FF9E64 !important; background: transparent !important; }
.token.boolean, .token.null, .token.keyword { color: #FF6B9D !important; background: transparent !important; }
.token.punctuation { color: #CCCCCC !important; background: transparent !important; }
.token.operator { color: #89DDFF !important; background: transparent !important; }
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: #6A9955 !important; font-style: italic; background: transparent !important; }
[data-theme="light"] .token { background: transparent !important; }

/* ===== JUMP NAV BAR ===== */
.jump-nav {
    margin-bottom: 24px;
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--bg-primary);
    padding: 10px 0;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.15);
}
.jump-nav-track {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.jump-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 0.7rem;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    overflow: hidden;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: width 0.3s ease, padding 0.3s ease, gap 0.3s ease, color 0.2s, background 0.2s, border-color 0.2s;
}
.jump-pill i {
    font-size: 0.75rem;
    opacity: 0.7;
    flex-shrink: 0;
    width: 34px;
    text-align: center;
    transition: opacity 0.2s;
}
.jump-pill .jump-label {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.3s ease, opacity 0.25s ease;
}
.jump-pill:hover {
    width: auto;
    padding: 0 14px 0 0;
    gap: 2px;
    color: var(--brass);
    border-color: var(--brass-dark);
    background: rgba(var(--accent-rgb), 0.08);
}
.jump-pill:hover .jump-label {
    max-width: 120px;
    opacity: 1;
}
.jump-pill:hover i {
    opacity: 1;
}
.jump-pill.active {
    color: var(--bg-primary);
    background: var(--brass);
    border-color: var(--brass);
}
.jump-pill.active i {
    opacity: 1;
}
.jump-pill.active:hover {
    color: var(--bg-primary);
    background: var(--brass-light);
    border-color: var(--brass-light);
}
[data-theme="light"] .jump-nav {
    background: var(--bg-primary);
    border-bottom-color: rgba(var(--accent-rgb), 0.2);
}
[data-theme="light"] .jump-pill {
    background: var(--bg-secondary);
    border-color: rgba(var(--accent-rgb), 0.2);
}
[data-theme="light"] .jump-pill.active {
    color: #fff;
    background: var(--brass);
    border-color: var(--brass);
}
[data-theme="light"] .jump-pill.active:hover {
    color: #fff;
    background: var(--brass-light);
    border-color: var(--brass-light);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .sidebar { display: none; }
    .main { margin-left: 0; padding: 20px 16px; max-width: 100%; }
    /* mobile: sidebar starts hidden; toggle shows it as an overlay without shifting content */
    body.sidebar-shown .sidebar { display: block; transform: none; box-shadow: 4px 0 20px rgba(0,0,0,0.35); }
    .sidebar-toggle { left: 10px; top: 10px; width: 30px; height: 30px; }
    body.sidebar-shown .sidebar-toggle { left: calc(var(--sidebar-width) + 10px); }
    .sidebar-toggle .fa-chevron-left { display: none; }
    .sidebar-toggle .fa-chevron-right { display: inline; }
    body.sidebar-shown .sidebar-toggle .fa-chevron-left { display: inline; }
    body.sidebar-shown .sidebar-toggle .fa-chevron-right { display: none; }
    .item-cards { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
    .classlist-grid { grid-template-columns: 1fr; }
    .float-hub { top: 10px; right: 10px; gap: 4px; }
    .float-hub-trigger { width: 36px; height: 36px; font-size: 0.85rem; }
    .float-btn { width: 34px; height: 34px; font-size: 0.8rem; }
    .float-panel { min-width: 160px; }
    .jump-pill { width: 30px; height: 30px; }
    .jump-pill i { font-size: 0.65rem; width: 30px; }
    .jump-pill:hover { padding: 0 10px 0 0; }
    .jump-pill .jump-label { font-size: 0.6rem; }
}
