:root {
  --bg-base: #d9effa;
  --bg-shell: rgba(247, 251, 255, 0.68);
  --bg-sidebar: rgba(233, 246, 255, 0.84);
  --bg-panel: rgba(248, 252, 255, 0.72);
  --bg-panel-strong: rgba(255, 255, 255, 0.72);
  --bg-field: rgba(240, 249, 255, 0.92);
  --line-soft: rgba(117, 160, 186, 0.22);
  --line-strong: rgba(97, 148, 177, 0.34);
  --accent: #58b4dc;
  --accent-strong: #1d86b6;
  --accent-deep: #155e82;
  --text-main: #16354a;
  --text-strong: #0f2d40;
  --text-soft: #597688;
  --text-faint: #6e8a99;
  --success: #2f8c63;
  --warning: #b87f2f;
  --danger: #b34f58;
  --shadow-light: rgba(255, 255, 255, 0.82);
  --shadow-dark: rgba(111, 153, 179, 0.22);
  --depth: 4px;
  --radius-xl: 38px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --transition: 220ms ease;
  --body-background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 28%),
    radial-gradient(circle at right 12% top 14%, rgba(141, 204, 235, 0.26), transparent 22%),
    linear-gradient(135deg, #d7edf8 0%, #dceff8 35%, #d0e6f2 100%);
  --body-grid-background:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  --body-overlay-background:
    radial-gradient(circle at 78% 16%, rgba(79, 177, 218, 0.12), transparent 18%),
    radial-gradient(circle at 18% 86%, rgba(255, 255, 255, 0.34), transparent 24%);
  --sidebar-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(231, 246, 255, 0.9));
  --main-panel-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(243, 250, 255, 0.8));
  --panel-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(242, 250, 255, 0.76));
  --status-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(233, 246, 255, 0.88));
  --hero-surface:
    radial-gradient(circle at 82% 24%, rgba(120, 199, 233, 0.34), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(216, 240, 251, 0.92) 58%, rgba(198, 228, 242, 0.88));
  --hero-after-surface: radial-gradient(circle, rgba(255, 255, 255, 0.68), rgba(88, 180, 220, 0.1) 58%, transparent 72%);
  --nav-active-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(220, 242, 253, 0.92));
  --soft-button-surface: rgba(255, 255, 255, 0.42);
  --primary-button-surface: linear-gradient(135deg, #37a5d3, #1977a3);
  --field-surface: rgba(255, 255, 255, 0.38);
  --table-surface: rgba(255, 255, 255, 0.5);
  --table-head-surface: rgba(232, 245, 253, 0.97);
  --empty-state-surface: rgba(255, 255, 255, 0.32);
  --empty-state-border: rgba(118, 160, 186, 0.28);
  --module-tabs-surface: rgba(255, 255, 255, 0.38);
  --tab-hover-surface: rgba(255, 255, 255, 0.44);
  --tab-active-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(223, 242, 251, 0.92));
  --filter-chip-surface: rgba(255, 255, 255, 0.42);
  --floating-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(235, 247, 255, 0.92));
  --floating-header-surface: linear-gradient(180deg, rgba(247, 251, 255, 0.96), rgba(247, 251, 255, 0.9));
  --auth-overlay-surface: rgba(219, 237, 247, 0.76);
  --auth-card-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(235, 247, 255, 0.9));
  --auth-callout-surface:
    radial-gradient(circle at right top, rgba(120, 199, 233, 0.28), transparent 24%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.7), rgba(215, 239, 251, 0.86));
  --auth-panel-surface: rgba(255, 255, 255, 0.42);
  --mono-box-surface: rgba(255, 255, 255, 0.5);
  --icon-button-surface: rgba(255, 255, 255, 0.52);
  --icon-button-hover-surface: rgba(224, 244, 253, 0.9);
  --nav-icon-surface: rgba(255, 255, 255, 0.5);
  --nav-icon-active-surface: rgba(255, 255, 255, 0.88);
  --nav-icon-color: var(--accent-strong);
  --nav-icon-active-color: var(--accent-deep);
  --soft-icon-color: var(--accent-strong);
  --primary-icon-color: rgba(255, 255, 255, 0.94);
  --field-icon-color: var(--accent-strong);
  --surface-border: rgba(255, 255, 255, 0.62);
  --surface-border-strong: rgba(255, 255, 255, 0.72);
  --surface-border-heavy: rgba(255, 255, 255, 0.82);
  --surface-border-soft: rgba(118, 160, 186, 0.18);
  --table-row-even-surface: rgba(248, 252, 255, 0.34);
  --table-row-hover-surface: rgba(219, 241, 252, 0.46);
  --accent-border-soft: rgba(88, 180, 220, 0.26);
  --focus-ring-color: rgba(88, 180, 220, 0.42);
  --focus-ring-shadow: rgba(88, 180, 220, 0.08);
  --status-info-surface: rgba(88, 180, 220, 0.12);
  --status-info-border: rgba(88, 180, 220, 0.14);
  --icon-stroke-width: 1.8;
  --placeholder-color: rgba(95, 124, 141, 0.7);
  --panel-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 18px 42px rgba(125, 164, 186, 0.08);
  --stat-pill-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 14px 24px rgba(112, 157, 185, 0.08);
  --field-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 8px 18px rgba(132, 170, 192, 0.06);
  --nav-icon-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 16px rgba(124, 168, 194, 0.08);
  --soft-button-shadow:
    calc(var(--depth) * -1) calc(var(--depth) * -1) 10px rgba(255, 255, 255, 0.52),
    var(--depth) var(--depth) 10px rgba(122, 170, 196, 0.12);
  --primary-button-shadow:
    calc(var(--depth) * -1) calc(var(--depth) * -1) 10px rgba(255, 255, 255, 0.26),
    var(--depth) var(--depth) 12px rgba(55, 131, 170, 0.22);
  --tab-active-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(111, 163, 193, 0.12);
  --icon-button-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 8px 18px rgba(132, 170, 192, 0.08);
  --floating-card-shadow:
    calc(var(--depth) * -1) calc(var(--depth) * -1) 22px rgba(255, 255, 255, 0.8),
    var(--depth) var(--depth) 22px rgba(104, 151, 178, 0.18);
}

body[data-visual-style="grafito-nocturno"] {
  --bg-base: #101721;
  --bg-shell: rgba(17, 24, 34, 0.84);
  --bg-sidebar: rgba(19, 27, 39, 0.9);
  --bg-panel: rgba(24, 34, 47, 0.88);
  --bg-panel-strong: rgba(29, 40, 55, 0.92);
  --bg-field: rgba(18, 29, 41, 0.92);
  --line-soft: rgba(130, 157, 182, 0.18);
  --line-strong: rgba(130, 178, 212, 0.28);
  --accent: #5bc7ff;
  --accent-strong: #83daff;
  --accent-deep: #b6eeff;
  --text-main: #edf4fb;
  --text-strong: #f6fbff;
  --text-soft: #abc0d3;
  --text-faint: #7f96a9;
  --success: #6ed39b;
  --warning: #efc270;
  --danger: #f08a96;
  --shadow-light: rgba(91, 131, 159, 0.08);
  --shadow-dark: rgba(0, 0, 0, 0.42);
  --body-background:
    radial-gradient(circle at top left, rgba(82, 137, 173, 0.14), transparent 28%),
    radial-gradient(circle at right 12% top 14%, rgba(45, 98, 131, 0.18), transparent 22%),
    linear-gradient(135deg, #09111a 0%, #111a25 35%, #152232 100%);
  --body-grid-background:
    linear-gradient(rgba(181, 214, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181, 214, 235, 0.06) 1px, transparent 1px);
  --body-overlay-background:
    radial-gradient(circle at 80% 12%, rgba(83, 180, 255, 0.12), transparent 18%),
    radial-gradient(circle at 14% 86%, rgba(130, 175, 214, 0.12), transparent 24%);
  --sidebar-surface: linear-gradient(180deg, rgba(28, 39, 53, 0.96), rgba(16, 24, 36, 0.98));
  --main-panel-surface: linear-gradient(180deg, rgba(22, 31, 44, 0.92), rgba(16, 24, 35, 0.95));
  --panel-surface: linear-gradient(180deg, rgba(34, 46, 63, 0.88), rgba(22, 32, 44, 0.94));
  --status-surface: linear-gradient(135deg, rgba(30, 43, 58, 0.94), rgba(20, 30, 42, 0.98));
  --hero-surface:
    radial-gradient(circle at 82% 24%, rgba(82, 163, 215, 0.22), transparent 26%),
    linear-gradient(145deg, rgba(36, 50, 69, 0.96), rgba(24, 34, 46, 0.98) 58%, rgba(18, 27, 38, 1));
  --hero-after-surface: radial-gradient(circle, rgba(132, 196, 232, 0.22), rgba(57, 121, 161, 0.12) 58%, transparent 72%);
  --nav-active-surface: linear-gradient(135deg, rgba(45, 64, 88, 0.94), rgba(26, 41, 57, 0.98));
  --soft-button-surface: rgba(255, 255, 255, 0.05);
  --primary-button-surface: linear-gradient(135deg, #257ca6, #1d4f72);
  --field-surface: rgba(255, 255, 255, 0.04);
  --table-surface: rgba(14, 22, 32, 0.62);
  --table-head-surface: rgba(17, 28, 41, 0.96);
  --empty-state-surface: rgba(255, 255, 255, 0.04);
  --empty-state-border: rgba(141, 173, 204, 0.2);
  --module-tabs-surface: rgba(255, 255, 255, 0.04);
  --tab-hover-surface: rgba(124, 180, 219, 0.1);
  --tab-active-surface: linear-gradient(180deg, rgba(49, 70, 94, 0.96), rgba(31, 47, 65, 0.98));
  --filter-chip-surface: rgba(255, 255, 255, 0.04);
  --floating-surface: linear-gradient(180deg, rgba(32, 44, 60, 0.98), rgba(21, 31, 43, 1));
  --floating-header-surface: linear-gradient(180deg, rgba(27, 39, 53, 0.98), rgba(22, 33, 46, 0.96));
  --auth-overlay-surface: rgba(7, 12, 18, 0.76);
  --auth-card-surface: linear-gradient(180deg, rgba(28, 39, 54, 0.98), rgba(22, 32, 45, 1));
  --auth-callout-surface:
    radial-gradient(circle at right top, rgba(74, 144, 196, 0.22), transparent 24%),
    linear-gradient(160deg, rgba(33, 46, 63, 0.96), rgba(20, 31, 43, 1));
  --auth-panel-surface: rgba(255, 255, 255, 0.04);
  --mono-box-surface: rgba(255, 255, 255, 0.06);
  --icon-button-surface: rgba(255, 255, 255, 0.06);
  --icon-button-hover-surface: rgba(98, 158, 201, 0.16);
  --nav-icon-surface: rgba(255, 255, 255, 0.06);
  --nav-icon-active-surface: rgba(104, 176, 219, 0.14);
  --nav-icon-color: #9ae6ff;
  --nav-icon-active-color: #c6f4ff;
  --soft-icon-color: #94e1ff;
  --primary-icon-color: #ebf8ff;
  --field-icon-color: #9ddfff;
  --surface-border: rgba(131, 159, 183, 0.18);
  --surface-border-strong: rgba(131, 159, 183, 0.22);
  --surface-border-heavy: rgba(131, 159, 183, 0.26);
  --surface-border-soft: rgba(131, 159, 183, 0.16);
  --table-row-even-surface: rgba(255, 255, 255, 0.02);
  --table-row-hover-surface: rgba(111, 184, 228, 0.08);
  --accent-border-soft: rgba(117, 199, 247, 0.2);
  --focus-ring-color: rgba(111, 196, 249, 0.34);
  --focus-ring-shadow: rgba(111, 196, 249, 0.1);
  --status-info-surface: rgba(91, 199, 255, 0.14);
  --status-info-border: rgba(91, 199, 255, 0.18);
  --icon-stroke-width: 1.7;
  --placeholder-color: rgba(171, 192, 211, 0.58);
  --panel-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 42px rgba(0, 0, 0, 0.34);
  --stat-pill-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 24px rgba(0, 0, 0, 0.28);
  --field-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 18px rgba(0, 0, 0, 0.22);
  --nav-icon-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 16px rgba(0, 0, 0, 0.24);
  --soft-button-shadow:
    calc(var(--depth) * -1) calc(var(--depth) * -1) 10px rgba(57, 78, 99, 0.08),
    var(--depth) var(--depth) 14px rgba(0, 0, 0, 0.32);
  --primary-button-shadow:
    calc(var(--depth) * -1) calc(var(--depth) * -1) 12px rgba(88, 142, 179, 0.1),
    var(--depth) var(--depth) 16px rgba(0, 0, 0, 0.36);
  --tab-active-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.28);
  --icon-button-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 18px rgba(0, 0, 0, 0.26);
  --floating-card-shadow:
    calc(var(--depth) * -1) calc(var(--depth) * -1) 18px rgba(69, 94, 118, 0.08),
    var(--depth) var(--depth) 24px rgba(0, 0, 0, 0.4);
}

body[data-visual-style="arena-editorial"] {
  --bg-base: #e8edf6;
  --bg-shell: rgba(244, 247, 252, 0.84);
  --bg-sidebar: rgba(241, 244, 250, 0.92);
  --bg-panel: rgba(245, 247, 252, 0.9);
  --bg-panel-strong: rgba(248, 250, 255, 0.96);
  --bg-field: rgba(239, 243, 249, 0.98);
  --line-soft: rgba(157, 166, 194, 0.14);
  --line-strong: rgba(141, 151, 189, 0.24);
  --accent: #8578ff;
  --accent-strong: #6a5cff;
  --accent-deep: #5344da;
  --text-main: #5f6787;
  --text-strong: #4e5675;
  --text-soft: #7e87a8;
  --text-faint: #99a2c0;
  --success: #5c9c7f;
  --warning: #c69c57;
  --danger: #c27284;
  --shadow-light: rgba(255, 255, 255, 0.96);
  --shadow-dark: rgba(196, 204, 224, 0.52);
  --body-background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), transparent 30%),
    radial-gradient(circle at right 18% top 12%, rgba(150, 137, 255, 0.12), transparent 20%),
    linear-gradient(135deg, #e7ecf5 0%, #eef2f9 44%, #e3e9f3 100%);
  --body-grid-background:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  --body-overlay-background:
    radial-gradient(circle at 79% 18%, rgba(132, 118, 255, 0.08), transparent 18%),
    radial-gradient(circle at 16% 84%, rgba(255, 255, 255, 0.34), transparent 24%);
  --sidebar-surface: linear-gradient(180deg, rgba(248, 250, 255, 0.96), rgba(239, 243, 250, 0.96));
  --main-panel-surface: linear-gradient(180deg, rgba(248, 250, 255, 0.72), rgba(240, 244, 251, 0.95));
  --panel-surface: linear-gradient(180deg, rgba(248, 250, 255, 0.92), rgba(241, 244, 251, 0.96));
  --status-surface: linear-gradient(135deg, rgba(248, 250, 255, 0.96), rgba(239, 243, 250, 0.98));
  --hero-surface:
    radial-gradient(circle at 80% 24%, rgba(130, 117, 255, 0.14), transparent 24%),
    linear-gradient(145deg, rgba(248, 250, 255, 0.98), rgba(239, 243, 250, 0.98) 58%, rgba(233, 238, 248, 0.96));
  --hero-after-surface: radial-gradient(circle, rgba(255, 255, 255, 0.76), rgba(120, 107, 255, 0.1) 58%, transparent 72%);
  --nav-active-surface: linear-gradient(135deg, rgba(248, 250, 255, 0.96), rgba(238, 242, 249, 0.98));
  --soft-button-surface: rgba(244, 247, 252, 0.9);
  --primary-button-surface: linear-gradient(135deg, #8778ff, #5d49f5);
  --field-surface: rgba(240, 244, 250, 0.98);
  --table-surface: rgba(246, 248, 252, 0.86);
  --table-head-surface: rgba(241, 244, 250, 0.98);
  --empty-state-surface: rgba(247, 249, 253, 0.78);
  --empty-state-border: rgba(195, 202, 223, 0.34);
  --module-tabs-surface: rgba(244, 247, 252, 0.9);
  --tab-hover-surface: rgba(248, 250, 255, 0.96);
  --tab-active-surface: linear-gradient(180deg, rgba(249, 251, 255, 0.98), rgba(239, 243, 250, 0.98));
  --filter-chip-surface: rgba(245, 248, 252, 0.92);
  --floating-surface: linear-gradient(180deg, rgba(248, 250, 255, 0.96), rgba(239, 243, 250, 0.98));
  --floating-header-surface: linear-gradient(180deg, rgba(250, 251, 255, 1), rgba(244, 247, 252, 0.96));
  --auth-overlay-surface: rgba(233, 238, 247, 0.84);
  --auth-card-surface: linear-gradient(180deg, rgba(248, 250, 255, 0.96), rgba(239, 243, 250, 0.98));
  --auth-callout-surface:
    radial-gradient(circle at right top, rgba(132, 118, 255, 0.12), transparent 24%),
    linear-gradient(160deg, rgba(248, 250, 255, 0.98), rgba(238, 243, 251, 0.96));
  --auth-panel-surface: rgba(246, 248, 252, 0.9);
  --mono-box-surface: rgba(245, 248, 252, 0.94);
  --icon-button-surface: rgba(246, 248, 252, 0.92);
  --icon-button-hover-surface: rgba(250, 251, 255, 0.98);
  --nav-icon-surface: rgba(246, 248, 252, 0.94);
  --nav-icon-active-surface: rgba(249, 250, 255, 0.98);
  --nav-icon-color: #9ea8c8;
  --nav-icon-active-color: #6a5cff;
  --soft-icon-color: #8f99bd;
  --primary-icon-color: rgba(255, 255, 255, 0.98);
  --field-icon-color: #8f99bd;
  --surface-border: rgba(255, 255, 255, 0.84);
  --surface-border-strong: rgba(255, 255, 255, 0.92);
  --surface-border-heavy: rgba(255, 255, 255, 0.96);
  --surface-border-soft: rgba(194, 201, 222, 0.24);
  --table-row-even-surface: rgba(250, 251, 255, 0.58);
  --table-row-hover-surface: rgba(239, 243, 251, 0.88);
  --accent-border-soft: rgba(106, 92, 255, 0.18);
  --focus-ring-color: rgba(106, 92, 255, 0.28);
  --focus-ring-shadow: rgba(106, 92, 255, 0.08);
  --status-info-surface: rgba(106, 92, 255, 0.08);
  --status-info-border: rgba(106, 92, 255, 0.12);
  --icon-stroke-width: 1.72;
  --placeholder-color: rgba(155, 163, 191, 0.82);
  --panel-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    -14px -14px 30px rgba(255, 255, 255, 0.92),
    14px 14px 30px rgba(197, 205, 223, 0.52);
  --stat-pill-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    -8px -8px 18px rgba(255, 255, 255, 0.9),
    8px 8px 18px rgba(198, 205, 222, 0.44);
  --field-shadow:
    inset -6px -6px 12px rgba(255, 255, 255, 0.92),
    inset 6px 6px 12px rgba(199, 207, 224, 0.42);
  --nav-icon-shadow:
    -6px -6px 12px rgba(255, 255, 255, 0.92),
    6px 6px 12px rgba(198, 205, 222, 0.4);
  --soft-button-shadow:
    calc(var(--depth) * -1.6) calc(var(--depth) * -1.6) 16px rgba(255, 255, 255, 0.94),
    calc(var(--depth) * 1.4) calc(var(--depth) * 1.4) 16px rgba(197, 205, 223, 0.5);
  --primary-button-shadow:
    calc(var(--depth) * -1.2) calc(var(--depth) * -1.2) 14px rgba(255, 255, 255, 0.28),
    calc(var(--depth) * 1.6) calc(var(--depth) * 1.6) 18px rgba(101, 86, 244, 0.26);
  --tab-active-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    -6px -6px 14px rgba(255, 255, 255, 0.82),
    6px 6px 14px rgba(198, 205, 223, 0.4);
  --icon-button-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    -6px -6px 14px rgba(255, 255, 255, 0.84),
    6px 6px 14px rgba(198, 205, 223, 0.38);
  --floating-card-shadow:
    calc(var(--depth) * -3.2) calc(var(--depth) * -3.2) 34px rgba(255, 255, 255, 0.96),
    calc(var(--depth) * 3.2) calc(var(--depth) * 3.2) 34px rgba(195, 203, 223, 0.54);
}

body[data-visual-style="bosque-sereno"] {
  --bg-base: #a8dcff;
  --bg-shell: rgba(235, 247, 255, 0.2);
  --bg-sidebar: rgba(235, 247, 255, 0.16);
  --bg-panel: rgba(255, 255, 255, 0.2);
  --bg-panel-strong: rgba(255, 255, 255, 0.28);
  --bg-field: rgba(255, 255, 255, 0.22);
  --line-soft: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.28);
  --accent: #33a0ff;
  --accent-strong: #0f84ee;
  --accent-deep: #065ec0;
  --text-main: #174a6d;
  --text-strong: #103d5c;
  --text-soft: #5d84a4;
  --text-faint: #7f9cb4;
  --success: #31c07b;
  --warning: #d4a24a;
  --danger: #ed5e5e;
  --shadow-light: rgba(255, 255, 255, 0.34);
  --shadow-dark: rgba(45, 129, 181, 0.18);
  --body-background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.36), transparent 26%),
    radial-gradient(circle at right 15% top 20%, rgba(255, 255, 255, 0.22), transparent 18%),
    radial-gradient(circle at left -8% bottom 15%, rgba(26, 162, 255, 0.4), transparent 28%),
    linear-gradient(135deg, #bde8ff 0%, #a9dcff 38%, #98d2fb 100%);
  --body-grid-background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  --body-overlay-background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.18), transparent 18%),
    radial-gradient(circle at 12% 85%, rgba(41, 154, 244, 0.24), transparent 24%);
  --sidebar-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.16));
  --main-panel-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.12));
  --panel-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.18));
  --status-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.18));
  --hero-surface:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.2), transparent 22%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.18) 58%, rgba(212, 239, 255, 0.16));
  --hero-after-surface: radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(46, 154, 244, 0.12) 58%, transparent 72%);
  --nav-active-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.24));
  --soft-button-surface: rgba(255, 255, 255, 0.22);
  --primary-button-surface: linear-gradient(135deg, #1f8fff, #056ed1);
  --field-surface: rgba(255, 255, 255, 0.24);
  --table-surface: rgba(255, 255, 255, 0.18);
  --table-head-surface: rgba(255, 255, 255, 0.28);
  --empty-state-surface: rgba(255, 255, 255, 0.18);
  --empty-state-border: rgba(255, 255, 255, 0.26);
  --module-tabs-surface: rgba(255, 255, 255, 0.18);
  --tab-hover-surface: rgba(255, 255, 255, 0.22);
  --tab-active-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.26));
  --filter-chip-surface: rgba(255, 255, 255, 0.2);
  --floating-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.18));
  --floating-header-surface: linear-gradient(180deg, rgba(250, 253, 255, 0.34), rgba(243, 250, 255, 0.22));
  --auth-overlay-surface: rgba(144, 207, 247, 0.42);
  --auth-card-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.18));
  --auth-callout-surface:
    radial-gradient(circle at right top, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.16));
  --auth-panel-surface: rgba(255, 255, 255, 0.16);
  --mono-box-surface: rgba(255, 255, 255, 0.22);
  --icon-button-surface: rgba(255, 255, 255, 0.26);
  --icon-button-hover-surface: rgba(255, 255, 255, 0.38);
  --nav-icon-surface: rgba(255, 255, 255, 0.26);
  --nav-icon-active-surface: rgba(255, 255, 255, 0.4);
  --nav-icon-color: #0f84ee;
  --nav-icon-active-color: #065ec0;
  --soft-icon-color: #0575d6;
  --primary-icon-color: rgba(255, 255, 255, 0.98);
  --field-icon-color: #2d7ebd;
  --surface-border: rgba(255, 255, 255, 0.26);
  --surface-border-strong: rgba(255, 255, 255, 0.34);
  --surface-border-heavy: rgba(255, 255, 255, 0.42);
  --surface-border-soft: rgba(255, 255, 255, 0.18);
  --table-row-even-surface: rgba(255, 255, 255, 0.08);
  --table-row-hover-surface: rgba(255, 255, 255, 0.16);
  --accent-border-soft: rgba(15, 132, 238, 0.12);
  --focus-ring-color: rgba(15, 132, 238, 0.24);
  --focus-ring-shadow: rgba(15, 132, 238, 0.08);
  --status-info-surface: rgba(15, 132, 238, 0.1);
  --status-info-border: rgba(15, 132, 238, 0.12);
  --icon-stroke-width: 1.76;
  --placeholder-color: rgba(88, 120, 145, 0.78);
  --panel-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    0 24px 44px rgba(54, 137, 189, 0.18);
  --stat-pill-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 18px 32px rgba(58, 141, 192, 0.14);
  --field-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    0 18px 32px rgba(67, 145, 194, 0.12);
  --nav-icon-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 12px 22px rgba(53, 138, 192, 0.16);
  --soft-button-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 14px 28px rgba(55, 140, 190, 0.16);
  --primary-button-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 16px 30px rgba(24, 117, 201, 0.28);
  --tab-active-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    0 14px 28px rgba(55, 140, 190, 0.16);
  --icon-button-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    0 12px 24px rgba(58, 141, 192, 0.14);
  --floating-card-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 28px 60px rgba(48, 130, 182, 0.2);
}

body[data-visual-style="wallet-lavanda"] {
  --bg-base: #dbe2f3;
  --bg-shell: rgba(246, 248, 255, 0.88);
  --bg-sidebar: rgba(246, 248, 255, 0.94);
  --bg-panel: rgba(248, 250, 255, 0.94);
  --bg-panel-strong: rgba(255, 255, 255, 0.98);
  --bg-field: rgba(245, 247, 255, 0.98);
  --line-soft: rgba(174, 182, 212, 0.14);
  --line-strong: rgba(158, 167, 201, 0.24);
  --accent: #7a63ff;
  --accent-strong: #5f45f6;
  --accent-deep: #4125d2;
  --text-main: #4a4667;
  --text-strong: #262145;
  --text-soft: #8d94b6;
  --text-faint: #a4abca;
  --success: #1fcf76;
  --warning: #d7a542;
  --danger: #d86b86;
  --shadow-light: rgba(255, 255, 255, 0.98);
  --shadow-dark: rgba(188, 195, 221, 0.52);
  --depth: 4px;
  --radius-xl: 42px;
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 18px;
  --body-background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.98), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(210, 220, 255, 0.28), transparent 22%),
    radial-gradient(circle at 84% 78%, rgba(137, 111, 255, 0.08), transparent 24%),
    linear-gradient(135deg, #dfe5f4 0%, #d8e0f2 38%, #cfd8ee 100%);
  --body-grid-background:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  --body-overlay-background:
    radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.24), transparent 18%),
    radial-gradient(circle at 16% 86%, rgba(120, 96, 255, 0.08), transparent 22%);
  --sidebar-surface: linear-gradient(180deg, rgba(248, 250, 255, 0.98), rgba(239, 243, 253, 0.96));
  --main-panel-surface: linear-gradient(180deg, rgba(248, 250, 255, 0.82), rgba(240, 244, 253, 0.96));
  --panel-surface: linear-gradient(180deg, rgba(250, 251, 255, 0.98), rgba(241, 244, 253, 0.98));
  --status-surface: linear-gradient(135deg, rgba(250, 251, 255, 0.98), rgba(240, 244, 253, 0.98));
  --hero-surface:
    radial-gradient(circle at 78% 20%, rgba(123, 99, 255, 0.12), transparent 22%),
    linear-gradient(145deg, rgba(250, 251, 255, 0.99), rgba(242, 245, 253, 0.98) 58%, rgba(235, 239, 250, 0.98));
  --hero-after-surface: radial-gradient(circle, rgba(255, 255, 255, 0.88), rgba(123, 99, 255, 0.12) 60%, transparent 74%);
  --nav-active-surface: linear-gradient(135deg, rgba(251, 252, 255, 0.99), rgba(239, 243, 252, 0.98));
  --soft-button-surface: linear-gradient(180deg, rgba(250, 251, 255, 0.98), rgba(240, 244, 253, 0.98));
  --primary-button-surface: linear-gradient(135deg, #7c60ff, #5638eb);
  --field-surface: rgba(245, 247, 255, 0.98);
  --table-surface: rgba(248, 250, 255, 0.94);
  --table-head-surface: rgba(242, 245, 253, 0.99);
  --empty-state-surface: rgba(247, 249, 255, 0.88);
  --empty-state-border: rgba(199, 206, 228, 0.28);
  --module-tabs-surface: rgba(246, 248, 255, 0.96);
  --tab-hover-surface: rgba(250, 251, 255, 0.98);
  --tab-active-surface: linear-gradient(180deg, rgba(251, 252, 255, 1), rgba(241, 244, 253, 0.98));
  --filter-chip-surface: rgba(247, 249, 255, 0.96);
  --floating-surface: linear-gradient(180deg, rgba(250, 251, 255, 0.99), rgba(241, 244, 253, 0.98));
  --floating-header-surface: linear-gradient(180deg, rgba(252, 253, 255, 1), rgba(245, 247, 254, 0.98));
  --auth-overlay-surface: rgba(227, 232, 246, 0.84);
  --auth-card-surface: linear-gradient(180deg, rgba(250, 251, 255, 0.99), rgba(241, 244, 253, 0.98));
  --auth-callout-surface:
    radial-gradient(circle at right top, rgba(123, 99, 255, 0.12), transparent 24%),
    linear-gradient(160deg, rgba(250, 251, 255, 1), rgba(241, 244, 253, 0.98));
  --auth-panel-surface: rgba(247, 249, 255, 0.96);
  --mono-box-surface: rgba(246, 248, 255, 0.98);
  --icon-button-surface: rgba(248, 250, 255, 0.98);
  --icon-button-hover-surface: rgba(252, 253, 255, 1);
  --nav-icon-surface: rgba(248, 250, 255, 0.98);
  --nav-icon-active-surface: rgba(251, 252, 255, 1);
  --nav-icon-color: #8f96be;
  --nav-icon-active-color: #5f45f6;
  --soft-icon-color: #8b92b5;
  --primary-icon-color: rgba(255, 255, 255, 0.98);
  --field-icon-color: #8f96be;
  --surface-border: rgba(255, 255, 255, 0.92);
  --surface-border-strong: rgba(255, 255, 255, 0.98);
  --surface-border-heavy: rgba(255, 255, 255, 1);
  --surface-border-soft: rgba(194, 201, 225, 0.22);
  --table-row-even-surface: rgba(251, 252, 255, 0.62);
  --table-row-hover-surface: rgba(243, 246, 254, 0.96);
  --accent-border-soft: rgba(95, 69, 246, 0.16);
  --focus-ring-color: rgba(95, 69, 246, 0.24);
  --focus-ring-shadow: rgba(95, 69, 246, 0.08);
  --status-info-surface: rgba(95, 69, 246, 0.08);
  --status-info-border: rgba(95, 69, 246, 0.12);
  --icon-stroke-width: 1.74;
  --placeholder-color: rgba(164, 171, 202, 0.9);
  --panel-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    -18px -18px 36px rgba(255, 255, 255, 0.96),
    18px 18px 36px rgba(194, 201, 224, 0.54);
  --stat-pill-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    -10px -10px 20px rgba(255, 255, 255, 0.94),
    10px 10px 20px rgba(193, 201, 224, 0.44);
  --field-shadow:
    inset -6px -6px 12px rgba(255, 255, 255, 0.94),
    inset 6px 6px 12px rgba(201, 208, 227, 0.36);
  --nav-icon-shadow:
    -7px -7px 14px rgba(255, 255, 255, 0.94),
    7px 7px 14px rgba(196, 203, 223, 0.38);
  --soft-button-shadow:
    calc(var(--depth) * -1.8) calc(var(--depth) * -1.8) 18px rgba(255, 255, 255, 0.98),
    calc(var(--depth) * 1.5) calc(var(--depth) * 1.5) 18px rgba(194, 202, 224, 0.42);
  --primary-button-shadow:
    calc(var(--depth) * -1.2) calc(var(--depth) * -1.2) 14px rgba(255, 255, 255, 0.24),
    calc(var(--depth) * 1.8) calc(var(--depth) * 1.8) 22px rgba(91, 67, 241, 0.3);
  --tab-active-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    -8px -8px 16px rgba(255, 255, 255, 0.88),
    8px 8px 16px rgba(195, 202, 223, 0.36);
  --icon-button-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    -8px -8px 16px rgba(255, 255, 255, 0.88),
    8px 8px 16px rgba(195, 202, 223, 0.34);
  --floating-card-shadow:
    calc(var(--depth) * -3.4) calc(var(--depth) * -3.4) 36px rgba(255, 255, 255, 0.98),
    calc(var(--depth) * 3.4) calc(var(--depth) * 3.4) 36px rgba(191, 199, 221, 0.56);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-size: 15px;
  font-family: Aptos, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--body-background);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background: var(--body-grid-background);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.34), transparent 75%);
  opacity: 0.28;
}

body::after {
  background: var(--body-overlay-background);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: none;
  cursor: pointer;
  color: inherit;
}

.app-shell {
  width: min(1560px, calc(100vw - 36px));
  min-height: calc(100vh - 36px);
  margin: 18px auto;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.sidebar,
.main-panel,
.auth-card,
.status-banner,
.hero-card {
  box-shadow:
    calc(var(--depth) * -1) calc(var(--depth) * -1) 18px var(--shadow-light),
    var(--depth) var(--depth) 18px var(--shadow-dark);
}

.sidebar {
  position: sticky;
  top: 18px;
  min-height: calc(100vh - 36px);
  padding: 28px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-radius: var(--radius-xl);
  background: var(--sidebar-surface), var(--bg-sidebar);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(18px);
}

.brand-block {
  padding: 6px 8px 10px;
}

.brand-block h1,
.topbar h2,
.hero-card h3,
.panel-header h3,
.report-card h3 {
  margin: 0;
  letter-spacing: -0.035em;
}

.brand-block h1 {
  max-width: 10ch;
  font-size: 1.9rem;
  line-height: 0.96;
}

.brand-copy,
.mini-copy,
.support-copy,
.table-meta {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.eyebrow,
.mini-label,
.chip-label {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  width: 100%;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 16px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid transparent;
  transition:
    transform var(--transition),
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.nav-item:hover {
  color: var(--text-main);
  transform: translateX(3px);
}

.nav-item.is-active {
  color: var(--accent-deep);
  background: var(--nav-active-surface);
  border-color: var(--accent-border-soft);
  box-shadow:
    inset calc(var(--depth) * -1) calc(var(--depth) * -1) 8px rgba(255, 255, 255, 0.7),
    inset var(--depth) var(--depth) 8px rgba(122, 170, 196, 0.14);
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow:
    inset calc(var(--depth) * -1) calc(var(--depth) * -1) 10px rgba(255, 255, 255, 0.52),
    inset var(--depth) var(--depth) 10px rgba(122, 170, 196, 0.12);
}

.main-panel {
  min-height: calc(100vh - 36px);
  padding: 22px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 40px;
  background: var(--main-panel-surface), var(--bg-shell);
  border: 1px solid var(--surface-border-strong);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: 2px 4px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.topbar h2 {
  font-size: clamp(1.6rem, 3.3vw, 2.15rem);
  line-height: 0.98;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.soft-button,
.primary-button,
.ghost-button {
  min-height: 46px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 15px;
  font-size: 0.88rem;
  font-weight: 600;
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    color var(--transition);
}

.soft-button,
.ghost-button {
  background: var(--soft-button-surface);
  border: 1px solid var(--surface-border-strong);
  box-shadow: var(--soft-button-shadow);
}

.primary-button {
  color: #fff;
  background: var(--primary-button-surface);
  box-shadow: var(--primary-button-shadow);
}

.soft-button:hover,
.ghost-button:hover,
.primary-button:hover,
.file-button:hover {
  transform: translateY(-1px);
}

.file-button {
  position: relative;
  overflow: hidden;
}

.status-banner {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 24px;
  background: var(--status-surface), var(--bg-panel);
  border: 1px solid var(--surface-border-strong);
}

.status-banner strong {
  display: block;
  margin-bottom: 4px;
}

.content-view {
  display: grid;
  gap: 22px;
  animation: float-in 360ms ease;
}

.view-grid,
.split-grid,
.triple-grid,
.cards-grid {
  display: grid;
  gap: 18px;
}

.view-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
}

.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.triple-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.panel,
.report-card {
  padding: 24px;
  border-radius: 28px;
  background: var(--panel-surface), var(--bg-panel);
  border: 1px solid var(--surface-border-strong);
  box-shadow: var(--panel-shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 34px;
  border: 1px solid var(--surface-border-strong);
  background: var(--hero-surface), var(--bg-panel);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -64px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--hero-after-surface);
  pointer-events: none;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-card .headline {
  max-width: 11ch;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 0.9;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-pill {
  padding: 14px 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--stat-pill-shadow);
}

.stat-pill strong {
  display: block;
  font-size: 1.42rem;
  letter-spacing: -0.04em;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-header h3,
.report-card h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.report-card > .support-copy,
.report-card > p {
  margin: 6px 0 14px;
}

.stack {
  display: grid;
  gap: 14px;
}

.form-grid,
.field-grid {
  display: grid;
  gap: 14px;
}

.form-grid.two,
.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three,
.field-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  border-radius: 18px;
  background: var(--field-surface);
  border: 1px solid var(--surface-border-strong);
  box-shadow: var(--field-shadow);
}

.field > span,
.filter-chip > span {
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

.field-label-row,
.data-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-label-text,
.data-label-text,
.button-label,
.nav-label {
  min-width: 0;
}

.nav-icon,
.button-icon,
.tab-icon,
.field-icon,
.filter-icon,
.data-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.nav-icon svg,
.button-icon svg,
.tab-icon svg,
.field-icon svg,
.filter-icon svg,
.data-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: var(--icon-stroke-width);
}

.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  color: var(--nav-icon-color);
  background: var(--nav-icon-surface);
  box-shadow: var(--nav-icon-shadow);
}

.nav-item.is-active .nav-icon {
  color: var(--nav-icon-active-color);
  background: var(--nav-icon-active-surface);
}

.button-icon,
.tab-icon {
  color: currentColor;
}

.soft-button .button-icon,
.ghost-button .button-icon,
.file-button .button-icon {
  color: var(--soft-icon-color);
}

.primary-button .button-icon {
  color: var(--primary-icon-color);
}

.field-icon,
.filter-icon,
.data-icon {
  color: var(--field-icon-color);
  opacity: 0.88;
}

textarea,
select,
input[type="text"],
input[type="date"],
input[type="email"],
input[type="number"],
input[type="password"] {
  width: 100%;
  padding: 12px 0 2px;
  font-size: 0.92rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text-main);
  outline: none;
}

textarea::placeholder,
input::placeholder {
  color: var(--placeholder-color);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.field:focus-within {
  border-color: var(--focus-ring-color);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 4px var(--focus-ring-shadow);
}

.inline-actions,
.table-actions,
.pill-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.table-wrap {
  overflow: auto;
  border-radius: 20px;
  border: 1px solid var(--surface-border-soft);
  background: var(--table-surface);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px 16px;
  background: var(--table-head-surface);
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  border-bottom: 1px solid rgba(118, 160, 186, 0.16);
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(118, 160, 186, 0.12);
  vertical-align: top;
}

tbody tr:nth-child(even) {
  background: var(--table-row-even-surface);
}

tbody tr:hover {
  background: var(--table-row-hover-surface);
}

.grade-matrix-wrap {
  max-height: 72vh;
}

.grade-matrix {
  min-width: 920px;
}

.grade-matrix thead th {
  white-space: nowrap;
}

.grade-matrix th,
.grade-matrix td {
  padding: 8px 6px;
}

.grade-matrix thead tr:first-child th {
  top: 0;
  z-index: 4;
}

.grade-matrix thead tr:nth-child(2) th {
  top: 52px;
  z-index: 3;
}

.grade-group-head,
.grade-session-head {
  text-transform: none;
  letter-spacing: normal;
}

.grade-group-head {
  min-width: 94px;
  padding: 8px 4px;
  text-align: center;
  vertical-align: middle;
  background: rgba(226, 242, 252, 0.98);
}

.grade-group-label {
  display: grid;
  gap: 2px;
  width: 100%;
  justify-items: center;
  text-align: center;
}

.grade-group-label strong {
  font-size: 0.8rem;
  color: var(--text-main);
}

.grade-group-label span {
  font-size: 0.64rem;
  line-height: 1.2;
  color: var(--text-soft);
}

.grade-session-head {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  padding: 4px 1px;
  background: rgba(239, 248, 254, 0.98);
}

.grade-session-head.is-empty {
  color: var(--text-soft);
}

.grade-session-head-inner {
  display: grid;
  gap: 2px;
  justify-items: center;
}

.grade-session-date {
  font-size: 0.5rem;
  line-height: 1;
  font-weight: 700;
  color: var(--text-main);
}

.grade-session-actions {
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
  justify-content: center;
}

.grade-session-actions .icon-button {
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 6px;
}

.grade-matrix .grade-sticky {
  position: sticky;
  z-index: 2;
  background: rgba(247, 251, 255, 0.98);
}

.grade-matrix thead .grade-sticky {
  z-index: 5;
}

.grade-sticky-number {
  left: 0;
  width: 74px;
  min-width: 74px;
}

.grade-sticky-name {
  left: 74px;
  width: 280px;
  min-width: 280px;
  box-shadow: 1px 0 0 rgba(118, 160, 186, 0.14);
}

.grade-sticky-name strong {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.15;
}

.grade-matrix tbody tr:nth-child(even) .grade-sticky {
  background: rgba(248, 252, 255, 0.98);
}

.grade-matrix tbody tr:hover .grade-sticky {
  background: rgba(219, 241, 252, 0.92);
}

.grade-row.is-selected td {
  background: rgba(205, 232, 247, 0.86);
}

.grade-row.is-selected .grade-sticky {
  background: rgba(205, 232, 247, 0.98);
}

.grade-cell {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
}

.grade-cell-empty {
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px dashed rgba(118, 160, 186, 0.24);
  background: rgba(255, 255, 255, 0.34);
  color: var(--text-soft);
}

.grade-cell-button {
  width: 100%;
  min-height: 36px;
  padding: 3px 1px;
  border-radius: 10px;
  display: grid;
  gap: 1px;
  justify-items: center;
  text-align: center;
  border: 1px solid rgba(118, 160, 186, 0.18);
  background: rgba(255, 255, 255, 0.5);
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.grade-cell-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    calc(var(--depth) * -0.5) calc(var(--depth) * -0.5) 10px rgba(255, 255, 255, 0.62),
    calc(var(--depth) * 0.5) calc(var(--depth) * 0.5) 10px rgba(112, 157, 185, 0.14);
}

.grade-cell-button strong {
  font-size: 0.76rem;
  line-height: 1;
  color: var(--text-main);
}

.grade-cell-button span {
  font-size: 0.52rem;
  line-height: 1;
  color: var(--text-soft);
}

.grade-cell-button.delivered {
  background: rgba(74, 188, 141, 0.1);
  border-color: rgba(74, 188, 141, 0.18);
}

.grade-cell-button.missing {
  background: rgba(211, 95, 106, 0.08);
  border-color: rgba(211, 95, 106, 0.18);
}

.grade-cell-button.pending {
  border-style: dashed;
}

.status-dot,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.81rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.status-badge.success,
.status-dot.success {
  color: var(--success);
  background: rgba(74, 188, 141, 0.12);
  border-color: rgba(74, 188, 141, 0.12);
}

.status-badge.warning,
.status-dot.warning {
  color: var(--warning);
  background: rgba(218, 171, 80, 0.14);
  border-color: rgba(218, 171, 80, 0.12);
}

.status-badge.danger,
.status-dot.danger {
  color: var(--danger);
  background: rgba(211, 95, 106, 0.12);
  border-color: rgba(211, 95, 106, 0.12);
}

.status-badge.info,
.status-dot.info {
  color: var(--accent-deep);
  background: var(--status-info-surface);
  border-color: var(--status-info-border);
}

.empty-state {
  padding: 16px 18px;
  border-radius: 18px;
  color: var(--text-soft);
  background: var(--empty-state-surface);
  border: 1px dashed var(--empty-state-border);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  background: var(--auth-overlay-surface);
  backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 40;
}

.auth-overlay.hidden {
  display: none;
}

.auth-card {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  padding: 22px;
  border-radius: 34px;
  background: var(--auth-card-surface), var(--bg-panel);
  border: 1px solid var(--surface-border-strong);
}

.auth-callout,
.auth-panel {
  border-radius: 26px;
  border: 1px solid var(--surface-border-strong);
}

.auth-callout {
  padding: 26px;
  display: grid;
  align-content: space-between;
  gap: 22px;
  background: var(--auth-callout-surface);
}

.auth-callout h3 {
  margin: 0;
  max-width: 9ch;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 0.92;
}

.auth-panels {
  display: grid;
  gap: 16px;
}

.auth-panel {
  padding: 18px;
  background: var(--auth-panel-surface);
}

.mono-box {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--mono-box-surface);
  border: 1px solid var(--surface-border-strong);
  font-family: Consolas, "Courier New", monospace;
  color: var(--accent-deep);
  word-break: break-all;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 50;
}

.toast {
  min-width: 260px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(242, 249, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    calc(var(--depth) * -1) calc(var(--depth) * -1) 14px rgba(255, 255, 255, 0.68),
    var(--depth) var(--depth) 14px rgba(112, 157, 185, 0.16);
}

.toast strong {
  display: block;
  margin-bottom: 6px;
}

.grade-input {
  width: 96px;
}

.floating-card-detail {
  width: min(620px, 100%);
}

.grade-detail-stack {
  display: grid;
  gap: 18px;
}

.grade-detail-header h4 {
  margin: 4px 0 6px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(118, 160, 186, 0.18);
  background: rgba(255, 255, 255, 0.46);
  display: grid;
  gap: 6px;
}

.detail-item span,
.detail-note span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.detail-item strong {
  font-size: 0.92rem;
  color: var(--text-main);
}

.detail-note {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(118, 160, 186, 0.18);
  background: rgba(255, 255, 255, 0.46);
  display: grid;
  gap: 8px;
}

.detail-note p {
  margin: 0;
  color: var(--text-main);
  line-height: 1.5;
}

.pill-list {
  margin-top: 8px;
}

.pill {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--text-soft);
}

.muted {
  color: var(--text-soft);
}

.align-end {
  align-items: end;
}

.space-between {
  justify-content: space-between;
}

.module-toolbar,
.module-actions,
.module-filters,
.icon-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.module-toolbar {
  justify-content: space-between;
  margin-bottom: 18px;
}

.dashboard-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-toolbar-copy {
  display: grid;
  gap: 4px;
}

.style-switcher {
  min-width: 240px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  border-radius: 18px;
  background: var(--filter-chip-surface);
  border: 1px solid var(--surface-border-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 8px 18px rgba(132, 170, 192, 0.06);
}

.style-switcher small {
  color: var(--text-soft);
  font-size: 0.72rem;
  line-height: 1.35;
}

.style-switcher select {
  padding: 0;
}

.module-toolbar .support-copy {
  max-width: 56ch;
}

.tabbed-panel {
  display: grid;
  gap: 16px;
}

.tabbed-panel-head h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.tabbed-panel-head .support-copy {
  margin: 0;
}

.module-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px;
  border-radius: 22px;
  background: var(--module-tabs-surface);
  border: 1px solid var(--surface-border-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 10px 22px rgba(132, 170, 192, 0.05);
}

.module-tab {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.module-tab:hover {
  transform: translateY(-1px);
  background: var(--tab-hover-surface);
  color: var(--text-strong);
}

.module-tab.is-active {
  background: var(--tab-active-surface), var(--bg-panel);
  color: var(--accent-strong);
  box-shadow: var(--tab-active-shadow);
}

.tabbed-panel-body {
  min-width: 0;
}

.module-filters {
  margin: 0 0 18px;
}

.filter-chip {
  min-width: 220px;
  padding: 10px 14px;
  display: grid;
  gap: 8px;
  border-radius: 16px;
  background: var(--filter-chip-surface);
  border: 1px solid var(--surface-border-strong);
}

.filter-chip select,
.filter-chip input {
  padding: 0;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--icon-button-surface);
  border: 1px solid var(--surface-border-strong);
  box-shadow: var(--icon-button-shadow);
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.icon-button svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-deep);
  stroke-width: var(--icon-stroke-width);
}

.icon-button:hover {
  transform: translateY(-1px);
  background: var(--icon-button-hover-surface);
}

.icon-button.danger svg {
  stroke: var(--danger);
}

.data-list {
  display: grid;
  gap: 10px;
}

.data-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.data-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.data-row strong {
  font-size: 0.82rem;
  color: var(--text-faint);
}

.data-row span {
  color: var(--text-main);
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(216, 236, 248, 0.58);
  backdrop-filter: blur(18px);
}

.modal-root.hidden {
  display: none;
}

.floating-card {
  width: min(960px, 100%);
  max-height: min(88vh, 980px);
  overflow: auto;
  border-radius: 32px;
  background: var(--floating-surface), var(--bg-panel);
  border: 1px solid var(--surface-border-heavy);
  box-shadow: var(--floating-card-shadow);
}

.floating-header,
.floating-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px;
}

.floating-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--floating-header-surface);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(12px);
}

.floating-header h3 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.floating-body {
  padding: 22px 24px 6px;
  display: grid;
  gap: 18px;
}

.floating-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.86), rgba(247, 251, 255, 0.98));
  border-top: 1px solid var(--line-soft);
}

.floating-close {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.section-note {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--text-soft);
}

body[data-visual-style="arena-editorial"] .nav-item.is-active {
  box-shadow:
    inset -5px -5px 10px rgba(255, 255, 255, 0.82),
    inset 5px 5px 10px rgba(198, 205, 223, 0.34);
}

body[data-visual-style="arena-editorial"] .sidebar-footer,
body[data-visual-style="arena-editorial"] .style-switcher,
body[data-visual-style="arena-editorial"] .module-tabs {
  background: var(--filter-chip-surface);
  border-color: var(--surface-border-strong);
  box-shadow:
    -10px -10px 20px rgba(255, 255, 255, 0.88),
    10px 10px 20px rgba(197, 205, 223, 0.42);
}

body[data-visual-style="arena-editorial"] .filter-chip,
body[data-visual-style="arena-editorial"] .section-note {
  background: var(--filter-chip-surface);
  border-color: var(--surface-border-strong);
  box-shadow:
    inset -6px -6px 12px rgba(255, 255, 255, 0.88),
    inset 6px 6px 12px rgba(198, 205, 223, 0.32);
}

body[data-visual-style="arena-editorial"] .floating-footer {
  background: linear-gradient(180deg, rgba(242, 246, 252, 0.86), rgba(248, 250, 255, 0.98));
}

body[data-visual-style="bosque-sereno"] .sidebar,
body[data-visual-style="bosque-sereno"] .main-panel,
body[data-visual-style="bosque-sereno"] .panel,
body[data-visual-style="bosque-sereno"] .report-card,
body[data-visual-style="bosque-sereno"] .status-banner,
body[data-visual-style="bosque-sereno"] .field,
body[data-visual-style="bosque-sereno"] .filter-chip,
body[data-visual-style="bosque-sereno"] .style-switcher,
body[data-visual-style="bosque-sereno"] .module-tabs,
body[data-visual-style="bosque-sereno"] .table-wrap,
body[data-visual-style="bosque-sereno"] .auth-card,
body[data-visual-style="bosque-sereno"] .auth-callout,
body[data-visual-style="bosque-sereno"] .auth-panel,
body[data-visual-style="bosque-sereno"] .mono-box,
body[data-visual-style="bosque-sereno"] .floating-card,
body[data-visual-style="bosque-sereno"] .detail-item,
body[data-visual-style="bosque-sereno"] .detail-note,
body[data-visual-style="bosque-sereno"] .toast,
body[data-visual-style="bosque-sereno"] .stat-pill,
body[data-visual-style="bosque-sereno"] .section-note,
body[data-visual-style="bosque-sereno"] .sidebar-footer {
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

body[data-visual-style="bosque-sereno"] .nav-item.is-active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 14px 26px rgba(44, 132, 187, 0.14);
}

body[data-visual-style="bosque-sereno"] .sidebar-footer,
body[data-visual-style="bosque-sereno"] .style-switcher,
body[data-visual-style="bosque-sereno"] .module-tabs,
body[data-visual-style="bosque-sereno"] .filter-chip,
body[data-visual-style="bosque-sereno"] .section-note,
body[data-visual-style="bosque-sereno"] .detail-item,
body[data-visual-style="bosque-sereno"] .detail-note {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.14));
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 14px 28px rgba(54, 137, 189, 0.12);
}

body[data-visual-style="bosque-sereno"] .table-wrap,
body[data-visual-style="bosque-sereno"] .toast {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.14));
  border-color: rgba(255, 255, 255, 0.24);
}

body[data-visual-style="bosque-sereno"] .grade-group-head,
body[data-visual-style="bosque-sereno"] .grade-session-head,
body[data-visual-style="bosque-sereno"] .grade-matrix .grade-sticky,
body[data-visual-style="bosque-sereno"] .grade-cell-button,
body[data-visual-style="bosque-sereno"] .grade-cell-empty {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

body[data-visual-style="bosque-sereno"] .floating-footer {
  background: linear-gradient(180deg, rgba(241, 250, 255, 0.18), rgba(248, 253, 255, 0.34));
}

body[data-visual-style="wallet-lavanda"] .nav-item.is-active {
  box-shadow:
    inset -6px -6px 12px rgba(255, 255, 255, 0.94),
    inset 6px 6px 12px rgba(197, 204, 223, 0.28);
}

body[data-visual-style="wallet-lavanda"] .sidebar-footer,
body[data-visual-style="wallet-lavanda"] .style-switcher,
body[data-visual-style="wallet-lavanda"] .module-tabs,
body[data-visual-style="wallet-lavanda"] .table-wrap,
body[data-visual-style="wallet-lavanda"] .auth-card,
body[data-visual-style="wallet-lavanda"] .auth-callout,
body[data-visual-style="wallet-lavanda"] .auth-panel,
body[data-visual-style="wallet-lavanda"] .floating-card,
body[data-visual-style="wallet-lavanda"] .toast {
  background: linear-gradient(180deg, rgba(250, 251, 255, 0.99), rgba(241, 244, 253, 0.98));
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    -16px -16px 32px rgba(255, 255, 255, 0.92),
    16px 16px 32px rgba(193, 201, 223, 0.42);
}

body[data-visual-style="wallet-lavanda"] .filter-chip,
body[data-visual-style="wallet-lavanda"] .section-note,
body[data-visual-style="wallet-lavanda"] .detail-item,
body[data-visual-style="wallet-lavanda"] .detail-note,
body[data-visual-style="wallet-lavanda"] .stat-pill {
  background: linear-gradient(180deg, rgba(250, 251, 255, 0.98), rgba(243, 246, 254, 0.98));
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    -10px -10px 20px rgba(255, 255, 255, 0.9),
    10px 10px 20px rgba(195, 202, 223, 0.36);
}

body[data-visual-style="wallet-lavanda"] .grade-group-head,
body[data-visual-style="wallet-lavanda"] .grade-session-head,
body[data-visual-style="wallet-lavanda"] .grade-matrix .grade-sticky,
body[data-visual-style="wallet-lavanda"] .grade-cell-button,
body[data-visual-style="wallet-lavanda"] .grade-cell-empty {
  background: rgba(249, 251, 255, 0.98);
  border-color: rgba(255, 255, 255, 0.98);
}

body[data-visual-style="wallet-lavanda"] .floating-footer {
  background: linear-gradient(180deg, rgba(244, 247, 254, 0.84), rgba(251, 252, 255, 0.98));
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1220px) {
  .app-shell,
  .view-grid,
  .split-grid,
  .auth-card {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    min-height: auto;
    top: 0;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .style-switcher {
    min-width: 0;
  }
}

@media (max-width: 860px) {
  .app-shell {
    width: calc(100vw - 20px);
    margin: 10px auto;
    min-height: calc(100vh - 20px);
    gap: 12px;
  }

  .sidebar,
  .main-panel {
    padding: 18px;
    border-radius: 28px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-toolbar-copy {
    gap: 2px;
  }

  .hero-card {
    min-height: 260px;
    padding: 22px;
  }

  .hero-card .headline {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-stats,
  .form-grid.two,
  .form-grid.three,
  .field-grid.two,
  .field-grid.three,
  .triple-grid {
    grid-template-columns: 1fr;
  }

  .panel,
  .report-card,
  .status-banner {
    padding: 18px;
  }

  .data-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .floating-card {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px;
  }

  .floating-header,
  .floating-body,
  .floating-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .status-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .grade-matrix thead tr:nth-child(2) th {
    top: 50px;
  }

  .grade-sticky-number {
    width: 58px;
    min-width: 58px;
  }

  .grade-sticky-name {
    left: 58px;
    width: 220px;
    min-width: 220px;
  }
}
