
    @font-face {
      font-family: "Montserrat";
      font-style: normal;
      font-weight: 100 900;
      font-display: swap;
      src: url("../fonts/montserrat-latin.woff2") format("woff2");
    }

    :root {
      --radius: 18px;
      --radius-sm: 12px;
      --radius-inner: 14px;
      --max: 1280px;
      --heading-font: "Segoe UI Variable Display", "Aptos Display", "Aptos", "Segoe UI", Arial, sans-serif;
      --body-font: "Segoe UI Variable", "Aptos", "Segoe UI", Arial, sans-serif;
      --certificate-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
      --ink: #141821;
      --muted: #616c80;
      --line: rgba(20, 24, 33, 0.1);
      --line-strong: rgba(20, 24, 33, 0.16);
      --paper: #fbfcfe;
      --surface: rgba(255, 255, 255, 0.96);
      --surface-2: rgba(247, 249, 252, 0.98);
      --surface-3: #eef2f7;
      --soft: #f4f7fb;
      --band: #e6ecf4;
      --blue: #141821;
      --blue-2: #3049b8;
      --navy: #ffffff;
      --cyan: #365ccf;
      --green: #18815f;
      --gold: #b38a2f;
      --red: #c2564c;
      --page-start: #f5f7fb;
      --page-end: #edf1f6;
      --page-ambient-1: rgba(54, 92, 207, 0.08);
      --page-ambient-2: rgba(24, 129, 95, 0.05);
      --shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
      --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.05);
      --panel-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.97));
      --chart-primary: #1d2433;
      --chart-grid: rgba(54, 92, 207, 0.14);
      --chart-fill: rgba(54, 92, 207, 0.12);
      --focus-ring: rgba(54, 92, 207, 0.18);
      --hero-ink: #ffffff;
      --hero-muted: rgba(235, 239, 247, 0.8);
      --hero-card: rgba(255, 255, 255, 0.06);
      --hero-card-border: rgba(255, 255, 255, 0.1);
      --button-bg: #2453d4;
      --button-text: #ffffff;
      --ghost-bg: rgba(255, 255, 255, 0.92);
      --ghost-text: #162133;
      --ghost-border: rgba(36, 83, 212, 0.14);
      --badge-bg: rgba(36, 83, 212, 0.08);
      --badge-text: #3150a2;
      --brand-top: #26334a;
      --brand-bottom: #111827;
      --brand-glow: rgba(54, 92, 207, 0.22);
      --theme-shell-radius: 16px;
      --theme-shell-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
      --theme-shell-bg: var(--panel-sheen);
      --theme-shell-border: var(--line);
      --theme-shell-shadow: var(--shadow-soft);
      --theme-shell-outline: transparent;
      --theme-report-bg: color-mix(in srgb, var(--surface) 82%, white 18%);
      --theme-report-shadow: none;
      --theme-report-radius: 14px;
      --theme-directory-active-bg: linear-gradient(180deg, rgba(241, 246, 255, 0.98), rgba(232, 239, 253, 0.98));
      --theme-directory-active-border: rgba(36, 83, 212, 0.2);
      --theme-directory-active-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
      --theme-table-head-bg: linear-gradient(90deg, rgba(244, 247, 252, 1), rgba(238, 243, 250, 1));
      --theme-table-head-text: #455468;
      --theme-table-head-border: rgba(20, 24, 33, 0.08);
      --theme-table-row: transparent;
      --theme-table-row-alt: rgba(246, 249, 252, 0.8);
      --theme-table-row-hover: rgba(237, 243, 251, 0.9);
      --theme-table-row-border: var(--line);
      --theme-table-accent: rgba(54, 92, 207, 0.28);
      --theme-cert-paper: #ffffff;
      --theme-cert-paper-2: #f5f7fb;
      --theme-cert-glow: rgba(54, 92, 207, 0.08);
      --theme-cert-frame: rgba(20, 24, 33, 0.1);
      --theme-cert-frame-soft: rgba(54, 92, 207, 0.12);
      --theme-cert-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
      --theme-cert-head-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 247, 251, 0.98) 100%);
      --theme-cert-head-ink: #171a20;
      --theme-cert-kicker: #556177;
      --theme-cert-panel-bg: rgba(255, 255, 255, 0.92);
      --theme-cert-panel-border: rgba(20, 24, 33, 0.12);
      --theme-cert-route-wrap-bg: rgba(246, 248, 252, 0.84);
      --theme-cert-route-bg: rgba(255, 255, 255, 0.92);
      --theme-cert-route-border: rgba(20, 24, 33, 0.12);
      --theme-cert-chip-bg: rgba(246, 248, 252, 0.94);
      --theme-cert-chip-text: #475366;
      --theme-cert-watermark: rgba(20, 24, 33, 0.04);
      --theme-cert-table-head: #556177;
      --theme-cert-table-rule: rgba(20, 24, 33, 0.12);
      --theme-control-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 248, 252, 0.95));
      --theme-control-border: rgba(20, 24, 33, 0.1);
      --theme-control-text: var(--ink);
      --theme-control-muted: var(--muted);
      --theme-control-active-bg: linear-gradient(180deg, rgba(239, 244, 255, 1), rgba(231, 238, 252, 1));
      --theme-feature-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.96));
      --theme-feature-border: rgba(36, 83, 212, 0.12);
      --theme-feature-text: var(--ink);
      --theme-feature-muted: color-mix(in srgb, var(--muted) 88%, var(--ink) 12%);
      --theme-inverse-text: #171a20;
      --theme-inverse-muted: rgba(23, 26, 32, 0.76);
      --theme-inverse-grid: rgba(23, 26, 32, 0.12);
      --theme-inverse-grid-strong: rgba(23, 26, 32, 0.22);
      --theme-input-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 252, 0.98));
      --theme-input-border: rgba(20, 24, 33, 0.12);
      --theme-input-text: var(--ink);
      --theme-input-option-bg: var(--paper);
      --theme-input-option-text: var(--ink);
      --theme-cert-route-label: var(--theme-cert-kicker);
      --theme-cert-route-value: color-mix(in srgb, var(--ink) 88%, var(--blue-2) 12%);
      --theme-cert-brand-top: var(--brand-top);
      --theme-cert-brand-bottom: var(--brand-bottom);
      --theme-cert-score-core: color-mix(in srgb, var(--theme-cert-paper) 88%, white 12%);
    }

    body[data-theme="dark"] {
      --ink: #f5f7fb;
      --muted: #aab3c0;
      --line: rgba(170, 183, 204, 0.16);
      --line-strong: rgba(170, 183, 204, 0.24);
      --paper: #0b1017;
      --surface: rgba(14, 19, 27, 0.98);
      --surface-2: rgba(18, 24, 35, 0.98);
      --surface-3: #202a38;
      --soft: #141b26;
      --band: #192230;
      --blue: #f5f7fb;
      --blue-2: #9ab3ff;
      --navy: #090704;
      --cyan: #7ea6ff;
      --green: #53c98d;
      --gold: #d6b36d;
      --red: #ff9b90;
      --page-start: #091019;
      --page-end: #0d141f;
      --page-ambient-1: rgba(126, 166, 255, 0.08);
      --page-ambient-2: rgba(83, 201, 141, 0.04);
      --shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
      --shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.18);
      --panel-sheen: linear-gradient(180deg, rgba(17, 23, 32, 0.98), rgba(13, 18, 27, 0.98));
      --chart-primary: #f5f7fb;
      --chart-grid: rgba(154, 179, 255, 0.2);
      --chart-fill: rgba(154, 179, 255, 0.14);
      --focus-ring: rgba(126, 166, 255, 0.22);
      --hero-ink: #fffdf8;
      --hero-muted: rgba(229, 235, 244, 0.8);
      --hero-card: rgba(255, 255, 255, 0.04);
      --hero-card-border: rgba(154, 179, 255, 0.14);
      --button-bg: #7ca5ff;
      --button-text: #081019;
      --ghost-bg: rgba(255, 255, 255, 0.02);
      --ghost-text: #f5f7fb;
      --ghost-border: rgba(124, 165, 255, 0.2);
      --badge-bg: rgba(124, 165, 255, 0.14);
      --badge-text: #dbe7ff;
      --brand-top: #31405a;
      --brand-bottom: #0b1017;
      --brand-glow: rgba(126, 166, 255, 0.2);
      --theme-control-bg: linear-gradient(180deg, rgba(19, 26, 37, 0.98), rgba(15, 20, 29, 0.98));
      --theme-control-border: rgba(170, 183, 204, 0.18);
      --theme-control-text: var(--ink);
      --theme-control-muted: color-mix(in srgb, var(--muted) 88%, white 12%);
      --theme-control-active-bg: linear-gradient(180deg, rgba(29, 41, 62, 1), rgba(22, 31, 45, 1));
      --theme-feature-bg: linear-gradient(180deg, rgba(19, 26, 37, 0.98), rgba(16, 22, 31, 0.98));
      --theme-feature-border: rgba(124, 165, 255, 0.14);
      --theme-feature-text: var(--ink);
      --theme-feature-muted: color-mix(in srgb, var(--muted) 90%, white 10%);
      --theme-inverse-text: #171a20;
      --theme-inverse-muted: rgba(23, 26, 32, 0.78);
      --theme-inverse-grid: rgba(23, 26, 32, 0.12);
      --theme-inverse-grid-strong: rgba(23, 26, 32, 0.24);
      --theme-input-bg: linear-gradient(180deg, rgba(16, 23, 33, 0.98), rgba(13, 19, 28, 0.98));
      --theme-input-border: rgba(170, 183, 204, 0.18);
      --theme-input-text: var(--ink);
      --theme-input-option-bg: #101720;
      --theme-input-option-text: #f5f7fb;
    }

    body[data-brand-theme="theme-2"] { --ink: #081525; --muted: #506276; --paper: #ffffff; --surface: rgba(255, 255, 255, 0.97); --surface-2: rgba(243, 248, 255, 0.96); --surface-3: #eaf2ff; --soft: #edf4ff; --band: #d9e8ff; --blue: #081525; --blue-2: #194eb9; --navy: #ffffff; --cyan: #194eb9; --green: #0f8a5f; --gold: #194eb9; --red: #c5544d; --page-start: #f5f9ff; --page-end: #e2eeff; --page-ambient-1: rgba(25, 78, 185, 0.14); --page-ambient-2: rgba(15, 138, 95, 0.08); --shadow: 0 26px 56px rgba(20, 36, 74, 0.12); --shadow-soft: 0 12px 28px rgba(20, 36, 74, 0.08); --panel-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(240, 246, 255, 0.98)); --chart-primary: #081525; --chart-grid: rgba(25, 78, 185, 0.18); --chart-fill: rgba(25, 78, 185, 0.16); --focus-ring: rgba(25, 78, 185, 0.24); --hero-ink: #ffffff; --hero-muted: rgba(230, 240, 255, 0.84); --hero-card: rgba(255, 255, 255, 0.07); --hero-card-border: rgba(110, 162, 255, 0.28); --button-bg: #123b8f; --button-text: #ffffff; --ghost-bg: rgba(255, 255, 255, 0.84); --ghost-text: #081525; --ghost-border: rgba(25, 78, 185, 0.22); --badge-bg: rgba(25, 78, 185, 0.12); --badge-text: #184092; --brand-top: #123b8f; --brand-bottom: #08111d; --brand-glow: rgba(15, 138, 95, 0.22); }
    body[data-brand-theme="theme-3"] { --ink: #0a221b; --muted: #4f665f; --paper: #fcfffc; --surface: rgba(253, 255, 251, 0.97); --surface-2: rgba(245, 255, 250, 0.96); --surface-3: #ebfbf2; --soft: #eefbf5; --band: #d7f1e6; --blue: #0a221b; --blue-2: #0f6f57; --navy: #ffffff; --cyan: #0f8f69; --green: #57b88a; --gold: #0f8f69; --red: #cc6856; --page-start: #f4fff8; --page-end: #e3f7ec; --page-ambient-1: rgba(18, 122, 94, 0.13); --page-ambient-2: rgba(87, 184, 138, 0.08); --shadow: 0 26px 56px rgba(18, 70, 56, 0.12); --shadow-soft: 0 12px 28px rgba(18, 70, 56, 0.08); --panel-sheen: linear-gradient(180deg, rgba(254, 255, 253, 0.99), rgba(240, 251, 245, 0.98)); --chart-primary: #0a221b; --chart-grid: rgba(18, 122, 94, 0.18); --chart-fill: rgba(18, 122, 94, 0.16); --focus-ring: rgba(18, 122, 94, 0.22); --hero-ink: #ffffff; --hero-muted: rgba(228, 247, 240, 0.84); --hero-card: rgba(255, 255, 255, 0.08); --hero-card-border: rgba(87, 184, 138, 0.26); --button-bg: #0f6f57; --button-text: #ffffff; --ghost-bg: rgba(255, 255, 255, 0.82); --ghost-text: #0a221b; --ghost-border: rgba(18, 122, 94, 0.22); --badge-bg: rgba(18, 122, 94, 0.12); --badge-text: #0c5c47; --brand-top: #158866; --brand-bottom: #072019; --brand-glow: rgba(87, 184, 138, 0.22); }
    body[data-brand-theme="theme-4"] { --ink: #261118; --muted: #70545d; --paper: #fffdf9; --surface: rgba(255, 251, 248, 0.97); --surface-2: rgba(255, 246, 243, 0.96); --surface-3: #faece8; --soft: #faefeb; --band: #f1ddd6; --blue: #261118; --blue-2: #962a46; --navy: #ffffff; --cyan: #bb4668; --green: #d3a36a; --gold: #962a46; --red: #c14f51; --page-start: #fff8f6; --page-end: #f6e6df; --page-ambient-1: rgba(150, 42, 70, 0.12); --page-ambient-2: rgba(211, 163, 106, 0.08); --shadow: 0 26px 56px rgba(82, 28, 43, 0.13); --shadow-soft: 0 12px 28px rgba(82, 28, 43, 0.08); --panel-sheen: linear-gradient(180deg, rgba(255, 252, 250, 0.99), rgba(249, 239, 234, 0.98)); --chart-primary: #261118; --chart-grid: rgba(150, 42, 70, 0.18); --chart-fill: rgba(150, 42, 70, 0.16); --focus-ring: rgba(150, 42, 70, 0.22); --hero-ink: #ffffff; --hero-muted: rgba(251, 231, 225, 0.84); --hero-card: rgba(255, 255, 255, 0.08); --hero-card-border: rgba(211, 163, 106, 0.26); --button-bg: #7f203a; --button-text: #ffffff; --ghost-bg: rgba(255, 252, 249, 0.84); --ghost-text: #261118; --ghost-border: rgba(150, 42, 70, 0.22); --badge-bg: rgba(150, 42, 70, 0.12); --badge-text: #7a1f37; --brand-top: #8b2240; --brand-bottom: #271018; --brand-glow: rgba(211, 163, 106, 0.24); }
    body[data-brand-theme="theme-5"] { --ink: #082329; --muted: #50686b; --paper: #fbffff; --surface: rgba(251, 255, 255, 0.97); --surface-2: rgba(241, 252, 252, 0.96); --surface-3: #e8f8f8; --soft: #ecf8f8; --band: #d6f0f1; --blue: #082329; --blue-2: #127d84; --navy: #ffffff; --cyan: #17a0a8; --green: #d39a2e; --gold: #127d84; --red: #cf6540; --page-start: #f5ffff; --page-end: #e2f3f4; --page-ambient-1: rgba(18, 125, 132, 0.12); --page-ambient-2: rgba(211, 154, 46, 0.08); --shadow: 0 26px 56px rgba(17, 79, 83, 0.13); --shadow-soft: 0 12px 28px rgba(17, 79, 83, 0.08); --panel-sheen: linear-gradient(180deg, rgba(252, 255, 255, 0.99), rgba(237, 249, 249, 0.98)); --chart-primary: #082329; --chart-grid: rgba(18, 125, 132, 0.18); --chart-fill: rgba(18, 125, 132, 0.16); --focus-ring: rgba(18, 125, 132, 0.22); --hero-ink: #ffffff; --hero-muted: rgba(227, 246, 246, 0.84); --hero-card: rgba(255, 255, 255, 0.08); --hero-card-border: rgba(211, 154, 46, 0.26); --button-bg: #0f6870; --button-text: #ffffff; --ghost-bg: rgba(253, 255, 255, 0.84); --ghost-text: #082329; --ghost-border: rgba(18, 125, 132, 0.22); --badge-bg: rgba(18, 125, 132, 0.12); --badge-text: #0d5a60; --brand-top: #13808b; --brand-bottom: #071d22; --brand-glow: rgba(211, 154, 46, 0.22); }
    body[data-brand-theme="theme-6"] { --ink: #151332; --muted: #605d7a; --paper: #fbfbff; --surface: rgba(252, 252, 255, 0.97); --surface-2: rgba(243, 244, 255, 0.96); --surface-3: #ececff; --soft: #efefff; --band: #dcdcf7; --blue: #151332; --blue-2: #4a49c6; --navy: #ffffff; --cyan: #6b6de4; --green: #52c9a7; --gold: #4a49c6; --red: #db667e; --page-start: #f7f7ff; --page-end: #e8e8ff; --page-ambient-1: rgba(74, 73, 198, 0.12); --page-ambient-2: rgba(82, 201, 167, 0.08); --shadow: 0 26px 56px rgba(38, 36, 96, 0.13); --shadow-soft: 0 12px 28px rgba(38, 36, 96, 0.08); --panel-sheen: linear-gradient(180deg, rgba(253, 253, 255, 0.99), rgba(239, 239, 255, 0.98)); --chart-primary: #151332; --chart-grid: rgba(74, 73, 198, 0.18); --chart-fill: rgba(74, 73, 198, 0.16); --focus-ring: rgba(74, 73, 198, 0.22); --hero-ink: #ffffff; --hero-muted: rgba(234, 234, 255, 0.84); --hero-card: rgba(255, 255, 255, 0.08); --hero-card-border: rgba(82, 201, 167, 0.26); --button-bg: #3d3cb0; --button-text: #ffffff; --ghost-bg: rgba(255, 255, 255, 0.82); --ghost-text: #151332; --ghost-border: rgba(74, 73, 198, 0.22); --badge-bg: rgba(74, 73, 198, 0.12); --badge-text: #3736a0; --brand-top: #4a49c6; --brand-bottom: #141331; --brand-glow: rgba(82, 201, 167, 0.22); }
    body[data-brand-theme="theme-7"] { --ink: #28160f; --muted: #776257; --paper: #fffdfa; --surface: rgba(255, 252, 249, 0.97); --surface-2: rgba(255, 246, 241, 0.96); --surface-3: #f8ede7; --soft: #f9efea; --band: #f1dfd5; --blue: #28160f; --blue-2: #d06c4c; --navy: #ffffff; --cyan: #e28c70; --green: #74b2a3; --gold: #d06c4c; --red: #bc5144; --page-start: #fff8f3; --page-end: #f4e7df; --page-ambient-1: rgba(208, 108, 76, 0.12); --page-ambient-2: rgba(116, 178, 163, 0.08); --shadow: 0 26px 56px rgba(94, 46, 33, 0.13); --shadow-soft: 0 12px 28px rgba(94, 46, 33, 0.08); --panel-sheen: linear-gradient(180deg, rgba(255, 252, 250, 0.99), rgba(249, 239, 233, 0.98)); --chart-primary: #28160f; --chart-grid: rgba(208, 108, 76, 0.18); --chart-fill: rgba(208, 108, 76, 0.16); --focus-ring: rgba(208, 108, 76, 0.22); --hero-ink: #ffffff; --hero-muted: rgba(250, 232, 223, 0.84); --hero-card: rgba(255, 255, 255, 0.08); --hero-card-border: rgba(116, 178, 163, 0.26); --button-bg: #b55a3c; --button-text: #ffffff; --ghost-bg: rgba(255, 252, 249, 0.84); --ghost-text: #28160f; --ghost-border: rgba(208, 108, 76, 0.22); --badge-bg: rgba(208, 108, 76, 0.12); --badge-text: #a34f35; --brand-top: #cf6e4e; --brand-bottom: #28160f; --brand-glow: rgba(116, 178, 163, 0.22); }
    body[data-brand-theme="theme-8"] { --ink: #132014; --muted: #5f6e58; --paper: #fdfffb; --surface: rgba(253, 255, 251, 0.97); --surface-2: rgba(249, 253, 245, 0.96); --surface-3: #eff5e7; --soft: #f1f7ea; --band: #dfe8d3; --blue: #132014; --blue-2: #286643; --navy: #ffffff; --cyan: #36885a; --green: #d29b34; --gold: #286643; --red: #a95345; --page-start: #f8fdf5; --page-end: #e8f1dc; --page-ambient-1: rgba(40, 102, 67, 0.12); --page-ambient-2: rgba(210, 155, 52, 0.08); --shadow: 0 26px 56px rgba(36, 72, 37, 0.13); --shadow-soft: 0 12px 28px rgba(36, 72, 37, 0.08); --panel-sheen: linear-gradient(180deg, rgba(255, 255, 253, 0.99), rgba(243, 248, 236, 0.98)); --chart-primary: #132014; --chart-grid: rgba(40, 102, 67, 0.18); --chart-fill: rgba(40, 102, 67, 0.16); --focus-ring: rgba(40, 102, 67, 0.22); --hero-ink: #ffffff; --hero-muted: rgba(240, 247, 231, 0.84); --hero-card: rgba(255, 255, 255, 0.08); --hero-card-border: rgba(210, 155, 52, 0.26); --button-bg: #215538; --button-text: #ffffff; --ghost-bg: rgba(255, 255, 252, 0.84); --ghost-text: #132014; --ghost-border: rgba(40, 102, 67, 0.22); --badge-bg: rgba(40, 102, 67, 0.12); --badge-text: #1e4c32; --brand-top: #2b6a45; --brand-bottom: #132014; --brand-glow: rgba(210, 155, 52, 0.22); }
    body[data-brand-theme="theme-9"] { --ink: #201224; --muted: #756475; --paper: #fffafd; --surface: rgba(255, 251, 255, 0.97); --surface-2: rgba(250, 244, 252, 0.96); --surface-3: #f3eaf4; --soft: #f5edf7; --band: #ead9ea; --blue: #201224; --blue-2: #6e3a8a; --navy: #ffffff; --cyan: #8a56a8; --green: #c5865d; --gold: #6e3a8a; --red: #b64f68; --page-start: #fff8fd; --page-end: #f0e2ef; --page-ambient-1: rgba(110, 58, 138, 0.12); --page-ambient-2: rgba(197, 134, 93, 0.08); --shadow: 0 26px 56px rgba(70, 38, 86, 0.13); --shadow-soft: 0 12px 28px rgba(70, 38, 86, 0.08); --panel-sheen: linear-gradient(180deg, rgba(255, 252, 255, 0.99), rgba(246, 238, 247, 0.98)); --chart-primary: #201224; --chart-grid: rgba(110, 58, 138, 0.18); --chart-fill: rgba(110, 58, 138, 0.16); --focus-ring: rgba(110, 58, 138, 0.22); --hero-ink: #ffffff; --hero-muted: rgba(246, 235, 248, 0.84); --hero-card: rgba(255, 255, 255, 0.08); --hero-card-border: rgba(197, 134, 93, 0.26); --button-bg: #5e3177; --button-text: #ffffff; --ghost-bg: rgba(255, 252, 255, 0.84); --ghost-text: #201224; --ghost-border: rgba(110, 58, 138, 0.22); --badge-bg: rgba(110, 58, 138, 0.12); --badge-text: #562d6b; --brand-top: #743d91; --brand-bottom: #201224; --brand-glow: rgba(197, 134, 93, 0.22); }
    body[data-brand-theme="theme-10"] { --ink: #09131f; --muted: #5a6777; --paper: #fbfeff; --surface: rgba(251, 255, 255, 0.97); --surface-2: rgba(241, 249, 255, 0.96); --surface-3: #e9f2f8; --soft: #edf5fa; --band: #d9e7ef; --blue: #09131f; --blue-2: #1852d1; --navy: #ffffff; --cyan: #3d88ff; --green: #8ac437; --gold: #1852d1; --red: #d95e5e; --page-start: #f5fbff; --page-end: #e2eef4; --page-ambient-1: rgba(24, 82, 209, 0.12); --page-ambient-2: rgba(138, 196, 55, 0.08); --shadow: 0 26px 56px rgba(20, 47, 89, 0.13); --shadow-soft: 0 12px 28px rgba(20, 47, 89, 0.08); --panel-sheen: linear-gradient(180deg, rgba(252, 255, 255, 0.99), rgba(237, 245, 249, 0.98)); --chart-primary: #09131f; --chart-grid: rgba(24, 82, 209, 0.18); --chart-fill: rgba(24, 82, 209, 0.16); --focus-ring: rgba(24, 82, 209, 0.22); --hero-ink: #ffffff; --hero-muted: rgba(232, 243, 250, 0.84); --hero-card: rgba(255, 255, 255, 0.08); --hero-card-border: rgba(138, 196, 55, 0.26); --button-bg: #1244af; --button-text: #ffffff; --ghost-bg: rgba(254, 255, 255, 0.84); --ghost-text: #09131f; --ghost-border: rgba(24, 82, 209, 0.22); --badge-bg: rgba(24, 82, 209, 0.12); --badge-text: #1244af; --brand-top: #1a57d7; --brand-bottom: #08111d; --brand-glow: rgba(138, 196, 55, 0.22); }

    body[data-brand-theme] {
      --ink: #162133;
      --muted: #5f6d80;
      --paper: #f4f7fb;
      --surface: #ffffff;
      --surface-2: #f8fafc;
      --surface-3: #eef2f7;
      --soft: #e6edf5;
      --band: #dde6f1;
      --theme-shell-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0));
      --theme-shell-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
      --theme-shell-border: rgba(20, 24, 33, 0.09);
      --theme-shell-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
      --theme-report-bg: linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(244, 247, 251, 0.96));
      --theme-control-bg: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(247, 250, 252, 0.98));
      --theme-control-border: rgba(20, 24, 33, 0.1);
      --theme-control-text: var(--ink);
      --theme-control-muted: #617086;
      --theme-control-active-bg: linear-gradient(180deg, rgba(239, 244, 255, 1), rgba(231, 238, 252, 1));
      --theme-feature-bg: linear-gradient(180deg, rgba(245, 248, 253, 0.94), rgba(239, 243, 249, 0.94));
      --theme-feature-border: color-mix(in srgb, var(--button-bg) 16%, rgba(20, 24, 33, 0.08));
      --theme-feature-text: var(--ink);
      --theme-feature-muted: #5c697a;
      --theme-input-bg: #ffffff;
      --theme-input-border: rgba(20, 24, 33, 0.12);
      --theme-input-text: var(--ink);
      --theme-input-option-bg: #ffffff;
      --theme-input-option-text: var(--ink);
      --theme-directory-active-bg: linear-gradient(180deg, color-mix(in srgb, var(--button-bg) 8%, white 92%), color-mix(in srgb, var(--button-bg) 4%, #eef4ff 96%));
      --theme-directory-active-border: color-mix(in srgb, var(--button-bg) 26%, rgba(20, 24, 33, 0.08));
      --theme-table-row-hover: color-mix(in srgb, var(--button-bg) 6%, white 94%);
      --theme-table-accent: color-mix(in srgb, var(--button-bg) 34%, transparent);
      --badge-bg: color-mix(in srgb, var(--button-bg) 10%, white 90%);
      --badge-text: color-mix(in srgb, var(--button-bg) 82%, #1f2a37 18%);
      --ghost-border: color-mix(in srgb, var(--button-bg) 18%, rgba(20, 24, 33, 0.08));
    }

    body[data-brand-theme="atlas"] {
      --ink: #061c36;
      --muted: #506474;
      --line: rgba(6, 28, 54, 0.1);
      --line-strong: rgba(6, 28, 54, 0.16);
      --paper: #f7fbfd;
      --surface: rgba(255, 255, 255, 0.98);
      --surface-2: rgba(241, 247, 250, 0.98);
      --surface-3: #e5f0f5;
      --soft: #eef6f4;
      --band: #d8e9ee;
      --blue: #061c36;
      --blue-2: #0a5d91;
      --navy: #ffffff;
      --cyan: #2faed0;
      --green: #68ad45;
      --gold: #0b8f80;
      --red: #c2564c;
      --page-start: #f8fcfd;
      --page-end: #e9f4f5;
      --page-ambient-1: rgba(47, 174, 208, 0.14);
      --page-ambient-2: rgba(104, 173, 69, 0.1);
      --shadow: 0 24px 52px rgba(6, 28, 54, 0.1);
      --shadow-soft: 0 12px 28px rgba(6, 28, 54, 0.07);
      --panel-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(242, 249, 250, 0.98));
      --chart-primary: #0b8f80;
      --chart-grid: rgba(6, 28, 54, 0.14);
      --chart-fill: rgba(47, 174, 208, 0.16);
      --focus-ring: rgba(47, 174, 208, 0.24);
      --hero-ink: #061c36;
      --hero-muted: #506474;
      --hero-card: rgba(255, 255, 255, 0.78);
      --hero-card-border: rgba(11, 143, 128, 0.18);
      --button-bg: #0b8f80;
      --button-text: #ffffff;
      --ghost-bg: rgba(255, 255, 255, 0.92);
      --ghost-text: #061c36;
      --ghost-border: rgba(11, 143, 128, 0.22);
      --badge-bg: rgba(11, 143, 128, 0.1);
      --badge-text: #087466;
      --brand-top: #052b56;
      --brand-bottom: #061c36;
      --brand-glow: rgba(47, 174, 208, 0.26);
      --theme-shell-radius: 18px;
      --theme-shell-overlay: linear-gradient(135deg, rgba(47, 174, 208, 0.12), transparent 52%), radial-gradient(circle at top right, rgba(104, 173, 69, 0.12), transparent 36%);
      --theme-shell-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 249, 250, 0.98));
      --theme-shell-border: rgba(11, 143, 128, 0.16);
      --theme-shell-shadow: 0 14px 30px rgba(6, 28, 54, 0.08);
      --theme-report-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 248, 0.96));
      --theme-control-bg: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(242, 249, 250, 0.98));
      --theme-control-border: rgba(11, 143, 128, 0.18);
      --theme-control-text: var(--ink);
      --theme-control-muted: #506474;
      --theme-control-active-bg: linear-gradient(180deg, rgba(235, 248, 245, 1), rgba(223, 241, 245, 1));
      --theme-feature-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 248, 0.96));
      --theme-feature-border: rgba(11, 143, 128, 0.16);
      --theme-feature-text: var(--ink);
      --theme-feature-muted: #506474;
      --theme-input-bg: #ffffff;
      --theme-input-border: rgba(6, 28, 54, 0.14);
      --theme-input-text: var(--ink);
      --theme-input-option-bg: #ffffff;
      --theme-input-option-text: var(--ink);
      --theme-directory-active-bg: linear-gradient(135deg, rgba(47, 174, 208, 0.18), rgba(104, 173, 69, 0.16));
      --theme-directory-active-border: rgba(11, 143, 128, 0.35);
      --theme-table-head-bg: linear-gradient(90deg, rgba(47, 174, 208, 0.18), rgba(104, 173, 69, 0.16));
      --theme-table-head-text: #06456a;
      --theme-table-accent: rgba(11, 143, 128, 0.44);
      --theme-cert-paper: #ffffff;
      --theme-cert-paper-2: #edf7f6;
      --theme-cert-glow: rgba(47, 174, 208, 0.12);
      --theme-cert-frame: rgba(11, 143, 128, 0.24);
      --theme-cert-frame-soft: rgba(104, 173, 69, 0.16);
      --theme-cert-head-bg: linear-gradient(135deg, #052b56 0%, #0b8f80 58%, #68ad45 100%);
      --theme-cert-head-ink: #ffffff;
      --theme-cert-kicker: #087466;
      --theme-cert-panel-bg: rgba(255, 255, 255, 0.94);
      --theme-cert-panel-border: rgba(11, 143, 128, 0.18);
      --theme-cert-route-wrap-bg: rgba(237, 247, 246, 0.98);
      --theme-cert-route-bg: rgba(248, 253, 252, 0.98);
      --theme-cert-route-border: rgba(11, 143, 128, 0.18);
      --theme-cert-chip-bg: rgba(235, 248, 245, 0.96);
      --theme-cert-chip-text: #087466;
      --theme-cert-watermark: rgba(6, 28, 54, 0.045);
      --theme-cert-table-head: #087466;
      --theme-cert-table-rule: rgba(11, 143, 128, 0.16);
      --theme-cert-route-label: #087466;
      --theme-cert-route-value: #061c36;
      --theme-cert-brand-top: #052b56;
      --theme-cert-brand-bottom: #061c36;
    }

    body[data-theme="dark"][data-brand-theme="theme-2"] { --line: rgba(108, 156, 255, 0.2); --line-strong: rgba(108, 156, 255, 0.3); --blue-2: #83b1ff; --cyan: #7bc2ff; --green: #4fd39c; --gold: #6d96ff; --page-start: #03070d; --page-end: #08111d; --page-ambient-1: rgba(59, 116, 255, 0.14); --page-ambient-2: rgba(79, 211, 156, 0.08); --chart-grid: rgba(108, 156, 255, 0.24); --chart-fill: rgba(108, 156, 255, 0.18); --focus-ring: rgba(108, 156, 255, 0.24); --hero-card-border: rgba(108, 156, 255, 0.26); --button-bg: #6d96ff; --button-text: #08111d; --ghost-bg: rgba(109, 150, 255, 0.1); --ghost-text: #f7fbff; --ghost-border: rgba(109, 150, 255, 0.24); --badge-bg: rgba(109, 150, 255, 0.14); --badge-text: #f7fbff; --brand-top: #2857c6; --brand-bottom: #05101c; --brand-glow: rgba(79, 211, 156, 0.24); }
    body[data-theme="dark"][data-brand-theme="theme-3"] { --line: rgba(82, 214, 161, 0.18); --line-strong: rgba(82, 214, 161, 0.28); --blue-2: #7be0b4; --cyan: #52d6a1; --green: #9de5c4; --gold: #52d6a1; --page-start: #03110d; --page-end: #071a15; --page-ambient-1: rgba(82, 214, 161, 0.12); --page-ambient-2: rgba(157, 229, 196, 0.07); --chart-grid: rgba(82, 214, 161, 0.24); --chart-fill: rgba(82, 214, 161, 0.18); --focus-ring: rgba(82, 214, 161, 0.24); --hero-card-border: rgba(82, 214, 161, 0.24); --button-bg: #52d6a1; --button-text: #071a15; --ghost-bg: rgba(82, 214, 161, 0.09); --ghost-text: #f5fff9; --ghost-border: rgba(82, 214, 161, 0.24); --badge-bg: rgba(82, 214, 161, 0.14); --badge-text: #f5fff9; --brand-top: #1c8d6c; --brand-bottom: #071a15; --brand-glow: rgba(157, 229, 196, 0.24); }
    body[data-theme="dark"][data-brand-theme="theme-4"] { --line: rgba(210, 93, 132, 0.18); --line-strong: rgba(210, 93, 132, 0.28); --blue-2: #ee8aa8; --cyan: #d25d84; --green: #f0c58f; --gold: #d25d84; --page-start: #12070c; --page-end: #1d0b12; --page-ambient-1: rgba(210, 93, 132, 0.12); --page-ambient-2: rgba(240, 197, 143, 0.08); --chart-grid: rgba(210, 93, 132, 0.24); --chart-fill: rgba(210, 93, 132, 0.18); --focus-ring: rgba(210, 93, 132, 0.24); --hero-card-border: rgba(240, 197, 143, 0.24); --button-bg: #d25d84; --button-text: #210b13; --ghost-bg: rgba(210, 93, 132, 0.1); --ghost-text: #fff6f8; --ghost-border: rgba(210, 93, 132, 0.24); --badge-bg: rgba(210, 93, 132, 0.14); --badge-text: #fff6f8; --brand-top: #8a2741; --brand-bottom: #210b13; --brand-glow: rgba(240, 197, 143, 0.24); }
    body[data-theme="dark"][data-brand-theme="theme-5"] { --line: rgba(59, 211, 219, 0.18); --line-strong: rgba(59, 211, 219, 0.28); --blue-2: #78dfe3; --cyan: #3bd3db; --green: #ffb44d; --gold: #3bd3db; --page-start: #031115; --page-end: #082026; --page-ambient-1: rgba(59, 211, 219, 0.12); --page-ambient-2: rgba(255, 180, 77, 0.08); --chart-grid: rgba(59, 211, 219, 0.24); --chart-fill: rgba(59, 211, 219, 0.18); --focus-ring: rgba(59, 211, 219, 0.24); --hero-card-border: rgba(255, 180, 77, 0.24); --button-bg: #3bd3db; --button-text: #082026; --ghost-bg: rgba(59, 211, 219, 0.1); --ghost-text: #f3ffff; --ghost-border: rgba(59, 211, 219, 0.24); --badge-bg: rgba(59, 211, 219, 0.14); --badge-text: #f3ffff; --brand-top: #17838a; --brand-bottom: #082026; --brand-glow: rgba(255, 180, 77, 0.24); }
    body[data-theme="dark"][data-brand-theme="theme-6"] { --line: rgba(129, 121, 255, 0.18); --line-strong: rgba(129, 121, 255, 0.28); --blue-2: #b0a9ff; --cyan: #8f8cff; --green: #6ee4bd; --gold: #8f8cff; --page-start: #060716; --page-end: #101231; --page-ambient-1: rgba(129, 121, 255, 0.13); --page-ambient-2: rgba(110, 228, 189, 0.08); --chart-grid: rgba(129, 121, 255, 0.24); --chart-fill: rgba(129, 121, 255, 0.18); --focus-ring: rgba(129, 121, 255, 0.24); --hero-card-border: rgba(110, 228, 189, 0.24); --button-bg: #8f8cff; --button-text: #12122f; --ghost-bg: rgba(129, 121, 255, 0.1); --ghost-text: #f7f5ff; --ghost-border: rgba(129, 121, 255, 0.24); --badge-bg: rgba(129, 121, 255, 0.14); --badge-text: #f7f5ff; --brand-top: #5350d2; --brand-bottom: #12122f; --brand-glow: rgba(110, 228, 189, 0.24); }
    body[data-theme="dark"][data-brand-theme="theme-7"] { --line: rgba(242, 136, 99, 0.18); --line-strong: rgba(242, 136, 99, 0.28); --blue-2: #ffb59b; --cyan: #f28863; --green: #95d1c2; --gold: #f28863; --page-start: #120906; --page-end: #23120c; --page-ambient-1: rgba(242, 136, 99, 0.12); --page-ambient-2: rgba(149, 209, 194, 0.08); --chart-grid: rgba(242, 136, 99, 0.24); --chart-fill: rgba(242, 136, 99, 0.18); --focus-ring: rgba(242, 136, 99, 0.24); --hero-card-border: rgba(149, 209, 194, 0.24); --button-bg: #f28863; --button-text: #23120c; --ghost-bg: rgba(242, 136, 99, 0.1); --ghost-text: #fff8f5; --ghost-border: rgba(242, 136, 99, 0.24); --badge-bg: rgba(242, 136, 99, 0.14); --badge-text: #fff8f5; --brand-top: #d16b46; --brand-bottom: #23120c; --brand-glow: rgba(149, 209, 194, 0.24); }
    body[data-theme="dark"][data-brand-theme="theme-8"] { --line: rgba(81, 154, 99, 0.18); --line-strong: rgba(81, 154, 99, 0.28); --blue-2: #90d09c; --cyan: #5ab272; --green: #efbd63; --gold: #5ab272; --page-start: #071008; --page-end: #142116; --page-ambient-1: rgba(81, 154, 99, 0.12); --page-ambient-2: rgba(239, 189, 99, 0.08); --chart-grid: rgba(81, 154, 99, 0.24); --chart-fill: rgba(81, 154, 99, 0.18); --focus-ring: rgba(81, 154, 99, 0.24); --hero-card-border: rgba(239, 189, 99, 0.24); --button-bg: #5ab272; --button-text: #142116; --ghost-bg: rgba(81, 154, 99, 0.1); --ghost-text: #f7fff7; --ghost-border: rgba(81, 154, 99, 0.24); --badge-bg: rgba(81, 154, 99, 0.14); --badge-text: #f7fff7; --brand-top: #2e7142; --brand-bottom: #142116; --brand-glow: rgba(239, 189, 99, 0.24); }
    body[data-theme="dark"][data-brand-theme="theme-9"] { --line: rgba(166, 104, 198, 0.18); --line-strong: rgba(166, 104, 198, 0.28); --blue-2: #d2a1e8; --cyan: #a668c6; --green: #e2aa81; --gold: #a668c6; --page-start: #100710; --page-end: #1e0f21; --page-ambient-1: rgba(166, 104, 198, 0.12); --page-ambient-2: rgba(226, 170, 129, 0.08); --chart-grid: rgba(166, 104, 198, 0.24); --chart-fill: rgba(166, 104, 198, 0.18); --focus-ring: rgba(166, 104, 198, 0.24); --hero-card-border: rgba(226, 170, 129, 0.24); --button-bg: #a668c6; --button-text: #201224; --ghost-bg: rgba(166, 104, 198, 0.1); --ghost-text: #fff7ff; --ghost-border: rgba(166, 104, 198, 0.24); --badge-bg: rgba(166, 104, 198, 0.14); --badge-text: #fff7ff; --brand-top: #7a4198; --brand-bottom: #201224; --brand-glow: rgba(226, 170, 129, 0.24); }
    body[data-theme="dark"][data-brand-theme="theme-10"] { --line: rgba(81, 141, 255, 0.18); --line-strong: rgba(81, 141, 255, 0.28); --blue-2: #a4c5ff; --cyan: #5997ff; --green: #b4e15a; --gold: #5997ff; --page-start: #04101b; --page-end: #081d2f; --page-ambient-1: rgba(81, 141, 255, 0.12); --page-ambient-2: rgba(180, 225, 90, 0.08); --chart-grid: rgba(81, 141, 255, 0.24); --chart-fill: rgba(81, 141, 255, 0.18); --focus-ring: rgba(81, 141, 255, 0.24); --hero-card-border: rgba(180, 225, 90, 0.24); --button-bg: #5997ff; --button-text: #08131f; --ghost-bg: rgba(81, 141, 255, 0.1); --ghost-text: #f4fbff; --ghost-border: rgba(81, 141, 255, 0.24); --badge-bg: rgba(81, 141, 255, 0.14); --badge-text: #f4fbff; --brand-top: #1b58d6; --brand-bottom: #08131f; --brand-glow: rgba(180, 225, 90, 0.24); }

    body[data-theme="dark"][data-brand-theme] {
      --ink: #f5f8fc;
      --muted: color-mix(in srgb, #f5f8fc 70%, var(--gold) 30%);
      --paper: #05070a;
      --surface: rgba(11, 15, 20, 0.96);
      --surface-2: rgba(15, 20, 27, 0.95);
      --surface-3: color-mix(in srgb, var(--page-end) 28%, #11161c 72%);
      --soft: color-mix(in srgb, var(--page-end) 18%, #0d1218 82%);
      --band: color-mix(in srgb, var(--page-end) 24%, #121820 76%);
      --panel-sheen: linear-gradient(180deg, rgba(18, 24, 31, 0.98), rgba(12, 16, 22, 0.98));
      --shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
      --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.22);
      --theme-shell-bg: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, var(--page-end) 12%), color-mix(in srgb, var(--surface-2) 78%, var(--page-end) 22%));
      --theme-shell-overlay: linear-gradient(145deg, color-mix(in srgb, var(--gold) 14%, transparent), transparent 48%), radial-gradient(circle at top right, color-mix(in srgb, var(--cyan) 18%, transparent), transparent 34%);
      --theme-shell-border: color-mix(in srgb, var(--line) 72%, var(--gold) 28%);
      --theme-shell-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
      --theme-report-bg: linear-gradient(180deg, color-mix(in srgb, var(--surface) 76%, var(--gold) 24%), color-mix(in srgb, var(--surface-2) 82%, var(--cyan) 18%));
      --theme-report-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
      --theme-table-head-bg: linear-gradient(90deg, color-mix(in srgb, var(--gold) 26%, var(--surface) 74%), color-mix(in srgb, var(--cyan) 22%, var(--surface-2) 78%));
      --theme-table-head-text: #f5f8fc;
      --theme-table-head-border: color-mix(in srgb, var(--gold) 44%, var(--line) 56%);
      --theme-table-row: rgba(255, 255, 255, 0.02);
      --theme-table-row-alt: color-mix(in srgb, var(--surface) 72%, var(--gold) 28%);
      --theme-table-row-hover: color-mix(in srgb, var(--surface-2) 68%, var(--cyan) 32%);
      --theme-table-row-border: color-mix(in srgb, var(--line) 74%, var(--gold) 26%);
      --theme-table-accent: color-mix(in srgb, var(--gold) 68%, white 32%);
      --theme-cert-paper: color-mix(in srgb, var(--surface) 80%, var(--page-end) 20%);
      --theme-cert-paper-2: color-mix(in srgb, var(--surface-2) 72%, var(--gold) 28%);
      --theme-cert-glow: color-mix(in srgb, var(--gold) 16%, transparent);
      --theme-cert-frame: color-mix(in srgb, var(--gold) 42%, var(--line) 58%);
      --theme-cert-frame-soft: color-mix(in srgb, var(--cyan) 24%, var(--line) 76%);
      --theme-cert-head-bg: linear-gradient(180deg, color-mix(in srgb, var(--brand-top) 78%, white 22%), color-mix(in srgb, var(--brand-bottom) 88%, black 12%));
      --theme-cert-head-ink: #f7fbff;
      --theme-cert-kicker: color-mix(in srgb, var(--gold) 70%, white 30%);
      --theme-cert-panel-bg: color-mix(in srgb, var(--surface) 78%, var(--gold) 22%);
      --theme-cert-panel-border: color-mix(in srgb, var(--gold) 32%, var(--line) 68%);
      --theme-cert-route-wrap-bg: color-mix(in srgb, var(--surface) 74%, var(--gold) 26%);
      --theme-cert-route-bg: color-mix(in srgb, var(--surface-2) 78%, var(--cyan) 22%);
      --theme-cert-route-border: color-mix(in srgb, var(--gold) 34%, var(--line) 66%);
      --theme-cert-chip-bg: color-mix(in srgb, var(--surface-2) 64%, var(--gold) 36%);
      --theme-cert-chip-text: #f7fbff;
      --theme-cert-watermark: color-mix(in srgb, var(--gold) 12%, transparent);
      --theme-cert-table-head: color-mix(in srgb, var(--gold) 74%, white 26%);
      --theme-cert-table-rule: color-mix(in srgb, var(--gold) 22%, var(--line) 78%);
      --theme-cert-route-label: color-mix(in srgb, var(--gold) 72%, white 28%);
      --theme-cert-route-value: #f7fbff;
      --theme-cert-brand-top: color-mix(in srgb, var(--brand-top) 74%, white 26%);
      --theme-cert-brand-bottom: color-mix(in srgb, var(--brand-bottom) 90%, black 10%);
      --theme-cert-score-core: #fcfdf7;
    }

    body[data-theme="dark"] .topbar {
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    }

    body[data-theme="dark"] .theme-toggle {
      background: linear-gradient(180deg, rgba(20, 26, 36, 0.98), rgba(14, 19, 27, 0.98));
      border-color: color-mix(in srgb, var(--line) 76%, var(--cyan) 24%);
      color: var(--ink);
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
    }

    body[data-theme="dark"] .theme-copy strong {
      color: var(--ink);
    }

    body[data-theme="dark"] .theme-copy span {
      color: color-mix(in srgb, var(--muted) 84%, white 16%);
    }

    body[data-theme="dark"] .theme-toggle,
    body[data-theme="dark"] .button-ghost,
    body[data-theme="dark"] .dashboard-chip,
    body[data-theme="dark"] .metric,
    body[data-theme="dark"] .option-card,
    body[data-theme="dark"] .selected-company,
    body[data-theme="dark"] .review-doc,
    body[data-theme="dark"] .review-doc-slot,
    body[data-theme="dark"] .route-score-row,
    body[data-theme="dark"] .report-item,
    body[data-theme="dark"] .choice-chip,
    body[data-theme="dark"] .journey-step,
    body[data-theme="dark"] .account-state,
    body[data-theme="dark"] .category-button,
    body[data-theme="dark"] .score-options label,
    body[data-theme="dark"] .band-pill,
    body[data-theme="dark"] .qr,
    body[data-theme="dark"] th,
    body[data-theme="dark"] .dash-top {
      background: var(--theme-control-bg);
      border-color: var(--theme-control-border);
      color: var(--theme-control-text);
    }

    body[data-theme="dark"] .field input,
    body[data-theme="dark"] .field textarea {
      background: var(--theme-input-bg);
      border-color: var(--theme-input-border);
      color: var(--theme-input-text);
    }

    body[data-theme="dark"] select,
    body[data-theme="dark"] .route-score-select {
      background: var(--theme-input-bg);
      color: var(--theme-input-text);
      border-color: var(--theme-input-border);
      color-scheme: dark;
    }

    body[data-theme="dark"] select option,
    body[data-theme="dark"] .route-score-select option {
      background: var(--theme-input-option-bg);
      color: var(--theme-input-option-text);
    }

    body[data-theme="dark"] .field input::placeholder,
    body[data-theme="dark"] .field textarea::placeholder {
      color: color-mix(in srgb, var(--muted) 92%, transparent);
      opacity: 1;
    }

    body[data-theme="dark"] .metric[data-progress-state="complete"],
    body[data-theme="dark"] .chart-card[data-progress-state="complete"] {
      border-color: color-mix(in srgb, var(--gold) 44%, var(--line) 56%);
      background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 72%, var(--gold) 28%), color-mix(in srgb, var(--surface-2) 74%, var(--cyan) 26%));
      box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
    }

    body[data-theme="dark"] .metric[data-progress-state="current"],
    body[data-theme="dark"] .chart-card[data-progress-state="current"] {
      border-color: color-mix(in srgb, var(--cyan) 36%, var(--line) 64%);
      background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 80%, var(--cyan) 20%), color-mix(in srgb, var(--surface-2) 82%, var(--gold) 18%));
    }

    body[data-theme="dark"] .metric[data-progress-state="complete"],
    body[data-theme="dark"] .metric[data-progress-state="current"],
    body[data-theme="dark"] .chart-card[data-progress-state="complete"],
    body[data-theme="dark"] .chart-card[data-progress-state="current"] {
      color: var(--theme-inverse-text);
    }

    body[data-theme="dark"] .metric[data-progress-state="complete"] strong,
    body[data-theme="dark"] .metric[data-progress-state="current"] strong,
    body[data-theme="dark"] .metric[data-progress-state="complete"] span,
    body[data-theme="dark"] .metric[data-progress-state="current"] span,
    body[data-theme="dark"] .chart-card[data-progress-state="complete"] h1,
    body[data-theme="dark"] .chart-card[data-progress-state="complete"] h2,
    body[data-theme="dark"] .chart-card[data-progress-state="complete"] h3,
    body[data-theme="dark"] .chart-card[data-progress-state="current"] h1,
    body[data-theme="dark"] .chart-card[data-progress-state="current"] h2,
    body[data-theme="dark"] .chart-card[data-progress-state="current"] h3,
    body[data-theme="dark"] .chart-card[data-progress-state="complete"] .eyebrow,
    body[data-theme="dark"] .chart-card[data-progress-state="current"] .eyebrow,
    body[data-theme="dark"] .chart-card[data-progress-state="complete"] strong,
    body[data-theme="dark"] .chart-card[data-progress-state="current"] strong {
      color: var(--theme-inverse-text);
    }

    body[data-theme="dark"] .chart-card[data-progress-state="complete"] .muted,
    body[data-theme="dark"] .chart-card[data-progress-state="current"] .muted,
    body[data-theme="dark"] .chart-card[data-progress-state="complete"] p,
    body[data-theme="dark"] .chart-card[data-progress-state="current"] p,
    body[data-theme="dark"] .metric[data-progress-state="complete"] span,
    body[data-theme="dark"] .metric[data-progress-state="current"] span {
      color: var(--theme-inverse-muted);
    }

    body[data-theme="dark"] .band-pill {
      background: color-mix(in srgb, white 94%, var(--gold) 6%);
      border-color: color-mix(in srgb, var(--gold) 26%, white 74%);
      color: var(--theme-inverse-text);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    body[data-theme="dark"] .band-pill * {
      color: inherit;
    }

    body[data-theme="dark"] .choice-chip:hover {
      border-color: color-mix(in srgb, var(--cyan) 30%, var(--line) 70%);
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    }

    body[data-theme="dark"] .choice-chip.active {
      border-color: color-mix(in srgb, var(--gold) 42%, var(--line) 58%);
      background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 72%, var(--gold) 28%), color-mix(in srgb, var(--surface-2) 74%, var(--cyan) 26%));
    }

    body[data-theme="dark"] .choice-chip.audit-review-complete {
      border-color: color-mix(in srgb, var(--green) 42%, var(--line) 58%);
      background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 76%, var(--green) 24%), color-mix(in srgb, var(--surface-2) 82%, var(--cyan) 18%));
    }

    body[data-theme="dark"] .choice-chip.audit-review-missing {
      border-color: color-mix(in srgb, var(--gold) 32%, var(--line) 68%);
      background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 82%, var(--gold) 18%), color-mix(in srgb, var(--surface-2) 88%, var(--page-end) 12%));
    }

    body[data-theme="dark"] .journey-step.complete {
      border-color: color-mix(in srgb, var(--green) 44%, var(--line) 56%);
      background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 74%, var(--green) 26%), color-mix(in srgb, var(--surface-2) 82%, var(--page-end) 18%));
    }

    body[data-theme="dark"] .journey-step.current {
      border-color: color-mix(in srgb, var(--gold) 42%, var(--line) 58%);
      background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 74%, var(--gold) 26%), color-mix(in srgb, var(--surface-2) 82%, var(--cyan) 18%));
    }

    body[data-theme="dark"] .journey-node {
      background: color-mix(in srgb, var(--surface-2) 82%, var(--gold) 18%);
      border-color: color-mix(in srgb, var(--gold) 36%, var(--line) 64%);
      color: var(--theme-control-text);
      box-shadow: none;
    }

    body[data-theme="dark"] .journey-step.complete .journey-node {
      background: color-mix(in srgb, var(--green) 72%, var(--surface) 28%);
      color: #06110b;
    }

    body[data-theme="dark"] .journey-step.current .journey-node {
      background: color-mix(in srgb, var(--gold) 72%, var(--surface) 28%);
      color: #111318;
    }

    body[data-theme="dark"] .tab-button:hover {
      background: transparent;
    }

    body[data-theme="dark"] .tab-button.active {
      box-shadow: none;
    }

    body[data-theme="dark"] .class-panel,
    body[data-theme="dark"] .mini-note,
    body[data-theme="dark"] .notice {
      background: var(--theme-feature-bg);
      border-color: var(--theme-feature-border);
      color: var(--theme-feature-text);
    }

    body[data-theme="dark"] .class-panel strong,
    body[data-theme="dark"] .mini-note strong,
    body[data-theme="dark"] .notice strong {
      color: var(--theme-feature-text);
    }

    body[data-theme="dark"] .class-panel p,
    body[data-theme="dark"] .class-panel .status-text,
    body[data-theme="dark"] .mini-note,
    body[data-theme="dark"] .notice,
    body[data-theme="dark"] .notice .status-text {
      color: var(--theme-feature-muted);
    }

    body[data-theme="dark"] .public-directory-card:hover,
    body[data-theme="dark"] .public-directory-card.active {
      color: var(--theme-inverse-text);
    }

    body[data-theme="dark"] .public-directory-card:hover strong,
    body[data-theme="dark"] .public-directory-card.active strong,
    body[data-theme="dark"] .public-directory-card:hover .badge,
    body[data-theme="dark"] .public-directory-card.active .badge {
      color: var(--theme-inverse-text);
    }

    body[data-theme="dark"] .public-directory-card:hover p,
    body[data-theme="dark"] .public-directory-card.active p,
    body[data-theme="dark"] .public-directory-card:hover small,
    body[data-theme="dark"] .public-directory-card.active small,
    body[data-theme="dark"] .public-directory-card:hover .public-directory-meta,
    body[data-theme="dark"] .public-directory-card.active .public-directory-meta {
      color: var(--theme-inverse-muted);
    }

    body[data-theme="dark"] .public-directory-card:hover .badge,
    body[data-theme="dark"] .public-directory-card.active .badge {
      background: color-mix(in srgb, white 82%, var(--gold) 18%);
      border-color: color-mix(in srgb, var(--gold) 34%, white 66%);
    }

    body[data-theme="dark"] .certificate-score-badge strong {
      color: var(--theme-inverse-text);
    }

    body[data-theme="dark"] .certificate-score-badge span {
      color: var(--theme-inverse-muted);
    }

    body[data-theme="dark"] select {
      color-scheme: dark;
      background: var(--theme-input-bg);
      border-color: var(--theme-input-border);
      color: var(--theme-input-text);
    }

    body[data-theme="dark"] select option {
      background: var(--theme-input-option-bg);
      color: var(--theme-input-option-text);
    }

    body[data-theme="dark"] .assessment-step-band {
      background: var(--theme-shell-overlay), var(--theme-shell-bg);
    }

    body[data-theme="dark"] .assessment-step-intro strong,
    body[data-theme="dark"] .assessment-step-card strong {
      color: #f7f0df;
    }

    body[data-theme="dark"] .assessment-step-intro p,
    body[data-theme="dark"] .assessment-step-card p,
    body[data-theme="dark"] .assessment-step-label {
      color: rgba(247, 240, 223, 0.78);
    }

    body[data-theme="dark"] .assessment-step-card {
      background: rgba(255, 255, 255, 0.04);
      border-color: rgba(208, 170, 85, 0.16);
    }

    body[data-theme="dark"] .assessment-step-card.active {
      background: linear-gradient(180deg, rgba(208, 170, 85, 0.1), rgba(255, 255, 255, 0.04));
      border-color: rgba(208, 170, 85, 0.32);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      text-size-adjust: 100%;
    }

    body {
      margin: 0;
      min-height: 100vh;
      overflow-x: hidden;
      color: var(--ink);
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 14rem),
        radial-gradient(circle at 12% 0%, var(--page-ambient-1), transparent 24rem),
        radial-gradient(circle at 88% 10%, var(--page-ambient-2), transparent 20rem),
        linear-gradient(180deg, var(--page-start) 0%, var(--page-end) 100%);
      font-family: var(--body-font);
      line-height: 1.58;
      letter-spacing: 0;
      transition: background 220ms ease, color 220ms ease;
      --spot-x: 18%;
      --spot-y: 12%;
    }

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

    body::before {
      background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.06), transparent 16rem);
      background-size: 100% 100%, 100% 100%, auto;
      opacity: 0.28;
      mix-blend-mode: normal;
      transition: opacity 220ms ease;
    }

    body::after {
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%),
        linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(17, 18, 20, 0.02) calc(100% - 1px), rgba(17, 18, 20, 0.02) 100%);
      opacity: 0.09;
    }

    button,
    input,
    select,
    textarea {
      font: inherit;
      transition:
        border-color 180ms ease,
        background 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
    }

    button {
      cursor: pointer;
    }

    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
      outline: none;
      box-shadow: 0 0 0 3px var(--focus-ring);
    }

    select {
      width: 100%;
      min-width: 0;
      min-height: 48px;
      border: 1px solid var(--theme-input-border);
      border-radius: 14px;
      padding: 12px 46px 12px 14px;
      background-color: var(--theme-input-bg);
      background-image:
        linear-gradient(45deg, transparent 50%, var(--theme-input-text) 50%),
        linear-gradient(135deg, var(--theme-input-text) 50%, transparent 50%);
      background-position:
        calc(100% - 22px) 50%,
        calc(100% - 15px) 50%;
      background-size: 7px 7px, 7px 7px;
      background-repeat: no-repeat;
      color: var(--theme-input-text);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 24px rgba(15, 23, 42, 0.04);
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      cursor: pointer;
    }

    select:hover {
      border-color: color-mix(in srgb, var(--button-bg) 24%, var(--theme-input-border) 76%);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 14px 28px rgba(15, 23, 42, 0.07);
    }

    select:focus {
      border-color: color-mix(in srgb, var(--button-bg) 38%, var(--theme-input-border) 62%);
      box-shadow:
        0 0 0 3px var(--focus-ring),
        0 14px 28px rgba(15, 23, 42, 0.07);
    }

    select:disabled {
      cursor: not-allowed;
      opacity: 0.62;
      box-shadow: none;
    }

    select option {
      background: var(--theme-input-bg);
      color: var(--theme-input-text);
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      border-bottom: 1px solid var(--line);
      background: color-mix(in srgb, var(--surface) 90%, var(--paper) 10%);
      backdrop-filter: blur(16px) saturate(120%);
      box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    }

    .nav-shell {
      width: min(100% - 32px, var(--max));
      min-height: 78px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: minmax(238px, auto) minmax(0, 1fr);
      gap: 28px;
      align-items: start;
      padding: 18px 0 16px;
      isolation: isolate;
    }

    .nav-brand-stack {
      display: grid;
      gap: 12px;
      align-content: center;
      justify-items: start;
      min-width: 0;
      position: relative;
      z-index: 3;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
      border: 0;
      padding: 0;
      background: transparent;
      color: var(--ink);
      text-align: left;
    }

    .brand:hover .brand-mark {
      transform: translateY(-1px) scale(1.015);
    }

    .brand:hover .atlas-logo-lockup,
    .brand:hover .certificate-logo-lockup {
      transform: translateY(-1px) scale(1.01);
    }

    .atlas-logo-lockup {
      display: block;
      width: min(150px, 32vw);
      height: auto;
      border-radius: 18px;
      background: #ffffff;
      box-shadow: 0 14px 32px rgba(6, 28, 54, 0.08);
      object-fit: contain;
      transition: transform 180ms ease, box-shadow 180ms ease;
    }

    .certificate-logo-lockup {
      display: block;
      width: 112px;
      height: auto;
      flex: 0 0 auto;
      border-radius: 16px;
      background: #ffffff;
      box-shadow: 0 12px 28px rgba(6, 28, 54, 0.12);
      object-fit: contain;
      transition: transform 180ms ease;
    }

    .brand-mark {
      width: 66px;
      height: 66px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: inherit;
      background: transparent;
      box-shadow: none;
      flex: 0 0 auto;
      overflow: visible;
      position: relative;
      transition: transform 180ms ease, box-shadow 180ms ease;
    }

    .brand-mark::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      background: url("assets/atlas-logo-mark.png") center / contain no-repeat;
      filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.16));
      pointer-events: none;
    }

    .brand-mark::after {
      display: none;
    }

    .brand-glyph {
      display: none;
    }

    .atlas-logo-svg {
      display: none;
      width: 100%;
      height: 100%;
      filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.16));
    }

    .atlas-logo-facet {
      stroke: rgba(255, 255, 255, 0.86);
      stroke-width: 1.4;
      vector-effect: non-scaling-stroke;
    }

    .atlas-logo-core {
      fill: #ffffff;
      stroke: #ffffff;
      stroke-width: 1.2;
      vector-effect: non-scaling-stroke;
    }

    .atlas-logo-check {
      fill: none;
      stroke: #0b8f80;
      stroke-width: 11.5;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .brand-name {
      display: block;
      font-family: var(--heading-font);
      font-size: 14px;
      font-weight: 700;
      line-height: 1.12;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .brand-sub {
      display: block;
      margin-top: 3px;
      color: var(--muted);
      font-size: 10px;
      line-height: 1.3;
      letter-spacing: 0.03em;
      max-width: 260px;
    }

    .tabs {
      display: grid;
      gap: 10px;
      justify-items: stretch;
      align-self: center;
      justify-self: stretch;
      position: relative;
      z-index: 1;
      pointer-events: auto;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    .tabs-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: stretch;
      gap: 10px;
      position: relative;
      z-index: 1;
    }

    .tabs-row:first-child {
      --tab-count: 5;
    }

    .tabs-row:last-child {
      --tab-count: 5;
    }

    .tab-button {
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 1 1 0;
      min-width: 0;
      position: relative;
      z-index: 1;
      border: 0;
      border-bottom: 2px solid transparent;
      border-radius: 0;
      padding: 10px 0 9px;
      background: transparent;
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      text-align: center;
      white-space: nowrap;
    }

    .tab-button:hover {
      color: color-mix(in srgb, var(--gold) 64%, var(--ink) 36%);
      transform: none;
    }

    .tab-button.active {
      border-color: currentColor;
      background: transparent;
      color: color-mix(in srgb, var(--gold) 72%, var(--ink) 28%);
      font-weight: 800;
      box-shadow: none;
    }

    .tab-button.has-notifications::after {
      content: "";
      position: absolute;
      top: 6px;
      right: 10px;
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--red);
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 18%, transparent);
    }

    .nav-actions {
      display: flex;
      flex-direction: column;
      gap: 8px;
      align-items: stretch;
      justify-content: flex-start;
      width: min(100%, 236px);
      position: relative;
      z-index: 3;
      pointer-events: auto;
    }

    .theme-toggle,
    .button,
    .button-ghost,
    .small-button,
    .danger-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border-radius: 14px;
      font-weight: 800;
      font-size: 13px;
      white-space: nowrap;
    }

    .theme-toggle {
      min-height: 46px;
      min-width: 196px;
      border: 1px solid var(--theme-control-border);
      padding: 9px 14px;
      background: var(--theme-control-bg);
      color: var(--theme-control-text);
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
      justify-content: flex-start;
      border-radius: 12px;
      position: relative;
      z-index: 3;
      pointer-events: auto;
      touch-action: manipulation;
    }

    .theme-toggle:hover {
      transform: translateY(-1px);
      border-color: color-mix(in srgb, var(--gold) 42%, var(--theme-control-border) 58%);
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    }

    .palette-icon {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      flex: 0 0 auto;
      border: 1px solid rgba(255, 255, 255, 0.18);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
      background:
        radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.92) 0 22%, transparent 23%),
        linear-gradient(135deg, var(--gold) 0 50%, var(--button-bg) 50% 74%, var(--green) 74% 100%);
    }

    .theme-icon {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: inline-grid;
      place-items: center;
      background: rgba(255, 255, 255, 0.12);
      position: relative;
      overflow: hidden;
      flex: 0 0 auto;
    }

    .theme-icon::before,
    .theme-icon::after {
      content: "";
      position: absolute;
      transition: transform 220ms ease, opacity 220ms ease;
    }

    .theme-icon::before {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: var(--gold);
      box-shadow: 0 0 0 4px rgba(255, 241, 210, 0.18);
    }

    .theme-icon::after {
      width: 13px;
      height: 13px;
      right: 6px;
      border-radius: 50%;
      background: var(--surface);
      transform: translateX(8px);
      opacity: 0;
    }

    body[data-theme="dark"] .theme-icon::before {
      transform: scale(1.05);
      box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
    }

    body[data-theme="dark"] .theme-icon::after {
      transform: translateX(0);
      opacity: 1;
    }

    .theme-copy {
      display: grid;
      text-align: left;
      gap: 1px;
      line-height: 1.1;
    }

    .theme-copy strong {
      font-size: 12px;
      line-height: 1.1;
    }

    .theme-copy span {
      display: block;
      font-size: 10px;
      line-height: 1.25;
      color: var(--muted);
    }

    .button,
    .button-ghost,
    .small-button,
    .danger-button {
      border: 1px solid transparent;
      padding: 10px 16px;
    }

    .button {
      border-color: var(--button-bg);
      color: var(--button-text);
      background: var(--button-bg);
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    }

    .button:hover,
    .small-button:hover {
      transform: translateY(-1px);
      box-shadow: 0 12px 22px rgba(15, 23, 42, 0.14);
    }

    .button-ghost {
      border-color: var(--theme-control-border);
      background: var(--theme-control-bg);
      color: var(--theme-control-text);
    }

    .button-ghost:hover {
      transform: translateY(-1px);
      border-color: color-mix(in srgb, var(--gold) 38%, var(--theme-control-border) 62%);
      background: var(--theme-control-active-bg);
    }

    .button:disabled,
    .button-ghost:disabled,
    .small-button:disabled,
    .danger-button:disabled,
    .theme-toggle:disabled {
      opacity: 0.56;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .small-button,
    .danger-button {
      padding: 8px 12px;
      font-size: 12px;
    }

    .small-button {
      border-color: var(--button-bg);
      color: var(--button-text);
      background: var(--button-bg);
    }

    .danger-button {
      border-color: rgba(179, 74, 69, 0.22);
      background: rgba(179, 74, 69, 0.08);
      color: var(--red);
    }

    .danger-button:hover {
      transform: translateY(-1px);
      border-color: rgba(203, 84, 76, 0.34);
      background: rgba(203, 84, 76, 0.14);
    }

    main {
      width: min(100% - 32px, var(--max));
      margin: 0 auto;
      padding: 26px 0 44px;
    }

    .tab-panel {
      position: relative;
      display: none;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: var(--surface);
      box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
      overflow: hidden;
      backdrop-filter: blur(10px) saturate(108%);
    }

    .tab-panel::before {
      display: none;
    }

    .tab-panel.active {
      display: block;
      animation: panel-in 420ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .panel-pad {
      padding: 28px;
    }

    .hero {
      position: relative;
      min-height: 58vh;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 348px;
      gap: 26px;
      align-items: center;
      padding: 40px 40px 38px;
      background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--brand-glow) 80%, transparent), transparent 28rem),
        linear-gradient(135deg, color-mix(in srgb, var(--brand-bottom) 92%, black 8%) 0%, color-mix(in srgb, var(--brand-top) 58%, var(--brand-bottom) 42%) 54%, color-mix(in srgb, var(--brand-bottom) 82%, var(--paper) 18%) 100%);
      overflow: hidden;
    }

    .hero::before,
    .hero::after {
      display: none;
    }

    .hero::before {
      width: 540px;
      height: 540px;
      top: -200px;
      right: -120px;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 68%);
    }

    .hero::after {
      width: 420px;
      height: 220px;
      bottom: -80px;
      left: 38%;
      background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.16), transparent 72%);
      filter: blur(18px);
    }

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

    .hero-copy {
      display: grid;
      gap: 16px;
    }

    .home-stage {
      display: grid;
      align-self: stretch;
      gap: 16px;
    }

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

    .signal-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .workflow-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: clamp(16px, 2vw, 28px);
      overflow: visible;
      padding-bottom: 0;
    }

    .hero-kpi,
    .signal-item {
      min-width: 0;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 18px;
      background: var(--hero-card);
      border-color: var(--hero-card-border);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .hero-kpi strong,
    .signal-item strong {
      display: block;
      font-family: var(--heading-font);
      color: var(--hero-ink);
      font-size: 26px;
      line-height: 1;
      letter-spacing: -0.04em;
    }

    .hero-kpi span,
    .signal-item span {
      display: block;
      margin-top: 8px;
      color: var(--hero-muted);
      font-size: 13px;
      line-height: 1.55;
      overflow-wrap: break-word;
    }

    .signal-card {
      position: relative;
      border: 1px solid var(--hero-card-border);
      border-radius: 18px;
      padding: 24px 24px 22px;
      background: rgba(255, 255, 255, 0.03);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }

    .signal-card p {
      margin-top: 10px;
      color: var(--hero-muted);
      font-size: 14px;
      line-height: 1.58;
      overflow-wrap: break-word;
    }

    .value-strip {
      grid-column: 1 / -1;
      display: grid;
      gap: 14px;
    }

    .value-strip .signal-grid {
      display: flex;
      flex-wrap: nowrap;
      overflow-x: auto;
      gap: 12px;
      padding-bottom: 4px;
    }

    .value-strip .signal-item {
      flex: 0 0 min(250px, calc((100% - 36px) / 4));
    }

    .workflow-card {
      grid-column: 1 / -1;
      display: flex;
      flex-direction: column;
      gap: 14px;
      min-width: 0;
    }

    .workflow-card .workflow-grid {
      order: -1;
      margin-top: 0;
      margin-bottom: 6px;
      align-self: stretch;
      width: 100%;
      flex: 0 0 auto;
    }

    .workflow-grid .signal-item {
      min-height: 158px;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      padding: clamp(20px, 2vw, 28px);
    }

    .workflow-grid .signal-item span {
      max-width: 32ch;
    }

    .workflow-card .action-row {
      position: relative;
      z-index: 2;
      margin-top: 18px;
      flex: 0 0 auto;
    }

    .signal-card::after {
      display: none;
    }

    .home-options {
      display: grid;
      gap: 14px;
    }

    .option-card {
      position: relative;
      overflow: hidden;
      min-width: 0;
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 22px;
      background: var(--theme-shell-bg);
      box-shadow: var(--theme-shell-shadow);
      text-align: left;
      color: var(--ink);
      transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    }

    .option-card::before,
    .card::before,
    .chart-card::before,
    .form-card::before,
    .profile-panel::before,
    .category-shell::before,
    .dash::before,
    .review-card::before,
    .question::before {
      display: none;
    }

    .option-card:hover::before,
    .card:hover::before,
    .chart-card:hover::before,
    .form-card:hover::before,
    .profile-panel:hover::before,
    .category-shell:hover::before,
    .dash:hover::before,
    .review-card:hover::before,
    .question:hover::before {
      display: none;
    }

    .option-card:hover {
      transform: translateY(-1px);
      border-color: color-mix(in srgb, var(--line) 64%, var(--gold) 36%);
      box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    }

    .option-card strong {
      display: block;
      margin-top: 10px;
      font-family: var(--heading-font);
      font-size: 22px;
      line-height: 1.12;
      letter-spacing: -0.03em;
      overflow-wrap: break-word;
    }

    .option-card span {
      display: block;
      margin-top: 8px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
      overflow-wrap: break-word;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      width: fit-content;
      margin-bottom: 10px;
      color: inherit;
      font-size: 10.5px;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .eyebrow::before {
      content: "";
      width: 26px;
      height: 2px;
      border-radius: 999px;
      background: currentColor;
      box-shadow: none;
    }

    h1,
    h2,
    h3,
    h4 {
      margin: 0;
      color: var(--ink);
      font-family: var(--heading-font);
      line-height: 1.04;
      letter-spacing: -0.03em;
      text-transform: capitalize;
    }

    h1 {
      max-width: 780px;
      font-size: clamp(38px, 4vw, 56px);
    }

    h2 {
      font-size: clamp(28px, 2.6vw, 36px);
    }

    h3 {
      font-size: 21px;
    }

    p {
      margin: 0;
    }

    .lead {
      max-width: 720px;
      color: var(--hero-muted);
      font-size: 18px;
      line-height: 1.64;
    }

    .hero h1,
    .hero h2,
    .hero h3,
    .hero .eyebrow {
      color: var(--hero-ink);
    }

    .hero .button {
      background: rgba(255, 255, 255, 0.92);
      border-color: rgba(255, 255, 255, 0.92);
      color: #171a20;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    }

    .hero .button-ghost {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.18);
      color: var(--hero-ink);
    }

    .hero .button-ghost:hover {
      background: rgba(255, 255, 255, 0.14);
      border-color: rgba(255, 255, 255, 0.24);
    }

    .hero .badge,
    .hero .band-pill {
      background: rgba(255, 255, 255, 0.12);
      border-color: rgba(255, 255, 255, 0.16);
      color: var(--hero-ink);
    }

    .hero .notice {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.16);
      border-left-color: rgba(255, 255, 255, 0.68);
      color: var(--hero-muted);
      box-shadow: none;
    }

    .hero-note {
      color: var(--hero-muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .muted,
    .card p,
    .card li,
    details p {
      color: var(--muted);
      font-size: 14px;
    }

    .action-row {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
    }

    .assessment-actions {
      margin-top: 3mm;
    }

    .assessment-submit-row {
      margin-top: 14px;
      justify-content: flex-start;
    }

    .assessment-action-status {
      flex-basis: 100%;
      margin: 0;
    }

    .notice {
      margin-top: 0;
      min-width: 0;
      border: 1px solid var(--theme-feature-border);
      border-left: 3px solid var(--ink);
      border-radius: 12px;
      padding: 12px 14px;
      background: var(--theme-feature-bg);
      color: var(--theme-feature-text);
      font-size: 13px;
      box-shadow: none;
      overflow-wrap: break-word;
      line-height: 1.58;
    }

    .warning {
      border-left-color: var(--gold);
      border-color: rgba(142, 106, 26, 0.18);
      background: rgba(142, 106, 26, 0.08);
    }

    .success {
      border-left-color: var(--green);
      border-color: rgba(45, 123, 82, 0.18);
      background: rgba(45, 123, 82, 0.08);
    }

    .dash,
    .card,
    .chart-card,
    .table-wrap,
    .form-card,
    .profile-panel,
    .category-shell,
    .review-card,
    .question {
      position: relative;
      overflow: hidden;
      border: 1px solid var(--theme-shell-border);
      border-radius: var(--theme-shell-radius);
      background: var(--theme-shell-overlay), var(--theme-shell-bg);
      box-shadow: var(--theme-shell-shadow);
    }

    .dash,
    .card,
    .chart-card,
    .form-card,
    .profile-panel,
    .category-shell,
    .review-card,
    .question {
      transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    }

    .dash:hover,
    .card:hover,
    .chart-card:hover,
    .form-card:hover,
    .profile-panel:hover,
    .category-shell:hover,
    .review-card:hover,
    .question:hover {
      transform: none;
      border-color: var(--line-strong);
      box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    }

    .dash-top {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      align-items: center;
      padding: 0 0 14px;
      border-bottom: 1px solid var(--line);
      background: transparent;
    }

    .dash-top > :first-child,
    .review-doc-header > :first-child {
      min-width: 0;
      flex: 1 1 auto;
    }

    .dash-top h3,
    .review-doc-copy strong {
      font-size: clamp(18px, 2vw, 21px);
      line-height: 1.18;
      text-wrap: pretty;
      overflow-wrap: break-word;
      word-break: normal;
      hyphens: auto;
    }

    .dash-top p,
    .review-doc-copy p {
      margin-top: 4px;
      line-height: 1.55;
      text-wrap: pretty;
      overflow-wrap: break-word;
      word-break: normal;
      hyphens: auto;
    }

    .dash > .dash-top {
      align-items: flex-start;
      padding: 18px 18px 14px;
    }

    .dash-body {
      padding: 18px;
      display: grid;
      gap: 16px;
    }

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

    .metric {
      min-width: 0;
      border: 1px solid var(--theme-control-border);
      border-radius: 12px;
      padding: 14px;
      background: var(--theme-control-bg);
      box-shadow: none;
    }

    .metric[data-progress-state="complete"],
    .chart-card[data-progress-state="complete"] {
      border-color: color-mix(in srgb, var(--gold) 40%, var(--theme-control-border) 60%);
      background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 82%, var(--gold) 18%), color-mix(in srgb, var(--surface-2) 86%, var(--gold) 14%));
      box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    }

    .metric[data-progress-state="current"],
    .chart-card[data-progress-state="current"] {
      border-color: color-mix(in srgb, var(--blue-2) 24%, var(--theme-control-border) 76%);
      background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, var(--blue-2) 12%), color-mix(in srgb, var(--surface-2) 92%, var(--gold) 8%));
    }

    .metric[data-progress-state="pending"],
    .chart-card[data-progress-state="pending"] {
      opacity: 0.82;
    }

    .metric strong {
      display: block;
      color: var(--ink);
      font-family: var(--heading-font);
      font-size: 26px;
      line-height: 1;
      letter-spacing: -0.04em;
    }

    .metric span {
      display: block;
      margin-top: 6px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
      overflow-wrap: break-word;
    }

    .badge,
    .band-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      width: fit-content;
      max-width: 100%;
      min-inline-size: max(92px, 8ch);
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 6px 12px;
      background: var(--badge-bg);
      color: var(--badge-text);
      font-size: 10.5px;
      font-weight: 800;
      line-height: 1.35;
      text-align: center;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      overflow-wrap: break-word;
      word-break: normal;
      hyphens: manual;
    }

    .band-pill {
      border-color: color-mix(in srgb, var(--line) 76%, var(--gold) 24%);
      background: color-mix(in srgb, var(--surface) 84%, var(--soft) 16%);
      color: color-mix(in srgb, var(--ink) 90%, var(--gold) 10%);
    }

    .hero-kpi *,
    .signal-card *,
    .signal-item *,
    .option-card *,
    .notice *,
    .metric *,
    .badge *,
    .band-pill *,
    .selected-company *,
    .class-panel *,
    .mini-note *,
    .review-doc *,
    .review-doc-slot *,
    .choice-chip *,
    .dashboard-chip *,
    .report-card *,
    .report-item *,
    .category-button * {
      min-width: 0;
      max-width: 100%;
      white-space: normal;
      overflow-wrap: break-word;
      word-break: normal;
      hyphens: auto;
    }

    .score-ring {
      width: 170px;
      height: 170px;
      margin: 12px auto;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background:
        radial-gradient(circle at center, var(--paper) 56%, transparent 57%),
        conic-gradient(var(--gold) var(--score-deg, 266deg), rgba(148, 163, 184, 0.18) 0);
      box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 14px 26px rgba(15, 23, 42, 0.12);
    }

    .score-ring strong {
      display: block;
      font-family: var(--heading-font);
      font-size: 44px;
      line-height: 1;
      text-align: center;
      letter-spacing: -0.05em;
    }

    .score-ring span {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
      text-align: center;
    }

    .bar-stack {
      display: grid;
      gap: 10px;
      margin-top: 14px;
    }

    .bar-row {
      display: grid;
      grid-template-columns: 130px 1fr 38px;
      gap: 10px;
      align-items: center;
      color: var(--muted);
      font-size: 12px;
    }

    .track {
      height: 9px;
      border-radius: 999px;
      background: color-mix(in srgb, var(--surface-3) 76%, var(--line) 24%);
      overflow: hidden;
      box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.06);
    }

    .track span {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, color-mix(in srgb, var(--chart-primary) 72%, white 28%), var(--gold));
      box-shadow: none;
    }

    .section-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 360px;
      gap: 20px;
      align-items: start;
      margin-bottom: 22px;
    }

    .section-head p {
      color: var(--muted);
      line-height: 1.62;
    }

    .grid-2 {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 18px;
      align-items: start;
    }

    .audit-request-stack {
      display: grid;
      gap: 18px;
      align-items: start;
    }

    .audit-value-panel {
      display: grid;
      gap: 14px;
      margin-top: 16px;
      padding: 16px;
      border: 1px solid var(--theme-control-border);
      border-radius: 18px;
      background: color-mix(in srgb, var(--theme-control-bg) 86%, transparent);
    }

    .audit-value-panel > p {
      margin: 0;
      color: var(--muted);
      line-height: 1.62;
    }

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

    .audit-value-item {
      min-width: 0;
      border: 1px solid var(--theme-control-border);
      border-radius: 14px;
      padding: 14px 15px;
      background: var(--theme-shell-bg);
    }

    .audit-value-item strong {
      display: block;
      color: var(--ink);
      font-size: 15px;
      line-height: 1.25;
    }

    .audit-value-item span {
      display: block;
      margin-top: 6px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .pricing-hero {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px;
      align-items: stretch;
      margin-bottom: 18px;
      min-width: 0;
    }

    .pricing-intro-card,
    .pricing-assumption-card,
    .pricing-card,
    .pricing-note-card {
      border: 1px solid var(--theme-control-border);
      border-radius: 18px;
      background: var(--atlas-card-bg, var(--theme-card-bg));
      box-shadow: var(--atlas-card-shadow, var(--shadow-soft));
    }

    .pricing-intro-card {
      display: grid;
      align-content: start;
      gap: 12px;
      min-width: 0;
      overflow: hidden;
      padding: clamp(20px, 2.3vw, 26px);
    }

    .pricing-intro-card h3,
    .pricing-card h3,
    .pricing-note-card h3 {
      margin: 0;
      color: var(--ink);
      font-size: clamp(22px, 2vw, 28px);
      line-height: 1.12;
      letter-spacing: -0.035em;
      text-wrap: balance;
    }

    .pricing-intro-card p,
    .pricing-card p,
    .pricing-note-card p {
      margin: 0;
      color: var(--muted);
      line-height: 1.6;
      overflow-wrap: anywhere;
      text-wrap: pretty;
    }

    .pricing-assumption-card {
      display: grid;
      gap: 12px;
      align-content: start;
      min-width: 0;
      overflow: hidden;
      padding: clamp(20px, 2.3vw, 26px);
      background:
        radial-gradient(circle at 10% 0%, rgba(47, 174, 208, 0.14), transparent 34%),
        radial-gradient(circle at 100% 20%, rgba(104, 173, 69, 0.12), transparent 38%),
        var(--theme-card-bg);
    }

    .pricing-assumption-card strong {
      color: var(--ink);
      font-family: var(--heading-font);
      font-size: clamp(22px, 2vw, 28px);
      line-height: 1.12;
      letter-spacing: -0.035em;
      text-wrap: balance;
    }

    .pricing-assumption-card span {
      color: var(--muted);
      line-height: 1.6;
      overflow-wrap: anywhere;
      text-wrap: pretty;
    }

    .pricing-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
      gap: 18px;
      align-items: start;
      min-width: 0;
    }

    .pricing-card {
      min-width: 0;
      overflow: hidden;
    }

    .pricing-card-head {
      display: grid;
      gap: 10px;
      padding: 22px;
      border-bottom: 1px solid var(--theme-control-border);
      background: linear-gradient(135deg, rgba(47, 174, 208, 0.12), rgba(104, 173, 69, 0.08));
    }

    .pricing-card-head .eyebrow {
      color: var(--button-bg);
    }

    .pricing-pill-row {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 0;
    }

    .pricing-pill {
      display: inline-flex;
      align-items: center;
      min-height: 28px;
      padding: 6px 10px;
      border: 1px solid var(--theme-control-border);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.72);
      color: var(--ink);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.01em;
      text-transform: none;
    }

    .pricing-table-wrap {
      padding: 10px 22px 18px;
      min-width: 0;
      overflow: hidden;
    }

    .pricing-table {
      width: 100%;
      min-width: 0 !important;
      border-collapse: collapse;
      table-layout: fixed;
    }

    .pricing-table th,
    .pricing-table td {
      padding: 13px 0;
      border-bottom: 1px solid var(--theme-control-border);
      vertical-align: top;
      text-align: left;
      overflow-wrap: anywhere;
      word-break: normal;
    }

    .pricing-table th {
      color: var(--muted);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .pricing-table td {
      color: var(--ink);
      font-size: 14px;
      line-height: 1.35;
    }

    .pricing-table td:last-child,
    .pricing-table th:last-child {
      width: 42%;
      padding-left: 16px;
      text-align: left;
      white-space: normal;
      font-weight: 900;
    }

    .pricing-table td:last-child {
      color: var(--button-bg);
      font-size: 15px;
    }

    .pricing-inclusions {
      display: grid;
      gap: 8px;
      margin: 0;
      padding: 0 22px 22px;
      list-style: none;
    }

    .pricing-inclusions li {
      display: grid;
      grid-template-columns: 18px minmax(0, 1fr);
      gap: 10px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .pricing-inclusions li::before {
      content: "";
      width: 8px;
      height: 8px;
      margin-top: 6px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--cyan), var(--green));
      box-shadow: 0 0 0 4px rgba(47, 174, 208, 0.12);
    }

    .pricing-card-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      padding: 0 22px 22px;
    }

    .pricing-note-card {
      display: grid;
      gap: 14px;
      margin-top: 18px;
      padding: 22px;
    }

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

    .pricing-note-item {
      border: 1px solid var(--theme-control-border);
      border-radius: 14px;
      padding: 14px;
      background: var(--theme-shell-bg);
    }

    .pricing-note-item strong {
      display: block;
      color: var(--ink);
      font-size: 14px;
      line-height: 1.25;
    }

    .pricing-note-item span {
      display: block;
      margin-top: 6px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

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

    .dashboard-radar-grid {
      margin-top: 4px;
    }

    .dashboard-company-ribbon {
      display: grid;
    }

    .dashboard-company-ribbon .dash {
      min-height: auto;
    }

    .dashboard-company-ribbon .dash-top {
      align-items: center;
    }

    .dashboard-radar-grid .chart-card {
      display: grid;
      gap: 10px;
      align-content: start;
    }

    .dashboard-mini-radar {
      width: 100%;
      max-width: 320px;
      height: auto;
      margin: 0 auto;
      display: block;
    }

    .card,
    .form-card,
    .chart-card,
    .profile-panel,
    .category-shell {
      padding: 22px;
    }

    .card p,
    .card li {
      margin-top: 9px;
    }

    .field {
      display: grid;
      gap: 6px;
    }

    .field label {
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .field input,
    .field select,
    .field textarea {
      width: 100%;
      border: 1px solid var(--theme-input-border);
      border-radius: 12px;
      min-height: 46px;
      color: var(--theme-input-text);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }

    .field input,
    .field textarea {
      background: var(--theme-input-bg);
    }

    .field input,
    .field textarea {
      padding: 12px 13px;
    }

    .field input::placeholder,
    .field textarea::placeholder {
      color: color-mix(in srgb, var(--muted) 78%, transparent);
    }

    .field input[readonly] {
      background: color-mix(in srgb, var(--theme-card-bg) 86%, var(--theme-accent) 14%);
      border-color: color-mix(in srgb, var(--theme-control-border) 82%, var(--theme-accent) 18%);
      color: color-mix(in srgb, var(--ink) 90%, var(--theme-accent) 10%);
      cursor: not-allowed;
    }

    .country-guidance {
      grid-column: 1 / -1;
      margin: 0;
      border: 1px solid var(--theme-control-border);
      border-radius: 14px;
      padding: 12px 14px;
      background: color-mix(in srgb, var(--theme-card-bg) 84%, var(--theme-accent) 16%);
      color: var(--theme-card-text);
      font-size: 13px;
      line-height: 1.55;
    }

    .selected-company {
      min-width: 0;
      border: 1px solid var(--theme-control-border);
      border-radius: 14px;
      padding: 16px;
      background: var(--theme-control-bg);
      color: var(--theme-control-text);
    }

    .selected-company strong {
      display: block;
      font-size: 15px;
      overflow-wrap: break-word;
    }

    .selected-company span {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: 13px;
      overflow-wrap: break-word;
    }

    .assessment-company-strip {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin: 0 0 18px;
      border: 1px solid var(--theme-control-border);
      border-radius: 18px;
      padding: 14px 16px;
      background: var(--theme-control-bg);
      color: var(--theme-control-text);
    }

    .assessment-company-strip strong {
      display: block;
      color: var(--ink);
      font-size: 18px;
      line-height: 1.2;
      overflow-wrap: anywhere;
    }

    .assessment-company-strip span {
      display: block;
      margin-top: 3px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.35;
    }

    .field textarea {
      min-height: 96px;
      resize: vertical;
    }

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

    .class-panel {
      min-width: 0;
      border: 1px solid var(--theme-feature-border);
      border-radius: 12px;
      padding: 16px;
      background: var(--theme-feature-bg);
      display: grid;
      gap: 8px;
      box-shadow: none;
    }

    .class-panel strong {
      display: block;
      font-size: 15px;
      overflow-wrap: break-word;
    }

    .class-panel p {
      color: var(--theme-feature-muted);
      font-size: 13px;
      overflow-wrap: break-word;
    }

    .assessment-step-flow {
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: minmax(220px, 1fr);
      gap: 10px;
      margin-bottom: 12px;
      overflow-x: auto;
      padding-bottom: 2px;
    }

    .assessment-step-card {
      min-width: 0;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 12px 14px;
      background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, white 6%), color-mix(in srgb, var(--surface-2) 96%, var(--soft) 4%));
      display: grid;
      gap: 6px;
      align-content: start;
    }

    .assessment-step-card.active {
      border-color: rgba(179, 138, 47, 0.34);
      background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, var(--gold) 12%), color-mix(in srgb, var(--surface-2) 92%, var(--gold) 8%));
    }

    .assessment-step-label {
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .assessment-step-card strong {
      color: var(--ink);
      font-size: 15px;
      line-height: 1.3;
    }

    .assessment-step-card p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.42;
    }

    .assessment-step-card .field {
      margin-top: 10px;
    }

    .assessment-step-card .field label {
      margin-bottom: 8px;
    }

    .assessment-step-flow.is-sidebar {
      grid-auto-flow: row;
      grid-auto-columns: unset;
      grid-template-columns: 1fr;
      margin-bottom: 16px;
      overflow: visible;
    }

    .assessment-step-band {
      margin-bottom: 14px;
      padding: 14px 16px;
      background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 98%, transparent), color-mix(in srgb, var(--surface-2) 94%, var(--soft) 6%));
    }

    .assessment-step-band .assessment-step-intro {
      margin-bottom: 10px;
    }

    .assessment-step-band .assessment-step-flow {
      grid-auto-flow: unset;
      grid-auto-columns: unset;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      margin-bottom: 0;
      overflow: visible;
      padding-bottom: 0;
    }

    .assessment-step-intro {
      margin-bottom: 10px;
    }

    .assessment-step-intro strong {
      display: block;
      color: var(--ink);
      font-size: 15px;
      margin-bottom: 4px;
    }

    .assessment-step-intro p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.42;
    }

    .business-class-definitions {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-top: 16px;
    }

    .business-class-definition {
      position: relative;
      min-width: 0;
      border: 1px solid var(--theme-control-border);
      border-radius: 14px;
      padding: 14px;
      background: color-mix(in srgb, var(--theme-control-bg) 88%, transparent);
      transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition), background var(--transition);
    }

    .business-class-definition.active {
      border-color: color-mix(in srgb, var(--gold) 72%, var(--theme-control-border) 28%);
      background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--gold-soft) 34%, var(--theme-control-bg) 66%),
        var(--theme-control-bg)
      );
      box-shadow: 0 14px 32px color-mix(in srgb, var(--gold) 16%, transparent);
      transform: translateY(-1px);
    }

    .business-class-definition.active::after {
      content: "Current";
      position: absolute;
      top: 10px;
      right: 10px;
      display: inline-flex;
      align-items: center;
      min-height: 20px;
      padding: 3px 8px;
      border-radius: 999px;
      background: var(--gold);
      color: var(--gold-ink);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .business-class-current {
      display: grid;
      gap: 5px;
      margin-top: 8px;
      padding: 11px 12px;
      border: 1px solid color-mix(in srgb, var(--gold) 36%, var(--theme-control-border) 64%);
      border-radius: 14px;
      background: color-mix(in srgb, var(--gold-soft) 28%, var(--theme-control-bg) 72%);
    }

    .business-class-current .eyebrow {
      margin: 0;
    }

    .business-class-current strong {
      color: var(--ink);
      font-family: var(--heading-font);
      font-size: clamp(20px, 2.1vw, 30px);
      line-height: 0.98;
      letter-spacing: -0.04em;
    }

    .business-class-current p {
      margin: 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }

    .business-class-current .button {
      width: fit-content;
      min-height: 38px;
      margin-top: 6px;
      padding: 8px 14px;
      font-size: 12px;
      white-space: normal;
    }

    .business-class-definition strong {
      display: block;
      color: var(--ink);
      font-size: 14px;
      line-height: 1.25;
    }

    .business-class-definition span {
      display: block;
      margin-top: 6px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
    }

    .classification-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 18px;
      align-items: start;
    }

    .classification-method {
      display: grid;
      gap: 12px;
      margin-bottom: 18px;
      padding: 16px;
      border: 1px solid var(--theme-control-border);
      border-radius: 16px;
      background: color-mix(in srgb, var(--theme-control-bg) 88%, transparent);
    }

    .classification-method strong {
      color: var(--ink);
      font-size: 15px;
      line-height: 1.35;
    }

    .classification-method p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.58;
    }

    .classification-factor-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(360px, 1fr));
      gap: 14px;
    }

    .classification-factor {
      min-width: 0;
      display: grid;
      gap: 9px;
      padding: 14px;
      border: 1px solid var(--theme-control-border);
      border-radius: 14px;
      background: var(--theme-control-bg);
    }

    .classification-apply-card {
      display: grid;
      gap: 12px;
      margin-top: 18px;
      padding: 18px;
      border: 1px solid var(--theme-control-border);
      border-radius: 16px;
      background: linear-gradient(135deg, rgba(14, 161, 145, 0.08), rgba(255, 255, 255, 0.72));
    }

    .classification-apply-card h3 {
      margin: 0;
      color: var(--ink);
      font-size: 18px;
      line-height: 1.25;
    }

    .classification-apply-card p {
      max-width: 860px;
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .classification-apply-card .button {
      justify-self: start;
      min-height: 48px;
      padding-inline: 24px;
    }

    .classification-factor label {
      color: var(--ink);
      font-size: 13px;
      font-weight: 800;
      line-height: 1.35;
    }

    .classification-factor p {
      margin: 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.48;
    }

    .classification-result-card {
      position: sticky;
      top: 18px;
      display: grid;
      gap: 14px;
    }

    .classification-result {
      display: grid;
      gap: 8px;
      padding: 18px;
      border: 1px solid color-mix(in srgb, var(--gold) 34%, var(--theme-control-border) 66%);
      border-radius: 18px;
      background: color-mix(in srgb, var(--gold-soft) 34%, var(--theme-control-bg) 66%);
    }

    .classification-result .eyebrow {
      margin: 0;
    }

    .classification-result strong {
      color: var(--ink);
      font-family: var(--heading-font);
      font-size: clamp(30px, 4vw, 44px);
      line-height: 0.95;
      letter-spacing: -0.05em;
    }

    .classification-result p,
    .classification-summary-list li {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

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

    .assessment-quick-notes {
      display: grid;
      gap: 10px;
      margin-top: 14px;
    }

    .rating-guide {
      display: grid;
      grid-template-columns: repeat(5, minmax(150px, 1fr));
      gap: 10px;
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid var(--line);
    }

    .rating-guide span {
      min-width: 0;
      display: grid;
      align-content: start;
      gap: 8px;
      min-height: 124px;
      padding: 14px 16px;
      border: 1px solid var(--theme-control-border);
      border-radius: 12px;
      background: var(--theme-control-bg);
      color: var(--theme-control-muted);
      font-size: 12px;
      font-weight: 650;
      line-height: 1.42;
      overflow-wrap: break-word;
      position: relative;
      transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
      overflow: visible;
    }

    .rating-guide span:hover,
    .rating-guide span:focus-visible {
      border-color: var(--accent);
      box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 16%, transparent);
      transform: translateY(-1px);
    }

    .rating-guide strong {
      color: var(--theme-control-text);
      font-size: 0.9rem;
      line-height: 1.25;
    }

    .assessment-layout > .category-shell:first-child .class-panel {
      margin-top: 10px;
    }

    #assessmentCategoryTop {
      scroll-margin-top: 18px;
    }

    .assessment-layout > .category-shell:last-child {
      border-radius: 22px;
    }

    .mini-note {
      min-width: 0;
      border: 1px solid var(--theme-feature-border);
      border-radius: 12px;
      padding: 12px 13px;
      background: var(--theme-feature-bg);
      color: var(--theme-feature-muted);
      font-size: 13px;
      line-height: 1.55;
      overflow-wrap: break-word;
    }

    .mini-note strong {
      color: var(--ink);
    }

    .review-guidance {
      display: grid;
      gap: 12px;
      margin-top: 12px;
    }

    .review-grid {
      display: grid;
      gap: 18px;
      margin-top: 18px;
    }

    .review-card {
      padding: 22px;
    }

    .review-card-head {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: flex-start;
    }

    .review-card-copy {
      min-width: 0;
      display: grid;
      gap: 8px;
    }

    .review-doc {
      margin-top: 16px;
      min-width: 0;
      border: 1px dashed var(--theme-control-border);
      border-radius: 14px;
      padding: 14px 15px;
      background: var(--theme-control-bg);
      display: grid;
      gap: 6px;
    }

    .review-doc strong {
      font-size: 14px;
      overflow-wrap: break-word;
    }

    .review-doc span {
      color: var(--muted);
      font-size: 13px;
      overflow-wrap: break-word;
    }

    .review-doc.attached {
      border-style: solid;
      border-color: rgba(32, 158, 113, 0.28);
      background: rgba(32, 158, 113, 0.1);
    }

    .review-doc-list {
      display: grid;
      gap: 12px;
      margin-top: 16px;
    }

    .review-doc-slot {
      min-width: 0;
      border: 1px solid var(--theme-control-border);
      border-radius: 14px;
      padding: 16px;
      background: var(--theme-control-bg);
      display: grid;
      gap: 12px;
    }

    .review-doc-slot.complete {
      border-color: rgba(32, 158, 113, 0.24);
      background:
        linear-gradient(145deg, rgba(32, 158, 113, 0.12), rgba(255, 255, 255, 0.08)),
        rgba(255, 255, 255, 0.1);
    }

    .review-doc-header {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: flex-start;
    }

    .review-doc-copy p,
    .report-item p {
      margin: 0;
      overflow-wrap: break-word;
    }

    .review-doc-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: flex-end;
    }

    .review-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      margin-top: 16px;
    }

    .review-upload {
      position: relative;
      overflow: hidden;
    }

    .review-upload input {
      position: absolute;
      inset: 0;
      opacity: 0;
      cursor: pointer;
    }

    .review-workspace {
      display: grid;
      gap: 22px;
    }

    .review-workspace-head {
      display: grid;
      gap: 8px;
      padding-bottom: 18px;
      border-bottom: 1px solid var(--line);
    }

    .review-step-block {
      display: grid;
      gap: 14px;
    }

    .review-step-block > p {
      margin: 0;
    }

    .review-selector-groups,
    .review-upload-groups {
      display: grid;
      gap: 16px;
    }

    .review-selector-group,
    .review-upload-group {
      display: grid;
      gap: 14px;
      padding: 18px;
      border: 1px solid var(--theme-control-border);
      border-radius: 16px;
      background: var(--theme-control-bg);
    }

    .review-selector-group-head,
    .review-upload-group-head {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: flex-start;
    }

    .review-selector-group-copy,
    .review-upload-group-copy {
      display: grid;
      gap: 6px;
      min-width: 0;
    }

    .review-selector-group-copy p,
    .review-upload-group-copy p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.6;
    }

    .review-selector-ribbon {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 10px;
    }

    .review-check-chip {
      display: inline-flex;
      align-items: flex-start;
      gap: 12px;
      min-width: min(100%, 280px);
      padding: 14px 16px;
      border: 1px solid var(--theme-control-border);
      border-radius: 14px;
      background: var(--theme-control-bg);
      cursor: pointer;
      transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    }

    .review-check-chip:hover {
      border-color: var(--gold);
      transform: translateY(-1px);
    }

    .review-check-chip.active {
      border-color: color-mix(in srgb, var(--gold) 58%, var(--theme-control-border) 42%);
      background: color-mix(in srgb, var(--gold-soft) 58%, var(--theme-control-bg) 42%);
      box-shadow: 0 10px 24px rgba(17, 19, 23, 0.08);
    }

    .review-check-chip input {
      margin: 3px 0 0;
      accent-color: var(--gold);
      flex: 0 0 auto;
    }

    .review-check-copy {
      display: grid;
      gap: 5px;
      min-width: 0;
    }

    .review-check-copy strong,
    .review-upload-copy strong {
      font-size: 14px;
      line-height: 1.35;
    }

    .review-check-copy span,
    .review-upload-copy span {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.55;
    }

    .review-upload-list {
      display: grid;
      gap: 14px;
    }

    .review-upload-item {
      display: grid;
      gap: 14px;
      padding: 18px 18px 16px;
      border: 1px solid var(--theme-control-border);
      border-radius: 16px;
      background: var(--theme-control-bg);
    }

    .review-upload-head {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: flex-start;
    }

    .review-upload-copy {
      display: grid;
      gap: 6px;
      min-width: 0;
    }

    .review-upload-empty {
      padding: 20px;
      border: 1px dashed var(--theme-control-border);
      border-radius: 16px;
      background: var(--theme-feature-bg);
      color: var(--muted);
    }

    .review-note-field {
      display: grid;
      gap: 7px;
    }

    .review-note-field label {
      color: var(--ink);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .review-note-field textarea {
      min-height: 72px;
      resize: vertical;
      border-radius: 12px;
      font-size: 13px;
      line-height: 1.5;
    }

    .review-action-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
      padding-top: 2px;
    }

    .route-score-grid {
      display: grid;
      gap: 12px;
      margin-top: 14px;
    }

    .route-score-row {
      min-width: 0;
      display: grid;
      grid-template-columns: minmax(0, 1.28fr) minmax(340px, 1fr);
      gap: 22px;
      align-items: center;
      padding: 16px 18px;
      border: 1px solid var(--theme-control-border);
      border-radius: 14px;
      background: var(--theme-control-bg);
    }

    .route-score-copy {
      min-width: 0;
      display: grid;
      gap: 5px;
    }

    .route-score-copy strong,
    .route-score-copy span {
      overflow-wrap: normal;
      word-break: normal;
      hyphens: manual;
    }

    .route-score-copy span {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.58;
    }

    .route-score-controls {
      min-width: 0;
      display: grid;
      gap: 10px;
      justify-items: stretch;
    }

    .route-score-select {
      width: 100%;
      min-width: 0;
      border: 1px solid var(--theme-input-border);
      border-radius: 12px;
      background: var(--theme-input-bg);
      color: var(--theme-input-text);
      font: inherit;
    }

    .route-score-summary {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 8px;
      align-items: center;
    }

    .route-score-summary .status-text {
      margin: 0;
    }

    .route-question-grid {
      display: grid;
      gap: 12px;
      margin-top: 14px;
    }

    .route-question-group {
      border: 1px solid var(--theme-control-border);
      border-radius: 16px;
      background: var(--theme-control-bg);
      overflow: hidden;
    }

    .route-question-group summary {
      cursor: pointer;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 10px;
      padding: 14px 16px;
      color: var(--theme-control-text);
      font-weight: 900;
      list-style: none;
    }

    .route-question-group summary::-webkit-details-marker {
      display: none;
    }

    .route-question-list {
      display: grid;
      gap: 10px;
      padding: 0 16px 16px;
    }

    .route-question-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(250px, 0.42fr);
      gap: 16px;
      align-items: start;
      padding: 12px;
      border-radius: 14px;
      background: color-mix(in srgb, var(--theme-control-bg) 78%, var(--theme-card-bg) 22%);
    }

    .route-question-row p {
      margin: 4px 0 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

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

    .choice-chip {
      min-width: 0;
      display: grid;
      grid-template-columns: 18px minmax(0, 1fr);
      column-gap: 12px;
      row-gap: 6px;
      align-items: start;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 15px 16px;
      background: var(--theme-control-bg);
      color: var(--ink);
      box-shadow: none;
      transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
      text-align: left;
    }

    .choice-chip:hover {
      transform: translateY(-1px);
      border-color: color-mix(in srgb, var(--line-strong) 70%, var(--blue-2) 30%);
      box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    }

    .choice-chip.active {
      border-color: color-mix(in srgb, var(--blue-2) 28%, var(--theme-control-border) 72%);
      background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 84%, var(--blue-2) 16%), color-mix(in srgb, var(--surface-2) 90%, var(--gold) 10%));
    }

    .choice-chip.audit-review-complete {
      border-color: rgba(32, 158, 113, 0.28);
      background:
        linear-gradient(145deg, rgba(32, 158, 113, 0.14), rgba(255, 255, 255, 0.08)),
        rgba(255, 255, 255, 0.14);
    }

    .choice-chip.audit-review-missing {
      border-style: dashed;
      opacity: 0.78;
    }

    .choice-chip input {
      margin-top: 4px;
      accent-color: var(--ink);
      flex: 0 0 auto;
    }

    .choice-chip > div {
      min-width: 0;
    }

    .choice-chip strong {
      display: block;
      font-size: 14px;
      line-height: 1.35;
      letter-spacing: 0.01em;
      word-break: normal;
      overflow-wrap: break-word;
    }

    .choice-chip span {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
      word-break: normal;
      overflow-wrap: break-word;
    }

    .dashboard-switch {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 18px;
    }

    .dashboard-chip {
      border: 1px solid var(--theme-control-border);
      border-radius: 12px;
      padding: 10px 13px;
      background: var(--theme-control-bg);
      color: var(--theme-control-muted);
      font-size: 11px;
      font-weight: 800;
      line-height: 1.35;
      text-align: center;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      overflow-wrap: break-word;
      word-break: normal;
      hyphens: manual;
    }

    .dashboard-chip:hover {
      transform: translateY(-1px);
      border-color: rgba(179, 138, 47, 0.32);
      color: var(--gold);
    }

    .dashboard-chip.active {
      border-color: var(--gold);
      background: var(--theme-control-active-bg);
      color: color-mix(in srgb, var(--ink) 82%, var(--gold) 18%);
      box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    }

    .atlas-workspace {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
      align-items: start;
    }

    .atlas-rail {
      display: grid;
      gap: 12px;
      align-content: start;
      position: static;
    }

    .atlas-stage {
      display: grid;
      gap: 18px;
      min-width: 0;
    }

    .atlas-summary-card {
      overflow: hidden;
    }

    .atlas-summary-card .dash-body {
      grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
      gap: 20px;
      align-items: start;
    }

    .atlas-summary-main,
    .atlas-summary-side {
      display: grid;
      gap: 14px;
    }

    .atlas-nav-inline {
      display: grid;
      gap: 12px;
      padding-top: 14px;
      border-top: 1px solid var(--line);
    }

    .atlas-nav-inline .eyebrow {
      margin-bottom: 0;
    }

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

    .atlas-stage-pill {
      min-width: 0;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 15px 16px;
      background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface-2) 98%, var(--soft) 2%));
      display: grid;
      gap: 6px;
    }

    .atlas-stage-pill span {
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .atlas-stage-pill strong {
      color: var(--ink);
      font-family: var(--heading-font);
      font-size: 18px;
      line-height: 1.25;
      letter-spacing: -0.02em;
    }

    .atlas-prototype-tools {
      border-top: 1px solid var(--line);
      padding-top: 14px;
    }

    .atlas-prototype-tools summary {
      cursor: pointer;
      color: var(--ink);
      font-size: 13px;
      font-weight: 800;
      list-style: none;
    }

    .atlas-prototype-tools summary::-webkit-details-marker {
      display: none;
    }

    .atlas-prototype-tools summary::after {
      content: "+";
      float: right;
      color: var(--gold);
      font-size: 16px;
      line-height: 1;
    }

    .atlas-prototype-tools[open] summary::after {
      content: "-";
    }

    .atlas-prototype-tools p {
      margin: 12px 0 0;
    }

    .atlas-prototype-tools .action-row {
      margin-top: 12px;
    }

    .atlas-nav-shell,
    .atlas-category-shell {
      display: grid;
      gap: 14px;
      margin-bottom: 0;
    }

    .atlas-nav-shell h3,
    .atlas-category-shell h3 {
      margin: 4px 0 0;
    }

    .atlas-view-description,
    .atlas-category-help {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
      margin: 0;
    }

    .atlas-view-switch {
      display: grid;
      gap: 10px;
      margin: 0;
    }

    .atlas-view-switch-inline {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }

    .atlas-view-switch-inline .dashboard-chip {
      justify-content: center;
      text-align: center;
      padding: 12px 10px;
    }

    .atlas-view-switch .dashboard-chip {
      width: 100%;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      padding: 13px 15px;
      text-align: left;
      font-size: 13px;
      letter-spacing: 0.02em;
      text-transform: none;
    }

    .atlas-mode-list {
      display: grid;
      gap: 12px;
    }

    .atlas-mode-card {
      display: grid;
      gap: 10px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface-2) 94%, var(--soft) 6%));
    }

    .atlas-mode-card p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .atlas-mode-card .dashboard-chip {
      width: 100%;
      justify-content: flex-start;
      text-align: left;
      margin: 0;
    }

    .atlas-tools-card {
      display: grid;
      gap: 12px;
    }

    .atlas-tools-card h3 {
      margin: 4px 0 0;
    }

    .atlas-tools-card p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .atlas-category-switch {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin: 0;
    }

    .atlas-category-switch .dashboard-chip {
      min-height: 52px;
      display: grid;
      place-items: center;
      padding: 10px 12px;
      font-size: 12px;
      letter-spacing: 0.01em;
      text-transform: none;
    }

    .atlas-category-metrics,
    .atlas-quad-metrics {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .atlas-category-metrics .metric strong,
    .atlas-quad-metrics .metric strong {
      font-size: 22px;
    }

    .atlas-stage-intro {
      display: none;
    }

    .atlas-quick-strip {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }

    .atlas-quick-card {
      display: grid;
      gap: 6px;
      align-content: start;
      min-width: 0;
      padding: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
    }

    .atlas-quick-card span {
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .atlas-quick-card strong {
      color: var(--ink);
      font-family: var(--heading-font);
      font-size: 21px;
      line-height: 1.18;
      letter-spacing: -0.02em;
      text-wrap: balance;
    }

    .atlas-quick-card p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.6;
      text-wrap: pretty;
    }

    .atlas-section-shell {
      display: grid;
      gap: 16px;
      border: 1px solid rgba(179, 138, 47, 0.16);
      border-radius: 16px;
      padding: 20px;
      background: var(--theme-shell-overlay), var(--theme-shell-bg);
      box-shadow: none;
    }

    .atlas-section-head {
      display: grid;
      gap: 10px;
      align-items: flex-start;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--line);
    }

    .atlas-section-head h3 {
      margin: 4px 0 6px;
    }

    .atlas-section-head p {
      margin: 0;
      color: var(--muted);
      line-height: 1.55;
      max-width: 72ch;
    }

    .atlas-work-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 14px;
    }

    .atlas-section-stack {
      display: grid;
      gap: 18px;
    }

    .atlas-compact-card,
    .atlas-section-shell > .atlas-compact-card {
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    .atlas-work-grid > .atlas-compact-card + .atlas-compact-card,
    .atlas-section-shell > .atlas-compact-card + .atlas-compact-card,
    .atlas-section-shell > .atlas-work-grid + .atlas-work-grid,
    .atlas-section-shell > .atlas-work-grid + .atlas-compact-card,
    .atlas-section-shell > .atlas-compact-card + .atlas-work-grid {
      padding-top: 16px;
      border-top: 1px solid var(--line);
      margin-top: 0;
    }

    .atlas-action-note {
      align-items: center;
    }

    .atlas-action-note .review-doc-header {
      align-items: center;
    }

    .atlas-status-line {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .atlas-section-shell .metric-row {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .atlas-section-shell .metric {
      background: color-mix(in srgb, var(--surface) 96%, transparent);
      box-shadow: none;
    }

    .atlas-section-shell .notice {
      padding: 12px 14px;
      border-radius: 12px;
      box-shadow: none;
    }

    .dashboard-view,
    .atlas-view {
      display: none;
    }

    .dashboard-view.active,
    .atlas-view.active {
      display: grid;
      gap: 14px;
    }

    .report-layout,
    .report-list {
      display: grid;
      gap: 18px;
    }

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

    .report-card {
      min-width: 0;
      border: 1px solid var(--theme-shell-border);
      border-radius: 14px;
      padding: 18px;
      background: var(--theme-shell-overlay), var(--theme-shell-bg);
      box-shadow: var(--theme-shell-shadow);
    }

    .report-card h3 {
      margin: 6px 0 12px;
      overflow-wrap: break-word;
    }

    .audit-summary-row {
      margin-top: 8px;
    }

    .audit-summary-card {
      padding-top: 16px;
    }

    .audit-summary-card h3 {
      margin-top: 0;
    }

    .report-card p {
      margin: 0;
      color: var(--muted);
      overflow-wrap: break-word;
    }

    .management-report-card {
      padding: 22px;
    }

    .management-report-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--theme-shell-border);
    }

    .management-report-actions {
      display: grid;
      justify-items: end;
      gap: 10px;
      min-width: min(100%, 320px);
    }

    .report-mode-switch {
      justify-content: flex-end;
      gap: 8px;
    }

    .report-mode-switch .dashboard-chip {
      min-height: 36px;
      padding-inline: 14px;
      white-space: nowrap;
    }

    .management-report-head h3 {
      margin: 6px 0 8px;
      max-width: 920px;
    }

    .management-report-compact,
    .management-report-full {
      display: grid;
      gap: 18px;
    }

    .management-report-compact {
      padding-top: 18px;
    }

    .management-report-card[data-report-mode="compact"] .management-report-full,
    .management-report-card[data-report-mode="comprehensive"] .management-report-compact {
      display: none;
    }

    .compact-report-grid {
      display: grid;
      grid-template-columns: minmax(240px, 1.05fr) minmax(240px, 1fr);
      gap: 14px;
    }

    .compact-report-card {
      display: grid;
      gap: 10px;
      min-width: 0;
      padding: 16px;
      border: 1px solid var(--theme-control-border);
      border-radius: 16px;
      background: color-mix(in srgb, var(--theme-control-bg) 92%, var(--theme-accent-soft) 8%);
    }

    .compact-report-card h4 {
      margin: 0;
      color: var(--ink);
      font-family: var(--heading-font);
      font-size: 18px;
      letter-spacing: -0.02em;
    }

    .compact-report-card p {
      color: var(--muted);
      line-height: 1.58;
    }

    .compact-report-card .report-list {
      gap: 10px;
    }

    .management-report-section {
      display: grid;
      gap: 12px;
      padding-top: 18px;
      border-top: 1px solid color-mix(in srgb, var(--theme-shell-border) 72%, transparent);
    }

    .management-report-section:first-of-type {
      border-top: 0;
      padding-top: 0;
    }

    .management-report-section h4 {
      margin: 0;
      color: var(--ink);
      font-family: var(--heading-font);
      font-size: 19px;
      letter-spacing: -0.02em;
    }

    .management-report-section > p {
      margin: 0;
      color: var(--muted);
      line-height: 1.65;
    }

    .report-detail-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 10px;
    }

    .report-detail {
      min-width: 0;
      padding: 12px 14px;
      border: 1px solid var(--theme-control-border);
      border-radius: 12px;
      background: var(--theme-control-bg);
    }

    .report-detail span {
      display: block;
      margin-bottom: 5px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.11em;
      text-transform: uppercase;
    }

    .report-detail strong {
      display: block;
      color: var(--ink);
      font-size: 14px;
      line-height: 1.35;
      overflow-wrap: break-word;
    }

    .report-table {
      display: grid;
      overflow: hidden;
      border: 1px solid var(--theme-shell-border);
      border-radius: 14px;
      background: var(--theme-report-bg);
    }

    .report-table-row {
      display: grid;
      grid-template-columns: minmax(160px, 1.2fr) 82px 110px minmax(130px, 0.9fr) minmax(220px, 1.7fr);
      gap: 12px;
      align-items: start;
      padding: 12px 14px;
      border-top: 1px solid var(--theme-shell-border);
      color: var(--ink);
      font-size: 13px;
      line-height: 1.45;
    }

    .report-table-row:first-child {
      border-top: 0;
    }

    .report-table-row.report-table-head {
      background: color-mix(in srgb, var(--theme-control-bg) 82%, var(--gold-soft) 18%);
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.11em;
      text-transform: uppercase;
    }

    .report-table-row strong {
      color: var(--ink);
    }

    .report-column-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
      gap: 12px;
    }

    .report-mini-panel {
      display: grid;
      gap: 8px;
      min-width: 0;
      padding: 14px;
      border: 1px solid var(--theme-control-border);
      border-radius: 14px;
      background: var(--theme-control-bg);
    }

    .report-mini-panel strong {
      color: var(--ink);
      font-size: 14px;
    }

    .report-mini-panel ul {
      display: grid;
      gap: 7px;
      margin: 0;
      padding-left: 18px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .report-item {
      min-width: 0;
      border: 1px solid var(--theme-shell-border);
      border-radius: var(--theme-report-radius);
      padding: 13px 14px;
      background: var(--theme-report-bg);
      box-shadow: var(--theme-report-shadow);
      display: grid;
      gap: 8px;
    }

    body[data-theme] .report-item {
      background: var(--theme-report-bg);
      box-shadow: var(--theme-report-shadow);
    }

    .report-item strong {
      font-size: 14px;
      overflow-wrap: break-word;
    }

    .report-item small {
      color: var(--muted);
      font-size: 12px;
      overflow-wrap: break-word;
    }

    .report-item.tone-positive {
      border-color: rgba(32, 158, 113, 0.24);
    }

    .report-item.tone-watch {
      border-color: rgba(175, 127, 34, 0.24);
    }

    .report-item.tone-priority,
    .report-item.tone-immediate {
      border-color: rgba(203, 84, 76, 0.24);
    }

    .public-directory-card {
      width: 100%;
      text-align: left;
      color: inherit;
      cursor: pointer;
      font: inherit;
      appearance: none;
      border: 0;
      transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
    }

    .public-directory-card:hover {
      transform: translateY(-1px);
      border-color: var(--theme-directory-active-border);
      box-shadow: var(--theme-directory-active-shadow);
    }

    .public-directory-card.active {
      border-color: var(--theme-directory-active-border);
      box-shadow: var(--theme-directory-active-shadow);
      background: var(--theme-directory-active-bg);
    }

    body[data-theme] .public-directory-card:hover,
    body[data-theme] .public-directory-card.active {
      border-color: var(--theme-directory-active-border);
      box-shadow: var(--theme-directory-active-shadow);
      background: var(--theme-directory-active-bg);
    }

    .public-directory-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 10px;
      color: var(--muted);
      font-size: 12px;
    }

    .public-directory-card-actions {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 8px;
      min-width: 150px;
    }

    .public-directory-card-actions .badge {
      align-self: flex-end;
    }

    .public-directory-card-action {
      width: 100%;
      min-height: 34px;
      padding: 8px 12px;
      border-radius: 999px;
      font-size: 11px;
      line-height: 1;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .public-directory-card-action.secondary {
      border-color: var(--theme-control-border);
      background: var(--theme-control-bg);
      color: var(--theme-control-text);
      box-shadow: none;
    }

    .profile-notification-card {
      display: grid;
      gap: 16px;
    }

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

    .profile-notification-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      padding: 4px;
      border: 1px solid var(--theme-shell-border);
      border-radius: 999px;
      background: color-mix(in srgb, var(--theme-control-bg) 70%, transparent);
      width: fit-content;
      max-width: 100%;
    }

    .profile-notification-tabs .small-button {
      min-height: 34px;
      border-radius: 999px;
      box-shadow: none;
    }

    .profile-notification-tabs .small-button.active {
      background: var(--button-bg);
      border-color: var(--button-bg);
      color: var(--button-text);
    }

    .profile-notification-item {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 14px;
      align-items: center;
      padding: 14px 16px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: color-mix(in srgb, var(--surface) 88%, var(--soft) 12%);
    }

    .profile-notification-item.unread {
      border-color: color-mix(in srgb, var(--red) 34%, var(--line) 66%);
      background: color-mix(in srgb, var(--red) 7%, var(--surface) 93%);
    }

    .profile-notification-item.history {
      border-style: dashed;
      background: color-mix(in srgb, var(--surface) 94%, var(--muted) 6%);
    }

    .profile-notification-copy {
      display: grid;
      gap: 5px;
      min-width: 0;
    }

    .profile-notification-copy strong {
      color: var(--ink);
      font-size: 15px;
      line-height: 1.25;
    }

    .profile-notification-copy span,
    .profile-notification-copy small {
      color: var(--muted);
      line-height: 1.45;
    }

    .profile-notification-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 8px;
    }

    .profile-notification-actions .small-button,
    .profile-notification-actions .button-ghost {
      min-height: 36px;
      padding-inline: 14px;
      border-radius: 999px;
      font-size: 11px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .public-directory-toolbar {
      display: grid;
      gap: 14px;
      margin-top: 16px;
      margin-bottom: 16px;
      padding: clamp(16px, 2vw, 22px);
      border: 1px solid var(--theme-shell-border);
      border-radius: 14px;
      background: var(--theme-shell-overlay), var(--theme-shell-bg);
    }

    .public-directory-filter-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 18px;
      align-items: start;
    }

    .public-directory-select-row {
      display: grid;
      grid-template-columns: repeat(5, minmax(150px, 1fr));
      gap: 14px 16px;
      align-items: end;
    }

    .public-directory-toolbar .field {
      margin: 0;
    }

    .public-directory-search-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(96px, auto);
      gap: 12px;
      align-items: center;
    }

    .public-directory-search-row .button {
      min-height: 46px;
      padding-inline: 22px;
      white-space: nowrap;
    }

    .public-directory-invite-shortcut {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
      margin-top: 14px;
      padding: 12px 14px;
      border: 1px solid rgba(13, 151, 138, 0.18);
      border-radius: 16px;
      background: linear-gradient(135deg, rgba(14, 161, 145, 0.08), rgba(255, 255, 255, 0.72));
    }

    .public-directory-invite-shortcut .button {
      min-height: 44px;
      padding: 11px 20px;
      box-shadow: 0 14px 26px rgba(8, 119, 109, 0.18);
    }

    .public-directory-invite-shortcut small {
      margin: 0;
      max-width: 680px;
      color: var(--muted);
      line-height: 1.45;
    }

    .public-directory-toolbar .button-ghost {
      min-height: 46px;
      align-self: end;
      white-space: nowrap;
    }

    .public-directory-toolbar .field label {
      margin-bottom: 8px;
    }

    .public-directory-toolbar small {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
      display: block;
      min-height: 17px;
    }

    .public-directory-suggestions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      min-height: 34px;
      align-items: center;
    }

    .public-directory-suggestion {
      border: 1px solid var(--theme-control-border);
      border-radius: 999px;
      padding: 8px 12px;
      background: var(--theme-control-bg);
      color: var(--ink);
      font: inherit;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
      transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
    }

    .public-directory-suggestion:hover {
      transform: translateY(-1px);
      border-color: var(--button-bg);
      background: color-mix(in srgb, var(--button-bg) 14%, var(--theme-control-bg) 86%);
    }

    .public-directory-results-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 14px;
      margin-top: 6px;
      margin-bottom: 12px;
    }

    .public-directory-results-head strong {
      color: var(--ink);
      font-size: 15px;
    }

    .public-directory-results {
      display: grid;
      gap: 10px;
      max-height: 360px;
      overflow: auto;
      padding-right: 4px;
    }

    .certificate-request-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px 16px;
      margin-top: 18px;
    }

    .certificate-request-grid .field,
    .certificate-request-grid .field-wide {
      margin: 0;
    }

    .certificate-request-grid .field-wide {
      grid-column: 1 / -1;
    }

    .certificate-request-history {
      display: grid;
      gap: 10px;
      margin-top: 16px;
    }

    .certificate-request-item {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      padding: 12px 14px;
      border: 1px solid var(--theme-shell-border);
      border-radius: 14px;
      background: var(--theme-card-bg);
    }

    .certificate-request-item strong {
      display: block;
      color: var(--ink);
      font-size: 14px;
      line-height: 1.25;
    }

    .certificate-request-item span,
    .certificate-request-item small {
      display: block;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }

    .public-directory-card {
      display: grid;
      gap: 8px;
      padding: 14px;
      border: 1px solid var(--theme-shell-border);
      border-radius: 14px;
      background: var(--theme-report-bg);
    }

    .public-directory-card .review-doc-header {
      align-items: flex-start;
      gap: 18px;
    }

    .public-directory-card strong {
      color: var(--ink);
      font-size: 15px;
      line-height: 1.25;
    }

    .public-directory-card p {
      margin: 0;
      color: var(--muted);
      line-height: 1.45;
    }

    @media (max-width: 1180px) {
      .public-directory-filter-row {
        grid-template-columns: 1fr;
      }

      .public-directory-select-row {
        grid-template-columns: repeat(3, minmax(170px, 1fr));
      }
    }

    @media (max-width: 760px) {
      .public-directory-select-row {
        grid-template-columns: 1fr;
      }

      .public-directory-results-head {
        align-items: flex-start;
        flex-direction: column;
      }

      .public-directory-search-row {
        grid-template-columns: 1fr;
      }

      .certificate-request-grid,
      .certificate-request-item,
      .profile-notification-item {
        grid-template-columns: 1fr;
      }

      .profile-notification-actions {
        justify-content: flex-start;
      }

      .public-directory-card .review-doc-header {
        flex-direction: column;
      }

      .public-directory-card-actions {
        align-items: stretch;
        width: 100%;
      }

      .public-directory-card-actions .badge {
        align-self: flex-start;
      }
    }

    .assessment-layout {
      display: grid;
      grid-template-columns: 336px minmax(0, 1fr);
      gap: 22px;
      align-items: start;
    }

    .assessment-layout.assessment-layout-clean {
      grid-template-columns: minmax(0, 1fr);
    }

    .assessment-utility-panel {
      display: none;
    }

    .category-nav {
      display: grid;
      gap: 8px;
    }

    .assessment-score-stack {
      display: grid;
      gap: 20px;
      margin-top: 14px;
    }

    .assessment-score-stack .chart-card {
      display: grid;
      gap: 14px;
      align-content: start;
    }

    .category-button {
      min-width: 0;
      display: grid;
      grid-template-columns: 30px 1fr auto;
      gap: 10px;
      align-items: center;
      border: 1px solid var(--theme-control-border);
      border-radius: 16px;
      background: var(--theme-control-bg);
      padding: 11px 12px;
      text-align: left;
      color: var(--theme-control-text);
      font-size: 13px;
      box-shadow: none;
    }

    .category-button:hover {
      transform: translateX(2px);
      border-color: rgba(179, 138, 47, 0.32);
    }

    .category-button.active {
      border-color: var(--gold);
      background: var(--theme-control-active-bg);
      box-shadow: none;
    }

    .category-button > span:last-of-type {
      min-width: 0;
      overflow-wrap: break-word;
    }

    .report-item .badge,
    .review-doc-header .badge,
    .dash-top .badge,
    .dash-top .band-pill {
      flex: 0 0 auto;
      align-self: flex-start;
    }

    .category-num {
      width: 26px;
      height: 26px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 92%, white 8%), color-mix(in srgb, var(--gold) 70%, var(--ink) 30%));
      color: #fffdf8;
      font-size: 12px;
      font-weight: 900;
      box-shadow: 0 8px 16px rgba(17, 18, 20, 0.14);
    }

    .progress-track {
      height: 8px;
      border-radius: 999px;
      background: color-mix(in srgb, var(--surface-3) 78%, var(--line) 22%);
      overflow: hidden;
      margin: 14px 0;
    }

    .progress-fill {
      height: 100%;
      width: 0;
      border-radius: inherit;
      background: linear-gradient(90deg, color-mix(in srgb, var(--chart-primary) 80%, white 20%), var(--gold));
      box-shadow: none;
      transition: width 200ms ease;
    }

    .question-list {
      display: grid;
      gap: 10px;
      margin-top: 14px;
    }

    .assessment-body {
      display: grid;
      grid-template-columns: 1fr;
      gap: 18px;
      align-items: start;
      margin-top: 14px;
    }

    .assessment-body .question-list {
      margin-top: 0;
    }

    .assessment-score-stack {
      display: grid;
      gap: 18px;
      margin-top: 14px;
    }

    .assessment-score-stack .chart-card {
      display: grid;
      gap: 14px;
      align-content: start;
    }

    .question {
      padding: 20px 22px;
    }

    .question.answered {
      border-color: color-mix(in srgb, var(--line-strong) 74%, var(--blue-2) 26%);
      box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    }

    .question p {
      margin-top: 6px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.58;
    }

    .question-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      margin-bottom: 8px;
    }

    .question-context {
      display: none;
    }

    .question-index {
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .score-options {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 10px;
      margin-top: 14px;
    }

    .score-options label {
      position: relative;
      border: 1px solid var(--theme-control-border);
      border-radius: 12px;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 10px;
      align-items: start;
      min-height: 126px;
      padding: 12px 14px;
      background: var(--theme-control-bg);
      text-align: left;
      color: var(--theme-control-text);
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
    }

    .score-options label:hover {
      border-color: color-mix(in srgb, var(--line-strong) 68%, var(--blue-2) 32%);
      color: var(--ink);
      transform: translateY(-1px);
    }

    .score-options label.selected {
      border-color: color-mix(in srgb, var(--blue-2) 34%, var(--theme-control-border) 66%);
      background: var(--theme-control-active-bg);
      color: var(--ink);
      box-shadow: none;
    }

    .score-options input {
      display: block;
      margin: 0;
      accent-color: var(--ink);
    }

    .score-option-copy {
      display: grid;
      gap: 7px;
      min-width: 0;
    }

    .score-option-copy strong {
      color: var(--ink);
      font-size: 13px;
      line-height: 1.2;
    }

    .score-option-copy span {
      color: var(--muted);
      font-size: 11px;
      font-weight: 650;
      line-height: 1.35;
    }

    .question-rating-guide {
      display: none;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 8px;
      margin-top: 10px;
    }

    .question-rating-guide span {
      min-width: 0;
      border: 1px solid var(--theme-control-border);
      border-radius: 12px;
      padding: 9px 10px;
      background: color-mix(in srgb, var(--theme-control-bg) 86%, transparent);
      color: var(--muted);
      font-size: 11px;
      line-height: 1.35;
    }

    .question-rating-guide strong {
      display: block;
      margin-bottom: 2px;
      color: var(--ink);
      font-size: 12px;
    }

    .question-support {
      display: grid;
      gap: 12px;
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid var(--line);
    }

    .question-evidence-actions {
      margin-top: 0;
    }

    .question-note-field {
      display: grid;
      gap: 7px;
    }

    .question-note-field label {
      color: var(--ink);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .question-note-field textarea {
      min-height: 76px;
      resize: vertical;
      border-radius: 12px;
      font-size: 13px;
      line-height: 1.5;
    }

    .question-note-field textarea::placeholder {
      color: var(--muted);
      opacity: 0.72;
    }

    .evidence-preview-modal {
      position: fixed;
      inset: 0;
      z-index: 200;
      display: grid;
      place-items: center;
      padding: 22px;
    }

    .quote-modal {
      position: fixed;
      inset: 0;
      z-index: 205;
      display: grid;
      place-items: center;
      padding: 22px;
    }

    .quote-panel {
      position: relative;
      z-index: 1;
      width: min(720px, calc(100vw - 28px));
      max-height: calc(100vh - 28px);
      overflow: auto;
      border: 1px solid var(--theme-control-border);
      border-radius: 22px;
      padding: 18px;
      background: var(--theme-shell-overlay), var(--theme-shell-bg);
      color: var(--ink);
      box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
    }

    .quote-panel-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 16px;
      margin-bottom: 16px;
    }

    .quote-panel-head h2 {
      margin: 0;
      color: var(--ink);
      font-family: var(--heading-font);
      font-size: clamp(24px, 3vw, 36px);
      line-height: 1;
      overflow-wrap: anywhere;
    }

    .quote-panel-head p,
    .quote-summary {
      margin: 6px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
    }

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

    .quote-field {
      display: grid;
      gap: 6px;
    }

    .quote-field.full {
      grid-column: 1 / -1;
    }

    .quote-field label {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--ink);
    }

    .quote-field input,
    .quote-field select,
    .quote-field textarea {
      width: 100%;
      border: 1px solid var(--theme-control-border);
      border-radius: 12px;
      padding: 11px 12px;
      background: var(--surface);
      color: var(--ink);
      font: inherit;
    }

    .quote-field textarea {
      min-height: 96px;
      resize: vertical;
    }

    .evidence-preview-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(8, 12, 20, 0.68);
      backdrop-filter: blur(10px);
    }

    .evidence-preview-panel {
      position: relative;
      z-index: 1;
      width: min(1120px, calc(100vw - 28px));
      max-height: calc(100vh - 28px);
      display: grid;
      grid-template-rows: auto minmax(260px, 1fr) auto;
      gap: 14px;
      border: 1px solid var(--theme-control-border);
      border-radius: 22px;
      padding: 18px;
      background: var(--theme-shell-overlay), var(--theme-shell-bg);
      color: var(--ink);
      box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
    }

    .evidence-preview-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 16px;
    }

    .evidence-preview-title {
      min-width: 0;
      display: grid;
      gap: 5px;
    }

    .evidence-preview-title h2 {
      margin: 0;
      color: var(--ink);
      font-family: var(--heading-font);
      font-size: clamp(24px, 3vw, 38px);
      line-height: 0.98;
      letter-spacing: -0.05em;
      overflow-wrap: anywhere;
    }

    .evidence-preview-title p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
      overflow-wrap: anywhere;
    }

    .evidence-preview-body {
      min-height: 260px;
      max-height: min(68vh, 720px);
      overflow: auto;
      border: 1px solid var(--theme-control-border);
      border-radius: 16px;
      background: var(--theme-control-bg);
      color: var(--theme-control-text);
    }

    .evidence-preview-frame,
    .evidence-preview-object {
      display: block;
      width: 100%;
      min-height: min(66vh, 690px);
      border: 0;
      background: #ffffff;
    }

    .evidence-preview-image-wrap {
      min-height: min(66vh, 690px);
      display: grid;
      place-items: center;
      padding: 16px;
      background:
        linear-gradient(45deg, color-mix(in srgb, var(--line) 30%, transparent) 25%, transparent 25%),
        linear-gradient(-45deg, color-mix(in srgb, var(--line) 30%, transparent) 25%, transparent 25%),
        var(--theme-control-bg);
      background-size: 20px 20px;
    }

    .evidence-preview-image {
      max-width: 100%;
      max-height: min(64vh, 660px);
      object-fit: contain;
      border-radius: 12px;
      box-shadow: var(--shadow-soft);
    }

    .evidence-preview-text {
      margin: 0;
      min-height: min(66vh, 690px);
      padding: 18px;
      color: var(--theme-control-text);
      font: 13px/1.55 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
    }

    .evidence-preview-fallback {
      min-height: 260px;
      display: grid;
      place-items: center;
      padding: 28px;
      text-align: center;
      color: var(--muted);
    }

    .evidence-preview-fallback strong {
      display: block;
      margin-bottom: 8px;
      color: var(--ink);
      font-size: 18px;
    }

    .evidence-preview-actions {
      justify-content: space-between;
      margin-top: 0;
    }

    .journey-layout {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      margin-top: 12px;
    }

    .journey-track {
      display: grid;
      grid-template-columns: repeat(3, minmax(250px, 1fr));
      gap: 16px;
      margin-top: 18px;
    }

    .journey-step {
      min-width: 0;
      border: 1px solid var(--theme-control-border);
      border-radius: var(--radius-inner);
      padding: 18px;
      background: var(--theme-control-bg);
      display: grid;
      gap: 10px;
    }

    @media (max-width: 1040px) {
      .journey-track {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      }
    }

    .journey-step.complete {
      border-color: rgba(45, 123, 82, 0.22);
      background: rgba(45, 123, 82, 0.08);
    }

    .journey-step.current {
      border-color: rgba(23, 26, 32, 0.18);
      background: rgba(23, 26, 32, 0.06);
    }

    .journey-step.locked {
      opacity: 0.68;
    }

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

    .journey-node {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: rgba(23, 26, 32, 0.08);
      color: var(--ink);
      font-size: 12px;
      font-weight: 900;
      flex: 0 0 auto;
    }

    .journey-step.complete .journey-node {
      background: var(--green);
      color: #ffffff;
    }

    .journey-step.current .journey-node {
      background: var(--ink);
      color: var(--paper);
    }

    .journey-state {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: fit-content;
      max-width: 100%;
      border: 1px solid var(--theme-control-border);
      border-radius: 999px;
      padding: 5px 10px;
      background: var(--theme-control-bg);
      color: var(--theme-control-text);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .journey-step p,
    .journey-step small {
      margin: 0;
      color: var(--muted);
      overflow-wrap: break-word;
    }

    .journey-layout .metric-row {
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .journey-layout .metric strong {
      font-size: clamp(20px, 2vw, 30px);
      line-height: 1.02;
      overflow-wrap: normal;
      word-break: normal;
      text-wrap: balance;
    }

    .journey-layout .metric span {
      text-wrap: pretty;
    }

    .certificate-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      margin-bottom: 12px;
    }

    .signature-badge-panel {
      display: grid;
      gap: 16px;
      margin-bottom: 14px;
    }

    .signature-badge-layout {
      display: grid;
      grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
      gap: 18px;
      align-items: stretch;
    }

    .signature-badge-preview {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: 16px;
      align-items: center;
      padding: 14px 16px;
      border: 1px solid rgba(13, 151, 138, 0.22);
      border-radius: 18px;
      background:
        radial-gradient(circle at 100% 0%, rgba(104, 173, 69, 0.16), transparent 35%),
        linear-gradient(135deg, #ffffff, #eefbf9);
      box-shadow: 0 16px 34px rgba(5, 91, 83, 0.12);
      color: #09213a;
    }

    .signature-badge-mark {
      width: 66px;
      height: 66px;
      border-radius: 18px;
      display: grid;
      place-items: center;
      background: #ffffff;
      border: 1px solid rgba(13, 151, 138, 0.24);
      box-shadow: 0 10px 22px rgba(9, 33, 58, 0.1);
    }

    .signature-badge-mark img {
      width: 48px;
      height: 48px;
      object-fit: contain;
      display: block;
    }

    .signature-badge-copy {
      min-width: 0;
      display: grid;
      gap: 5px;
    }

    .signature-badge-copy span {
      color: #00796f;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .signature-badge-copy strong {
      color: #09213a;
      font-size: clamp(18px, 2vw, 24px);
      line-height: 1.08;
      letter-spacing: -0.03em;
      overflow-wrap: anywhere;
    }

    .signature-badge-copy small {
      color: #51677c;
      font-size: 13px;
      line-height: 1.45;
    }

    .signature-badge-copy code {
      display: inline-block;
      width: fit-content;
      margin-top: 3px;
      padding: 4px 8px;
      border-radius: 999px;
      background: rgba(13, 151, 138, 0.1);
      color: #00796f;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.08em;
    }

    .signature-badge-score {
      display: grid;
      justify-items: center;
      gap: 3px;
      min-width: 74px;
      padding: 10px 12px;
      border: 1px solid rgba(13, 151, 138, 0.2);
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.72);
      color: #09213a;
    }

    .signature-badge-score strong {
      font-size: 22px;
      line-height: 1;
      font-weight: 900;
      letter-spacing: -0.04em;
    }

    .signature-badge-score span {
      font-size: 10px;
      font-weight: 900;
      color: #00796f;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      text-align: center;
    }

    .signature-badge-guidance {
      display: grid;
      gap: 10px;
      align-content: center;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .signature-badge-guidance p {
      margin: 0;
    }

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

    .certificate-directory-shortcut {
      display: grid;
      justify-content: flex-start;
      gap: 6px;
      margin-bottom: 12px;
    }

    .certificate-directory-shortcut .eyebrow {
      margin-bottom: 0;
    }

    .certificate-directory-link {
      border: 0;
      padding: 0;
      background: transparent;
      color: color-mix(in srgb, var(--gold) 82%, var(--ink) 18%);
      font: inherit;
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      cursor: pointer;
    }

    .certificate-directory-link:hover {
      color: var(--ink);
      transform: translateY(-1px);
    }

    .publish-panel {
      margin-bottom: 14px;
    }

    .publish-benefits {
      display: grid;
      gap: 14px;
      margin-top: 14px;
      padding: 16px;
      border: 1px solid color-mix(in srgb, var(--gold) 24%, var(--theme-control-border) 76%);
      border-radius: 18px;
      background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--gold-soft) 28%, var(--theme-card-bg) 72%),
        var(--theme-control-bg)
      );
    }

    .publish-benefits-head {
      max-width: 820px;
    }

    .publish-benefits-head h3 {
      margin: 2px 0 0;
      color: var(--ink);
      font-family: var(--heading-font);
      font-size: clamp(20px, 2vw, 28px);
      line-height: 1.08;
      letter-spacing: -0.04em;
    }

    .publish-benefits-head p {
      margin: 8px 0 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
    }

    .publish-benefit-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
    }

    .publish-benefit-card {
      display: grid;
      gap: 6px;
      min-width: 0;
      padding: 14px;
      border: 1px solid var(--theme-control-border);
      border-radius: 14px;
      background: color-mix(in srgb, var(--theme-card-bg) 86%, var(--theme-control-bg) 14%);
    }

    .publish-benefit-card strong {
      color: var(--ink);
      font-size: 13px;
      line-height: 1.28;
    }

    .publish-benefit-card span {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.48;
    }

    #tab-certificate .certificate-sheet {
      display: none;
    }

    .certificate-variant-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 12px;
    }

    .atlas-certificate-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      margin-top: 14px;
      margin-bottom: 0;
    }

    .atlas-certificate-grid .certificate-variant-button {
      cursor: default;
    }

    .atlas-certificate-grid .certificate-variant-button:hover {
      transform: none;
      box-shadow: none;
    }

    .certificate-variant-button {
      width: 100%;
      min-width: 0;
      display: grid;
      gap: 6px;
      padding: 14px 16px;
      border: 1px solid var(--theme-control-border);
      border-radius: 22px;
      background: var(--theme-control-bg);
      color: var(--theme-control-text);
      text-align: left;
      transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
    }

    .certificate-variant-button:hover {
      transform: translateY(-1px);
      border-color: rgba(179, 138, 47, 0.34);
      box-shadow: 0 12px 24px rgba(43, 31, 12, 0.08);
    }

    .certificate-variant-button.active {
      border-color: rgba(179, 138, 47, 0.5);
      background: var(--theme-control-active-bg);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 14px 26px rgba(43, 31, 12, 0.1);
    }

    .certificate-variant-button span {
      color: var(--gold);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .certificate-variant-button strong {
      color: var(--theme-control-text);
      font-family: var(--certificate-font);
      font-size: 20px;
      line-height: 1.08;
      letter-spacing: -0.01em;
      overflow-wrap: anywhere;
    }

    .certificate-variant-button small {
      color: var(--theme-control-muted);
      font-size: 12px;
      line-height: 1.45;
      overflow-wrap: break-word;
    }

    .certificate-variant-note {
      margin-bottom: 10px;
    }

    #tab-certificate .panel-pad {
      padding: 20px 14px 26px;
    }

    .certificate-sheet {
      position: relative;
      overflow: hidden;
      width: 100%;
      max-width: 1108px;
      aspect-ratio: 200 / 287;
      min-height: 1123px;
      margin-inline: auto;
      box-sizing: border-box;
      border: 1px solid var(--theme-cert-frame);
      border-radius: 18px;
      padding: 18px;
      background:
        linear-gradient(180deg, var(--theme-cert-paper) 0%, var(--theme-cert-paper-2) 100%);
      box-shadow: var(--theme-cert-shadow);
      color: #171a20;
    }

    .certificate-sheet::before {
      content: "";
      position: absolute;
      inset: 14px;
      border: 1px solid var(--theme-cert-frame-soft);
      border-radius: 12px;
      pointer-events: none;
    }

    .certificate-watermark {
      position: absolute;
      left: 50%;
      top: 52%;
      transform: translate(-50%, -50%) rotate(-24deg);
      color: rgba(179, 138, 47, 0.07);
      font-family: var(--certificate-font);
      font-size: clamp(96px, 15vw, 156px);
      font-weight: 900;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      white-space: nowrap;
      pointer-events: none;
      user-select: none;
      z-index: 0;
      opacity: 0;
      transition: opacity 180ms ease;
    }

    .certificate-sheet[data-watermark-enabled="true"] .certificate-watermark {
      display: none;
      opacity: 0;
    }

    .certificate-head {
      position: relative;
      display: flex;
      justify-content: space-between;
      gap: 14px;
      align-items: flex-start;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--theme-cert-frame-soft);
      z-index: 1;
    }

    .certificate-route-banner {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin-top: 12px;
    }

    .certificate-route-block {
      min-width: 0;
      padding: 11px 13px;
      border: 1px solid var(--theme-cert-route-border);
      border-radius: 14px;
      background: var(--theme-cert-route-bg);
      box-shadow: none;
    }

    .certificate-route-block span {
      display: block;
      color: var(--theme-cert-route-label);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .certificate-route-block strong {
      display: block;
      margin-top: 4px;
      color: var(--theme-cert-route-value);
      font-size: 13px;
      line-height: 1.42;
      text-wrap: pretty;
    }

    .certificate-brand {
      display: flex;
      gap: 12px;
      align-items: center;
      min-width: 0;
    }

    .certificate-brand .brand-mark {
      width: 72px;
      height: 72px;
      flex: 0 0 auto;
      box-shadow: none;
    }

    .certificate-kicker {
      display: block;
      color: var(--theme-cert-kicker);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }

    .certificate-title {
      margin-top: 4px;
      color: #171a20;
      font-family: var(--certificate-font);
      font-size: clamp(30px, 4vw, 42px);
      line-height: 1.04;
      letter-spacing: -0.02em;
      text-wrap: balance;
    }

    .certificate-subtitle {
      display: block;
      margin-top: 4px;
      color: #5f563f;
      font-size: 14px;
      line-height: 1.5;
    }

    .certificate-status {
      display: grid;
      gap: 6px;
      justify-items: end;
      text-align: right;
      min-width: 0;
      max-width: 220px;
    }

    .certificate-status strong {
      color: #171a20;
      font-family: var(--certificate-font);
      font-size: 18px;
      line-height: 1.1;
      letter-spacing: 0;
      overflow-wrap: anywhere;
    }

    .certificate-status span:last-child {
      color: #6b7280;
      font-size: 13px;
    }

    .certificate-status-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--theme-cert-frame);
      border-radius: 999px;
      padding: 7px 12px;
      background: var(--theme-cert-chip-bg);
      color: var(--theme-cert-chip-text);
      font-size: 10.5px;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .certificate-body {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
      gap: 12px;
      margin-top: 12px;
    }

    .certificate-company-spotlight {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;
      align-items: center;
      margin-top: 10px;
      padding: 14px;
      border: 1px solid var(--theme-cert-panel-border);
      border-radius: 18px;
      background:
        radial-gradient(circle at top right, var(--theme-cert-glow), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 253, 0.98) 100%);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
      overflow: hidden;
    }

    .certificate-company-spotlight::after {
      content: "";
      position: absolute;
      inset: 10px;
      border: 1px solid var(--theme-cert-frame-soft);
      border-radius: 12px;
      pointer-events: none;
    }

    .certificate-company-copy {
      position: relative;
      z-index: 1;
      display: grid;
      gap: 6px;
      min-width: 0;
    }

    .certificate-company-label {
      display: block;
      color: var(--gold);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }

    .certificate-company-name {
      display: block;
      margin-top: 2px;
      color: #171a20;
      font-family: var(--certificate-font);
      font-size: clamp(26px, 3.3vw, 38px);
      line-height: 1.02;
      letter-spacing: -0.03em;
      text-wrap: balance;
    }

    .certificate-company-subtitle {
      display: block;
      margin-top: 2px;
      color: #574d39;
      font-size: 14px;
      line-height: 1.42;
      text-wrap: pretty;
    }

    .certificate-company-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 8px;
    }

    .certificate-company-chip {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 28px;
      padding: 5px 10px;
      border: 1px solid var(--theme-cert-route-border);
      border-radius: 999px;
      background: var(--theme-cert-chip-bg);
      color: var(--theme-cert-chip-text);
      font-size: 11.5px;
      font-weight: 800;
      letter-spacing: 0.01em;
      white-space: normal;
      text-align: center;
    }

    .certificate-details,
    .certificate-visuals {
      display: grid;
      gap: 10px;
      align-content: start;
      min-width: 0;
    }

    .certificate-lead {
      color: #5b6678;
      font-size: 13px;
      line-height: 1.6;
      text-wrap: pretty;
    }

    .certificate-score-panel,
    .certificate-canvas-card,
    .certificate-meta-item,
    .certificate-summary-card {
      border: 1px solid var(--theme-cert-panel-border);
      border-radius: var(--radius-inner);
      background: var(--theme-cert-panel-bg);
    }

    .certificate-score-panel {
      display: grid;
      grid-template-columns: 112px minmax(0, 1fr);
      gap: 14px;
      align-items: center;
      padding: 14px;
    }

    .certificate-score-badge {
      --certificate-score-track: rgba(6, 28, 54, 0.12);
      --certificate-score-fill: var(--green);
      --certificate-score-core: var(--theme-cert-score-core, #ffffff);
      position: relative;
      width: 108px;
      height: 108px;
      margin: 0 auto;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background:
        radial-gradient(circle at center, var(--certificate-score-core) 54%, transparent 55%),
        conic-gradient(from -90deg, var(--certificate-score-fill) 0 var(--certificate-score-deg, 0deg), var(--certificate-score-track) var(--certificate-score-deg, 0deg) 360deg);
      box-shadow:
        inset 0 0 0 1px var(--theme-cert-panel-border),
        0 10px 28px rgba(6, 28, 54, 0.08);
    }

    .certificate-score-svg {
      position: absolute;
      inset: 0;
      z-index: 0;
      width: 100%;
      height: 100%;
      overflow: visible;
    }

    .certificate-score-svg circle {
      fill: none;
      stroke-width: 12;
    }

    .certificate-score-track {
      stroke: var(--certificate-score-track);
    }

    .certificate-score-progress {
      stroke: var(--certificate-score-fill);
      stroke-linecap: round;
      stroke-dasharray: 100;
      stroke-dashoffset: 100;
      transition: stroke-dashoffset 360ms ease;
    }

    .certificate-score-badge > div {
      position: relative;
      z-index: 1;
      display: grid;
      place-items: center;
      align-content: center;
      width: 68%;
      height: 68%;
      border-radius: 50%;
      background: var(--certificate-score-core);
      box-shadow: inset 0 0 0 1px rgba(6, 28, 54, 0.05);
    }

    .certificate-score-badge strong {
      display: block;
      color: #171a20;
      font-family: var(--heading-font);
      font-size: 31px;
      line-height: 1;
      text-align: center;
    }

    .certificate-score-badge span {
      display: block;
      margin-top: 4px;
      color: #6b7280;
      font-size: 12px;
      text-align: center;
    }

    .certificate-score-copy h3 {
      margin-top: 4px;
      color: #171a20;
      font-family: var(--certificate-font);
      font-size: 20px;
      line-height: 1.08;
      text-wrap: pretty;
    }

    .certificate-score-copy p {
      margin-top: 6px;
      color: #5e6879;
      font-size: 13px;
      line-height: 1.52;
      text-wrap: pretty;
    }

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

    .certificate-meta-item {
      padding: 12px;
    }

    .certificate-meta-item span {
      display: block;
      color: #69758a;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .certificate-meta-item strong {
      display: block;
      margin-top: 5px;
      color: #171a20;
      font-size: 14px;
      line-height: 1.35;
      overflow-wrap: break-word;
    }

    .certificate-summary-card {
      display: grid;
      gap: 12px;
      padding: 16px;
      min-height: 172px;
    }

    .certificate-summary-lead {
      margin: 0;
      color: #5e6879;
      font-size: 12.5px;
      line-height: 1.58;
      text-wrap: pretty;
    }

    .certificate-summary-grid {
      display: grid;
      gap: 10px;
    }

    .certificate-summary-item {
      padding-top: 8px;
      border-top: 1px solid var(--theme-cert-table-rule);
    }

    .certificate-summary-item span {
      display: block;
      color: #69758a;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .certificate-summary-item strong {
      display: block;
      margin-top: 5px;
      color: #171a20;
      font-size: 14px;
      line-height: 1.4;
      text-wrap: pretty;
    }

    .certificate-canvas-card {
      width: 100%;
      display: grid;
      gap: 10px;
      padding: 12px;
    }

    .certificate-canvas-card .eyebrow {
      color: #69758a;
      margin-bottom: 0;
    }

    .certificate-radar-shell {
      display: grid;
      place-items: center;
      min-height: 372px;
      padding: 0;
      overflow: hidden;
    }

    .certificate-radar {
      display: block;
      width: min(100%, 478px);
      max-width: 100%;
      margin: 0 auto;
    }

    .certificate-table {
      width: 100%;
      max-width: 100%;
      table-layout: fixed;
      border-collapse: collapse;
    }

    .certificate-table th,
    .certificate-table td {
      border-bottom: 1px solid var(--theme-cert-table-rule);
      padding: 10px 0;
      text-align: left;
      vertical-align: top;
      background: transparent;
      color: #171a20;
      font-size: 13px;
    }

    .certificate-table th:last-child,
    .certificate-table td:last-child {
      text-align: right;
    }

    .certificate-table tr:last-child td {
      border-bottom: 0;
    }

    .certificate-scorecard-card {
      gap: 6px;
      padding: 10px 14px;
    }

    .certificate-scorecard-span {
      grid-column: 1 / -1;
    }

    .certificate-scorecard-card .certificate-table th,
    .certificate-scorecard-card .certificate-table td {
      padding: 4px 0;
      font-size: 12.4px;
      line-height: 1.12;
    }

    .certificate-scorecard-card .certificate-table th {
      padding-top: 0;
      padding-bottom: 5px;
      font-size: 11.8px;
      letter-spacing: 0.08em;
    }

    .certificate-scorecard-card .certificate-tone {
      padding: 4px 8px;
      font-size: 9px;
    }

    .certificate-tone {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      padding: 5px 10px;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      border: 1px solid color-mix(in srgb, var(--theme-cert-frame) 70%, transparent 30%);
      background: color-mix(in srgb, var(--theme-cert-chip-bg) 88%, var(--gold) 12%);
      color: #684d14;
    }

    .certificate-tone.tone-positive {
      border-color: rgba(45, 123, 82, 0.22);
      background: rgba(45, 123, 82, 0.12);
      color: #1f5d3d;
    }

    .certificate-tone.tone-watch {
      border-color: rgba(142, 106, 26, 0.22);
      background: rgba(142, 106, 26, 0.12);
      color: #7a5a14;
    }

    .certificate-tone.tone-priority,
    .certificate-tone.tone-immediate {
      border-color: rgba(179, 74, 69, 0.22);
      background: rgba(179, 74, 69, 0.12);
      color: #8f3733;
    }

    .certificate-footer {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-top: 12px;
      padding: 12px 4px 0;
      border-top: 1px solid var(--theme-cert-frame-soft);
      align-items: start;
    }

    .certificate-signoff {
      min-width: 0;
      display: grid;
      gap: 4px;
      padding: 0 2px;
    }

    .certificate-signoff span {
      color: var(--theme-cert-kicker);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .certificate-signoff strong {
      color: #171a20;
      font-size: 13px;
      line-height: 1.24;
      overflow-wrap: break-word;
    }

    .certificate-signoff small {
      color: #5e6879;
      font-size: 10.8px;
      line-height: 1.46;
      overflow-wrap: break-word;
    }

    .certificate-disclaimer {
      position: relative;
      z-index: 1;
      display: grid;
      gap: 4px;
      margin-top: 10px;
      padding: 12px 4px 0;
      border-top: 1px solid var(--theme-cert-frame-soft);
    }

    .certificate-disclaimer span {
      color: var(--theme-cert-kicker);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .certificate-disclaimer p {
      color: #5a6577;
      font-size: 10.8px;
      line-height: 1.5;
      text-wrap: pretty;
    }

    .certificate-sheet[data-certificate-variant="self"] {
      background:
        radial-gradient(circle at top right, rgba(195, 154, 63, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(255, 253, 249, 0.98) 0%, rgba(249, 241, 225, 0.98) 100%);
      border-color: rgba(195, 154, 63, 0.46);
    }

    .certificate-sheet[data-certificate-variant="self"]::before {
      border-color: rgba(195, 154, 63, 0.24);
    }

    .certificate-sheet[data-certificate-variant="self"] .certificate-watermark {
      color: rgba(195, 154, 63, 0.06);
    }

    .certificate-sheet[data-certificate-variant="self"] .certificate-status-badge {
      border-color: rgba(195, 154, 63, 0.28);
      background: rgba(195, 154, 63, 0.12);
      color: #7b5c12;
    }

    .certificate-sheet[data-certificate-variant="self"] .certificate-route-block {
      background:
        linear-gradient(180deg, rgba(255, 252, 246, 0.98) 0%, rgba(250, 244, 231, 0.96) 100%);
      border-color: rgba(195, 154, 63, 0.2);
    }

    .certificate-sheet[data-certificate-variant="review"] {
      background:
        radial-gradient(circle at top right, rgba(121, 113, 97, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(252, 251, 247, 0.98) 0%, rgba(240, 235, 225, 0.98) 100%);
      border-color: rgba(132, 115, 82, 0.44);
      box-shadow: 0 28px 54px rgba(34, 31, 24, 0.1);
    }

    .certificate-sheet[data-certificate-variant="review"]::before {
      border-color: rgba(132, 115, 82, 0.24);
    }

    .certificate-sheet[data-certificate-variant="review"] .certificate-head {
      padding: 14px 14px 12px;
      border: 1px dashed rgba(132, 115, 82, 0.28);
      border-radius: 22px;
      border-bottom-style: dashed;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(248, 245, 239, 0.88) 100%);
    }

    .certificate-sheet[data-certificate-variant="review"] .certificate-watermark {
      color: rgba(129, 117, 95, 0.055);
      transform: translate(-50%, -50%) rotate(-16deg);
    }

    .certificate-sheet[data-certificate-variant="review"] .certificate-kicker,
    .certificate-sheet[data-certificate-variant="review"] .certificate-company-label,
    .certificate-sheet[data-certificate-variant="review"] .certificate-signoff span,
    .certificate-sheet[data-certificate-variant="review"] .certificate-disclaimer span {
      color: #7e6a48;
    }

    .certificate-sheet[data-certificate-variant="review"] .certificate-status-badge {
      border-color: rgba(88, 81, 70, 0.2);
      background: rgba(88, 81, 70, 0.1);
      color: #4f4638;
      border-radius: 14px;
    }

    .certificate-sheet[data-certificate-variant="review"] .certificate-route-banner {
      gap: 10px;
      margin-top: 12px;
    }

    .certificate-sheet[data-certificate-variant="review"] .certificate-route-block {
      border-style: dashed;
      border-color: rgba(132, 115, 82, 0.32);
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.92);
      box-shadow: none;
    }

    .certificate-sheet[data-certificate-variant="review"] .certificate-company-spotlight {
      border-color: rgba(132, 115, 82, 0.24);
      background:
        radial-gradient(circle at top right, rgba(88, 81, 70, 0.08), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(246, 241, 233, 0.98) 100%);
      border-radius: 18px;
    }

    .certificate-sheet[data-certificate-variant="review"] .certificate-company-spotlight::after {
      border-color: rgba(132, 115, 82, 0.14);
      border-radius: 12px;
    }

    .certificate-sheet[data-certificate-variant="review"] .certificate-score-panel,
    .certificate-sheet[data-certificate-variant="review"] .certificate-canvas-card,
    .certificate-sheet[data-certificate-variant="review"] .certificate-meta-item,
    .certificate-sheet[data-certificate-variant="review"] .certificate-summary-card {
      border-color: rgba(132, 115, 82, 0.2);
      background: rgba(255, 255, 255, 0.94);
      border-radius: 18px;
    }

    .certificate-sheet[data-certificate-variant="review"] .certificate-company-chip {
      border-color: rgba(132, 115, 82, 0.18);
      background: rgba(249, 247, 242, 0.96);
      color: #5b5346;
    }

    .certificate-sheet[data-certificate-variant="review"] .certificate-score-badge {
      --certificate-score-fill: #8f7a55;
      --certificate-score-track: rgba(23, 26, 32, 0.12);
      --certificate-score-core: #fffef9;
      background:
        radial-gradient(circle at center, var(--certificate-score-core) 54%, transparent 55%),
        conic-gradient(from -90deg, var(--certificate-score-fill) 0 var(--certificate-score-deg, 0deg), var(--certificate-score-track) var(--certificate-score-deg, 0deg) 360deg);
      box-shadow: inset 0 0 0 1px rgba(132, 115, 82, 0.16);
    }

    .certificate-sheet[data-certificate-variant="review"] .certificate-footer,
    .certificate-sheet[data-certificate-variant="review"] .certificate-disclaimer {
      border-top-color: rgba(132, 115, 82, 0.22);
    }

    .certificate-sheet[data-certificate-variant="audit"] {
      background:
        radial-gradient(circle at top right, rgba(179, 138, 47, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(251, 247, 239, 0.99) 0%, rgba(239, 229, 205, 0.99) 100%);
      border-color: rgba(109, 82, 23, 0.5);
      box-shadow: 0 34px 68px rgba(29, 22, 15, 0.16);
    }

    .certificate-sheet[data-certificate-variant="audit"]::before {
      border-color: rgba(109, 82, 23, 0.3);
    }

    .certificate-sheet[data-certificate-variant="audit"] .certificate-head {
      padding: 14px 16px;
      border: 0;
      border-radius: 24px;
      background:
        linear-gradient(180deg, rgba(29, 22, 15, 0.98) 0%, rgba(44, 31, 16, 0.96) 100%);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 30px rgba(29, 22, 15, 0.14);
    }

    .certificate-sheet[data-certificate-variant="audit"] .certificate-watermark {
      color: rgba(112, 82, 18, 0.08);
      transform: translate(-50%, -50%) rotate(-20deg);
    }

    .certificate-sheet[data-certificate-variant="audit"] .certificate-title,
    .certificate-sheet[data-certificate-variant="audit"] .certificate-subtitle,
    .certificate-sheet[data-certificate-variant="audit"] .certificate-status strong,
    .certificate-sheet[data-certificate-variant="audit"] .certificate-status span:last-child {
      color: #f8f0de;
    }

    .certificate-sheet[data-certificate-variant="audit"] .certificate-status-badge {
      border-color: rgba(244, 226, 173, 0.24);
      background: rgba(246, 233, 191, 0.12);
      color: #f4e2ad;
    }

    .certificate-sheet[data-certificate-variant="audit"] .certificate-route-banner {
      gap: 0;
      margin-top: 12px;
      border: 1px solid rgba(109, 82, 23, 0.22);
      border-radius: 22px;
      overflow: hidden;
      background: linear-gradient(180deg, rgba(251, 246, 235, 0.92) 0%, rgba(244, 233, 208, 0.92) 100%);
    }

    .certificate-sheet[data-certificate-variant="audit"] .certificate-route-block {
      border: 0;
      border-right: 1px solid rgba(109, 82, 23, 0.16);
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      padding: 12px 14px;
    }

    .certificate-sheet[data-certificate-variant="audit"] .certificate-route-block:last-child {
      border-right: 0;
    }

    .certificate-sheet[data-certificate-variant="audit"] .certificate-route-block span {
      color: #8a6619;
    }

    .certificate-sheet[data-certificate-variant="audit"] .certificate-route-block strong {
      color: #2e2210;
    }

    .certificate-sheet[data-certificate-variant="audit"] .brand-mark {
      background: transparent;
      box-shadow: none;
    }

    .certificate-sheet[data-certificate-variant="audit"] .certificate-kicker,
    .certificate-sheet[data-certificate-variant="audit"] .certificate-company-label,
    .certificate-sheet[data-certificate-variant="audit"] .certificate-signoff span,
    .certificate-sheet[data-certificate-variant="audit"] .certificate-disclaimer span {
      color: #9a731f;
    }

    .certificate-sheet[data-certificate-variant="audit"] .certificate-company-spotlight {
      border-color: rgba(109, 82, 23, 0.28);
      background:
        radial-gradient(circle at top right, rgba(179, 138, 47, 0.14), transparent 42%),
        linear-gradient(180deg, rgba(255, 252, 245, 0.96) 0%, rgba(248, 239, 220, 0.98) 100%);
    }

    .certificate-sheet[data-certificate-variant="audit"] .certificate-company-spotlight::after {
      border-color: rgba(109, 82, 23, 0.18);
    }

    .certificate-sheet[data-certificate-variant="audit"] .certificate-score-panel,
    .certificate-sheet[data-certificate-variant="audit"] .certificate-canvas-card,
    .certificate-sheet[data-certificate-variant="audit"] .certificate-meta-item,
    .certificate-sheet[data-certificate-variant="audit"] .certificate-summary-card {
      border-color: rgba(109, 82, 23, 0.26);
      background: rgba(255, 252, 245, 0.94);
    }

    .certificate-sheet[data-certificate-variant="audit"] .certificate-company-chip {
      border-color: rgba(109, 82, 23, 0.24);
      background: rgba(251, 246, 233, 0.98);
      color: #3b2a0d;
    }

    .certificate-sheet[data-certificate-variant="audit"] .certificate-score-badge {
      --certificate-score-fill: #b38a2f;
      --certificate-score-track: rgba(23, 26, 32, 0.12);
      --certificate-score-core: #fffef8;
      background:
        radial-gradient(circle at center, var(--certificate-score-core) 54%, transparent 55%),
        conic-gradient(from -90deg, var(--certificate-score-fill) 0 var(--certificate-score-deg, 0deg), var(--certificate-score-track) var(--certificate-score-deg, 0deg) 360deg);
      box-shadow: inset 0 0 0 1px rgba(109, 82, 23, 0.2);
    }

    .certificate-sheet[data-certificate-variant="audit"] .certificate-footer,
    .certificate-sheet[data-certificate-variant="audit"] .certificate-disclaimer {
      border-top-color: rgba(109, 82, 23, 0.26);
    }

    body[data-brand-theme="theme-1"] {
      --theme-shell-radius: 30px;
      --theme-shell-overlay: linear-gradient(135deg, rgba(179, 138, 47, 0.12), rgba(255, 255, 255, 0) 56%);
      --theme-shell-bg: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 239, 221, 0.98));
      --theme-report-bg: linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(249, 241, 225, 0.92));
    }

    body[data-brand-theme="theme-2"] {
      --theme-shell-radius: 22px;
      --theme-shell-overlay: linear-gradient(145deg, rgba(25, 78, 185, 0.16), transparent 48%), radial-gradient(circle at top right, rgba(15, 138, 95, 0.16), transparent 34%);
      --theme-shell-bg: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, white 6%), color-mix(in srgb, var(--surface-2) 76%, #194eb9 24%));
      --theme-report-bg: linear-gradient(135deg, color-mix(in srgb, var(--surface) 88%, #194eb9 12%), color-mix(in srgb, var(--surface-2) 84%, #0f8a5f 16%));
      --theme-directory-active-bg: linear-gradient(135deg, rgba(25, 78, 185, 0.2), rgba(15, 138, 95, 0.18));
      --theme-directory-active-border: rgba(25, 78, 185, 0.42);
      --theme-directory-active-shadow: 0 18px 34px rgba(18, 56, 128, 0.18);
      --theme-table-head-bg: linear-gradient(90deg, rgba(25, 78, 185, 0.2), rgba(15, 138, 95, 0.18));
      --theme-table-head-text: #144197;
      --theme-table-row-alt: rgba(25, 78, 185, 0.07);
      --theme-table-row-hover: rgba(15, 138, 95, 0.13);
      --theme-table-accent: rgba(15, 138, 95, 0.46);
      --theme-cert-paper: #f7faff;
      --theme-cert-paper-2: #e6f0ff;
      --theme-cert-glow: rgba(25, 78, 185, 0.16);
      --theme-cert-frame: rgba(25, 78, 185, 0.34);
      --theme-cert-frame-soft: rgba(15, 138, 95, 0.16);
      --theme-cert-head-bg: linear-gradient(180deg, #123b8f 0%, #0b2a68 100%);
      --theme-cert-head-ink: #ffffff;
      --theme-cert-kicker: #3261ba;
      --theme-cert-panel-bg: rgba(255, 255, 255, 0.94);
      --theme-cert-panel-border: rgba(25, 78, 185, 0.22);
      --theme-cert-route-wrap-bg: rgba(231, 241, 255, 0.98);
      --theme-cert-route-bg: rgba(244, 249, 255, 0.96);
      --theme-cert-route-border: rgba(25, 78, 185, 0.2);
      --theme-cert-chip-bg: rgba(227, 240, 255, 0.94);
      --theme-cert-chip-text: #123b8f;
      --theme-cert-watermark: rgba(25, 78, 185, 0.07);
      --theme-cert-table-head: #18459f;
      --theme-cert-table-rule: rgba(25, 78, 185, 0.18);
    }

    body[data-brand-theme="theme-3"] {
      --theme-shell-radius: 34px;
      --theme-shell-overlay: radial-gradient(circle at top left, rgba(18, 122, 94, 0.18), transparent 38%), linear-gradient(135deg, rgba(87, 184, 138, 0.12), rgba(255, 255, 255, 0) 68%);
      --theme-shell-bg: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, #dffff1 10%), color-mix(in srgb, var(--surface-2) 78%, #57b88a 22%));
      --theme-report-bg: linear-gradient(135deg, rgba(243, 255, 249, 0.94), rgba(232, 249, 240, 0.92));
      --theme-directory-active-bg: linear-gradient(135deg, rgba(18, 122, 94, 0.16), rgba(87, 184, 138, 0.16));
      --theme-directory-active-border: rgba(18, 122, 94, 0.34);
      --theme-table-head-bg: linear-gradient(90deg, rgba(18, 122, 94, 0.18), rgba(87, 184, 138, 0.16));
      --theme-table-head-text: #0e654e;
      --theme-table-row-alt: rgba(18, 122, 94, 0.06);
      --theme-table-row-hover: rgba(87, 184, 138, 0.12);
      --theme-table-accent: rgba(18, 122, 94, 0.4);
      --theme-cert-paper: #f7fff9;
      --theme-cert-paper-2: #e7f7ed;
      --theme-cert-glow: rgba(18, 122, 94, 0.14);
      --theme-cert-frame: rgba(18, 122, 94, 0.28);
      --theme-cert-frame-soft: rgba(87, 184, 138, 0.18);
      --theme-cert-head-bg: linear-gradient(180deg, rgba(242, 255, 248, 0.98) 0%, rgba(219, 245, 229, 0.98) 100%);
      --theme-cert-head-ink: #123628;
      --theme-cert-kicker: #1b7a5d;
      --theme-cert-panel-bg: rgba(251, 255, 252, 0.94);
      --theme-cert-panel-border: rgba(18, 122, 94, 0.2);
      --theme-cert-route-wrap-bg: rgba(240, 253, 246, 0.98);
      --theme-cert-route-bg: rgba(248, 255, 250, 0.98);
      --theme-cert-route-border: rgba(18, 122, 94, 0.2);
      --theme-cert-chip-bg: rgba(235, 250, 242, 0.96);
      --theme-cert-chip-text: #166950;
      --theme-cert-watermark: rgba(18, 122, 94, 0.06);
      --theme-cert-table-head: #1a7559;
      --theme-cert-table-rule: rgba(18, 122, 94, 0.16);
    }

    body[data-brand-theme="theme-4"] {
      --theme-shell-radius: 18px;
      --theme-shell-overlay: linear-gradient(135deg, rgba(150, 42, 70, 0.2), transparent 52%), radial-gradient(circle at top right, rgba(211, 163, 106, 0.16), transparent 36%);
      --theme-shell-bg: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, #fff8f7 8%), color-mix(in srgb, var(--surface-2) 80%, #962a46 20%));
      --theme-report-bg: linear-gradient(180deg, rgba(255, 249, 248, 0.94), rgba(247, 232, 230, 0.92));
      --theme-report-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
      --theme-directory-active-bg: linear-gradient(135deg, rgba(150, 42, 70, 0.16), rgba(211, 163, 106, 0.2));
      --theme-directory-active-border: rgba(150, 42, 70, 0.4);
      --theme-directory-active-shadow: 0 18px 34px rgba(110, 36, 57, 0.16);
      --theme-table-head-bg: linear-gradient(90deg, rgba(150, 42, 70, 0.18), rgba(211, 163, 106, 0.18));
      --theme-table-head-text: #84223d;
      --theme-table-row-alt: rgba(150, 42, 70, 0.05);
      --theme-table-row-hover: rgba(211, 163, 106, 0.14);
      --theme-table-accent: rgba(150, 42, 70, 0.44);
      --theme-cert-paper: #fffaf8;
      --theme-cert-paper-2: #f7e6df;
      --theme-cert-glow: rgba(150, 42, 70, 0.14);
      --theme-cert-frame: rgba(150, 42, 70, 0.32);
      --theme-cert-frame-soft: rgba(211, 163, 106, 0.18);
      --theme-cert-head-bg: linear-gradient(180deg, #8b2240 0%, #5a1628 100%);
      --theme-cert-head-ink: #fff7f3;
      --theme-cert-kicker: #9b3551;
      --theme-cert-panel-bg: rgba(255, 251, 249, 0.94);
      --theme-cert-panel-border: rgba(150, 42, 70, 0.2);
      --theme-cert-route-wrap-bg: rgba(255, 244, 241, 0.98);
      --theme-cert-route-bg: rgba(255, 250, 248, 0.97);
      --theme-cert-route-border: rgba(150, 42, 70, 0.18);
      --theme-cert-chip-bg: rgba(255, 239, 234, 0.96);
      --theme-cert-chip-text: #8a2943;
      --theme-cert-watermark: rgba(150, 42, 70, 0.07);
      --theme-cert-table-head: #8a2943;
      --theme-cert-table-rule: rgba(150, 42, 70, 0.16);
    }

    body[data-brand-theme="theme-5"] {
      --theme-shell-radius: 26px;
      --theme-shell-overlay: linear-gradient(145deg, rgba(18, 125, 132, 0.18), transparent 52%), radial-gradient(circle at bottom right, rgba(211, 154, 46, 0.16), transparent 36%);
      --theme-shell-bg: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, #effeff 6%), color-mix(in srgb, var(--surface-2) 80%, #127d84 20%));
      --theme-report-bg: linear-gradient(135deg, rgba(245, 255, 255, 0.94), rgba(232, 248, 248, 0.92));
      --theme-report-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
      --theme-directory-active-bg: linear-gradient(135deg, rgba(18, 125, 132, 0.18), rgba(211, 154, 46, 0.16));
      --theme-directory-active-border: rgba(18, 125, 132, 0.38);
      --theme-table-head-bg: linear-gradient(90deg, rgba(18, 125, 132, 0.2), rgba(211, 154, 46, 0.16));
      --theme-table-head-text: #0d6970;
      --theme-table-row-alt: rgba(18, 125, 132, 0.05);
      --theme-table-row-hover: rgba(211, 154, 46, 0.14);
      --theme-table-accent: rgba(18, 125, 132, 0.42);
      --theme-cert-paper: #f8ffff;
      --theme-cert-paper-2: #e5f5f5;
      --theme-cert-glow: rgba(18, 125, 132, 0.14);
      --theme-cert-frame: rgba(18, 125, 132, 0.32);
      --theme-cert-frame-soft: rgba(211, 154, 46, 0.18);
      --theme-cert-head-bg: linear-gradient(180deg, #0f6870 0%, #093d42 100%);
      --theme-cert-head-ink: #f7ffff;
      --theme-cert-kicker: #16757c;
      --theme-cert-panel-bg: rgba(251, 255, 255, 0.94);
      --theme-cert-panel-border: rgba(18, 125, 132, 0.2);
      --theme-cert-route-wrap-bg: rgba(238, 251, 251, 0.98);
      --theme-cert-route-bg: rgba(247, 255, 255, 0.97);
      --theme-cert-route-border: rgba(18, 125, 132, 0.18);
      --theme-cert-chip-bg: rgba(232, 248, 248, 0.96);
      --theme-cert-chip-text: #0f6870;
      --theme-cert-watermark: rgba(18, 125, 132, 0.07);
      --theme-cert-table-head: #0f6870;
      --theme-cert-table-rule: rgba(18, 125, 132, 0.16);
    }

    body[data-brand-theme="theme-6"] {
      --theme-shell-radius: 16px;
      --theme-shell-overlay: linear-gradient(145deg, rgba(74, 73, 198, 0.22), transparent 48%), radial-gradient(circle at top right, rgba(82, 201, 167, 0.18), transparent 34%);
      --theme-shell-bg: linear-gradient(180deg, color-mix(in srgb, var(--surface) 86%, #eef0ff 14%), color-mix(in srgb, var(--surface-2) 70%, #4a49c6 30%));
      --theme-shell-shadow: 0 18px 42px rgba(53, 50, 136, 0.18);
      --theme-report-bg: linear-gradient(135deg, color-mix(in srgb, var(--surface) 86%, #4a49c6 14%), color-mix(in srgb, var(--surface-2) 84%, #52c9a7 16%));
      --theme-directory-active-bg: linear-gradient(135deg, rgba(74, 73, 198, 0.2), rgba(82, 201, 167, 0.16));
      --theme-directory-active-border: rgba(74, 73, 198, 0.42);
      --theme-directory-active-shadow: 0 18px 34px rgba(53, 50, 136, 0.2);
      --theme-table-head-bg: linear-gradient(90deg, rgba(74, 73, 198, 0.22), rgba(82, 201, 167, 0.18));
      --theme-table-head-text: #403eb5;
      --theme-table-row-alt: rgba(74, 73, 198, 0.06);
      --theme-table-row-hover: rgba(82, 201, 167, 0.14);
      --theme-table-accent: rgba(82, 201, 167, 0.48);
      --theme-cert-paper: #f7f7ff;
      --theme-cert-paper-2: #ebeaff;
      --theme-cert-glow: rgba(74, 73, 198, 0.18);
      --theme-cert-frame: rgba(74, 73, 198, 0.34);
      --theme-cert-frame-soft: rgba(82, 201, 167, 0.18);
      --theme-cert-head-bg: linear-gradient(180deg, #3d3cb0 0%, #252477 100%);
      --theme-cert-head-ink: #f8f8ff;
      --theme-cert-kicker: #5d5cce;
      --theme-cert-panel-bg: rgba(253, 253, 255, 0.94);
      --theme-cert-panel-border: rgba(74, 73, 198, 0.22);
      --theme-cert-route-wrap-bg: rgba(239, 239, 255, 0.98);
      --theme-cert-route-bg: rgba(247, 247, 255, 0.97);
      --theme-cert-route-border: rgba(74, 73, 198, 0.18);
      --theme-cert-chip-bg: rgba(236, 236, 255, 0.96);
      --theme-cert-chip-text: #3d3cb0;
      --theme-cert-watermark: rgba(74, 73, 198, 0.07);
      --theme-cert-table-head: #4746bd;
      --theme-cert-table-rule: rgba(74, 73, 198, 0.17);
    }

    body[data-brand-theme="theme-7"] {
      --theme-shell-radius: 30px;
      --theme-shell-overlay: linear-gradient(145deg, rgba(208, 108, 76, 0.18), transparent 50%), radial-gradient(circle at bottom right, rgba(116, 178, 163, 0.16), transparent 34%);
      --theme-shell-bg: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, #fff7f2 10%), color-mix(in srgb, var(--surface-2) 80%, #d06c4c 20%));
      --theme-report-bg: linear-gradient(180deg, rgba(255, 249, 246, 0.94), rgba(245, 235, 228, 0.92));
      --theme-directory-active-bg: linear-gradient(135deg, rgba(208, 108, 76, 0.18), rgba(116, 178, 163, 0.16));
      --theme-directory-active-border: rgba(208, 108, 76, 0.38);
      --theme-table-head-bg: linear-gradient(90deg, rgba(208, 108, 76, 0.18), rgba(116, 178, 163, 0.16));
      --theme-table-head-text: #b05a3e;
      --theme-table-row-alt: rgba(208, 108, 76, 0.05);
      --theme-table-row-hover: rgba(116, 178, 163, 0.14);
      --theme-table-accent: rgba(208, 108, 76, 0.42);
      --theme-cert-paper: #fffaf7;
      --theme-cert-paper-2: #f6e9e1;
      --theme-cert-glow: rgba(208, 108, 76, 0.14);
      --theme-cert-frame: rgba(208, 108, 76, 0.32);
      --theme-cert-frame-soft: rgba(116, 178, 163, 0.18);
      --theme-cert-head-bg: linear-gradient(180deg, rgba(255, 246, 241, 0.98) 0%, rgba(249, 229, 220, 0.98) 100%);
      --theme-cert-head-ink: #5d2718;
      --theme-cert-kicker: #c36546;
      --theme-cert-panel-bg: rgba(255, 252, 250, 0.94);
      --theme-cert-panel-border: rgba(208, 108, 76, 0.2);
      --theme-cert-route-wrap-bg: rgba(255, 244, 240, 0.98);
      --theme-cert-route-bg: rgba(255, 250, 248, 0.97);
      --theme-cert-route-border: rgba(208, 108, 76, 0.18);
      --theme-cert-chip-bg: rgba(255, 242, 237, 0.96);
      --theme-cert-chip-text: #b55a3c;
      --theme-cert-watermark: rgba(208, 108, 76, 0.07);
      --theme-cert-table-head: #b75d40;
      --theme-cert-table-rule: rgba(208, 108, 76, 0.16);
    }

    body[data-brand-theme="theme-8"] {
      --theme-shell-radius: 20px;
      --theme-shell-overlay: linear-gradient(145deg, rgba(40, 102, 67, 0.18), transparent 50%), radial-gradient(circle at top right, rgba(210, 155, 52, 0.16), transparent 36%);
      --theme-shell-bg: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, #f8fcf4 8%), color-mix(in srgb, var(--surface-2) 80%, #286643 20%));
      --theme-report-bg: linear-gradient(180deg, rgba(251, 255, 249, 0.94), rgba(239, 245, 230, 0.92));
      --theme-directory-active-bg: linear-gradient(135deg, rgba(40, 102, 67, 0.18), rgba(210, 155, 52, 0.16));
      --theme-directory-active-border: rgba(40, 102, 67, 0.36);
      --theme-table-head-bg: linear-gradient(90deg, rgba(40, 102, 67, 0.18), rgba(210, 155, 52, 0.16));
      --theme-table-head-text: #255d3d;
      --theme-table-row-alt: rgba(40, 102, 67, 0.05);
      --theme-table-row-hover: rgba(210, 155, 52, 0.13);
      --theme-table-accent: rgba(40, 102, 67, 0.4);
      --theme-cert-paper: #fbfdf7;
      --theme-cert-paper-2: #edf3df;
      --theme-cert-glow: rgba(40, 102, 67, 0.14);
      --theme-cert-frame: rgba(40, 102, 67, 0.3);
      --theme-cert-frame-soft: rgba(210, 155, 52, 0.18);
      --theme-cert-head-bg: linear-gradient(180deg, #215538 0%, #173927 100%);
      --theme-cert-head-ink: #f8fff8;
      --theme-cert-kicker: #3a7a53;
      --theme-cert-panel-bg: rgba(253, 255, 251, 0.94);
      --theme-cert-panel-border: rgba(40, 102, 67, 0.2);
      --theme-cert-route-wrap-bg: rgba(245, 250, 238, 0.98);
      --theme-cert-route-bg: rgba(250, 255, 246, 0.97);
      --theme-cert-route-border: rgba(40, 102, 67, 0.18);
      --theme-cert-chip-bg: rgba(239, 246, 232, 0.96);
      --theme-cert-chip-text: #215538;
      --theme-cert-watermark: rgba(40, 102, 67, 0.07);
      --theme-cert-table-head: #2b6a45;
      --theme-cert-table-rule: rgba(40, 102, 67, 0.16);
    }

    body[data-brand-theme="theme-9"] {
      --theme-shell-radius: 28px;
      --theme-shell-overlay: linear-gradient(145deg, rgba(110, 58, 138, 0.2), transparent 52%), radial-gradient(circle at top right, rgba(197, 134, 93, 0.16), transparent 34%);
      --theme-shell-bg: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, #fff8fe 10%), color-mix(in srgb, var(--surface-2) 80%, #6e3a8a 20%));
      --theme-report-bg: linear-gradient(180deg, rgba(255, 250, 255, 0.94), rgba(242, 233, 244, 0.92));
      --theme-directory-active-bg: linear-gradient(135deg, rgba(110, 58, 138, 0.18), rgba(197, 134, 93, 0.18));
      --theme-directory-active-border: rgba(110, 58, 138, 0.38);
      --theme-directory-active-shadow: 0 18px 34px rgba(76, 40, 95, 0.16);
      --theme-table-head-bg: linear-gradient(90deg, rgba(110, 58, 138, 0.18), rgba(197, 134, 93, 0.18));
      --theme-table-head-text: #65347f;
      --theme-table-row-alt: rgba(110, 58, 138, 0.05);
      --theme-table-row-hover: rgba(197, 134, 93, 0.14);
      --theme-table-accent: rgba(110, 58, 138, 0.42);
      --theme-cert-paper: #fff9fe;
      --theme-cert-paper-2: #f0e4f2;
      --theme-cert-glow: rgba(110, 58, 138, 0.14);
      --theme-cert-frame: rgba(110, 58, 138, 0.32);
      --theme-cert-frame-soft: rgba(197, 134, 93, 0.18);
      --theme-cert-head-bg: linear-gradient(180deg, #5e3177 0%, #3f214f 100%);
      --theme-cert-head-ink: #fff7ff;
      --theme-cert-kicker: #7b4597;
      --theme-cert-panel-bg: rgba(255, 252, 255, 0.94);
      --theme-cert-panel-border: rgba(110, 58, 138, 0.2);
      --theme-cert-route-wrap-bg: rgba(248, 240, 249, 0.98);
      --theme-cert-route-bg: rgba(253, 248, 253, 0.97);
      --theme-cert-route-border: rgba(110, 58, 138, 0.18);
      --theme-cert-chip-bg: rgba(246, 238, 247, 0.96);
      --theme-cert-chip-text: #5e3177;
      --theme-cert-watermark: rgba(110, 58, 138, 0.07);
      --theme-cert-table-head: #673783;
      --theme-cert-table-rule: rgba(110, 58, 138, 0.16);
    }

    body[data-brand-theme="theme-10"] {
      --theme-shell-radius: 14px;
      --theme-shell-overlay: linear-gradient(145deg, rgba(24, 82, 209, 0.22), transparent 50%), radial-gradient(circle at bottom right, rgba(138, 196, 55, 0.18), transparent 34%);
      --theme-shell-bg: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, #f3fbff 10%), color-mix(in srgb, var(--surface-2) 76%, #1852d1 24%));
      --theme-shell-shadow: 0 18px 44px rgba(16, 60, 152, 0.18);
      --theme-report-bg: linear-gradient(135deg, rgba(247, 252, 255, 0.94), rgba(232, 243, 252, 0.92));
      --theme-directory-active-bg: linear-gradient(135deg, rgba(24, 82, 209, 0.2), rgba(138, 196, 55, 0.18));
      --theme-directory-active-border: rgba(24, 82, 209, 0.4);
      --theme-directory-active-shadow: 0 18px 36px rgba(18, 68, 175, 0.18);
      --theme-table-head-bg: linear-gradient(90deg, rgba(24, 82, 209, 0.22), rgba(138, 196, 55, 0.18));
      --theme-table-head-text: #1244af;
      --theme-table-row-alt: rgba(24, 82, 209, 0.05);
      --theme-table-row-hover: rgba(138, 196, 55, 0.14);
      --theme-table-accent: rgba(138, 196, 55, 0.5);
      --theme-cert-paper: #f7fbff;
      --theme-cert-paper-2: #e8f0f9;
      --theme-cert-glow: rgba(24, 82, 209, 0.16);
      --theme-cert-frame: rgba(24, 82, 209, 0.34);
      --theme-cert-frame-soft: rgba(138, 196, 55, 0.2);
      --theme-cert-head-bg: linear-gradient(180deg, #1244af 0%, #0a2b70 100%);
      --theme-cert-head-ink: #f7fbff;
      --theme-cert-kicker: #2b63de;
      --theme-cert-panel-bg: rgba(251, 255, 255, 0.94);
      --theme-cert-panel-border: rgba(24, 82, 209, 0.22);
      --theme-cert-route-wrap-bg: rgba(237, 245, 255, 0.98);
      --theme-cert-route-bg: rgba(247, 251, 255, 0.98);
      --theme-cert-route-border: rgba(24, 82, 209, 0.18);
      --theme-cert-chip-bg: rgba(234, 243, 255, 0.96);
      --theme-cert-chip-text: #1244af;
      --theme-cert-watermark: rgba(24, 82, 209, 0.07);
      --theme-cert-table-head: #1a57d7;
      --theme-cert-table-rule: rgba(24, 82, 209, 0.16);
    }

    body[data-brand-theme] .certificate-sheet[data-certificate-variant] {
      background:
        radial-gradient(circle at top right, var(--theme-cert-glow), transparent 34%),
        linear-gradient(180deg, var(--theme-cert-paper) 0%, var(--theme-cert-paper-2) 100%);
      border-color: var(--theme-cert-frame);
      box-shadow: var(--theme-cert-shadow);
    }

    body[data-brand-theme] .certificate-sheet[data-certificate-variant]::before {
      border-color: var(--theme-cert-frame-soft);
    }

    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-watermark {
      color: var(--theme-cert-watermark);
    }

    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-head {
      background: var(--theme-cert-head-bg);
      color: var(--theme-cert-head-ink);
    }

    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-title,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-subtitle,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-status strong,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-status span:last-child {
      color: var(--theme-cert-head-ink);
    }

    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-kicker,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-company-label,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-signoff span,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-disclaimer span {
      color: var(--theme-cert-kicker);
    }

    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-route-banner {
      background: var(--theme-cert-route-wrap-bg);
      border-color: var(--theme-cert-route-border);
    }

    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-route-block {
      background: var(--theme-cert-route-bg);
      border-color: var(--theme-cert-route-border);
    }

    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-company-spotlight,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-score-panel,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-canvas-card,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-meta-item,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-summary-card,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-scorecard-card {
      background: var(--theme-cert-panel-bg);
      border-color: var(--theme-cert-panel-border);
    }

    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-company-chip,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-status-badge {
      background: var(--theme-cert-chip-bg);
      border-color: var(--theme-cert-panel-border);
      color: var(--theme-cert-chip-text);
    }

    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-footer,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-disclaimer,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-table th,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-table td {
      border-color: var(--theme-cert-table-rule);
    }

    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-table th {
      color: var(--theme-cert-table-head);
    }

    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-route-block span {
      color: var(--theme-cert-route-label);
    }

    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-route-block strong {
      color: var(--theme-cert-route-value);
    }

    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .brand-mark {
      background: transparent;
      box-shadow: none;
    }

    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-score-badge {
      --certificate-score-fill: var(--theme-cert-kicker);
      --certificate-score-track: color-mix(in srgb, var(--theme-cert-panel-border) 78%, transparent);
      --certificate-score-core: var(--theme-cert-score-core);
      background:
        radial-gradient(circle at center, var(--certificate-score-core) 54%, transparent 55%),
        conic-gradient(from -90deg, var(--certificate-score-fill) 0 var(--certificate-score-deg, 0deg), var(--certificate-score-track) var(--certificate-score-deg, 0deg) 360deg);
      box-shadow:
        inset 0 0 0 1px var(--theme-cert-panel-border),
        0 10px 28px color-mix(in srgb, var(--theme-cert-kicker) 16%, transparent);
    }

    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-company-name,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-lead,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-score-badge strong,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-score-copy h3,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-meta-item strong,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-summary-item strong,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-table td,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-signoff strong {
      color: var(--theme-cert-route-value);
    }

    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-subtitle,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-company-subtitle,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-score-badge span,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-score-copy p,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-meta-item span,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-summary-lead,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-summary-item span,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-canvas-card .eyebrow,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-status span:last-child,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-signoff small,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-disclaimer p {
      color: color-mix(in srgb, var(--theme-cert-route-value) 72%, var(--theme-cert-kicker) 28%);
    }

    body[data-theme="dark"][data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-score-badge strong {
      color: var(--theme-inverse-text);
    }

    body[data-theme="dark"][data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-score-badge span {
      color: var(--theme-inverse-muted);
    }

    body[data-theme="dark"][data-brand-theme] .certificate-sheet[data-certificate-variant="self"] .certificate-status-badge,
    body[data-theme="dark"][data-brand-theme] .certificate-sheet[data-certificate-variant="review"] .certificate-status-badge,
    body[data-theme="dark"][data-brand-theme] .certificate-sheet[data-certificate-variant="audit"] .certificate-status-badge {
      background: color-mix(in srgb, var(--theme-cert-chip-bg) 84%, transparent);
      border-color: var(--theme-cert-panel-border);
      color: var(--theme-cert-chip-text);
    }

    body[data-theme="dark"][data-brand-theme] .certificate-sheet[data-certificate-variant="self"] .certificate-route-block,
    body[data-theme="dark"][data-brand-theme] .certificate-sheet[data-certificate-variant="audit"] .certificate-route-banner {
      background: var(--theme-cert-route-wrap-bg);
      border-color: var(--theme-cert-route-border);
    }

    body[data-theme="dark"][data-brand-theme] .certificate-sheet[data-certificate-variant="review"] .certificate-head {
      background: linear-gradient(180deg, color-mix(in srgb, var(--theme-cert-panel-bg) 84%, var(--theme-cert-head-bg) 16%), color-mix(in srgb, var(--theme-cert-route-wrap-bg) 82%, var(--theme-cert-panel-bg) 18%));
      border-color: var(--theme-cert-route-border);
    }

    body[data-theme="dark"][data-brand-theme] .certificate-sheet[data-certificate-variant="review"] .certificate-summary-card,
    body[data-theme="dark"][data-brand-theme] .certificate-sheet[data-certificate-variant="audit"] .certificate-summary-card {
      background: var(--theme-cert-panel-bg);
      border-color: var(--theme-cert-panel-border);
    }

    #tab-certificate .certificate-template-v2 {
      display: grid !important;
    }

    .certificate-template-v2 {
      gap: 16px;
      width: min(100%, 1120px);
      max-width: 1120px;
      min-height: auto;
      aspect-ratio: auto;
      padding: clamp(24px, 3vw, 32px);
      border: 1px solid color-mix(in srgb, var(--theme-cert-frame) 84%, #ffffff 16%);
      border-radius: 28px;
      background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.74), transparent 31%),
        radial-gradient(circle at 15% 12%, color-mix(in srgb, var(--theme-cert-glow) 64%, transparent), transparent 30%),
        radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--theme-cert-kicker) 13%, transparent), transparent 28%),
        linear-gradient(180deg, var(--theme-cert-paper) 0%, var(--theme-cert-paper-2) 100%);
      color: var(--theme-cert-route-value);
      box-shadow:
        0 34px 90px rgba(6, 28, 54, 0.12),
        inset 0 0 0 10px rgba(255, 255, 255, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.76);
    }

    .certificate-template-v2 > * {
      min-width: 0;
      break-inside: avoid;
    }

    .certificate-template-v2::before {
      display: none;
    }

    .certificate-template-v2 .certificate-watermark {
      display: none;
      color: var(--theme-cert-watermark);
      font-size: clamp(110px, 14vw, 172px);
      opacity: 0;
    }

    .certificate-template-head {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 166px;
      gap: 18px;
      align-items: center;
      padding: 24px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 24px;
      background:
        radial-gradient(circle at 12% 20%, rgba(47, 174, 208, 0.32), transparent 34%),
        radial-gradient(circle at 88% 16%, rgba(104, 173, 69, 0.32), transparent 32%),
        linear-gradient(135deg, #052b56 0%, #0a5d91 38%, #0b8f80 68%, #68ad45 100%);
      box-shadow:
        0 22px 50px rgba(6, 28, 54, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
      overflow: hidden;
    }

    .certificate-template-head::after {
      content: "";
      position: absolute;
      inset: auto 24px 0 24px;
      height: 4px;
      border-radius: 999px 999px 0 0;
      background: linear-gradient(90deg, rgba(255, 255, 255, 0.76), rgba(47, 174, 208, 0.82), rgba(104, 173, 69, 0.86));
    }

    .certificate-template-brand {
      display: flex;
      align-items: center;
      gap: 15px;
      min-width: 0;
    }

    .certificate-template-brand > div {
      min-width: 0;
    }

    .certificate-template-brand .brand-mark {
      width: 70px;
      height: 70px;
      flex: 0 0 auto;
      border-radius: 50%;
      padding: 6px;
      background: rgba(255, 255, 255, 0.94);
      box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
    }

    .certificate-template-brand .brand-mark::before {
      inset: 6px;
    }

    .certificate-template-brand .brand-mark .atlas-logo-svg {
      width: 100%;
      height: 100%;
      object-fit: contain;
      filter: drop-shadow(0 7px 13px rgba(6, 28, 54, 0.16));
    }

    body[data-brand-theme] .certificate-template-v2 .certificate-template-brand .brand-mark {
      background: rgba(255, 255, 255, 0.94);
      box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
    }

    .certificate-template-v2 .certificate-title {
      margin: 3px 0 0;
      color: #ffffff;
      font-size: clamp(30px, 3.45vw, 40px);
      line-height: 1.02;
      letter-spacing: -0.035em;
      overflow-wrap: break-word;
    }

    .certificate-template-v2 .certificate-subtitle {
      color: rgba(238, 250, 252, 0.88);
      font-size: 13.5px;
      line-height: 1.35;
    }

    body[data-brand-theme] .certificate-template-v2 .certificate-template-head .certificate-kicker {
      color: rgba(232, 249, 246, 0.76);
      letter-spacing: 0.12em;
    }

    .certificate-template-reference {
      display: grid;
      gap: 7px;
      justify-items: end;
      text-align: right;
      min-width: 0;
      max-width: 166px;
    }

    .certificate-template-reference strong {
      color: #ffffff;
      font-size: 11.5px;
      line-height: 1.25;
      overflow-wrap: anywhere;
    }

    .certificate-template-reference span:last-child {
      color: rgba(238, 250, 252, 0.82);
      font-size: 12px;
    }

    body[data-brand-theme] .certificate-template-v2 .certificate-template-reference .certificate-status-badge {
      background: rgba(255, 255, 255, 0.92);
      border-color: rgba(255, 255, 255, 0.36);
      color: #052b56;
      box-shadow: 0 12px 28px rgba(6, 28, 54, 0.18);
    }

    .certificate-qr-card {
      display: grid;
      gap: 5px;
      justify-items: end;
      margin-top: 4px;
    }

    .certificate-qr-card canvas {
      width: 78px;
      height: 78px;
      padding: 5px;
      border-radius: 14px;
      background: #ffffff;
      border: 1px solid rgba(255, 255, 255, 0.42);
      box-shadow: 0 12px 28px rgba(6, 28, 54, 0.18);
    }

    .certificate-qr-card a {
      color: rgba(238, 250, 252, 0.9);
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-decoration: none;
      text-transform: uppercase;
    }

    .certificate-qr-card a:hover {
      color: #ffffff;
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .certificate-template-assessed {
      position: relative;
      z-index: 1;
      display: grid;
      gap: 6px;
      padding: 20px 22px;
      border: 1px solid var(--theme-cert-panel-border);
      border-radius: 20px;
      background:
        linear-gradient(135deg, color-mix(in srgb, var(--theme-cert-panel-bg) 92%, transparent), color-mix(in srgb, var(--theme-cert-paper) 82%, var(--theme-cert-glow) 18%));
      box-shadow: 0 18px 46px rgba(6, 28, 54, 0.08);
    }

    .certificate-template-v2 .certificate-company-name {
      color: var(--theme-cert-route-value);
      font-size: clamp(24px, 3vw, 38px);
      line-height: 1.08;
      overflow-wrap: anywhere;
    }

    .certificate-template-v2 .certificate-company-subtitle,
    .certificate-template-v2 .certificate-trading-line,
    .certificate-template-v2 .certificate-lead,
    .certificate-template-v2 .certificate-signoff small,
    .certificate-template-v2 .certificate-disclaimer p {
      color: color-mix(in srgb, var(--theme-cert-route-value) 70%, var(--theme-cert-kicker) 30%);
    }

    .certificate-template-summary {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 142px minmax(270px, 1fr) minmax(300px, 0.96fr);
      gap: 12px;
      align-items: stretch;
    }

    .certificate-template-score,
    .certificate-template-status,
    .certificate-template-route,
    .certificate-template-details .certificate-meta-item,
    .certificate-template-analytics .certificate-canvas-card,
    .certificate-template-footer .certificate-signoff {
      border: 1px solid var(--theme-cert-panel-border);
      border-radius: 20px;
      background:
        linear-gradient(145deg, color-mix(in srgb, var(--theme-cert-panel-bg) 94%, transparent), color-mix(in srgb, var(--theme-cert-paper) 86%, var(--theme-cert-glow) 14%));
      box-shadow:
        0 14px 34px rgba(6, 28, 54, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.48);
    }

    .certificate-template-score {
      display: grid;
      place-items: center;
      gap: 9px;
      padding: 13px 10px;
      text-align: center;
    }

    .certificate-template-status {
      display: grid;
      align-content: center;
      gap: 6px;
      padding: 16px 18px;
    }

    .certificate-template-status h3 {
      margin: 0;
      color: var(--theme-cert-route-value);
      font-family: var(--certificate-font);
      font-size: 23px;
      line-height: 1.05;
    }

    .certificate-template-status p {
      margin: 0;
      color: color-mix(in srgb, var(--theme-cert-route-value) 70%, var(--theme-cert-kicker) 30%);
      font-size: 13px;
      line-height: 1.5;
    }

    .certificate-template-route {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      overflow: visible;
      background: transparent;
      box-shadow: none;
    }

    .certificate-template-route > div {
      display: grid;
      align-content: center;
      gap: 5px;
      min-width: 0;
      padding: 11px 12px;
      border: 1px solid var(--theme-cert-panel-border);
      border-radius: 16px;
      background: color-mix(in srgb, var(--theme-cert-paper) 72%, var(--theme-cert-panel-bg) 28%);
    }

    .certificate-template-route span,
    .certificate-template-details span,
    .certificate-template-footer span {
      color: var(--theme-cert-kicker);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .certificate-template-route strong,
    .certificate-template-details strong,
    .certificate-template-footer strong {
      color: var(--theme-cert-route-value);
      font-size: 13px;
      line-height: 1.35;
      overflow-wrap: break-word;
    }

    .certificate-template-details {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 9px;
    }

    .certificate-template-details .certificate-meta-item {
      display: grid;
      gap: 5px;
      padding: 11px 12px;
    }

    .certificate-template-details .certificate-meta-item small {
      color: color-mix(in srgb, var(--theme-cert-route-value) 62%, var(--theme-cert-kicker) 38%);
      font-size: 10.5px;
      line-height: 1.35;
    }

    .certificate-template-v2 .certificate-lead {
      position: relative;
      z-index: 1;
      margin: 0;
      padding: 0 4px;
      font-size: 13px;
      line-height: 1.5;
    }

    .certificate-template-analytics {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 12px;
      align-items: stretch;
    }

    .certificate-template-analytics .certificate-canvas-card {
      padding: 20px 22px;
    }

    .certificate-template-analytics .certificate-table th,
    .certificate-template-analytics .certificate-table td {
      border-color: var(--theme-cert-table-rule);
      color: var(--theme-cert-route-value);
      font-size: 12px;
      padding: 6px 0;
      line-height: 1.2;
    }

    .certificate-template-analytics .certificate-table th {
      color: var(--theme-cert-table-head);
      font-size: 10.5px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .certificate-template-analytics .certificate-radar-shell {
      min-height: 392px;
      display: grid;
      place-items: center;
    }

    .certificate-template-analytics .certificate-radar {
      width: min(100%, 640px);
    }

    .certificate-template-footer {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 9px;
    }

    .certificate-template-footer .certificate-signoff {
      padding: 11px 12px;
    }

    .certificate-template-footer .certificate-technical-signatory {
      grid-column: 1 / -1;
    }

    .certificate-template-v2 .certificate-disclaimer {
      padding: 13px 15px;
      border: 1px solid var(--theme-cert-panel-border);
      border-radius: 18px;
      background: color-mix(in srgb, var(--theme-cert-panel-bg) 88%, var(--theme-cert-paper) 12%);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
    }

    /* Formal certificate system: one clean visual language for all certificate routes. */
    .certificate-sheet.certificate-template-v2 {
      --cert-accent: #0b8f80;
      --cert-accent-2: #2faed0;
      --cert-accent-3: #68ad45;
      --cert-ink: #061c36;
      --cert-muted: #536678;
      --cert-paper: #ffffff;
      --cert-panel: #f7fbfb;
      --cert-rule: rgba(6, 28, 54, 0.12);
      --cert-rule-strong: rgba(11, 143, 128, 0.26);
      display: grid;
      grid-template-rows: auto auto auto auto auto;
      align-content: start;
      width: min(100%, 1088px);
      max-width: 1088px;
      aspect-ratio: 200 / 287;
      gap: clamp(10px, 1.1vw, 13px);
      padding: clamp(20px, 2.35vw, 28px);
      border: 1px solid var(--cert-rule-strong);
      border-radius: 18px;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 252, 0.98)),
        var(--cert-paper);
      color: var(--cert-ink);
      box-shadow:
        0 24px 70px rgba(6, 28, 54, 0.12),
        inset 0 0 0 7px rgba(255, 255, 255, 0.62);
    }

    .certificate-sheet.certificate-template-v2::after {
      content: "";
      position: absolute;
      inset: 12px;
      z-index: 0;
      pointer-events: none;
      border: 1px solid rgba(11, 143, 128, 0.12);
      border-radius: 12px;
    }

    .certificate-sheet.certificate-template-v2[data-certificate-variant="self"] {
      --cert-accent: #0b8f80;
      --cert-accent-2: #2faed0;
      --cert-accent-3: #68ad45;
      --cert-rule-strong: rgba(11, 143, 128, 0.26);
    }

    .certificate-sheet.certificate-template-v2[data-certificate-variant="review"] {
      --cert-accent: #0a5d91;
      --cert-accent-2: #2faed0;
      --cert-accent-3: #0b8f80;
      --cert-rule-strong: rgba(47, 174, 208, 0.28);
    }

    .certificate-sheet.certificate-template-v2[data-certificate-variant="audit"] {
      --cert-accent: #2f7d32;
      --cert-accent-2: #0b8f80;
      --cert-accent-3: #68ad45;
      --cert-rule-strong: rgba(104, 173, 69, 0.34);
    }

    .certificate-sheet.certificate-template-v2 .certificate-watermark {
      display: none;
      right: 46px;
      bottom: 42px;
      left: auto;
      top: auto;
      transform: none;
      color: rgba(6, 28, 54, 0.035);
      font-size: clamp(92px, 11vw, 148px);
      font-weight: 900;
      letter-spacing: 0.08em;
    }

    .certificate-sheet.certificate-template-v2[data-watermark-enabled="false"] .certificate-watermark {
      display: none;
    }

    .certificate-template-v2 .certificate-template-head,
    .certificate-sheet[data-certificate-variant="review"] .certificate-template-head,
    .certificate-sheet[data-certificate-variant="audit"] .certificate-template-head {
      grid-template-columns: minmax(0, 1fr) minmax(152px, 190px);
      gap: 18px;
      align-items: stretch;
      padding: 18px;
      border: 0;
      border-radius: 14px;
      background:
        linear-gradient(135deg, #061c36 0%, #0a426c 46%, #0b8f80 100%);
      box-shadow: none;
    }

    .certificate-template-v2 .certificate-template-head::after {
      inset: auto 18px 0 18px;
      height: 3px;
      background: linear-gradient(90deg, #2faed0, #0b8f80, #68ad45);
    }

    .certificate-template-v2 .certificate-template-brand {
      gap: 18px;
      align-items: center;
    }

    .certificate-template-v2 .certificate-template-brand .certificate-logo-lockup {
      width: 124px;
      height: 124px;
      flex: 0 0 124px;
      padding: 7px;
      border: 1px solid rgba(255, 255, 255, 0.82);
      border-radius: 16px;
      background: #ffffff;
      box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
      object-fit: contain;
    }

    .certificate-template-v2 .certificate-kicker {
      color: rgba(234, 249, 250, 0.82) !important;
      font-size: 10px;
      letter-spacing: 0.14em;
    }

    .certificate-template-v2 .certificate-title,
    .certificate-sheet[data-certificate-variant="audit"] .certificate-title {
      max-width: 620px;
      margin-top: 6px;
      color: #ffffff;
      font-size: clamp(29px, 3.2vw, 39px);
      line-height: 0.98;
      letter-spacing: -0.035em;
      text-transform: none;
    }

    .certificate-template-v2 .certificate-subtitle,
    .certificate-sheet[data-certificate-variant="audit"] .certificate-subtitle {
      display: block;
      max-width: 620px;
      margin-top: 8px;
      color: rgba(238, 250, 252, 0.86);
      font-size: 12.5px;
      line-height: 1.35;
    }

    .certificate-template-v2 .certificate-template-reference {
      align-content: start;
      justify-items: end;
      gap: 8px;
      max-width: none;
      padding: 2px 0;
    }

    .certificate-template-v2 .certificate-template-reference strong {
      color: #ffffff;
      font-size: 11px;
      line-height: 1.25;
      max-width: 180px;
    }

    .certificate-template-v2 .certificate-template-reference span:last-child {
      color: rgba(238, 250, 252, 0.82);
      font-size: 11px;
    }

    body[data-brand-theme] .certificate-template-v2 *,
    body[data-brand-theme] .certificate-template-v2 *::before,
    body[data-brand-theme] .certificate-template-v2 *::after {
      border-color: #c7e5e3 !important;
      outline-color: #0b8f80 !important;
    }

    body[data-brand-theme] .certificate-template-v2 span:not(.certificate-status-badge):not(.certificate-company-chip) {
      color: #061c36 !important;
    }

    body[data-brand-theme] .certificate-template-v2 .certificate-template-head .certificate-title,
    body[data-brand-theme] .certificate-template-v2 .certificate-template-head .certificate-subtitle,
    body[data-brand-theme] .certificate-template-v2 .certificate-template-reference strong,
    body[data-brand-theme] .certificate-template-v2 .certificate-template-reference > span:not(.certificate-status-badge),
    body[data-brand-theme] .certificate-template-v2 .certificate-template-reference span:last-child {
      color: rgba(255, 255, 255, 0.94) !important;
    }

    body[data-brand-theme] .certificate-template-v2 .certificate-template-head .certificate-subtitle,
    body[data-brand-theme] .certificate-template-v2 .certificate-template-reference > span:not(.certificate-status-badge),
    body[data-brand-theme] .certificate-template-v2 .certificate-template-reference span:last-child {
      color: rgba(238, 250, 252, 0.82) !important;
    }

    .certificate-template-v2 .certificate-status-badge,
    body[data-brand-theme] .certificate-template-v2 .certificate-template-reference .certificate-status-badge {
      border: 1px solid rgba(255, 255, 255, 0.68);
      background: rgba(255, 255, 255, 0.94);
      color: #061c36;
      box-shadow: none;
    }

    .certificate-template-v2 .certificate-qr-card canvas {
      width: 66px;
      height: 66px;
      padding: 4px;
      border-radius: 10px;
      box-shadow: none;
    }

    .certificate-template-v2 .certificate-qr-card a {
      color: rgba(238, 250, 252, 0.84);
      font-size: 8px;
    }

    .certificate-template-v2 .certificate-template-assessed {
      gap: 8px;
      padding: 17px 19px;
      border: 1px solid var(--cert-rule);
      border-left: 5px solid var(--cert-accent);
      border-radius: 12px;
      background: var(--cert-panel);
      box-shadow: none;
    }

    .certificate-template-v2 .certificate-company-label,
    .certificate-template-v2 .certificate-template-route span,
    .certificate-template-v2 .certificate-template-details span,
    .certificate-template-v2 .certificate-template-footer span,
    .certificate-template-v2 .certificate-disclaimer span,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-company-label,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-signoff span,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-disclaimer span {
      color: var(--cert-accent);
      font-size: 9.5px;
      letter-spacing: 0.13em;
    }

    .certificate-template-v2 .certificate-company-name,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-company-name {
      color: var(--cert-ink);
      font-size: clamp(27px, 3.15vw, 38px);
      line-height: 1.02;
      letter-spacing: -0.025em;
    }

    .certificate-template-v2 .certificate-company-subtitle,
    .certificate-template-v2 .certificate-lead,
    .certificate-template-v2 .certificate-signoff small,
    .certificate-template-v2 .certificate-disclaimer p,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-company-subtitle,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-lead,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-signoff small,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-disclaimer p {
      color: var(--cert-muted);
    }

    .certificate-template-v2 .certificate-company-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin-top: 2px;
    }

    .certificate-template-v2 .certificate-company-chip,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-company-chip {
      border: 1px solid rgba(11, 143, 128, 0.16);
      background: #ffffff;
      color: var(--cert-ink);
      box-shadow: none;
    }

    .certificate-template-v2 .certificate-template-summary {
      grid-template-columns: 128px minmax(0, 1.15fr) minmax(290px, 0.95fr);
      gap: 10px;
    }

    .certificate-template-v2 .certificate-template-score,
    .certificate-template-v2 .certificate-template-status,
    .certificate-template-v2 .certificate-template-route > div,
    .certificate-template-v2 .certificate-template-details .certificate-meta-item,
    .certificate-template-v2 .certificate-template-analytics .certificate-canvas-card,
    .certificate-template-v2 .certificate-template-footer .certificate-signoff,
    .certificate-template-v2 .certificate-disclaimer,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-score-panel,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-canvas-card,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-meta-item,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-summary-card,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-scorecard-card {
      border: 1px solid var(--cert-rule);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.78);
      box-shadow: none;
    }

    .certificate-template-v2 .certificate-template-score {
      padding: 12px 10px;
    }

    .certificate-template-v2 .certificate-score-badge,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-score-badge {
      --certificate-score-fill: var(--cert-accent);
      --certificate-score-track: rgba(6, 28, 54, 0.12);
      --certificate-score-core: #ffffff;
      width: 86px;
      height: 86px;
      background:
        radial-gradient(circle at center, var(--certificate-score-core) 54%, transparent 55%),
        conic-gradient(from -90deg, var(--certificate-score-fill) 0 var(--certificate-score-deg, 0deg), var(--certificate-score-track) var(--certificate-score-deg, 0deg) 360deg);
      box-shadow:
        inset 0 0 0 1px rgba(6, 28, 54, 0.08),
        0 10px 28px rgba(6, 28, 54, 0.08);
    }

    .certificate-template-v2 .certificate-score-badge strong,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-score-badge strong {
      color: var(--cert-ink);
    }

    .certificate-template-v2 .certificate-score-badge span,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-score-badge span {
      color: var(--cert-muted);
    }

    .certificate-template-v2 .certificate-template-status {
      padding: 15px 17px;
    }

    .certificate-template-v2 .certificate-template-status h3,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-template-status h3 {
      color: var(--cert-ink);
      font-size: 22px;
      line-height: 1.08;
    }

    .certificate-template-v2 .certificate-template-status p {
      color: var(--cert-muted);
      font-size: 12.5px;
      line-height: 1.45;
    }

    .certificate-template-v2 .certificate-template-route {
      gap: 8px;
      background: transparent;
    }

    .certificate-template-v2 .certificate-template-route > div {
      padding: 10px 11px;
      background: #ffffff;
    }

    .certificate-template-v2 .certificate-template-route strong,
    .certificate-template-v2 .certificate-template-details strong,
    .certificate-template-v2 .certificate-template-footer strong,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-template-route strong,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-template-details strong,
    body[data-brand-theme] .certificate-sheet[data-certificate-variant] .certificate-template-footer strong {
      color: var(--cert-ink);
      font-size: 12.6px;
    }

    .certificate-template-v2 .certificate-template-details {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }

    .certificate-template-v2 .certificate-template-details .certificate-meta-item {
      padding: 10px 11px;
      background: #ffffff;
    }

    .certificate-template-v2 .certificate-template-details .certificate-meta-item small {
      color: var(--cert-muted);
      font-size: 10px;
      line-height: 1.3;
    }

    .certificate-template-v2 .certificate-lead {
      padding: 0 2px;
      font-size: 12.6px;
      line-height: 1.45;
    }

    .certificate-template-v2 .certificate-template-analytics .certificate-canvas-card {
      padding: 11px 15px 10px;
      background: #ffffff;
    }

    .certificate-template-v2 .certificate-template-analytics .certificate-canvas-card h3 {
      color: var(--cert-ink);
      font-size: 17px;
      line-height: 1.1;
    }

    .certificate-template-v2 .certificate-template-analytics .certificate-radar-shell {
      min-height: 0;
      margin-top: 0;
      overflow: hidden;
      align-items: start;
    }

    .certificate-template-v2 .certificate-template-analytics .certificate-radar {
      width: min(100%, 360px);
      height: 220px;
      max-height: 220px;
    }

    /* One canonical certificate illustration for every route and export. */
    .certificate-sheet.certificate-template-v2[data-certificate-variant],
    .certificate-sheet.certificate-template-v2[data-certificate-variant="self"],
    .certificate-sheet.certificate-template-v2[data-certificate-variant="review"],
    .certificate-sheet.certificate-template-v2[data-certificate-variant="audit"] {
      --cert-accent: #0b8f80;
      --cert-accent-2: #2faed0;
      --cert-accent-3: #68ad45;
      --cert-rule: #bfe8e4;
      --cert-rule-strong: rgba(11, 143, 128, 0.28);
      --cert-ink: #061c36;
      --cert-muted: #506474;
      background:
        radial-gradient(circle at 8% 6%, rgba(47, 174, 208, 0.13), transparent 30rem),
        radial-gradient(circle at 92% 3%, rgba(104, 173, 69, 0.12), transparent 28rem),
        linear-gradient(180deg, #f7fdfd 0%, #edf8f7 100%) !important;
      border-color: #bfe8e4 !important;
      box-shadow: 0 28px 58px rgba(6, 28, 54, 0.08) !important;
    }

    .certificate-sheet.certificate-template-v2[data-certificate-variant] .certificate-template-head,
    .certificate-sheet.certificate-template-v2[data-certificate-variant="self"] .certificate-template-head,
    .certificate-sheet.certificate-template-v2[data-certificate-variant="review"] .certificate-template-head,
    .certificate-sheet.certificate-template-v2[data-certificate-variant="audit"] .certificate-template-head {
      background:
        linear-gradient(135deg, #061c36 0%, #0a426c 43%, #0b8f80 74%, #68ad45 100%) !important;
      border: 0 !important;
      border-radius: 14px !important;
      box-shadow: none !important;
    }

    .certificate-sheet.certificate-template-v2[data-certificate-variant] .certificate-template-head::after {
      background: linear-gradient(90deg, #2faed0, #0b8f80, #68ad45) !important;
    }

    .certificate-sheet.certificate-template-v2[data-certificate-variant] .certificate-template-head .certificate-kicker,
    .certificate-sheet.certificate-template-v2[data-certificate-variant] .certificate-template-head .certificate-title,
    .certificate-sheet.certificate-template-v2[data-certificate-variant] .certificate-template-head .certificate-subtitle,
    .certificate-sheet.certificate-template-v2[data-certificate-variant] .certificate-template-reference strong,
    .certificate-sheet.certificate-template-v2[data-certificate-variant] .certificate-template-reference > span:not(.certificate-status-badge),
    .certificate-sheet.certificate-template-v2[data-certificate-variant] .certificate-qr-card a {
      color: #ffffff !important;
    }

    .certificate-sheet.certificate-template-v2[data-certificate-variant] .certificate-template-head .certificate-subtitle,
    .certificate-sheet.certificate-template-v2[data-certificate-variant] .certificate-template-reference > span:not(.certificate-status-badge),
    .certificate-sheet.certificate-template-v2[data-certificate-variant] .certificate-qr-card a {
      opacity: 0.86;
    }

    .certificate-sheet.certificate-template-v2[data-certificate-variant] .certificate-status-badge,
    body[data-brand-theme] .certificate-template-v2[data-certificate-variant] .certificate-template-reference .certificate-status-badge {
      background: rgba(255, 255, 255, 0.94) !important;
      border-color: rgba(255, 255, 255, 0.68) !important;
      color: #061c36 !important;
    }

    .certificate-sheet.certificate-template-v2[data-certificate-variant] .certificate-score-badge,
    body[data-brand-theme] .certificate-sheet.certificate-template-v2[data-certificate-variant] .certificate-score-badge {
      --certificate-score-fill: #0b8f80;
      --certificate-score-track: rgba(6, 28, 54, 0.12);
      --certificate-score-core: #ffffff;
      background: #ffffff !important;
      box-shadow:
        inset 0 0 0 1px rgba(6, 28, 54, 0.08),
        0 10px 28px rgba(11, 143, 128, 0.12) !important;
    }

    .certificate-export-host {
      position: absolute;
      left: 0;
      top: 0;
      width: 1120px;
      z-index: -1;
      pointer-events: none;
    }

    .certificate-template-v2 .certificate-template-footer {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }

    .certificate-template-v2 .certificate-template-footer .certificate-signoff {
      padding: 10px 11px;
      background: #ffffff;
    }

    .certificate-template-v2 .certificate-template-footer .certificate-technical-signatory {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: 1fr;
      gap: 4px;
      align-items: start;
    }

    .certificate-template-v2 .certificate-template-footer .certificate-technical-signatory small {
      text-align: left;
    }

    .certificate-template-v2 .certificate-disclaimer {
      padding: 12px 14px;
      background: #f9fcfc;
    }

    .certificate-template-v2 .certificate-disclaimer p {
      font-size: 10.2px;
      line-height: 1.35;
      margin: 5px 0 0;
    }

    .certificate-sheet.certificate-template-v2 .certificate-template-head,
    .certificate-sheet.certificate-template-v2[data-certificate-variant] .certificate-template-head,
    .certificate-sheet.certificate-template-v2[data-certificate-variant="self"] .certificate-template-head,
    .certificate-sheet.certificate-template-v2[data-certificate-variant="review"] .certificate-template-head,
    .certificate-sheet.certificate-template-v2[data-certificate-variant="audit"] .certificate-template-head {
      display: grid;
      grid-template-columns: 208px minmax(0, 1fr) 208px;
      align-items: center;
      gap: 22px;
      min-height: 196px;
      padding: 26px 28px;
    }

    .certificate-template-v2 .certificate-template-brand {
      display: grid;
      place-items: center;
      min-width: 0;
    }

    .certificate-template-v2 .certificate-template-brand .certificate-logo-lockup {
      width: 148px;
      height: 148px;
      flex: 0 0 148px;
      padding: 8px;
      border-radius: 20px;
      object-fit: contain;
    }

    .certificate-template-title-block {
      display: grid;
      justify-items: center;
      text-align: center;
      min-width: 0;
    }

    .certificate-template-v2 .certificate-template-title-block .certificate-kicker {
      color: rgba(232, 249, 246, 0.82) !important;
      font-size: 10px;
      letter-spacing: 0.16em;
    }

    .certificate-template-v2 .certificate-template-title-block .certificate-title,
    .certificate-sheet[data-certificate-variant="audit"] .certificate-template-title-block .certificate-title {
      max-width: none;
      margin: 8px 0 0;
      color: #ffffff !important;
      font-size: clamp(35px, 3.45vw, 47px);
      line-height: 0.98;
      text-align: center;
    }

    .certificate-template-v2 .certificate-template-title-block .certificate-subtitle,
    .certificate-sheet[data-certificate-variant="audit"] .certificate-template-title-block .certificate-subtitle {
      max-width: 600px;
      margin-top: 9px;
      color: rgba(238, 250, 252, 0.86) !important;
      font-size: 14px;
      text-align: center;
    }

    .certificate-template-v2 .certificate-template-reference {
      justify-items: end;
      text-align: right;
      align-content: center;
      gap: 7px;
    }

    .certificate-template-v2 .certificate-template-reference strong {
      max-width: 176px;
      color: #ffffff !important;
      font-size: 13px;
      line-height: 1.25;
    }

    .certificate-template-v2 .certificate-template-assessed {
      gap: 8px;
      padding: 16px 18px;
    }

    .certificate-template-v2 .certificate-lead {
      max-width: 920px;
      padding: 0;
      color: var(--cert-muted);
      font-size: 13px;
      line-height: 1.48;
    }

    .certificate-template-v2 .certificate-trading-line {
      max-width: 920px;
      margin: 2px 0 0;
      color: var(--cert-muted);
      font-size: 12.8px;
      font-weight: 700;
      line-height: 1.35;
    }

    .certificate-company-detail-block {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0;
      margin-top: 2px;
      overflow: hidden;
      border: 1px solid var(--cert-rule);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.7);
    }

    .certificate-company-detail-block > div,
    .certificate-detail-row {
      display: grid;
      grid-template-columns: minmax(224px, 0.35fr) minmax(0, 1fr);
      gap: 14px;
      align-items: start;
      padding: 9px 14px;
      border-bottom: 1px solid rgba(6, 28, 54, 0.08);
    }

    .certificate-company-detail-block > div:last-child {
      border-bottom: 0;
    }

    .certificate-company-detail-block span {
      color: var(--cert-accent) !important;
      font-size: 12.2px;
      font-weight: 900;
      letter-spacing: 0.1em;
      line-height: 1.25;
      text-transform: uppercase;
    }

    .certificate-company-detail-block strong {
      color: var(--cert-ink) !important;
      font-size: 16px;
      line-height: 1.26;
      overflow-wrap: anywhere;
    }

    .certificate-company-detail-block small {
      grid-column: 2;
      color: var(--cert-muted);
      font-size: 11.2px;
      line-height: 1.35;
    }

    .certificate-template-assessment-grid {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: minmax(206px, 0.27fr) minmax(0, 0.9fr);
      grid-auto-rows: 1fr;
      gap: 10px;
      align-items: stretch;
    }

    .certificate-template-score-panel,
    .certificate-template-assessment-grid .certificate-canvas-card,
    .certificate-template-verification-strip,
    .certificate-template-v2 .certificate-disclaimer {
      border: 1px solid var(--cert-rule);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.82);
      box-shadow: none;
    }

    .certificate-template-score-panel {
      display: grid;
      align-content: start;
      align-self: stretch;
      justify-items: center;
      gap: 7px;
      padding: 10px 12px;
      text-align: center;
    }

    .certificate-template-score-panel h3 {
      color: var(--cert-ink);
      font-size: 17px;
      line-height: 1.08;
      text-align: center;
    }

    .certificate-template-score-panel p {
      margin: 0;
      color: var(--cert-muted);
      font-size: 10.8px;
      line-height: 1.34;
      text-align: center;
    }

    .certificate-score-facts {
      display: grid;
      grid-template-columns: 1fr;
      gap: 4px;
      width: 100%;
      margin-top: 4px;
      text-align: left;
    }

    .certificate-score-facts > div {
      display: grid;
      gap: 3px;
      padding: 6px 9px;
      border: 1px solid rgba(6, 28, 54, 0.09);
      border-radius: 10px;
      background: #ffffff;
    }

    .certificate-score-facts span {
      color: var(--cert-accent) !important;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .certificate-score-facts strong {
      color: var(--cert-ink);
      font-size: 13.5px;
      line-height: 1.25;
    }

    .certificate-template-assessment-grid .certificate-canvas-card {
      display: grid;
      align-content: start;
      align-self: stretch;
      min-height: 0;
      grid-template-rows: auto auto auto auto;
      padding: 11px 14px 10px;
      background: rgba(255, 255, 255, 0.86);
    }

    .certificate-sheet.certificate-template-v2 .certificate-template-assessment-grid {
      align-items: stretch !important;
      grid-auto-rows: 1fr;
    }

    .certificate-sheet.certificate-template-v2 .certificate-template-score-panel,
    .certificate-sheet.certificate-template-v2 .certificate-template-assessment-grid .certificate-canvas-card {
      align-self: stretch !important;
      height: 100%;
    }

    .certificate-template-assessment-grid .certificate-canvas-card h3 {
      color: var(--cert-ink);
      font-size: 18px;
      line-height: 1.1;
    }

    .certificate-template-assessment-grid .certificate-canvas-card .muted {
      color: var(--cert-muted);
      font-size: 11.6px;
      line-height: 1.28;
    }

    .certificate-template-v2 .certificate-template-assessment-grid .certificate-radar-shell {
      display: grid;
      min-height: 0;
      height: clamp(286px, 27vw, 334px);
      margin-top: 4px;
      overflow: hidden;
      place-items: center;
    }

    .certificate-template-v2 .certificate-template-assessment-grid .certificate-radar {
      width: min(100%, 468px);
      height: min(100%, 318px);
      max-height: 318px;
      margin: 0 auto;
    }

    .certificate-template-verification-strip {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 148px;
      gap: 16px;
      align-items: center;
      padding: 16px 18px;
    }

    .certificate-template-verification-strip .certificate-signoff {
      display: grid;
      gap: 4px;
      padding: 0;
      border: 0;
      background: transparent;
    }

    .certificate-template-verification-strip .certificate-signoff > span,
    .certificate-template-v2 .certificate-disclaimer span {
      color: var(--cert-accent) !important;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.115em;
      text-transform: uppercase;
    }

    .certificate-template-verification-strip .certificate-signoff strong {
      color: var(--cert-ink) !important;
      font-size: 19px;
      line-height: 1.25;
    }

    .certificate-template-verification-strip .certificate-signoff small {
      display: grid;
      gap: 4px;
      color: var(--cert-muted) !important;
      font-size: 13.4px;
      line-height: 1.34;
    }

    .certificate-template-verification-strip .certificate-signoff small b,
    .certificate-template-verification-strip .certificate-signoff small i {
      display: block;
      color: var(--cert-muted) !important;
      font-style: normal;
      font-weight: 600;
      line-height: 1.32;
    }

    .certificate-template-verification-strip .certificate-qr-card {
      justify-items: center;
      margin: 0;
      text-align: center;
    }

    .certificate-template-verification-strip .certificate-qr-card span {
      color: var(--cert-accent) !important;
      font-size: 9.8px;
      font-weight: 900;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .certificate-template-verification-strip .certificate-qr-card canvas {
      width: 92px;
      height: 92px;
      border-color: rgba(6, 28, 54, 0.1);
      box-shadow: none;
    }

    .certificate-template-verification-strip .certificate-qr-card a,
    .certificate-sheet.certificate-template-v2[data-certificate-variant] .certificate-template-verification-strip .certificate-qr-card a {
      color: var(--cert-accent) !important;
      opacity: 1;
      font-size: 10.8px;
    }

    .certificate-sheet.certificate-template-v2 .certificate-disclaimer {
      position: relative;
      z-index: 1;
      padding: 13px 15px;
    }

    .certificate-sheet.certificate-template-v2 .certificate-disclaimer p {
      font-size: 11.8px;
      line-height: 1.42;
    }

    @media (max-width: 820px) {
      .certificate-sheet.certificate-template-v2 .certificate-template-head,
      .certificate-sheet.certificate-template-v2[data-certificate-variant] .certificate-template-head {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
      }

      .certificate-template-v2 .certificate-template-reference {
        justify-items: center;
        text-align: center;
      }

      .certificate-company-detail-block > div,
      .certificate-detail-row,
      .certificate-template-assessment-grid,
      .certificate-template-verification-strip {
        grid-template-columns: 1fr;
      }

      .certificate-company-detail-block small {
        grid-column: 1;
      }
    }

    @media print {
      .certificate-sheet.certificate-template-v2,
      .certificate-sheet.certificate-template-v2[data-certificate-variant] {
        width: 200mm;
        height: 287mm;
        max-width: none;
        aspect-ratio: auto;
        padding: 4.2mm;
        gap: 2.2mm;
        border-radius: 2.8mm;
      }

      .certificate-sheet.certificate-template-v2 .certificate-template-head,
      .certificate-sheet.certificate-template-v2[data-certificate-variant] .certificate-template-head {
        grid-template-columns: 45mm minmax(0, 1fr) 45mm;
        min-height: 43mm;
        gap: 4mm;
        padding: 5mm 5.2mm;
      }

      .certificate-template-v2 .certificate-template-brand .certificate-logo-lockup {
        width: 33mm;
        height: 33mm;
        flex-basis: 33mm;
        padding: 1.4mm;
      }

      .certificate-template-v2 .certificate-template-title-block .certificate-title {
        font-size: 26pt;
      }

      .certificate-template-v2 .certificate-template-assessed {
        padding: 3mm 4mm;
        gap: 1.5mm;
      }

      .certificate-template-v2 .certificate-company-name {
        font-size: 21pt;
      }

      .certificate-company-detail-block > div,
      .certificate-detail-row {
        grid-template-columns: 42mm minmax(0, 1fr);
        gap: 3mm;
        padding: 1.6mm 2.7mm;
      }

      .certificate-company-detail-block span,
      .certificate-score-facts span,
      .certificate-template-verification-strip .certificate-signoff > span,
      .certificate-template-v2 .certificate-disclaimer span {
        font-size: 8.35pt;
        letter-spacing: 0.095em;
      }

      .certificate-company-detail-block strong,
      .certificate-score-facts strong {
        font-size: 10.45pt;
        line-height: 1.2;
      }

      .certificate-score-facts > div {
        padding: 1.1mm 1.8mm;
      }

      .certificate-template-assessment-grid {
        grid-template-columns: 39mm minmax(0, 1fr);
        gap: 2.3mm;
      }

      .certificate-template-score-panel {
        padding: 2.6mm 3mm;
        gap: 1.5mm;
      }

      .certificate-template-v2 .certificate-template-assessment-grid .certificate-radar-shell {
        min-height: 44mm;
      }

      .certificate-template-v2 .certificate-template-assessment-grid .certificate-radar {
        width: 88mm;
        height: 49mm;
        max-height: 49mm;
      }

      .certificate-template-verification-strip {
        grid-template-columns: minmax(0, 1fr) 34mm;
        padding: 3.4mm 4mm;
      }

      .certificate-template-verification-strip .certificate-qr-card canvas {
        width: 22mm;
        height: 22mm;
      }

      .certificate-template-verification-strip .certificate-signoff > span {
        font-size: 8.3pt;
      }

      .certificate-template-verification-strip .certificate-signoff strong {
        font-size: 12pt;
      }

      .certificate-template-verification-strip .certificate-signoff small {
        font-size: 9pt;
        line-height: 1.24;
      }

      .certificate-template-v2 .certificate-disclaimer {
        padding: 3mm 3.4mm;
      }

      .certificate-template-v2 .certificate-disclaimer p {
        font-size: 7.55pt;
        line-height: 1.28;
        margin-top: 1mm;
      }
    }

    .dash,
    .card,
    .chart-card,
    .table-wrap,
    .form-card,
    .profile-panel,
    .category-shell,
    .review-card,
    .question,
    .report-card,
    .option-card,
    .hero,
    .tab-panel {
      border-radius: var(--theme-shell-radius);
    }

    .metric,
    .selected-company,
    .class-panel,
    .mini-note,
    .review-doc,
    .review-doc-slot,
    .choice-chip,
    .report-item,
    .category-button,
    .score-options label,
    .field input,
    .field select,
    .field textarea,
    .account-state,
    .notice {
      border-radius: max(14px, calc(var(--theme-shell-radius) - 6px));
    }

    body {
      --state-success-bg: rgba(24, 129, 95, 0.08);
      --state-success-border: rgba(24, 129, 95, 0.18);
      --state-warning-bg: rgba(179, 138, 47, 0.08);
      --state-warning-border: rgba(179, 138, 47, 0.18);
      --state-error-bg: rgba(194, 86, 76, 0.08);
      --state-error-border: rgba(194, 86, 76, 0.18);
      --state-info-bg: rgba(36, 83, 212, 0.08);
      --state-info-border: rgba(36, 83, 212, 0.18);
      --state-disabled-bg: rgba(20, 24, 33, 0.05);
      --state-disabled-text: rgba(97, 108, 128, 0.78);
    }

    body[data-theme="dark"] {
      --state-success-bg: rgba(83, 201, 141, 0.12);
      --state-success-border: rgba(83, 201, 141, 0.22);
      --state-warning-bg: rgba(214, 179, 109, 0.12);
      --state-warning-border: rgba(214, 179, 109, 0.24);
      --state-error-bg: rgba(255, 155, 144, 0.12);
      --state-error-border: rgba(255, 155, 144, 0.22);
      --state-info-bg: rgba(124, 165, 255, 0.12);
      --state-info-border: rgba(124, 165, 255, 0.24);
      --state-disabled-bg: rgba(255, 255, 255, 0.04);
      --state-disabled-text: rgba(170, 183, 204, 0.74);
    }

    body[data-theme="dark"][data-brand-theme] {
      --ink: #f4f7fc;
      --muted: #a8b3c4;
      --paper: #08111a;
      --surface: rgba(12, 18, 26, 0.98);
      --surface-2: rgba(15, 22, 33, 0.98);
      --surface-3: #1d2938;
      --soft: #121c28;
      --band: #182231;
      --panel-sheen: linear-gradient(180deg, rgba(17, 24, 35, 0.98), rgba(12, 18, 28, 0.98));
      --theme-shell-bg: linear-gradient(180deg, rgba(16, 23, 34, 0.99), rgba(11, 17, 27, 0.99));
      --theme-shell-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 42%);
      --theme-shell-border: rgba(170, 183, 204, 0.14);
      --theme-shell-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
      --theme-report-bg: linear-gradient(180deg, rgba(15, 22, 33, 0.98), rgba(13, 19, 28, 0.98));
      --theme-report-shadow: none;
      --theme-control-bg: linear-gradient(180deg, rgba(17, 25, 36, 0.98), rgba(14, 20, 31, 0.98));
      --theme-control-border: rgba(170, 183, 204, 0.14);
      --theme-control-text: var(--ink);
      --theme-control-muted: #aab6c8;
      --theme-control-active-bg: linear-gradient(180deg, color-mix(in srgb, var(--button-bg) 14%, rgba(20, 28, 40, 0.96)), color-mix(in srgb, var(--button-bg) 7%, rgba(15, 22, 33, 0.98)));
      --theme-feature-bg: linear-gradient(180deg, rgba(18, 25, 37, 0.98), rgba(15, 21, 31, 0.98));
      --theme-feature-border: rgba(170, 183, 204, 0.14);
      --theme-feature-text: var(--ink);
      --theme-feature-muted: #afbbcc;
      --theme-input-bg: linear-gradient(180deg, rgba(14, 21, 31, 0.98), rgba(11, 17, 26, 0.98));
      --theme-input-border: rgba(170, 183, 204, 0.16);
      --theme-input-text: var(--ink);
      --theme-input-option-bg: #0f1722;
      --theme-input-option-text: #f4f7fc;
      --theme-directory-active-bg: linear-gradient(180deg, color-mix(in srgb, var(--button-bg) 12%, rgba(18, 25, 37, 0.98)), color-mix(in srgb, var(--button-bg) 6%, rgba(14, 20, 31, 0.98)));
      --theme-directory-active-border: color-mix(in srgb, var(--button-bg) 34%, rgba(170, 183, 204, 0.12));
      --theme-directory-active-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
      --theme-table-head-bg: linear-gradient(90deg, rgba(18, 26, 38, 0.98), rgba(15, 22, 33, 0.98));
      --theme-table-head-text: #dce5f3;
      --theme-table-head-border: rgba(170, 183, 204, 0.12);
      --theme-table-row: rgba(255, 255, 255, 0.01);
      --theme-table-row-alt: rgba(255, 255, 255, 0.025);
      --theme-table-row-hover: color-mix(in srgb, var(--button-bg) 9%, rgba(17, 24, 35, 0.98));
      --theme-table-row-border: rgba(170, 183, 204, 0.1);
      --theme-table-accent: color-mix(in srgb, var(--button-bg) 56%, rgba(255, 255, 255, 0.18));
      --badge-bg: color-mix(in srgb, var(--button-bg) 16%, rgba(255, 255, 255, 0.02));
      --badge-text: #edf3ff;
      --ghost-bg: rgba(255, 255, 255, 0.03);
      --ghost-text: var(--ink);
      --ghost-border: rgba(170, 183, 204, 0.12);
    }

    .topbar {
      border-bottom-color: rgba(20, 24, 33, 0.08);
      background: color-mix(in srgb, var(--surface) 92%, var(--paper) 8%);
      box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
      backdrop-filter: blur(18px) saturate(145%);
    }

    .nav-shell {
      min-height: 88px;
      gap: 32px;
      align-items: center;
      padding: 16px 0 18px;
    }

    .nav-brand-stack {
      gap: 14px;
    }

    .brand {
      gap: 16px;
    }

    .brand-mark {
      width: 66px;
      height: 66px;
      border-radius: 50%;
    }

    .brand-name {
      font-size: 13px;
      letter-spacing: 0.14em;
    }

    .brand-sub {
      margin-top: 4px;
      font-size: 11px;
      line-height: 1.45;
      letter-spacing: 0.015em;
    }

    .nav-actions {
      gap: 10px;
      width: min(100%, 248px);
    }

    .tabs {
      gap: 14px;
      align-self: stretch;
      padding: 0;
    }

    .tabs-row {
      display: grid;
      grid-template-columns: repeat(var(--tab-count, 4), minmax(0, 1fr));
      gap: 10px;
      align-items: stretch;
      justify-content: initial;
      min-height: 58px;
      padding: 5px;
      border: 1px solid var(--theme-control-border);
      border-radius: 14px;
      background: color-mix(in srgb, var(--surface) 74%, transparent);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .tab-button {
      flex: none;
      min-width: 0;
      width: 100%;
      min-height: 46px;
      height: 100%;
      border: 1px solid transparent;
      border-bottom: 1px solid transparent;
      border-radius: 10px;
      padding: 0 14px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-align: center;
      white-space: nowrap;
      transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    }

    .tab-button:hover {
      color: var(--ink);
      background: color-mix(in srgb, var(--theme-control-active-bg) 68%, transparent);
    }

    .tab-button.active {
      border-color: color-mix(in srgb, var(--button-bg) 18%, var(--theme-control-border) 82%);
      background: var(--theme-control-active-bg);
      color: var(--ink);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
    }

    .theme-toggle,
    .button,
    .button-ghost,
    .small-button,
    .danger-button {
      min-height: 44px;
      border-radius: 12px;
      font-size: 13px;
      font-weight: 750;
      letter-spacing: 0.01em;
    }

    .theme-toggle {
      min-width: 0;
      padding: 10px 14px;
      box-shadow: none;
    }

    .theme-toggle:hover,
    .button:hover,
    .button-ghost:hover,
    .small-button:hover,
    .danger-button:hover {
      transform: translateY(-1px);
    }

    .button,
    .small-button {
      border-color: color-mix(in srgb, var(--button-bg) 82%, black 18%);
      background: linear-gradient(180deg, color-mix(in srgb, var(--button-bg) 90%, white 10%), var(--button-bg));
      box-shadow: 0 8px 18px color-mix(in srgb, var(--button-bg) 24%, rgba(15, 23, 42, 0.12));
    }

    .button:hover,
    .small-button:hover {
      box-shadow: 0 12px 24px color-mix(in srgb, var(--button-bg) 26%, rgba(15, 23, 42, 0.16));
    }

    .button-ghost {
      background: color-mix(in srgb, var(--theme-control-bg) 82%, transparent);
      box-shadow: none;
    }

    .button:disabled,
    .button-ghost:disabled,
    .small-button:disabled,
    .danger-button:disabled,
    .theme-toggle:disabled {
      background: var(--state-disabled-bg);
      color: var(--state-disabled-text);
      border-color: var(--theme-control-border);
      opacity: 1;
    }

    .danger-button {
      border-color: var(--state-error-border);
      background: var(--state-error-bg);
      color: var(--red);
    }

    main {
      padding: 32px 0 52px;
    }

    .tab-panel {
      border: 1px solid var(--theme-shell-border);
      border-radius: 20px;
      background: var(--theme-shell-overlay), var(--theme-shell-bg);
      box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
    }

    .panel-pad {
      padding: 32px;
    }

    .hero {
      min-height: 54vh;
      gap: 28px;
      padding: 44px;
      background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--brand-glow) 70%, transparent), transparent 26rem),
        linear-gradient(135deg, color-mix(in srgb, var(--brand-bottom) 94%, black 6%) 0%, color-mix(in srgb, var(--brand-top) 58%, var(--brand-bottom) 42%) 55%, color-mix(in srgb, var(--brand-bottom) 84%, var(--paper) 16%) 100%);
    }

    body[data-brand-theme="atlas"] .hero {
      background:
        radial-gradient(circle at 8% 4%, rgba(47, 174, 208, 0.18), transparent 28rem),
        radial-gradient(circle at 94% 10%, rgba(104, 173, 69, 0.16), transparent 24rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 250, 252, 0.98) 52%, rgba(235, 247, 244, 0.96) 100%);
      border-color: rgba(11, 143, 128, 0.16);
      box-shadow: 0 22px 50px rgba(6, 28, 54, 0.08);
    }

    body[data-brand-theme="atlas"] .hero .eyebrow,
    body[data-brand-theme="atlas"] .hero h1,
    body[data-brand-theme="atlas"] .hero h2,
    body[data-brand-theme="atlas"] .hero h3 {
      color: var(--hero-ink);
    }

    body[data-brand-theme="atlas"] .hero .lead,
    body[data-brand-theme="atlas"] .hero .hero-note,
    body[data-brand-theme="atlas"] .signal-card p,
    body[data-brand-theme="atlas"] .signal-item span {
      color: var(--hero-muted);
    }

    body[data-brand-theme="atlas"] .signal-card,
    body[data-brand-theme="atlas"] .hero-kpi,
    body[data-brand-theme="atlas"] .signal-item {
      border-color: rgba(11, 143, 128, 0.18);
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 250, 252, 0.78));
      box-shadow:
        0 14px 30px rgba(6, 28, 54, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    }

    body[data-brand-theme="atlas"] .value-strip {
      border-color: rgba(11, 143, 128, 0.18);
      background:
        radial-gradient(circle at 100% 0%, rgba(104, 173, 69, 0.14), transparent 26rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(241, 249, 250, 0.78));
    }

    body[data-brand-theme="atlas"] .value-strip .signal-item {
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 248, 247, 0.88));
    }

    body[data-brand-theme="atlas"] .value-strip .signal-item strong {
      color: #061c36;
    }

    body[data-brand-theme="atlas"] .hero .button {
      background: linear-gradient(180deg, #0fa394, #0b8f80);
      border-color: rgba(11, 143, 128, 0.34);
      color: #ffffff;
      box-shadow: 0 12px 26px rgba(11, 143, 128, 0.18);
    }

    body[data-brand-theme="atlas"] .hero .button-ghost {
      background: rgba(255, 255, 255, 0.86);
      border-color: rgba(11, 143, 128, 0.22);
      color: #061c36;
    }

    .hero-copy,
    .home-stage {
      gap: 18px;
    }

    .eyebrow {
      margin-bottom: 12px;
      font-size: 10px;
      letter-spacing: 0.14em;
    }

    .eyebrow::before {
      width: 30px;
    }

    h1,
    h2,
    h3,
    h4 {
      letter-spacing: -0.04em;
    }

    h1 {
      max-width: 760px;
      font-size: clamp(36px, 4vw, 54px);
      line-height: 0.98;
    }

    h2 {
      font-size: clamp(28px, 2.4vw, 36px);
      line-height: 1.02;
    }

    h3 {
      font-size: 20px;
      line-height: 1.14;
    }

    .lead {
      max-width: 760px;
      font-size: 17px;
      line-height: 1.72;
    }

    .muted,
    .card p,
    .card li,
    details p,
    .section-head p,
    .dash-top p,
    .review-doc-copy p,
    .route-score-copy span,
    .report-card p,
    .report-item p {
      font-size: 14px;
      line-height: 1.68;
    }

    .notice {
      padding: 14px 16px;
      border-left-width: 4px;
      background: var(--theme-feature-bg);
      line-height: 1.62;
    }

    .warning {
      border-color: var(--state-warning-border);
      border-left-color: var(--gold);
      background: var(--state-warning-bg);
    }

    .success {
      border-color: var(--state-success-border);
      border-left-color: var(--green);
      background: var(--state-success-bg);
    }

    .dash,
    .card,
    .chart-card,
    .table-wrap,
    .form-card,
    .profile-panel,
    .category-shell,
    .review-card,
    .question,
    .report-card,
    .option-card {
      border-radius: 18px;
      box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
    }

    .dash:hover,
    .card:hover,
    .chart-card:hover,
    .form-card:hover,
    .profile-panel:hover,
    .category-shell:hover,
    .review-card:hover,
    .question:hover,
    .report-card:hover,
    .option-card:hover {
      border-color: color-mix(in srgb, var(--button-bg) 16%, var(--theme-shell-border) 84%);
      box-shadow: 0 18px 34px rgba(15, 23, 42, 0.07);
    }

    .card,
    .form-card,
    .chart-card,
    .profile-panel,
    .category-shell,
    .review-card {
      padding: 24px;
    }

    .dash > .dash-top {
      padding: 20px 20px 16px;
    }

    .dash-body {
      padding: 20px;
      gap: 18px;
    }

    .metric {
      padding: 16px;
      background: color-mix(in srgb, var(--theme-control-bg) 88%, transparent);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    }

    .metric strong {
      font-size: clamp(24px, 2vw, 30px);
    }

    .metric span {
      margin-top: 8px;
      font-size: 12px;
      line-height: 1.55;
    }

    .badge,
    .band-pill {
      min-inline-size: 0;
      padding: 6px 11px;
      font-size: 10px;
      letter-spacing: 0.08em;
    }

    .option-card {
      padding: 24px;
    }

    .option-card strong {
      font-size: 20px;
      line-height: 1.16;
    }

    .option-card span {
      font-size: 14px;
      line-height: 1.62;
    }

    .field {
      gap: 8px;
    }

    .field label {
      color: color-mix(in srgb, var(--muted) 86%, var(--ink) 14%);
      font-size: 10.5px;
      letter-spacing: 0.12em;
    }

    .field input,
    .field select,
    .field textarea,
    .route-score-select {
      min-height: 48px;
      border-radius: 12px;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .field input,
    .field textarea {
      padding: 12px 14px;
    }

    .field input:hover,
    .field select:hover,
    .field textarea:hover,
    .route-score-select:hover {
      border-color: color-mix(in srgb, var(--button-bg) 20%, var(--theme-input-border) 80%);
    }

    .field input:focus,
    .field select:focus,
    .field textarea:focus,
    .route-score-select:focus {
      border-color: color-mix(in srgb, var(--button-bg) 34%, var(--theme-input-border) 66%);
      box-shadow: 0 0 0 3px var(--focus-ring);
    }

    .selected-company,
    .class-panel,
    .mini-note,
    .review-doc,
    .review-doc-slot,
    .choice-chip,
    .dashboard-chip,
    .category-button,
    .score-options label,
    .account-state,
    .route-score-row {
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    }

    .review-doc-slot,
    .route-score-row,
    .public-directory-toolbar,
    .account-state {
      padding: 18px;
    }

    .category-button {
      gap: 12px;
      padding: 13px 14px;
      font-size: 13px;
    }

    .category-button.active {
      border-color: color-mix(in srgb, var(--button-bg) 30%, var(--theme-control-border) 70%);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .question {
      padding: 22px 24px;
    }

    .question p {
      margin-top: 8px;
      font-size: 14px;
      line-height: 1.65;
    }

    .score-options {
      gap: 12px;
    }

    .score-options label {
      padding: 12px 10px;
      font-size: 11px;
      line-height: 1.45;
    }

    .journey-step {
      padding: 20px;
      gap: 12px;
    }

    .journey-step.current {
      border-color: color-mix(in srgb, var(--button-bg) 24%, var(--theme-control-border) 76%);
      background: var(--theme-control-active-bg);
    }

    .report-card {
      padding: 20px;
    }

    .report-item {
      padding: 14px 15px;
      gap: 7px;
    }

    .public-directory-toolbar,
    .assessment-step-band {
      border-radius: 18px;
      box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
    }

    .table-wrap {
      border: 1px solid var(--theme-shell-border);
      background: var(--theme-shell-overlay), var(--theme-shell-bg);
    }

    table:not(.certificate-table) {
      border-collapse: separate;
      border-spacing: 0;
      min-width: 760px;
    }

    table:not(.certificate-table) th,
    table:not(.certificate-table) td {
      padding: 14px 16px;
    }

    table:not(.certificate-table) th {
      position: sticky;
      top: 0;
      z-index: 1;
      font-size: 10px;
      letter-spacing: 0.12em;
    }

    table:not(.certificate-table) tbody tr td:first-child {
      box-shadow: inset 2px 0 0 var(--theme-table-accent);
      font-weight: 650;
    }

    .account-state {
      gap: 12px;
      margin-bottom: 20px;
      align-items: center;
    }

    .status-text {
      font-size: 13px;
      line-height: 1.55;
    }

    .footer {
      padding-bottom: 36px;
      font-size: 12px;
    }

    .locked {
      opacity: 0.72;
      pointer-events: none;
    }

    canvas {
      width: 100%;
      height: auto;
      display: block;
    }

    .filters {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 10px;
      margin-bottom: 14px;
    }

    .table-wrap {
      overflow-x: auto;
      border-radius: 18px;
      box-shadow: none;
    }

    table:not(.certificate-table) {
      width: 100%;
      min-width: 760px;
      border-collapse: separate;
      border-spacing: 0;
      table-layout: auto;
    }

    table:not(.certificate-table) th,
    table:not(.certificate-table) td {
      border-bottom: 1px solid var(--line);
      padding: 14px 16px;
      text-align: left;
      vertical-align: top;
      font-size: 14px;
    }

    table:not(.certificate-table) th {
      position: sticky;
      top: 0;
      z-index: 1;
      background: var(--theme-table-head-bg);
      color: var(--theme-table-head-text);
      border-bottom-color: var(--theme-table-head-border);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    table:not(.certificate-table) td {
      border-bottom-color: var(--theme-table-row-border);
      background: var(--theme-table-row);
    }

    table:not(.certificate-table) tbody tr:nth-child(even) td {
      background: var(--theme-table-row-alt);
    }

    table:not(.certificate-table) tbody tr:hover td {
      background: var(--theme-table-row-hover);
    }

    table:not(.certificate-table) tbody tr td:first-child {
      box-shadow: inset 2px 0 0 var(--theme-table-accent);
      font-weight: 650;
    }

    .account-state {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
      margin-bottom: 20px;
      padding: 18px;
      border: 1px solid var(--theme-control-border);
      border-radius: 16px;
      background: var(--theme-control-bg);
      box-shadow: var(--theme-shell-shadow);
    }

    .status-text {
      color: var(--muted);
      font-size: 13px;
    }

    .profile-summary-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-top: 16px;
    }

    .profile-summary-item {
      min-width: 0;
      border: 1px solid var(--theme-control-border);
      border-radius: 16px;
      padding: 14px;
      background: color-mix(in srgb, var(--surface) 78%, transparent);
    }

    .profile-summary-item span {
      display: block;
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .profile-summary-item strong {
      display: block;
      margin-top: 6px;
      color: var(--ink);
      font-size: 15px;
      line-height: 1.35;
      overflow-wrap: anywhere;
    }

    .profile-permission-banner {
      border: 1px solid var(--theme-control-border);
      border-radius: 16px;
      padding: 14px;
      background: color-mix(in srgb, var(--theme-accent-soft) 64%, var(--surface) 36%);
    }

    .hidden {
      display: none !important;
    }

    body.preview-open {
      overflow: hidden;
    }

    .app-footer {
      margin-top: 36px;
      border-top: 1px solid rgba(16, 42, 67, 0.18);
      background: #062e48;
      color: #e8f1f5;
    }

    .app-footer-shell {
      width: min(100% - 48px, var(--max));
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1.4fr repeat(2, 0.8fr);
      gap: 40px;
      padding: 42px 0;
    }

    .app-footer-brand {
      display: flex;
      align-items: flex-start;
      gap: 14px;
    }

    .app-footer-brand img {
      width: 46px;
      height: 46px;
      border-radius: 10px;
    }

    .app-footer-brand p {
      max-width: 260px;
      margin: 0;
      color: #b9ced9;
      font-size: 0.9rem;
      line-height: 1.55;
    }

    .app-footer-links {
      display: grid;
      align-content: start;
      gap: 9px;
    }

    .app-footer-links a {
      color: #d8e8ef;
      font-family: "Montserrat", var(--body-font);
      font-size: 0.82rem;
      font-weight: 650;
      text-decoration: none;
    }

    .app-footer-links a:hover {
      color: #ffffff;
      text-decoration: underline;
    }

    .app-footer-links a:focus-visible {
      outline: 3px solid rgba(216, 232, 239, 0.72);
      outline-offset: 4px;
    }

    body[data-brand-theme="atlas"] {
      --atlas-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 252, 0.96));
      --atlas-card-bg-soft: linear-gradient(180deg, rgba(249, 253, 254, 0.98), rgba(239, 248, 247, 0.96));
      --atlas-card-border: rgba(11, 143, 128, 0.16);
      --atlas-card-border-strong: rgba(11, 143, 128, 0.28);
      --atlas-card-shadow: 0 16px 36px rgba(6, 28, 54, 0.07);
      --atlas-accent-bg: linear-gradient(135deg, rgba(47, 174, 208, 0.14), rgba(104, 173, 69, 0.12));
      --theme-accent-soft: rgba(47, 174, 208, 0.1);
      color: #061c36;
    }

    body[data-brand-theme="atlas"] .topbar,
    body[data-brand-theme="atlas"] .tabs-row,
    body[data-brand-theme="atlas"] .account-state {
      background: rgba(255, 255, 255, 0.92);
      border-color: rgba(11, 143, 128, 0.14);
      box-shadow: 0 12px 30px rgba(6, 28, 54, 0.055);
    }

    body[data-brand-theme="atlas"] .nav-shell {
      grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
      gap: 18px;
      align-items: stretch;
      padding: 14px 0 16px;
    }

    body[data-brand-theme="atlas"] .nav-brand-stack {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      min-height: 100%;
    }

    body[data-brand-theme="atlas"] .brand {
      width: 100%;
      height: 100%;
      justify-content: flex-start;
      align-items: center;
      padding: 6px;
      border: 1px solid rgba(11, 143, 128, 0.14);
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.92);
      box-shadow: 0 12px 30px rgba(6, 28, 54, 0.055);
    }

    body[data-brand-theme="atlas"] .atlas-logo-lockup {
      width: 100%;
      max-width: 168px;
      max-height: 132px;
      border-radius: 12px;
      box-shadow: none;
    }

    body[data-brand-theme="atlas"] .tabs {
      gap: 10px;
      align-self: stretch;
    }

    body[data-brand-theme="atlas"] .tabs-row {
      display: grid;
      grid-template-columns: repeat(var(--tab-count), minmax(0, 1fr));
      align-items: stretch;
      gap: 10px;
      min-height: 54px;
      padding: 5px;
      border-radius: 16px;
    }

    body[data-brand-theme="atlas"] .tabs-row:last-child {
      grid-template-columns: minmax(244px, 1.28fr) repeat(4, minmax(142px, 1fr));
    }

    body[data-brand-theme="atlas"] .tab-button {
      width: 100%;
      min-height: 42px;
      height: 100%;
      border: 1px solid transparent;
      border-radius: 12px;
      padding: 0 12px;
      letter-spacing: 0.08em;
    }

    body[data-brand-theme="atlas"] .tabs-row:last-child .tab-button {
      min-height: 42px;
    }

    body[data-brand-theme="atlas"] .tabs-row:last-child .tab-button:first-child {
      letter-spacing: 0.055em;
    }

    body[data-brand-theme="atlas"] .tab-panel,
    body[data-brand-theme="atlas"] .dash,
    body[data-brand-theme="atlas"] .card,
    body[data-brand-theme="atlas"] .chart-card,
    body[data-brand-theme="atlas"] .table-wrap,
    body[data-brand-theme="atlas"] .form-card,
    body[data-brand-theme="atlas"] .profile-panel,
    body[data-brand-theme="atlas"] .category-shell,
    body[data-brand-theme="atlas"] .review-card,
    body[data-brand-theme="atlas"] .question,
    body[data-brand-theme="atlas"] .report-card,
    body[data-brand-theme="atlas"] .option-card,
    body[data-brand-theme="atlas"] .public-directory-toolbar,
    body[data-brand-theme="atlas"] .atlas-section-shell,
    body[data-brand-theme="atlas"] .assessment-step-band,
    body[data-brand-theme="atlas"] .management-report-card,
    body[data-brand-theme="atlas"] .compact-report-card {
      border-color: var(--atlas-card-border);
      background: var(--theme-shell-overlay), var(--atlas-card-bg);
      color: #061c36;
      box-shadow: var(--atlas-card-shadow);
    }

    body[data-brand-theme="atlas"] .dash:hover,
    body[data-brand-theme="atlas"] .card:hover,
    body[data-brand-theme="atlas"] .chart-card:hover,
    body[data-brand-theme="atlas"] .form-card:hover,
    body[data-brand-theme="atlas"] .profile-panel:hover,
    body[data-brand-theme="atlas"] .category-shell:hover,
    body[data-brand-theme="atlas"] .review-card:hover,
    body[data-brand-theme="atlas"] .question:hover,
    body[data-brand-theme="atlas"] .report-card:hover,
    body[data-brand-theme="atlas"] .option-card:hover {
      border-color: var(--atlas-card-border-strong);
      box-shadow: 0 20px 42px rgba(6, 28, 54, 0.09);
    }

    body[data-brand-theme="atlas"] h1,
    body[data-brand-theme="atlas"] h2,
    body[data-brand-theme="atlas"] h3,
    body[data-brand-theme="atlas"] h4,
    body[data-brand-theme="atlas"] strong,
    body[data-brand-theme="atlas"] .dash-top h3,
    body[data-brand-theme="atlas"] .review-doc-copy strong,
    body[data-brand-theme="atlas"] .report-card h3,
    body[data-brand-theme="atlas"] .public-directory-card strong,
    body[data-brand-theme="atlas"] .assessment-step-card strong,
    body[data-brand-theme="atlas"] .assessment-step-intro strong,
    body[data-brand-theme="atlas"] .atlas-stage-pill strong,
    body[data-brand-theme="atlas"] .atlas-quick-card strong {
      color: #061c36;
    }

    body[data-brand-theme="atlas"] .muted,
    body[data-brand-theme="atlas"] .section-head p,
    body[data-brand-theme="atlas"] .dash-top p,
    body[data-brand-theme="atlas"] .review-doc-copy p,
    body[data-brand-theme="atlas"] .report-card p,
    body[data-brand-theme="atlas"] .report-item p,
    body[data-brand-theme="atlas"] .status-text,
    body[data-brand-theme="atlas"] .public-directory-meta,
    body[data-brand-theme="atlas"] .public-directory-card p,
    body[data-brand-theme="atlas"] .public-directory-toolbar small,
    body[data-brand-theme="atlas"] .audit-value-panel > p,
    body[data-brand-theme="atlas"] .audit-value-item span,
    body[data-brand-theme="atlas"] .assessment-step-card p,
    body[data-brand-theme="atlas"] .assessment-step-intro p,
    body[data-brand-theme="atlas"] .question p,
    body[data-brand-theme="atlas"] .question-index,
    body[data-brand-theme="atlas"] .score-option-copy span,
    body[data-brand-theme="atlas"] .journey-step p,
    body[data-brand-theme="atlas"] .journey-step small,
    body[data-brand-theme="atlas"] .atlas-view-description,
    body[data-brand-theme="atlas"] .atlas-category-help,
    body[data-brand-theme="atlas"] .atlas-status-line,
    body[data-brand-theme="atlas"] .atlas-mode-card p,
    body[data-brand-theme="atlas"] .atlas-tools-card p,
    body[data-brand-theme="atlas"] .atlas-quick-card p {
      color: #506474;
    }

    body[data-brand-theme="atlas"] .eyebrow,
    body[data-brand-theme="atlas"] .field label,
    body[data-brand-theme="atlas"] .question-note-field label,
    body[data-brand-theme="atlas"] .atlas-stage-pill span,
    body[data-brand-theme="atlas"] .atlas-quick-card span {
      color: #087466;
    }

    body[data-brand-theme="atlas"] .dash-top,
    body[data-brand-theme="atlas"] .review-doc-header,
    body[data-brand-theme="atlas"] .management-report-head,
    body[data-brand-theme="atlas"] .atlas-section-head,
    body[data-brand-theme="atlas"] .question-support {
      border-color: rgba(11, 143, 128, 0.14);
    }

    body[data-brand-theme="atlas"] .tab-button {
      color: #506474;
    }

    body[data-brand-theme="atlas"] .tab-button:hover,
    body[data-brand-theme="atlas"] .tab-button.active {
      border-color: rgba(11, 143, 128, 0.26);
      background: linear-gradient(180deg, rgba(235, 248, 245, 0.98), rgba(224, 241, 245, 0.96));
      color: #061c36;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
    }

    body[data-brand-theme="atlas"] .button,
    body[data-brand-theme="atlas"] .small-button {
      border-color: rgba(11, 143, 128, 0.38);
      background: linear-gradient(180deg, #10a998, #0b8f80);
      color: #ffffff;
      box-shadow: 0 10px 22px rgba(11, 143, 128, 0.18);
    }

    body[data-brand-theme="atlas"] .button:hover,
    body[data-brand-theme="atlas"] .small-button:hover {
      box-shadow: 0 14px 28px rgba(11, 143, 128, 0.22);
    }

    body[data-brand-theme="atlas"] .button-ghost,
    body[data-brand-theme="atlas"] .danger-button {
      background: rgba(255, 255, 255, 0.88);
      border-color: rgba(11, 143, 128, 0.18);
      color: #061c36;
      box-shadow: none;
    }

    body[data-brand-theme="atlas"] .field input,
    body[data-brand-theme="atlas"] .field select,
    body[data-brand-theme="atlas"] .field textarea,
    body[data-brand-theme="atlas"] .route-score-select,
    body[data-brand-theme="atlas"] .question-note-field textarea {
      background: #ffffff;
      border-color: rgba(6, 28, 54, 0.14);
      color: #061c36;
    }

    body[data-brand-theme="atlas"] .field input::placeholder,
    body[data-brand-theme="atlas"] .field textarea::placeholder,
    body[data-brand-theme="atlas"] .question-note-field textarea::placeholder {
      color: rgba(80, 100, 116, 0.72);
    }

    body[data-brand-theme="atlas"] .field input:focus,
    body[data-brand-theme="atlas"] .field select:focus,
    body[data-brand-theme="atlas"] .field textarea:focus,
    body[data-brand-theme="atlas"] .route-score-select:focus {
      border-color: rgba(11, 143, 128, 0.42);
      box-shadow: 0 0 0 3px rgba(47, 174, 208, 0.18);
    }

    body[data-brand-theme="atlas"] .field input[readonly] {
      background: linear-gradient(135deg, rgba(226, 247, 248, 0.9), rgba(247, 255, 248, 0.96));
      border-color: rgba(11, 143, 128, 0.24);
      color: #061c36;
      cursor: not-allowed;
    }

    body[data-brand-theme="atlas"] .notice,
    body[data-brand-theme="atlas"] .mini-note,
    body[data-brand-theme="atlas"] .selected-company,
    body[data-brand-theme="atlas"] .class-panel,
    body[data-brand-theme="atlas"] .review-doc,
    body[data-brand-theme="atlas"] .review-doc-slot,
    body[data-brand-theme="atlas"] .choice-chip,
    body[data-brand-theme="atlas"] .route-score-row,
    body[data-brand-theme="atlas"] .account-state,
    body[data-brand-theme="atlas"] .atlas-stage-pill,
    body[data-brand-theme="atlas"] .atlas-mode-card,
    body[data-brand-theme="atlas"] .audit-value-panel,
    body[data-brand-theme="atlas"] .audit-value-item,
    body[data-brand-theme="atlas"] .report-item,
    body[data-brand-theme="atlas"] .public-directory-card,
    body[data-brand-theme="atlas"] .public-directory-suggestion {
      border-color: rgba(11, 143, 128, 0.16);
      background: var(--atlas-card-bg-soft);
      color: #061c36;
    }

    body[data-brand-theme="atlas"] .warning {
      border-color: rgba(192, 132, 48, 0.26);
      border-left-color: #c08430;
      background: rgba(255, 247, 232, 0.94);
    }

    body[data-brand-theme="atlas"] .success,
    body[data-brand-theme="atlas"] .journey-step.complete {
      border-color: rgba(24, 129, 95, 0.24);
      background: rgba(232, 248, 241, 0.94);
    }

    body[data-brand-theme="atlas"] .metric,
    body[data-brand-theme="atlas"] .dashboard-chip,
    body[data-brand-theme="atlas"] .category-button,
    body[data-brand-theme="atlas"] .score-options label,
    body[data-brand-theme="atlas"] .journey-step,
    body[data-brand-theme="atlas"] .question-rating-guide span {
      border-color: rgba(11, 143, 128, 0.16);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 252, 0.92));
      color: #061c36;
    }

    body[data-brand-theme="atlas"] .dashboard-chip:hover,
    body[data-brand-theme="atlas"] .dashboard-chip.active,
    body[data-brand-theme="atlas"] .category-button:hover,
    body[data-brand-theme="atlas"] .category-button.active,
    body[data-brand-theme="atlas"] .score-options label:hover,
    body[data-brand-theme="atlas"] .score-options label.selected,
    body[data-brand-theme="atlas"] .choice-chip.active,
    body[data-brand-theme="atlas"] .journey-step.current {
      border-color: rgba(11, 143, 128, 0.34);
      background: var(--atlas-accent-bg);
      color: #061c36;
      box-shadow: 0 10px 24px rgba(6, 28, 54, 0.06);
    }

    body[data-brand-theme="atlas"] .metric[data-progress-state="complete"],
    body[data-brand-theme="atlas"] .chart-card[data-progress-state="complete"] {
      border-color: rgba(24, 129, 95, 0.28);
      background: linear-gradient(180deg, rgba(235, 249, 240, 0.98), rgba(244, 252, 248, 0.96));
    }

    body[data-brand-theme="atlas"] .metric[data-progress-state="current"],
    body[data-brand-theme="atlas"] .chart-card[data-progress-state="current"] {
      border-color: rgba(47, 174, 208, 0.3);
      background: linear-gradient(180deg, rgba(234, 248, 252, 0.98), rgba(242, 250, 250, 0.96));
    }

    body[data-brand-theme="atlas"] .badge,
    body[data-brand-theme="atlas"] .band-pill,
    body[data-brand-theme="atlas"] .journey-state {
      border-color: rgba(11, 143, 128, 0.2);
      background: rgba(235, 248, 245, 0.94);
      color: #087466;
    }

    body[data-brand-theme="atlas"] .category-num,
    body[data-brand-theme="atlas"] .journey-step.complete .journey-node,
    body[data-brand-theme="atlas"] .journey-step.current .journey-node {
      background: linear-gradient(180deg, #10a998, #087466);
      color: #ffffff;
      box-shadow: 0 8px 18px rgba(11, 143, 128, 0.2);
    }

    body[data-brand-theme="atlas"] .score-ring {
      background:
        radial-gradient(circle at center, #ffffff 56%, transparent 57%),
        conic-gradient(#0b8f80 var(--score-deg, 266deg), rgba(6, 28, 54, 0.1) 0);
      box-shadow: inset 0 0 0 1px rgba(11, 143, 128, 0.14), 0 14px 28px rgba(6, 28, 54, 0.08);
    }

    body[data-brand-theme="atlas"] .track,
    body[data-brand-theme="atlas"] .progress-track {
      background: rgba(6, 28, 54, 0.08);
    }

    body[data-brand-theme="atlas"] .track span,
    body[data-brand-theme="atlas"] .progress-fill {
      background: linear-gradient(90deg, #2faed0, #0b8f80, #68ad45);
    }

    body[data-brand-theme="atlas"] table:not(.certificate-table) th {
      background: linear-gradient(90deg, rgba(235, 248, 245, 1), rgba(232, 247, 251, 1));
      color: #06456a;
      border-bottom-color: rgba(11, 143, 128, 0.18);
    }

    body[data-brand-theme="atlas"] table:not(.certificate-table) td {
      color: #061c36;
      background: rgba(255, 255, 255, 0.86);
      border-bottom-color: rgba(6, 28, 54, 0.08);
    }

    body[data-brand-theme="atlas"] .pricing-table td:last-child {
      color: #087466;
    }

    table.pricing-table:not(.certificate-table) {
      min-width: 0 !important;
      width: 100% !important;
      table-layout: fixed !important;
      border-collapse: collapse !important;
      border-spacing: 0 !important;
    }

    table.pricing-table:not(.certificate-table) th,
    table.pricing-table:not(.certificate-table) td {
      padding: 13px 0 !important;
      overflow-wrap: anywhere;
      word-break: normal;
    }

    table.pricing-table:not(.certificate-table) th:first-child,
    table.pricing-table:not(.certificate-table) td:first-child {
      width: 58%;
      padding-right: 12px !important;
      box-shadow: none !important;
    }

    table.pricing-table:not(.certificate-table) th:last-child,
    table.pricing-table:not(.certificate-table) td:last-child {
      width: 42%;
      padding-left: 12px !important;
      white-space: normal;
    }

    body[data-brand-theme="atlas"] table:not(.certificate-table) tbody tr:nth-child(even) td {
      background: rgba(242, 249, 250, 0.86);
    }

    body[data-brand-theme="atlas"] table:not(.certificate-table) tbody tr:hover td {
      background: rgba(232, 247, 246, 0.96);
    }

    body[data-brand-theme="atlas"] .public-directory-card:hover,
    body[data-brand-theme="atlas"] .public-directory-card.active,
    body[data-brand-theme="atlas"] .public-directory-suggestion:hover {
      border-color: rgba(11, 143, 128, 0.34);
      background: var(--atlas-accent-bg);
      box-shadow: 0 14px 28px rgba(6, 28, 54, 0.08);
    }

    .public-directory-card-action.secondary,
    body[data-brand-theme="atlas"] .public-directory-card-action.secondary {
      border-color: rgba(11, 143, 128, 0.22);
      background: rgba(255, 255, 255, 0.86);
      color: #061c36;
      box-shadow: none;
    }

    .public-directory-card-action.secondary:hover,
    body[data-brand-theme="atlas"] .public-directory-card-action.secondary:hover {
      border-color: rgba(11, 143, 128, 0.34);
      background: rgba(255, 255, 255, 0.96);
    }

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

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

    @media (max-width: 1180px) {
      .nav-shell {
        grid-template-columns: 1fr;
        gap: 22px;
      }

      .nav-brand-stack {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
      }

      .nav-brand-stack,
      .tabs {
        justify-self: stretch;
      }

      .tabs-row,
      .nav-actions {
        justify-content: flex-start;
      }

      .nav-actions {
        width: min(100%, 260px);
      }
    }

    @media (max-width: 1080px) {
      .hero,
      .pricing-hero,
      .pricing-grid,
      .section-head,
      .grid-2,
      .assessment-body,
      .assessment-layout,
      .journey-layout,
      .certificate-body,
      .atlas-workspace,
      .atlas-work-grid,
      .atlas-stage-banner,
      .atlas-quick-strip,
      .atlas-view-switch-inline {
        grid-template-columns: 1fr;
      }

      .assessment-side,
      .atlas-rail {
        position: static;
      }

      .hero {
        min-height: auto;
        padding: 34px;
      }

      .atlas-summary-card .dash-body {
        grid-template-columns: 1fr;
      }

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

      .pricing-note-grid {
        grid-template-columns: 1fr;
      }

      .tabs {
        gap: 10px;
      }

      .tabs-row {
        grid-template-columns: repeat(var(--tab-count, 4), minmax(170px, 1fr));
        overflow-x: auto;
        padding: 6px;
        scrollbar-width: thin;
      }

      .tab-button {
        flex: none;
      }

      .workflow-grid {
        gap: 14px;
      }

      .assessment-step-band .assessment-step-flow {
        grid-auto-flow: column;
        grid-auto-columns: minmax(240px, 1fr);
        grid-template-columns: none;
        overflow-x: auto;
        padding-bottom: 2px;
      }
    }

    @media (max-width: 720px) {
      .nav-shell,
      main,
      .footer {
        width: min(100% - 20px, var(--max));
      }

      .app-footer-shell {
        width: min(100% - 28px, var(--max));
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 32px 0;
      }

      .nav-brand-stack {
        grid-template-columns: 1fr;
      }

      .nav-actions {
        width: 100%;
      }

      .panel-pad,
      .hero {
        padding: 22px;
      }

      .tabs {
        gap: 12px;
      }

      .tabs-row {
        gap: 8px;
        grid-template-columns: repeat(var(--tab-count, 4), minmax(180px, 1fr));
      }

      .theme-toggle {
        width: 100%;
        justify-content: flex-start;
      }

      .hero-kpis,
      .signal-grid,
      .grid-3,
      .audit-value-grid,
      .pricing-note-grid,
      .business-class-definitions,
      .classification-layout,
      .classification-factor-grid,
      .certificate-variant-grid,
      .certificate-template-head,
      .certificate-template-summary,
      .certificate-template-details,
      .certificate-template-analytics,
      .certificate-template-footer,
      .signature-badge-layout,
      .publish-benefit-grid,
      .choice-grid,
      .insight-grid,
      .journey-track,
      .certificate-meta-grid,
      .certificate-footer,
      .metric-row,
      .filters,
      .form-grid,
      .profile-summary-grid,
      .rating-guide,
      .question-rating-guide,
      .quote-form-grid,
      .score-options {
        grid-template-columns: 1fr;
      }

      .certificate-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin-top: 8px;
        padding-top: 8px;
      }

      .certificate-signoff {
        gap: 3px;
      }

      .certificate-disclaimer {
        margin-top: 8px;
        padding-top: 8px;
      }

      .certificate-template-v2 {
        padding: 22px 18px;
      }

      .certificate-template-v2 .certificate-template-brand {
        align-items: flex-start;
      }

      .certificate-template-v2 .certificate-template-brand .certificate-logo-lockup {
        width: 104px;
        height: 104px;
        flex-basis: 104px;
      }

      .certificate-template-reference {
        justify-items: start;
        text-align: left;
      }

      .certificate-template-route {
        grid-template-columns: 1fr;
      }

      .certificate-template-route > div {
        border-left: 0;
      }

      .certificate-template-route > div:nth-child(2) {
        border-top: 1px solid var(--theme-cert-table-rule);
      }

      .review-card-head,
      .review-doc-header,
      .dash-top,
      .certificate-head {
        flex-direction: column;
        align-items: flex-start;
      }

      .review-doc-meta {
        justify-content: flex-start;
      }

      .route-score-row,
      .route-question-row {
        grid-template-columns: 1fr;
      }

      .certificate-company-spotlight {
        grid-template-columns: 1fr;
        gap: 14px;
      }

      .certificate-route-banner {
        grid-template-columns: 1fr;
      }

      .certificate-sheet[data-certificate-variant="audit"] .certificate-route-banner {
        gap: 0;
      }

      .certificate-sheet[data-certificate-variant="audit"] .certificate-route-block {
        border-right: 0;
        border-bottom: 1px solid rgba(109, 82, 23, 0.16);
      }

      .certificate-sheet[data-certificate-variant="audit"] .certificate-route-block:last-child {
        border-bottom: 0;
      }

       .certificate-sheet {
        padding: 22px 18px;
        min-height: auto;
        border-radius: 20px;
      }

      .certificate-sheet::before {
        inset: 10px;
        border-radius: 14px;
      }

      .certificate-status {
        justify-items: start;
        text-align: left;
      }

      .certificate-score-panel {
        grid-template-columns: 1fr;
      }

      h1 {
        font-size: 34px;
      }

      h2 {
        font-size: 28px;
      }

      .lead {
        font-size: 16px;
        line-height: 1.66;
      }

      .bar-row {
        grid-template-columns: 1fr;
      }

      .workflow-grid {
        grid-auto-flow: column;
        grid-auto-columns: minmax(240px, 82vw);
        grid-template-columns: none;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
      }

      .atlas-category-switch,
      .atlas-category-metrics,
      .atlas-quad-metrics {
        grid-template-columns: 1fr;
      }

      .atlas-section-head {
        flex-direction: column;
      }

      .management-report-head {
        flex-direction: column;
      }

      .management-report-actions {
        justify-items: start;
      }

      .report-mode-switch {
        justify-content: flex-start;
      }

      .compact-report-grid {
        grid-template-columns: 1fr;
      }

      .report-table {
        border-radius: 12px;
      }

      .report-table-row,
      .report-table-row.report-table-head {
        grid-template-columns: 1fr;
        gap: 5px;
      }

      .report-table-row.report-table-head {
        display: none;
      }

      table:not(.certificate-table) {
        min-width: 640px;
      }
    }

    @media (max-width: 1080px) {
      body[data-brand-theme="atlas"] .nav-shell {
        grid-template-columns: 1fr;
        gap: 12px;
      }

      body[data-brand-theme="atlas"] .nav-brand-stack {
        min-height: 0;
      }

      body[data-brand-theme="atlas"] .brand {
        width: min(180px, 100%);
        height: auto;
      }

      body[data-brand-theme="atlas"] .tabs-row,
      body[data-brand-theme="atlas"] .tabs-row:last-child {
        grid-template-columns: repeat(var(--tab-count, 5), minmax(168px, 1fr));
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
      }
    }

    @media (max-width: 720px) {
      body[data-brand-theme="atlas"] .nav-shell {
        width: min(100% - 12px, var(--max));
        padding: 10px 0 12px;
      }

      body[data-brand-theme="atlas"] .brand {
        width: 132px;
        padding: 4px;
      }

      body[data-brand-theme="atlas"] .atlas-logo-lockup {
        max-width: 118px;
        max-height: 92px;
      }

      body[data-brand-theme="atlas"] .tabs {
        gap: 8px;
      }

      body[data-brand-theme="atlas"] .tabs-row,
      body[data-brand-theme="atlas"] .tabs-row:last-child {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-height: 48px;
        gap: 8px;
        padding: 4px;
        overflow: visible;
        scrollbar-width: auto;
      }

      body[data-brand-theme="atlas"] .tab-button {
        min-height: 38px;
        padding: 0 10px;
        font-size: 10px;
        white-space: normal;
      }

      .value-strip .signal-grid,
      body[data-brand-theme="atlas"] .value-strip .signal-grid {
        display: grid;
        grid-template-columns: 1fr;
        overflow: visible;
        gap: 10px;
        padding-bottom: 0;
      }

      .value-strip .signal-item,
      body[data-brand-theme="atlas"] .value-strip .signal-item {
        min-width: 0;
        width: 100%;
        flex: initial;
      }

      .workflow-grid,
      .workflow-card .workflow-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        grid-auto-columns: auto;
        overflow: visible;
      }

      .classification-apply-card {
        min-width: 0;
        padding: 14px;
      }

      .classification-apply-card p,
      .classification-apply-card .action-row {
        max-width: 100%;
        min-width: 0;
      }

      .classification-apply-card .button {
        width: 100%;
        min-width: 0;
        justify-self: stretch;
        white-space: normal;
        line-height: 1.3;
        padding-inline: 14px;
      }

      .question-note-field textarea {
        min-height: 104px;
      }
    }

    @page {
      size: A4 portrait;
      margin: 5mm;
    }

    @media print {
      html,
      body {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff;
        color: #171a20;
      }

      .topbar,
      .app-footer,
      .section-head,
      .certificate-actions,
      #certificateLocked {
        display: none !important;
      }

      .tab-panel {
        display: none !important;
      }

      #tab-certificate {
        display: block !important;
        padding: 0 !important;
      }

      #tab-certificate .panel-pad {
        padding: 0 !important;
      }

      .certificate-sheet {
        width: 198mm;
        max-width: none;
        min-height: 0;
        height: auto;
        aspect-ratio: 210 / 297;
        padding: 10mm 10mm 8mm;
        border-radius: 0;
        box-shadow: none;
        margin: 0 auto;
        page-break-inside: avoid;
        break-inside: avoid-page;
      }

      .certificate-sheet::before {
        inset: 4mm;
        border-radius: 0;
      }

      .certificate-head,
      .certificate-sheet[data-certificate-variant="review"] .certificate-head,
      .certificate-sheet[data-certificate-variant="audit"] .certificate-head {
        padding-bottom: 8px;
      }

      .certificate-route-banner,
      .certificate-sheet[data-certificate-variant="review"] .certificate-route-banner,
      .certificate-sheet[data-certificate-variant="audit"] .certificate-route-banner {
        gap: 8px;
        margin-top: 10px;
      }

      .certificate-company-spotlight {
        margin-top: 10px;
        padding: 12px 14px;
      }

      .certificate-body {
        gap: 8px 10px;
        margin-top: 10px;
      }

      .certificate-footer {
        margin-top: 10px;
        padding-top: 10px;
      }

      .certificate-disclaimer {
        margin-top: 10px;
        padding-top: 10px;
      }

      .certificate-title {
        font-size: clamp(28px, 3vw, 44px);
      }

      .certificate-company-name {
        font-size: clamp(22px, 3.2vw, 42px);
      }

      .certificate-lead,
      .certificate-signoff small,
      .certificate-disclaimer p,
      .certificate-route-block strong,
      .certificate-route-block span,
      .certificate-company-subtitle {
        font-size: 10.5px;
        line-height: 1.38;
      }

      .certificate-template-v2 {
        width: 200mm;
        height: 287mm;
        max-width: none;
        aspect-ratio: auto;
        padding: 4.2mm;
        gap: 2.2mm;
        border-radius: 2.8mm;
        box-shadow: none;
      }

      .certificate-template-v2 .certificate-template-head {
        grid-template-columns: 45mm minmax(0, 1fr) 45mm;
        gap: 4mm;
        min-height: 43mm;
        padding: 5mm 5.2mm;
        border-radius: 2.6mm;
      }

      .certificate-template-v2 .certificate-template-brand {
        gap: 4mm;
      }

      .certificate-template-v2 .certificate-template-brand .certificate-logo-lockup {
        width: 33mm;
        height: 33mm;
        flex: 0 0 33mm;
        padding: 1.4mm;
        border-radius: 2mm;
      }

      .certificate-template-v2 .certificate-title {
        font-size: 26pt;
      }

      .certificate-template-v2 .certificate-subtitle {
        font-size: 9pt;
      }

      .certificate-template-v2 .certificate-template-summary {
        grid-template-columns: 29mm minmax(0, 1fr) 57mm;
        gap: 3mm;
      }

      .certificate-template-v2 .certificate-template-details {
        gap: 2.4mm;
      }

      .certificate-template-v2 .certificate-template-status h3 {
        font-size: 18pt;
      }

      .certificate-template-v2 .certificate-template-analytics .certificate-canvas-card {
        padding: 2.6mm 3.5mm 2.2mm;
      }

      .certificate-template-v2 .certificate-template-analytics .certificate-radar-shell {
        min-height: 0;
        margin-top: 0;
      }

      .certificate-template-v2 .certificate-template-analytics .certificate-radar {
        width: 123mm;
        height: 68mm;
      }

      .certificate-template-v2 .certificate-template-footer {
        gap: 2.5mm;
      }

      .certificate-template-v2 .certificate-disclaimer {
        padding: 2.4mm 3mm;
      }
    }
  
    /* Phase 14: keep application navigation compact and visually aligned with the marketing shell. */
    body[data-brand-theme="atlas"] .topbar {
      border-bottom-color: rgba(16, 42, 67, 0.1);
      background: rgba(255, 255, 255, 0.95);
      box-shadow: none;
      backdrop-filter: blur(14px);
    }

    body[data-brand-theme="atlas"] .nav-shell {
      grid-template-columns: auto minmax(0, 1fr);
      min-height: 64px;
      gap: 20px;
      align-items: center;
      padding: 8px 0;
    }

    body[data-brand-theme="atlas"] .nav-brand-stack {
      min-height: 0;
    }

    body[data-brand-theme="atlas"] .brand {
      width: auto;
      height: auto;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    body[data-brand-theme="atlas"] .atlas-logo-lockup {
      width: 118px;
      max-width: none;
      max-height: none;
      border-radius: 10px;
      background: transparent;
      box-shadow: none;
    }

    body[data-brand-theme="atlas"] .tabs {
      gap: 0;
      align-self: center;
    }

    body[data-brand-theme="atlas"] .tabs-row,
    body[data-brand-theme="atlas"] .tabs-row:last-child {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 4px;
      min-height: 0;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      overflow: visible;
    }

    body[data-brand-theme="atlas"] .tab-button {
      width: auto;
      min-height: 44px;
      height: auto;
      padding: 8px 11px;
      border: 1px solid transparent;
      border-radius: 999px;
      background: transparent;
      color: #52697e;
      font-family: "Montserrat", "Segoe UI", sans-serif;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.015em;
      text-transform: none;
      white-space: nowrap;
    }

    body[data-brand-theme="atlas"] .tab-button:hover {
      border-color: rgba(8, 127, 120, 0.22);
      background: rgba(230, 245, 242, 0.72);
      color: #073b5c;
    }

    body[data-brand-theme="atlas"] .tab-button.active {
      border-color: rgba(8, 127, 120, 0.32);
      border-radius: 999px;
      background: linear-gradient(180deg, #e6f5f2, #dff3f0);
      color: #073b5c;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
    }

    @media (max-width: 1080px) {
      body[data-brand-theme="atlas"] .nav-shell {
        grid-template-columns: 1fr;
        gap: 8px;
      }

      body[data-brand-theme="atlas"] .tabs-row,
      body[data-brand-theme="atlas"] .tabs-row:last-child {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
      }

      body[data-brand-theme="atlas"] .tab-button {
        flex: 0 0 auto;
        scroll-snap-align: start;
      }
    }

    @media (max-width: 720px) {
      body[data-brand-theme="atlas"] .nav-shell {
        width: min(100% - 28px, var(--max));
        padding: 10px 0;
      }

      body[data-brand-theme="atlas"] .brand {
        width: auto;
      }

      body[data-brand-theme="atlas"] .atlas-logo-lockup {
        width: 102px;
      }

      body[data-brand-theme="atlas"] .tab-button {
        min-height: 44px;
        padding: 8px 10px;
        font-size: 0.72rem;
      }

      .table-wrap {
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
      }

      .tab-panel,
      .panel-pad,
      .field,
      .status-text,
      .muted {
        min-width: 0;
        overflow-wrap: anywhere;
      }

      input,
      select,
      textarea {
        font-size: 16px;
      }
    }
