/* ==========================================================================
   Sec-Ware Enterprise UI Design System
   3-Tier Brightness (Light, Dim, Dark) × 4 Branded Enterprise Palettes
   ========================================================================== */

/* --------------------------------------------------------------------------
   BRAND 1: EXECUTIVE ROYAL (GitHub Enterprise / Jira B2B Standard)
   -------------------------------------------------------------------------- */
[data-brand="royal"][data-theme="light"] {
  --brand-shell-bg: #0f2042;
  --brand-shell-text: #ffffff;
  --brand-shell-muted: #8ea5c8;
  --brand-shell-active: #1d3568;
  --brand-shell-border: rgba(255, 255, 255, 0.12);
  --bg-base: #f0f4f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #e8eef6;
  --border-subtle: #d3deec;
  --border-focus: #1d4ed8;
  --text-primary: #0a192f;
  --text-secondary: #334e68;
  --text-muted: #627d98;
  --accent-primary: #1d4ed8;
  --accent-primary-hover: #1e40af;
  --accent-badge-bg: #dbeafe;
  --accent-badge-border: #bfdbfe;
  --accent-badge-text: #1e40af;
  --accent-highlight: #2563eb;
  --status-success-bg: #dcfce7;
  --status-success-border: #bbf7d0;
  --status-success-text: #15803d;
  --status-neutral-bg: #f1f5f9;
  --status-neutral-border: #cbd5e1;
  --status-neutral-text: #475569;
  --stepper-active-bg: #eff6ff;
  --stepper-active-border: #2563eb;
  --step-completed-bg: #eff6ff;
  --step-completed-border: #bfdbfe;
  --step-completed-text: #1d4ed8;
}

[data-brand="royal"][data-theme="vibrant"] {
  --brand-shell-bg: #122852;
  --brand-shell-text: #ffffff;
  --brand-shell-muted: #9bb7df;
  --brand-shell-active: #21417e;
  --brand-shell-border: rgba(255, 255, 255, 0.15);
  --bg-base: #dce7f8;
  --bg-surface: #edf3fd;
  --bg-surface-elevated: #cadbf5;
  --border-subtle: #b6cdec;
  --border-focus: #1d4ed8;
  --text-primary: #07193b;
  --text-secondary: #1e3a6c;
  --text-muted: #4e6c9e;
  --accent-primary: #1d4ed8;
  --accent-primary-hover: #1e40af;
  --accent-badge-bg: #c7dcfa;
  --accent-badge-border: #a5c7f8;
  --accent-badge-text: #1e40af;
  --accent-highlight: #2563eb;
  --status-success-bg: #dcfce7;
  --status-success-border: #86efac;
  --status-success-text: #15803d;
  --status-neutral-bg: #e2e8f0;
  --status-neutral-border: #cbd5e1;
  --status-neutral-text: #334155;
  --stepper-active-bg: #dbeafe;
  --stepper-active-border: #2563eb;
  --step-completed-bg: #dbeafe;
  --step-completed-border: #93c5fd;
  --step-completed-text: #1d4ed8;
}

:root, [data-brand="royal"][data-theme="dim"] {
  --brand-shell-bg: #101c30;
  --brand-shell-text: #f8fafc;
  --brand-shell-muted: #8fa5c5;
  --brand-shell-active: #1c2e4e;
  --brand-shell-border: rgba(255, 255, 255, 0.1);
  --bg-base: #182336;
  --bg-surface: #202d44;
  --bg-surface-elevated: #283956;
  --border-subtle: #2f4162;
  --border-focus: #3b82f6;
  --text-primary: #f8fafc;
  --text-secondary: #9cb1ce;
  --text-muted: #728aa9;
  --accent-primary: #3b82f6;
  --accent-primary-hover: #2563eb;
  --accent-badge-bg: rgba(59, 130, 246, 0.18);
  --accent-badge-border: rgba(59, 130, 246, 0.35);
  --accent-badge-text: #93c5fd;
  --accent-highlight: #3b82f6;
  --status-success-bg: rgba(16, 185, 129, 0.18);
  --status-success-border: rgba(16, 185, 129, 0.32);
  --status-success-text: #34d399;
  --status-neutral-bg: rgba(255, 255, 255, 0.08);
  --status-neutral-border: rgba(255, 255, 255, 0.15);
  --status-neutral-text: #9cb1ce;
  --stepper-active-bg: rgba(59, 130, 246, 0.16);
  --stepper-active-border: #3b82f6;
  --step-completed-bg: rgba(59, 130, 246, 0.16);
  --step-completed-border: rgba(59, 130, 246, 0.32);
  --step-completed-text: #60a5fa;
}

[data-brand="royal"][data-theme="dark"] {
  --brand-shell-bg: #091326;
  --brand-shell-text: #f8fafc;
  --brand-shell-muted: #7c93b6;
  --brand-shell-active: #132342;
  --brand-shell-border: rgba(255, 255, 255, 0.08);
  --bg-base: #0b111e;
  --bg-surface: #101a2c;
  --bg-surface-elevated: #16243d;
  --border-subtle: #1e314f;
  --border-focus: #3b82f6;
  --text-primary: #f8fafc;
  --text-secondary: #94a9c9;
  --text-muted: #62799b;
  --accent-primary: #2563eb;
  --accent-primary-hover: #1d4ed8;
  --accent-badge-bg: rgba(37, 99, 235, 0.18);
  --accent-badge-border: rgba(59, 130, 246, 0.35);
  --accent-badge-text: #93c5fd;
  --accent-highlight: #3b82f6;
  --status-success-bg: rgba(16, 185, 129, 0.15);
  --status-success-border: rgba(16, 185, 129, 0.3);
  --status-success-text: #34d399;
  --status-neutral-bg: rgba(148, 163, 184, 0.08);
  --status-neutral-border: rgba(148, 163, 184, 0.18);
  --status-neutral-text: #94a3b8;
  --stepper-active-bg: rgba(37, 99, 235, 0.12);
  --stepper-active-border: #3b82f6;
  --step-completed-bg: rgba(37, 99, 235, 0.16);
  --step-completed-border: rgba(59, 130, 246, 0.32);
  --step-completed-text: #93c5fd;
}

/* --------------------------------------------------------------------------
   BRAND 2: COMMAND AMBER (CrowdStrike / Huntress / Incident Ops)
   -------------------------------------------------------------------------- */
[data-brand="amber"][data-theme="light"] {
  --brand-shell-bg: #181d24;
  --brand-shell-text: #ffffff;
  --brand-shell-muted: #9ba3af;
  --brand-shell-active: #28303c;
  --brand-shell-border: rgba(255, 255, 255, 0.12);
  --bg-base: #f7f6f2;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #eeede8;
  --border-subtle: #dfded8;
  --border-focus: #d97706;
  --text-primary: #1c1917;
  --text-secondary: #44403c;
  --text-muted: #78716c;
  --accent-primary: #d97706;
  --accent-primary-hover: #b45309;
  --accent-badge-bg: #fef3c7;
  --accent-badge-border: #fde68a;
  --accent-badge-text: #b45309;
  --accent-highlight: #d97706;
  --status-success-bg: #dcfce7;
  --status-success-border: #bbf7d0;
  --status-success-text: #15803d;
  --status-neutral-bg: #f5f5f4;
  --status-neutral-border: #d6d3d1;
  --status-neutral-text: #57534e;
  --stepper-active-bg: #fffbeb;
  --stepper-active-border: #d97706;
  --step-completed-bg: #fffbeb;
  --step-completed-border: #fde68a;
  --step-completed-text: #b45309;
}

[data-brand="amber"][data-theme="vibrant"] {
  --brand-shell-bg: #291e10;
  --brand-shell-text: #ffffff;
  --brand-shell-muted: #d0b490;
  --brand-shell-active: #40301a;
  --brand-shell-border: rgba(255, 255, 255, 0.15);
  --bg-base: #f9eed8;
  --bg-surface: #fdf7ec;
  --bg-surface-elevated: #f4e1bc;
  --border-subtle: #e9cca0;
  --border-focus: #d97706;
  --text-primary: #2d1e05;
  --text-secondary: #5f4212;
  --text-muted: #8b682e;
  --accent-primary: #d97706;
  --accent-primary-hover: #b45309;
  --accent-badge-bg: #fef3c7;
  --accent-badge-border: #fde68a;
  --accent-badge-text: #b45309;
  --accent-highlight: #f59e0b;
  --status-success-bg: #dcfce7;
  --status-success-border: #86efac;
  --status-success-text: #15803d;
  --status-neutral-bg: #f3f4f6;
  --status-neutral-border: #e5e7eb;
  --status-neutral-text: #4b5563;
  --stepper-active-bg: #fef3c7;
  --stepper-active-border: #f59e0b;
  --step-completed-bg: #fef3c7;
  --step-completed-border: #fde68a;
  --step-completed-text: #d97706;
}

[data-brand="amber"][data-theme="dim"] {
  --brand-shell-bg: #1a1e26;
  --brand-shell-text: #f5f5f4;
  --brand-shell-muted: #9199a6;
  --brand-shell-active: #272d38;
  --brand-shell-border: rgba(255, 255, 255, 0.1);
  --bg-base: #232832;
  --bg-surface: #2b313d;
  --bg-surface-elevated: #343c4a;
  --border-subtle: #3f4857;
  --border-focus: #f59e0b;
  --text-primary: #fafaf9;
  --text-secondary: #b7b3ae;
  --text-muted: #8c857e;
  --accent-primary: #f59e0b;
  --accent-primary-hover: #d97706;
  --accent-badge-bg: rgba(245, 158, 11, 0.18);
  --accent-badge-border: rgba(245, 158, 11, 0.35);
  --accent-badge-text: #fcd34d;
  --accent-highlight: #f59e0b;
  --status-success-bg: rgba(16, 185, 129, 0.18);
  --status-success-border: rgba(16, 185, 129, 0.32);
  --status-success-text: #34d399;
  --status-neutral-bg: rgba(255, 255, 255, 0.08);
  --status-neutral-border: rgba(255, 255, 255, 0.15);
  --status-neutral-text: #b7b3ae;
  --stepper-active-bg: rgba(245, 158, 11, 0.15);
  --stepper-active-border: #f59e0b;
  --step-completed-bg: rgba(245, 158, 11, 0.16);
  --step-completed-border: rgba(245, 158, 11, 0.35);
  --step-completed-text: #fbbf24;
}

[data-brand="amber"][data-theme="dark"] {
  --brand-shell-bg: #0e1116;
  --brand-shell-text: #f5f5f4;
  --brand-shell-muted: #78716c;
  --brand-shell-active: #1c212a;
  --brand-shell-border: rgba(255, 255, 255, 0.08);
  --bg-base: #11141a;
  --bg-surface: #171c24;
  --bg-surface-elevated: #202732;
  --border-subtle: #2b3340;
  --border-focus: #f59e0b;
  --text-primary: #fafaf9;
  --text-secondary: #a8a29e;
  --text-muted: #78716c;
  --accent-primary: #f59e0b;
  --accent-primary-hover: #d97706;
  --accent-badge-bg: rgba(245, 158, 11, 0.15);
  --accent-badge-border: rgba(245, 158, 11, 0.35);
  --accent-badge-text: #fcd34d;
  --accent-highlight: #f59e0b;
  --status-success-bg: rgba(16, 185, 129, 0.15);
  --status-success-border: rgba(16, 185, 129, 0.3);
  --status-success-text: #34d399;
  --status-neutral-bg: rgba(120, 113, 108, 0.15);
  --status-neutral-border: rgba(120, 113, 108, 0.25);
  --status-neutral-text: #a8a29e;
  --stepper-active-bg: rgba(245, 158, 11, 0.12);
  --stepper-active-border: #f59e0b;
  --step-completed-bg: rgba(245, 158, 11, 0.15);
  --step-completed-border: rgba(245, 158, 11, 0.32);
  --step-completed-text: #fcd34d;
}

/* --------------------------------------------------------------------------
   BRAND 3: NORDIC SPRUCE (Tailscale / Supabase / Clean Engineering)
   -------------------------------------------------------------------------- */
[data-brand="spruce"][data-theme="light"] {
  --brand-shell-bg: #0d2824;
  --brand-shell-text: #ffffff;
  --brand-shell-muted: #83ada4;
  --brand-shell-active: #173d37;
  --brand-shell-border: rgba(255, 255, 255, 0.12);
  --bg-base: #f2f7f5;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #e3ede9;
  --border-subtle: #ccdcd6;
  --border-focus: #059669;
  --text-primary: #062b24;
  --text-secondary: #274942;
  --text-muted: #4e7069;
  --accent-primary: #059669;
  --accent-primary-hover: #047857;
  --accent-badge-bg: #d1fae5;
  --accent-badge-border: #a7f3d0;
  --accent-badge-text: #065f46;
  --accent-highlight: #059669;
  --status-success-bg: #d1fae5;
  --status-success-border: #a7f3d0;
  --status-success-text: #065f46;
  --status-neutral-bg: #e5ece9;
  --status-neutral-border: #cdd9d4;
  --status-neutral-text: #415e57;
  --stepper-active-bg: #ecfdf5;
  --stepper-active-border: #059669;
  --step-completed-bg: #ecfdf5;
  --step-completed-border: #a7f3d0;
  --step-completed-text: #047857;
}

[data-brand="spruce"][data-theme="vibrant"] {
  --brand-shell-bg: #0b251b;
  --brand-shell-text: #ffffff;
  --brand-shell-muted: #8bbfae;
  --brand-shell-active: #164030;
  --brand-shell-border: rgba(255, 255, 255, 0.15);
  --bg-base: #d8f1e7;
  --bg-surface: #eaf8f2;
  --bg-surface-elevated: #c3e7d8;
  --border-subtle: #a6dcc5;
  --border-focus: #059669;
  --text-primary: #042417;
  --text-secondary: #124d35;
  --text-muted: #3a755c;
  --accent-primary: #059669;
  --accent-primary-hover: #047857;
  --accent-badge-bg: #d1fae5;
  --accent-badge-border: #a7f3d0;
  --accent-badge-text: #047857;
  --accent-highlight: #10b981;
  --status-success-bg: #dcfce7;
  --status-success-border: #86efac;
  --status-success-text: #15803d;
  --status-neutral-bg: #f3f4f6;
  --status-neutral-border: #e5e7eb;
  --status-neutral-text: #4b5563;
  --stepper-active-bg: #d1fae5;
  --stepper-active-border: #10b981;
  --step-completed-bg: #d1fae5;
  --step-completed-border: #a7f3d0;
  --step-completed-text: #059669;
}

[data-brand="spruce"][data-theme="dim"] {
  --brand-shell-bg: #0f2723;
  --brand-shell-text: #f0fdf4;
  --brand-shell-muted: #7ca89e;
  --brand-shell-active: #183c35;
  --brand-shell-border: rgba(255, 255, 255, 0.1);
  --bg-base: #172d29;
  --bg-surface: #1e3934;
  --bg-surface-elevated: #274741;
  --border-subtle: #315850;
  --border-focus: #10b981;
  --text-primary: #f0fdf4;
  --text-secondary: #9ec5bc;
  --text-muted: #6b948b;
  --accent-primary: #10b981;
  --accent-primary-hover: #059669;
  --accent-badge-bg: rgba(16, 185, 129, 0.18);
  --accent-badge-border: rgba(16, 185, 129, 0.35);
  --accent-badge-text: #6ee7b7;
  --accent-highlight: #10b981;
  --status-success-bg: rgba(16, 185, 129, 0.18);
  --status-success-border: rgba(16, 185, 129, 0.35);
  --status-success-text: #6ee7b7;
  --status-neutral-bg: rgba(255, 255, 255, 0.08);
  --status-neutral-border: rgba(255, 255, 255, 0.15);
  --status-neutral-text: #9ec5bc;
  --stepper-active-bg: rgba(16, 185, 129, 0.15);
  --stepper-active-border: #10b981;
  --step-completed-bg: rgba(16, 185, 129, 0.16);
  --step-completed-border: rgba(16, 185, 129, 0.32);
  --step-completed-text: #34d399;
}

[data-brand="spruce"][data-theme="dark"] {
  --brand-shell-bg: #071715;
  --brand-shell-text: #f0fdf4;
  --brand-shell-muted: #648f86;
  --brand-shell-active: #0f2c27;
  --brand-shell-border: rgba(255, 255, 255, 0.08);
  --bg-base: #0a1715;
  --bg-surface: #10221f;
  --bg-surface-elevated: #18302c;
  --border-subtle: #1f3e39;
  --border-focus: #10b981;
  --text-primary: #f0fdf4;
  --text-secondary: #86b2a8;
  --text-muted: #537a72;
  --accent-primary: #10b981;
  --accent-primary-hover: #059669;
  --accent-badge-bg: rgba(16, 185, 129, 0.15);
  --accent-badge-border: rgba(16, 185, 129, 0.35);
  --accent-badge-text: #6ee7b7;
  --accent-highlight: #10b981;
  --status-success-bg: rgba(16, 185, 129, 0.15);
  --status-success-border: rgba(16, 185, 129, 0.35);
  --status-success-text: #6ee7b7;
  --status-neutral-bg: rgba(90, 120, 114, 0.15);
  --status-neutral-border: rgba(90, 120, 114, 0.25);
  --status-neutral-text: #86b2a8;
  --stepper-active-bg: rgba(16, 185, 129, 0.12);
  --stepper-active-border: #10b981;
  --step-completed-bg: rgba(16, 185, 129, 0.14);
  --step-completed-border: rgba(16, 185, 129, 0.3);
  --step-completed-text: #6ee7b7;
}

/* --------------------------------------------------------------------------
   BRAND 4: BORDEAUX SLATE (Sentry / PostHog / Sophisticated Modern Tech)
   -------------------------------------------------------------------------- */
[data-brand="bordeaux"][data-theme="light"] {
  --brand-shell-bg: #27142b;
  --brand-shell-text: #ffffff;
  --brand-shell-muted: #ad8fae;
  --brand-shell-active: #3f2245;
  --brand-shell-border: rgba(255, 255, 255, 0.12);
  --bg-base: #f9f5f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #efe5ef;
  --border-subtle: #dfd1df;
  --border-focus: #be185d;
  --text-primary: #29102c;
  --text-secondary: #573a5a;
  --text-muted: #856188;
  --accent-primary: #be185d;
  --accent-primary-hover: #9d174d;
  --accent-badge-bg: #fce7f3;
  --accent-badge-border: #fbcfe8;
  --accent-badge-text: #9d174d;
  --accent-highlight: #be185d;
  --status-success-bg: #dcfce7;
  --status-success-border: #bbf7d0;
  --status-success-text: #15803d;
  --status-neutral-bg: #f2e9f2;
  --status-neutral-border: #decbde;
  --status-neutral-text: #664969;
  --stepper-active-bg: #fdf2f8;
  --stepper-active-border: #be185d;
  --step-completed-bg: #fdf2f8;
  --step-completed-border: #fbcfe8;
  --step-completed-text: #9d174d;
}

[data-brand="bordeaux"][data-theme="vibrant"] {
  --brand-shell-bg: #2d0e1c;
  --brand-shell-text: #ffffff;
  --brand-shell-muted: #cf9ab2;
  --brand-shell-active: #471b30;
  --brand-shell-border: rgba(255, 255, 255, 0.15);
  --bg-base: #fae1ec;
  --bg-surface: #fdf0f6;
  --bg-surface-elevated: #f5cbdf;
  --border-subtle: #eeb0ce;
  --border-focus: #e11d48;
  --text-primary: #34051a;
  --text-secondary: #6b173d;
  --text-muted: #9b3d68;
  --accent-primary: #e11d48;
  --accent-primary-hover: #be123c;
  --accent-badge-bg: #ffe4e6;
  --accent-badge-border: #fecdd3;
  --accent-badge-text: #be123c;
  --accent-highlight: #f43f5e;
  --status-success-bg: #dcfce7;
  --status-success-border: #86efac;
  --status-success-text: #15803d;
  --status-neutral-bg: #f3f4f6;
  --status-neutral-border: #e5e7eb;
  --status-neutral-text: #4b5563;
  --stepper-active-bg: #ffe4e6;
  --stepper-active-border: #f43f5e;
  --step-completed-bg: #ffe4e6;
  --step-completed-border: #fecdd3;
  --step-completed-text: #e11d48;
}

[data-brand="bordeaux"][data-theme="dim"] {
  --brand-shell-bg: #231227;
  --brand-shell-text: #fdf2f8;
  --brand-shell-muted: #a68ba8;
  --brand-shell-active: #351c3b;
  --brand-shell-border: rgba(255, 255, 255, 0.1);
  --bg-base: #2a1a2e;
  --bg-surface: #35223a;
  --bg-surface-elevated: #422a49;
  --border-subtle: #513658;
  --border-focus: #f43f5e;
  --text-primary: #fdf4f8;
  --text-secondary: #c9afcb;
  --text-muted: #997c9b;
  --accent-primary: #f43f5e;
  --accent-primary-hover: #e11d48;
  --accent-badge-bg: rgba(244, 63, 94, 0.18);
  --accent-badge-border: rgba(244, 63, 94, 0.35);
  --accent-badge-text: #fda4af;
  --accent-highlight: #f43f5e;
  --status-success-bg: rgba(16, 185, 129, 0.15);
  --status-success-border: rgba(16, 185, 129, 0.3);
  --status-success-text: #34d399;
  --status-neutral-bg: rgba(255, 255, 255, 0.08);
  --status-neutral-border: rgba(255, 255, 255, 0.15);
  --status-neutral-text: #c9afcb;
  --stepper-active-bg: rgba(244, 63, 94, 0.15);
  --stepper-active-border: #f43f5e;
  --step-completed-bg: rgba(244, 63, 94, 0.16);
  --step-completed-border: rgba(244, 63, 94, 0.32);
  --step-completed-text: #fb7185;
}

[data-brand="bordeaux"][data-theme="dark"] {
  --brand-shell-bg: #150b18;
  --brand-shell-text: #fdf2f8;
  --brand-shell-muted: #917594;
  --brand-shell-active: #29172e;
  --brand-shell-border: rgba(255, 255, 255, 0.08);
  --bg-base: #170d1a;
  --bg-surface: #221426;
  --bg-surface-elevated: #2d1b32;
  --border-subtle: #3d2643;
  --border-focus: #f43f5e;
  --text-primary: #fdf4f8;
  --text-secondary: #b99ebb;
  --text-muted: #866b88;
  --accent-primary: #f43f5e;
  --accent-primary-hover: #e11d48;
  --accent-badge-bg: rgba(244, 63, 94, 0.18);
  --accent-badge-border: rgba(244, 63, 94, 0.35);
  --accent-badge-text: #fda4af;
  --accent-highlight: #f43f5e;
  --status-success-bg: rgba(16, 185, 129, 0.15);
  --status-success-border: rgba(16, 185, 129, 0.3);
  --status-success-text: #34d399;
  --status-neutral-bg: rgba(145, 117, 148, 0.15);
  --status-neutral-border: rgba(145, 117, 148, 0.25);
  --status-neutral-text: #b99ebb;
  --stepper-active-bg: rgba(244, 63, 94, 0.12);
  --stepper-active-border: #f43f5e;
  --step-completed-bg: rgba(244, 63, 94, 0.14);
  --step-completed-border: rgba(244, 63, 94, 0.3);
  --step-completed-text: #fda4af;
}

/* --------------------------------------------------------------------------
   BRAND 5: SUNSET CORAL (Modern Energetic Security)
   -------------------------------------------------------------------------- */
[data-brand="coral"][data-theme="light"] {
  --brand-shell-bg: #1f1a17;
  --brand-shell-text: #ffffff;
  --brand-shell-muted: #ad9a8f;
  --brand-shell-active: #322822;
  --brand-shell-border: rgba(255, 255, 255, 0.12);
  --bg-base: #faf6f3;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f4eee9;
  --border-subtle: #e6ded7;
  --border-focus: #ea580c;
  --text-primary: #1f140e;
  --text-secondary: #573f33;
  --text-muted: #8c7365;
  --accent-primary: #ea580c;
  --accent-primary-hover: #c2410c;
  --accent-badge-bg: #ffedd5;
  --accent-badge-border: #fed7aa;
  --accent-badge-text: #c2410c;
  --accent-highlight: #f97316;
  --status-success-bg: #dcfce7;
  --status-success-border: #bbf7d0;
  --status-success-text: #15803d;
  --status-neutral-bg: #f8fafc;
  --status-neutral-border: #e2e8f0;
  --status-neutral-text: #64748b;
  --stepper-active-bg: #fff7ed;
  --stepper-active-border: #f97316;
  --step-completed-bg: #fff7ed;
  --step-completed-border: #fed7aa;
  --step-completed-text: #ea580c;
}

[data-brand="coral"][data-theme="vibrant"] {
  --brand-shell-bg: #2d160b;
  --brand-shell-text: #ffffff;
  --brand-shell-muted: #d4a993;
  --brand-shell-active: #482615;
  --brand-shell-border: rgba(255, 255, 255, 0.15);
  --bg-base: #fbe6d8;
  --bg-surface: #fdf2ea;
  --bg-surface-elevated: #f7d2bd;
  --border-subtle: #f0ba9b;
  --border-focus: #ea580c;
  --text-primary: #341203;
  --text-secondary: #6d2f10;
  --text-muted: #9c542e;
  --accent-primary: #ea580c;
  --accent-primary-hover: #c2410c;
  --accent-badge-bg: #ffedd5;
  --accent-badge-border: #fed7aa;
  --accent-badge-text: #c2410c;
  --accent-highlight: #f97316;
  --status-success-bg: #dcfce7;
  --status-success-border: #86efac;
  --status-success-text: #15803d;
  --status-neutral-bg: #f3f4f6;
  --status-neutral-border: #e5e7eb;
  --status-neutral-text: #4b5563;
  --stepper-active-bg: #ffedd5;
  --stepper-active-border: #f97316;
  --step-completed-bg: #ffedd5;
  --step-completed-border: #fed7aa;
  --step-completed-text: #ea580c;
}

[data-brand="coral"][data-theme="dim"] {
  --brand-shell-bg: #1c1511;
  --brand-shell-text: #fef7f2;
  --brand-shell-muted: #ba9e90;
  --brand-shell-active: #2e221b;
  --brand-shell-border: rgba(255, 255, 255, 0.1);
  --bg-base: #201712;
  --bg-surface: #2b1f19;
  --bg-surface-elevated: #362820;
  --border-subtle: #45342b;
  --border-focus: #f97316;
  --text-primary: #fef7f2;
  --text-secondary: #c9aba0;
  --text-muted: #9c8378;
  --accent-primary: #f97316;
  --accent-primary-hover: #ea580c;
  --accent-badge-bg: rgba(249, 115, 22, 0.18);
  --accent-badge-border: rgba(249, 115, 22, 0.35);
  --accent-badge-text: #fdba74;
  --accent-highlight: #fb923c;
  --status-success-bg: rgba(16, 185, 129, 0.18);
  --status-success-border: rgba(16, 185, 129, 0.32);
  --status-success-text: #34d399;
  --status-neutral-bg: rgba(255, 255, 255, 0.08);
  --status-neutral-border: rgba(255, 255, 255, 0.15);
  --status-neutral-text: #c9aba0;
  --stepper-active-bg: rgba(249, 115, 22, 0.16);
  --stepper-active-border: #f97316;
  --step-completed-bg: rgba(249, 115, 22, 0.16);
  --step-completed-border: rgba(249, 115, 22, 0.32);
  --step-completed-text: #fdba74;
}

[data-brand="coral"][data-theme="dark"] {
  --brand-shell-bg: #140d09;
  --brand-shell-text: #fef7f2;
  --brand-shell-muted: #a68b7f;
  --brand-shell-active: #22150f;
  --brand-shell-border: rgba(255, 255, 255, 0.08);
  --bg-base: #100b08;
  --bg-surface: #18110c;
  --bg-surface-elevated: #211711;
  --border-subtle: #302219;
  --border-focus: #f97316;
  --text-primary: #fef7f2;
  --text-secondary: #b5988d;
  --text-muted: #856e65;
  --accent-primary: #f97316;
  --accent-primary-hover: #ea580c;
  --accent-badge-bg: rgba(249, 115, 22, 0.18);
  --accent-badge-border: rgba(249, 115, 22, 0.35);
  --accent-badge-text: #fdba74;
  --accent-highlight: #fb923c;
  --status-success-bg: rgba(16, 185, 129, 0.15);
  --status-success-border: rgba(16, 185, 129, 0.3);
  --status-success-text: #34d399;
  --status-neutral-bg: rgba(181, 152, 141, 0.12);
  --status-neutral-border: rgba(181, 152, 141, 0.2);
  --status-neutral-text: #b5988d;
  --stepper-active-bg: rgba(249, 115, 22, 0.12);
  --stepper-active-border: #f97316;
  --step-completed-bg: rgba(249, 115, 22, 0.14);
  --step-completed-border: rgba(249, 115, 22, 0.3);
  --step-completed-text: #fdba74;
}

/* --------------------------------------------------------------------------
   BRAND 6: ROYAL VIOLET (AI & Cloud SecOps)
   -------------------------------------------------------------------------- */
[data-brand="violet"][data-theme="light"] {
  --brand-shell-bg: #1c152e;
  --brand-shell-text: #ffffff;
  --brand-shell-muted: #a69bbd;
  --brand-shell-active: #2e234a;
  --brand-shell-border: rgba(255, 255, 255, 0.12);
  --bg-base: #f7f5fb;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #efeaf7;
  --border-subtle: #dfd7ee;
  --border-focus: #7c3aed;
  --text-primary: #190f2d;
  --text-secondary: #453468;
  --text-muted: #746394;
  --accent-primary: #7c3aed;
  --accent-primary-hover: #6d28d9;
  --accent-badge-bg: #ede9fe;
  --accent-badge-border: #ddd6fe;
  --accent-badge-text: #6d28d9;
  --accent-highlight: #8b5cf6;
  --status-success-bg: #dcfce7;
  --status-success-border: #bbf7d0;
  --status-success-text: #15803d;
  --status-neutral-bg: #f8fafc;
  --status-neutral-border: #e2e8f0;
  --status-neutral-text: #64748b;
  --stepper-active-bg: #f5f3ff;
  --stepper-active-border: #8b5cf6;
  --step-completed-bg: #f5f3ff;
  --step-completed-border: #ddd6fe;
  --step-completed-text: #7c3aed;
}

[data-brand="violet"][data-theme="vibrant"] {
  --brand-shell-bg: #20103b;
  --brand-shell-text: #ffffff;
  --brand-shell-muted: #bda3e6;
  --brand-shell-active: #371e61;
  --brand-shell-border: rgba(255, 255, 255, 0.15);
  --bg-base: #ece3fc;
  --bg-surface: #f6f0fd;
  --bg-surface-elevated: #ded0f8;
  --border-subtle: #cbb4f3;
  --border-focus: #7c3aed;
  --text-primary: #1c063f;
  --text-secondary: #471a8a;
  --text-muted: #7342ba;
  --accent-primary: #7c3aed;
  --accent-primary-hover: #6d28d9;
  --accent-badge-bg: #ede9fe;
  --accent-badge-border: #ddd6fe;
  --accent-badge-text: #6d28d9;
  --accent-highlight: #8b5cf6;
  --status-success-bg: #dcfce7;
  --status-success-border: #86efac;
  --status-success-text: #15803d;
  --status-neutral-bg: #f3f4f6;
  --status-neutral-border: #e5e7eb;
  --status-neutral-text: #4b5563;
  --stepper-active-bg: #ede9fe;
  --stepper-active-border: #8b5cf6;
  --step-completed-bg: #ede9fe;
  --step-completed-border: #ddd6fe;
  --step-completed-text: #7c3aed;
}

[data-brand="violet"][data-theme="dim"] {
  --brand-shell-bg: #171226;
  --brand-shell-text: #faf8ff;
  --brand-shell-muted: #9c91b5;
  --brand-shell-active: #271e3f;
  --brand-shell-border: rgba(255, 255, 255, 0.1);
  --bg-base: #1b152d;
  --bg-surface: #241c3c;
  --bg-surface-elevated: #2e244b;
  --border-subtle: #3d3060;
  --border-focus: #8b5cf6;
  --text-primary: #faf8ff;
  --text-secondary: #b6a9d4;
  --text-muted: #8b7fa9;
  --accent-primary: #8b5cf6;
  --accent-primary-hover: #7c3aed;
  --accent-badge-bg: rgba(139, 92, 246, 0.18);
  --accent-badge-border: rgba(139, 92, 246, 0.35);
  --accent-badge-text: #c4b5fd;
  --accent-highlight: #a78bfa;
  --status-success-bg: rgba(16, 185, 129, 0.18);
  --status-success-border: rgba(16, 185, 129, 0.32);
  --status-success-text: #34d399;
  --status-neutral-bg: rgba(255, 255, 255, 0.08);
  --status-neutral-border: rgba(255, 255, 255, 0.15);
  --status-neutral-text: #b6a9d4;
  --stepper-active-bg: rgba(139, 92, 246, 0.16);
  --stepper-active-border: #8b5cf6;
  --step-completed-bg: rgba(139, 92, 246, 0.16);
  --step-completed-border: rgba(139, 92, 246, 0.32);
  --step-completed-text: #c4b5fd;
}

[data-brand="violet"][data-theme="dark"] {
  --brand-shell-bg: #100b1c;
  --brand-shell-text: #faf8ff;
  --brand-shell-muted: #8d81a8;
  --brand-shell-active: #1d1433;
  --brand-shell-border: rgba(255, 255, 255, 0.08);
  --bg-base: #0e0918;
  --bg-surface: #150f24;
  --bg-surface-elevated: #1e1533;
  --border-subtle: #2d1f4a;
  --border-focus: #8b5cf6;
  --text-primary: #faf8ff;
  --text-secondary: #a99ac8;
  --text-muted: #796c96;
  --accent-primary: #8b5cf6;
  --accent-primary-hover: #7c3aed;
  --accent-badge-bg: rgba(139, 92, 246, 0.18);
  --accent-badge-border: rgba(139, 92, 246, 0.35);
  --accent-badge-text: #c4b5fd;
  --accent-highlight: #a78bfa;
  --status-success-bg: rgba(16, 185, 129, 0.15);
  --status-success-border: rgba(16, 185, 129, 0.3);
  --status-success-text: #34d399;
  --status-neutral-bg: rgba(169, 154, 200, 0.1);
  --status-neutral-border: rgba(169, 154, 200, 0.2);
  --status-neutral-text: #a99ac8;
  --stepper-active-bg: rgba(139, 92, 246, 0.12);
  --stepper-active-border: #8b5cf6;
  --step-completed-bg: rgba(139, 92, 246, 0.14);
  --step-completed-border: rgba(139, 92, 246, 0.3);
  --step-completed-text: #c4b5fd;
}

/* --------------------------------------------------------------------------
   BRAND 7: ELECTRIC CYAN (Telemetry & SOC Analytics)
   -------------------------------------------------------------------------- */
[data-brand="cyan"][data-theme="light"] {
  --brand-shell-bg: #0e2129;
  --brand-shell-text: #ffffff;
  --brand-shell-muted: #8ea9b3;
  --brand-shell-active: #183542;
  --brand-shell-border: rgba(255, 255, 255, 0.12);
  --bg-base: #f0f7f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #e2eff3;
  --border-subtle: #cde2e8;
  --border-focus: #0891b2;
  --text-primary: #081d24;
  --text-secondary: #274b57;
  --text-muted: #567784;
  --accent-primary: #0891b2;
  --accent-primary-hover: #0e7490;
  --accent-badge-bg: #cffafe;
  --accent-badge-border: #a5f3fc;
  --accent-badge-text: #0e7490;
  --accent-highlight: #06b6d4;
  --status-success-bg: #dcfce7;
  --status-success-border: #bbf7d0;
  --status-success-text: #15803d;
  --status-neutral-bg: #f8fafc;
  --status-neutral-border: #e2e8f0;
  --status-neutral-text: #64748b;
  --stepper-active-bg: #ecfeff;
  --stepper-active-border: #06b6d4;
  --step-completed-bg: #ecfeff;
  --step-completed-border: #a5f3fc;
  --step-completed-text: #0891b2;
}

[data-brand="cyan"][data-theme="vibrant"] {
  --brand-shell-bg: #092733;
  --brand-shell-text: #ffffff;
  --brand-shell-muted: #8ec0d2;
  --brand-shell-active: #124053;
  --brand-shell-border: rgba(255, 255, 255, 0.15);
  --bg-base: #d6f2f7;
  --bg-surface: #e9f9fc;
  --bg-surface-elevated: #bee8f1;
  --border-subtle: #9cd7e5;
  --border-focus: #0891b2;
  --text-primary: #03212b;
  --text-secondary: #0c4a5e;
  --text-muted: #2f7389;
  --accent-primary: #0891b2;
  --accent-primary-hover: #0e7490;
  --accent-badge-bg: #cffafe;
  --accent-badge-border: #a5f3fc;
  --accent-badge-text: #0e7490;
  --accent-highlight: #06b6d4;
  --status-success-bg: #dcfce7;
  --status-success-border: #86efac;
  --status-success-text: #15803d;
  --status-neutral-bg: #f3f4f6;
  --status-neutral-border: #e5e7eb;
  --status-neutral-text: #4b5563;
  --stepper-active-bg: #cffafe;
  --stepper-active-border: #06b6d4;
  --step-completed-bg: #cffafe;
  --step-completed-border: #a5f3fc;
  --step-completed-text: #0891b2;
}

[data-brand="cyan"][data-theme="dim"] {
  --brand-shell-bg: #0d1b22;
  --brand-shell-text: #f0fdfa;
  --brand-shell-muted: #83a5b0;
  --brand-shell-active: #172d38;
  --brand-shell-border: rgba(255, 255, 255, 0.1);
  --bg-base: #11222b;
  --bg-surface: #182e3a;
  --bg-surface-elevated: #203b4a;
  --border-subtle: #2b4c5e;
  --border-focus: #06b6d4;
  --text-primary: #f0fdfa;
  --text-secondary: #97c2cf;
  --text-muted: #6e97a5;
  --accent-primary: #06b6d4;
  --accent-primary-hover: #0891b2;
  --accent-badge-bg: rgba(6, 182, 212, 0.18);
  --accent-badge-border: rgba(6, 182, 212, 0.35);
  --accent-badge-text: #67e8f9;
  --accent-highlight: #22d3ee;
  --status-success-bg: rgba(16, 185, 129, 0.18);
  --status-success-border: rgba(16, 185, 129, 0.32);
  --status-success-text: #34d399;
  --status-neutral-bg: rgba(255, 255, 255, 0.08);
  --status-neutral-border: rgba(255, 255, 255, 0.15);
  --status-neutral-text: #97c2cf;
  --stepper-active-bg: rgba(6, 182, 212, 0.16);
  --stepper-active-border: #06b6d4;
  --step-completed-bg: rgba(6, 182, 212, 0.16);
  --step-completed-border: rgba(6, 182, 212, 0.32);
  --step-completed-text: #67e8f9;
}

[data-brand="cyan"][data-theme="dark"] {
  --brand-shell-bg: #081217;
  --brand-shell-text: #f0fdfa;
  --brand-shell-muted: #72939e;
  --brand-shell-active: #102129;
  --brand-shell-border: rgba(255, 255, 255, 0.08);
  --bg-base: #071217;
  --bg-surface: #0c1a21;
  --bg-surface-elevated: #12252e;
  --border-subtle: #1c3542;
  --border-focus: #06b6d4;
  --text-primary: #f0fdfa;
  --text-secondary: #8ab8c6;
  --text-muted: #5f8997;
  --accent-primary: #06b6d4;
  --accent-primary-hover: #0891b2;
  --accent-badge-bg: rgba(6, 182, 212, 0.18);
  --accent-badge-border: rgba(6, 182, 212, 0.35);
  --accent-badge-text: #67e8f9;
  --accent-highlight: #22d3ee;
  --status-success-bg: rgba(16, 185, 129, 0.15);
  --status-success-border: rgba(16, 185, 129, 0.3);
  --status-success-text: #34d399;
  --status-neutral-bg: rgba(138, 184, 198, 0.1);
  --status-neutral-border: rgba(138, 184, 198, 0.2);
  --status-neutral-text: #8ab8c6;
  --stepper-active-bg: rgba(6, 182, 212, 0.12);
  --stepper-active-border: #06b6d4;
  --step-completed-bg: rgba(6, 182, 212, 0.14);
  --step-completed-border: rgba(6, 182, 212, 0.3);
  --step-completed-text: #67e8f9;
}

/* --------------------------------------------------------------------------
   BRAND 8: OBSIDIAN SLATE (Stealth Industrial Monochrome)
   -------------------------------------------------------------------------- */
[data-brand="slate"][data-theme="light"] {
  --brand-shell-bg: #1e293b;
  --brand-shell-text: #ffffff;
  --brand-shell-muted: #94a3b8;
  --brand-shell-active: #334155;
  --brand-shell-border: rgba(255, 255, 255, 0.12);
  --bg-base: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #e2e8f0;
  --border-subtle: #cbd5e1;
  --border-focus: #475569;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --accent-primary: #475569;
  --accent-primary-hover: #334155;
  --accent-badge-bg: #e2e8f0;
  --accent-badge-border: #cbd5e1;
  --accent-badge-text: #1e293b;
  --accent-highlight: #64748b;
  --status-success-bg: #dcfce7;
  --status-success-border: #bbf7d0;
  --status-success-text: #15803d;
  --status-neutral-bg: #f8fafc;
  --status-neutral-border: #e2e8f0;
  --status-neutral-text: #64748b;
  --stepper-active-bg: #f1f5f9;
  --stepper-active-border: #475569;
  --step-completed-bg: #f1f5f9;
  --step-completed-border: #cbd5e1;
  --step-completed-text: #334155;
}

[data-brand="slate"][data-theme="vibrant"] {
  --brand-shell-bg: #1e293b;
  --brand-shell-text: #ffffff;
  --brand-shell-muted: #94a3b8;
  --brand-shell-active: #334155;
  --brand-shell-border: rgba(255, 255, 255, 0.15);
  --bg-base: #dde3eb;
  --bg-surface: #edf1f7;
  --bg-surface-elevated: #cbd5e1;
  --border-subtle: #b3c2d4;
  --border-focus: #475569;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --accent-primary: #475569;
  --accent-primary-hover: #334155;
  --accent-badge-bg: #e2e8f0;
  --accent-badge-border: #cbd5e1;
  --accent-badge-text: #1e293b;
  --accent-highlight: #64748b;
  --status-success-bg: #dcfce7;
  --status-success-border: #86efac;
  --status-success-text: #15803d;
  --status-neutral-bg: #f8fafc;
  --status-neutral-border: #e2e8f0;
  --status-neutral-text: #64748b;
  --stepper-active-bg: #e2e8f0;
  --stepper-active-border: #475569;
  --step-completed-bg: #e2e8f0;
  --step-completed-border: #cbd5e1;
  --step-completed-text: #334155;
}

[data-brand="slate"][data-theme="dim"] {
  --brand-shell-bg: #151b26;
  --brand-shell-text: #f8fafc;
  --brand-shell-muted: #8a99ad;
  --brand-shell-active: #242e3f;
  --brand-shell-border: rgba(255, 255, 255, 0.1);
  --bg-base: #1a2230;
  --bg-surface: #222c3d;
  --bg-surface-elevated: #2b374c;
  --border-subtle: #374760;
  --border-focus: #94a3b8;
  --text-primary: #f8fafc;
  --text-secondary: #a3b2c6;
  --text-muted: #7889a0;
  --accent-primary: #94a3b8;
  --accent-primary-hover: #cbd5e1;
  --accent-badge-bg: rgba(148, 163, 184, 0.18);
  --accent-badge-border: rgba(148, 163, 184, 0.35);
  --accent-badge-text: #e2e8f0;
  --accent-highlight: #cbd5e1;
  --status-success-bg: rgba(16, 185, 129, 0.18);
  --status-success-border: rgba(16, 185, 129, 0.32);
  --status-success-text: #34d399;
  --status-neutral-bg: rgba(255, 255, 255, 0.08);
  --status-neutral-border: rgba(255, 255, 255, 0.15);
  --status-neutral-text: #a3b2c6;
  --stepper-active-bg: rgba(148, 163, 184, 0.16);
  --stepper-active-border: #94a3b8;
  --step-completed-bg: rgba(148, 163, 184, 0.16);
  --step-completed-border: rgba(148, 163, 184, 0.32);
  --step-completed-text: #e2e8f0;
}

[data-brand="slate"][data-theme="dark"] {
  --brand-shell-bg: #0c1017;
  --brand-shell-text: #f8fafc;
  --brand-shell-muted: #798698;
  --brand-shell-active: #171f2c;
  --brand-shell-border: rgba(255, 255, 255, 0.08);
  --bg-base: #090d13;
  --bg-surface: #101620;
  --bg-surface-elevated: #17202e;
  --border-subtle: #222e40;
  --border-focus: #94a3b8;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #94a3b8;
  --accent-primary-hover: #cbd5e1;
  --accent-badge-bg: rgba(148, 163, 184, 0.18);
  --accent-badge-border: rgba(148, 163, 184, 0.35);
  --accent-badge-text: #e2e8f0;
  --accent-highlight: #cbd5e1;
  --status-success-bg: rgba(16, 185, 129, 0.15);
  --status-success-border: rgba(16, 185, 129, 0.3);
  --status-success-text: #34d399;
  --status-neutral-bg: rgba(148, 163, 184, 0.1);
  --status-neutral-border: rgba(148, 163, 184, 0.2);
  --status-neutral-text: #94a3b8;
  --stepper-active-bg: rgba(148, 163, 184, 0.12);
  --stepper-active-border: #94a3b8;
  --step-completed-bg: rgba(148, 163, 184, 0.14);
  --step-completed-border: rgba(148, 163, 184, 0.3);
  --step-completed-text: #e2e8f0;
}

/* --------------------------------------------------------------------------
   BACKWARD COMPATIBILITY TOKENS (Required for automated tests & legacy components)
   -------------------------------------------------------------------------- */
:root {
  --bg-primary: var(--bg-base);
  --accent-cyan: var(--accent-highlight);
  --card-bg: var(--bg-surface);
  --text-main: var(--text-primary);
  --text-dim: var(--text-muted);
  --accent-emerald: var(--status-success-text);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  transition: background 0.15s ease, color 0.15s ease;
}

/* SVG Line Icons */
.icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  vertical-align: middle;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   APP SHELL LAYOUT (PERSISTENT BRAND SIDEBAR + TOP NAV)
   ========================================================================== */
.app-layout-wrapper {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.app-sidebar {
  background: var(--brand-shell-bg);
  color: var(--brand-shell-text);
  border-right: 1px solid var(--brand-shell-border);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
  transition: background 0.15s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
  color: #ffffff;
  text-decoration: none;
}

.sidebar-brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.sidebar-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  color: var(--brand-shell-muted);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.12s ease;
}

.sidebar-item a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sidebar-item.active a {
  background: var(--brand-shell-active);
  color: #ffffff;
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--accent-highlight);
}

.sidebar-footer {
  border-top: 1px solid var(--brand-shell-border);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #ffffff;
}

/* Main Work Area Container */
.app-main {
  display: flex;
  flex-direction: column;
  background: var(--bg-base);
  min-width: 0;
}

/* Top Nav with Controls */
.app-top-nav {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
  position: sticky;
  top: 0;
  z-index: 40;
  gap: 1rem;
  flex-wrap: wrap;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumbs .current {
  color: var(--text-primary);
  font-weight: 700;
}

.compliance-stamp {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--status-neutral-bg);
  border: 1px solid var(--status-neutral-border);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.controls-cluster {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.segmented-control {
  display: flex;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.segmented-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.12s ease;
}

.segmented-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* ==========================================================================
   MASTER-DETAIL LEARNING LAYOUT
   ========================================================================== */
.main-content-body {
  padding: 1.75rem 2rem;
  flex: 1;
}

.master-detail-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Left Syllabus Stepper Column */
.syllabus-column {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.syllabus-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.syllabus-stepper {
  display: flex;
  flex-direction: column;
}

.step-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.12s ease;
  position: relative;
}

.step-row:hover {
  background: var(--bg-surface-elevated);
}

.step-row.active {
  background: var(--stepper-active-bg);
}

.step-row.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--stepper-active-border);
}

.step-icon-box {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-row.completed .step-icon-box {
  background: var(--step-completed-bg, var(--accent-badge-bg));
  border: 1px solid var(--step-completed-border, var(--accent-badge-border));
  color: var(--step-completed-text, var(--accent-highlight));
}

.step-row.active .step-icon-box {
  background: var(--accent-primary);
  color: #ffffff;
}

.step-row.locked .step-icon-box {
  background: var(--status-neutral-bg);
  border: 1px solid var(--status-neutral-border);
  color: var(--text-muted);
}

.step-meta h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}

.step-meta p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Right Learning Player Canvas */
.player-canvas-pro {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.player-pro-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
}

.player-pro-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 480px;
}

.pro-framing-box {
  padding: 1.5rem;
  border-right: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pro-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pro-framing-text {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-primary);
  padding: 1.2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.pro-script-box {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
}

.pro-decision-label {
  padding: 0.9rem 1.1rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: all 0.12s ease;
  color: var(--text-primary);
}

.pro-decision-label:hover {
  border-color: var(--border-focus);
}

.pro-decision-label.selected {
  border-color: var(--accent-primary);
  background: var(--stepper-active-bg);
}

.pro-decision-label.choice-correct {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.12) !important;
}

.pro-decision-label.choice-incorrect {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.12) !important;
}

.pro-decision-label.disabled {
  cursor: default !important;
  opacity: 0.9;
}

.keyboard-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-muted);
  margin-left: auto;
  flex-shrink: 0;
}

.pro-graphic-callout {
  margin-top: auto;
  padding: 0.75rem 1rem;
  background: var(--status-neutral-bg);
  border: 1px solid var(--status-neutral-border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.player-pro-footer {
  background: var(--bg-surface);
  padding: 0.9rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Buttons */
.btn-pro-primary, .btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}

.btn-pro-primary:hover, .btn-primary:hover {
  background: var(--accent-primary-hover);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-secondary:hover {
  border-color: var(--border-focus);
}

.pill-badge {
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pill-brand {
  background: var(--accent-badge-bg);
  border: 1px solid var(--accent-badge-border);
  color: var(--accent-badge-text);
}

.progress-bar-thin {
  width: 90px;
  height: 6px;
  background: var(--border-subtle);
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
}

.progress-bar-fill-thin {
  height: 100%;
  background: var(--accent-highlight);
  border-radius: 3px;
}

/* ==========================================================================
   LEGACY MODAL & QUIZ SUPPORT (For automated tests & dialogs)
   ========================================================================== */
.modal-overlay, .modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-overlay.active, .modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card, .modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover { color: var(--text-primary); }

/* Interactive Email Inspector (Required by tests) */
.phish-inspector {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
}

.inspector-instruction {
  background: var(--accent-badge-bg);
  border-left: 3px solid var(--accent-primary);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--accent-badge-text);
  margin-bottom: 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.email-mockup {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.email-header-row {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
}

.email-header-label {
  width: 70px;
  color: var(--text-muted);
  font-weight: 600;
}

.email-inspectable {
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.email-inspectable:hover {
  background: var(--accent-badge-bg);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--border-focus);
}

/* Certificate Card */
.cert-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}

.cert-border {
  border: 1px dashed var(--accent-highlight);
  border-radius: var(--radius-md);
  padding: 2rem;
}

/* Utility Containers required by tests */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.module-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.module-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-highlight);
  box-shadow: 0 8px 24px -4px var(--shadow-ambient);
}

/* One-Question-at-a-time Interactive Quiz Assessment */
.quiz-progress-track {
  width: 100%;
  height: 5px;
  background: var(--bg-surface-elevated);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.75rem 0 1.5rem;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--accent-primary);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.quiz-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quiz-step-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.quiz-question-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.quiz-options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.quiz-option-btn {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  color: var(--text-primary);
  font-size: 0.88rem;
  line-height: 1.45;
  width: 100%;
}

.quiz-option-btn:hover:not(:disabled) {
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.05);
}

.quiz-option-btn.selected {
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 0 1px var(--accent-primary);
}

.quiz-option-btn.correct {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.1) !important;
  box-shadow: 0 0 0 1px #10b981 !important;
}

.quiz-option-btn.incorrect {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.1) !important;
  box-shadow: 0 0 0 1px #ef4444 !important;
}

.quiz-option-btn:disabled {
  cursor: default;
}

.quiz-option-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border-subtle);
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.18s ease;
}

.quiz-option-btn.selected .quiz-option-indicator {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
}

.quiz-option-btn.correct .quiz-option-indicator {
  border-color: #10b981;
  background: #10b981;
  color: #fff;
}

.quiz-option-btn.incorrect .quiz-option-indicator {
  border-color: #ef4444;
  background: #ef4444;
  color: #fff;
}

.quiz-feedback-box {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  border-radius: 8px;
  border-left: 4px solid;
  animation: fadeInFeedback 0.25s ease-out;
}

@keyframes fadeInFeedback {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-feedback-box.feedback-correct {
  background: rgba(16, 185, 129, 0.08);
  border-left-color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-left-width: 4px;
}

.quiz-feedback-box.feedback-incorrect {
  background: rgba(239, 68, 68, 0.08);
  border-left-color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-left-width: 4px;
}

.quiz-feedback-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}

.feedback-correct .quiz-feedback-header {
  color: #10b981;
}

.feedback-incorrect .quiz-feedback-header {
  color: #ef4444;
}

.quiz-feedback-text {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Assessment Review & Remediation Styles */
.quiz-review-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.5rem 0;
}

.quiz-review-summary-banner {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.quiz-review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.quiz-review-question-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
  font-family: var(--font-mono);
}

.quiz-review-scenario-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

.quiz-review-choice-box {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.quiz-review-choice-incorrect {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--text-primary);
}

.quiz-review-choice-correct {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--text-primary);
}

.remediation-refresher-card {
  background: var(--bg-surface);
  border: 1px solid var(--accent-primary);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.remediation-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.remediation-takeaways-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.remediation-takeaways-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.remediation-takeaways-list li::before {
  content: "•";
  position: absolute;
  left: 0.3rem;
  color: var(--accent-primary);
  font-weight: bold;
}

/* ==========================================================================
   ENTERPRISE ADMIN & DATA TABLE STYLES
   ========================================================================== */
.stats-bar, .metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.stat-card, .metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover, .metric-card:hover {
  border-color: var(--accent-highlight);
  box-shadow: 0 4px 16px -2px var(--shadow-ambient);
}

.stat-header, .metric-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.stat-value, .metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.2;
}

.data-table-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.data-table th {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.data-table tr:hover td {
  background: var(--bg-surface-elevated);
}

.tab-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.tab-nav-btn {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-nav-btn:hover {
  color: var(--text-primary);
}

.tab-nav-btn.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .app-layout-wrapper {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    height: auto;
    position: relative;
  }
  .master-detail-grid {
    grid-template-columns: 1fr;
  }
  .player-pro-grid {
    grid-template-columns: 1fr;
  }
}

/* Full-Screen Dedicated Authentication Gate */
.auth-gate-screen {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}

.auth-gate-screen::before {
  content: '';
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* Certificate Cube Cards */
.cert-cube-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.cert-cube-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   PRINT / PDF EXPORT STYLES
   ========================================================================== */
@media print {
  @page {
    size: landscape;
    margin: 1cm;
  }

  body, html {
    background: #ffffff !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12pt !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Hide app navigation, sidebars, buttons, and background chrome */
  #app-layout,
  .app-sidebar,
  .top-header,
  .segmented-control,
  #close-cert-btn,
  #dismiss-cert-btn,
  button,
  .btn,
  .btn-pro-primary,
  .btn-pro-secondary,
  .modal-header {
    display: none !important;
  }

  /* Show only the Certificate Modal content in full clean layout */
  #cert-modal {
    position: static !important;
    display: block !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
  }

  #cert-modal .modal-card {
    position: static !important;
    display: block !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  #cert-display-container {
    display: block !important;
    width: 100% !important;
  }

  .cert-card {
    background: #ffffff !important;
    border: 4px double #1e293b !important;
    border-radius: 8px !important;
    padding: 2.5rem !important;
    color: #0f172a !important;
    box-shadow: none !important;
  }

  .cert-border {
    border: 1px solid #94a3b8 !important;
    border-radius: 4px !important;
    padding: 3rem 2rem !important;
    text-align: center !important;
    background: #ffffff !important;
  }

  .cert-border h2 {
    color: #0f172a !important;
    font-size: 2.4rem !important;
    font-weight: 800 !important;
    margin: 1.25rem 0 !important;
  }

  .cert-border p {
    color: #475569 !important;
    font-size: 1.05rem !important;
    max-width: 600px !important;
    margin: 0 auto 1.5rem !important;
  }

  .cert-border div {
    color: #1e293b !important;
    font-size: 1rem !important;
  }

  .cert-border button {
    display: none !important;
  }
}

/* ==============================================================================
   Sidebar Settings Popover & Dual-Axis Theme Controller
   ============================================================================== */
.sidebar-settings-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--brand-shell-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  flex-shrink: 0;
}

.sidebar-settings-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: rotate(20deg);
}

.sidebar-settings-btn.active {
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  transform: rotate(45deg);
}

.sidebar-footer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Primary Settings Popover */
.settings-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: 220px;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.97);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.18s;
  pointer-events: none;
}

.settings-popover.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.settings-menu-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  position: relative;
}

.settings-menu-item:hover,
.settings-menu-item.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.settings-menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.settings-menu-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.35rem 0.25rem;
}

/* Secondary Sub-Flyout (Dual-Axis Theme Controller) */
.theme-flyout {
  position: absolute;
  left: calc(100% + 10px);
  bottom: 0;
  width: 290px;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px) scale(0.97);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.18s;
  pointer-events: none;
  z-index: 1001;
}

.theme-flyout.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.theme-flyout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.theme-flyout-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.theme-flyout-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: capitalize;
}

.theme-dual-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  align-items: center;
}

/* Color Wheel Pane */
.wheel-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.color-wheel-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  touch-action: none;
  user-select: none;
  cursor: grab;
}

.color-wheel-wrapper:active,
.color-wheel-wrapper.dragging {
  cursor: grabbing;
}

.color-wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.color-wheel-center-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 2px solid rgba(255, 255, 255, 0.9);
  transition: background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 0 12px var(--accent-primary);
}

/* Curved Rotating Trapezoid (Sector Lens) */
.color-wheel-lens-group {
  transform-origin: 60px 60px;
  pointer-events: none;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.color-wheel-lens-group.dragging {
  transition: none;
}

.wheel-lens-path {
  fill: rgba(255, 255, 255, 0.2);
  stroke: #ffffff;
  stroke-width: 2.2px;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.65));
  transition: fill 0.15s ease;
}

.wheel-lens-pip {
  fill: #ffffff;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}

.color-wheel-handle {
  display: none;
}

.wheel-tick {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.wheel-tick.active {
  background: #ffffff;
  transform: translate(-50%, -50%) scale(1.6);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.85);
}

/* Brightness Slider Pane */
.slider-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.brightness-track {
  position: relative;
  width: 34px;
  height: 142px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.brightness-thumb {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: top 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease;
  pointer-events: none;
  z-index: 1;
}

.brightness-stop {
  position: relative;
  z-index: 2;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 0.65rem;
  transition: color 0.15s ease;
}

.brightness-stop.active {
  color: #ffffff;
}

.brightness-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   CINEMATIC WALKTHROUGH & AUDIO SLIDESHOW PLAYER
   ========================================================================== */

/* Dual-Mode Toggle in Header */
.player-mode-toggle {
  display: inline-flex;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.segmented-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.segmented-mode-btn:hover {
  color: var(--text-primary);
}

.segmented-mode-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Cinematic Video Viewport Stage */
.cinematic-stage {
  margin-bottom: 1.5rem;
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}

.cinematic-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  background: #060911;
  overflow: hidden;
  user-select: none;
}

.cinematic-slide-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
  pointer-events: none;
}

.cinematic-slide-layer.slide-active {
  opacity: 1;
  z-index: 2;
}

.cinematic-slide-layer.slide-inactive {
  opacity: 0;
  z-index: 1;
}

/* Hardware-Accelerated 60fps Ken Burns Motion Classes */
.ken-burns-zoom-in {
  animation: kbZoomIn 16s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.ken-burns-zoom-out {
  animation: kbZoomOut 16s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.ken-burns-pan-right {
  animation: kbPanRight 16s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.ken-burns-pan-left {
  animation: kbPanLeft 16s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes kbZoomIn {
  from {
    transform: scale(1.0) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(-1%, -1%, 0);
  }
}

@keyframes kbZoomOut {
  from {
    transform: scale(1.14) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.0) translate3d(1%, 1%, 0);
  }
}

@keyframes kbPanRight {
  from {
    transform: scale(1.08) translate3d(-3%, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(3%, 0, 0);
  }
}

@keyframes kbPanLeft {
  from {
    transform: scale(1.08) translate3d(3%, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-3%, 0, 0);
  }
}

/* Vignette Ambient Shadow */
.cinematic-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 40%, rgba(5, 8, 15, 0.65) 100%),
              linear-gradient(to top, rgba(5, 8, 15, 0.85) 0%, transparent 35%);
}

/* Slide Caption Banner */
.cinematic-caption-banner {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 4;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f1f5f9;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cinematic-caption-banner.visible {
  opacity: 1;
}

/* Synchronized Subtitles / Closed Caption Pill */
.subtitles-overlay {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 90%;
  max-width: 680px;
  display: flex;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.subtitles-pill {
  background: rgba(9, 13, 22, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.subtitles-pill.active {
  opacity: 1;
  transform: translateY(0);
}

/* Cinematic Transport Controls Bar */
.cinematic-controls-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
}

.cinematic-ctrl-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cinematic-ctrl-btn:hover {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  color: var(--accent-primary);
}

.cinematic-time-text {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  min-width: 80px;
}

.cinematic-scrub-track {
  flex: 1;
  height: 6px;
  background: var(--border-subtle);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: height 0.15s ease;
}

.cinematic-scrub-track:hover {
  height: 8px;
}

.cinematic-scrub-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--accent-primary);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.cinematic-ctrl-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.cinematic-ctrl-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.cinematic-ctrl-pill.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Cinematic Interactive Stage Overlay (Frosted Glass) */
.cinematic-interactive-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: color-mix(in srgb, var(--accent-primary) 12%, rgba(9, 13, 22, 0.90));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cinematic-interactive-overlay.overlay-visible {
  opacity: 1;
  pointer-events: auto;
}

.cinematic-overlay-panel {
  max-width: 680px;
  width: 100%;
  max-height: 90%;
  overflow-y: auto;
  text-align: left;
  animation: overlayPanelFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes overlayPanelFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cinematic-overlay-drill-header {
  margin-bottom: 0.75rem;
}

.cinematic-drill-scenario {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border-left: 3px solid var(--accent-primary);
}

.cinematic-drill-prompt {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.35;
}

.cinematic-drill-options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.cinematic-drill-option-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #f1f5f9;
  cursor: pointer;
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.4;
  transition: all 0.2s ease;
  width: 100%;
}

.cinematic-drill-option-card:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.cinematic-drill-option-card.selected-correct {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10b981;
  color: #ffffff;
}

.cinematic-drill-option-card.selected-incorrect {
  background: rgba(239, 68, 68, 0.18);
  border-color: #ef4444;
  color: #ffffff;
}

.cinematic-drill-option-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cinematic-drill-feedback {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.cinematic-drill-feedback.feedback-correct {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #d1fae5;
}

.cinematic-drill-feedback.feedback-incorrect {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fee2e2;
}

/* Completion Panel */
#cinematic-overlay-completion {
  text-align: center;
}

.cinematic-overlay-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.cinematic-overlay-check-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid #10b981;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cinematic-completion-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.cinematic-completion-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto 1.5rem auto;
}

.cinematic-overlay-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.cinematic-overlay-actions.center-actions {
  justify-content: center;
}

.btn-overlay-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn-overlay-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-overlay-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f1f5f9;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-overlay-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: translateY(-1px);
}




