@import url("https://fonts.googleapis.com/css2?family=Google+Sans+Code:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Rubik:wght@400;500;600;700&display=swap");

:root {
    --font-display:"Plus Jakarta Sans","Aptos Display","Segoe UI",Arial,sans-serif;
    --font-body:"Rubik",Aptos,"Segoe UI",Arial,sans-serif;
    --font-code:"Google Sans Code","Cascadia Code",Consolas,monospace;
    --type-micro:.6875rem;
    --type-label:.75rem;
    --type-ui-sm:.8125rem;
    --ui-action-text:.8rem;

    --ink-900:#060606; --ink-800:#080808; --ink-700:#0b0b0b; --ink-600:#0e0e0e; --ink-500:#0f0f0f; --ink-400:#272727; --ink-300:#3f3f3f; --ink-200:#575757; --ink-100:#6f6f6f;
    --pos-900:#0c341d; --pos-800:#145730; --pos-700:#1b7a43; --pos-600:#239d56; --pos-500:#27ae60; --pos-400:#3db670; --pos-300:#68c690; --pos-200:#93d7b0; --pos-100:#bee7cf;
    --pre-900:#1a003c; --pre-800:#2c0065; --pre-700:#3e008d; --pre-600:#4f00b5; --pre-500:#5800c9; --pre-400:#691ace; --pre-300:#8a4dd9; --pre-200:#ac80e4; --pre-100:#cdb3ef;
    --tre-900:#341139; --tre-800:#571c60; --tre-700:#7a2786; --tre-600:#9d32ac; --tre-500:#ae38bf; --tre-400:#b64cc5; --tre-300:#c674d2; --tre-200:#d79cdf; --tre-100:#e7c3ec;
    --ua-900:#493c17; --ua-800:#796526; --ua-700:#a98d35; --ua-600:#dab544; --ua-500:#f2c94c; --ua-400:#f3ce5e; --ua-300:#f6d982; --ua-200:#f9e4a6; --ua-100:#fbefc9;
    --ext-900:#0a1931; --ext-800:#112b52; --ext-700:#173b72; --ext-600:#1e4d93; --ext-500:#2155a3; --ext-400:#3766ac; --ext-300:#6488bf; --ext-200:#90aad1; --ext-100:#bccce3;
    --rose-900:#46091e; --rose-800:#750f32; --rose-700:#a31545; --rose-600:#d21b59; --rose-500:#e91e63; --rose-400:#eb3573; --rose-300:#f06292; --rose-200:#f48fb1; --rose-100:#f8bcd0;
    --orange-900:#492e16; --orange-800:#794d25; --orange-700:#a96b34; --orange-600:#da8a43; --orange-500:#f2994a; --orange-400:#f3a35c; --orange-300:#f6b880; --orange-200:#f9cca5; --orange-100:#fbe0c9;
    --slate-900:#141414; --slate-800:#171717; --slate-700:#1a1a1a; --slate-600:#1e1e1e; --slate-500:#212121; --slate-400:#373737; --slate-300:#4d4d4d; --slate-200:#646464; --slate-100:#7a7a7a;
    --ua-white-00:#f5f5f5;

    --canvas:#f3f2f4;
    --surface:#ffffff;
    --surface-2:#ebe9ed;
    --surface-3:#e3e0e6;
    --text:#101013;
    --muted:#65626b;
    --muted-2:#817e87;
    --line:rgba(15,15,15,.12);
    --line-strong:rgba(15,15,15,.22);
    --sidebar:#08080a;
    --sidebar-text:#f5f5f5;
    --sidebar-muted:#929098;
    --shadow:0 24px 70px rgba(18,11,27,.09);
    --shadow-float:0 24px 70px rgba(0,0,0,.2);
    --sticky-surface:rgba(243,242,244,.9);
    --sticky-surface-solid:#f3f2f4;
    --sticky-blur:20px;
    --shadow-sticky:0 8px 28px rgba(18,11,27,.06);
    --shadow-soft:0 10px 30px rgba(21,12,34,.06);
    --shadow-card:var(--shadow);
    --shadow-modal:0 30px 100px rgba(0,0,0,.4);
    --surface-1:var(--surface);
    --border-strong:var(--line-strong);
    --ui-canvas:var(--canvas);
    --ui-surface-1:var(--surface);
    --ui-surface-2:var(--surface-2);
    --ui-surface-3:var(--surface-3);
    --ui-muted-2:var(--muted-2);
    --ui-border-strong:var(--line-strong);
    --ui-shadow-soft:var(--shadow-soft);
    --ui-shadow-card:var(--shadow-card);
    --ui-shadow-sticky:var(--shadow-sticky);
    --ui-shadow-float:var(--shadow-float);
    --ui-shadow-modal:var(--shadow-modal);
    --ui-sticky-surface:var(--sticky-surface);
    --ui-sticky-blur:var(--sticky-blur);
    --data-accent:var(--ua-700);
    --data-accent-line:var(--ua-700);
    --data-accent-soft:rgba(242,201,76,.18);
    --ui-fast:180ms cubic-bezier(.2,.8,.2,1);
    --ui-med:320ms cubic-bezier(.2,.75,.2,1);
    --ui-reveal:520ms cubic-bezier(.16,1,.3,1);
}

html[data-theme="dark"] {
    --canvas:#09090b;
    --surface:#141417;
    --surface-2:#1b1b20;
    --surface-3:#24242a;
    --text:#f5f4f7;
    --muted:#aaa7b0;
    --muted-2:#7d7a84;
    --line:rgba(255,255,255,.105);
    --line-strong:rgba(255,255,255,.2);
    --sidebar:#050506;
    --shadow:0 24px 80px rgba(0,0,0,.34);
    --sticky-surface:rgba(9,9,11,.9);
    --sticky-surface-solid:#09090b;
    --shadow-sticky:0 8px 30px rgba(0,0,0,.18);
    --data-accent:var(--ua-500);
    --data-accent-line:var(--ua-300);
    color-scheme:dark;
}

html[data-accent="pre"] { --data-accent:var(--pre-600); --data-accent-line:var(--pre-500); --data-accent-soft:rgba(88,0,201,.14); }
html[data-accent="pos"] { --data-accent:var(--pos-700); --data-accent-line:var(--pos-600); --data-accent-soft:rgba(39,174,96,.14); }
html[data-accent="tre"] { --data-accent:var(--tre-700); --data-accent-line:var(--tre-600); --data-accent-soft:rgba(174,56,191,.14); }
html[data-theme="dark"][data-accent="pre"] { --data-accent:var(--pre-400); --data-accent-line:var(--pre-300); }
html[data-theme="dark"][data-accent="pos"] { --data-accent:var(--pos-400); --data-accent-line:var(--pos-300); }
html[data-theme="dark"][data-accent="tre"] { --data-accent:var(--tre-400); --data-accent-line:var(--tre-300); }

* { box-sizing:border-box; }
html { min-width:320px; scroll-behavior:smooth; background:var(--canvas); }
body { min-width:320px; margin:0; overflow-x:hidden; background:var(--canvas); color:var(--text); font-family:var(--font-body); text-rendering:optimizeLegibility; }
body.has-overlay { overflow:hidden; }
button,input,select { font:inherit; }
button { color:inherit; }
button:disabled,select:disabled { cursor:not-allowed; opacity:.55; }
[hidden] { display:none !important; }
.icon-sprite { position:absolute; width:0; height:0; overflow:hidden; }
.icon { width:20px; height:20px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; }
.sr-only,.sr-live { position:fixed; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); border:0; white-space:nowrap; }
.skip-link { position:fixed; z-index:300; top:-5rem; left:1rem; padding:.8rem 1rem; border-radius:12px; background:var(--ua-500); color:#080808; font-weight:700; transition:top var(--ui-fast); }
.skip-link:focus { top:1rem; }
:focus-visible { outline:3px solid var(--ua-500); outline-offset:3px; }

.app-shell { min-height:100vh; background:var(--canvas); }
.sidebar { position:fixed; z-index:80; inset:0 auto 0 0; display:flex; width:256px; padding:22px 16px 16px; flex-direction:column; border-right:1px solid rgba(255,255,255,.07); background:var(--sidebar); color:var(--sidebar-text); transition:width var(--ui-fast),padding var(--ui-fast); }
.brand-lockup { display:flex; min-height:54px; margin:0 3px 28px; align-items:center; gap:12px; }
.brand-mark { display:grid; width:48px; height:48px; padding:0; flex:0 0 auto; place-items:center; border:0; border-radius:12px; background:transparent; cursor:pointer; }
.brand-copy { display:flex; min-width:0; padding:0; flex-direction:column; align-items:flex-start; border:0; background:transparent; cursor:pointer; }
.brand-copy strong { font-family:var(--font-display); font-size:20px; letter-spacing:-.045em; }
.brand-copy small { margin-top:2px; color:var(--sidebar-muted); font-size:var(--type-label); letter-spacing:.015em; white-space:nowrap; }
.mobile-close { display:none !important; margin-left:auto; }
.sidebar nav { display:flex; min-height:0; flex:1; flex-direction:column; overflow-y:auto; scrollbar-width:thin; }
.nav-label { margin:0 10px 8px; color:#6f6d74; font-family:var(--font-code); font-size:var(--type-label); font-weight:700; letter-spacing:.14em; text-transform:uppercase; }
.nav-label.nav-space { margin-top:25px; }
.nav-item { position:relative; display:flex; width:100%; min-height:43px; padding:0 11px; align-items:center; gap:12px; border:0; border-radius:12px; background:transparent; color:#aaa8af; cursor:pointer; text-align:left; text-decoration:none; transition:color var(--ui-fast),background var(--ui-fast),transform var(--ui-fast); }
.nav-item:hover { background:rgba(255,255,255,.055); color:#fff; }
.nav-item.is-active { background:linear-gradient(90deg,rgba(242,201,76,.17),rgba(242,201,76,.045)); color:var(--ua-300); }
.nav-item.is-active::before { content:""; position:absolute; left:0; width:3px; height:20px; border-radius:0 3px 3px 0; background:var(--ua-500); }
.nav-item > span:not(.nav-count):not(.route-dot) { min-width:0; flex:1; font-size:13px; }
.nav-count { min-width:22px; padding:3px 6px; border-radius:99px; background:rgba(255,255,255,.08); color:#8b8990; font-family:var(--font-code); font-size:var(--type-label); text-align:center; }
.route-dot { width:8px; height:8px; margin-left:6px; border-radius:50%; box-shadow:0 0 0 4px rgba(255,255,255,.03); }
.route-pre .route-dot { background:var(--pre-300); }
.route-pos .route-dot { background:var(--pos-300); }
.route-tre .route-dot { background:var(--tre-300); }
.nav-dashboard-group { position:relative; padding:0 0 5px; }
.nav-dashboard-group + .nav-dashboard-group { margin-top:9px; }
.nav-group-label { display:flex; min-height:28px; margin:0 10px 4px; align-items:center; gap:9px; color:var(--sidebar-muted); }
.nav-group-label .route-dot { width:7px; height:7px; margin-left:0; flex:0 0 auto; }
.nav-group-label > span:last-child { font-family:var(--font-code); font-size:var(--type-label); font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.nav-child { min-height:40px; padding-left:27px; }
.nav-child .icon { width:18px; height:18px; }
.nav-item.nav-child.route-pre.is-active { background:linear-gradient(90deg,rgba(88,0,201,.22),rgba(88,0,201,.055)); color:var(--pre-200); }
.nav-item.nav-child.route-pre.is-active::before { background:var(--pre-400); }
.nav-empty { display:flex; min-height:32px; margin:0 10px; padding-left:17px; align-items:center; gap:9px; color:#69676e; }
.nav-empty > span:first-child { font-family:var(--font-code); font-size:var(--type-ui-sm); }
.nav-empty > span:last-child { font-size:var(--type-label); line-height:1.35; }
.sidebar-collapse { display:flex; width:100%; min-height:42px; margin:0 0 16px; padding:0 12px; flex:0 0 auto; align-items:center; justify-content:center; gap:10px; border:1px solid rgba(255,255,255,.1); border-radius:12px; background:rgba(255,255,255,.04); color:#aaa8af; cursor:pointer; font-family:var(--font-body); font-size:var(--type-ui-sm); font-weight:600; transition:background var(--ui-fast),color var(--ui-fast),width var(--ui-fast); }
.sidebar-collapse:hover { background:rgba(255,255,255,.075); color:#fff; }
.sidebar-collapse i { width:9px; height:9px; border-top:2px solid currentColor; border-right:2px solid currentColor; transform:rotate(-135deg); transition:transform var(--ui-fast); }

.workspace { min-height:100vh; margin-left:256px; transition:margin-left var(--ui-fast); }
.topbar { position:sticky; z-index:70; top:0; display:grid; height:72px; padding:0 clamp(18px,3vw,42px); grid-template-columns:minmax(160px,210px) minmax(260px,580px) minmax(96px,1fr); align-items:center; gap:18px; border-bottom:1px solid var(--line); background:var(--sticky-surface); box-shadow:var(--shadow-sticky); backdrop-filter:blur(var(--sticky-blur)); }
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
    .topbar { background:var(--sticky-surface-solid); }
}
.mobile-menu { display:none !important; }
.topbar-signature { display:flex; width:min(190px,100%); min-width:0; align-items:center; color:inherit; text-decoration:none; }
.topbar-signature img { display:block; width:190px; max-width:100%; height:auto; object-fit:contain; }
html[data-theme="dark"] .topbar-signature img { filter:brightness(1.9); }
.global-search { position:relative; display:flex; width:100%; height:43px; padding:0 12px; justify-self:center; align-items:center; gap:10px; border:1px solid var(--line); border-radius:13px; background:var(--surface); color:var(--muted); box-shadow:0 3px 20px rgba(0,0,0,.03); }
.global-search input { width:100%; min-width:0; border:0; outline:0; background:transparent; color:var(--text); font-size:13px; }
.global-search input::placeholder { color:var(--muted-2); }
.global-search kbd { min-width:38px; padding:4px 7px; border:1px solid var(--line); border-radius:7px; background:var(--surface-2); color:var(--muted-2); font-family:var(--font-code); font-size:var(--type-label); text-align:center; }
.search-results { position:absolute; z-index:90; top:calc(100% + 9px); right:0; left:0; padding:9px; border:1px solid var(--line); border-radius:17px; background:var(--surface); box-shadow:var(--shadow-float); }
.search-results > p { margin:5px 9px 7px; color:var(--muted-2); font-family:var(--font-code); font-size:var(--type-label); letter-spacing:.1em; text-transform:uppercase; }
.search-results button { display:flex; width:100%; padding:9px; align-items:center; gap:10px; border:0; border-radius:12px; background:transparent; cursor:pointer; text-align:left; }
.search-results button:hover,.search-results button:focus-visible { background:var(--surface-2); }
.search-results button > span:nth-child(2) { display:flex; min-width:0; flex:1; flex-direction:column; }
.search-results strong { font-size:12px; }
.search-results small { margin-top:3px; color:var(--muted); font-size:var(--type-label); }
.search-dictionary-items { max-height:min(42vh,340px); overflow-y:auto; scrollbar-width:thin; }
.result-symbol { display:grid; width:34px; height:34px; flex:0 0 auto; place-items:center; border-radius:10px; }
.result-pre { background:rgba(88,0,201,.14); color:var(--pre-400); }
.result-ua { background:rgba(242,201,76,.18); color:var(--ua-700); }
html[data-theme="dark"] .result-ua { color:var(--ua-300); }
.search-empty { padding:14px 8px; text-transform:none !important; letter-spacing:0 !important; }
.top-actions { display:flex; align-items:center; justify-self:end; gap:8px; }
.icon-button { display:inline-grid; width:42px; height:42px; padding:0; flex:0 0 auto; place-items:center; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--muted); cursor:pointer; transition:background var(--ui-fast),color var(--ui-fast),transform var(--ui-fast); }
.icon-button:hover { background:var(--surface-2); color:var(--text); }
.icon-button:active { transform:scale(.97); }
.theme-toggle .icon-moon { display:none; }
html[data-theme="light"] .theme-toggle .icon-sun { display:none; }
html[data-theme="light"] .theme-toggle .icon-moon { display:block; }
.avatar { display:grid; width:40px; height:40px; margin-left:3px; padding:0; place-items:center; border:0; border-radius:50%; background:linear-gradient(145deg,var(--pre-500),var(--pre-800)); color:#fff; font-family:var(--font-code); font-size:var(--type-ui-sm); font-weight:700; cursor:pointer; }

.main-content { width:min(1460px,100%); margin:0 auto; padding:0 clamp(24px,3.5vw,56px) 38px; }
.demo-status { display:flex; width:max-content; max-width:100%; min-height:34px; margin:18px 0 0; padding:7px 11px; align-items:center; gap:8px; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--muted); font-family:var(--font-code); font-size:var(--type-label); }
.demo-status strong { color:var(--text); }
.status-dot { display:inline-block; width:7px; height:7px; flex:0 0 auto; border-radius:50%; background:var(--ua-500); box-shadow:0 0 0 4px rgba(242,201,76,.13); }
.view { animation:view-in var(--ui-med) both; }
.eyebrow { display:flex; align-items:center; gap:8px; color:var(--muted); font-family:var(--font-code); font-size:var(--type-label); font-weight:600; letter-spacing:.1em; text-transform:uppercase; }
.home-hero { position:relative; display:grid; min-height:470px; padding:clamp(54px,7vw,92px) 0 46px; overflow:hidden; grid-template-columns:minmax(0,1.18fr) minmax(330px,.82fr); align-items:center; gap:clamp(32px,7vw,110px); }
.hero-route { position:absolute; z-index:0; inset:5% 28% 5% 24%; pointer-events:none; opacity:.55; }
.hero-route svg { width:100%; height:100%; overflow:visible; }
.hero-route path { fill:none; stroke:var(--pre-400); stroke-dasharray:1 8; stroke-linecap:round; stroke-width:2; opacity:.28; }
.hero-route circle { fill:var(--canvas); stroke:var(--ua-500); stroke-width:2; }
.hero-copy { position:relative; z-index:1; }
.hero-copy h1 { max-width:760px; margin:14px 0 20px; font-family:var(--font-display); font-size:clamp(48px,5.3vw,82px); font-weight:690; line-height:.96; letter-spacing:-.065em; }
.hero-copy h1 em { color:var(--ua-600); font-style:normal; }
html[data-theme="dark"] .hero-copy h1 em { color:var(--ua-400); }
.hero-copy > p { max-width:670px; margin:0; color:var(--muted); font-size:clamp(15px,1.2vw,18px); line-height:1.7; }
.meta-row { display:flex; margin-top:24px; flex-wrap:wrap; gap:10px 22px; color:var(--muted-2); font-family:var(--font-code); font-size:var(--type-label); }
.meta-row span { display:flex; align-items:center; gap:7px; }
.meta-row .icon { width:15px; height:15px; }
.insight-card { position:relative; z-index:1; display:flex; min-height:308px; padding:27px; overflow:hidden; flex-direction:column; justify-content:space-between; border:1px solid rgba(255,255,255,.11); border-radius:30px 30px 30px 9px; background:linear-gradient(145deg,#111014 0%,#1b1428 56%,#17120b 100%); color:#f5f4f7; box-shadow:0 30px 90px rgba(0,0,0,.24); cursor:pointer; text-align:left; transition:transform var(--ui-med),box-shadow var(--ui-med); }
.insight-card:hover { transform:translateY(-4px); box-shadow:0 38px 100px rgba(0,0,0,.31); }
.insight-card::before { content:""; position:absolute; right:-15%; bottom:-50%; left:15%; height:84%; border-radius:50%; background:radial-gradient(circle,var(--pre-500),transparent 67%); opacity:.34; filter:blur(24px); }
.insight-kicker { position:relative; z-index:2; display:flex; align-items:center; justify-content:space-between; color:#aaa6b0; font-family:var(--font-code); font-size:var(--type-label); letter-spacing:.08em; text-transform:uppercase; }
.insight-card > strong { position:relative; z-index:2; max-width:24ch; margin:48px 0 28px; font-family:var(--font-display); font-size:clamp(20px,2vw,28px); line-height:1.28; letter-spacing:-.035em; }
.insight-card mark { padding:0 .08em; background:transparent; color:var(--ua-400); }
.insight-card > small { position:relative; z-index:2; color:#d1cfd5; font-size:var(--type-ui-sm); }
.insight-orbit { position:absolute; top:55px; right:25px; display:grid; width:88px; height:88px; place-items:center; border:1px solid rgba(242,201,76,.31); border-radius:50%; color:var(--ua-300); }
.insight-orbit::before,.insight-orbit::after { content:""; position:absolute; border:1px solid rgba(138,77,217,.3); border-radius:50%; }
.insight-orbit::before { inset:-13px 9px; transform:rotate(32deg); }
.insight-orbit::after { inset:9px -13px; transform:rotate(-27deg); }
.insight-orbit b { font-family:Georgia,serif; font-size:38px; font-weight:400; }

.kpi-ribbon { display:grid; margin-top:2px; grid-template-columns:repeat(4,1fr); border:1px solid var(--line); border-radius:24px; background:var(--surface); box-shadow:var(--shadow); }
.kpi-ribbon article { position:relative; min-width:0; min-height:170px; padding:25px 25px 21px; overflow:hidden; border-right:1px solid var(--line); }
.kpi-ribbon article:first-child { border-radius:24px 0 0 24px; }
.kpi-ribbon article:last-child { border-right:0; border-radius:0 24px 24px 0; }
.kpi-ribbon article > strong { display:block; margin-top:13px; font-family:var(--font-display); font-size:clamp(28px,3vw,42px); line-height:1; letter-spacing:-.055em; }
.kpi-ribbon article > small { display:block; margin-top:8px; color:var(--muted); font-size:var(--type-label); }
.kpi-label { display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--muted); font-size:var(--type-ui-sm); }
.kpi-label > span { flex:0 0 auto; color:var(--muted-2); font-family:var(--font-code); font-size:var(--type-label); }
.term { display:inline; padding:0; border:0; border-bottom:1px dotted currentColor; background:transparent; color:inherit; cursor:help; font:inherit; text-align:inherit; }
.positive-text { color:var(--pos-700) !important; }
html[data-theme="dark"] .positive-text { color:var(--pos-300) !important; }
.kpi-accent { background:linear-gradient(145deg,var(--ua-500),var(--ua-300)); color:#17130a; }
.kpi-accent .term,.kpi-accent .kpi-label,.kpi-accent article,.kpi-accent > small,.kpi-accent .kpi-label > span { color:#3a3012; }
.spark-bars { position:absolute; right:22px; bottom:18px; left:22px; display:flex; height:25px; align-items:flex-end; gap:3px; opacity:.72; }
.spark-bars i { flex:1; border-radius:3px 3px 0 0; background:var(--data-accent); }
.spark-bars i:nth-child(1){height:24%}.spark-bars i:nth-child(2){height:42%}.spark-bars i:nth-child(3){height:36%}.spark-bars i:nth-child(4){height:58%}.spark-bars i:nth-child(5){height:66%}.spark-bars i:nth-child(6){height:76%}.spark-bars i:nth-child(7){height:100%}
.progress-track,.bullet-track { position:absolute; right:24px; bottom:22px; left:24px; height:5px; border-radius:99px; background:var(--surface-2); }
.progress-track span,.bullet-track span { display:block; height:100%; border-radius:inherit; background:var(--data-accent); transform-origin:left; transition:width var(--ui-med); }
.bullet-track b { position:absolute; top:-5px; left:100%; width:2px; height:15px; background:var(--text); transform:translateX(-2px); }

.section-block { margin-top:78px; }
.section-heading { display:flex; margin-bottom:22px; align-items:flex-end; justify-content:space-between; gap:24px; }
.section-heading h2 { margin:7px 0 0; font-family:var(--font-display); font-size:clamp(27px,3vw,42px); line-height:1.08; letter-spacing:-.045em; }
.text-action { display:inline-flex; min-height:42px; padding:0; align-items:center; gap:8px; border:0; background:transparent; color:var(--muted); cursor:pointer; font-size:var(--type-ui-sm); }
.text-action:hover { color:var(--text); }
.context-pill { display:inline-flex; min-height:42px; padding:0 15px; align-items:center; gap:8px; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--muted); font-size:var(--type-ui-sm); }
.context-pill .icon { width:17px; height:17px; }
.pulse-layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(290px,.7fr); gap:18px; }
.panel,.signals-panel { border:1px solid var(--line); border-radius:24px; background:var(--surface); box-shadow:var(--shadow); }
.panel { padding:27px; }
.panel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:22px; }
.panel-kicker { margin:0 0 7px; color:var(--muted-2); font-family:var(--font-code); font-size:var(--type-label); font-weight:600; letter-spacing:.11em; text-transform:uppercase; }
.panel-heading h2,.panel-heading h3 { margin:0; font-family:var(--font-display); font-weight:650; letter-spacing:-.035em; }
.panel-heading h2 { max-width:30ch; font-size:clamp(22px,2.2vw,30px); line-height:1.15; }
.panel-heading h3 { font-size:20px; line-height:1.2; }
.panel-heading p:not(.panel-kicker) { margin:7px 0 0; color:var(--muted); font-size:var(--type-ui-sm); }
.panel-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.panel-actions button { min-height:36px; padding:0 11px; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--muted); cursor:pointer; font-size:var(--type-label); white-space:nowrap; }
.panel-actions button:hover { background:var(--surface-2); color:var(--text); }
.chart-legend { display:flex; margin:24px 0 0 46px; gap:20px; color:var(--muted); font-family:var(--font-code); font-size:var(--type-label); }
.chart-legend span { display:flex; align-items:center; gap:6px; }
.chart-legend i { width:18px; height:2px; }
.legend-current { background:var(--data-accent-line); }
.legend-previous { border-top:1px dashed var(--muted-2); }
.trend-chart { position:relative; height:245px; margin:6px 2px 0 44px; }
.trend-chart svg { position:absolute; inset:12px 0 30px; width:100%; height:calc(100% - 42px); overflow:visible; }
.chart-grid { transition:opacity var(--ui-fast); }
.chart-grid line { stroke:var(--line); stroke-width:1; vector-effect:non-scaling-stroke; }
.hide-grid .chart-grid { opacity:0; }
.trend-line { fill:none; stroke-width:2.4; vector-effect:non-scaling-stroke; }
.trend-line-current { stroke:var(--data-accent-line); }
.trend-line-previous { stroke:var(--muted-2); stroke-dasharray:6 7; }
.trend-area { fill:var(--data-accent-soft); }
.trend-last-point { fill:var(--surface); stroke:var(--data-accent-line); stroke-width:3; vector-effect:non-scaling-stroke; }
.y-axis { position:absolute; top:5px; bottom:31px; left:-44px; display:flex; width:38px; flex-direction:column; justify-content:space-between; color:var(--muted-2); font-family:var(--font-code); font-size:var(--type-micro); text-align:right; }
.x-axis { position:absolute; right:0; bottom:4px; left:0; display:flex; justify-content:space-between; color:var(--muted-2); font-family:var(--font-code); font-size:var(--type-micro); }
.chart-end-label { position:absolute; top:1px; right:4px; display:flex; flex-direction:column; align-items:flex-end; gap:6px; font-family:var(--font-code); font-size:var(--type-micro); }
.chart-end-label strong { padding:4px 6px; border-radius:6px; background:var(--data-accent-soft); color:var(--data-accent-line); }
.chart-end-label > span { color:var(--muted-2); }
.source-line { display:flex; margin-top:14px; padding-top:15px; justify-content:space-between; gap:12px; border-top:1px solid var(--line); color:var(--muted-2); font-family:var(--font-code); font-size:var(--type-micro); }
.signals-panel { padding:27px 22px; }
.signal-count { display:grid; min-width:30px; height:30px; place-items:center; border-radius:50%; background:rgba(233,30,99,.14); color:var(--rose-700); font-family:var(--font-code); font-size:var(--type-label); }
html[data-theme="dark"] .signal-count { color:var(--rose-300); }
.signal { display:flex; width:100%; padding:19px 4px; align-items:flex-start; gap:13px; border:0; border-bottom:1px solid var(--line); background:transparent; cursor:pointer; text-align:left; }
.signal:nth-of-type(3) { border-bottom:0; }
.signal-icon { display:grid; width:38px; height:38px; flex:0 0 auto; place-items:center; border-radius:12px; }
.signal-critical .signal-icon { background:rgba(233,30,99,.12); color:var(--rose-700); }
.signal-positive .signal-icon { background:rgba(39,174,96,.13); color:var(--pos-700); }
.signal-neutral .signal-icon { background:var(--surface-2); color:var(--muted); }
html[data-theme="dark"] .signal-critical .signal-icon { color:var(--rose-300); }
html[data-theme="dark"] .signal-positive .signal-icon { color:var(--pos-300); }
.signal > span:last-child { display:flex; flex-direction:column; }
.signal small { color:var(--muted-2); font-family:var(--font-code); font-size:var(--type-micro); text-transform:uppercase; }
.signal strong { margin-top:5px; font-family:var(--font-display); font-size:13px; line-height:1.4; }
.signal em { margin-top:7px; color:var(--muted); font-size:var(--type-label); font-style:normal; }
.signal:hover em { color:var(--ua-600); }
html[data-theme="dark"] .signal:hover em { color:var(--ua-300); }
.demo-note { margin:8px 4px 0; padding-top:13px; border-top:1px solid var(--line); color:var(--muted-2); font-family:var(--font-code); font-size:var(--type-micro); line-height:1.5; }

.library-layout { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr); gap:18px; }
.featured-dashboard { position:relative; display:flex; min-height:390px; padding:28px; overflow:hidden; flex-direction:column; align-items:flex-start; border:1px solid var(--line); border-radius:28px 28px 28px 9px; background:linear-gradient(145deg,rgba(242,201,76,.12),var(--surface) 44%,rgba(88,0,201,.06)); box-shadow:var(--shadow); cursor:pointer; text-align:left; }
.featured-dashboard::after { content:""; position:absolute; right:-8%; bottom:-34%; width:370px; height:370px; border-radius:50%; background:radial-gradient(circle,rgba(88,0,201,.2),transparent 66%); }
.product-tag { display:inline-flex; width:max-content; min-height:24px; padding:0 8px; align-items:center; border-radius:7px; font-family:var(--font-code); font-size:var(--type-micro); font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.tag-ua { background:rgba(242,201,76,.18); color:var(--ua-800); }
html[data-theme="dark"] .tag-ua { color:var(--ua-300); }
.featured-copy { position:relative; z-index:1; display:flex; max-width:34rem; margin-top:38px; flex-direction:column; }
.featured-copy strong { font-family:var(--font-display); font-size:clamp(27px,3vw,42px); line-height:1.05; letter-spacing:-.05em; }
.featured-copy small { max-width:54ch; margin-top:14px; color:var(--muted); font-size:12px; line-height:1.6; }
.mini-funnel { position:absolute; right:28px; bottom:62px; display:flex; width:38%; align-items:flex-end; flex-direction:column; gap:7px; opacity:.84; }
.mini-funnel i { display:block; height:12px; border-radius:4px; background:linear-gradient(90deg,var(--ua-600),var(--pre-400)); }
.mini-funnel i:nth-child(1){width:100%}.mini-funnel i:nth-child(2){width:74%}.mini-funnel i:nth-child(3){width:45%}.mini-funnel i:nth-child(4){width:28%}
.card-meta { position:absolute; z-index:1; right:28px; bottom:26px; left:28px; display:flex; align-items:center; gap:14px; color:var(--muted-2); font-family:var(--font-code); font-size:var(--type-micro); }
.card-meta b { color:var(--text); font-weight:600; }
.card-meta .icon { width:18px; height:18px; margin-left:auto; transition:transform var(--ui-fast); }
.featured-dashboard:hover .card-meta .icon { transform:translateX(4px); }
.route-list { display:flex; flex-direction:column; gap:10px; }
.route-card { position:relative; display:grid; min-height:123px; padding:20px; overflow:hidden; grid-template-columns:34px minmax(0,1fr) 78px 24px; align-items:center; gap:13px; border:1px solid var(--line); border-radius:20px; background:var(--surface); color:var(--text); box-shadow:var(--shadow); cursor:pointer; text-align:left; text-decoration:none; transition:transform var(--ui-med),border-color var(--ui-fast); }
.route-card:hover { border-color:var(--line-strong); transform:translateX(4px); }
.route-index { color:var(--muted-2); font-family:var(--font-code); font-size:var(--type-label); }
.route-card > span:nth-child(2) { display:flex; flex-direction:column; }
.route-card b { font-family:var(--font-display); font-size:18px; letter-spacing:-.03em; }
.route-card small { margin-top:5px; color:var(--muted); font-size:var(--type-label); }
.route-line { display:block; height:7px; border-radius:99px; opacity:.8; }
.line-pre { background:linear-gradient(90deg,var(--pre-700),var(--pre-300)); }
.line-pos { width:72%; background:linear-gradient(90deg,var(--pos-700),var(--pos-300)); }
.line-tre { width:48%; background:linear-gradient(90deg,var(--tre-700),var(--tre-300)); }
.route-card > .icon { width:18px; height:18px; color:var(--muted); }

.closing-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:18px; }
.recent-row { display:flex; width:100%; padding:15px 0; align-items:center; gap:12px; border:0; border-bottom:1px solid var(--line); background:transparent; cursor:pointer; text-align:left; }
.recent-row:last-child { border-bottom:0; }
.recent-row > span:nth-child(2) { display:flex; min-width:0; flex:1; flex-direction:column; }
.recent-row strong { font-size:12px; }
.recent-row small { margin-top:4px; color:var(--muted-2); font-family:var(--font-code); font-size:var(--type-micro); }
.file-mark { display:grid; width:38px; height:38px; flex:0 0 auto; place-items:center; border-radius:11px; font-family:var(--font-code); font-size:var(--type-label); font-weight:700; }
.file-pre { background:rgba(88,0,201,.14); color:var(--pre-500); }
.file-pos { background:rgba(39,174,96,.14); color:var(--pos-700); }
.file-ext { background:rgba(33,85,163,.14); color:var(--ext-600); }
html[data-theme="dark"] .file-pre { color:var(--pre-300); }
html[data-theme="dark"] .file-pos { color:var(--pos-300); }
html[data-theme="dark"] .file-ext { color:var(--ext-300); }
.recent-row > .icon { color:var(--muted-2); }
.demo-label { padding:5px 8px; border-radius:7px; background:var(--surface-2); color:var(--muted-2); font-family:var(--font-code); font-size:var(--type-micro); text-transform:uppercase; }
.dictionary-teaser { position:relative; min-height:326px; padding:31px; overflow:hidden; border-radius:26px 26px 9px 26px; background:linear-gradient(145deg,var(--ua-500),var(--ua-300)); color:#17130a; box-shadow:var(--shadow); }
.dictionary-teaser .panel-kicker { color:#6e5d24; }
.dictionary-teaser h3 { position:relative; z-index:1; max-width:18ch; margin:18px 0 13px; font-family:var(--font-display); font-size:clamp(25px,2.8vw,38px); line-height:1.08; letter-spacing:-.05em; }
.dictionary-teaser > p:not(.panel-kicker) { position:relative; z-index:1; max-width:44ch; font-size:var(--type-ui-sm); line-height:1.6; }
.dictionary-teaser > button { position:absolute; z-index:2; bottom:28px; left:31px; display:flex; padding:0; align-items:center; gap:7px; border:0; background:transparent; font-size:var(--type-ui-sm); font-weight:700; cursor:pointer; }

.dashboard-view { padding-top:20px; }
.breadcrumbs { display:flex; min-height:34px; align-items:center; gap:6px; color:var(--muted-2); font-size:var(--type-label); }
.breadcrumbs button { padding:0; border:0; background:transparent; color:var(--muted-2); cursor:pointer; }
.breadcrumbs .icon { width:14px; height:14px; }
.breadcrumbs strong { color:var(--muted); font-weight:500; }
.dashboard-title-row { display:flex; padding:30px 0 26px; align-items:flex-end; justify-content:space-between; gap:28px; }
.dashboard-title-row h1 { margin:10px 0 9px; font-family:var(--font-display); font-size:clamp(38px,4.5vw,64px); line-height:.98; letter-spacing:-.06em; }
.dashboard-title-row h1 .term { color:var(--ua-600); }
html[data-theme="dark"] .dashboard-title-row h1 .term { color:var(--ua-400); }
.dashboard-title-row > div:first-child > p:last-child { max-width:760px; margin:0; color:var(--muted); font-size:14px; line-height:1.6; }
.title-actions { display:flex; flex:0 0 auto; gap:8px; }
.secondary-button,.primary-button { display:inline-flex; min-height:42px; padding:0 14px; align-items:center; justify-content:center; gap:7px; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--muted); cursor:pointer; font-size:var(--type-label); font-weight:600; }
.primary-button { border-color:var(--ua-500); background:var(--ua-500); color:#17130a; }
.primary-button > span { display:grid; min-width:19px; height:19px; place-items:center; border-radius:50%; background:rgba(0,0,0,.12); font-family:var(--font-code); font-size:var(--type-micro); }
.favorite-button.is-favorite { color:var(--ua-600); }
.favorite-button.is-favorite .icon { fill:currentColor; }
.filter-bar { position:sticky; z-index:60; top:84px; display:flex; min-height:70px; padding:10px 12px 10px 17px; align-items:center; gap:18px; border:1px solid var(--line); border-radius:16px; background:rgba(255,255,255,.92); box-shadow:0 12px 40px rgba(0,0,0,.09); backdrop-filter:blur(18px); }
html[data-theme="dark"] .filter-bar { background:rgba(20,20,23,.92); }
.filter-context { display:flex; min-width:225px; padding-right:17px; flex-direction:column; border-right:1px solid var(--line); }
.filter-context span { color:var(--muted-2); font-family:var(--font-code); font-size:var(--type-micro); text-transform:uppercase; }
.filter-context strong { margin-top:4px; font-size:var(--type-label); }
.active-chips { display:flex; min-width:0; flex:1; gap:7px; }
.active-chips button { display:flex; min-height:37px; padding:0 11px; align-items:center; gap:7px; border:1px solid var(--line); border-radius:10px; background:var(--surface-2); color:var(--muted); cursor:pointer; font-size:var(--type-label); }
.active-chips .icon { width:14px; height:14px; transform:rotate(90deg); }
.reset-button { padding:0 8px; border:0; background:transparent; color:var(--muted); cursor:pointer; font-size:var(--type-label); }
.dashboard-meta { display:flex; padding:16px 4px 19px; flex-wrap:wrap; gap:10px 24px; color:var(--muted-2); font-family:var(--font-code); font-size:var(--type-micro); }
.dashboard-meta span,.dashboard-meta button { display:flex; align-items:center; gap:6px; }
.dashboard-meta button { padding:0; border:0; background:transparent; color:var(--muted-2); cursor:pointer; }
.dashboard-meta .icon { width:15px; height:15px; }
.dashboard-kpis { display:grid; margin-bottom:18px; grid-template-columns:repeat(4,1fr); gap:10px; }
.dashboard-kpis article { min-height:132px; padding:21px; border:1px solid var(--line); border-radius:17px; background:var(--surface); }
.dashboard-kpis p { margin:0; color:var(--muted); font-size:var(--type-label); }
.dashboard-kpis strong { display:block; margin:11px 0 9px; font-family:var(--font-display); font-size:31px; line-height:1; letter-spacing:-.05em; }
.dashboard-kpis article > span { color:var(--muted-2); font-family:var(--font-code); font-size:var(--type-micro); }
.dashboard-kpis .dark-kpi { border-color:transparent; background:linear-gradient(145deg,#151119,#251837); color:#fff; }
.dark-kpi p,.dark-kpi .term,.dark-kpi > span { color:#c8c3ce; }

.journey-panel { padding:30px; }
.journey-chart { display:grid; margin:34px 0 28px; grid-template-columns:repeat(4,1fr); gap:13px; }
.journey-stage { min-width:0; }
.stage-label { display:flex; min-height:25px; align-items:center; gap:7px; color:var(--muted); }
.stage-label > span { color:var(--muted-2); font-family:var(--font-code); font-size:var(--type-micro); }
.stage-label strong { overflow:hidden; font-size:var(--type-label); text-overflow:ellipsis; white-space:nowrap; }
.stage-label button { display:grid; padding:0; place-items:center; border:0; background:transparent; color:var(--muted-2); cursor:pointer; }
.stage-label .icon { width:15px; height:15px; }
.journey-stage > p { margin:10px 0 15px; font-family:var(--font-display); font-size:clamp(23px,2.7vw,38px); font-weight:700; line-height:1; letter-spacing:-.05em; }
.stage-track { position:relative; height:44px; overflow:hidden; border-radius:8px; background:var(--surface-2); }
.stage-track > span { position:relative; z-index:2; display:block; height:100%; border-radius:8px; background:linear-gradient(90deg,var(--data-accent),var(--data-accent-line)); animation:bar-in var(--ui-reveal) both; transform-origin:left; transition:width var(--ui-med); }
.journey-stage:first-child .stage-track > span { background:linear-gradient(90deg,var(--ua-700),var(--ua-400)); }
.journey-stage:last-child .stage-track > span { background:linear-gradient(90deg,var(--pos-700),var(--pos-400)); }
.guide { position:absolute; z-index:3; top:0; bottom:0; width:1px; background:rgba(255,255,255,.25); transition:opacity var(--ui-fast); }
.guide-one { left:33.333%; }.guide-two { left:66.666%; }
.hide-grid .guide { opacity:0; }
.stage-meta { display:flex; margin-top:10px; flex-direction:column; gap:4px; }
.stage-meta strong { color:var(--muted); font-family:var(--font-code); font-size:var(--type-label); }
.stage-meta small { min-height:28px; color:var(--muted-2); font-size:var(--type-micro); line-height:1.35; }
.decision-note { display:flex; padding:16px 18px; align-items:center; gap:12px; border:1px solid rgba(242,201,76,.32); border-radius:14px; background:rgba(242,201,76,.075); }
.decision-note > span { display:grid; width:38px; height:38px; flex:0 0 auto; place-items:center; border-radius:11px; background:rgba(242,201,76,.17); color:var(--ua-700); }
html[data-theme="dark"] .decision-note > span { color:var(--ua-300); }
.decision-note p { flex:1; margin:0; color:var(--muted); font-size:var(--type-label); line-height:1.55; }
.decision-note p strong { color:var(--text); }
.decision-note > button { display:flex; padding:0; align-items:center; gap:6px; border:0; background:transparent; color:var(--text); cursor:pointer; font-size:var(--type-label); font-weight:600; white-space:nowrap; }
.decision-note .icon { width:17px; height:17px; }
.analysis-layout { display:grid; margin-top:18px; grid-template-columns:1.28fr .72fr; gap:18px; }
.compact-trend .trend-chart { height:246px; }
.ranking-panel { min-width:0; }
.ranking-chart { display:flex; min-height:270px; margin:26px 0 20px; flex-direction:column; justify-content:space-around; gap:12px; }
.rank-row { display:grid; grid-template-columns:105px 1fr 48px; align-items:center; gap:10px; }
.rank-row > span { overflow:hidden; color:var(--muted); font-size:var(--type-label); text-overflow:ellipsis; white-space:nowrap; }
.rank-row > div { height:12px; overflow:hidden; border-radius:4px; background-color:var(--surface-2); background-image:linear-gradient(90deg,transparent 24.5%,var(--line) 25%,transparent 25.5%,transparent 49.5%,var(--line) 50%,transparent 50.5%,transparent 74.5%,var(--line) 75%,transparent 75.5%); }
.hide-grid .rank-row > div { background-image:none; }
.rank-row i { display:block; height:100%; border-radius:4px; background:var(--data-accent-line); opacity:.48; transition:width var(--ui-med); }
.rank-row:first-child i { opacity:1; }
.rank-row strong { font-family:var(--font-code); font-size:var(--type-micro); text-align:right; }

.data-table { margin-top:22px; animation:table-in var(--ui-fast) both; }
.table-scroll { overflow:auto; border:1px solid var(--line); border-radius:13px; }
table { width:100%; border-collapse:collapse; font-size:var(--type-label); }
caption { padding:12px 14px; color:var(--muted); font-family:var(--font-code); font-size:var(--type-micro); text-align:left; }
th,td { padding:11px 14px; border-top:1px solid var(--line); text-align:left; white-space:nowrap; }
th { background:var(--surface-2); color:var(--muted); font-size:var(--type-label); font-weight:600; }
td { color:var(--text); }

.institutional-footer { position:relative; margin-top:70px; overflow:hidden; border-top:3px solid var(--ua-500); background:#070708; color:#f5f5f5; }
.institutional-footer::before { content:""; position:absolute; inset:auto -8% 0 36%; height:82%; pointer-events:none; background:radial-gradient(ellipse at bottom,rgba(88,0,201,.17),transparent 65%); }
.institutional-footer-inner { position:relative; display:grid; width:min(1460px,100%); margin:0 auto; padding:46px clamp(24px,3.5vw,56px) 38px; grid-template-columns:minmax(340px,1.45fr) minmax(210px,.7fr) minmax(250px,.85fr); gap:clamp(30px,5vw,72px); }
.institutional-footer h2 { margin:0; font-family:var(--font-display); font-size:13px; font-weight:700; letter-spacing:-.02em; }
.institutional-footer p { margin:0; color:#a9a7ae; font-size:var(--type-label); line-height:1.65; }
.institutional-footer-lockup { display:grid; grid-template-columns:156px minmax(0,1fr); align-items:center; gap:20px; }
.institutional-footer-logo { display:grid; width:156px; height:72px; padding:8px 12px; place-items:center; border-radius:12px; background:#fff; }
.institutional-footer-logo img { display:block; width:132px; max-height:54px; object-fit:contain; }
.institutional-footer-lockup > div:last-child > span { display:block; margin-bottom:6px; color:var(--ua-400); font-family:var(--font-code); font-size:var(--type-micro); font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.institutional-footer-lockup p { margin-top:6px; }
.institutional-footer-legal { max-width:68ch; margin-top:19px !important; color:#77747e !important; font-size:var(--type-micro) !important; }
.institutional-footer-column h2 { min-height:27px; padding-bottom:11px; border-bottom:1px solid rgba(255,255,255,.1); }
.institutional-footer-column ul { display:grid; margin:13px 0 0; padding:0; gap:2px; list-style:none; }
.institutional-footer-column a { display:flex; min-height:36px; align-items:center; justify-content:space-between; gap:14px; color:#aaa8af; font-size:var(--type-label); text-decoration:none; transition:color var(--ui-fast),padding-left var(--ui-fast); }
.institutional-footer-column a:hover,.institutional-footer-column a:focus-visible { padding-left:4px; color:#fff; }
.institutional-footer-column a i { color:var(--ua-400); font-family:var(--font-code); font-size:var(--type-ui-sm); font-style:normal; }
.institutional-footer-bottom { position:relative; display:flex; width:calc(100% - clamp(48px,7vw,112px)); max-width:1348px; min-height:56px; margin:0 auto; padding:16px 0; align-items:center; justify-content:space-between; gap:20px; border-top:1px solid rgba(255,255,255,.1); color:#76737d; font-family:var(--font-code); font-size:var(--type-micro); }
.page-footer { display:none; }
.page-backdrop { position:fixed; z-index:110; inset:0; width:100%; height:100%; padding:0; border:0; background:rgba(3,3,5,.62); backdrop-filter:blur(3px); cursor:default; }
.drawer { position:fixed; z-index:120; top:0; right:0; display:flex; width:min(440px,100vw); height:100vh; padding:26px; flex-direction:column; background:var(--surface); color:var(--text); box-shadow:-30px 0 90px rgba(0,0,0,.3); transform:translateX(105%); visibility:hidden; transition:transform var(--ui-med),visibility 0s linear var(--ui-med); }
.drawer.is-open { transform:translateX(0); visibility:visible; transition-delay:0s; }
.drawer-header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.drawer-header h2 { margin:7px 0 0; font-family:var(--font-display); font-size:28px; letter-spacing:-.045em; }
.drawer-search { display:flex; min-height:44px; margin:23px 0 19px; padding:0 13px; align-items:center; gap:9px; border:1px solid var(--line); border-radius:12px; background:var(--surface-2); color:var(--muted); }
.drawer-search input { min-width:0; flex:1; border:0; outline:0; background:transparent; color:var(--text); font-size:var(--type-ui-sm); }
.definition-card,.glossary-results,.filter-form { min-height:0; flex:1; overflow-y:auto; }
.dictionary-front-state { display:flex; min-height:210px; padding:28px 18px; flex:1; align-items:center; justify-content:center; flex-direction:column; border:1px dashed var(--line-strong); border-radius:18px; background:var(--surface-2); text-align:center; }
.dictionary-front-state[hidden] { display:none; }
.dictionary-front-state strong { margin-top:14px; font-family:var(--font-display); font-size:19px; }
.dictionary-front-state p { max-width:34ch; margin:8px 0 0; color:var(--muted); font-size:var(--type-label); line-height:1.55; }
.dictionary-loading-mark { width:34px; height:34px; border:2px solid var(--line-strong); border-top-color:var(--ua-600); border-radius:50%; animation:dictionary-loading .8s linear infinite; }
.dictionary-front-state.is-error .dictionary-loading-mark,.dictionary-front-state.is-empty .dictionary-loading-mark { position:relative; border:0; background:rgba(242,153,74,.15); animation:none; }
.dictionary-front-state.is-error .dictionary-loading-mark::after,.dictionary-front-state.is-empty .dictionary-loading-mark::after { content:"!"; position:absolute; inset:0; display:grid; place-items:center; color:var(--orange-700); font-family:var(--font-code); font-weight:700; }
html[data-theme="dark"] .dictionary-front-state.is-error .dictionary-loading-mark::after,html[data-theme="dark"] .dictionary-front-state.is-empty .dictionary-loading-mark::after { color:var(--orange-300); }
.definition-back { display:inline-flex; min-height:44px; padding:0; align-items:center; gap:8px; border:0; background:transparent; color:var(--muted); cursor:pointer; font-size:var(--type-label); }
.definition-back .icon { width:15px; transform:rotate(180deg); }
.definition-path { display:flex; margin:7px 0 16px; flex-wrap:wrap; gap:5px; color:var(--muted-2); font-family:var(--font-code); font-size:var(--type-micro); }
.definition-category { display:inline-block; padding:5px 8px; border-radius:7px; background:rgba(242,201,76,.17); color:var(--ua-800); font-family:var(--font-code); font-size:var(--type-micro); text-transform:uppercase; }
html[data-theme="dark"] .definition-category { color:var(--ua-300); }
.definition-card h3 { margin:18px 0 11px; font-family:var(--font-display); font-size:36px; letter-spacing:-.05em; }
.definition-text { margin:0 0 22px; color:var(--muted); font-size:13px; line-height:1.7; }
.definition-card dl { margin:0; }
.definition-card dl > div { padding:15px 0; border-top:1px solid var(--line); }
.definition-card dt { margin-bottom:6px; color:var(--muted-2); font-family:var(--font-code); font-size:var(--type-micro); text-transform:uppercase; }
.definition-card dd { margin:0; font-size:var(--type-ui-sm); line-height:1.5; }
.definition-card code { color:var(--data-accent-line); font-family:var(--font-code); font-size:var(--type-label); }
.definition-status { display:flex; margin-top:22px; padding:14px; align-items:center; gap:10px; border-radius:12px; background:rgba(242,201,76,.09); color:var(--ua-700); }
html[data-theme="dark"] .definition-status { color:var(--ua-300); }
.definition-status span { display:flex; flex-direction:column; }
.definition-status strong { font-size:var(--type-label); }
.definition-status small { margin-top:3px; color:var(--muted); font-family:var(--font-code); font-size:var(--type-micro); }
.glossary-results { display:flex; padding-bottom:8px; flex-direction:column; gap:7px; scrollbar-width:thin; }
.glossary-results button { display:grid; min-height:68px; padding:10px 12px 10px calc(12px + var(--dictionary-indent,0px)); grid-template-columns:12px minmax(0,1fr) auto; align-items:center; gap:9px; border:1px solid var(--line); border-radius:11px; background:var(--surface); color:var(--text); cursor:pointer; text-align:left; }
.glossary-results button:hover { background:var(--surface-2); }
.glossary-results button > i { position:relative; width:9px; height:9px; border:2px solid var(--ua-600); border-radius:50%; }
.glossary-results button > i::before { content:""; position:absolute; top:2px; right:7px; width:calc(var(--dictionary-indent,0px) + 7px); height:1px; background:var(--line-strong); }
.glossary-results button > span { display:flex; min-width:0; flex-direction:column; }
.glossary-results strong { overflow:hidden; font-size:var(--type-ui-sm); text-overflow:ellipsis; white-space:nowrap; }
.glossary-results small { margin-top:4px; overflow:hidden; color:var(--muted-2); font-family:var(--font-code); font-size:var(--type-micro); text-overflow:ellipsis; white-space:nowrap; }
.glossary-results em { color:var(--muted-2); font-family:var(--font-code); font-size:var(--type-micro); font-style:normal; white-space:nowrap; }
.dictionary-no-results { padding:30px 18px; border:1px dashed var(--line-strong); border-radius:14px; color:var(--muted); text-align:center; }
.dictionary-no-results strong { color:var(--text); font-family:var(--font-display); font-size:15px; }
.dictionary-no-results p { margin:7px 0 0; color:var(--muted); font-size:var(--type-label); line-height:1.5; }
.filter-form { margin-top:12px; }
.filter-form fieldset { margin:0; padding:20px 0; border:0; border-bottom:1px solid var(--line); }
.filter-form legend { margin-bottom:11px; font-size:var(--type-ui-sm); font-weight:600; }
.filter-form select { width:100%; min-height:43px; padding:0 12px; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--muted); font-size:var(--type-label); }
.filter-form fieldset > p { margin:8px 0 0; color:var(--muted-2); font-size:var(--type-label); line-height:1.45; }
.level-options { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.level-options label { position:relative; display:flex; min-height:45px; padding:0 12px; align-items:center; gap:9px; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--muted); cursor:pointer; font-size:var(--type-label); }
.level-options input { position:absolute; opacity:0; pointer-events:none; }
.level-options label:has(input:checked),.level-options label.is-selected { border-color:var(--ua-500); background:rgba(242,201,76,.075); color:var(--text); }
.level-options label:has(input:focus-visible) { outline:3px solid var(--ua-500); outline-offset:3px; }
.level-dot { width:8px; height:8px; border-radius:50%; }
.level-all { background:var(--ua-500); }.level-pre { background:var(--pre-400); }.level-pos { background:var(--pos-400); }.level-tre { background:var(--tre-400); }
.filter-footer { display:flex; padding-top:18px; align-items:center; justify-content:space-between; gap:10px; }
.filter-footer > button:first-child { border:0; background:transparent; color:var(--muted); cursor:pointer; font-size:var(--type-label); }
.filter-footer .primary-button { min-width:130px; }
.toast { position:fixed; z-index:150; right:24px; bottom:24px; max-width:min(360px,calc(100vw - 32px)); padding:13px 16px; border:1px solid rgba(242,201,76,.28); border-radius:12px; background:var(--surface); color:var(--text); box-shadow:var(--shadow-float); font-size:var(--type-ui-sm); line-height:1.45; animation:toast-in var(--ui-med) both; }

@keyframes bar-in { from { opacity:.2; transform:scaleX(.04); } to { opacity:1; transform:scaleX(1); } }
@keyframes view-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
@keyframes table-in { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:none; } }
@keyframes toast-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

@media (min-width:1021px) {
    html[data-sidebar="collapsed"] .sidebar { width:88px; padding-right:12px; padding-left:12px; }
    html[data-sidebar="collapsed"] .workspace { margin-left:88px; }
    html[data-sidebar="collapsed"] .brand-lockup { margin-right:0; margin-left:0; justify-content:center; }
    html[data-sidebar="collapsed"] .brand-copy,
    html[data-sidebar="collapsed"] .sidebar .nav-label,
    html[data-sidebar="collapsed"] .sidebar .nav-group-label,
    html[data-sidebar="collapsed"] .sidebar .nav-empty,
    html[data-sidebar="collapsed"] .sidebar-context,
    html[data-sidebar="collapsed"] .admin-sidebar-context,
    html[data-sidebar="collapsed"] .sidebar-collapse span { display:none; }
    html[data-sidebar="collapsed"] .sidebar nav { overflow-x:visible; }
    html[data-sidebar="collapsed"] .sidebar .nav-item { padding:0; justify-content:center; }
    html[data-sidebar="collapsed"] .sidebar .nav-item > span:not(.route-dot) { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); border:0; white-space:nowrap; }
    html[data-sidebar="collapsed"] .sidebar .nav-item .icon { width:21px; height:21px; }
    html[data-sidebar="collapsed"] .sidebar .route-dot { width:10px; height:10px; margin-left:0; }
    html[data-sidebar="collapsed"] .sidebar .nav-space + .nav-item { margin-top:14px; }
    html[data-sidebar="collapsed"] .sidebar .nav-space + .nav-dashboard-group { margin-top:14px; }
    html[data-sidebar="collapsed"] .sidebar .nav-dashboard-group { padding:0; }
    html[data-sidebar="collapsed"] .sidebar .nav-dashboard-group + .nav-dashboard-group { margin-top:0; }
    html[data-sidebar="collapsed"] .sidebar .nav-dashboard-group.is-empty { display:none; }
    html[data-sidebar="collapsed"] .sidebar-collapse { width:44px; margin-right:auto; margin-left:auto; padding:0; }
    html[data-sidebar="collapsed"] .sidebar-collapse i { transform:rotate(45deg); }
}

@media (max-width:1240px) {
    .home-hero { gap:42px; }
    .kpi-ribbon article { padding:22px 18px; }
    .dashboard-title-row { align-items:flex-start; }
    .filter-context { min-width:200px; }
    .active-chips button { max-width:190px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .route-card { grid-template-columns:30px minmax(0,1fr) 55px 20px; }
}

@media (max-width:1020px) {
    .sidebar { transform:translateX(-105%); transition:transform var(--ui-med); }
    .sidebar.is-open { z-index:130; transform:translateX(0); }
    .sidebar-collapse { display:none; }
    .mobile-close { display:grid !important; }
    .workspace { margin-left:0; }
    .topbar { grid-template-columns:42px minmax(130px,180px) minmax(0,1fr) auto; }
    .mobile-menu { display:grid !important; position:static; grid-column:1; grid-row:1; }
    .topbar-signature { grid-column:2; grid-row:1; }
    .global-search { width:100%; }
    .home-hero { grid-template-columns:1fr; }
    .hero-route { right:0; left:36%; }
    .insight-card { min-height:260px; }
    .pulse-layout,.closing-grid,.analysis-layout,.library-layout { grid-template-columns:1fr; }
    .kpi-ribbon { grid-template-columns:repeat(2,1fr); }
    .kpi-ribbon article:nth-child(2) { border-right:0; }
    .kpi-ribbon article:nth-child(-n+2) { border-bottom:1px solid var(--line); }
    .kpi-ribbon article:first-child { border-radius:24px 0 0 0; }
    .kpi-ribbon article:last-child { border-radius:0 0 24px 0; }
    .dashboard-title-row { flex-direction:column; align-items:stretch; }
    .title-actions { justify-content:flex-end; }
    .filter-context { display:none; }
    .dashboard-kpis { grid-template-columns:repeat(2,1fr); }
    .journey-chart { grid-template-columns:repeat(2,1fr); gap:25px 13px; }
    .featured-dashboard { min-height:350px; }
}

@media (max-width:700px) {
    .topbar { height:64px; padding:0 14px; grid-template-columns:42px minmax(120px,150px) minmax(0,1fr) auto; gap:10px; }
    .mobile-menu { position:static; }
    .topbar-signature { width:142px; }
    .topbar-signature img { width:142px; }
    .global-search { min-width:0; width:auto; flex:1; }
    .global-search kbd { display:none; }
    .top-actions { position:static; }
    .top-actions > .icon-button:first-child,.avatar { display:none; }
    .main-content { padding:0 16px 34px; }
    .demo-status { width:100%; align-items:flex-start; line-height:1.45; }
    .home-hero { min-height:auto; padding:45px 0 30px; }
    .hero-copy h1 { font-size:clamp(43px,13vw,64px); }
    .meta-row { flex-direction:column; }
    .insight-card { min-height:275px; padding:23px; }
    .kpi-ribbon { grid-template-columns:1fr; }
    .kpi-ribbon article { min-height:146px; border-right:0; border-bottom:1px solid var(--line); }
    .kpi-ribbon article:first-child { border-radius:24px 24px 0 0; }
    .kpi-ribbon article:last-child { border-bottom:0; border-radius:0 0 24px 24px; }
    .section-block { margin-top:58px; }
    .section-heading { align-items:flex-start; flex-direction:column; }
    .panel,.signals-panel { padding:20px; border-radius:19px; }
    .panel-heading { flex-direction:column; }
    .panel-actions { justify-content:flex-start; }
    .trend-chart { height:220px; margin-left:38px; }
    .chart-legend { margin-left:38px; }
    .source-line { flex-direction:column; }
    .featured-dashboard { min-height:380px; padding:24px; }
    .mini-funnel { right:24px; bottom:70px; width:58%; }
    .card-meta { right:24px; left:24px; }
    .route-card { grid-template-columns:30px minmax(0,1fr) 20px; }
    .route-line { display:none; }
    .dictionary-teaser { min-height:340px; padding:25px; }
    .dictionary-teaser > button { left:25px; }
    .dashboard-title-row { padding:23px 0 19px; }
    .dashboard-title-row h1 { font-size:41px; }
    .title-actions { flex-wrap:wrap; justify-content:flex-start; }
    .filter-bar { top:73px; padding:9px; overflow-x:auto; }
    .active-chips { min-width:max-content; }
    .reset-button { display:none; }
    .dashboard-meta { flex-direction:column; }
    .dashboard-kpis { grid-template-columns:1fr 1fr; }
    .dashboard-kpis article { min-height:116px; padding:16px; }
    .dashboard-kpis strong { font-size:25px; }
    .journey-panel { padding:20px; }
    .journey-chart { grid-template-columns:1fr; }
    .stage-track { height:36px; }
    .decision-note { align-items:flex-start; flex-wrap:wrap; }
    .decision-note > button { margin-left:50px; }
    .rank-row { grid-template-columns:88px 1fr 38px; }
    .drawer { padding:21px; }
    .sidebar { width:min(284px,88vw); }
    .institutional-footer { margin-top:45px; }
    .institutional-footer-inner { padding:38px 20px 30px; grid-template-columns:1fr; gap:30px; }
    .institutional-footer-lockup { grid-template-columns:132px minmax(0,1fr); gap:16px; }
    .institutional-footer-logo { width:132px; height:64px; }
    .institutional-footer-logo img { width:112px; }
    .institutional-footer-bottom { width:calc(100% - 40px); align-items:flex-start; flex-direction:column; gap:6px; }
    .toast { right:16px; bottom:16px; }
}

@media (max-width:430px) {
    .topbar { grid-template-columns:42px minmax(0,1fr) auto; }
    .board-topbar .topbar-context,.admin-topbar-context { display:none; }
    .top-actions { gap:5px; }
    .theme-toggle { width:40px; }
    .global-search { display:none; }
    .dashboard-kpis { grid-template-columns:1fr; }
    .level-options { grid-template-columns:1fr; }
    .secondary-button { font-size:0; }
    .secondary-button .icon { width:20px; height:20px; }
    .glossary-results button { grid-template-columns:12px minmax(0,1fr); }
    .glossary-results em { grid-column:2; }
}

@media print {
    @page { margin:14mm; }
    .sidebar,.topbar,.demo-status,.title-actions,.filter-bar,.panel-actions,.drawer,.page-backdrop,.toast,.decision-note > button,.text-action { display:none !important; }
    html,body,.app-shell { background:#fff !important; color:#111 !important; }
    .workspace { margin:0; }
    .main-content { width:100%; padding:0; }
    .view[hidden] { display:none !important; }
    .panel,.kpi-ribbon,.dashboard-kpis article,.featured-dashboard,.route-card { border-color:#ddd !important; background:#fff !important; color:#111 !important; box-shadow:none !important; break-inside:avoid; }
    .trend-line-current { stroke:#333 !important; }
    .trend-area { fill:rgba(0,0,0,.06) !important; }
    .institutional-footer { margin-top:30px; border-top-color:#777; background:#fff !important; color:#111 !important; }
    .institutional-footer::before,.institutional-footer-column { display:none; }
    .institutional-footer-inner { padding:24px 0; grid-template-columns:1fr; }
    .institutional-footer p,.institutional-footer-bottom { color:#555 !important; }
    .institutional-footer-bottom { width:100%; }
}

@media (prefers-reduced-motion:reduce) {
    html { scroll-behavior:auto; }
    *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}

@keyframes dictionary-loading { to { transform:rotate(360deg); } }
