
:root {
  color-scheme: dark;
  --body-background: radial-gradient(1000px 600px at 10% -10%, #1a205a 0%, transparent 60%),
                      radial-gradient(800px 500px at 100% 0%, #3b1b6d 0%, transparent 60%),
                      linear-gradient(180deg, #0d0f22 0%, #0a0c1a 100%);
  --bg: #0f1226;
  --panel: #14173a;
  --text: #e9eaf4;
  --muted: #9aa1b2;
  --primary: #6a7dff;
  --primary-2: #a56bff;
  --danger: #ff6b6b;
  --ok: #26c281;
  --card: #1a1f4a;
  --border: #2a2f63;
  --btn-border: rgba(255, 255, 255, 0.15);
  --btn-hover-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  --modal-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --modal-backdrop: rgba(5, 6, 20, 0.78);
  --notice-bg: #0f1445;
  --notice-border: var(--border);
  --notice-color: var(--text);
  --input-bg: #0f1340;
  --input-text: var(--text);
  --input-border: var(--border);
  --surface-muted: rgba(15, 19, 64, 0.72);
  --surface-muted-hover: rgba(15, 19, 64, 0.85);
  --surface-muted-border: rgba(255, 255, 255, 0.18);
  --admin-hero-bg: linear-gradient(135deg, rgba(106,125,255,.18), rgba(165,107,255,.08));
  --admin-hero-border: rgba(106,125,255,.32);
  --admin-stat-bg: rgba(15,19,64,.9);
  --admin-stat-border: var(--border);
  --flash-bg: rgba(255,255,255,.04);
  --panel-rgb: 20, 23, 58;
  --card-rgb: 26, 31, 74;
  --border-rgb: 42, 47, 99;
  --primary-rgb: 106, 125, 255;
  --primary-2-rgb: 165, 107, 255;
  --primary-btn-text: #ffffff;
  --hero-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  --media-shadow: 0 30px 80px rgba(15, 23, 42, 0.65);
  --feature-shadow: 0 28px 70px rgba(15, 23, 42, 0.55);
  --card-shadow: 0 26px 60px rgba(15, 23, 42, 0.5);
  --btn-shadow: 0 18px 46px rgba(106, 125, 255, 0.35);
  --btn-shadow-hover: 0 22px 56px rgba(106, 125, 255, 0.38);
  --ghost-text-color: var(--text);
  --profile-photo-size: 200px;
  --full-name-font-size: 32px;
  --brand-logo-width: 36px;
  --brand-logo-height: 36px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  color: var(--text);
  background: var(--body-background);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
}

body[data-theme='dark'] {
  color-scheme: dark;
}

body[data-theme='ollivere'] {
  color-scheme: dark;
  --profile-photo-size: 160px;
  --full-name-font-size: clamp(2.6rem, 4vw, 3.4rem);
}

body[data-theme='bright-power'] {
  color-scheme: light;
  --body-background: linear-gradient(180deg, #fff685 0%, rgba(0, 221, 255, 0.45) 55%, rgba(0, 73, 183, 0.6) 100%);
  --panel: rgba(255, 246, 133, 0.96);
  --card: rgba(255, 246, 133, 0.88);
  --text: #0049B7;
  --muted: rgba(0, 73, 183, 0.75);
  --primary: #ff1d58;
  --primary-2: #f75990;
  --danger: #ff1d58;
  --ok: #00DDFF;
  --border: rgba(0, 73, 183, 0.24);
  --btn-border: rgba(255, 29, 88, 0.35);
  --btn-hover-shadow: 0 14px 24px rgba(255, 29, 88, 0.28);
  --modal-shadow: 0 24px 60px rgba(0, 73, 183, 0.28);
  --modal-backdrop: rgba(0, 73, 183, 0.45);
  --notice-bg: rgba(0, 221, 255, 0.22);
  --notice-border: rgba(0, 73, 183, 0.3);
  --notice-color: #0049B7;
  --input-bg: rgba(255, 246, 133, 0.92);
  --input-text: #0049B7;
  --input-border: rgba(0, 73, 183, 0.35);
  --surface-muted: rgba(255, 246, 133, 0.9);
  --surface-muted-hover: rgba(255, 246, 133, 0.98);
  --surface-muted-border: rgba(0, 73, 183, 0.28);
  --admin-hero-bg: linear-gradient(135deg, rgba(0, 73, 183, 0.18), rgba(0, 221, 255, 0.2));
  --admin-hero-border: rgba(0, 73, 183, 0.28);
  --admin-stat-bg: rgba(0, 221, 255, 0.12);
  --admin-stat-border: rgba(0, 73, 183, 0.26);
  --flash-bg: rgba(255, 29, 88, 0.16);
  --panel-rgb: 255, 246, 133;
  --card-rgb: 255, 246, 133;
  --border-rgb: 0, 73, 183;
  --primary-rgb: 255, 29, 88;
  --primary-2-rgb: 247, 89, 144;
  --hero-shadow: 0 32px 80px rgba(0, 73, 183, 0.25);
  --media-shadow: 0 26px 60px rgba(0, 73, 183, 0.28);
  --feature-shadow: 0 28px 70px rgba(0, 73, 183, 0.26);
  --card-shadow: 0 26px 60px rgba(0, 73, 183, 0.24);
  --btn-shadow: 0 18px 46px rgba(255, 29, 88, 0.3);
  --btn-shadow-hover: 0 22px 56px rgba(255, 29, 88, 0.36);
  --primary-btn-text: #ffffff;
  --ghost-text-color: #0049B7;
}

body[data-theme='tailwind'] {
  color-scheme: light;
  --body-background: linear-gradient(180deg, #f1faee 0%, #a8dadc 100%);
  --panel: #f7fcf6;
  --card: #f1faee;
  --text: #1d3557;
  --muted: #457b9d;
  --primary: #e63946;
  --primary-2: #457b9d;
  --danger: #e63946;
  --ok: #42a3a6;
  --border: #a8dadc;
  --btn-border: rgba(230, 57, 70, 0.3);
  --btn-hover-shadow: 0 14px 24px rgba(230, 57, 70, 0.22);
  --modal-shadow: 0 24px 60px rgba(29, 53, 87, 0.22);
  --modal-backdrop: rgba(29, 53, 87, 0.42);
  --notice-bg: rgba(168, 218, 220, 0.4);
  --notice-border: rgba(69, 123, 157, 0.28);
  --notice-color: #1d3557;
  --input-bg: #fafdf9;
  --input-text: #1d3557;
  --input-border: rgba(168, 218, 220, 0.45);
  --surface-muted: rgba(241, 250, 238, 0.95);
  --surface-muted-hover: #f1faee;
  --surface-muted-border: rgba(69, 123, 157, 0.26);
  --admin-hero-bg: linear-gradient(135deg, rgba(69, 123, 157, 0.14), rgba(230, 57, 70, 0.1));
  --admin-hero-border: rgba(69, 123, 157, 0.28);
  --admin-stat-bg: #f7fcf6;
  --admin-stat-border: rgba(168, 218, 220, 0.5);
  --flash-bg: rgba(69, 123, 157, 0.16);
  --panel-rgb: 247, 252, 246;
  --card-rgb: 241, 250, 238;
  --border-rgb: 168, 218, 220;
  --primary-rgb: 230, 57, 70;
  --primary-2-rgb: 69, 123, 157;
  --hero-shadow: 0 32px 80px rgba(29, 53, 87, 0.2);
  --media-shadow: 0 26px 60px rgba(29, 53, 87, 0.22);
  --feature-shadow: 0 28px 70px rgba(29, 53, 87, 0.22);
  --card-shadow: 0 26px 60px rgba(29, 53, 87, 0.2);
  --btn-shadow: 0 18px 46px rgba(230, 57, 70, 0.24);
  --btn-shadow-hover: 0 22px 56px rgba(230, 57, 70, 0.3);
  --primary-btn-text: #ffffff;
  --ghost-text-color: #1d3557;
}

body[data-theme='tailwind-pastel'] {
  color-scheme: light;
  --body-background: linear-gradient(180deg, #fefae0 0%, #e9edc9 100%);
  --panel: #fcf4e0;
  --card: #faedcd;
  --text: #5b6635;
  --muted: #acbb7b;
  --primary: #d4a373;
  --primary-2: #ccd5ae;
  --danger: #c58341;
  --ok: #88994f;
  --border: #e9edc9;
  --btn-border: rgba(212, 163, 115, 0.32);
  --btn-hover-shadow: 0 14px 24px rgba(212, 163, 115, 0.24);
  --modal-shadow: 0 24px 60px rgba(100, 65, 31, 0.22);
  --modal-backdrop: rgba(100, 65, 31, 0.38);
  --notice-bg: rgba(204, 213, 174, 0.4);
  --notice-border: rgba(212, 163, 115, 0.3);
  --notice-color: #5b6635;
  --input-bg: #fdf8eb;
  --input-text: #5b6635;
  --input-border: rgba(204, 213, 174, 0.45);
  --surface-muted: rgba(250, 237, 205, 0.94);
  --surface-muted-hover: #fefae0;
  --surface-muted-border: rgba(212, 163, 115, 0.28);
  --admin-hero-bg: linear-gradient(135deg, rgba(212, 163, 115, 0.16), rgba(204, 213, 174, 0.14));
  --admin-hero-border: rgba(212, 163, 115, 0.28);
  --admin-stat-bg: #fdf8eb;
  --admin-stat-border: rgba(204, 213, 174, 0.4);
  --flash-bg: rgba(212, 163, 115, 0.2);
  --panel-rgb: 252, 244, 224;
  --card-rgb: 250, 237, 205;
  --border-rgb: 233, 237, 201;
  --primary-rgb: 212, 163, 115;
  --primary-2-rgb: 204, 213, 174;
  --hero-shadow: 0 32px 80px rgba(100, 65, 31, 0.18);
  --media-shadow: 0 26px 60px rgba(100, 65, 31, 0.22);
  --feature-shadow: 0 28px 70px rgba(100, 65, 31, 0.22);
  --card-shadow: 0 26px 60px rgba(100, 65, 31, 0.2);
  --btn-shadow: 0 18px 46px rgba(212, 163, 115, 0.26);
  --btn-shadow-hover: 0 22px 56px rgba(212, 163, 115, 0.32);
  --primary-btn-text: #32210f;
  --ghost-text-color: #5b6635;
}

body[data-theme='ghibli'] {
  color-scheme: light;
  --body-background: linear-gradient(180deg, #f4f1de 0%, #f2cc8f 100%);
  --panel: #f6f3e3;
  --card: #f4f1de;
  --text: #3d405b;
  --muted: #5a5e87;
  --primary: #e07a5f;
  --primary-2: #81b29a;
  --danger: #a23b1f;
  --ok: #81b29a;
  --border: #dcd397;
  --btn-border: rgba(224, 122, 95, 0.32);
  --btn-hover-shadow: 0 14px 24px rgba(224, 122, 95, 0.24);
  --modal-shadow: 0 24px 60px rgba(61, 64, 91, 0.24);
  --modal-backdrop: rgba(61, 64, 91, 0.42);
  --notice-bg: rgba(129, 178, 154, 0.32);
  --notice-border: rgba(224, 122, 95, 0.3);
  --notice-color: #3d405b;
  --input-bg: #f6f3e3;
  --input-text: #3d405b;
  --input-border: rgba(224, 122, 95, 0.28);
  --surface-muted: rgba(244, 241, 222, 0.94);
  --surface-muted-hover: #faf9f1;
  --surface-muted-border: rgba(224, 122, 95, 0.26);
  --admin-hero-bg: linear-gradient(135deg, rgba(224, 122, 95, 0.16), rgba(129, 178, 154, 0.14));
  --admin-hero-border: rgba(224, 122, 95, 0.26);
  --admin-stat-bg: #faf9f1;
  --admin-stat-border: rgba(224, 122, 95, 0.24);
  --flash-bg: rgba(224, 122, 95, 0.18);
  --panel-rgb: 246, 243, 227;
  --card-rgb: 244, 241, 222;
  --border-rgb: 220, 211, 151;
  --primary-rgb: 224, 122, 95;
  --primary-2-rgb: 129, 178, 154;
  --hero-shadow: 0 32px 80px rgba(61, 64, 91, 0.22);
  --media-shadow: 0 26px 60px rgba(61, 64, 91, 0.24);
  --feature-shadow: 0 28px 70px rgba(61, 64, 91, 0.24);
  --card-shadow: 0 26px 60px rgba(61, 64, 91, 0.2);
  --btn-shadow: 0 18px 46px rgba(224, 122, 95, 0.26);
  --btn-shadow-hover: 0 22px 56px rgba(224, 122, 95, 0.32);
  --primary-btn-text: #ffffff;
  --ghost-text-color: #3d405b;
}

body[data-theme='space-cadet'] {
  color-scheme: dark;
  --body-background: linear-gradient(180deg, #1b1b2f 0%, #4a4e69 100%);
  --panel: #22223b;
  --card: #2c2f3f;
  --text: #f2e9e4;
  --muted: #c9ada7;
  --primary: #9a8c98;
  --primary-2: #c9ada7;
  --danger: #ad8279;
  --ok: #8b8fac;
  --border: #3b3e54;
  --btn-border: rgba(201, 173, 167, 0.36);
  --btn-hover-shadow: 0 14px 24px rgba(201, 173, 167, 0.24);
  --modal-shadow: 0 24px 60px rgba(7, 7, 12, 0.65);
  --modal-backdrop: rgba(7, 7, 12, 0.78);
  --notice-bg: rgba(74, 78, 105, 0.5);
  --notice-border: rgba(201, 173, 167, 0.34);
  --notice-color: #f2e9e4;
  --input-bg: #1b1b2f;
  --input-text: #f2e9e4;
  --input-border: rgba(201, 173, 167, 0.35);
  --surface-muted: rgba(28, 28, 45, 0.9);
  --surface-muted-hover: rgba(40, 41, 63, 0.92);
  --surface-muted-border: rgba(201, 173, 167, 0.32);
  --admin-hero-bg: linear-gradient(135deg, rgba(154, 140, 152, 0.18), rgba(74, 78, 105, 0.18));
  --admin-hero-border: rgba(201, 173, 167, 0.34);
  --admin-stat-bg: rgba(27, 27, 47, 0.95);
  --admin-stat-border: rgba(201, 173, 167, 0.28);
  --flash-bg: rgba(154, 140, 152, 0.18);
  --panel-rgb: 34, 34, 59;
  --card-rgb: 44, 47, 63;
  --border-rgb: 59, 62, 84;
  --primary-rgb: 154, 140, 152;
  --primary-2-rgb: 201, 173, 167;
  --hero-shadow: 0 32px 80px rgba(7, 7, 12, 0.65);
  --media-shadow: 0 26px 60px rgba(7, 7, 12, 0.65);
  --feature-shadow: 0 28px 70px rgba(7, 7, 12, 0.62);
  --card-shadow: 0 26px 60px rgba(7, 7, 12, 0.58);
  --btn-shadow: 0 18px 46px rgba(201, 173, 167, 0.28);
  --btn-shadow-hover: 0 22px 56px rgba(201, 173, 167, 0.34);
  --primary-btn-text: #1b1b2f;
  --ghost-text-color: #f2e9e4;
}

body[data-theme='melon'] {
  color-scheme: light;
  --body-background: linear-gradient(180deg, #faf3dd 0%, #b8f2e6 100%);
  --panel: #faf3dd;
  --card: #fbf5e3;
  --text: #5e6472;
  --muted: #7b8293;
  --primary: #ffa69e;
  --primary-2: #aed9e0;
  --danger: #ff5a4b;
  --ok: #29d8b5;
  --border: #ffdbd8;
  --btn-border: rgba(255, 166, 158, 0.34);
  --btn-hover-shadow: 0 14px 24px rgba(255, 166, 158, 0.26);
  --modal-shadow: 0 24px 60px rgba(94, 100, 114, 0.22);
  --modal-backdrop: rgba(94, 100, 114, 0.38);
  --notice-bg: rgba(174, 217, 224, 0.35);
  --notice-border: rgba(255, 166, 158, 0.32);
  --notice-color: #5e6472;
  --input-bg: #fdfaf1;
  --input-text: #5e6472;
  --input-border: rgba(174, 217, 224, 0.42);
  --surface-muted: rgba(250, 243, 221, 0.94);
  --surface-muted-hover: #fcf8ea;
  --surface-muted-border: rgba(255, 166, 158, 0.26);
  --admin-hero-bg: linear-gradient(135deg, rgba(255, 166, 158, 0.16), rgba(174, 217, 224, 0.14));
  --admin-hero-border: rgba(174, 217, 224, 0.3);
  --admin-stat-bg: #fcf8ea;
  --admin-stat-border: rgba(174, 217, 224, 0.28);
  --flash-bg: rgba(255, 166, 158, 0.2);
  --panel-rgb: 250, 243, 221;
  --card-rgb: 253, 245, 228;
  --border-rgb: 255, 219, 216;
  --primary-rgb: 255, 166, 158;
  --primary-2-rgb: 174, 217, 224;
  --hero-shadow: 0 32px 80px rgba(94, 100, 114, 0.22);
  --media-shadow: 0 26px 60px rgba(94, 100, 114, 0.24);
  --feature-shadow: 0 28px 70px rgba(94, 100, 114, 0.24);
  --card-shadow: 0 26px 60px rgba(94, 100, 114, 0.2);
  --btn-shadow: 0 18px 46px rgba(255, 166, 158, 0.26);
  --btn-shadow-hover: 0 22px 56px rgba(255, 166, 158, 0.32);
  --primary-btn-text: #52410c;
  --ghost-text-color: #5e6472;
}

body[data-theme='jet'] {
  color-scheme: dark;
  --body-background: linear-gradient(180deg, #0b0b0b 0%, #284b63 100%);
  --panel: #202020;
  --card: #2b2b2b;
  --text: #f7f7f7;
  --muted: #d9d9d9;
  --primary: #3c6e71;
  --primary-2: #284b63;
  --danger: #aeaeae;
  --ok: #7bb6b9;
  --border: #353535;
  --btn-border: rgba(60, 110, 113, 0.42);
  --btn-hover-shadow: 0 14px 24px rgba(60, 110, 113, 0.28);
  --modal-shadow: 0 24px 60px rgba(11, 11, 11, 0.7);
  --modal-backdrop: rgba(11, 11, 11, 0.82);
  --notice-bg: rgba(40, 75, 99, 0.48);
  --notice-border: rgba(123, 182, 185, 0.34);
  --notice-color: #f7f7f7;
  --input-bg: #2b2b2b;
  --input-text: #f7f7f7;
  --input-border: rgba(123, 182, 185, 0.37);
  --surface-muted: rgba(32, 32, 32, 0.92);
  --surface-muted-hover: rgba(43, 43, 43, 0.94);
  --surface-muted-border: rgba(123, 182, 185, 0.28);
  --admin-hero-bg: linear-gradient(135deg, rgba(60, 110, 113, 0.22), rgba(40, 75, 99, 0.26));
  --admin-hero-border: rgba(60, 110, 113, 0.36);
  --admin-stat-bg: rgba(27, 27, 27, 0.94);
  --admin-stat-border: rgba(60, 110, 113, 0.32);
  --flash-bg: rgba(60, 110, 113, 0.26);
  --panel-rgb: 32, 32, 32;
  --card-rgb: 43, 43, 43;
  --border-rgb: 53, 53, 53;
  --primary-rgb: 60, 110, 113;
  --primary-2-rgb: 40, 75, 99;
  --hero-shadow: 0 32px 80px rgba(11, 11, 11, 0.7);
  --media-shadow: 0 26px 60px rgba(11, 11, 11, 0.6);
  --feature-shadow: 0 28px 70px rgba(11, 11, 11, 0.62);
  --card-shadow: 0 26px 60px rgba(11, 11, 11, 0.58);
  --btn-shadow: 0 18px 46px rgba(60, 110, 113, 0.3);
  --btn-shadow-hover: 0 22px 56px rgba(60, 110, 113, 0.36);
  --primary-btn-text: #f7f7f7;
  --ghost-text-color: #f7f7f7;
}

body[data-theme='seasalt'] {
  color-scheme: light;
  --body-background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  --panel: #fdfdfd;
  --card: #f8f9fa;
  --text: #212529;
  --muted: #6c757d;
  --primary: #495057;
  --primary-2: #6c757d;
  --danger: #343a40;
  --ok: #536475;
  --border: #dee2e6;
  --btn-border: rgba(73, 80, 87, 0.3);
  --btn-hover-shadow: 0 14px 24px rgba(73, 80, 87, 0.22);
  --modal-shadow: 0 24px 60px rgba(52, 58, 64, 0.22);
  --modal-backdrop: rgba(52, 58, 64, 0.38);
  --notice-bg: rgba(206, 212, 218, 0.45);
  --notice-border: rgba(108, 117, 125, 0.26);
  --notice-color: #212529;
  --input-bg: #fbfcfc;
  --input-text: #212529;
  --input-border: #ced4da;
  --surface-muted: rgba(253, 253, 253, 0.94);
  --surface-muted-hover: #fefefe;
  --surface-muted-border: rgba(108, 117, 125, 0.2);
  --admin-hero-bg: linear-gradient(135deg, rgba(73, 80, 87, 0.14), rgba(108, 117, 125, 0.12));
  --admin-hero-border: rgba(108, 117, 125, 0.22);
  --admin-stat-bg: #f8f9fa;
  --admin-stat-border: #dee2e6;
  --flash-bg: rgba(73, 80, 87, 0.16);
  --panel-rgb: 253, 253, 253;
  --card-rgb: 248, 249, 250;
  --border-rgb: 222, 226, 230;
  --primary-rgb: 73, 80, 87;
  --primary-2-rgb: 108, 117, 125;
  --hero-shadow: 0 32px 80px rgba(52, 58, 64, 0.18);
  --media-shadow: 0 26px 60px rgba(52, 58, 64, 0.2);
  --feature-shadow: 0 28px 70px rgba(52, 58, 64, 0.2);
  --card-shadow: 0 26px 60px rgba(52, 58, 64, 0.18);
  --btn-shadow: 0 18px 46px rgba(73, 80, 87, 0.22);
  --btn-shadow-hover: 0 22px 56px rgba(73, 80, 87, 0.26);
  --primary-btn-text: #f8f9fa;
  --ghost-text-color: #212529;
}
body[data-theme='light'] {
  color-scheme: light;
  --body-background: linear-gradient(180deg, #f8f9ff 0%, #eef1fb 100%);
  --panel: #ffffff;
  --card: #ffffff;
  --text: #1f2335;
  --muted: #565f77;
  --primary: #3d5afe;
  --primary-2: #7f96ff;
  --danger: #e5484d;
  --ok: #2f9e66;
  --border: #d6dcf3;
  --btn-border: rgba(61, 90, 254, 0.24);
  --btn-hover-shadow: 0 14px 24px rgba(61, 90, 254, 0.22);
  --modal-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  --modal-backdrop: rgba(15, 23, 42, 0.35);
  --notice-bg: #eef2ff;
  --notice-border: #c7d2fe;
  --notice-color: #2b3248;
  --input-bg: #ffffff;
  --input-text: #1f2335;
  --input-border: #d6dcf3;
  --surface-muted: rgba(255, 255, 255, 0.9);
  --surface-muted-hover: #ffffff;
  --surface-muted-border: rgba(61, 90, 254, 0.24);
  --admin-hero-bg: linear-gradient(135deg, rgba(61, 90, 254, 0.08), rgba(127, 150, 255, 0.04));
  --admin-hero-border: rgba(61, 90, 254, 0.18);
  --admin-stat-bg: #eef1fb;
  --admin-stat-border: #d6dcf3;
  --flash-bg: rgba(61, 90, 254, 0.08);
  --panel-rgb: 255, 255, 255;
  --card-rgb: 255, 255, 255;
  --border-rgb: 214, 220, 243;
  --primary-rgb: 61, 90, 254;
  --primary-2-rgb: 127, 150, 255;
  --hero-shadow: 0 32px 80px rgba(15, 23, 42, 0.12);
  --media-shadow: 0 26px 60px rgba(15, 23, 42, 0.15);
  --feature-shadow: 0 28px 70px rgba(15, 23, 42, 0.15);
  --card-shadow: 0 26px 60px rgba(15, 23, 42, 0.12);
  --btn-shadow: 0 18px 46px rgba(61, 90, 254, 0.25);
  --btn-shadow-hover: 0 22px 56px rgba(61, 90, 254, 0.28);
  --primary-btn-text: #ffffff;
  --ghost-text-color: #1f2937;
}
body.modal-open { overflow: hidden; }

.container { max-width: 1100px; margin: 0 auto; padding: 24px; }
.admin-container { max-width: 1200px; }

body.theme-dark,
body.theme-light,
body.theme-bright-power,
body.theme-tailwind,
body.theme-tailwind-pastel,
body.theme-ghibli,
body.theme-space-cadet,
body.theme-melon,
body.theme-jet,
body.theme-seasalt,
body.theme-tailwind-custom {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

body.theme-dark .container,
body.theme-light .container,
body.theme-bright-power .container,
body.theme-tailwind .container,
body.theme-tailwind-pastel .container,
body.theme-ghibli .container,
body.theme-space-cadet .container,
body.theme-melon .container,
body.theme-jet .container,
body.theme-seasalt .container,
body.theme-tailwind-custom .container {
  max-width: 1200px;
  padding: 32px 24px 80px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}
.header-admin { padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-logo {
  width: var(--brand-logo-width, 36px);
  height: var(--brand-logo-height, 36px);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: .5px;
  overflow: hidden;
}
.brand-logo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-logo--image {
  background: transparent;
  border: 1px solid var(--border);
  padding: 0;
  display: inline-flex;
}
.brand-logo--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}
.brand-name { font-weight: 700; font-size: 18px; }

.nav { display: flex; align-items: center; gap: 14px; }
.nav a, .nav .button { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav .button:hover { color: var(--text); }
.nav .button { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); background: transparent; }
.admin-nav { gap: 10px; }
.admin-nav .button { background: none; }

.hero {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0) 60%);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}
.hero-info { flex: 1 1 320px; min-width: 240px; }
.hero h1 { margin: 0 0 8px 0; font-size: var(--full-name-font-size); }
.hero-title { margin: 8px 0 0 0; font-size: 18px; font-weight: 600; color: var(--text); }
.hero-bio { margin: 12px 0 0 0; color: var(--muted); line-height: 1.6; }
.hero-badges { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-photo {
  width: var(--profile-photo-size);
  height: var(--profile-photo-size);
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  flex-shrink: 0;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.section { margin-top: 28px; }
.section h2 { margin: 0 0 12px 0; font-size: 22px; }
.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section__head h2 {
  margin: 0;
  font-size: 22px;
}
.section__head a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.section__head a:hover,
.section__head a:focus-visible {
  color: var(--text);
  text-decoration: none;
  outline: none;
}
.muted { color: var(--muted); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.card-image {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #10153a;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { margin: 0; font-size: 20px; }
.card p { margin: 0; color: var(--muted); line-height: 1.5; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(106, 125, 255, .14);
  border: 1px solid rgba(106, 125, 255, .28);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 12px;
  border: 1px solid var(--btn-border);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--btn-hover-shadow); }
.btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn.secondary:hover { border-color: rgba(255,255,255,.24); color: white; }

body.theme-variant-light .brand-logo:not(.brand-logo--image) {
  box-shadow: 0 12px 28px rgba(61, 90, 254, 0.25);
  color: #fff;
}
body.theme-variant-light .brand-logo--image {
  border-color: rgba(99, 102, 241, 0.24);
  background: rgba(255, 255, 255, 0.6);
}

body.theme-variant-light .btn.secondary {
  background: #f4f6ff;
  border-color: rgba(61, 90, 254, 0.24);
  color: var(--text);
}

body.theme-variant-light .btn.secondary:hover {
  border-color: rgba(61, 90, 254, 0.4);
  background: #ebefff;
  color: var(--text);
}

body.theme-variant-light .hero {
  background: linear-gradient(180deg, rgba(61, 90, 254, 0.06), rgba(61, 90, 254, 0) 65%);
  border-color: rgba(15, 23, 42, 0.08);
}

body.theme-variant-light .card {
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

body.theme-variant-light .card:hover {
  border-color: rgba(61, 90, 254, 0.24);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

body.theme-variant-light .card-image {
  background: #eef1ff;
}

body.theme-variant-light .hero-photo {
  border-color: rgba(61, 90, 254, 0.16);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

body.theme-variant-light .tag {
  color: #2f448a;
  background: rgba(61, 90, 254, 0.12);
  border: 1px solid rgba(61, 90, 254, 0.26);
}

body.theme-variant-light footer a {
  color: #1e3a8a;
  text-decoration-color: rgba(30, 58, 138, 0.45);
}

body.theme-variant-light footer a:hover,
body.theme-variant-light footer a:focus-visible {
  color: #1d4ed8;
  text-decoration-color: #1d4ed8;
}

body.theme-variant-light .notice {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

body.theme-variant-light .modal__dialog {
  background: #ffffff;
}

footer {
  opacity: .8; color: var(--muted); padding: 24px 0; font-size: 14px; text-align: center;
  border-top: 1px dashed var(--border); margin-top: 28px;
}
footer a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.4);
  transition: color .2s ease, text-decoration-color .2s ease;
}
footer a:hover,
footer a:focus-visible {
  color: #fff;
  text-decoration-color: #fff;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-auto-flow: dense;
  gap: 16px;
}
.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-card[data-span="2"],
.profile-card--span-2 {
  grid-column: span 2;
}
.profile-card[data-span="3"],
.profile-card--span-3 {
  grid-column: span 3;
}
.profile-card h3 { margin: 0; }
.profile-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.profile-card ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; list-style: disc; }

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-backdrop);
  backdrop-filter: blur(6px);
}
.modal__dialog {
  position: relative;
  max-width: 640px;
  width: min(640px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--modal-shadow);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal[data-theme] .modal__dialog {
  background: rgba(var(--card-rgb, 24, 24, 32), 0.92);
  border-color: rgba(var(--border-rgb, 40, 40, 48), 0.8);
  backdrop-filter: blur(16px);
}

.modal[data-theme-variant='light'] .modal__dialog {
  background: rgba(var(--card-rgb, 255, 255, 255), 0.96);
  border-color: rgba(var(--border-rgb, 200, 200, 210), 0.8);
}

.modal[data-theme='ollivere'] .modal__dialog {
  background: rgba(26, 31, 74, 0.78);
  border-color: rgba(129, 140, 248, 0.35);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.55);
}
.modal__dialog--wide {
  max-width: 880px;
  width: min(880px, 100%);
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
}
.modal__header h3 { margin: 0; font-size: 24px; }
.modal__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.modal__image { border-radius: 16px; overflow: hidden; }
.modal__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal__lead { margin: 0; color: var(--muted); line-height: 1.6; font-weight: 600; }
.modal__text { color: var(--muted); line-height: 1.7; white-space: pre-line; }
.modal__code { margin-top: 0.5rem; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: rgba(15, 23, 42, 0.75); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45); }
.modal__iframe { width: 100%; min-height: 420px; border: 0; display: block; background: #0f172a; }
.modal__body { display: grid; gap: 18px; }
.modal--admin .modal__dialog { max-width: 760px; width: min(760px, 100%); background: var(--panel); }
.modal--admin .modal__lead { font-weight: 500; }
.modal--admin .modal__footer { margin-top: 8px; }
.scale-fields--modal { margin-top: 4px; }
.modal__footer { display: flex; justify-content: flex-end; }

.modal--profile .modal__dialog {
  max-width: 780px;
  width: min(780px, 100%);
}

.profile-modal__body {
  display: grid;
  gap: 24px;
}

.profile-modal__section {
  display: grid;
  gap: 12px;
}

.profile-modal__section--items {
  gap: 18px;
}

.profile-modal__section h4 {
  margin: 0;
  font-size: 18px;
}

.profile-modal__item {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(var(--card-rgb), 0.38);
  border: 1px solid rgba(var(--border-rgb), 0.35);
}

.profile-modal__item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.profile-modal__item-head h4 {
  margin: 0;
  font-size: 18px;
}

.profile-modal__item-date {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.profile-modal__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.profile-modal__list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.profile-modal__gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.profile-modal__thumb {
  border: 0;
  padding: 0;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.35);
  transition: transform 0.2s ease;
  background: none;
}

.profile-modal__thumb:hover,
.profile-modal__thumb:focus-visible {
  transform: translateY(-2px);
}

.profile-modal__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-modal__thumb-label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.68);
  color: #f8fafc;
  border-radius: 10px;
  font-size: 12px;
  padding: 6px 10px;
  text-align: center;
}

.profile-modal__documents {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.profile-modal__documents a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.profile-modal__documents a:hover,
.profile-modal__documents a:focus {
  text-decoration: underline;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 20, 0.82);
  backdrop-filter: blur(8px);
}

.lightbox__content {
  position: relative;
  margin: 0;
  z-index: 1;
  max-width: min(96vw, 960px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox__image {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 18px;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.5);
}

.lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.4);
}

.lightbox__caption {
  margin: 0;
  font-size: 14px;
  color: rgba(226, 232, 240, 0.85);
  text-align: center;
}

.profile-photo-preview {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 220px;
  align-items: flex-start;
}
.profile-photo-preview img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  object-fit: cover;
}
.profile-photo-preview .profile-photo-resize-button { align-self: flex-start; }
.profile-photo-resize {
  margin-top: 12px;
  display: flex;
}
.profile-photo-resize-button { align-self: flex-start; }
.profile-photo-resize-note { margin-top: 8px; }

/* Admin & forms */
.form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.form-standalone { margin-top: 20px; }
label { display: block; margin: 10px 0 6px; font-weight: 600; }
input[type=text], input[type=password], input[type=url], input[type=number], textarea, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--input-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input[type=number] {
  -moz-appearance: textfield;
}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=text]:focus-visible,
input[type=password]:focus-visible,
input[type=url]:focus-visible,
input[type=number]:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(61, 90, 254, 0.25);
}
textarea { min-height: 110px; resize: vertical; }
.actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
button, .button {
  border: 0; padding: 10px 16px; border-radius: 10px; cursor: pointer;
  color: white; background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-weight: 600;
}
.button.secondary { background: none; color: var(--text); border: 1px solid var(--border); }
.button.danger {
  background: linear-gradient(135deg, #ff6b6b, #ff3b3b);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 107, 107, .28);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.button.danger:hover {
  background: linear-gradient(135deg, #ff7d7d, #ff5252);
  box-shadow: 0 10px 22px rgba(255, 107, 107, .32);
  transform: translateY(-1px);
}
.button.danger:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .4);
  outline-offset: 2px;
}
.badge { padding: 4px 8px; border-radius: 100px; border: 1px solid var(--border); font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.badge-success { color: var(--ok); border-color: rgba(38, 194, 129, .4); background: rgba(38,194,129,.12); }
.small { font-size: 12px; color: var(--muted); }

.flash-stack { display: grid; gap: 10px; margin-bottom: 24px; }
.flash {
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: var(--flash-bg);
  color: var(--text);
  font-weight: 600;
}
.flash-success { border-color: rgba(38,194,129,.5); background: rgba(38,194,129,.12); color: var(--ok); }
.flash-danger { border-color: rgba(255,107,107,.6); background: rgba(255,107,107,.15); color: var(--danger); }
.flash-info { border-color: rgba(106,125,255,.5); background: rgba(106,125,255,.12); color: var(--primary); }

.admin-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--admin-hero-bg);
  border: 1px solid var(--admin-hero-border);
  border-radius: 18px;
  padding: 24px;
}
.admin-hero h1 { margin: 0; }
.admin-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.admin-stat {
  min-width: 140px;
  background: var(--admin-stat-bg);
  border: 1px solid var(--admin-stat-border);
  border-radius: 14px;
  padding: 14px 18px;
}
.admin-stat__label { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.admin-stat__value { font-size: 26px; font-weight: 700; }

.admin-columns {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.admin-card { position: relative; overflow: hidden; }
.admin-card__header {
  margin-bottom: 18px;
  position: relative;
}
.admin-card__close {
  position: absolute;
  top: 0;
  right: 0;
}
.admin-card__header h2, .admin-card__header h1 { margin: 0 0 6px 0; }
.section-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.section-heading__text {
  display: inline-flex;
  align-items: center;
  font-weight: inherit;
}

.icon-button {
  border: none;
  background: transparent;
  color: inherit;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-size: 16px;
}

.icon-button:hover,
.icon-button:focus-visible {
  background-color: rgba(148, 163, 184, 0.16);
  color: #2563eb;
  outline: none;
}

.icon-button:focus-visible {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.icon-button:disabled {
  opacity: 0.55;
  cursor: default;
}

.icon-button.is-loading {
  cursor: progress;
  opacity: 0.6;
}

.field-group { margin-bottom: 10px; }

.form-section {
  border: 1px solid var(--surface-muted-border, var(--border));
  background: var(--surface-muted, rgba(15, 19, 64, 0.72));
  border-radius: 18px;
  margin: 0 0 20px;
  overflow: hidden;
}

.form-section__summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  cursor: pointer;
}

.form-section__summary::-webkit-details-marker {
  display: none;
}

.form-section__summary-content {
  display: grid;
  gap: 6px;
}

.form-section__title {
  margin: 0;
  font-size: 16px;
}

.form-section__description {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-section__chevron {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  border-radius: 2px;
  transform: rotate(45deg);
  margin-top: 4px;
  transition: transform 0.2s ease;
}

.form-section[open] .form-section__chevron {
  transform: rotate(225deg);
}

.form-section__content {
  display: grid;
  gap: 16px;
  padding: 0 20px 20px;
  border-top: 1px solid var(--surface-muted-border, var(--border));
}

.fieldset-inline {
  border: 1px solid var(--surface-muted-border, var(--border));
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface-muted, rgba(15, 19, 64, 0.72));
}

.fieldset-inline legend {
  font-weight: 600;
  padding: 0 6px;
}

.form-fieldset {
  border: 1px solid var(--surface-muted-border, var(--border));
  border-radius: 18px;
  padding: 18px 20px;
  background: var(--surface-muted, rgba(15, 19, 64, 0.72));
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.form-fieldset legend {
  font-weight: 600;
  padding: 0 8px;
  font-size: 15px;
}

.extra-fields {
  display: grid;
  gap: 20px;
}

.extra-fields.is-hidden {
  display: none;
}

.form-subsection {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.form-subsection h3 {
  margin: 0;
  font-size: 16px;
}

.form-block-type[hidden] {
  display: none !important;
}

.form-subsection--subitems {
  padding-top: 0;
  border-top: none;
}

.profile-subitems {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.profile-subitem {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(var(--card-rgb), 0.42);
  border: 1px solid rgba(var(--border-rgb), 0.35);
}

.profile-subitem__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-subitem__title {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.profile-subitem__actions {
  display: flex;
  gap: 8px;
}

.profile-subitem__actions .button {
  padding: 6px 12px;
}

.profile-subitem__uploads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-subitem__uploads .file-upload {
  flex: 1 1 220px;
}

.admin-templates {
  margin-bottom: 24px;
  display: grid;
  gap: 12px;
}

.admin-templates__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-template-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-muted, rgba(15, 23, 42, 0.75));
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-template-card strong {
  font-size: 16px;
}

.admin-template-card span {
  color: var(--muted);
  font-size: 13px;
}

.admin-template-card__action {
  font-weight: 600;
  color: var(--primary);
}

.admin-template-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--primary-rgb, 99, 102, 241), 0.4);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.admin-template-card.is-active {
  border-color: rgba(var(--primary-rgb, 99, 102, 241), 0.65);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb, 99, 102, 241), 0.25);
}

.admin-attachments {
  display: grid;
  gap: 12px;
}

.admin-attachment {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-muted, rgba(15, 23, 42, 0.7));
  padding: 12px 14px;
  display: grid;
  gap: 12px;
}

.admin-attachment--image {
  grid-template-columns: minmax(0, 160px) 1fr;
  align-items: center;
}

.admin-attachment__preview {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.4);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.4);
}

.admin-attachment__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-attachment__body {
  display: grid;
  gap: 10px;
}

.admin-attachment__body .small {
  color: var(--muted);
}

.hero-scale-launch {
  margin: 22px 0;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--surface-muted-border);
  background: var(--surface-muted);
  display: grid;
  gap: 16px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.2);
}

body.theme-variant-light .hero-scale-launch {
  background: #f8f9ff;
  box-shadow: 0 18px 40px rgba(61, 90, 254, 0.12);
}

.hero-scale-launch__summary {
  display: grid;
  gap: 12px;
}

.hero-scale-launch__heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-scale-launch__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.hero-scale-launch__subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.hero-scale-launch__item {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--surface-muted-border);
  background: var(--surface-muted-hover);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.theme-variant-light .hero-scale-launch__item {
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(61, 90, 254, 0.14);
}

.hero-scale-launch__item-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.hero-scale-launch__item-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.hero-scale-launch__button {
  justify-self: flex-start;
}

.hero-scale-launch > p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 720px) {
  .hero-scale-launch {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .hero-scale-launch__summary {
    display: flex;
    gap: 16px;
  }

  .hero-scale-launch__heading {
    grid-column: 1 / -1;
  }

  .hero-scale-launch__item {
    min-width: 180px;
  }

  .hero-scale-launch > p {
    grid-column: 1 / -1;
  }

  .hero-scale-launch__button {
    margin-left: 8px;
  }
}
.field-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.field-grid label { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.checkbox-inline { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 500; }
.admin-card__actions { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.admin-card__actions .button { margin-left: auto; }

.field-inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.field-inline-actions .button {
  flex-shrink: 0;
}

.field-inline-actions .small {
  color: var(--muted);
}

.filter-compact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.image-filter-preview {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--surface-muted-border, var(--border));
  background: rgba(var(--panel-rgb, 20, 23, 58), 0.52);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.image-filter-preview__sample {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25), transparent 55%),
    linear-gradient(135deg, rgba(106, 125, 255, 0.65), rgba(165, 107, 255, 0.45));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.filter-compact__summary {
  flex: 1 1 160px;
  color: var(--muted);
}

.filter-compact__hint {
  color: var(--muted);
  margin-top: 6px;
}

.image-filters-modal__body {
  display: grid;
  gap: 24px;
}

@media (min-width: 960px) {
  .image-filters-modal__body {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

.image-filter-controls {
  display: grid;
  gap: 20px;
}

.filter-group {
  border: 1px solid var(--surface-muted-border, var(--border));
  border-radius: 16px;
  background: rgba(var(--card-rgb, 26, 31, 74), 0.6);
  padding: 16px;
  display: grid;
  gap: 14px;
}

.filter-group__options {
  display: grid;
  gap: 10px;
}

.filter-group__options--toggles {
  gap: 8px;
}

.filter-option,
.filter-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(var(--panel-rgb, 20, 23, 58), 0.45);
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.filter-option:hover,
.filter-option:focus-within,
.filter-toggle:hover,
.filter-toggle:focus-within {
  border-color: rgba(var(--primary-rgb, 106, 125, 255), 0.6);
  background: rgba(var(--panel-rgb, 20, 23, 58), 0.7);
}

.filter-option input,
.filter-toggle input {
  accent-color: var(--primary);
}

.image-filter-preview__sample--large {
  width: min(100%, 300px);
  aspect-ratio: 4 / 3;
  border-radius: 18px;
}

.image-filter-preview-large {
  display: grid;
  gap: 12px;
  align-content: start;
  justify-items: center;
}

.scale-fields {
  display: grid;
  gap: 16px;
}

@media (min-width: 960px) {
  .scale-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.scale-field {
  --scale-progress: 0.33;
  border: 1px solid var(--surface-muted-border);
  background: var(--surface-muted);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.scale-field:hover {
  border-color: rgba(106, 125, 255, 0.4);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

body.theme-variant-light .scale-field {
  background: #f8f9ff;
  box-shadow: 0 12px 30px rgba(61, 90, 254, 0.08);
}

body.theme-variant-light .scale-field:hover {
  border-color: rgba(61, 90, 254, 0.42);
  background: #ffffff;
}

.scale-field__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.scale-field__titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scale-field__label {
  font-weight: 700;
  font-size: 15px;
}

.scale-field__hint {
  color: var(--muted);
  font-size: 13px;
}

.scale-field__value {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  white-space: nowrap;
}

.scale-field__range {
  width: 100%;
  margin: 6px 0 0;
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--primary) calc(var(--scale-progress) * 100%),
    var(--surface-muted-border) calc(var(--scale-progress) * 100%),
    var(--surface-muted-border) 100%
  );
  height: 6px;
  border-radius: 999px;
  appearance: none;
  outline: none;
  cursor: pointer;
}

.scale-field__range:focus-visible {
  outline: 2px solid rgba(106, 125, 255, 0.6);
  outline-offset: 4px;
}

.scale-field__range::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
  border-radius: 999px;
}

.scale-field__range::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--panel);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: -8px;
}

.scale-field__range::-webkit-slider-thumb:hover {
  transform: scale(1.06);
}

.scale-field__range::-moz-range-track {
  height: 6px;
  background: transparent;
  border-radius: 999px;
}

.scale-field__range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--panel);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scale-field__range::-moz-range-thumb:hover {
  transform: scale(1.06);
}

.scale-field__ticks {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}

.scale-field__tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.scale-field__tick.is-active {
  color: var(--text);
  border-color: rgba(106, 125, 255, 0.48);
  background: rgba(106, 125, 255, 0.14);
}

body.theme-variant-light .scale-field__tick.is-active {
  border-color: rgba(61, 90, 254, 0.42);
  background: rgba(61, 90, 254, 0.12);
}

.scale-field__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.scale-field__legend-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 19, 64, 0.18);
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.scale-field__legend-item.is-active {
  background: rgba(106, 125, 255, 0.18);
  color: var(--text);
}

body.theme-variant-light .scale-field__legend-item {
  background: rgba(61, 90, 254, 0.08);
}

body.theme-variant-light .scale-field__legend-item.is-active {
  background: rgba(61, 90, 254, 0.16);
}

.scale-field__legend-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.scale-field__legend-item:not(.is-active) .scale-field__legend-title {
  color: var(--muted);
}

.scale-field__legend-note {
  font-size: 12px;
  line-height: 1.5;
}

.button.small { padding: 6px 12px; font-size: 13px; border-radius: 8px; }

.file-upload { position: relative; display: inline-flex; flex-direction: column; gap: 8px; max-width: 320px; }
.file-upload__input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.file-upload__label { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; border: 1px dashed var(--surface-muted-border); background: var(--surface-muted); color: var(--muted); font-weight: 600; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease; }
.file-upload__label:hover { border-color: var(--primary); color: var(--text); background: var(--surface-muted-hover); transform: translateY(-1px); }
.file-upload__icon { font-size: 18px; line-height: 1; }
.file-upload__hint { margin: 0; }
.file-upload--has-file .file-upload__label { border-style: solid; border-color: rgba(106,125,255,.45); background: rgba(106,125,255,.14); color: var(--text); }
.file-upload--has-file .file-upload__icon { color: var(--primary); }

.favicon-preview,
.logo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.favicon-preview img,
.logo-preview img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  padding: 6px;
  object-fit: contain;
}
.logo-preview img {
  width: 72px;
  height: 72px;
  padding: 8px;
  border-radius: 16px;
}

.table-order {
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.table-order__index {
  font-weight: 700;
  font-size: 14px;
}
.table-order__meta {
  color: var(--muted);
}
.table-order__controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.reorder-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--surface-muted-border);
  background: var(--surface-muted);
  color: var(--muted);
  cursor: grab;
  font-size: 18px;
  line-height: 1;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.reorder-handle:hover {
  color: var(--text);
  border-color: var(--primary);
  background: var(--surface-muted-hover);
  transform: translateY(-1px);
}
.reorder-handle:active {
  cursor: grabbing;
}
.reorder-handle:focus-visible {
  outline: 2px solid rgba(106, 125, 255, .6);
  outline-offset: 2px;
  color: var(--text);
}
.order-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--surface-muted-border);
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
  cursor: pointer;
}
.order-arrow:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--primary);
  background: var(--surface-muted-hover);
  transform: translateY(-1px);
}
.order-arrow:active:not(:disabled) {
  transform: translateY(0);
}
.order-arrow:disabled {
  opacity: .5;
  cursor: default;
  transform: none;
}
.order-arrow:focus-visible {
  outline: 2px solid rgba(106, 125, 255, .6);
  outline-offset: 2px;
  color: var(--text);
}
.table-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
}
.table-hint::before {
  content: '⇅';
  font-size: 16px;
  opacity: .7;
}
.table-feedback {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.table-feedback[data-state="success"] { color: var(--ok); }
.table-feedback[data-state="error"] { color: var(--danger); }
.table-feedback[data-state="progress"]::before {
  content: '…';
  animation: tableFeedbackPulse 1.2s ease-in-out infinite;
}
.table-feedback[data-state="success"]::before { content: '✔'; }
.table-feedback[data-state="error"]::before { content: '⚠'; }
.admin-table--profile-blocks tr.is-dragging {
  opacity: .75;
  background: rgba(106, 125, 255, .08);
}
.admin-table--profile-blocks tr.is-drop-target {
  outline: 1px dashed rgba(106, 125, 255, .35);
}
.admin-table--profile-blocks.is-dragging {
  cursor: grabbing;
}

@keyframes tableFeedbackPulse {
  0%, 100% { opacity: .6; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-1px); }
}

.table-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.table-actions form { margin: 0; }
.table-actions .button { display: inline-flex; align-items: center; justify-content: center; }

.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; margin-top: 12px; min-width: 540px; }
.table th, .table td { border-bottom: 1px solid var(--border); padding: 12px 10px; text-align: left; vertical-align: top; }
.admin-table--projects th,
.admin-table--projects td { border-bottom: none; }
.admin-table--projects thead th { border-bottom: 1px solid var(--border); }
.admin-table--projects tbody tr { border-bottom: 1px solid var(--border); }
.admin-table .table-note { color: var(--muted); font-size: 13px; margin-top: 4px; }
.table-title { font-weight: 600; }
.admin-table--profile-blocks .table-title { font-size: 15px; }

.auth-wrapper { display: grid; place-items: center; min-height: 50vh; }
.auth-card {
  max-width: 400px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
}
.auth-card h1 { margin: 0 0 6px 0; }
.auth-card p { margin: 0 0 16px 0; }

.notice {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  color: var(--notice-color);
  margin: 12px 0;
}

.page-centered { max-width: 520px; margin: 60px auto; text-align: center; }
.page-centered .actions { justify-content: center; }

@media (max-width: 640px) {
  .header { flex-direction: column; align-items: flex-start; }
  .nav { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .nav .button { padding: 8px 12px; }
  .hero-content { flex-direction: column; align-items: flex-start; }
  .hero-photo { width: 160px; height: 160px; }
  .profile-card,
  .ollivere-profile__card { grid-column: span 1 !important; }
  .modal { padding: 16px; }
  .modal__dialog { padding: 22px; }
  .admin-hero { flex-direction: column; align-items: flex-start; }
  .table { min-width: unset; }
}

/* Ollivere theme */
body.theme-ollivere {
  background: #050814;
  color: #dbeafe;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body.theme-ollivere .container {
  max-width: 1200px;
  padding: 32px 24px 80px;
  position: relative;
  z-index: 10;
}

.theme-ollivere__background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.theme-ollivere__blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.7;
}

.theme-ollivere__blob--violet {
  width: 540px;
  height: 540px;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.45), rgba(99, 102, 241, 0));
  top: -140px;
  left: -120px;
}

.theme-ollivere__blob--teal {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at center, rgba(20, 184, 166, 0.45), rgba(20, 184, 166, 0));
  top: 160px;
  right: -100px;
}

.theme-ollivere__blob--blue {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.38), rgba(59, 130, 246, 0));
  bottom: -160px;
  left: 15%;
}

.theme-ollivere__noise {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: 0.05;
}

.theme-ollivere__spotlight {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle closest-side, rgba(255, 255, 255, 0.15), transparent 70%);
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.header-ollivere {
  background: linear-gradient(135deg, rgba(var(--panel-rgb, 20, 23, 58), 0.7), rgba(var(--panel-rgb, 20, 23, 58), 0.25));
  border: 1px solid rgba(var(--border-rgb, 42, 47, 99), 0.35);
  backdrop-filter: blur(18px);
  padding: 24px 28px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-ollivere .brand-logo:not(.brand-logo--image) {
  background: linear-gradient(135deg, rgba(var(--primary-rgb, 106, 125, 255), 0.9), rgba(var(--primary-2-rgb, 165, 107, 255), 0.75));
  box-shadow: 0 10px 30px rgba(var(--primary-rgb, 106, 125, 255), 0.4);
}
.brand-ollivere .brand-logo--image {
  border-color: rgba(var(--border-rgb, 42, 47, 99), 0.3);
  background: rgba(var(--panel-rgb, 20, 23, 58), 0.35);
}

.brand-ollivere .brand-name {
  color: var(--text);
  letter-spacing: 0.02em;
}

.link-underline-gradient {
  position: relative;
  text-decoration: none;
  color: inherit;
  --link-underline-offset: 0.35em;
  transition: color 0.2s ease;
}

.link-underline-gradient::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: calc(-1 * var(--link-underline-offset));
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(var(--primary-rgb, 106, 125, 255), 0.6), rgba(var(--primary-2-rgb, 165, 107, 255), 0.6));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.link-underline-gradient:hover,
.link-underline-gradient:focus-visible {
  color: var(--text);
}

.link-underline-gradient:hover::after,
.link-underline-gradient:focus-visible::after {
  transform: scaleX(1);
}

.link-underline-gradient--tight {
  --link-underline-offset: 0.2em;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.navbar a.link-underline-gradient {
  --link-underline-offset: 6px;
}

.ollivere-hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  padding: 48px;
  margin-top: 24px;
  border-radius: 36px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.35));
  backdrop-filter: blur(16px);
  box-shadow: 0 40px 120px rgba(15, 23, 42, 0.6);
}
.ollivere-hero__media {
  align-self: center;
  justify-self: center;
  width: min(var(--profile-photo-size), 100%);
  max-width: var(--profile-photo-size);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(var(--border-rgb, 148, 163, 184), 0.3);
  box-shadow: var(--media-shadow, 0 30px 80px rgba(15, 23, 42, 0.65));
  background: rgba(var(--card-rgb, 26, 31, 74), 0.6);
}
.ollivere-hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.ollivere-hero__media--inline {
  align-self: flex-start;
  justify-self: flex-start;
  width: var(--profile-photo-size);
  max-width: var(--profile-photo-size);
  height: var(--profile-photo-size);
  box-shadow: var(--media-shadow, 0 30px 80px rgba(15, 23, 42, 0.65));
  display: inline-flex;
}

.ollivere-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(129, 140, 248, 0.16);
  color: #c7d2fe;
  border: 1px solid rgba(129, 140, 248, 0.35);
  margin-bottom: 14px;
}

.ollivere-hero__identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}

.ollivere-hero h1 {
  margin: 0;
  font-size: var(--full-name-font-size);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.ollivere-hero__lead {
  margin: 20px 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.82);
}

.ollivere-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.ollivere-tags span,
.ollivere-tags a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: rgba(226, 232, 240, 0.85);
  text-decoration: none;
  font-size: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ollivere-tags a:hover,
.ollivere-tags a:focus-visible {
  color: #f8fafc;
  border-color: rgba(94, 234, 212, 0.6);
  background: rgba(45, 212, 191, 0.18);
}

.ollivere-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ollivere-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 16px;
  border: 1px solid rgba(165, 180, 252, 0.4);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(45, 212, 191, 0.75));
  color: #0b1120;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  appearance: none;
}

.ollivere-btn:hover,
.ollivere-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(59, 130, 246, 0.35);
}

.ollivere-btn--ghost {
  background: rgba(15, 23, 42, 0.35);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.ollivere-btn--ghost:hover,
.ollivere-btn--ghost:focus-visible {
  color: #f8fafc;
  border-color: rgba(94, 234, 212, 0.65);
  background: rgba(94, 234, 212, 0.12);
}

.ollivere-btn--link {
  border-radius: 12px;
  padding: 10px 18px;
  background: rgba(94, 234, 212, 0.16);
  color: #67e8f9;
  border: 1px solid rgba(94, 234, 212, 0.35);
}

.ollivere-feature {
  position: relative;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.35));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.ollivere-feature::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto;
  height: 120%;
  background: radial-gradient(circle at top, rgba(129, 140, 248, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ollivere-feature:hover::before,
.ollivere-feature:focus-within::before {
  opacity: 1;
}

.ollivere-feature__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.75);
}

.ollivere-feature__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.8);
}

.ollivere-feature__content {
  display: flex;
  align-items: stretch;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.ollivere-feature__text {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ollivere-feature__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.9);
}

.ollivere-feature__meta a {
  color: #c4b5fd;
  text-decoration: none;
  font-weight: 600;
}

.ollivere-feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.ollivere-feature__media {
  flex: 0 0 220px;
  max-width: 260px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.55);
}

.ollivere-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ollivere-feature__preview {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.55);
}

.ollivere-feature__preview img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

@media (max-width: 960px) {
  .ollivere-feature__content {
    flex-direction: column;
  }

  .ollivere-feature__media {
    flex: 1 1 auto;
    max-width: none;
  }
}

.ollivere-marquee {
  margin: 40px 0;
  position: relative;
  border-block: 1px solid rgba(148, 163, 184, 0.16);
  padding: 18px 0;
  overflow: hidden;
}

.ollivere-marquee::before,
.ollivere-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  pointer-events: none;
}

.ollivere-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #050814, rgba(5, 8, 20, 0));
}

.ollivere-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #050814, rgba(5, 8, 20, 0));
}

.ollivere-marquee__track {
  display: flex;
  gap: 32px;
  animation: ollivere-marquee 26s linear infinite;
}

.ollivere-marquee__track span {
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

@keyframes ollivere-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ollivere-section {
  margin-top: 48px;
}

.ollivere-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.ollivere-section__head h2 {
  margin: 0;
  font-size: 1.6rem;
}

.ollivere-section__head a {
  color: rgba(224, 242, 254, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
}

.ollivere-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.ollivere-card {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.4));
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.4);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ollivere-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(circle at top, rgba(94, 234, 212, 0.16), transparent 65%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.ollivere-card:hover::before,
.ollivere-card:focus-within::before {
  opacity: 1;
}

.ollivere-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.ollivere-card p {
  margin: 0;
  color: rgba(226, 232, 240, 0.7);
  line-height: 1.5;
}

.ollivere-profile__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.ollivere-profile__card {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.45));
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.4);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.ollivere-profile__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(circle at top, rgba(129, 140, 248, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.ollivere-profile__card:hover,
.ollivere-profile__card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.45);
}

.ollivere-profile__card:hover::before,
.ollivere-profile__card:focus-within::before {
  opacity: 1;
}

.ollivere-profile__card h3 {
  position: relative;
  margin: 0;
  font-size: 1.2rem;
  z-index: 1;
}

.ollivere-profile__card p {
  position: relative;
  margin: 0;
  z-index: 1;
  color: rgba(226, 232, 240, 0.8);
  line-height: 1.6;
}

.ollivere-profile__list {
  position: relative;
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  list-style: disc;
  color: rgba(226, 232, 240, 0.82);
  z-index: 1;
}

.ollivere-profile__actions {
  margin-top: auto;
  display: flex;
}

.ollivere-profile__actions .ollivere-btn {
  margin-top: 8px;
  align-self: flex-start;
}

.ollivere-profile__card[data-span="2"],
.ollivere-profile__card--span-2 {
  grid-column: span 2;
}

.ollivere-profile__card[data-span="3"],
.ollivere-profile__card--span-3 {
  grid-column: span 3;
}

.ollivere-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ollivere-card__tags span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.12);
  color: #99f6e4;
  font-size: 0.75rem;
}

.ollivere-card__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ollivere-card__actions .ollivere-btn {
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 0.95rem;
}
.ollivere-card__actions .ollivere-btn--ghost {
  background: rgba(15, 23, 42, 0.45);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.45);
}
.ollivere-card__actions .ollivere-btn--ghost:hover,
.ollivere-card__actions .ollivere-btn--ghost:focus-visible {
  color: #f8fafc;
  border-color: rgba(94, 234, 212, 0.6);
  background: rgba(94, 234, 212, 0.12);
}

.ollivere-callout {
  padding: 32px;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.35));
  text-align: center;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.45);
}

.ollivere-callout h2 {
  margin: 0 0 12px;
  font-size: 1.7rem;
}

.ollivere-callout p {
  margin: 0 0 24px;
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.6;
}
.ollivere-callout .ollivere-actions {
  justify-content: center;
}

.footer-ollivere {
  margin-top: 60px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 28px;
  color: rgba(203, 213, 225, 0.7);
}

body.theme-variant-light .ollivere-hero {
  background: linear-gradient(135deg, rgba(var(--panel-rgb), 0.96), rgba(var(--card-rgb), 0.85));
  border: 1px solid rgba(var(--border-rgb), 0.28);
  box-shadow: var(--hero-shadow, 0 32px 80px rgba(15, 23, 42, 0.12));
}

body.theme-variant-light .ollivere-hero__media {
  background: rgba(var(--panel-rgb), 1);
  border: 1px solid rgba(var(--border-rgb), 0.35);
  box-shadow: var(--media-shadow, 0 26px 60px rgba(15, 23, 42, 0.15));
}

body.theme-variant-light .ollivere-hero__media--inline {
  background: rgba(var(--panel-rgb), 1);
}

body.theme-variant-light .ollivere-badge,
body.theme-variant-light .ollivere-feature__badge {
  background: rgba(var(--primary-rgb), 0.12);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  color: var(--primary);
}

body.theme-variant-light .ollivere-hero__lead {
  color: var(--muted);
}

body.theme-variant-light .ollivere-tags span,
body.theme-variant-light .ollivere-tags a {
  background: rgba(var(--border-rgb), 0.18);
  border: 1px solid rgba(var(--border-rgb), 0.4);
  color: var(--text);
}

body.theme-variant-light .ollivere-tags a:hover,
body.theme-variant-light .ollivere-tags a:focus-visible {
  background: rgba(var(--primary-rgb), 0.16);
  border-color: rgba(var(--primary-rgb), 0.4);
  color: var(--primary);
}

body.theme-variant-light .ollivere-btn {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.22), rgba(var(--primary-2-rgb, var(--primary-rgb)), 0.22));
  border: 1px solid rgba(var(--primary-rgb), 0.45);
  color: var(--primary-btn-text, #ffffff);
  box-shadow: var(--btn-shadow, 0 18px 46px rgba(var(--primary-rgb), 0.25));
}

body.theme-variant-light .ollivere-btn:hover,
body.theme-variant-light .ollivere-btn:focus-visible {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.32), rgba(var(--primary-2-rgb, var(--primary-rgb)), 0.32));
  border-color: rgba(var(--primary-rgb), 0.55);
  box-shadow: var(--btn-shadow-hover, 0 22px 56px rgba(var(--primary-rgb), 0.28));
  color: var(--primary-btn-text, #ffffff);
}

body.theme-variant-light .ollivere-btn--ghost {
  background: rgba(var(--primary-rgb), 0.08);
  border-color: rgba(var(--primary-rgb), 0.24);
  color: var(--ghost-text-color, var(--text));
}

body.theme-variant-light .ollivere-btn--ghost:hover,
body.theme-variant-light .ollivere-btn--ghost:focus-visible {
  background: rgba(var(--primary-rgb), 0.18);
  border-color: rgba(var(--primary-rgb), 0.36);
  color: var(--primary);
}

body.theme-variant-light .ollivere-feature {
  background: linear-gradient(150deg, rgba(var(--panel-rgb), 0.96), rgba(var(--card-rgb), 0.85));
  border: 1px solid rgba(var(--border-rgb), 0.28);
  box-shadow: var(--feature-shadow, 0 28px 70px rgba(15, 23, 42, 0.15));
}

body.theme-variant-light .ollivere-feature::before {
  background: radial-gradient(circle at top, rgba(var(--primary-rgb), 0.16), transparent 70%);
}

body.theme-variant-light .ollivere-feature__text p,
body.theme-variant-light .ollivere-feature__meta {
  color: var(--muted);
}

body.theme-variant-light .ollivere-feature__media {
  background: rgba(var(--panel-rgb), 1);
  border-color: rgba(var(--border-rgb), 0.35);
  box-shadow: var(--media-shadow, 0 22px 60px rgba(15, 23, 42, 0.16));
}

body.theme-variant-light .ollivere-grid .ollivere-card,
body.theme-variant-light .ollivere-profile__card {
  background: linear-gradient(150deg, rgba(var(--panel-rgb), 0.96), rgba(var(--card-rgb), 0.85));
  border: 1px solid rgba(var(--border-rgb), 0.3);
  box-shadow: var(--card-shadow, 0 26px 60px rgba(15, 23, 42, 0.12));
}

body.theme-variant-light .ollivere-card::before {
  background: radial-gradient(circle at top, rgba(var(--primary-rgb), 0.14), transparent 65%);
}

body.theme-variant-light .ollivere-profile__card::before {
  background: radial-gradient(circle at top, rgba(var(--primary-2-rgb, var(--primary-rgb)), 0.16), transparent 70%);
}

body.theme-variant-light .ollivere-profile__card:hover,
body.theme-variant-light .ollivere-profile__card:focus-within {
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: var(--card-shadow, 0 32px 70px rgba(15, 23, 42, 0.18));
}

body.theme-variant-light .ollivere-profile__card p,
body.theme-variant-light .ollivere-card p {
  color: var(--muted);
}

body.theme-variant-light .ollivere-profile__list {
  color: var(--text);
}

body.theme-variant-light .ollivere-card__tags span {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
}

body.theme-variant-light .ollivere-card__actions .ollivere-btn--ghost {
  background: rgba(var(--primary-rgb), 0.08);
  border-color: rgba(var(--primary-rgb), 0.24);
  color: var(--ghost-text-color, var(--text));
}

body.theme-variant-light .ollivere-card__actions .ollivere-btn--ghost:hover,
body.theme-variant-light .ollivere-card__actions .ollivere-btn--ghost:focus-visible {
  background: rgba(var(--primary-rgb), 0.18);
  border-color: rgba(var(--primary-rgb), 0.36);
  color: var(--primary);
}

body.theme-variant-light .ollivere-marquee {
  border-color: rgba(var(--border-rgb), 0.28);
}

body.theme-variant-light .ollivere-marquee::before {
  background: linear-gradient(90deg, rgba(var(--panel-rgb), 1), rgba(var(--panel-rgb), 0));
}

body.theme-variant-light .ollivere-marquee::after {
  background: linear-gradient(270deg, rgba(var(--panel-rgb), 1), rgba(var(--panel-rgb), 0));
}

body.theme-variant-light .ollivere-marquee__track span {
  color: var(--muted);
}

body.theme-variant-light .ollivere-callout {
  background: linear-gradient(135deg, rgba(var(--panel-rgb), 0.96), rgba(var(--card-rgb), 0.82));
  border: 1px solid rgba(var(--border-rgb), 0.32);
  box-shadow: var(--feature-shadow, 0 24px 60px rgba(15, 23, 42, 0.12));
}

body.theme-variant-light .ollivere-callout p {
  color: var(--muted);
}

body.theme-variant-light .footer-ollivere {
  border-top-color: rgba(var(--border-rgb), 0.3);
  color: var(--muted);
}

@media (max-width: 900px) {
  .ollivere-hero {
    padding: 36px;
  }
}

@media (max-width: 640px) {
  body.theme-ollivere .container {
    padding: 20px 16px 64px;
  }

  .header-ollivere {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .navbar {
    flex-wrap: wrap;
    gap: 14px;
  }

  .ollivere-hero {
    padding: 28px;
  }
}
