/* ============================================================
   VIDNO — STYLES
   Structure:
   1. Design tokens / CSS variables
   2. Reset & base
   3. Utilities (container, grid, buttons, badges)
   4. Header / nav / burger
   5. Pages & hero
   6. Home page sections
   7. Features page
   8. How it works (timeline)
   9. Dashboard
   10. Pricing
   11. Resources
   12. Contacts/about
   13. Footer
   14. Modal & toast
   15. Animations
   16. Responsive
   ============================================================ */

/* ============ 1. DESIGN TOKENS (чирнозовая система) ============ */
:root {
    --paper:         #FFFFFF;
    --ink:           #0B2B2F;
    --muted-light:   #5B6B6D;
    --line-light:    #E2E8E8;
    --wash-light:    #EAF6F5;
    /* —— нейтральная база (75%) —— */
    --bg:            var(--paper);
    --bg-2:          var(--paper);
    --bg-soft:       var(--wash-light);   /* бирюзовый оттенок — мягкие секции / активный фон карты */
    --bg-soft-2:     #CFF3EF;   /* чирнозовый туман — hover / тонкие заливки */
    --surface:       var(--paper);
    --surface-text:  var(--ink);
    --text:          var(--ink);
    --text-soft:     var(--muted-light);
    --border:        var(--line-light);
    --surface-1:     #4F6F6F;   /* боковые/верхние панели, чередование строк */
    --night:         #012533;   /* ночь — тёмные экраны/обложки */

    /* —— акцентный чирнозовый (15%) —— */
    --accent:        #028090;   /* первичный: CTA, активная навигация, заголовки разделов */
    --accent-2:      #008896;   /* вторичный: иконки, второстепенные акценты, линии графиков */
    --accent-3:      #008896;
    --accent-warn:   #5A7517;

    /* —— функциональные статусы (10%) —— */
    --ok:            #1D9E75;
    --warn:          #5A7517;
    --bad:           #2B4B4A;
    --neutral:       #888780;

    --shadow:        0 2px 10px rgba(11, 43, 47, 0.06);
    --shadow-soft:   0 2px 10px rgba(11, 43, 47, 0.06);
    --radius:        14px;
    --radius-sm:     8px;
    --radius-lg:     22px;
    --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --max-w:         1200px;
    --header-h:      72px;
    --font:          'Inter', system-ui, -apple-system, sans-serif;
    --grad-hero:     linear-gradient(135deg, #FFFFFF 0%, #EAF6F5 50%, #FFFFFF 100%);
    --grad-cta:      #012533;
}

html[data-theme="dark"] {
    --bg: var(--night);
    --bg-2: var(--night);
    --bg-soft: var(--surface-1);
    --surface: var(--surface-1);
    --surface-text: var(--bg-soft-2);
    --text: var(--bg-soft-2);
    --text-soft: var(--bg-soft-2);
    --accent: var(--bg-soft-2);
    --accent-2: var(--bg-soft-2);
    --accent-3: var(--bg-soft-2);
    --border: var(--surface-1);
    --grad-hero: var(--night);
    --grad-cta: var(--night);
}

/* ============ 2. RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); overflow-x: hidden; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background var(--transition), color var(--transition);
    overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.cookie-preferences {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 180;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
    font-size: .8rem;
    font-weight: 600;
}
.cookie-preferences:hover { border-color: var(--accent); color: var(--accent); }
.cookie-consent {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 180;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
}
.cookie-consent[hidden], .cookie-preferences[hidden] { display: none; }
.cookie-consent-copy { min-width: 0; }
.cookie-consent-copy strong { display: block; margin-bottom: 3px; font-size: .95rem; }
.cookie-consent-copy p { color: var(--text-soft); font-size: .82rem; line-height: 1.45; }
.cookie-consent-copy a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-consent-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.cookie-consent-actions button {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .78rem;
    font-weight: 700;
}
.cookie-consent-allow { background: var(--accent); border-color: var(--accent) !important; color: var(--bg); }
.cookie-consent-deny, .cookie-consent-close { background: var(--surface); color: var(--text); }
.cookie-consent-actions button:hover { border-color: var(--accent); }

@media (max-width: 768px) {
    .cookie-consent { align-items: stretch; flex-direction: column; gap: 12px; right: 12px; bottom: 12px; left: 12px; padding: 16px; }
    .cookie-consent-actions { flex-wrap: wrap; }
    .cookie-consent-actions button { flex: 1 1 auto; }
    .cookie-preferences { left: 12px; bottom: 12px; }
}

/* ============ 3. UTILITIES ============ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px, 2.5vw, 42px); width: 100%; }
.container-narrow { max-width: 820px; }

.accent { color: var(--accent); }
.accent-fill { fill: var(--accent); }
.muted { color: var(--text-soft); font-size: 0.875rem; }

.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 12px 0; color: var(--accent); }
.section-sub { color: var(--text-soft); font-size: 1.05rem; }

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-2);
    font-weight: 600;
}

.badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-soft);
    color: var(--accent);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.grid { display: grid; gap: 24px; margin-bottom: 35px;}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Buttons — monochrome, solid black / outlined, inversion on hover */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    white-space: nowrap;
    border: 1px solid var(--accent);
}
.btn-primary {
    background: var(--accent);
    color: var(--bg);
}
.btn-primary:hover { background: var(--bg); color: var(--accent); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
}
.btn-ghost:hover { background: var(--accent); color: var(--bg); }
.btn-light { background: #fff; color: var(--night); border-color: var(--night); }
.btn-light:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* icon color variants — нейтральный фон + чирнозовая иконка */
.ic-blue, .ic-purple, .ic-green, .ic-orange {
    background: var(--bg-soft);
    color: var(--accent-2);
}

/* ============ 4. HEADER ============ */
.header {
    position: fixed; top: 0; right: 0; left: 0; z-index: 100;
    background: var(--bg);
    border-bottom: 2px solid var(--accent);
    height: var(--header-h);
    display: flex; align-items: center;
}
#main { padding-top: var(--header-h); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; gap: 24px;
}
.header-left { display: flex; align-items: center; gap: 28px; }
.header .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--text); }
.header .logo-text { color: var(--text); }
.header .logo-text .accent { color: var(--accent); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; }
.logo-text .accent { color: var(--accent); }
.theme-toggle { display: inline-grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--text-soft); background: var(--surface); transition: all var(--transition); }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
html:not([data-theme-switching="enabled"]) #themeToggle { display: none; }
.account-pill { display: inline-flex; max-width: 190px; align-items: center; gap: 8px; min-height: 38px; padding: 0 13px; overflow: hidden; border: 1px solid var(--border); border-radius: 9px; color: var(--text); background: var(--surface); font-size: .8rem; font-weight: 700; }
.account-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo-mark { width: 36px; height: 36px; flex: 0 0 auto; object-fit: contain; }
.nav { display: flex; gap: 4px; }
.nav-link {
    padding: 8px 14px; border-radius: var(--radius-sm);
    color: var(--text-soft); font-weight: 500; font-size: 0.95rem;
    transition: all var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--bg-soft); }
.nav-link.active { color: var(--bg); background: var(--accent); border-radius: var(--radius-sm); }

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

.btn-login {
    background: transparent;
    border: 1px solid var(--text);
    color: var(--text);
}
.btn-login:hover { background: var(--text); color: var(--bg); border-color: var(--text); transform: translateY(-2px); }
.btn-signup { padding: 11px 20px; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ 5. PAGES & HERO ============ */
.page { display: none; min-height: 60vh; }
.page.active { display: block; animation: fadeInPage 0.4s ease; }
@keyframes fadeInPage { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.page-hero {
    background: var(--grad-hero);
    padding: 70px 0 50px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.page-title { font-size: clamp(2rem, 4vw, 3rem); margin: 12px 0; }
.page-sub { color: var(--text-soft); font-size: 1.1rem; max-width: 700px; margin: 0 auto; }
#section-how .page-hero { background: none; border-bottom: none; }
#section-pricing .page-hero { background: none; border-bottom: none; }
#section-features { padding-top: 23px; }
.section-hero-bg { background: var(--grad-hero); }

/* HERO */
.hero {
    position: relative;
    background: var(--grad-hero);
    padding: 60px 0 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 136, 150, 0.07), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(2, 128, 144, 0.06), transparent 40%);
    animation: heroPulse 8s ease-in-out infinite alternate;
}
@keyframes heroPulse { from { transform: scale(1); } to { transform: scale(1.08); } }

.hero-inner {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
    align-items: center;
}
.hero-title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; margin-bottom: 18px; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-soft); margin-bottom: 28px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 32px; }
.hero-stats strong { display: block; font-size: 1.6rem; color: var(--accent); }
.hero-stats span { font-size: 0.85rem; color: var(--text-soft); }

/* HERO VISUAL / DASH MOCK */
.hero-visual { position: relative; }
.dash-mock {
    background: var(--surface); color: var(--surface-text);
    border-radius: var(--radius); box-shadow: var(--shadow);
    overflow: hidden;
}
.dash-mock-head {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px; border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: var(--bad); } .dot.yellow { background: var(--warn); }
.dot.green { background: var(--ok); }
.dash-mock-title { margin-left: 10px; font-size: 0.78rem; color: var(--text-soft); }
.dash-mock-body { padding: 18px; }
.dm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.dm-card-label { font-size: 0.72rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.08em; }
.dm-card-value { font-size: 1.6rem; font-weight: 800; }
.dm-card-value sup { font-size: 0.9rem; color: var(--text-soft); }
.dm-bar { height: 6px; background: var(--bg-soft-2); border-radius: 3px; overflow: hidden; }
.dm-bar span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.dm-chart { height: 120px; background: var(--bg-soft); border-radius: 8px; padding: 8px; }
.dm-chart svg { width: 100%; height: 100%; }
.dm-line { fill: none; stroke: var(--accent-2); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.dm-area { fill: var(--accent); opacity: 0.12; }
.dm-legend { display: flex; gap: 14px; margin-top: 10px; font-size: 0.75rem; color: var(--text-soft); }
.dm-legend i { font-size: 0.5rem; margin-right: 4px; }
.dm-legend span:nth-child(1) i { color: var(--accent); }
.dm-legend span:nth-child(2) i { color: var(--accent-2); }
.dm-legend span:nth-child(3) i { color: var(--surface-1); }

.floating-chip {
    position: absolute;
    background: var(--surface); color: var(--surface-text);
    padding: 8px 14px; border-radius: 999px;
    font-size: 0.8rem; font-weight: 600;
    box-shadow: var(--shadow);
    animation: floatY 4s ease-in-out infinite;
    border: 1px solid var(--border);
}
.floating-chip i { color: var(--accent-2); margin-right: 6px; }
.chip-1 { top: -10px; right: 10px; }
.chip-2 { bottom: -10px; left: -10px; animation-delay: 1.5s; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ============ 6. HOME SECTIONS ============ */
.logos-strip { padding: 40px 0; border-bottom: 1px solid var(--border); }
.logos-title { text-align: center; color: var(--text-soft); margin-bottom: 18px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.logos-row {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.logos-track {
    display: flex; width: max-content; will-change: transform;
}
.logos-track.is-ready { animation: marquee 26s linear infinite; }
.logos-group { display: flex; gap: 40px; padding-right: 40px; flex: 0 0 auto; }
@keyframes marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-25%,0,0); } }
.logo-pill {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 999px;
    background: var(--bg-soft); border: 1px solid var(--border);
    color: var(--text-soft); font-weight: 600; font-size: 0.9rem;
    white-space: nowrap;
}
.logo-pill i { color: var(--accent); }
.logo-pill .ai-logo { width: 22px; height: 22px; flex-basis: 22px; }
.logo-pill .ai-logo img { width: 18px; height: 18px; }
.ai-logo, .identity-avatar {
    display: inline-grid; flex: 0 0 24px; width: 24px; height: 24px;
    place-items: center; overflow: hidden; border: 1px solid var(--border);
    border-radius: 7px; color: var(--text); background: var(--surface);
    font-size: .55rem; font-style: normal; font-weight: 800; line-height: 1;
}
.ai-logo img, .identity-avatar img { width: 20px; height: 20px; object-fit: contain; }
.identity-avatar.model-avatar { border-color: var(--bg-soft-2); background: var(--surface); }
.ws-meta-provider { display: inline-flex; align-items: center; gap: 8px; }

.adv-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: all var(--transition);
}
.adv-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.adv-icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: grid; place-items: center; font-size: 1.4rem;
    margin-bottom: 18px;
    background: var(--bg-soft); color: var(--accent-2);
}
.adv-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.adv-card p { color: var(--text-soft); }

.scenario-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.scenario-tab {
    padding: 10px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text-soft);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.scenario-tab:hover {
    border-color: var(--accent);
    color: var(--text);
}
.scenario-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}
.scenario-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.scenario-panel {
    display: none;
}
.scenario-panel.active {
    display: block;
}
.scenario-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    background: var(--bg-soft);
    color: var(--accent);
}
.scenario-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text);
}
.scenario-panel p {
    color: var(--text-soft);
    margin-bottom: 20px;
}
.scenario-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}
.scenario-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    position: relative;
    padding-left: 24px;
}
.scenario-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
}
.scenario-list li:last-child {
    border-bottom: none;
}

.testimonial {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px; text-align: center;
    max-width: 820px; margin: 0 auto;
    position: relative;
}
.testimonial-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--grad-cta); color: #fff;
    display: grid; place-items: center;
    font-weight: 700; font-size: 1.2rem;
    margin: 0 auto 16px;
}
.testimonial blockquote { font-size: 1.2rem; font-style: italic; margin-bottom: 16px; }
.testimonial-author strong { display: block; }
.testimonial-author span { color: var(--text-soft); font-size: 0.9rem; }
.testimonial-nums { display: flex; justify-content: center; gap: 40px; margin-top: 24px; }
.testimonial-nums strong { display: block; font-size: 1.5rem; color: var(--accent); }
.testimonial-nums span { font-size: 0.8rem; color: var(--text-soft); }

.cta-box {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
    flex-wrap: wrap;
}
.cta-bright { background: var(--grad-cta); color: #fff; border: none; }
.cta-bright .cta-text h2, .cta-bright .cta-list { color: #fff; }
.cta-text h2 { font-size: 1.5rem; margin-bottom: 14px; }
.cta-list { display: flex; flex-direction: column; gap: 8px; color: var(--text-soft); }
.cta-list i { color: var(--accent-3); margin-right: 8px; }
.center-cta { text-align: center; margin-top: 30px; }

/* ============ COMPARE TABLE ============ */
.compare-table-wrap { max-width: 720px; margin: 0 auto; overflow-x: auto; }
.compare-table {
    width: 100%; border-collapse: collapse;
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.compare-table th, .compare-table td {
    padding: 16px 20px; text-align: center;
    border-bottom: 1px solid var(--border); font-size: 0.95rem;
}
.compare-table th:first-child, .compare-table td:first-child { text-align: left; }
.compare-table thead th {
    background: var(--bg-soft); font-weight: 700;
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-soft);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-accent {
    background: var(--bg-soft-2); color: var(--accent);
    font-weight: 800;
    border-left: 2px solid var(--accent);
}
.compare-table thead .compare-accent { background: var(--accent); color: #fff; font-weight: 800; }
.compare-yes { color: var(--ok); font-size: 1.1rem; }
.compare-no { color: var(--neutral); font-size: 1.1rem; }

/* ============ 7. FEATURES ============ */
.features-grid { margin-top: 8px; }
.feature-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex; flex-direction: column;
    transition: all var(--transition);
    cursor: pointer;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.feature-ic {
    width: 56px; height: 56px; border-radius: 14px;
    display: grid; place-items: center; font-size: 1.4rem;
    margin-bottom: 18px;
    background: var(--bg-soft); color: var(--accent-2);
    transition: all var(--transition);
}
.feature-card:hover .feature-ic { background: var(--accent); color: #fff; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-soft); margin-bottom: 16px; flex: 1; }
.feature-link { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.feature-link i { transition: transform var(--transition); }
.feature-card:hover .feature-link i { transform: translateX(4px); }

/* ============ 8. TIMELINE ============ */
.timeline { position: relative; padding: 20px 0; }
.timeline-line {
    position: absolute; left: 28px; top: 0; bottom: 0;
    width: 2px; background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
}
.tl-step {
    display: grid; grid-template-columns: 60px 1fr;
    gap: 24px; padding: 0 0 50px; position: relative;
}
.tl-num {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--accent);
    color: var(--accent); font-weight: 800; font-size: 1.3rem;
    display: grid; place-items: center; z-index: 2; position: relative;
}
.tl-icon { display: none; }
.tl-content {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
}
.tl-content:hover { border-color: var(--accent); transform: translateX(4px); }
.tl-content h3 { font-size: 1.2rem; margin-bottom: 8px; }
.tl-content p { color: var(--text-soft); margin-bottom: 16px; }
.tl-mock { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 16px; }

.form-mock .mock-field { display: flex; gap: 12px; align-items: center; padding: 6px 0; font-size: 0.85rem; }
.form-mock .mock-field span { color: var(--text-soft); min-width: 100px; }
.mock-input {
    flex: 1; background: var(--bg); border: 1px solid var(--border);
    border-radius: 6px; padding: 6px 10px; font-size: 0.85rem;
}
.run-mock { display: flex; align-items: center; gap: 12px; color: var(--text-soft); }
.spinner {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid var(--border); border-top-color: var(--accent);
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mini-dash { display: flex; gap: 14px; }
.mini-kpi-card {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 12px;
    text-align: center;
}
.mini-kpi-val { font-size: 1.4rem; font-weight: 800; color: var(--accent); line-height: 1; }
.mini-kpi-val span { font-size: 0.85rem; font-weight: 600; }
.mini-kpi-lbl { font-size: 0.7rem; color: var(--text-soft); margin: 4px 0 10px; text-transform: uppercase; letter-spacing: 0.06em; display: flex; align-items: center; justify-content: center; gap: 4px; }
.tooltip-icon { position: relative; cursor: help; }
.tooltip-icon i { font-size: 0.75rem; opacity: 0.5; transition: opacity var(--transition), color var(--transition); }
.tooltip-icon:hover i { opacity: 1; color: var(--accent); }
.tooltip-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--night);
    color: #fff;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    z-index: 10;
}
.tooltip-icon:hover::after { opacity: 1; }
.mini-bar { height: 6px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.mini-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

.grow-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 999px; padding: 5px 12px;
    font-size: 0.78rem; font-weight: 600; color: var(--accent);
    white-space: nowrap;
}
.grow-chip.up { color: var(--ok); border-color: rgba(29,158,117,0.3); }
.grow-chip.muted { color: var(--text-soft); }

.grow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.grow-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 14px 16px;
    display: flex; flex-direction: column; gap: 12px;
}
.grow-wide { grid-column: 1 / -1; }
.grow-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grow-card-title { font-size: 0.82rem; font-weight: 700; color: var(--text); }

/* — вертикальные столбцы (видимость) — */
.grow-bars { display: flex; gap: 10px; align-items: flex-end; height: 120px; padding: 4px 4px 0; }
.grow-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.grow-top { font-size: 0.72rem; font-weight: 700; color: var(--text-soft); }
.grow-top.accent { color: var(--accent); }
.grow-bar {
    width: 100%; max-width: 34px; flex: 1;
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: 8px 8px 0 0;
    display: flex; align-items: flex-end; justify-content: center;
    overflow: hidden;
}
.grow-bar span {
    display: block; width: 100%;
    background: linear-gradient(to top, var(--accent), var(--accent-2));
    border-radius: 6px 6px 0 0;
    min-height: 4px;
}
.grow-bar.hit span { background: linear-gradient(to top, var(--accent), var(--bg-soft-2)); }
.grow-lbl { font-size: 0.64rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.04em; }

/* — горизонтальные полосы (доля голоса по AI) — */
.grow-hbars { display: flex; flex-direction: column; gap: 10px; }
.grow-hrow { display: grid; grid-template-columns: 72px 1fr 34px; align-items: center; gap: 10px; }
.grow-hname { font-size: 0.76rem; color: var(--text); font-weight: 500; }
.grow-hbar { height: 10px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.grow-hbar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.grow-hrow:nth-child(2) .grow-hbar span { background: var(--accent-2); }
.grow-hrow:nth-child(3) .grow-hbar span { background: var(--surface-1); }
.grow-hrow:nth-child(4) .grow-hbar span { background: var(--neutral); }
.grow-hval { font-size: 0.76rem; font-weight: 700; color: var(--text-soft); text-align: right; }

/* — линейный график (позиции) — */
.grow-line-chart svg { width: 100%; height: 96px; }
.grow-line { stroke: var(--accent); stroke-width: 2.5; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.grow-line-area { stroke: none; }
.grow-line-axis { display: flex; justify-content: space-between; font-size: 0.66rem; color: var(--text-soft); padding: 2px 4px 0; }
.grow-line-axis .accent { color: var(--accent); font-weight: 700; }

/* — прогресс выполнения задач — */
.grow-progress-row { display: flex; flex-direction: column; gap: 14px; }
.grow-progress { height: 16px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.grow-progress span { display: block; height: 100%; background: linear-gradient(to right, var(--accent), var(--accent-2)); border-radius: 999px; }
.grow-progress-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grow-progress-stats > div { text-align: center; }
.grow-progress-stats strong { display: block; font-size: 1.15rem; color: var(--accent); }
.grow-progress-stats span { font-size: 0.66rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.04em; }

.grow-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.data-table th { color: var(--text-soft); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover { background: var(--bg-soft); }
/* ============ 10. PRICING ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px;
    display: flex; flex-direction: column; position: relative;
    transition: all var(--transition);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-popular { border-color: var(--accent); border-width: 2px; box-shadow: var(--shadow); }
.price-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #fff;
    padding: 5px 16px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}
.price-name { font-size: 1.3rem; margin-bottom: 8px; }
.price-value { font-size: 2.5rem; font-weight: 800; margin-bottom: 6px; }
.price-value span { font-size: 1rem; color: var(--text-soft); font-weight: 500; }
.price-desc { color: var(--text-soft); margin-bottom: 22px; font-size: 0.9rem; }
.price-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.price-features li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; }
.price-features i { color: var(--accent-3); }
.price-features .off { color: var(--text-soft); opacity: 0.55; }
.price-features .off i { color: var(--text-soft); }

.pricing-toggle {
    display: flex; align-items: center; justify-content: center;
    gap: 14px; margin-bottom: 32px;
}
.pricing-toggle-label { font-size: 0.95rem; font-weight: 600; color: var(--text-soft); transition: color var(--transition); }
.pricing-toggle-label.active { color: var(--text); }
.pricing-save {
    display: inline-block; background: var(--ok); color: #fff;
    padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
    margin-left: 4px;
}
.toggle-switch { position: relative; width: 48px; height: 26px; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; inset: 0;
    background: var(--border); border-radius: 999px;
    transition: background var(--transition);
}
.toggle-slider::before {
    content: ''; position: absolute;
    width: 20px; height: 20px; border-radius: 50%;
    background: #fff; top: 3px; left: 3px;
    transition: transform var(--transition);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

.price-annual-note {
    font-size: 0.78rem; color: var(--text-soft);
    margin-bottom: 8px; opacity: 0; height: 0;
    transition: opacity var(--transition), height var(--transition);
}
.price-annual-note.visible { opacity: 1; height: auto; margin-bottom: 8px; }

.pricing-guarantee {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin-top: 28px;
    font-size: 0.9rem; font-weight: 600; color: var(--text-soft);
}
.pricing-guarantee i { color: var(--accent); font-size: 1.1rem; }

.accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item:last-child { border-bottom: none; }
.acc-head {
    width: 100%; text-align: left; padding: 18px 22px;
    font-weight: 600; font-size: 1rem;
    display: flex; justify-content: space-between; align-items: center;
    transition: all var(--transition);
}
.acc-head:hover { color: var(--accent); }
.acc-head i { transition: transform var(--transition); color: var(--accent); }
.acc-item.open .acc-head i { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.acc-body p { padding: 0 22px 18px; color: var(--text-soft); }
.acc-item.open .acc-body { max-height: 200px; }

/* ============ 11. RESOURCES ============ */
.blog-card, .video-card, .case-card {
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: all var(--transition); cursor: pointer;
}
.blog-card:hover, .video-card:hover, .case-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.blog-thumb, .video-thumb {
    height: 160px; position: relative; display: grid; place-items: center;
    color: #fff; font-size: 2.5rem;
}
.blog-thumb::after, .video-thumb::after { content:''; position: absolute; inset: 0; background: rgba(1,37,51,0.18); }
.blog-thumb span, .video-thumb .play { position: relative; z-index: 2; }
.blog-body, .video-body, .case-body { padding: 20px; }
.blog-date, .video-date { font-size: 0.78rem; color: var(--text-soft); margin-bottom: 6px; }
.blog-body h3, .video-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-body p, .video-body p { color: var(--text-soft); font-size: 0.9rem; }
.play-btn {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255,255,255,0.9); color: var(--accent);
    display: grid; place-items: center; font-size: 1.3rem;
    transition: transform var(--transition);
}
.video-card:hover .play-btn { transform: scale(1.1); }

.case-card { padding: 24px; }
.case-quote { font-size: 1.05rem; font-style: italic; margin-bottom: 16px; }
.case-author { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.case-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-cta); color: #fff; display: grid; place-items: center; font-weight: 700; }
.case-author strong { display: block; font-size: 0.9rem; }
.case-author span { font-size: 0.78rem; color: var(--text-soft); }
.case-nums { display: flex; gap: 20px; padding-top: 14px; border-top: 1px solid var(--border); }
.case-nums div { flex: 1; }
.case-nums strong { display: block; font-size: 1.2rem; color: var(--accent); }
.case-nums span { font-size: 0.75rem; color: var(--text-soft); }

.glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.gloss-item { padding: 18px 22px; border-bottom: 1px solid var(--border); }
.gloss-item:nth-child(odd) { border-right: 1px solid var(--border); }
.gloss-term { font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.gloss-def { color: var(--text-soft); font-size: 0.9rem; }

/* ============ 12. CONTACTS/ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text .section-title { text-align: left; }
.about-text p { color: var(--text-soft); margin-bottom: 16px; }
.about-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 24px; }
.about-stats strong { display: block; font-size: 1.5rem; color: var(--accent); }
.about-stats span { font-size: 0.78rem; color: var(--text-soft); }
.about-team { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.team-card {
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px; text-align: center;
    transition: all var(--transition);
}
.team-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.team-avatar { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-weight: 700; color: #fff; }
.grad-1 { background: linear-gradient(135deg, var(--night), var(--accent)); }
.grad-2 { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.grad-3 { background: linear-gradient(135deg, var(--accent-2), var(--surface-1)); }
.grad-4 { background: linear-gradient(135deg, var(--night), var(--surface-1)); }
.team-card strong { display: block; }
.team-card span { color: var(--text-soft); font-size: 0.85rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info .section-title { text-align: left; }
.contact-list { margin: 20px 0; display: flex; flex-direction: column; gap: 12px; }
.contact-list i { color: var(--accent); width: 22px; }
.contact-email { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font: inherit; cursor: copy; }
.contact-email > i { width: auto; color: var(--text-soft); font-size: .8rem; }
.contact-email:hover { color: var(--accent); }
.vc-link span, .vc-blog-link span { display: inline-grid; width: 1.25em; height: 1.25em; place-items: center; border-radius: 4px; color: var(--surface); background: var(--accent); font-family: Arial, sans-serif; font-size: .75em; font-weight: 900; letter-spacing: -.08em; }
.vc-blog-link { display: inline-flex; align-items: center; gap: 7px; color: var(--text-soft); font-weight: 600; }
.vc-blog-link:hover { color: var(--accent); }
.contact-list a { overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent); }
.socials { display: flex; gap: 12px; }
.social {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--border);
    display: grid; place-items: center; font-size: 1.1rem;
    color: var(--text-soft); transition: all var(--transition);
}
.social:hover { transform: translateY(-3px); color: var(--surface); background: var(--accent); border-color: var(--accent); }
.socials.small .social { width: 38px; height: 38px; font-size: 1rem; }

.contact-form {
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; }
.form-row input, .form-row textarea {
    width: 100%; background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 12px 14px;
    color: var(--text); font-family: inherit; font-size: 0.95rem; outline: none;
    transition: border-color var(--transition);
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent); }

/* ============ 13. FOOTER ============ */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 50px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 50px; padding-bottom: 40px; }
.footer-brand p { color: var(--text-soft); margin: 14px 0; font-size: 0.9rem; max-width: 320px; }
.footer-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.footer-col h4 { font-size: 0.9rem; margin-bottom: 14px; color: var(--text); }
.footer-col button, .footer-col a { display: block; color: var(--text-soft); font-size: 0.88rem; padding: 4px 0; text-align: left; text-decoration: none; overflow-wrap: anywhere; transition: color var(--transition); }
.footer-col:last-child button, .footer-col:last-child a { display: inline-block; padding: 4px 12px 4px 0; }
.footer-col button:hover, .footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; color: var(--text-soft); }















/* ============ 14. MODAL & TOAST ============ */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(1, 37, 51, 0.6);
    backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
    z-index: 200; padding: 20px;
}
.modal-overlay.open { display: flex; animation: fadeInPage 0.2s ease; }
.modal {
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 30px;
    max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto;
    position: relative; box-shadow: var(--shadow);
    animation: modalIn 0.25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: none; } }
.modal-close {
    position: absolute; top: 14px; right: 14px;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg-soft); color: var(--text-soft);
    display: grid; place-items: center; transition: all var(--transition);
}
.modal-close:hover { color: var(--accent); transform: rotate(90deg); }
.modal-body h2 { font-size: 1.5rem; margin-bottom: 8px; }
.modal-body p { color: var(--text-soft); margin-bottom: 14px; }
.modal-body .form-row input, .modal-body .form-row textarea { background: var(--bg-soft); }
.form-error { color: var(--bad) !important; font-size: .86rem; font-weight: 600; margin: 0 0 12px !important; }
.modal-form button:disabled { cursor: wait; opacity: .65; }
.modal-thumb { height: 160px; border-radius: var(--radius-sm); margin-bottom: 18px; }
.modal-meta { color: var(--text-soft); font-size: 0.85rem; margin-bottom: 10px; }
.video-frame { aspect-ratio: 16/9; border-radius: var(--radius-sm); background: var(--night); display: grid; place-items: center; color: #fff; }
.video-frame i { font-size: 3rem; opacity: 0.7; }

.toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
    background: var(--bg-2); border: 1px solid var(--accent);
    color: var(--text); padding: 14px 24px; border-radius: var(--radius-sm);
    box-shadow: var(--shadow); z-index: 300; opacity: 0;
    transition: all 0.4s ease; font-weight: 600; display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast i { color: var(--accent-3); }
.back-to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 150;
    display: grid; width: 42px; height: 42px; place-items: center;
    border: 1px solid var(--border); border-radius: 50%;
    color: var(--surface); background: var(--accent); box-shadow: var(--shadow);
    font-size: 1.2rem; font-weight: 700; line-height: 1;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
}
.back-to-top:hover { background: var(--accent-2); transform: translateY(-2px); }
.back-to-top:focus-visible { outline: 3px solid var(--bg-soft-2); outline-offset: 3px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }

.ws-result {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.ws-verdict {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 99px; font-weight: 700; font-size: 0.95rem;
    margin-bottom: 16px;
}
.ws-verdict.mentioned { background: #E6F7F0; color: var(--ok); }
.ws-verdict.not-mentioned { background: #FDEAEA; color: #C0392B; }
.app-body .ws-verdict.mentioned { background: var(--status-ok-bg); color: var(--ok); }
.app-body .ws-verdict.not-mentioned { background: var(--status-bad-bg); color: var(--bad); }
.ws-brands-wrap,
.ws-sources-wrap { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.ws-brands { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ws-brands li {
    background: var(--bg-soft); border-radius: var(--radius-sm); padding: 14px 18px;
    font-size: 0.93rem; line-height: 1.6; color: var(--text); border-left: 3px solid var(--accent);
}
.ws-sources { display: flex; flex-direction: column; gap: 10px; }
.ws-source-columns { display: flex; justify-content: flex-end; padding: 0 14px 6px; color: var(--text-muted); font-size: 0.78rem; font-weight: 700; }
.ws-source-card {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-soft); border-radius: var(--radius-sm); padding: 14px 18px;
    font-size: 0.93rem; line-height: 1.6;
}
.ws-source-link {
    flex: 1; color: var(--text); text-decoration: none; font-weight: 500;
    transition: color 0.2s;
}
.ws-source-link:hover { color: var(--accent); text-decoration: underline; }
.ws-source-auth {
    font-size: 0.85rem; padding: 4px 10px; border-radius: 99px; font-weight: 600;
}
.ws-auth-high { background: #E6F7F0; color: var(--ok); }
.ws-auth-med { background: #FFF9E6; color: var(--warn); }
.ws-auth-low { background: #F5F5F5; color: var(--neutral); }
.app-body .ws-auth-high { background: var(--status-ok-bg); }
.app-body .ws-auth-med { background: var(--status-warn-bg); }
.ws-meta {
    display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px;
    padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.ws-meta-item { display: flex; flex-direction: column; gap: 2px; }
.ws-meta-label { font-size: 0.8rem; color: var(--text-soft); }
.ws-meta-value { font-size: 1rem; font-weight: 600; color: var(--text); }
.ws-answer-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.ws-answer {
    background: var(--bg-soft); border-radius: var(--radius-sm);
    padding: 18px; font-size: 0.93rem; line-height: 1.7; color: var(--text);
}

.ws-error {
    background: #FDEAEA; color: #C0392B; border-radius: var(--radius-sm);
    padding: 16px 20px; font-weight: 500;
}
.app-body .ws-error { background: var(--status-bad-bg); color: var(--bad); }








































































































































































/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { max-width: 500px; margin: 0 auto; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav {
        position: fixed; top: var(--header-h); left: 0; right: 0;
        background: var(--bg-2); border-bottom: 1px solid var(--border);
        flex-direction: column; padding: 16px;
        transform: translateY(-150%); transition: transform 0.3s ease;
        max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    }
    .nav.open { transform: translateY(0); }
    .nav-link { padding: 12px 14px; color: var(--text-soft); }
    .nav-link:hover { color: var(--text); background: var(--bg-soft); }
    .nav-link.active { color: #fff; background: var(--accent); }
    .burger { display: flex; }
    .header-actions .btn-signup { display: none; }

    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .about-team { grid-template-columns: 1fr 1fr; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .glossary { grid-template-columns: 1fr; }
    .gloss-item:nth-child(odd) { border-right: none; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .section { padding: 50px 0; }
    .hero { padding: 30px 0 50px; }
    .hero-stats { gap: 18px; }
    .hero-stats strong { font-size: 1.3rem; }
    .testimonial-nums { gap: 20px; flex-wrap: wrap; }
    .cta-box { flex-direction: column; text-align: center; }
    .dm-row { grid-template-columns: 1fr; }
    .grow-grid { grid-template-columns: 1fr; }
    .grow-progress-stats { grid-template-columns: 1fr 1fr; }
    .mini-dash { flex-wrap: wrap; }
    .tooltip-icon::after { left: auto; right: 0; width: min(260px, calc(100vw - 32px)); white-space: normal; }
    .compare-table th, .compare-table td { padding: 12px 14px; font-size: 0.85rem; }
    .pricing-toggle { flex-wrap: wrap; gap: 10px; }
    .back-to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .footer-cols { grid-template-columns: 1fr; }
    .about-team { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .price-value { font-size: 2rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .logos-row { overflow: visible; -webkit-mask-image: none; mask-image: none; }
    .logos-track { width: 100%; }
    .logos-track.is-ready { animation: none !important; }
    .logos-group { width: 100%; flex-wrap: wrap; justify-content: center; padding-right: 0; }
    .logos-track .logos-group[aria-hidden="true"] { display: none; }
}

.app-body {
    --accent: #028090;
    --accent-2: #00A896;
    --accent-3: #00A896;
    --bg-soft: #EAF6F5;
    --bg-soft-2: #CFF3EF;
    --ok: #1D7F62;
    --warn: #7A5100;
    --bad: #B9363E;
    --neutral: #888780;
    --status-ok-bg: #E6F7F0;
    --status-warn-bg: #FFF4D6;
    --status-bad-bg: #FDEAEA;
    background: var(--bg-soft);
}

@media (max-width: 768px) {
    .header-actions { gap: 8px; }
    .header-actions .account-pill { max-width: 130px; padding: 0 9px; font-size: .72rem; }
    .header-actions .theme-toggle { width: 32px; height: 32px; }
}
html[data-theme="dark"] .app-body {
    --bg-soft: var(--surface-1);
    --surface: var(--surface-1);
    --accent: var(--bg-soft-2);
    --accent-2: var(--bg-soft-2);
    --accent-3: var(--bg-soft-2);
    --text: var(--bg-soft-2);
    --text-soft: var(--bg-soft-2);
    --border: var(--surface-1);
    --status-ok-bg: var(--surface-1);
    --status-warn-bg: var(--surface-1);
    --status-bad-bg: var(--surface-1);
    background: var(--night);
}

html[data-theme="dark"] .compare-section {
    background: var(--night);
}

html[data-theme="dark"] .compare-section .section-title {
    color: var(--bg-soft-2);
}

html[data-theme="dark"] .compare-table {
    background: var(--night);
    border-color: var(--surface-1);
    box-shadow: 0 18px 40px rgba(1, 37, 51, 0.24);
}

html[data-theme="dark"] .compare-table th,
html[data-theme="dark"] .compare-table td {
    color: var(--text);
    border-color: var(--surface-1);
}

html[data-theme="dark"] .compare-table thead th {
    background: var(--surface-1);
    color: var(--bg-soft-2);
}

html[data-theme="dark"] .compare-table .compare-accent,
html[data-theme="dark"] .compare-table thead .compare-accent {
    background: var(--bg-soft-2);
    color: var(--night);
    border-left-color: var(--bg-soft-2);
}

.app-body { overflow-x: clip; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.app-sidebar { display: flex; flex-direction: column; padding: 22px 12px; background: var(--night); color: var(--surface); }
.app-logo { display: flex; align-items: center; gap: 9px; padding: 0 10px 22px; color: var(--surface); font-size: 1.35rem; font-weight: 800; text-decoration: none; border-bottom: 1px solid var(--surface-1); }
.app-logo > span:last-child span { color: var(--accent-2); }
.app-nav { display: flex; flex-direction: column; padding-top: 12px; }
.app-nav-label { margin: 15px 10px 6px; color: var(--bg-soft-2); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.app-nav-item, .app-setup { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 8px; color: var(--bg-soft); background: transparent; font: inherit; font-size: .86rem; text-align: left; cursor: pointer; }
.app-nav-item i { width: 16px; color: var(--neutral); }
.app-nav-item:hover, .app-nav-item.active { background: var(--surface-1); color: var(--surface); }
.app-setup { margin-top: auto; justify-content: center; background: var(--accent); color: var(--surface); }
.app-main { min-width: 0; padding: 0 32px 48px; }
.app-topbar { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; padding: 18px 0; color: var(--text-soft); background: var(--bg); font-size: .84rem; }
.app-topbar a { color: var(--text-soft); text-decoration: none; }
.app-topbar a:hover { color: var(--text); }
.app-topbar-actions { display: flex; align-items: center; gap: 18px; }
.app-project-control { display: flex; min-width: 0; align-items: center; gap: 6px; }
.app-icon-button { display: grid; flex: 0 0 auto; width: 36px; height: 36px; place-items: center; border: 1px solid var(--border); border-radius: 8px; color: var(--text-soft); background: var(--surface); }
.app-icon-button:hover { color: var(--accent); border-color: var(--accent); background: var(--bg-soft); }
.app-account-menu { position: relative; z-index: 30; }
.app-account-trigger { display: grid; min-width: 0; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 4px 7px 4px 4px; border: 1px solid transparent; border-radius: 9px; color: var(--text); background: transparent; text-align: left; }
.app-account-trigger:hover, .app-account-trigger[aria-expanded="true"] { border-color: var(--border); background: var(--surface); }
.app-user-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: var(--accent); background: var(--bg-soft-2); font-size: .68rem; font-weight: 800; }
.app-user-copy { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.app-user-copy strong, .app-user-copy small { max-width: 125px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-user-copy strong { font-size: .7rem; }
.app-user-copy small { color: var(--text-soft); font-size: .58rem; font-weight: 500; }
.app-account-trigger > i { color: var(--text-soft); font-size: .58rem; transition: transform .2s ease; }
.app-account-trigger[aria-expanded="true"] > i { transform: rotate(180deg); }
.app-account-popover { position: absolute; top: calc(100% + 9px); right: 0; width: min(320px, calc(100vw - 32px)); overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.app-account-popover[hidden] { display: none; }
.app-account-summary { display: flex; min-width: 0; align-items: flex-start; gap: 11px; padding: 15px; border-bottom: 1px solid var(--border); }
.app-account-summary > span:last-child { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; gap: 3px; }
.app-account-summary strong, .app-account-summary small { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-account-summary strong { color: var(--text); font-size: .78rem; }
.app-account-summary small { color: var(--text-soft); font-size: .65rem; }
.app-account-summary .access-status-badge { margin-top: 5px; }
.app-account-links { display: grid; gap: 2px; padding: 7px; }
.app-account-links button { display: grid; width: 100%; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 9px; padding: 9px; border-radius: 7px; color: var(--text); background: transparent; text-align: left; }
.app-account-links button[hidden] { display: none; }
.app-account-links button:hover, .app-account-links button:focus-visible { background: var(--bg-soft); }
.app-account-links button > i { color: var(--text-soft); text-align: center; }
.app-account-links button > span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.app-account-links strong { font-size: .72rem; }
.app-account-links small { color: var(--text-soft); font-size: .6rem; font-weight: 500; }
.app-account-footer { display: grid; grid-template-columns: 1fr 1fr; padding: 7px; border-top: 1px solid var(--border); }
.app-account-footer a, .app-account-footer button { display: flex; min-height: 34px; align-items: center; justify-content: center; gap: 7px; border-radius: 7px; color: var(--text-soft); background: transparent; font-size: .65rem; font-weight: 600; }
.app-account-footer a:hover, .app-account-footer button:hover { color: var(--text); background: var(--bg-soft); }
.auth-pending .app-shell { visibility: hidden; }
.app-brand-switcher { display: flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: .76rem; font-weight: 700; }
.app-brand-switcher select { width: min(240px, 32vw); height: 36px; padding: 0 32px 0 10px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: var(--surface); font: inherit; }
.app-view { display: none; max-width: 1180px; margin: 0 auto; }
.app-view.active { display: block; }
.app-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: 22px 0; }
.app-eyebrow { margin: 0 0 4px; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.app-heading h1 { margin: 0 0 7px; font-size: 2rem; color: var(--text); }
.app-heading p:not(.app-eyebrow) { margin: 0; color: var(--text-soft); }
.app-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.app-kpis-four { grid-template-columns: repeat(4, 1fr); }
.app-home-toolbar { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; }
.provider-filter { position: relative; z-index: 8; }
.provider-filter-trigger { display: inline-flex; min-width: 190px; height: 38px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-soft); background: var(--surface); font: inherit; font-size: .75rem; cursor: pointer; }
.provider-filter-trigger strong { margin-left: auto; color: var(--text); font-size: .75rem; }
.provider-filter-trigger i { font-size: .65rem; transition: transform .2s ease; }
.provider-filter-trigger[aria-expanded="true"] i { transform: rotate(180deg); }
.provider-filter-menu { position: absolute; top: calc(100% + 7px); right: 0; width: 260px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.provider-filter-menu[hidden] { display: none; }
.provider-filter-head { display: flex; justify-content: space-between; padding: 3px 3px 9px; color: var(--text); font-size: .75rem; }
.provider-filter-head span { color: var(--text-soft); font-size: .68rem; }
.provider-filter-all { width: 100%; padding: 8px 4px; border: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--accent); background: transparent; font: inherit; font-size: .7rem; text-align: left; cursor: pointer; }
.provider-filter-menu label { display: grid; grid-template-columns: 0 24px 1fr 16px; align-items: center; gap: 8px; padding: 9px 4px; color: var(--text); font-size: .75rem; cursor: pointer; }
.provider-filter-menu input { width: 0; height: 0; opacity: 0; }
.provider-filter-menu label > i { color: var(--accent); opacity: 0; }
.provider-filter-menu label:has(input:checked) > i { opacity: 1; }
.provider-filter-menu .identity-avatar { width: 24px; height: 24px; }
.provider-filter-menu .identity-avatar img { width: 17px; height: 17px; }
.app-grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.app-leaderboard tr.is-current { background: var(--bg-soft); }
.app-kpis article, .app-card, .app-empty { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.app-kpis article { padding: 18px; }
.app-kpis span { display: block; color: var(--text-soft); font-size: .8rem; }
.app-kpis strong { display: block; margin: 7px 0; color: var(--text); font-size: 1.8rem; }
.app-kpis em { font-size: .78rem; font-style: normal; }
.app-kpis .up { color: var(--ok); }
.app-card { margin-bottom: 18px; padding: 20px; }
.app-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.app-card-head h2 { margin: 0; color: var(--text); font-size: 1rem; }
.app-card-head span { color: var(--text-soft); font-size: .78rem; }
.chart-callout { min-height: 26px; display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--text-soft); font-size: .73rem; font-weight: 700; text-align: right; }
.chart-stage { position: relative; min-height: 230px; }
.chart-stage canvas { position: relative; z-index: 1; }
.chart-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px; border: 1px dashed var(--border); border-radius: 10px; background: var(--bg-soft); text-align: center; z-index: 2; }
.chart-empty[hidden] { display: none; }
.chart-empty strong { color: var(--text); font-size: .9rem; }
.chart-empty p { max-width: 300px; margin: 0 0 4px; color: var(--text-soft); font-size: .8rem; line-height: 1.45; }
.app-check-form { display: flex; align-items: flex-end; gap: 10px; }
.app-check-form label { display: flex; flex-direction: column; gap: 6px; min-width: 145px; color: var(--text-soft); font-size: .76rem; font-weight: 700; }
.app-check-form input, .app-check-form select { height: 42px; padding: 0 11px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: var(--surface); font: inherit; }
.app-check-form #wsClearCache { border-color: var(--border); color: var(--text-soft); }
.app-check-form #wsClearCache:hover { border-color: var(--bad); color: var(--bad); background: var(--status-bad-bg); }
.app-field-grow { flex: 1; }
.prompt-suggestions[hidden] { display: none; }
.prompt-suggestion-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.prompt-suggestion-item { display: grid; grid-template-columns: 25px minmax(0, 1fr) 16px; align-items: center; gap: 10px; min-height: 58px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--surface); text-align: left; cursor: pointer; }
.prompt-suggestion-item > span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: var(--accent); background: var(--bg-soft-2); font-size: .68rem; font-weight: 800; }
.prompt-suggestion-item strong { font-size: .78rem; line-height: 1.4; }
.prompt-suggestion-item > i { color: var(--text-soft); font-size: .7rem; }
.prompt-suggestion-item:hover, .prompt-suggestion-item.selected { border-color: var(--accent); background: var(--bg-soft); }
.prompt-suggestion-status { min-height: 18px; margin: 11px 0 0; color: var(--text-soft); font-size: .72rem; }
.app-loader { display: flex; align-items: center; gap: 9px; margin: 14px 0; color: var(--accent); font-weight: 700; }
.app-loader[hidden] { display: none; }
.app-history-list, .app-data-list, .growth-list { display: flex; flex-direction: column; gap: 10px; }
.ai-answer-list { display: flex; flex-direction: column; gap: 14px; }
.ai-answer-card { padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.ai-answer-head, .ai-answer-model { display: flex; align-items: center; gap: 10px; }
.ai-answer-head { justify-content: space-between; }
.ai-answer-model strong, .ai-answer-model span { display: block; }
.ai-answer-model strong { color: var(--text); font-size: .88rem; }
.ai-answer-model span { margin-top: 2px; color: var(--text-soft); font-size: .7rem; }
.ai-answer-query { display: flex; flex-direction: column; gap: 5px; margin-top: 15px; padding: 12px 14px; border-radius: 8px; background: var(--bg-soft); }
.ai-answer-query span { color: var(--text-soft); font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.ai-answer-query strong { color: var(--text); font-size: .84rem; line-height: 1.45; }
.ai-answer-body { margin-top: 15px; color: var(--text); font-size: .84rem; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
.ai-answer-empty { min-height: 260px; }
.growth-list[hidden] { display: none; }
.app-history-row, .app-data-row, .growth-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.app-history-row:last-child, .app-data-row:last-child, .growth-card:last-child { border-bottom: 0; }
.app-history-row strong, .app-data-row strong, .growth-card h3 { display: block; margin: 0 0 3px; color: var(--text); font-size: .9rem; }
.app-history-row span, .app-data-row span, .growth-card p { color: var(--text-soft); font-size: .8rem; }
.app-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 52px 20px; color: var(--text-soft); text-align: center; }
.app-empty i { color: var(--text-soft); font-size: 1.5rem; }.app-empty strong { color: var(--text); }
.growth-card { align-items: flex-start; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.growth-card p { margin: 0; max-width: 680px; }.growth-card .btn { white-space: nowrap; }
.growth-priority { display: inline-block; margin-bottom: 8px; padding: 3px 7px; border-radius: 99px; color: var(--surface); background: var(--bad); font-size: .7rem; font-weight: 700; }.growth-priority.med { background: var(--warn); }.growth-priority.low { background: var(--neutral); }

.brief-dialog { width: min(680px, calc(100% - 30px)); border: 1px solid var(--border); border-radius: 14px; padding: 28px; color: var(--text); background: var(--surface); }
.brief-dialog.fullscreen[open] { display: flex; flex-direction: column; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; box-sizing: border-box; overflow: hidden; border: 0; border-radius: 0; }
.brief-dialog.fullscreen[open] #briefContent { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.brief-dialog.fullscreen .brief-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); background: var(--bg); }
.brief-dialog.fullscreen .brief-header h2 { margin: 0; font-size: 1.25rem; }
.brief-dialog.fullscreen .brief-body { flex: 1; min-height: 0; padding: 2rem; overflow-y: auto; }
.brief-dialog.fullscreen .brief-body-inner { max-width: 800px; margin: 0 auto; }
.brief-dialog.fullscreen .brief-footer { padding: 1.5rem 2rem; border-top: 1px solid var(--border); background: var(--bg); }
.brief-dialog.fullscreen .brief-footer-inner { display: flex; justify-content: flex-end; max-width: 800px; margin: 0 auto; gap: 1rem; }
.brief-close { border: 0; color: var(--text-soft); background: transparent; font: inherit; font-size: 2rem; line-height: 1; cursor: pointer; }
.brief-close:hover { color: var(--accent); }
.brief-dialog::backdrop { background: var(--night); opacity: .45; }
@media (max-width: 768px) { .brief-dialog.fullscreen .brief-header, .brief-dialog.fullscreen .brief-footer { padding: 1rem; }.brief-dialog.fullscreen .brief-body { padding: 1rem; } }

.growth-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 58px; margin: 8px 0 0; padding: 10px 14px 10px 16px; border: 1px solid var(--border); border-radius: 10px 10px 0 0; background: var(--surface); }
.growth-toolbar-copy { min-width: 0; }
.growth-toolbar-copy > span, .growth-action-label, .growth-result-kicker { color: var(--text-soft); font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.growth-toolbar-copy strong { display: inline; margin-left: 9px; color: var(--text); font-size: .88rem; }
.growth-toolbar-copy p { display: inline; margin: 0 0 0 8px; color: var(--text-soft); font-size: .74rem; }
.growth-toolbar-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 14px; }
.growth-compact-stats { display: flex; align-items: center; gap: 0; color: var(--text-soft); font-size: .69rem; white-space: nowrap; }
.growth-compact-stats span { padding: 0 10px; border-right: 1px solid var(--border); }
.growth-compact-stats span:first-child { padding-left: 0; }
.growth-compact-stats span:last-child { border-right: 0; }
.growth-compact-stats strong { margin-right: 3px; color: var(--text); font-size: .8rem; }
.growth-tabs { display: flex; min-height: 44px; margin: 0 0 10px; padding: 0 10px; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 10px 10px; background: var(--surface); }
.growth-tabs .app-tab { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 43px; padding: 0 12px; border: 0; color: var(--text-soft); text-align: left; }
.growth-tabs .app-tab.active { border: 0; color: var(--accent); background: transparent; }
.growth-tabs .app-tab.active::after { content: ''; position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); }
.growth-tabs .app-tab strong { color: inherit; font-size: .76rem; }
.growth-tab-count { display: inline-grid; min-width: 24px; height: 24px; place-items: center; border-radius: 99px; background: var(--bg-soft); color: var(--text-soft); font-size: .7rem; font-weight: 800; }
.growth-tabs .app-tab.active .growth-tab-count { background: var(--bg-soft-2); color: var(--accent); }
.growth-card-main { flex: 1; min-width: 0; }
.growth-card-badges, .growth-task-meta, .growth-card-actions, .growth-dialog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.growth-tag, .growth-status, .growth-verdict { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 8px; border-radius: 99px; font-size: .7rem; font-weight: 700; }
.growth-tag { color: var(--text-soft); background: var(--bg-soft); }
.growth-status { color: var(--text-soft); background: var(--bg-soft); }
.growth-status.status-ready_for_check { color: var(--ok); background: var(--status-ok-bg); }
.growth-quick-status { position: relative; display: inline-flex; align-items: center; }
.growth-quick-status > .growth-action-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.growth-quick-status select { min-height: 25px; padding: 3px 26px 3px 8px; border: 0; border-radius: 99px; color: var(--text-soft); background-color: var(--bg-soft); font: inherit; font-size: .7rem; font-weight: 700; cursor: pointer; }
.growth-quick-status select.status-ready_for_check { color: var(--ok); background-color: var(--status-ok-bg); }
.growth-quick-status select:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.growth-evidence { display: grid; grid-template-columns: minmax(100px, 135px) minmax(0, 1fr); gap: 7px 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.growth-evidence strong, .growth-suggestion strong { color: var(--text); font-size: .76rem; }
.growth-evidence span, .growth-suggestion span { color: var(--text-soft); font-size: .8rem; line-height: 1.45; overflow-wrap: anywhere; }
.growth-suggestion { display: flex; flex-direction: column; gap: 4px; margin-top: 13px; padding: 12px; border-radius: 8px; background: var(--bg-soft); }
.growth-card { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 24px; padding: 22px; border-radius: 12px; box-shadow: var(--shadow); }
.growth-card h3 { margin-top: 10px; font-size: 1rem; line-height: 1.35; }
.growth-card-actions { align-self: stretch; justify-content: flex-start; align-content: flex-start; flex-direction: column; padding-left: 20px; border-left: 1px solid var(--border); }
.growth-card-actions .btn { width: 100%; }
.growth-action-label { width: 100%; margin-bottom: 3px; }
.growth-task-meta { margin-top: 12px; color: var(--text-soft); font-size: .76rem; }
.growth-task-meta span { display: inline-flex; align-items: center; gap: 6px; }
.growth-verdict.positive { color: var(--ok); background: var(--status-ok-bg); }
.growth-verdict.negative { color: var(--bad); background: var(--status-bad-bg); }
.growth-verdict.neutral { color: var(--neutral); background: var(--bg-soft); }
.growth-result { border-top: 3px solid var(--neutral); }
.growth-result.result-positive { border-top-color: var(--ok); }
.growth-result.result-negative { border-top-color: var(--bad); }
.growth-result-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.growth-result-verdict { display: flex; align-items: center; gap: 8px; margin-top: 5px; color: var(--neutral); }
.growth-result-verdict i { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--bg-soft); font-size: .72rem; }
.growth-result-verdict strong { color: inherit; font-size: 1.12rem; line-height: 1.2; }
.growth-result-verdict.positive { color: var(--ok); }
.growth-result-verdict.positive i { background: var(--status-ok-bg); }
.growth-result-verdict.negative { color: var(--bad); }
.growth-result-verdict.negative i { background: var(--status-bad-bg); }
.growth-before-after { display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); align-items: stretch; gap: 12px; margin-top: 16px; }
.growth-before-after > div { display: flex; min-height: 94px; flex-direction: column; justify-content: center; gap: 6px; padding: 15px 16px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-soft); }
.growth-result.result-positive .growth-before-after .growth-after { border-color: var(--ok); background: var(--status-ok-bg); }
.growth-result.result-negative .growth-before-after .growth-after { border-color: var(--bad); background: var(--status-bad-bg); }
.growth-before-after span, .growth-before-after small { color: var(--text-soft); font-size: .72rem; }
.growth-before-after strong { color: var(--text); font-size: .9rem; line-height: 1.35; }
.growth-before-after > i { align-self: center; justify-self: center; color: var(--neutral); }
.growth-result.result-positive .growth-before-after > i { color: var(--ok); }
.growth-result.result-negative .growth-before-after > i { color: var(--bad); }
.growth-disclaimer { position: relative; margin-top: 13px !important; padding-left: 14px; font-size: .73rem !important; line-height: 1.45; }
.growth-disclaimer::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 0; width: 2px; border-radius: 2px; background: var(--border); }
.growth-empty { min-height: 180px; border-style: dashed; box-shadow: none; }
.growth-empty strong { font-size: .95rem; }
.growth-empty span { max-width: 420px; line-height: 1.5; }
.growth-dialog-evidence { margin-bottom: 18px; padding: 15px; border-radius: 10px; background: var(--bg-soft); }
.growth-dialog-evidence > strong { color: var(--text); font-size: .85rem; }
.growth-dialog-evidence > p { margin: 5px 0 12px; font-size: .82rem; }
.growth-dialog-evidence dl { display: grid; gap: 7px; margin: 0; }
.growth-dialog-evidence dl div { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 12px; }
.growth-dialog-evidence dt { color: var(--text-soft); font-size: .73rem; }
.growth-dialog-evidence dd { margin: 0; color: var(--text); font-size: .78rem; overflow-wrap: anywhere; }
.growth-dialog-evidence blockquote { margin: 13px 0 0; padding-left: 12px; border-left: 3px solid var(--accent); color: var(--text-soft); font-size: .78rem; line-height: 1.5; }
.growth-task-form { display: flex; flex-direction: column; gap: 13px; }
.growth-task-form label { display: flex; flex-direction: column; gap: 6px; color: var(--text-soft); font-size: .75rem; font-weight: 700; }
.growth-task-form input, .growth-task-form select, .growth-task-form textarea { width: 100%; padding: 10px 11px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: var(--surface); font: inherit; resize: vertical; }
.growth-task-form input, .growth-task-form select { min-height: 40px; }
.growth-task-form input:focus, .growth-task-form select:focus, .growth-task-form textarea:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.growth-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.growth-form-status { min-height: 20px; margin: 0 !important; font-size: .76rem; }
.growth-form-status.success { color: var(--ok); }.growth-form-status.error { color: var(--bad); }
.growth-dialog-actions { padding-top: 4px; }
.growth-delete { margin-left: auto; color: var(--bad); }
.brand-settings { max-width: 980px; }
.brand-settings-field { display: flex; max-width: 620px; flex-direction: column; gap: 7px; color: var(--text-soft); font-size: .75rem; font-weight: 700; }
.brand-settings-field > div, .brand-settings-add { display: flex; gap: 8px; }
.brand-settings-field input, .brand-settings-add input { min-width: 0; flex: 1; height: 40px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: var(--surface); font: inherit; }
.brand-settings-field input:focus, .brand-settings-add input:focus { outline: 2px solid var(--bg-soft-2); border-color: var(--accent); }
.brand-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.brand-settings-grid h3 { font-size: .88rem; }
.brand-settings-grid p, .brand-suggestions p { margin: 4px 0 10px; color: var(--text-soft); font-size: .72rem; }
.brand-chip-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.brand-chip, .brand-suggestion-chip { display: inline-flex; min-height: 30px; align-items: center; gap: 7px; padding: 5px 9px; border: 1px solid var(--border); border-radius: 99px; color: var(--text); background: var(--bg-soft); font-size: .72rem; font-weight: 600; }
.brand-chip button { display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; color: var(--text-soft); background: var(--surface); font-size: .78rem; }
.brand-chip button:hover, .brand-suggestion-chip:hover { color: var(--accent); border-color: var(--accent); }
.brand-settings-empty { color: var(--text-soft); font-size: .7rem; }
.brand-suggestions { margin-top: 20px; padding: 14px; border-radius: 8px; background: var(--bg-soft); }
.brand-suggestions:empty { display: none; }
.brand-suggestions > strong { font-size: .8rem; }
.brand-merge-action { margin-top: 7px; color: var(--text-soft); font-size: .62rem; font-weight: 700; }
.brand-merge-action:hover, .brand-merge-action.suggested { color: var(--accent); }
.app-history-actions { display: flex; align-items: center; gap: 10px; }
.app-history-actions button { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 6px; color: var(--text-soft); background: transparent; }
.app-history-actions button:hover { color: var(--bad); background: var(--status-bad-bg); }
.app-history-actions button[data-check-details]:hover, .app-history-actions button[data-repeat-check]:hover { color: var(--accent); background: var(--bg-soft-2); }
.check-details-dialog { width: min(920px, calc(100vw - 32px)); max-height: min(860px, calc(100vh - 32px)); padding: 0; border: 1px solid var(--border); border-radius: 16px; color: var(--text); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.check-details-dialog::backdrop { background: color-mix(in srgb, var(--night) 58%, transparent); }
.check-details-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 26px 20px; border-bottom: 1px solid var(--border); }
.check-details-head h2 { margin: 4px 0 7px; font-size: 1.2rem; line-height: 1.35; overflow-wrap: anywhere; }
.check-details-head p { margin: 0; color: var(--text-soft); font-size: .8rem; }
.check-details-body { max-height: calc(100vh - 230px); padding: 22px 26px; overflow-y: auto; }
.check-details-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 13px 15px; border-radius: 10px; background: var(--bg-soft); }
.check-details-summary strong { font-size: .9rem; }
.check-details-summary span { color: var(--text-soft); font-size: .76rem; }
.check-detail-models { display: flex; flex-direction: column; gap: 12px; }
.check-detail-model { padding: 17px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.check-detail-model-head { display: flex; align-items: center; gap: 10px; }
.check-detail-model-head > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.check-detail-model-head strong { font-size: .86rem; }
.check-detail-model-head span { color: var(--text-soft); font-size: .72rem; overflow-wrap: anywhere; }
.check-detail-answer { margin-top: 14px; color: var(--text); font-size: .82rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.check-detail-sources { display: flex; flex-direction: column; gap: 5px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.check-detail-sources strong { font-size: .72rem; }
.check-detail-sources a { color: var(--accent); font-size: .75rem; overflow-wrap: anywhere; }
.check-detail-error { border-color: var(--bad); background: var(--status-bad-bg); }
.check-detail-error p { margin: 12px 0 0; color: var(--bad); font-size: .78rem; }
.check-details-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 26px; border-top: 1px solid var(--border); background: var(--surface); }
.account-danger { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.account-danger > div { display: flex; flex-direction: column; gap: 4px; }
.account-danger > div:last-child { flex-direction: row; }
.account-danger strong { color: var(--text); font-size: .84rem; }
.account-danger span { color: var(--text-soft); font-size: .72rem; }
.account-danger .btn { color: var(--bad); }
.settings-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.settings-heading > div > span { color: var(--accent); font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.settings-heading h1 { margin: 4px 0 5px; color: var(--text); font-size: 1.55rem; letter-spacing: -.035em; }
.settings-heading p { margin: 0; color: var(--text-soft); font-size: .78rem; }
.settings-project-context { display: block; max-width: 280px; overflow: hidden; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--surface); font-size: .68rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.settings-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); align-items: start; gap: 18px; }
.settings-nav { position: sticky; top: 74px; display: flex; flex-direction: column; gap: 3px; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.settings-nav button { display: grid; width: 100%; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 8px; padding: 10px 9px; border-radius: 7px; color: var(--text-soft); background: transparent; text-align: left; }
.settings-nav button:hover { color: var(--text); background: var(--bg-soft); }
.settings-nav button.active { color: var(--accent); background: var(--bg-soft); }
.settings-nav button > i { text-align: center; }
.settings-nav button > span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.settings-nav strong { color: inherit; font-size: .72rem; }
.settings-nav small { color: var(--text-soft); font-size: .58rem; font-weight: 500; }
.settings-content { min-width: 0; max-width: 860px; }
.settings-panel[hidden] { display: none; }
.settings-card, .settings-panel .brand-settings { min-width: 0; }
.settings-card .account-form { max-width: 620px; }
.theme-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 620px; }
.theme-option { display: grid; grid-template-columns: 38px minmax(0, 1fr) 20px; align-items: center; gap: 11px; min-height: 76px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--surface); text-align: left; }
.theme-option:hover { border-color: var(--accent); background: var(--bg-soft); }
.theme-option.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--bg-soft-2); }
.theme-option > i:first-child { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 9px; color: var(--accent); background: var(--bg-soft); font-size: 1rem; }
.theme-option > span { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.theme-option strong { font-size: .78rem; }
.theme-option small { color: var(--text-soft); font-size: .62rem; font-weight: 500; }
.theme-option-check { color: var(--accent); opacity: 0; }
.theme-option.active .theme-option-check { opacity: 1; }
.settings-readonly-notice { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 16px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-soft); background: var(--status-warn-bg); font-size: .68rem; line-height: 1.45; }
.settings-readonly-notice[hidden] { display: none; }
.settings-readonly-notice i { margin-top: 2px; color: var(--warn); }
.brand-settings-field > small, .account-form label > small { color: var(--text-soft); font-size: .6rem; font-weight: 500; line-height: 1.4; }
.quota-progress { height: 5px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: var(--border); }
.quota-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .25s ease; }
.settings-danger-card { border-color: var(--status-bad-bg); }
.settings-danger-card .app-card-head h2 { color: var(--bad); }
.access-banner { display: flex; max-width: 1440px; align-items: center; justify-content: space-between; gap: 16px; margin: 14px auto 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--status-warn-bg); }
.access-banner[hidden] { display: none; }
.access-banner > div { display: flex; min-width: 0; align-items: center; gap: 11px; }
.access-banner > div > i { flex: 0 0 auto; color: var(--accent); }
.access-banner span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.access-banner strong { font-size: .8rem; }
.access-banner small { color: var(--text-soft); font-size: .7rem; line-height: 1.4; }
.access-banner[data-status="expired"], .access-banner[data-status="suspended"] { background: var(--status-bad-bg); }
.access-banner[data-status="expired"] > div > i, .access-banner[data-status="suspended"] > div > i { color: var(--bad); }
.is-access-disabled { opacity: .55; }
.account-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 18px; }
.account-layout .app-card { min-width: 0; }
.account-role, .access-status-badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 99px; color: var(--text-soft); background: var(--bg-soft); font-size: .65rem; font-style: normal; font-weight: 700; white-space: nowrap; }
.account-role:empty { display: none; }
.access-status-badge[data-status="active"] { color: var(--ok); background: var(--status-ok-bg); }
.access-status-badge[data-status="pending"] { color: var(--warn); background: var(--status-warn-bg); }
.access-status-badge[data-status="expired"], .access-status-badge[data-status="suspended"] { color: var(--bad); background: var(--status-bad-bg); }
.account-form, .admin-access-form { display: flex; flex-direction: column; gap: 13px; }
.account-form label, .account-delete-form label, .admin-filters label, .admin-access-form label, .admin-limit > label:first-child { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: var(--text-soft); font-size: .7rem; font-weight: 700; }
.account-form input, .account-form select, .account-delete-form input, .admin-filters input, .admin-filters select, .admin-access-form input, .admin-access-form select { width: 100%; min-width: 0; min-height: 40px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: var(--surface); font: inherit; }
.account-form input[readonly] { background: var(--bg-soft); cursor: default; }
.account-form input:focus, .account-form select:focus, .account-delete-form input:focus, .admin-filters input:focus, .admin-filters select:focus, .admin-access-form input:focus, .admin-access-form select:focus { outline: 2px solid var(--bg-soft-2); border-color: var(--accent); }
.account-password-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.account-password-fields[hidden] { display: none; }
.account-password-toggle { align-self: flex-start; color: var(--accent); font-size: .7rem; font-weight: 700; }
.account-password-toggle:hover { color: var(--accent-2); }
.account-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text-soft); font-size: .7rem; }
.account-meta strong { color: var(--text); }
.account-form .btn, .admin-access-form .btn { align-self: flex-start; }
.account-form-status { min-height: 18px; margin: 0; color: var(--text-soft); font-size: .7rem; line-height: 1.4; }
.account-form-status.error { color: var(--bad); }
.account-form-status.success { color: var(--ok); }
.account-access-meta { display: grid; gap: 0; margin: 0 0 16px; }
.account-access-meta div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.account-access-meta dt { color: var(--text-soft); font-size: .68rem; }
.account-access-meta dd { min-width: 0; margin: 0; color: var(--text); font-size: .72rem; font-weight: 700; overflow-wrap: anywhere; }
.account-quota-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.account-quota-grid article { min-width: 0; padding: 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); }
.account-quota-grid span, .account-quota-grid strong, .account-quota-grid small { display: block; }
.account-quota-grid span { color: var(--text-soft); font-size: .65rem; }
.account-quota-grid strong { margin-top: 6px; color: var(--text); font-size: .78rem; overflow-wrap: anywhere; }
.account-quota-grid small { min-height: 14px; margin-top: 5px; color: var(--text-soft); font-size: .58rem; }
.account-danger-card { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(480px, 1.5fr); align-items: end; gap: 18px; }
.account-danger-card > div { display: flex; flex-direction: column; gap: 4px; }
.account-danger-card > div strong { color: var(--bad); font-size: .82rem; }
.account-danger-card > div span { color: var(--text-soft); font-size: .7rem; }
.account-danger-card > .account-form-status { grid-column: 2; }
.account-delete-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 9px; }
.account-delete-form .btn { min-height: 40px; color: var(--bad); white-space: nowrap; }
.admin-filters { display: grid; grid-template-columns: minmax(220px, 1fr) 160px 160px auto; align-items: end; gap: 10px; }
.admin-filters .btn { min-height: 40px; }
.admin-layout { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(420px, 1.2fr); gap: 18px; align-items: start; }
.admin-client-list-card { min-width: 0; }
.admin-client-list { display: flex; flex-direction: column; gap: 5px; }
.admin-client-item { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 10px; border: 1px solid transparent; border-radius: 8px; color: var(--text); background: transparent; text-align: left; }
.admin-client-item:hover, .admin-client-item.active { border-color: var(--border); background: var(--bg-soft); }
.admin-client-item > span { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 3px; }
.admin-client-item > span:last-child { flex: 0 0 auto; align-items: flex-end; }
.admin-client-item strong, .admin-client-item small { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-client-item strong { font-size: .74rem; }
.admin-client-item small { color: var(--text-soft); font-size: .62rem; }
.admin-pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.admin-pagination span { color: var(--text-soft); font-size: .68rem; }
.admin-client-editor { position: sticky; top: 72px; min-width: 0; }
.admin-client-editor .app-empty { border: 0; }
.admin-client-meta dd { line-height: 1.55; }
.admin-access-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-access-form > label:nth-child(3), .admin-access-form .admin-reset, .admin-access-form .account-form-status, .admin-access-form > .btn { grid-column: 1 / -1; }
.admin-access-form label small { color: var(--text-soft); font-size: .58rem; font-weight: 500; }
.admin-limit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 9px; }
.admin-unlimited, .admin-reset { display: flex !important; flex-direction: row !important; align-items: center; gap: 7px !important; min-height: 40px; }
.admin-unlimited input, .admin-reset input { width: 16px; min-height: 16px; }
.admin-loading, .admin-error { padding: 30px 12px; color: var(--text-soft); font-size: .72rem; text-align: center; }
.admin-error { color: var(--bad); background: var(--status-bad-bg); }
.app-body button:disabled, .app-body input:disabled, .app-body select:disabled, .app-body textarea:disabled { cursor: not-allowed; opacity: .55; }
@media (max-width: 768px) { .app-shell { grid-template-columns: 1fr; }.app-sidebar { position: static; min-width: 0; max-width: 100%; overflow: hidden; padding: 12px; }.app-logo { padding: 0 6px 10px; border: 0; }.app-nav { max-width: 100%; flex-direction: row; gap: 4px; overflow-x: auto; padding: 0; }.app-nav-label { display: none; }.app-nav-item { flex: 0 0 auto; width: auto; white-space: nowrap; }.app-setup { display: none; }.app-main { padding: 0 16px 32px; }.app-topbar { align-items: flex-start; flex-direction: column; gap: 10px; }.app-topbar-actions { width: 100%; justify-content: space-between; gap: 10px; }.app-brand-switcher { min-width: 0; flex: 1; }.app-brand-switcher select { min-width: 0; width: 100%; }.app-heading { flex-direction: column; }.app-card-head { align-items: flex-start; }.chart-callout { text-align: left; }.app-kpis, .app-kpis-four, .app-grid-two, .prompt-suggestion-list { grid-template-columns: 1fr; }.app-check-form { flex-direction: column; align-items: stretch; }.app-check-form label { min-width: 0; }.growth-toolbar { align-items: stretch; flex-direction: column; gap: 10px; padding: 13px; }.growth-toolbar-copy strong, .growth-toolbar-copy p { display: block; margin: 4px 0 0; }.growth-toolbar-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }.growth-compact-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; white-space: normal; }.growth-compact-stats span { padding: 0 5px; font-size: .58rem; line-height: 1.2; text-align: center; }.growth-compact-stats strong { display: block; margin: 0 0 2px; font-size: .76rem; }.growth-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; padding: 0 4px; }.growth-tabs .app-tab { justify-content: center; min-width: 0; padding: 0 5px; white-space: nowrap; }.growth-tabs .app-tab strong { overflow: hidden; font-size: .66rem; text-overflow: ellipsis; }.growth-tab-count { min-width: 20px; height: 20px; font-size: .62rem; }.growth-card { grid-template-columns: 1fr; gap: 18px; padding: 18px; }.growth-card .btn, .growth-card-actions { width: 100%; }.growth-card-actions { padding: 16px 0 0; border-top: 1px solid var(--border); border-left: 0; }.growth-evidence, .growth-dialog-evidence dl div, .growth-form-grid { grid-template-columns: 1fr; }.growth-result-head { align-items: flex-start; flex-direction: column; }.growth-before-after { grid-template-columns: 1fr; }.growth-before-after > i { transform: rotate(90deg); justify-self: center; }.growth-dialog { width: 100vw; height: 100vh; padding: 24px 16px; }.growth-dialog-actions { flex-direction: column; align-items: stretch; }.growth-dialog-actions .btn { width: 100%; }.growth-delete { margin-left: 0; } }
@media (max-width: 768px) { .app-shell { grid-template-columns: minmax(0, 1fr); }.app-main { width: 100%; min-width: 0; }.app-topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }.app-topbar-actions { display: contents; }.app-project-control { grid-column: 1; grid-row: 2; width: 100%; }.app-brand-switcher { display: grid; min-width: 0; flex: 1; grid-template-columns: 52px minmax(0, 1fr); width: 100%; }.app-brand-switcher select { min-width: 0; width: 100%; }.app-topbar-cta { grid-column: 2; grid-row: 2; min-width: 0; }.app-account-menu { grid-column: 2; grid-row: 1; justify-self: end; }.app-user-copy strong, .app-user-copy small { max-width: 110px; } }

@media (max-width: 768px) { .ai-answer-head { align-items: flex-start; flex-direction: column; }.ai-answer-copy { width: 100%; }.ai-answer-card { padding: 15px; }.ai-answer-body { font-size: .8rem; } }

@media (max-width: 768px) {
    .brand-settings-grid { grid-template-columns: 1fr; }
    .brand-settings-field > div, .brand-settings-add { align-items: stretch; flex-direction: column; }
    .theme-options { grid-template-columns: 1fr; }
    .account-danger, .account-danger > div:last-child { align-items: stretch; flex-direction: column; }
    .app-setup { display: flex; width: 100%; margin-top: 8px; justify-content: center; }
    .access-banner { align-items: flex-start; margin-top: 4px; }
    .access-banner > div { align-items: flex-start; }
    .access-banner .btn { flex: 0 0 auto; }
    .settings-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .settings-project-context { max-width: 100%; }
    .settings-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .settings-nav { position: static; flex-direction: row; max-width: 100%; overflow-x: auto; padding: 4px; }
    .settings-nav button { flex: 0 0 auto; width: auto; grid-template-columns: 20px auto; padding: 9px 10px; white-space: nowrap; }
    .settings-nav small { display: none; }
    .settings-content { width: 100%; max-width: none; }
    .account-layout, .admin-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .account-password-fields, .account-quota-grid, .admin-access-form { grid-template-columns: minmax(0, 1fr); }
    .account-danger-card { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
    .account-danger-card > .account-form-status { grid-column: 1; }
    .account-delete-form { grid-template-columns: minmax(0, 1fr); }
    .account-delete-form .btn, .account-form .btn, .admin-access-form .btn { width: 100%; }
    .admin-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-search { grid-column: 1 / -1; }
    .admin-filters .btn { grid-column: 1 / -1; width: 100%; }
    .admin-client-editor { position: static; }
    .admin-access-form > label:nth-child(3), .admin-access-form .admin-limit, .admin-access-form .admin-reset, .admin-access-form .account-form-status, .admin-access-form > .btn { grid-column: 1; }
}

@media (max-width: 480px) {
    .app-user-copy { display: none; }
    .app-account-trigger { grid-template-columns: 34px auto; }
    .app-project-control { grid-column: 1 / -1; }
    .app-topbar-cta { grid-column: 1 / -1; grid-row: 3; width: 100%; }
    .settings-heading h1 { font-size: 1.35rem; }
    .settings-nav button { grid-template-columns: auto; }
    .settings-nav button > i { display: none; }
}

/* Desktop workspace */
@media (min-width: 769px) {
    .app-body { background: var(--bg); }
    .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
    .app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 220px; height: 100vh; overflow-y: auto; padding: 18px 12px 14px; background: var(--night); }
    .app-logo { min-height: 46px; padding: 0 10px 16px; border-color: var(--surface-1); font-size: 1.18rem; }
    .app-logo .logo-mark { width: 28px; height: 28px; }
    .app-nav { gap: 2px; padding-top: 10px; }
    .app-nav-label { margin: 15px 10px 5px; color: var(--neutral); font-size: .6rem; letter-spacing: .12em; }
    .app-nav-item, .app-setup { min-height: 38px; padding: 9px 10px; border-radius: 7px; color: var(--border); font-size: .78rem; font-weight: 500; }
    .app-nav-item i { width: 17px; color: var(--neutral); text-align: center; }
    .app-nav-item:hover { background: var(--surface-1); }
    .app-nav-item.active { color: var(--surface); background: var(--accent); }
    .app-nav-item.active i { color: var(--surface); }
    .app-setup { justify-content: flex-start; border: 1px solid var(--surface-1); background: transparent; }
    .app-setup:hover { border-color: var(--accent-2); background: var(--surface-1); }
    .app-main { grid-column: 2; padding: 0 30px 42px; background: var(--bg); }
    .app-topbar { min-height: 58px; padding: 0; border-bottom: 1px solid var(--border); font-size: .75rem; }
    #appBreadcrumb { color: var(--text); font-weight: 700; }
    .app-topbar-actions { gap: 14px; }
    .app-topbar-cta { min-height: 34px; padding: 7px 11px; font-size: .68rem; }
    .app-brand-switcher { gap: 10px; font-size: .68rem; letter-spacing: .02em; }
    .app-brand-switcher select { width: 190px; height: 34px; border-radius: 7px; font-size: .75rem; font-weight: 600; }
    .app-view { max-width: 1440px; padding-top: 14px; }
    .app-view-first-card, #view-prompts > .app-check-form { margin-top: 0; }
    .app-heading { align-items: center; margin: 18px 0 16px; }
    .app-heading h1 { margin-bottom: 4px; font-size: 1.55rem; letter-spacing: -.035em; }
    .app-heading p:not(.app-eyebrow) { font-size: .8rem; }
    .app-eyebrow { margin-bottom: 3px; font-size: .62rem; letter-spacing: .1em; }
    .app-heading .btn { min-height: 38px; padding: 9px 14px; font-size: .76rem; }
    .app-kpis { gap: 0; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
    .app-kpis article { position: relative; min-height: 104px; padding: 16px 18px; border: 0; border-right: 1px solid var(--border); border-radius: 0; }
    .app-kpis article:last-child { border-right: 0; }
    .app-kpis span { display: flex; align-items: center; gap: 7px; font-size: .68rem; font-weight: 600; }
    .app-kpis span i { color: var(--text-soft); }
    .app-kpis strong { margin: 7px 0 3px; font-size: 1.55rem; letter-spacing: -.04em; }
    .app-kpis em { color: var(--text-soft); font-size: .68rem; }
    .app-analytics-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(310px, .85fr); gap: 14px; }
    .app-grid-two { gap: 14px; }
    .app-card { margin-bottom: 14px; padding: 17px 18px; border-radius: 10px; box-shadow: none; }
    .app-card:hover { border-color: var(--bg-soft-2); }
    .app-card-head { min-height: 34px; margin-bottom: 12px; }
    .app-card-head h2 { font-size: .86rem; }
    .app-card-head span { display: block; margin-top: 3px; font-size: .68rem; }
    .app-card-trend .chart-stage, .app-card-sov .chart-stage { min-height: 272px; height: 272px; padding: 6px 4px 0; border-radius: 8px; background: var(--bg-soft); }
    .app-card-trend .chart-stage { background: linear-gradient(180deg, var(--bg-soft) 0%, var(--surface) 100%); }
    .app-card-sov .chart-stage { min-height: 190px; height: 190px; padding: 4px; background: transparent; }
    .sov-layout { display: grid; grid-template-columns: minmax(150px, .9fr) minmax(130px, 1.1fr); align-items: center; gap: 10px; min-height: 272px; padding: 12px; border-radius: 8px; background: var(--bg-soft); }
    .sov-layout.is-empty { grid-template-columns: minmax(0, 1fr); }
    .sov-layout.is-empty .chart-stage { min-height: 248px; height: auto; }
    .sov-legend { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
    .sov-legend div { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 30px; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: .66rem; }
    .sov-legend div:last-child { border-bottom: 0; }
    .sov-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
    .sov-legend div:nth-child(2) i { background: var(--accent-2); }
    .sov-legend div:nth-child(3) i { background: var(--text-soft); }
    .sov-legend div:nth-child(4) i { background: var(--border); }
    .sov-legend div:nth-child(5) i { background: var(--bg-soft-2); }
    .sov-legend span { overflow: hidden; color: var(--text-soft); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
    .sov-legend strong { color: var(--text); }
    .chart-callout { min-height: 24px; padding: 4px 8px; border: 1px solid var(--border); background: var(--surface); font-size: .65rem; }
    .chart-empty { border-radius: 8px; background: var(--surface); }
    .app-text-action { color: var(--text-soft); font-size: .68rem; font-weight: 700; }
    .app-text-action:hover { color: var(--text); }
    .app-text-action i { margin-left: 5px; font-size: .6rem; }
    .table-wrap { margin: 0 -18px -17px; overflow: hidden; border-radius: 0 0 10px 10px; }
    .app-leaderboard { width: 100%; }
    .app-leaderboard th { padding: 9px 14px; color: var(--text-soft); background: var(--bg-soft); font-size: .61rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
    .app-leaderboard td { padding: 11px 14px; border-top: 1px solid var(--border); font-size: .72rem; }
    .app-leaderboard tr.is-current { background: var(--bg-soft); }
    .app-leaderboard tr.is-current td:nth-child(2) strong::after { content: 'Вы'; margin-left: 7px; padding: 2px 5px; border-radius: 99px; color: var(--accent); background: var(--bg-soft-2); font-size: .55rem; }
    .app-secondary-grid .app-card { min-height: 190px; }
    .app-ranked-list { gap: 0; }
    .app-ranked-list .app-data-row { min-height: 50px; padding: 9px 0; }
    .app-ranked-list .app-data-row strong { overflow: hidden; max-width: 65%; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
    .app-ranked-list .app-data-row span { font-size: .68rem; }
    .app-rank-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(190px, 26%); gap: 12px; }
    .app-rank-index { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 6px; color: var(--text-soft); background: var(--bg-soft); font-weight: 700; }
    .app-rank-main { display: flex; min-width: 0; align-items: center; gap: 9px; }
    .app-rank-main > div { min-width: 0; }
    .app-rank-main strong { max-width: 100% !important; }
    .app-rank-main small { display: block; overflow: hidden; margin-top: 2px; color: var(--text-soft); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
    .app-rank-result { align-self: center; min-width: 0; }
    .app-rank-result > strong { display: block; color: var(--text); font-size: .66rem; font-weight: 700; text-align: right; white-space: nowrap; }
    .app-rank-track { display: block !important; height: 4px; margin-top: 6px !important; overflow: hidden; border-radius: 99px; background: var(--border); }
    .app-rank-track i { display: block; height: 100%; border-radius: inherit; background: var(--surface-1); }
    .ranking-toggle { display: flex; min-height: 38px; align-items: center; justify-content: center; width: 100%; margin-top: 8px; border-top: 1px solid var(--border); color: var(--text-soft); font-size: .68rem; font-weight: 700; }
    .ranking-toggle:hover { background: var(--bg-soft); }
    .model-comparison, #modelMetrics { display: flex; flex-direction: column; }
    .model-row { display: grid; grid-template-columns: 26px minmax(140px, 1fr) 90px minmax(180px, 2fr) 130px; align-items: center; gap: 14px; min-height: 64px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
    .model-row:last-child { border-bottom: 0; }
    .model-row.low-sample { background: var(--bg-soft); }
    .model-rank { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 6px; color: var(--text-soft); background: var(--bg-soft); font-size: .65rem; font-weight: 800; }
    .model-row.low-sample .model-rank { background: var(--surface); }
    .model-name { display: flex; min-width: 0; align-items: center; gap: 9px; }
    .model-name > div { min-width: 0; }
    .model-name strong, .model-name small { display: block; }
    .model-name strong { color: var(--text); font-size: .76rem; }
    .model-name small { margin-top: 3px; color: var(--text-soft); font-size: .62rem; }
    .model-score { text-align: right; }
    .model-score strong, .model-score span { display: block; }
    .model-score strong { color: var(--text); font-size: .95rem; }
    .model-score span { color: var(--text-soft); font-size: .6rem; }
    .model-meter { height: 7px; overflow: hidden; border-radius: 99px; background: var(--border); }
    .model-meter i { display: block; height: 100%; border-radius: inherit; background: var(--accent-2); }
    .model-verdict { color: var(--text-soft); font-size: .64rem; text-align: right; }
    #modelMetrics .model-row { grid-template-columns: 24px minmax(110px, 1fr) 72px minmax(100px, 1.2fr); min-height: 48px; padding: 7px 0; }
    #modelMetrics .model-verdict { display: none; }
    .model-empty { position: static; min-height: 220px; }
    .identity-avatar:not(.model-avatar) img { width: 18px; height: 18px; }
    .identity-monogram.tone-0 { color: var(--text); background: var(--bg-soft); }
    .identity-monogram.tone-1 { color: var(--night); background: var(--bg-soft-2); }
    .identity-monogram.tone-2 { color: var(--surface); background: var(--accent); }
    .identity-monogram.tone-3 { color: var(--surface); background: var(--surface-1); }
    .identity-name { display: inline-flex; min-width: 0; align-items: center; gap: 8px; }
    .identity-name > span:last-child, .identity-name > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .app-leaderboard .identity-avatar { vertical-align: middle; }
    .sov-legend .identity-avatar { flex-basis: 22px; width: 22px; height: 22px; border-radius: 6px; }
    .sov-legend .identity-avatar img { width: 16px; height: 16px; }
    .app-check-form { display: grid; grid-template-columns: 180px minmax(280px, 1fr) auto auto 42px; gap: 9px; padding: 15px; }
    .app-check-form label { min-width: 0; font-size: .66rem; }
    .app-check-form input, .app-check-form select { height: 40px; border-radius: 7px; font-size: .76rem; }
    .app-check-form .btn { height: 40px; white-space: nowrap; }
    .app-check-form input:focus, .app-check-form select:focus { outline: 2px solid var(--bg-soft-2); border-color: var(--accent); }
    .app-check-form .btn:disabled { cursor: wait; opacity: .58; }
    .app-history-row, .app-data-row { padding: 11px 0; }
    .app-empty { min-height: 220px; padding: 38px 20px; border-radius: 10px; }
}

@media (min-width: 1600px) {
    :root { --max-w: 1440px; }
    .app-main { padding-right: 48px; padding-left: 48px; }
    .app-view { max-width: 1560px; }
    .app-shell { grid-template-columns: 240px minmax(0, 1fr); }
    .app-sidebar { width: 240px; }
    .app-main { grid-column: 2; }
}
@media (min-width: 2200px) {
    :root { --max-w: 1600px; }
    .app-main { padding-right: 72px; padding-left: 72px; }
    .app-view { max-width: 1720px; }
}

.onboarding[hidden], .onboarding [hidden], .dashboard-load-state[hidden] { display: none; }
.dashboard-load-state [hidden], #reportBackToCheck[hidden], #wsRefreshStatus[hidden] { display: none; }
.onboarding-active .app-shell, .dashboard-load-error .app-shell { display: none; }
.voucher-activation { margin: 22px 0; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-soft); }
#voucherActivationForm[hidden], .voucher-activation[hidden], .voucher-issued[hidden], [data-admin-panel][hidden] { display: none; }
.voucher-activation .account-form { gap: 10px; }
.voucher-activation .account-form label { color: var(--text); font-size: .8rem; }
.voucher-activation .account-form input { min-height: 46px; font-size: .85rem; font-weight: 400; }
.voucher-activation .account-form .btn { width: 100%; min-height: 44px; }
.voucher-activation .account-form-status { margin-top: 10px; font-size: .78rem; overflow-wrap: anywhere; }
.voucher-activation .app-text-action { margin-top: 8px; font-size: .78rem; }
.voucher-help { color: var(--text-soft); font-size: .75rem; line-height: 1.6; }
.admin-section-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.admin-section-tabs .app-tab { min-height: 40px; padding: 8px 14px; border: 0; border-radius: 6px; color: var(--text-soft); background: transparent; font: inherit; font-size: .8rem; font-weight: 600; }
.admin-section-tabs .app-tab.active { color: var(--accent); background: var(--bg-soft); }
.admin-section-tabs .app-tab:focus-visible { outline: 2px solid var(--accent); }
.admin-tariff-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.admin-tariff-form { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.admin-tariff-form h3 { font-size: 1rem; }
.admin-tariff-form .account-form-status { overflow-wrap: anywhere; }
.voucher-batch-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.voucher-batch-form > p, .voucher-batch-form > button { grid-column: 1 / -1; }
.voucher-batch-summary { color: var(--text-soft); font-size: .75rem; line-height: 1.6; }
.voucher-issued { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-soft); }
.voucher-issued strong { font-size: .85rem; }
.voucher-issued p, .voucher-issued label { color: var(--text-soft); font-size: .75rem; line-height: 1.6; }
.voucher-issued textarea { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: var(--surface); font: .75rem/1.8 monospace; resize: vertical; overflow-wrap: anywhere; }
.voucher-issued .btn { align-self: flex-start; }
.voucher-batch-history { margin-top: 18px; }
.voucher-batch-list { display: flex; flex-direction: column; gap: 8px; }
.voucher-batch-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; width: 100%; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); background: var(--surface); text-align: left; }
.voucher-batch-item:hover, .voucher-batch-item.active { border-color: var(--accent); background: var(--bg-soft); }
.voucher-batch-item > span { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.voucher-batch-item strong { font-size: .8rem; }
.voucher-batch-item small { color: var(--text-soft); font-size: .7rem; line-height: 1.6; overflow-wrap: anywhere; }
#voucherBatchDetail { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
#voucherBatchDetail > h3 { margin-bottom: 8px; font-size: .95rem; }
.voucher-list { margin-top: 12px; }
.voucher-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.voucher-row code { font-size: .8rem; overflow-wrap: anywhere; }
.voucher-row > div { display: flex; flex-direction: column; gap: 5px; font-size: .75rem; }
.voucher-row small { color: var(--text-soft); font-size: .7rem; }
.voucher-row .app-text-action { font-size: .7rem; text-align: left; }
@media (max-width: 768px) {
    .admin-tariff-grid, .voucher-batch-form { grid-template-columns: minmax(0, 1fr); }
    .voucher-batch-item { flex-direction: column; }
    .voucher-row { grid-template-columns: minmax(0, 1fr) auto; }
    .voucher-row > div { grid-column: 1; }
    .voucher-row > .btn { grid-column: 2; grid-row: 1 / 3; }
    .voucher-issued { padding: 14px; }
    .voucher-issued .btn { width: 100%; }
    .voucher-issued textarea { font-size: .68rem; }
}
.auth-pending .app-shell { display: none; }
.auth-pending .onboarding { visibility: hidden; }
.dashboard-load-state { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; padding: 28px; color: var(--text); background: var(--surface); text-align: center; }
.dashboard-load-state strong { font-size: 1.3rem; }
.dashboard-load-state p { max-width: 520px; color: var(--text-soft); overflow-wrap: anywhere; }
.onboarding { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100svh; color: var(--text); background: var(--surface); }
.onboarding-main { min-width: 0; display: flex; flex-direction: column; padding: 32px clamp(28px, 5vw, 88px) 24px; }
.onboarding-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.onboarding-logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 1.35rem; font-weight: 800; }
.onboarding-logo img { width: 30px; height: 30px; object-fit: contain; }
.onboarding-header .app-text-action { font-size: .8rem; }
.onboarding-content { width: 100%; max-width: 460px; margin: auto; padding: 54px 0 40px; }
.onboarding-steps { display: flex; flex-wrap: wrap; gap: 22px; padding: 0; margin: 0 0 32px; list-style: none; }
.onboarding-steps li { display: flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: .75rem; }
.onboarding-steps li > span { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--border); border-radius: 50%; font-weight: 700; }
.onboarding-steps li[aria-current="step"] { color: var(--accent); font-weight: 700; }
.onboarding-steps li[aria-current="step"] > span { border-color: var(--accent); background: var(--bg-soft); }
.onboarding h1 { margin: 0; font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.25; letter-spacing: -.04em; }
.onboarding-intro { margin: 14px 0 30px; color: var(--text-soft); font-size: .9rem; line-height: 1.65; }
.onboarding-form { display: flex; flex-direction: column; gap: 10px; }
.onboarding-form label { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; font-size: .8rem; font-weight: 600; }
.onboarding-form label:first-child { margin-top: 0; }
.onboarding-optional { margin-left: auto; color: var(--text-soft); font-size: .73rem; font-weight: 400; }
.onboarding-form input, .onboarding-form textarea { width: 100%; min-width: 0; padding: 13px 14px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--surface); font: inherit; font-size: .85rem; }
.onboarding-form input { min-height: 48px; }
.onboarding-form textarea { min-height: 116px; line-height: 1.6; resize: vertical; }
.onboarding-form input:focus, .onboarding-form textarea:focus, .onboarding-suggestions button:focus-visible, .history-open-check:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.onboarding h1:focus, #wsVerdict:focus { outline: none; }
.onboarding-help { color: var(--text-soft); font-size: .75rem; line-height: 1.6; overflow-wrap: anywhere; }
.onboarding-form .btn { min-height: 48px; width: 100%; justify-content: center; margin-top: 8px; font-size: .85rem; }
.onboarding-form .btn-primary { margin-top: 18px; justify-content: space-between; }
.onboarding-form .btn:disabled { cursor: default; opacity: .6; }
.onboarding-footnote, .onboarding-footer { color: var(--text-soft); font-size: .7rem; line-height: 1.6; }
.onboarding-footnote { text-align: center; }
.onboarding-footer { padding-top: 16px; padding-bottom: 40px; }
.onboarding-company { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); overflow-wrap: anywhere; }
.onboarding-company > span, .onboarding-company small { color: var(--text-soft); font-size: .73rem; }
.onboarding-company strong { font-size: 1rem; }
.onboarding-notice, .onboarding-error { margin: 18px 0; padding: 14px 16px; border-radius: 8px; font-size: .8rem; line-height: 1.6; overflow-wrap: anywhere; }
.onboarding-notice { background: var(--status-warn-bg); color: var(--warn); }
.onboarding-error { background: var(--status-bad-bg); color: var(--bad); }
.onboarding-waiting { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 24px; padding: 24px; border: 1px solid var(--border); border-radius: 10px; text-align: center; }
.onboarding-waiting strong { font-size: .85rem; }
.onboarding-waiting p { color: var(--text-soft); font-size: .75rem; line-height: 1.6; }
.onboarding-spinner { width: 25px; height: 25px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: onboarding-spin 1s linear infinite; }
@keyframes onboarding-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .onboarding-spinner { animation: none; } }
.onboarding-suggestions { display: flex; flex-direction: column; gap: 8px; }
.onboarding-suggestions:empty, #onboardingSuggestionStatus:empty { display: none; }
.onboarding-suggestions button { padding: 13px 15px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--bg-soft); font: inherit; font-size: .8rem; text-align: left; line-height: 1.5; overflow-wrap: anywhere; cursor: pointer; }
.onboarding-suggestions button:hover { border-color: var(--accent); }
.onboarding-explainer { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 70px clamp(32px, 5vw, 88px); border-left: 1px solid var(--border); background: radial-gradient(ellipse at top right, var(--bg-soft-2), transparent 65%), var(--bg-soft); }
.onboarding-explainer-content { max-width: 430px; }
.onboarding-eyebrow { color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.onboarding-explainer h2 { margin: 18px 0; font-size: clamp(1.7rem, 2.7vw, 2.5rem); line-height: 1.2; letter-spacing: -.04em; }
.onboarding-explainer-content > p { color: var(--text-soft); line-height: 1.7; font-size: .9rem; }
.onboarding-models { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 36px; }
.onboarding-models img { width: 42px; height: 42px; padding: 9px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.onboarding-outcomes { display: flex; flex-direction: column; gap: 22px; padding: 28px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-soft); }
.onboarding-outcomes article { display: flex; align-items: flex-start; gap: 16px; }
.onboarding-outcomes article > span { color: var(--accent); font-size: .7rem; font-weight: 700; line-height: 1.8; }
.onboarding-outcomes h3 { font-size: .85rem; margin-bottom: 5px; }
.onboarding-outcomes p { color: var(--text-soft); font-size: .76rem; line-height: 1.6; }
.onboarding-explainer-content > small { display: block; margin-top: 22px; color: var(--text-soft); font-size: .73rem; line-height: 1.6; }
.check-result-context { margin-bottom: 16px; color: var(--text-soft); font-size: .8rem; line-height: 1.6; overflow-wrap: anywhere; }
.check-result-warning { margin: 16px 0; padding: 14px; color: var(--warn); background: var(--status-warn-bg); border-radius: 8px; font-size: .8rem; line-height: 1.6; overflow-wrap: anywhere; }
.check-result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.history-open-check { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 4px 0; border: 0; color: var(--text); background: transparent; font: inherit; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.history-open-check:hover strong { color: var(--accent); }
@media (max-width: 768px) {
    .onboarding { grid-template-columns: minmax(0, 1fr); }
    .onboarding-main { padding: 22px 24px; min-height: 100svh; }
    .onboarding-explainer { display: none; }
    .onboarding-content { padding: 40px 0 32px; }
    .onboarding-steps { gap: 16px; margin-bottom: 26px; }
    .onboarding-footer { text-align: center; }
    .check-result-actions { flex-direction: column; }
    .check-result-actions .btn { width: 100%; }
    .app-history-row { gap: 12px; }
    .app-history-actions { flex-wrap: wrap; justify-content: flex-end; }
    .check-details-dialog { width: 100vw; max-width: none; height: 100svh; max-height: none; border: 0; border-radius: 0; }
    .check-details-head { padding: 20px 16px 16px; }
    .check-details-head h2 { font-size: 1.05rem; }
    .check-details-body { max-height: calc(100svh - 238px); padding: 16px; }
    .check-details-summary { align-items: flex-start; flex-direction: column; }
    .check-detail-model { padding: 14px; }
    .check-details-actions { align-items: stretch; flex-direction: column; padding: 14px 16px; }
    .check-details-actions .btn { width: 100%; }
}

.analytics-period { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.analytics-period label { display: grid; gap: 5px; color: var(--text-soft); font-size: .7rem; }
.analytics-period select, .analytics-period input { min-height: 36px; max-width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); font: inherit; }
.analytics-dates { display: flex; gap: 10px; }
.analytics-dates[hidden] { display: none; }
.analytics-period [role="status"] { width: 100%; color: var(--bad); font-size: .74rem; }
.report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.report-toolbar h1 { font-size: 1.35rem; }
.report-toolbar p { margin-top: 6px; color: var(--text-soft); font-size: .8rem; }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.report-download { position: relative; }
.report-download > .btn { width: 100%; gap: 8px; }
.report-download-menu { position: absolute; z-index: 25; top: calc(100% + 6px); right: 0; min-width: 160px; padding: 5px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--paper); box-shadow: var(--shadow); }
.report-download-menu button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 5px; background: transparent; color: var(--ink); text-align: left; font: inherit; font-size: .8rem; cursor: pointer; }
.report-download-menu button:hover, .report-download-menu button:focus-visible { background: var(--wash-light); outline: 2px solid var(--accent); outline-offset: -2px; }
.report-controls { padding: 18px; }
.report-model-filter { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 18px; padding: 0; border: 0; }
.report-model-filter legend { margin-bottom: 10px; color: var(--text-soft); font-size: .7rem; }
.report-model-filter label { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; cursor: pointer; }
.report-model-filter input { accent-color: var(--accent); }
.report-check-context { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--text-soft); font-size: .72rem; }
.report-status { margin: 14px 0; color: var(--text-soft); font-size: .8rem; }
.report-status:empty { display: none; }
.report-document { max-width: 920px; margin: 20px auto 0; padding: 36px 40px; border: 1px solid var(--line-light); border-radius: var(--radius); background: var(--paper); color: var(--ink); overflow-wrap: anywhere; box-shadow: var(--shadow-soft); }
.report-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line-light); }
.report-wordmark { font-size: 1.55rem; font-weight: 800; letter-spacing: -.04em; }
.report-wordmark span { display: block; margin-top: 3px; color: var(--muted-light); font-size: .65rem; font-weight: 500; letter-spacing: 0; }
#reportGeneratedAt { color: var(--muted-light); font-size: .67rem; text-align: right; }
.report-title { margin: 26px 0 16px; }
.report-title > span { color: var(--muted-light); font-size: .7rem; }
.report-title h2 { margin: 6px 0 12px; font-size: 1.8rem; letter-spacing: -.035em; }
.report-title p { margin-top: 5px; color: var(--muted-light); font-size: .76rem; }
.report-coverage { padding: 12px 14px; border-radius: 7px; background: var(--wash-light); font-size: .72rem; line-height: 1.8; }
.report-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0 26px; }
.report-kpis article { padding: 14px 12px; border: 1px solid var(--line-light); border-radius: 8px; }
.report-kpis article > span { display: block; color: var(--muted-light); font-size: .65rem; }
.report-kpis strong { display: block; margin: 10px 0 7px; font-size: 1.75rem; line-height: 1.15; }
.report-kpis small { display: block; color: var(--muted-light); font-size: .64rem; line-height: 1.5; }
.report-section { margin-top: 24px; }
.report-section h3 { margin-bottom: 12px; font-size: .94rem; }
.report-section > p { margin: -6px 0 10px; color: var(--muted-light); font-size: .7rem; }
.report-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .75rem; }
.report-table th, .report-table td { padding: 10px 8px; border-bottom: 1px solid var(--line-light); text-align: right; vertical-align: top; }
.report-table thead th { color: var(--muted-light); font-size: .64rem; font-weight: 600; }
.report-table th:first-child, .report-table td:first-child { width: 40%; text-align: left; }
.report-table tbody th { font-weight: 500; }
.report-own-brand { background: var(--wash-light); }
.report-method { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-light); color: var(--muted-light); font-size: .65rem; line-height: 1.7; }
.report-method strong { color: var(--ink); }
.report-method p { margin-top: 7px; }
.report-method > span { display: block; margin-top: 16px; }
@media (max-width: 768px) {
    .report-toolbar { align-items: stretch; flex-direction: column; }
    .report-actions > .btn, .report-actions > .report-download { flex: 1; }
    .analytics-period { width: 100%; }
    .analytics-dates { width: 100%; }
    .analytics-dates label { flex: 1; min-width: 0; }
    .analytics-dates input { width: 100%; min-width: 0; }
    .report-document { padding: 22px 16px; }
    .report-header { gap: 12px; }
    .report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-table { font-size: .68rem; }
    .report-table th, .report-table td { padding: 9px 4px; }
    .report-table th:first-child, .report-table td:first-child { width: 34%; }
    .report-table thead th { font-size: .6rem; }
    .report-title h2 { font-size: 1.45rem; }
}

@media screen {
.app-body .app-shell { grid-template-columns: 224px minmax(0, 1fr); }
.app-body .app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 224px; height: 100dvh; padding: 12px; overflow: visible; border-right: 1px solid var(--border); color: var(--text); background: var(--surface); }
.app-body .app-logo { flex: 0 0 62px; min-height: 62px; padding: 0 4px; border: 0; color: var(--text); font-size: 20px; }
.app-body .app-logo .logo-mark { width: 36px; height: 36px; object-fit: contain; }
.app-body .app-nav { flex: 1; min-height: 80px; gap: 2px; padding: 0; overflow-y: auto; }
.app-body .app-nav-label { margin: 22px 12px 6px; color: var(--text-soft); font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.app-body .app-nav-item { flex-shrink: 0; min-height: 38px; padding: 9px 12px; border-radius: 7px; color: var(--text-soft); font-size: 13px; font-weight: 400; line-height: 20px; text-decoration: none; }
.app-body .app-nav-item svg, .app-body .settings-nav svg { flex: 0 0 16px; width: 16px; height: 16px; }
.app-body .app-nav-item:hover { color: var(--text); background: var(--bg-soft); }
.app-body .app-nav-item.active { color: var(--accent); background: var(--bg-soft); font-weight: 500; }
.app-body .app-sidebar-bottom { flex-shrink: 0; padding-top: 12px; }
.app-body .app-account-menu { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--border); }
.app-body .app-account-trigger { grid-template-columns: 32px minmax(0, 1fr); width: 100%; padding: 8px 6px; gap: 10px; }
.app-body .app-user-avatar { width: 32px; height: 32px; background: var(--bg-soft); color: var(--accent); }
.app-body .app-user-copy strong { max-width: 140px; font-size: 13px; font-weight: 500; }
.app-body .app-user-copy small { max-width: 140px; font-size: 11px; }
.app-body .app-account-popover { top: auto; right: auto; bottom: calc(100% + 8px); left: 0; width: min(260px, calc(100vw - 24px)); max-height: calc(100dvh - 108px); overflow-y: auto; overscroll-behavior: contain; border-radius: 10px; }
.app-body .app-account-summary { padding: 12px; }
.app-body .app-account-links button { grid-template-columns: 18px minmax(0, 1fr); gap: 10px; min-height: 38px; }
.app-body .app-account-links strong { font-size: 12px; font-weight: 400; }
.app-body .app-account-links small { display: none; }
.app-body .app-account-footer { grid-template-columns: 1fr; }
.app-body .app-account-footer a, .app-body .app-account-footer button { justify-content: flex-start; min-height: 38px; padding: 8px 12px; font-size: 12px; font-weight: 400; }
.app-body .project-picker { position: relative; flex-shrink: 0; margin: 4px 4px 18px; }
.app-body .project-picker-trigger { display: grid; grid-template-columns: 28px minmax(0, 1fr) 14px; align-items: center; gap: 9px; width: 100%; min-height: 58px; padding: 10px 9px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--surface); text-align: left; }
.app-body .project-picker-trigger:hover, .app-body .project-picker-trigger[aria-expanded="true"] { border-color: var(--accent); }
.app-body .project-picker-initials { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-soft); color: var(--accent); font-size: 12px; }
.app-body .project-picker-copy { display: grid; min-width: 0; gap: 3px; }
.app-body .project-picker-copy strong, .app-body .project-picker-copy small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.app-body .project-picker-copy strong { font-size: 12px; font-weight: 500; line-height: 17px; }
.app-body .project-picker-copy small { color: var(--text-soft); font-size: 10px; line-height: 14px; }
.app-body .project-picker-trigger > svg { width: 14px; height: 14px; color: var(--text-soft); }
.app-body .project-picker-menu { position: absolute; top: calc(100% + 7px); left: 0; z-index: 55; width: max(100%, 260px); padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.app-body .project-picker-menu[hidden] { display: none; }
.app-body .project-picker-label { display: block; padding: 8px 9px; color: var(--text-soft); font-size: 11px; }
.app-body #projectPickerList { max-height: 280px; overflow-y: auto; }
.app-body .project-picker-option, .app-body [data-project-key] { display: grid; grid-template-columns: 28px minmax(0, 1fr) 16px; gap: 9px; align-items: center; width: 100%; padding: 9px; border-radius: 6px; color: var(--text); background: transparent; text-align: left; }
.app-body [data-project-key]:hover, .app-body [data-project-key]:focus-visible, .app-body [data-project-key][aria-selected="true"] { background: var(--bg-soft); }
.app-body .project-picker-option > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.app-body .project-picker-option strong, .app-body .project-picker-option small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; font-weight: 500; }
.app-body .project-picker-option small { color: var(--text-soft); font-size: 10px; font-weight: 400; }
.app-body .project-picker-check { color: var(--accent); font-size: 14px; }
.app-body .project-picker-empty { padding: 10px; color: var(--text-soft); font-size: 12px; }
.app-body .project-picker-settings { width: 100%; margin-top: 5px; padding: 12px 9px 7px; border-top: 1px solid var(--border); color: var(--accent); background: transparent; text-align: left; font-size: 12px; }
.app-body .app-main { grid-column: 2; width: 100%; min-width: 0; padding: 0 32px 40px; background: var(--surface); }
.app-body .app-topbar { z-index: 25; min-height: 86px; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); background: var(--surface); }
.app-body .app-topbar-context { display: flex; flex: 1; min-width: 0; align-items: center; gap: 24px; }
.app-body #appBreadcrumb { font-size: 14px; font-weight: 500; }
.app-body .last-check-time { font-size: 12px; color: var(--text-soft); }
.app-body .app-topbar-actions { display: flex; width: auto; gap: 12px; }
.app-body .app-topbar-actions .btn { min-height: 40px; padding: 9px 18px; border-radius: 8px; font-size: 12px; white-space: nowrap; }
.app-body .mobile-nav-toggle, .app-body .mobile-nav-backdrop { display: none; }
.app-body .app-view { max-width: none; padding-top: 28px; }
.app-body #view-home { padding-top: 28px; }
.app-body .app-home-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.app-body .app-home-heading h1 { font-size: 24px; font-weight: 600; letter-spacing: -.025em; line-height: 1.45; }
.app-body .app-home-heading p { margin-top: 4px; color: var(--text-soft); font-size: 12px; }
.app-body .app-home-toolbar { align-items: flex-start; justify-content: flex-end; margin: -67px 0 28px; min-height: 39px; }
.app-body .app-home-toolbar .provider-filter { display: grid; gap: 5px; }
.app-body .provider-filter-title { color: var(--text-soft); font-size: .7rem; line-height: 1.6; }
.app-body .provider-filter-trigger strong { margin-left: 0; margin-right: auto; }
.app-body .analytics-period label { color: var(--text-soft); }
.app-body .analytics-period select, .app-body .provider-filter-trigger { min-height: 38px; height: 38px; border-radius: 8px; font-size: 12px; }
.app-body .app-kpis { gap: 16px; margin: 0 0 24px; border: 0; border-radius: 0; background: transparent; }
.app-body .app-kpis article { position: relative; min-height: 116px; padding: 16px 22px; border: 1px solid var(--border); border-radius: 14px; }
.app-body .app-kpis article:last-child { border-right: 1px solid var(--border); }
.app-body .app-kpis article > span:first-child { padding-right: 24px; font-size: 12px; font-weight: 400; }
.app-body .app-kpis strong { margin: 5px 0; font-size: 32px; line-height: 1.45; font-weight: 600; }
.app-body .app-kpis em { color: var(--text-soft); font-size: 12px; font-weight: 400; }
.app-body .metric-help { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text-soft); font-size: 12px; cursor: help; }
.app-body .metric-help:hover, .app-body .metric-help:focus-visible { color: var(--accent); border-color: var(--accent); }
.app-body .app-kpis .metric-tooltip { position: absolute; top: 40px; right: 12px; z-index: 32; display: block; width: 288px; max-width: calc(100% - 24px); padding: 10px 12px; border-radius: 8px; color: var(--surface); background: var(--night); font-size: 12px; font-weight: 400; line-height: 1.5; visibility: hidden; opacity: 0; pointer-events: none; }
.app-body .metric-help:not([data-tooltip-dismissed]):hover + .metric-tooltip, .app-body .metric-help:not([data-tooltip-dismissed]):focus-visible + .metric-tooltip, .app-body .metric-help[aria-expanded="true"] + .metric-tooltip { visibility: visible; opacity: 1; }
.app-body .app-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.app-body .app-dashboard-grid > .app-card { min-width: 0; margin: 0; padding: 24px; border-radius: 20px; border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.app-body .app-card-head { align-items: flex-start; gap: 14px; min-height: 42px; margin-bottom: 12px; }
.app-body .app-card-head h2 { font-size: 16px; line-height: 1.5; font-weight: 600; }
.app-body .app-card-head span { margin-top: 3px; color: var(--text-soft); font-size: 12px; line-height: 1.5; }
.app-body .app-text-action { font-size: 12px; font-weight: 500; white-space: nowrap; }
.app-body .app-card-trend .chart-stage { min-height: 238px; height: 238px; background: var(--surface); padding: 4px 0 0; }
.app-body .chart-callout { flex-shrink: 0; min-height: 24px; font-size: 11px; background: var(--surface); }
.app-body .chart-empty { border: 1px dashed var(--border); border-radius: 10px; background: var(--surface); }
.app-body .chart-empty strong { font-size: 16px; }
.app-body .chart-empty p { max-width: 440px; font-size: 13px; }
.app-body #modelMetrics { min-height: 238px; }
.app-body #modelMetrics .model-row { display: grid; align-items: center; border-bottom: 1px solid var(--border); grid-template-columns: 24px minmax(0, 1fr) 60px; gap: 10px; min-height: 47px; padding: 9px 0; }
.app-body #modelMetrics .model-meter { display: none; }
.app-body #modelMetrics .model-name { display: flex; min-width: 0; align-items: center; gap: 9px; }
.app-body #modelMetrics .model-name > div { min-width: 0; }
.app-body #modelMetrics .model-name strong, .app-body #modelMetrics .model-name small, .app-body #modelMetrics .model-score strong, .app-body #modelMetrics .model-score span { display: block; }
.app-body #modelMetrics .model-name small { margin-top: 3px; color: var(--text-soft); }
.app-body #modelMetrics .model-score { text-align: right; }
.app-body #modelMetrics .model-score span { color: var(--text-soft); }
.app-body #modelMetrics .model-rank { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 5px; color: var(--text-soft); background: var(--bg-soft); font-size: 10px; font-weight: 600; }
.app-body #modelMetrics .model-verdict { display: none; }
.app-body #modelMetrics .model-name strong { font-size: 13px; font-weight: 500; }
.app-body #modelMetrics .model-name small { font-size: 11px; }
.app-body #modelMetrics .model-score strong { font-size: 13px; font-weight: 500; }
.app-body #modelMetrics .model-score span { font-size: 10px; }
.app-body .model-avatar img[src*="perplexity"] { filter: grayscale(1) brightness(0); }
.app-body .app-card-ranking .table-wrap { max-width: calc(100% + 48px); margin: 0 -24px -24px; overflow-x: auto; border-radius: 0 0 20px 20px; }
.app-body .app-leaderboard { width: 100%; table-layout: fixed; min-width: 590px; }
.app-body .app-leaderboard th { padding: 10px 7px; color: var(--text-soft); background: var(--bg-soft); font-size: 10px; line-height: 1.4; font-weight: 500; letter-spacing: 0; text-transform: none; white-space: normal; }
.app-body .app-leaderboard td { padding: 13px 7px; font-size: 11px; vertical-align: middle; }
.app-body .app-leaderboard th:first-child { width: 5%; }
.app-body .app-leaderboard th:nth-child(2) { width: 22%; }
.app-body .app-leaderboard th:nth-child(3) { width: 12%; }
.app-body .app-leaderboard th:nth-child(4) { width: 12%; }
.app-body .app-leaderboard th:nth-child(5) { width: 12%; }
.app-body .app-leaderboard th:nth-child(6) { width: 12%; }
.app-body .app-leaderboard th:nth-child(7) { width: 13%; }
.app-body .app-leaderboard th:nth-child(8) { width: 12%; }
.app-body .app-leaderboard .identity-avatar { width: 22px; height: 22px; flex-basis: 22px; }
.app-body .app-leaderboard .identity-name { max-width: 100%; gap: 6px; }
.app-body .app-leaderboard .identity-name strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.app-body .app-leaderboard tr.is-current td:nth-child(2) strong::after { display: none; }
.app-body .app-leaderboard td[colspan] { padding: 18px; white-space: normal; }
.app-body #homeSourceList .app-rank-row { display: grid; align-items: center; grid-template-columns: 22px minmax(0, 1fr) minmax(70px, 22%); gap: 10px; }
.app-body #homeSourceList .app-data-row { min-height: 48px; border-bottom: 1px solid var(--border); }
.app-body #homeSourceList .app-data-row:last-child { border-bottom: 0; }
.app-body #homeSourceList .app-rank-main { display: flex; min-width: 0; align-items: center; gap: 9px; }
.app-body #homeSourceList .app-rank-main > div { min-width: 0; }
.app-body #homeSourceList .app-rank-main strong, .app-body #homeSourceList .app-rank-main small { display: block; }
.app-body #homeSourceList .app-rank-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-soft); }
.app-body #homeSourceList .app-rank-index { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: var(--bg-soft); color: var(--text-soft); font-size: 10px; }
.app-body #homeSourceList .app-rank-result { min-width: 0; text-align: right; }
.app-body #homeSourceList .app-rank-main strong { font-size: 13px; font-weight: 500; }
.app-body #homeSourceList .app-rank-main small { font-size: 11px; }
.app-body #homeSourceList .app-rank-result > strong { max-width: 100%; font-size: 11px; }
.app-body .app-dashboard-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; color: var(--text-soft); font-size: 12px; }
.app-body .app-dashboard-footer > span:last-child { display: flex; align-items: center; gap: 10px; }
.app-body #addMetricButton { color: var(--accent); opacity: 1; }
.app-body .app-dashboard-footer small { padding: 2px 7px; border-radius: 5px; color: var(--text-soft); background: var(--bg-soft); font-size: 10px; }
.app-body #view-settings { padding-top: 0; }
.app-body .settings-layout { grid-template-columns: 244px minmax(0, 1fr); min-height: calc(100dvh - 86px); gap: 0; margin: 0 -32px -40px; }
.app-body .settings-nav { top: 86px; gap: 0; min-height: calc(100dvh - 86px); padding: 26px 16px; border: 0; border-right: 1px solid var(--border); border-radius: 0; background: var(--surface); }
.app-body .settings-nav-heading { margin: 0 8px 28px; font-size: 20px; line-height: 28px; font-weight: 600; }
.app-body .settings-nav-label { display: block; margin: 28px 12px 10px; color: var(--text-soft); font-size: 12px; }
.app-body .settings-nav button { grid-template-columns: 16px minmax(0, 1fr); gap: 10px; min-height: 42px; padding: 10px 12px; border-radius: 0; }
.app-body .settings-nav button:not([data-settings-tab="project"]) { border: 1px solid var(--border); border-bottom: 0; }
.app-body .settings-nav button[data-settings-tab="profile"] { border-radius: 8px 8px 0 0; }
.app-body .settings-nav button[data-settings-tab="security"] { border-bottom: 1px solid var(--border); border-radius: 0 0 8px 8px; }
.app-body .settings-nav button[data-settings-tab="project"] { border-radius: 8px; }
.app-body .settings-nav strong { font-size: 13px; font-weight: 400; }
.app-body .settings-nav small { display: none; }
.app-body .settings-content { min-width: 0; padding: 32px 48px 48px; }
.app-body .settings-heading { align-items: flex-start; gap: 16px; margin: 0 0 28px; }
.app-body .settings-heading > div > span { display: none; }
.app-body .settings-heading h1 { font-size: 24px; font-weight: 600; line-height: 1.5; }
.app-body .settings-heading p { max-width: 650px; margin-top: 6px; font-size: 13px; line-height: 1.6; }
.app-body .settings-project-context { max-width: 200px; font-size: 11px; }
.app-body .settings-panel { max-width: 960px; }
.app-body .settings-panel .app-card { margin: 0 0 24px; padding: 24px; border-radius: 12px; box-shadow: none; }
.app-body #settings-project .app-card { padding: 0; border: 0; }
.app-body #settings-project .brand-settings-field { margin-top: 24px; }
.app-body .brand-settings-field > div { display: block; }
.app-body .brand-settings-field input { width: 100%; }
.app-body .brand-settings-grid { margin-top: 28px; padding-top: 28px; gap: 24px; }
.app-body .brand-settings-grid h3 { font-size: 14px; font-weight: 500; }
.app-body .brand-settings-grid p { font-size: 12px; }
.app-body .brand-settings-add { margin: 12px 0; }
.app-body .project-save-actions { display: flex; align-items: center; gap: 18px; padding-top: 24px; }
.app-body .project-save-actions .account-form-status { margin: 0; }
.app-body .account-danger { margin-top: 36px; padding-top: 24px; }
.app-body .account-danger strong { font-size: 14px; font-weight: 500; }
.app-body .account-danger span { font-size: 12px; }
.app-body .settings-panel .account-form { gap: 20px; }
.app-body .settings-panel .account-form label, .app-body .brand-settings-field { font-size: 13px; font-weight: 400; }
.app-body .settings-panel input { min-height: 42px; font-size: 13px; font-weight: 400; }
.app-body .password-input { display: block; position: relative; width: 100%; }
.app-body .password-input input { width: 100%; padding-right: 44px; }
.app-body .password-toggle { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 42px; height: 42px; padding: 12px; color: var(--text-soft); background: transparent; border: 0; }
.app-body .password-toggle svg { width: 18px; height: 18px; }
.app-body .settings-panel .account-form .btn { justify-self: start; min-height: 42px; font-size: 12px; }
.app-body .account-meta { font-size: 12px; }
.app-body #settings-profile, .app-body #settings-security { max-width: 800px; }
.app-body #settings-security .settings-card { width: 100%; }
.app-body .account-password-fields { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.app-body .settings-danger-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--border); }
.app-body .settings-danger-card h2 { margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.app-body .settings-danger-card p { color: var(--text-soft); font-size: 12px; }
.app-body .settings-danger-card > .btn { flex-shrink: 0; }
.app-body .settings-panel[data-settings-panel="appearance"]:not([hidden]) { display: block; }
.app-body .settings-nav [data-settings-tab="appearance"] { display: grid; }
.app-body .theme-options { max-width: 800px; gap: 20px; }
.app-body .theme-option { display: flex; flex-direction: column; align-items: stretch; min-height: 230px; padding: 12px; gap: 16px; }
.app-body .theme-option > span:last-of-type { flex-direction: row; justify-content: space-between; align-items: center; padding: 0 4px; }
.app-body .theme-option > .theme-option-check { position: absolute; width: 0; overflow: hidden; }
.app-body .theme-option:disabled { opacity: 1; }
.app-body .theme-preview { display: grid; grid-template-columns: 24% minmax(0, 1fr); gap: 8px; height: 150px; min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.app-body .theme-preview > span:first-child { border-right: 1px solid var(--border); background: var(--bg-soft); }
.app-body .theme-preview > span:last-child { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px; }
.app-body .theme-preview i { height: 70px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg-soft); }
.app-body .theme-preview-dark { background: var(--night); }
.app-body .theme-preview-dark > span:first-child, .app-body .theme-preview-dark i { background: var(--surface-1); border-color: var(--surface-1); }
.app-body .account-quota-grid { gap: 20px; }
.app-body .account-quota-grid article { padding: 20px; }
.app-body .account-dialog { width: min(540px, calc(100vw - 32px)); padding: 28px; border: 1px solid var(--border); border-radius: 14px; color: var(--text); background: var(--surface); box-shadow: var(--shadow); }
.app-body .account-dialog::backdrop { background: color-mix(in srgb, var(--night) 30%, transparent); }
.app-body .account-dialog h2 { margin-bottom: 12px; font-size: 20px; }
.app-body .account-dialog > p { margin-bottom: 20px; color: var(--text-soft); font-size: 13px; }
.app-body .account-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.app-body .account-dialog .btn { min-height: 40px; padding: 9px 14px; font-size: 12px; }
.app-body .account-dialog .account-delete-form { display: grid; grid-template-columns: 1fr; margin-bottom: 12px; gap: 18px; }
.app-body .account-dialog .account-delete-form label { display: grid; gap: 8px; font-size: 13px; }
.app-body .account-dialog input { min-height: 42px; }
.app-body button:focus-visible, .app-body a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
}
@media screen and (max-width: 1400px) {
.app-body .app-dashboard-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; }
.app-body .app-dashboard-grid > .app-card { padding: 20px; }
.app-body .app-card-ranking .table-wrap { margin: 0 -20px -20px; max-width: calc(100% + 40px); }
.app-body .app-card-head { flex-wrap: wrap; }
.app-body .settings-layout { grid-template-columns: 210px minmax(0, 1fr); }
.app-body .settings-content { padding: 28px 32px 40px; }
.app-body .last-check-time { font-size: 11px; }
}
@media screen and (max-width: 1150px) {
.app-body .app-main { padding-right: 24px; padding-left: 24px; }
.app-body .app-dashboard-grid { grid-template-columns: minmax(0, 1fr); }
.app-body .app-card-ranking { grid-row: 3; }
.app-body .app-home-toolbar { margin: 0 0 20px; justify-content: flex-start; }
.app-body .app-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.app-body .app-topbar-context { align-items: flex-start; flex-direction: column; gap: 4px; }
.app-body .settings-layout { margin-right: -24px; margin-left: -24px; }
.app-body .settings-content { padding: 24px; }
.app-body .brand-settings-grid { grid-template-columns: minmax(0, 1fr); }
.app-body .settings-project-context { display: none; }
}
@media screen and (max-width: 768px) {
.app-body .app-shell { display: block; }
.app-body .app-sidebar { z-index: 60; width: min(280px, calc(100vw - 48px)); visibility: hidden; transform: translateX(-100%); transition: transform var(--transition); }
.app-body.mobile-nav-open .app-sidebar { visibility: visible; transform: translateX(0); }
.app-body .mobile-nav-backdrop:not([hidden]) { position: fixed; inset: 0; z-index: 59; display: block; width: 100%; height: 100dvh; background: color-mix(in srgb, var(--night) 30%, transparent); }
.app-body .mobile-nav-toggle { display: grid; width: 34px; height: 34px; flex-shrink: 0; }
.app-body .mobile-nav-toggle svg { width: 18px; height: 18px; }
.app-body .app-sidebar .app-nav { flex-direction: column; overflow-x: hidden; }
.app-body .app-sidebar .app-nav-label { display: block; }
.app-body .app-sidebar .app-nav-item { width: 100%; }
.app-body .app-account-menu { justify-self: stretch; }
.app-body .app-account-popover { width: 100%; }
.app-body .project-picker-menu { width: 100%; }
.app-body .app-main { padding: 0 16px 28px; }
.app-body .app-topbar { display: flex; min-height: 68px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.app-body .app-topbar-context { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 0 8px; }
.app-body .mobile-nav-toggle { grid-row: 1 / 3; }
.app-body #appBreadcrumb { font-size: 13px; }
.app-body .last-check-time { grid-column: 2; font-size: 10px; }
.app-body .app-topbar-actions { gap: 6px; }
.app-body .app-topbar-actions .btn { min-height: 34px; padding: 7px 10px; font-size: 11px; }
.app-body .app-view, .app-body #view-home { padding-top: 22px; }
.app-body .app-home-heading h1 { font-size: 22px; }
.app-body .app-home-toolbar { gap: 10px; align-items: flex-start; }
.app-body .app-home-toolbar .analytics-period { width: auto; max-width: 100%; }
.app-body .app-home-toolbar .provider-filter { flex: 1; min-width: 0; }
.app-body .provider-filter-menu { max-width: calc(100vw - 32px); }
.app-body .provider-filter-trigger { min-width: 0; }
.app-body .app-kpis { gap: 12px; margin-bottom: 18px; }
.app-body .app-kpis article { min-height: 112px; padding: 14px; }
.app-body .app-kpis article > span:first-child { padding-right: 16px; font-size: 11px; }
.app-body .app-kpis strong { font-size: 28px; }
.app-body .app-kpis em { font-size: 10px; }
.app-body .metric-help { top: 12px; right: 10px; width: 16px; height: 16px; font-size: 10px; }
.app-body .app-kpis .metric-tooltip { width: 260px; max-width: min(260px, calc(100vw - 48px)); right: 0; font-size: 11px; }
.app-body .app-kpis article:nth-child(odd) .metric-tooltip { left: 0; right: auto; }
.app-body .app-dashboard-grid { gap: 18px; }
.app-body .app-dashboard-grid > .app-card { padding: 18px; border-radius: 14px; }
.app-body .app-leaderboard { min-width: 680px; }
.app-body .app-card-ranking .table-wrap { margin: 0 -18px -18px; max-width: calc(100% + 36px); border-radius: 0 0 14px 14px; }
.app-body .app-card-head h2 { font-size: 15px; }
.app-body .app-card-head span { font-size: 11px; }
.app-body .app-dashboard-footer { align-items: flex-start; font-size: 10px; }
.app-body .app-dashboard-footer > span:first-child { max-width: 45%; }
.app-body .app-dashboard-footer > span:last-child { gap: 6px; }
.app-body .app-dashboard-footer .app-text-action { font-size: 11px; }
.app-body .settings-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; margin: 0 -16px -28px; }
.app-body .settings-nav { position: static; flex-direction: row; gap: 4px; min-height: 0; padding: 12px 16px; overflow-x: auto; border: 0; border-bottom: 1px solid var(--border); }
.app-body .settings-nav-heading, .app-body .settings-nav-label { display: none; }
.app-body .settings-nav button, .app-body .settings-nav button:not([data-settings-tab="project"]), .app-body .settings-nav button[data-settings-tab="security"] { display: flex; flex: 0 0 auto; width: auto; min-height: 38px; padding: 8px 10px; gap: 8px; border: 0; border-radius: 7px; }
.app-body .settings-nav button svg { display: block; }
.app-body .settings-nav strong { font-size: 12px; }
.app-body .settings-content { padding: 24px 16px 32px; }
.app-body .settings-heading { margin-bottom: 24px; }
.app-body .settings-heading h1 { font-size: 22px; }
.app-body .settings-heading p { font-size: 12px; }
.app-body .settings-panel .app-card { padding: 20px; }
.app-body .settings-panel .account-form { gap: 18px; }
.app-body .account-quota-grid { grid-template-columns: minmax(0, 1fr); }
.app-body .project-save-actions, .app-body .settings-danger-card { align-items: stretch; flex-direction: column; }
.app-body .settings-danger-card > .btn { align-self: flex-start; }
.app-body .theme-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.app-body .theme-option { min-height: 170px; padding: 8px; }
.app-body .theme-preview { height: 100px; padding: 7px; gap: 5px; }
.app-body .theme-preview i { height: 40px; }
.app-body .theme-option > span:last-of-type { flex-direction: column; align-items: flex-start; gap: 4px; }
.app-body .theme-option strong { font-size: 12px; }
.app-body .theme-option small { font-size: 10px; }
.app-body .account-dialog { padding: 22px; }
}
@media screen and (max-width: 460px) {
.app-body .app-topbar { padding-top: 10px; padding-bottom: 10px; }
.app-body .app-topbar-context { flex-basis: 100%; }
.app-body .app-topbar-actions { width: 100%; justify-content: flex-end; }
.app-body .app-topbar-actions .btn { flex: 1; }
.app-body .brand-settings-add { grid-template-columns: minmax(0, 1fr) auto; }
.app-body .brand-settings-add input { width: 100%; min-width: 0; }
}

.app-body.onboarding-active .app-shell, .app-body.dashboard-load-error .app-shell { display: none; }
.app-body .cookie-preferences:not([hidden]) { position: relative; right: auto; bottom: auto; left: auto; display: block; margin: 12px 16px 16px auto; }
