:root {
    --bg: #f5f6f3;
    --surface: #ffffff;
    --surface-2: #eef1ed;
    --surface-3: #e5e9e4;
    --text: #1b2420;
    --muted: #66726c;
    --line: #dce2dd;
    --line-strong: #c8d0ca;
    --primary: #1f6feb;
    --primary-dark: #1557b8;
    --accent: #16705c;
    --danger: #b83d50;
    --warning: #96621b;
    --success: #16705c;
    --shadow-sm: 0 1px 2px rgba(18, 32, 25, .06), 0 8px 24px rgba(18, 32, 25, .04);
    --shadow: 0 18px 54px rgba(18, 32, 25, .12);
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --sidebar: #fbfcfa;
    --sidebar-text: #34413b;
    --content-max: 1360px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --transition: 160ms ease;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #111613;
    --surface: #19201c;
    --surface-2: #222b26;
    --surface-3: #2b352f;
    --text: #f1f5f2;
    --muted: #a6b1ab;
    --line: #313b35;
    --line-strong: #46524b;
    --primary: #67a2ff;
    --primary-dark: #8cb9ff;
    --danger: #ff94a6;
    --warning: #f3c478;
    --success: #7cddb8;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .2), 0 10px 28px rgba(0, 0, 0, .14);
    --shadow: 0 20px 64px rgba(0, 0, 0, .34);
    --sidebar: #151b17;
    --sidebar-text: #d5ddd8;
    color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.58; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; }
a { color: var(--primary); text-underline-offset: 3px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 10px 14px; background: var(--surface); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.install-page { background: var(--bg); }
.install-shell { width: min(960px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0; }
.install-footer { display: flex; gap: 16px; justify-content: space-between; width: min(960px, calc(100% - 32px)); margin: -28px auto 0; padding: 18px 0 30px; color: var(--muted); border-top: 1px solid var(--line); font-size: .74rem; }
.install-card { padding: clamp(24px, 5vw, 52px); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.install-card--compact { max-width: 620px; margin: 10vh auto 0; text-align: center; }
.install-header { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.install-header h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; }
.brand-mark { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; color: #fff; background: var(--primary); font-weight: 850; letter-spacing: -.04em; box-shadow: none; }
.eyebrow { margin: 0 0 4px; color: var(--primary); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.step-count { margin-left: auto; color: var(--muted); font-size: .9rem; font-weight: 700; white-space: nowrap; }
.progress-track { height: 6px; margin-bottom: 30px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress-track span { display: block; height: 100%; background: var(--primary); border-radius: inherit; transition: width .3s ease; }
.lead { max-width: 750px; margin: 0 0 26px; color: var(--muted); font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.feature-grid article, .notice-card { padding: 20px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-grid h2, .notice-card h2 { margin: 12px 0 6px; font-size: 1rem; }
.feature-grid p { margin: 0; color: var(--muted); font-size: .9rem; }
.feature-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(31,111,235,.1); color: var(--primary); font-size: .78rem; font-weight: 800; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.form-actions--center { justify-content: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; font-weight: 760; text-decoration: none; transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition); }
.button:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 10%, transparent); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgba(31,111,235,.28); outline-offset: 2px; }
.button--primary { color: #fff; background: var(--primary); box-shadow: none; }
.button--primary:hover { background: var(--primary-dark); }
.button--secondary { color: var(--text); background: var(--surface); border-color: var(--line); }
.button--small { min-height: 34px; padding: 6px 10px; font-size: .82rem; }
.alert { display: flex; gap: 8px 16px; flex-wrap: wrap; margin: 20px 0; padding: 14px 16px; border: 1px solid; border-left-width: 3px; border-radius: var(--radius-sm); }
.alert--danger { color: var(--danger); background: rgba(201,54,79,.08); border-color: rgba(201,54,79,.25); }
.alert--warning { color: var(--warning); background: rgba(232,142,0,.09); border-color: rgba(232,142,0,.26); }
.alert--success { color: var(--success); background: rgba(16,163,127,.08); border-color: rgba(16,163,127,.24); }
.alert .error-guidance { flex: 1; min-width: 0; }
.error-resolution-panel { margin: 0 0 20px; padding: 18px; color: var(--danger); background: rgba(201,54,79,.07); border: 1px solid rgba(201,54,79,.25); border-radius: 16px; }
.error-guidance { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(320px,1.2fr); gap: 18px; width: 100%; color: var(--text); }
.error-guidance p { margin: 4px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.error-guidance__message > strong { color: var(--danger); }
.error-guidance__solution { padding-left: 18px; border-left: 1px solid rgba(201,54,79,.22); }
.error-guidance__solution ol { margin: 8px 0; padding-left: 20px; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.error-guidance__solution a { display: inline-block; margin-top: 8px; color: var(--primary); font-size: .74rem; font-weight: 800; }
.error-guidance--compact { display: block; min-width: 210px; }
.error-guidance--compact .error-guidance__solution { margin-top: 8px; padding: 8px 0 0; border-top: 1px solid rgba(201,54,79,.18); border-left: 0; }
.check-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.check-row { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.check-row:last-child { border-bottom: 0; }
.check-row small { display: block; color: var(--muted); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; }
.status-dot--ok { background: var(--success); box-shadow: 0 0 0 4px rgba(16,163,127,.12); }
.status-dot--warning { background: #e58c00; box-shadow: 0 0 0 4px rgba(229,140,0,.12); }
.status-dot--error { background: var(--danger); box-shadow: 0 0 0 4px rgba(201,54,79,.12); }
.status-dot--neutral { background: var(--muted); box-shadow: 0 0 0 4px rgba(102,112,133,.12); }
.badge { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: .74rem; font-weight: 800; }
.badge--neutral { background: var(--surface-2); color: var(--text); }
.badge--soft { background: rgba(31,111,235,.1); color: var(--primary); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span, .choice-group legend { font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color var(--transition), box-shadow var(--transition); }
.field textarea { min-height: 110px; resize: vertical; }
.field small, .form-help { color: var(--muted); font-size: .82rem; }
.field--full { grid-column: 1 / -1; }
.summary-strip, .next-steps { display: flex; grid-column: 1 / -1; gap: 10px; flex-wrap: wrap; padding: 14px; border-radius: 12px; background: var(--surface-2); }
.summary-strip span, .next-steps span { flex: 1; min-width: 150px; color: var(--muted); font-size: .86rem; }
.summary-strip strong { display: block; color: var(--text); }
.choice-group { display: grid; gap: 10px; padding: 0; border: 0; }
.choice-group legend { margin-bottom: 12px; }
.choice-card { display: flex; gap: 12px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--primary); background: rgba(31,111,235,.06); }
.choice-card input { margin-top: 5px; accent-color: var(--primary); }
.choice-card small { display: block; margin-top: 3px; color: var(--muted); }
.ai-fields { margin-top: 18px; }
.ai-fields details { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; }
.ai-fields summary { padding: 14px; cursor: pointer; font-weight: 750; }
.ai-fields details .form-grid { padding: 0 14px 16px; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 24px; }
.recovery-codes code, .command-card code { padding: 9px 12px; overflow-wrap: anywhere; background: var(--surface-2); border-radius: 8px; }
.command-card { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 12px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.command-card > span { grid-column: 1 / -1; font-size: .78rem; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.success-illustration { display: grid; place-items: center; width: 74px; height: 74px; margin: 10px auto 24px; border-radius: 50%; color: #fff; background: var(--success); font-size: 2.4rem; box-shadow: 0 15px 30px rgba(11,125,96,.22); }
.install-copy--center { text-align: center; }
.install-copy--center .lead, .install-copy--center p { margin-left: auto; margin-right: auto; }
.auth-page { background: var(--bg); }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 470px); gap: clamp(30px, 8vw, 110px); align-items: center; width: min(1120px, calc(100% - 40px)); min-height: 100vh; margin: 0 auto; padding: 48px 0; }
.auth-brand { max-width: 560px; padding-top: 22px; border-top: 2px solid var(--primary); }
.auth-brand h1 { max-width: 520px; margin: 24px 0 14px; font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: 1.03; letter-spacing: -.04em; }
.auth-brand > p:not(.eyebrow) { max-width: 480px; color: var(--muted); font-size: 1.08rem; }
.auth-card { padding: clamp(24px, 4vw, 42px); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.auth-card h2 { margin: 4px 0 6px; font-size: 1.8rem; }
.auth-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 38px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; }
.auth-proof li { display: grid; gap: 7px; padding: 0 16px; border-left: 1px solid var(--line); }
.auth-proof li:first-child { padding-left: 0; border-left: 0; }
.auth-proof span { color: var(--primary); font-size: .75rem; font-weight: 850; letter-spacing: .08em; }
.auth-proof strong { font-size: .76rem; line-height: 1.45; }
.muted { color: var(--muted); }
.stack-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 24px 0 18px; }
.stack-form > *, .file-guidance > * { min-width: 0; }
.stack-form .button { width: 100%; margin-top: 4px; }
.text-link { display: inline-block; font-size: .9rem; font-weight: 700; }
.code-input { text-align: center; font-size: 1.4rem; letter-spacing: .16em; font-variant-numeric: tabular-nums; }
.empty-state { max-width: 620px; margin: 12vh auto; padding: 40px; text-align: center; }
.empty-state__code { display: block; color: var(--primary); font-size: .75rem; font-weight: 900; letter-spacing: .12em; line-height: 1; text-transform: uppercase; }
.app-page { overflow-x: hidden; }
.mobile-dock { display: none; }
.app-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; z-index: 40; display: flex; flex-direction: column; height: 100vh; padding: 16px 12px 14px; color: var(--sidebar-text); background: var(--sidebar); border-right: 1px solid var(--line); }
.sidebar__brand { display: flex; gap: 11px; align-items: center; min-height: 58px; padding: 2px 8px 16px; border-bottom: 1px solid var(--line); }
.brand-mark--small { flex-basis: 36px; width: 36px; height: 36px; border-radius: 10px; font-size: .75rem; }
.sidebar__brand > span:last-child { min-width: 0; }
.sidebar__brand strong { display: block; overflow: hidden; color: var(--text); font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__brand small, .sidebar__footer small { display: block; color: var(--muted); font-size: .69rem; }
.sidebar__nav { display: grid; gap: 2px; overflow-y: auto; padding: 12px 0 8px; scrollbar-width: thin; }
.sidebar__nav a { display: flex; gap: 11px; align-items: center; min-height: 40px; padding: 8px 10px; color: var(--muted); border: 1px solid transparent; border-radius: var(--radius-sm); font-size: .83rem; font-weight: 670; text-decoration: none; transition: color var(--transition), background var(--transition), border-color var(--transition); }
.sidebar__nav a:hover { color: var(--text); background: var(--surface-2); }
.sidebar__nav a.is-active { color: var(--text); background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-icon { display: grid; place-items: center; width: 18px; height: 18px; color: currentColor; opacity: .82; }
.nav-icon--folder { border-radius: 3px 5px 5px 5px; }
.nav-icon--spark { transform: rotate(45deg); width: 14px; height: 14px; border-radius: 3px; margin: 2px; }
.nav-icon--bell { border-radius: 9px 9px 4px 4px; }
.nav-icon--check::after { content: "✓"; font-size: .72rem; }
.nav-icon--flask { border-radius: 3px 3px 8px 8px; }
.nav-icon--news { border-radius: 2px; box-shadow: inset 0 -5px transparent; }
.nav-icon--plug { border-radius: 50%; }
.nav-icon--report { border-radius: 2px; }
.nav-icon--chart { align-items: end; grid-template-columns: repeat(3,3px); gap: 2px; padding: 3px; border-radius: 3px; }
.nav-icon--chart::before { content: ""; width: 3px; height: 5px; background: currentColor; box-shadow: 5px -3px currentColor, 10px -7px currentColor; }
.nav-icon--queue { border-style: dashed; }
.nav-icon--heart { border-radius: 10px 10px 7px 7px; transform: rotate(45deg) scale(.82); }
.nav-icon--help { border-radius: 50%; }
.nav-icon--help::after { content: "?"; font-size: .7rem; transform: none; }
.nav-icon--gear { border-radius: 50%; border-style: dotted; border-width: 2px; }
.sidebar__footer { display: flex; gap: 6px; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.sidebar__footer > a { display: flex; flex: 1; gap: 9px; align-items: center; min-width: 0; padding: 7px; color: var(--text); text-decoration: none; }
.sidebar__footer > a > span:last-child { min-width: 0; }
.sidebar__footer strong { display: block; overflow: hidden; max-width: 115px; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__footer form { margin: 0; }
.avatar { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; color: #fff; background: rgba(31,111,235,.8); border-radius: 10px; font-size: .78rem; font-weight: 800; }
.app-main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; min-height: 72px; padding: 12px clamp(20px, 3vw, 38px); background: color-mix(in srgb, var(--bg) 90%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent); backdrop-filter: blur(18px); }
.topbar__crumb span { display: block; color: var(--muted); font-size: .68rem; }
.topbar__crumb strong { font-size: .9rem; }
.topbar__actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.icon-button, .quick-add { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 11px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; line-height: 1; text-decoration: none; transition: background var(--transition), border-color var(--transition), box-shadow var(--transition); }
.icon-button:hover { background: var(--surface-2); border-color: var(--line-strong); }
.sidebar .icon-button { color: var(--muted); border-color: var(--line); }
.quick-add { display: inline-flex; gap: 8px; align-items: center; justify-content: center; color: #fff; background: var(--primary); border-color: var(--primary); font-size: .82rem; font-weight: 800; }
.quick-add svg, .button > svg { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-toggle { display: none; margin-right: 10px; }
.page-content { width: min(var(--content-max), 100%); margin: 0 auto; padding: 30px clamp(24px, 3.2vw, 44px) 54px; }
.page-heading { display: flex; gap: 28px; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.page-heading > div:first-child { max-width: 760px; }
.page-heading h1 { margin: 0; font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1.08; letter-spacing: -.045em; }
.page-heading p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); }
.heading-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.alert__close { display: inline-grid; min-width: 40px; min-height: 40px; margin-left: auto; padding: 0; place-items: center; color: currentColor; background: none; border: 0; cursor: pointer; }
.demo-banner { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; padding: 11px 14px; color: #6b4500; background: #fff4cf; border: 1px solid #ead687; border-radius: 11px; font-size: .86rem; }
.demo-banner a { margin-left: auto; color: inherit; font-weight: 800; }
.onboarding-panel { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 40px; align-items: center; padding: clamp(28px, 5vw, 60px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.onboarding-panel h2 { max-width: 620px; margin: 4px 0 8px; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.15; }
.onboarding-panel p:not(.eyebrow) { max-width: 600px; color: var(--muted); }
.onboarding-panel__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; color: var(--primary); background: rgba(31,111,235,.1); border-radius: 14px; font-size: 1.5rem; }
.onboarding-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.onboarding-steps li { display: flex; gap: 12px; align-items: center; padding: 14px; opacity: .65; border: 1px solid var(--line); border-radius: 12px; }
.onboarding-steps li.is-current { opacity: 1; border-color: var(--primary); background: rgba(31,111,235,.06); }
.onboarding-steps li > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); font-weight: 800; }
.onboarding-steps small { display: block; color: var(--muted); }
.page-heading--dashboard { margin-bottom: 24px; }
.dashboard-command { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); margin-bottom: 34px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.dashboard-command__copy { padding: clamp(24px, 4vw, 38px); }
.dashboard-command__state { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: .76rem; font-weight: 780; }
.dashboard-command__state i { width: 9px; height: 9px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 12%, transparent); }
.dashboard-command__state.is-attention i { background: var(--warning); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warning) 13%, transparent); }
.dashboard-command h2 { max-width: 650px; margin: 14px 0 8px; font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.12; letter-spacing: -.04em; }
.dashboard-command__copy > p { max-width: 690px; margin: 0; color: var(--muted); }
.dashboard-command__action { display: flex; flex-direction: column; justify-content: center; padding: 28px; background: var(--surface-2); border-left: 1px solid var(--line); }
.dashboard-command__action > span { margin-bottom: 8px; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-command__action a { display: flex; gap: 16px; align-items: center; justify-content: space-between; min-height: 36px; color: var(--text); font-size: 1rem; font-weight: 820; text-decoration: none; }
.dashboard-command__action a span { color: var(--primary); font-size: 1.35rem; }
.dashboard-command dl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.dashboard-command dl div { padding: 15px 22px; border-left: 1px solid var(--line); }
.dashboard-command dl div:first-child { border-left: 0; }
.dashboard-command dt { color: var(--muted); font-size: .75rem; }
.dashboard-command dd { margin: 2px 0 0; font-size: 1.05rem; font-weight: 840; font-variant-numeric: tabular-nums; }
.section-heading--dashboard { display: flex; gap: 24px; align-items: end; justify-content: space-between; margin: 0 0 12px; }
.section-heading--dashboard h2 { margin: 0; font-size: 1.15rem; }
.section-heading--dashboard > p { max-width: 430px; margin: 0; color: var(--muted); font-size: .78rem; text-align: right; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card { min-width: 0; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.metric-card__top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .8rem; font-weight: 700; }
.metric-card > strong { display: block; margin: 10px 0 9px; font-size: clamp(1.35rem, 2.5vw, 2rem); letter-spacing: -.025em; }
.metric-dot { width: 9px; height: 9px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 0 4px rgba(31,111,235,.1); }
.metric-dot--users { background: #7c56d9; box-shadow: 0 0 0 4px rgba(124,86,217,.1); }
.metric-dot--installs { background: var(--accent); box-shadow: 0 0 0 4px rgba(16,163,127,.1); }
.metric-dot--organic_clicks { background: #e58c00; box-shadow: 0 0 0 4px rgba(229,140,0,.1); }
.metric-card__foot { display: flex; gap: 8px; align-items: center; }
.metric-card__foot small { overflow: hidden; color: var(--muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.trend { flex: 0 0 auto; padding: 3px 6px; border-radius: 6px; font-size: .7rem; font-weight: 800; }
.trend--up { color: var(--success); background: rgba(16,163,127,.1); }
.trend--down { color: var(--danger); background: rgba(201,54,79,.1); }
.trend--neutral { color: var(--muted); background: var(--surface-2); }
.metric-grid--dashboard { gap: 0; margin-bottom: 28px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.metric-grid--dashboard .metric-card { min-height: 164px; background: transparent; border: 0; border-left: 1px solid var(--line); border-radius: 0; }
.metric-grid--dashboard .metric-card:first-child { border-left: 0; }
.metric-grid--dashboard .metric-card > strong { font-variant-numeric: tabular-nums; }
.dashboard-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.dashboard-grid .dashboard-projects { grid-column: span 7; }
.dashboard-grid .dashboard-alerts { grid-column: span 5; }
.dashboard-grid .dashboard-changes { grid-column: 1 / -1; }
.panel { min-width: 0; padding: 21px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 82%, transparent); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel--span-2 { grid-column: span 2; }
.panel__header { display: flex; gap: 12px; align-items: start; justify-content: space-between; margin-bottom: 14px; }
.panel__header h2 { margin: 0; font-size: 1rem; }
.panel__header p { margin: 2px 0 0; color: var(--muted); font-size: .77rem; }
.panel__header > a { flex: 0 0 auto; font-size: .77rem; font-weight: 800; text-decoration: none; }
.project-list { display: grid; }
.project-row { display: grid; grid-template-columns: 38px minmax(100px, 1fr) minmax(78px, auto) 16px; gap: 10px; align-items: center; padding: 11px 4px; color: var(--text); border-top: 1px solid var(--line); text-decoration: none; }
.project-row:first-child { border-top: 0; }
.project-row:hover strong { color: var(--primary); }
.project-avatar { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--project-color); border-radius: 10px; font-size: .75rem; font-weight: 800; }
.project-row small, .project-row__stat small { display: block; color: var(--muted); font-size: .67rem; }
.project-row__stat { text-align: center; }
.project-row__stat--alerts { min-width: 78px; padding: 6px 8px; color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); border-radius: 9px; }
.project-row__stat--alerts strong { font-variant-numeric: tabular-nums; }
.project-row__stat--alerts small { color: currentColor; opacity: .76; }
.project-row__stat--alerts.is-clear { color: var(--muted); background: var(--surface-2); }
.project-row__stat--alerts.is-clear small { opacity: 1; }
[data-theme="dark"] .success-illustration,
[data-theme="dark"] .setup-step-list li.is-done > span { color: #111613; }
.chevron { color: var(--muted); font-size: 1.3rem; }
.dashboard-alert-list { display: grid; }
.dashboard-alert-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.dashboard-alert-row:first-child { border-top: 0; }
.dashboard-alert-row > a { display: flex; gap: 9px; align-items: center; min-width: 0; color: var(--text); text-decoration: none; }
.dashboard-alert-row > a > span:last-child { min-width: 0; }
.dashboard-alert-row strong, .dashboard-alert-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-alert-row strong { font-size: .79rem; }
.dashboard-alert-row small { margin-top: 2px; color: var(--muted); font-size: .68rem; }
.dashboard-alert-row form { margin: 0; }
.compact-list { display: grid; }
.compact-list a { display: flex; gap: 10px; align-items: center; min-width: 0; padding: 9px 0; color: var(--text); border-top: 1px solid var(--line); text-decoration: none; }
.compact-list a:first-child { border-top: 0; }
.compact-list a > span:last-child { min-width: 0; }
.compact-list strong, .compact-list small { display: block; overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.compact-list small { color: var(--muted); font-size: .68rem; }
.priority-marker { flex: 0 0 7px; width: 7px; height: 26px; background: var(--muted); border-radius: 99px; }
.priority-marker--urgent, .priority-marker--high { background: var(--danger); }
.priority-marker--medium { background: #e58c00; }
.priority-marker--low { background: var(--accent); }
.severity-pill { flex: 0 0 auto; min-width: 50px; padding: 3px 6px; border-radius: 6px; text-align: center; font-size: .62rem; font-weight: 900; text-transform: uppercase; }
.severity-pill--critical, .severity-pill--high { color: var(--danger); background: rgba(201,54,79,.1); }
.severity-pill--medium { color: var(--warning); background: rgba(229,140,0,.1); }
.severity-pill--low { color: var(--success); background: rgba(16,163,127,.1); }
.mini-empty { padding: 28px 10px; color: var(--muted); text-align: center; }
.mini-empty span { font-size: 1.8rem; }
.mini-empty p { margin: 5px 0; font-size: .82rem; }
.timeline { display: grid; }
.timeline > div { display: flex; gap: 11px; min-width: 0; }
.timeline > div > span { position: relative; flex: 0 0 8px; width: 8px; height: 8px; margin-top: 14px; background: var(--primary); border-radius: 50%; }
.timeline > div:not(:last-child) > span::after { position: absolute; top: 8px; bottom: -28px; left: 3px; width: 1px; content: ""; background: var(--line); }
.timeline p { min-width: 0; margin: 7px 0; }
.timeline strong, .timeline small { display: block; overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.timeline small { color: var(--muted); font-size: .68rem; }
.portfolio-strip { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.portfolio-strip > div { padding: 14px 16px; border-left: 1px solid var(--line); }
.portfolio-strip > div:first-child { border-left: 0; }
.dashboard-ai-cost { display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(280px, 1.2fr) auto; gap: 10px 20px; align-items: center; margin: 18px 0; padding: 15px 18px; color: var(--muted); border-block: 1px solid var(--line); }
.dashboard-ai-cost > span { color: var(--text); font-weight: 760; }
.dashboard-ai-cost strong { color: var(--text); font-variant-numeric: tabular-nums; }
.dashboard-ai-cost small { font-size: .75rem; }
.dashboard-ai-cost a { font-size: .76rem; font-weight: 800; text-decoration: none; }
.portfolio-strip span { display: block; color: var(--muted); font-size: .68rem; }
.portfolio-strip strong { display: block; margin-top: 4px; font-size: .98rem; }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 35; background: rgba(4,10,20,.55); backdrop-filter: blur(2px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 20px; padding: 0 0 16px; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.search-form { display: flex; gap: 8px; flex: 1; max-width: 470px; }
.search-form label { flex: 1; }
.search-form input { width: 100%; min-height: 42px; padding: 8px 12px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.filter-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tabs a { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 11px; color: var(--muted); border: 1px solid transparent; border-radius: 999px; font-size: .76rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.filter-tabs a.is-active { color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 22%, var(--line)); }
.anomaly-filter-groups { display: flex; align-items: end; gap: 14px; min-width: 0; }
.anomaly-filter-groups > div > span, .metrics-periods > span { display: block; margin: 0 0 3px 10px; color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.empty-card { padding: 64px 24px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.empty-card h2 { margin: 12px 0 4px; }
.empty-card p { margin: 0 0 20px; color: var(--muted); }
.empty-card__icon { display: grid; place-items: center; width: 54px; height: 54px; margin: auto; color: var(--primary); background: rgba(31,111,235,.1); border-radius: 16px; font-size: 1.7rem; }
.project-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 370px), 1fr)); gap: 16px; }
.project-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color var(--transition), box-shadow var(--transition); }
.project-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.project-card > header { display: flex; align-items: start; justify-content: space-between; }
.project-avatar--large { width: 44px; height: 44px; border-radius: 13px; font-size: .9rem; }
.status-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; color: var(--muted); background: var(--surface-2); border-radius: 999px; font-size: .65rem; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.status-badge--active { color: var(--success); background: rgba(16,163,127,.1); }
.status-badge--paused { color: var(--warning); background: rgba(229,140,0,.1); }
.project-card h2 { margin: 3px 0; font-size: 1.15rem; }
.project-card > div > p:last-child { min-height: 42px; margin: 5px 0 16px; overflow: hidden; color: var(--muted); font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.project-card dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: auto 0 16px; padding: 11px 0; border-block: 1px solid var(--line); }
.project-card dl div { min-width: 0; padding: 0 8px; border-left: 1px solid var(--line); }
.project-card dl div:first-child { border-left: 0; padding-left: 0; }
.project-card dt { color: var(--muted); font-size: .63rem; }
.project-card dd { overflow: hidden; margin: 2px 0 0; font-size: .76rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.project-card footer { display: flex; gap: 8px; }
.project-card footer .button { flex: 1; min-height: 36px; padding: 7px 10px; font-size: .75rem; }
.template-section { margin-top: 34px; }
.template-section > header h2 { margin: 0; font-size: 1.1rem; }
.template-section > header p { margin: 3px 0 14px; color: var(--muted); font-size: .8rem; }
.template-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 5px; }
.template-row a { display: flex; flex-direction: column; min-width: 170px; padding: 15px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 13px; text-decoration: none; }
.template-row a:hover { border-color: var(--primary); }
.template-row a > span { color: var(--primary); font-size: 1.3rem; }
.template-row strong { margin-top: 8px; font-size: .78rem; }
.template-row small { margin-top: 3px; color: var(--muted); font-size: .68rem; }
.back-link { display: inline-block; margin-bottom: 12px; color: var(--muted); font-size: .78rem; font-weight: 750; text-decoration: none; }
.page-heading--wizard { align-items: start; }
.project-wizard { display: grid; grid-template-columns: 230px minmax(0, 840px); gap: 24px; align-items: start; max-width: 1110px; }
.wizard-nav { position: sticky; top: 92px; display: grid; gap: 2px; padding: 4px 0; background: transparent; border: 0; }
.wizard-nav button { position: relative; display: flex; gap: 12px; align-items: center; min-height: 48px; padding: 7px 10px; color: var(--muted); background: transparent; border: 0; border-radius: var(--radius-sm); cursor: pointer; text-align: left; }
.wizard-nav button:not(:last-child)::after { position: absolute; top: 37px; bottom: -13px; left: 22px; width: 1px; content: ""; background: var(--line); }
.wizard-nav button > span { position: relative; z-index: 1; display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 50%; font-size: .68rem; font-weight: 800; }
.wizard-nav button strong { font-size: .79rem; }
.wizard-nav button.is-active { color: var(--text); background: var(--surface); box-shadow: var(--shadow-sm); }
.wizard-nav button.is-active > span { color: #fff; background: var(--primary); border-color: var(--primary); }
.wizard-nav button.is-complete > span { color: var(--success); background: color-mix(in srgb, var(--success) 12%, var(--surface)); border-color: color-mix(in srgb, var(--success) 36%, var(--line)); }
.wizard-stage { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.wizard-stage__meta { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px clamp(22px, 4vw, 38px) 11px; color: var(--text); border-bottom: 1px solid var(--line); font-size: .76rem; font-weight: 800; }
.wizard-stage__meta small { color: var(--muted); font-size: .75rem; font-weight: 500; }
.wizard-progress { height: 3px; background: var(--surface-2); }
.wizard-progress span { display: block; height: 100%; background: var(--primary); transition: width .2s ease; }
.wizard-stage fieldset { min-height: 500px; margin: 0; padding: clamp(26px, 4vw, 42px); border: 0; }
.wizard-stage legend { float: left; width: 100%; margin: 0 0 4px; font-size: 1.35rem; font-weight: 850; }
.wizard-stage legend + * { clear: both; }
.fieldset-help { max-width: 62ch; margin: 0 0 29px; color: var(--muted); font-size: .86rem; }
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.option-grid label { cursor: pointer; }
.option-grid input { position: absolute; opacity: 0; }
.option-grid span { display: grid; place-items: center; min-height: 62px; padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; text-align: center; font-size: .8rem; font-weight: 750; }
.option-grid input:checked + span { color: var(--primary); background: rgba(31,111,235,.08); border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.integration-suggestions { display: grid; gap: 11px; }
.integration-suggestions article { display: flex; gap: 12px; align-items: center; padding: 15px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.integration-suggestions article > div { min-width: 0; flex: 1; }
.integration-suggestions strong, .integration-suggestions small { display: block; }
.integration-suggestions small { color: var(--muted); font-size: .75rem; }
.integration-logo { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; color: #fff; background: var(--primary); border-radius: 11px; font-weight: 900; }
.review-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-bottom: 18px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 12px; }
.review-card div { padding: 14px; background: var(--surface); }
.review-card span, .review-card strong { display: block; }
.review-card span { color: var(--muted); font-size: .68rem; }
.review-card strong { margin-top: 3px; font-size: .82rem; }
.wizard-actions { position: sticky; bottom: 0; z-index: 2; display: flex; gap: 8px; padding: 14px 20px; background: color-mix(in srgb, var(--surface) 94%, transparent); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
.wizard-actions__spacer { flex: 1; }
.project-hero { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 18px; padding: 24px 26px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--project-color); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.project-hero__identity { display: flex; gap: 16px; align-items: center; min-width: 0; }
.project-avatar--hero { width: 58px; height: 58px; background: var(--project-color); border-radius: 16px; font-size: 1.1rem; }
.project-hero h1 { margin: 1px 0; font-size: 1.7rem; }
.project-hero p:last-child { margin: 3px 0 0; color: var(--muted); font-size: .82rem; }
.project-tabs { display: flex; gap: 2px; overflow-x: auto; margin-bottom: 18px; padding: 4px; background: var(--surface-2); border: 0; border-radius: var(--radius-sm); }
.project-tabs a { padding: 9px 12px; color: var(--muted); border-radius: 7px; font-size: .74rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.project-tabs a.is-active { color: var(--text); background: var(--surface); box-shadow: var(--shadow-sm); }
.project-summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-bottom: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.project-summary-grid article { padding: 17px; background: transparent; border: 0; border-left: 1px solid var(--line); border-radius: 0; }
.project-summary-grid article:first-child { border-left: 0; }
.project-summary-grid span { display: block; color: var(--muted); font-size: .68rem; }
.project-summary-grid strong { display: block; margin-top: 5px; font-size: 1rem; }
.project-dashboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.panel--chart { grid-column: span 2; }
.line-chart { height: 220px; padding: 8px 0 4px; border-bottom: 1px solid var(--line); }
.line-chart svg { width: 100%; height: 100%; overflow: visible; }
.line-chart polyline { fill: none; stroke: var(--primary); stroke-width: 2; vector-effect: non-scaling-stroke; }
.interactive-chart { position: relative; cursor: crosshair; touch-action: pan-y; }
.interactive-chart svg:focus-visible { outline: 3px solid rgba(31,111,235,.3); outline-offset: 3px; border-radius: 8px; }
.interactive-chart polyline { pointer-events: none; }
.chart-shell { display: grid; grid-template-columns: minmax(56px, auto) minmax(0, 1fr); align-items: stretch; gap: 10px; }
.chart-y-axis { display: flex; flex-direction: column; justify-content: space-between; padding: 18px 0 24px; color: var(--muted); font-size: .68rem; text-align: right; white-space: nowrap; }
.chart-grid-line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.chart-area { color: var(--primary); pointer-events: none; }
.chart-x-axis { display: flex; justify-content: space-between; margin: 6px 2px 0 max(66px, 5vw); color: var(--muted); font-size: .68rem; }
.chart-reader-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.chart-hit-area { fill: transparent; pointer-events: all; }
.chart-guide { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; pointer-events: none; }
.chart-marker { fill: var(--surface); stroke: var(--primary); stroke-width: 3; vector-effect: non-scaling-stroke; pointer-events: none; }
.chart-tooltip { position: absolute; z-index: 3; display: grid; min-width: 128px; padding: 9px 11px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); transform: translate(-50%, calc(-100% - 10px)); pointer-events: none; }
.chart-tooltip strong { font-size: .78rem; }
.chart-tooltip span { margin-top: 2px; color: var(--muted); font-size: .65rem; }
.chart-selection { min-height: 1.2rem; margin: 8px 0 0; color: var(--muted); font-size: .68rem; }
.chart-table-wrap { margin-top: 12px; max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.chart-table-wrap[hidden] { display: none; }
.chart-table-wrap table { margin: 0; }
.data-empty { padding: 48px 20px; text-align: center; background: transparent; border: 1px solid var(--line); border-radius: var(--radius); }
.data-empty > span { color: var(--primary); font-size: 2rem; }
.data-empty h3 { margin: 6px 0 2px; }
.data-empty p { max-width: 500px; margin: 0 auto 16px; color: var(--muted); font-size: .82rem; }
.project-details dl { display: grid; gap: 10px; margin: 0; }
.project-details dl div { padding: 9px 0; border-top: 1px solid var(--line); }
.project-details dl div:first-child { border-top: 0; }
.project-details dt { color: var(--muted); font-size: .67rem; }
.project-details dd { overflow-wrap: anywhere; margin: 2px 0 0; font-size: .8rem; font-weight: 700; }
.danger-zone { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-top: 20px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.danger-zone h2 { margin: 0; font-size: .95rem; }
.danger-zone p { margin: 3px 0 0; color: var(--muted); font-size: .75rem; }
.danger-zone form { margin: 0; }
.button--danger { color: var(--danger); background: rgba(201,54,79,.08); border-color: rgba(201,54,79,.22); }
.form-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.form-card--narrow { max-width: 680px; }
.upload-zone { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-height: 180px; padding: 30px; overflow: hidden; border: 2px dashed var(--line); border-radius: 14px; cursor: pointer; text-align: center; }
.upload-zone input { width: 100%; min-width: 0; max-width: 100%; margin-bottom: 12px; }
.upload-zone span { font-weight: 800; }
.upload-zone small { max-width: 100%; overflow-wrap: anywhere; color: var(--muted); }
.setup-summary { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 26px; padding: 15px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: var(--radius); }
.setup-summary > div { display: flex; gap: 12px; align-items: center; }
.setup-summary__icon { display: grid; place-items: center; width: 36px; height: 36px; color: var(--primary); background: var(--surface); border-radius: 11px; }
.setup-summary strong { font-size: .84rem; }
.setup-summary p { margin: 2px 0 0; color: var(--muted); font-size: .75rem; }
.setup-summary > a { flex: 0 0 auto; font-size: .75rem; font-weight: 800; }
.integration-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: -8px 0 26px; padding: 15px 0; border-block: 1px solid var(--line); list-style: none; }
.integration-steps li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 9px; align-items: start; min-width: 0; padding: 5px 18px; border-left: 1px solid var(--line); }
.integration-steps li:first-child { padding-left: 0; border-left: 0; }
.integration-steps li > span { display: grid; width: 28px; height: 28px; place-items: center; color: #fff; background: var(--primary); border-radius: 50%; font-size: .75rem; font-weight: 900; }
.integration-steps strong, .integration-steps small { display: block; }
.integration-steps strong { font-size: .75rem; }
.integration-steps small { margin-top: 2px; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.integration-directory { min-width: 0; }
.integration-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 360px); gap: 12px 18px; align-items: end; margin-bottom: 26px; padding: 0 0 18px; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.integration-toolbar h2 { margin: 0; font-size: 1rem; }
.integration-toolbar p { margin: 3px 0 0; color: var(--muted); font-size: .75rem; }
.integration-toolbar label > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .75rem; font-weight: 800; }
.integration-toolbar input { width: 100%; min-height: 40px; padding: 8px 11px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; }
.integration-filters { grid-column: 1 / -1; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.integration-filters button { flex: 0 0 auto; min-height: 36px; padding: 6px 10px; color: var(--muted); background: var(--surface-2); border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-size: .75rem; font-weight: 800; }
.integration-filters button[aria-pressed="true"] { color: var(--primary); background: rgba(31,111,235,.09); border-color: rgba(31,111,235,.24); }
.integration-filters button span { display: inline-grid; min-width: 20px; height: 20px; margin-left: 3px; padding: 0 5px; place-items: center; color: inherit; background: var(--surface); border-radius: 999px; font-size: .75rem; }
.integration-toolbar .integration-results { grid-column: 1 / -1; margin: -4px 0 0; font-size: .75rem; }
.integration-empty { padding: 58px 22px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: 15px; }
.integration-empty > span { color: var(--primary); font-size: 2rem; }
.integration-empty h2 { margin: 8px 0 3px; font-size: 1rem; }
.integration-empty p { margin: 0 0 14px; color: var(--muted); font-size: .75rem; }
.integration-group { margin-bottom: 30px; }
.integration-group > header { display: flex; gap: 10px; align-items: baseline; margin-bottom: 12px; }
.integration-group > header h2 { margin: 0; font-size: 1rem; }
.integration-group > header p { margin: 0; color: var(--muted); font-size: .7rem; }
.integration-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 13px; }
.integration-card { display: flex; flex-direction: column; min-width: 0; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color var(--transition), box-shadow var(--transition); }
.integration-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.integration-card > header { display: flex; align-items: start; justify-content: space-between; }
.integration-card h3 { margin: 13px 0 3px; font-size: .95rem; }
.integration-card > div > p { min-height: 54px; margin: 0; color: var(--muted); font-size: .74rem; }
.integration-card ul { margin: 12px 0; padding-left: 17px; color: var(--muted); font-size: .7rem; }
.integration-card .last-test { margin-top: auto; padding-top: 7px; color: var(--muted); font-size: .65rem; }
.integration-card footer { margin-top: 10px; }
.integration-card footer form { display: flex; gap: 7px; }
.integration-card footer select { min-width: 0; flex: 1; padding: 6px 8px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: .7rem; }
.integration-card footer > a { width: 100%; }
.status-badge--connected { color: var(--success); background: rgba(16,163,127,.1); }
.status-badge--configured { color: var(--primary); background: rgba(31,111,235,.1); }
.status-badge--error { color: var(--danger); background: rgba(201,54,79,.1); }
.configuration-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: 16px; align-items: start; }
.configuration-side { display: grid; gap: 14px; }
.context-chip { display: flex; gap: 10px; align-items: center; padding: 11px 13px; background: var(--surface-2); border-radius: 10px; }
.context-chip span { color: var(--muted); font-size: .7rem; }
.context-chip strong { font-size: .82rem; }
.field-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0; border: 0; }
.field-checks legend { grid-column: 1 / -1; margin-bottom: 6px; font-weight: 750; }
.field-checks label { display: flex; gap: 8px; align-items: center; padding: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; font-size: .75rem; }
.field-checks input { accent-color: var(--primary); }
.callback-box { display: grid; grid-template-columns: 1fr auto; gap: 7px; padding: 13px; background: var(--surface-2); border-radius: 11px; }
.callback-box > span { grid-column: 1 / -1; color: var(--muted); font-size: .67rem; font-weight: 800; }
.callback-box code { overflow-wrap: anywhere; padding: 8px; background: var(--surface); border-radius: 7px; font-size: .7rem; }
.privacy-note { padding: 13px; color: var(--success); background: rgba(16,163,127,.07); border: 1px solid rgba(16,163,127,.18); border-radius: 10px; }
.privacy-note strong { font-size: .76rem; }
.privacy-note p { margin: 2px 0 0; font-size: .7rem; }
.connection-status h2, .revoke-panel h2 { margin: 0 0 10px; font-size: .9rem; }
.connection-status > p, .revoke-panel p { color: var(--muted); font-size: .74rem; }
.large-status { display: inline-flex; padding: 5px 9px; color: var(--muted); background: var(--surface-2); border-radius: 999px; font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.large-status--connected { color: var(--success); background: rgba(16,163,127,.1); }
.large-status--configured { color: var(--primary); background: rgba(31,111,235,.1); }
.large-status--error { color: var(--danger); background: rgba(201,54,79,.1); }
.connection-status dl { display: grid; gap: 7px; margin: 14px 0; }
.connection-status dl div { padding-top: 7px; border-top: 1px solid var(--line); }
.connection-status dt, .connection-status dd { margin: 0; font-size: .69rem; }
.connection-status dt { color: var(--muted); }
.connection-status dd { font-weight: 750; }
.connection-status form, .connection-status .button { width: 100%; margin-top: 7px; }
.scope-list { display: grid; gap: 9px; margin: 0; }
.scope-list div { padding-top: 8px; border-top: 1px solid var(--line); }
.scope-list dt { font-size: .72rem; font-weight: 750; }
.scope-list dd { overflow-wrap: anywhere; margin: 2px 0 0; color: var(--muted); font-size: .61rem; }
.integration-guide { padding: 16px; color: var(--text); background: rgba(31,111,235,.06); border: 1px solid rgba(31,111,235,.2); border-radius: 12px; }
.integration-guide > strong { font-size: .82rem; }
.integration-guide ol { margin: 9px 0; padding-left: 20px; color: var(--muted); font-size: .73rem; line-height: 1.55; }
.integration-guide a { color: var(--primary); font-size: .72rem; font-weight: 800; }
.permission-check-panel { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin: 0 0 20px; padding: 17px 18px; color: var(--text); border: 1px solid var(--line); border-radius: 14px; }
.permission-check-panel--missing { background: rgba(229,140,0,.08); border-color: rgba(229,140,0,.28); }
.permission-check-panel--ready { background: rgba(16,163,127,.07); border-color: rgba(16,163,127,.25); }
.permission-check-panel > div { display: flex; gap: 11px; align-items: flex-start; min-width: 0; }
.permission-check-panel__icon { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; color: var(--warning); background: rgba(229,140,0,.13); border-radius: 50%; font-weight: 900; }
.permission-check-panel--ready .permission-check-panel__icon { color: var(--success); background: rgba(16,163,127,.13); }
.permission-check-panel strong { font-size: .78rem; }
.permission-check-panel p { margin: 4px 0 0; color: var(--muted); font-size: .71rem; line-height: 1.5; }
.permission-check-panel code { overflow-wrap: anywhere; }
.permission-check-panel .button { flex: 0 0 auto; }
.setup-progress { display: grid; gap: 16px; margin-bottom: 18px; }
.setup-progress h2 { margin: 2px 0 0; font-size: 1.15rem; }
.setup-progress__bar { height: 9px; overflow: hidden; background: var(--surface-2); border-radius: 999px; }
.setup-progress__bar span { display: block; height: 100%; background: var(--primary); border-radius: inherit; transition: width .25s ease; }
.setup-step-list { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; margin: 0; padding: 0; list-style: none; }
.setup-step-list li { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 1px 8px; align-items: center; min-width: 0; padding: 10px; color: var(--muted); background: var(--surface-2); border-radius: 10px; }
.setup-step-list li > span { display: grid; grid-row: 1 / span 2; place-items: center; width: 28px; height: 28px; color: var(--muted); background: var(--surface); border-radius: 9px; font-weight: 900; }
.setup-step-list strong { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.setup-step-list small { font-size: .6rem; }
.setup-step-list li.is-done { color: var(--success); background: rgba(16,163,127,.08); }
.setup-step-list li.is-done > span { color: #fff; background: var(--success); }
.setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.setup-card { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 13px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.setup-card.is-current { border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); }
.setup-card.is-done { border-color: rgba(16,163,127,.28); }
.setup-card__number { display: grid; place-items: center; width: 38px; height: 38px; color: var(--primary); background: rgba(31,111,235,.1); border-radius: 12px; font-weight: 900; }
.setup-card.is-done .setup-card__number { color: #fff; background: var(--success); }
.setup-card h2 { margin: 3px 0 7px; font-size: 1rem; }
.setup-card p { margin: 0 0 12px; color: var(--muted); font-size: .75rem; line-height: 1.55; }
.setup-card__hint { padding: 10px; background: var(--surface-2); border-radius: 9px; }
.setup-card .button { margin-right: 6px; }
.setup-card .text-link { display: inline-block; margin-top: 10px; color: var(--primary); font-size: .7rem; font-weight: 800; }
.button.is-disabled { opacity: .5; pointer-events: none; }
.setup-recommendations { display: grid; gap: 7px; margin: 10px 0 12px; }
.setup-recommendations > a { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.setup-recommendations > a:hover { border-color: var(--primary); }
.setup-recommendations strong, .setup-recommendations small { display: block; }
.setup-recommendations strong { font-size: .75rem; }
.setup-recommendations small { margin-top: 2px; color: var(--muted); font-size: .65rem; }
.setup-finish { display: flex; gap: 18px; align-items: center; justify-content: space-between; margin-top: 16px; }
.setup-finish h2 { margin: 0 0 4px; font-size: 1rem; }
.setup-finish p { margin: 0; color: var(--muted); font-size: .73rem; }
.setup-banner { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 16px; padding: 14px 16px; background: rgba(31,111,235,.07); border: 1px solid rgba(31,111,235,.2); border-radius: 13px; }
.setup-banner strong, .setup-banner span { display: block; }
.setup-banner strong { font-size: .82rem; }
.setup-banner span { margin-top: 2px; color: var(--muted); font-size: .7rem; }
.field--inline { flex-direction: row; align-items: center; }
.field--inline select { min-height: 36px; }
.table-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.responsive-table { overflow-x: auto; scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); background: var(--surface); border-bottom-color: var(--line-strong); font-size: .66rem; text-transform: uppercase; letter-spacing: .055em; white-space: nowrap; }
td { font-size: .76rem; }
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 75%, transparent); }
td strong, td small { display: block; }
td small { margin-top: 2px; color: var(--muted); font-size: .65rem; }
tr:last-child td { border-bottom: 0; }
.status-badge--completed { color: var(--success); background: rgba(16,163,127,.1); }
.status-badge--partial { color: var(--warning); background: rgba(229,140,0,.1); }
.status-badge--failed { color: var(--danger); background: rgba(201,54,79,.1); }
.status-badge--undone { color: var(--muted); background: var(--surface-2); }
.data-paths { margin-bottom: 18px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.data-paths > header h2 { margin: 2px 0; font-size: 1.15rem; }
.data-paths > header p:last-child { margin: 4px 0 0; color: var(--muted); font-size: .76rem; }
.data-paths > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.data-paths article { position: relative; padding: 17px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.data-paths article > span, .import-explainer span { display: grid; place-items: center; width: 28px; height: 28px; color: #fff; background: var(--primary); border-radius: 9px; font-size: .7rem; font-weight: 900; }
.data-paths h3 { margin: 10px 0 4px; font-size: .85rem; }
.data-paths article p { min-height: 58px; margin: 0 0 10px; color: var(--muted); font-size: .7rem; }
.data-paths article a { color: var(--primary); font-size: .72rem; font-weight: 800; }
.data-report-section { margin-bottom: 16px; }
.import-explainer { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; max-width: 980px; margin-bottom: 16px; }
.import-explainer > div { display: grid; grid-template-columns: 30px 1fr; gap: 3px 9px; align-items: center; padding: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.import-explainer span { grid-row: span 2; }
.import-explainer strong { font-size: .72rem; }
.import-explainer small { color: var(--muted); font-size: .62rem; }
.file-guidance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.file-guidance article { padding: 11px; background: var(--surface-2); border-radius: 10px; }
.file-guidance strong { font-size: .75rem; }
.file-guidance p { margin: 3px 0 0; color: var(--muted); font-size: .67rem; }
.preview-summary { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 13px 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.preview-summary strong, .preview-summary span { display: block; }
.preview-summary span { color: var(--muted); font-size: .7rem; }
.preview-summary a { font-size: .74rem; font-weight: 800; }
.preview-table { max-height: 350px; margin-bottom: 16px; overflow: auto; }
.preview-table th { position: sticky; top: 0; z-index: 1; }
.preview-table td { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mapping-form { max-width: 980px; }
.mapping-form > section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.mapping-form > section h2 { margin: 0 0 12px; font-size: .95rem; }
.column-mapping-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.column-mapping-grid label { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(150px, 1.3fr); gap: 8px; align-items: center; padding: 9px; background: var(--surface-2); border-radius: 9px; }
.column-mapping-grid span { overflow: hidden; font-size: .72rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.column-mapping-grid select { min-width: 0; padding: 7px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; font-size: .7rem; }
.advanced-box { margin-top: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.advanced-box summary { cursor: pointer; font-size: .75rem; font-weight: 800; }
.advanced-box .field { margin-top: 12px; }
.queue-counters { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 14px; }
.queue-counters a { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 11px; text-decoration: none; }
.queue-counters a.is-active { color: var(--primary); border-color: var(--primary); }
.queue-counters span { font-size: .67rem; }
.queue-counters strong { color: var(--text); font-size: 1rem; }
.status-badge--pending { color: var(--primary); background: rgba(31,111,235,.1); }
.status-badge--running { color: #7250c7; background: rgba(114,80,199,.1); }
.status-badge--paused { color: var(--warning); background: rgba(229,140,0,.1); }
.status-badge--cancelled { color: var(--muted); background: var(--surface-2); }
.tiny-progress { width: 70px; height: 5px; overflow: hidden; background: var(--surface-2); border-radius: 99px; }
.tiny-progress span { display: block; height: 100%; background: var(--primary); }
.error-cell { max-width: 220px; overflow: hidden; color: var(--danger); text-overflow: ellipsis; white-space: nowrap; }
.error-cell--actionable { min-width: 280px; max-width: 380px; white-space: normal; }
.table-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.table-actions form { margin: 0; }
.table-actions button, .table-actions a { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 6px; color: var(--primary); background: none; border: 0; cursor: pointer; font-size: .75rem; font-weight: 800; text-decoration: none; }
.table-actions button.danger-action { color: var(--danger); }
.audit-controls { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: 12px; margin-bottom: 15px; }
.audit-controls > form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
.audit-policy { padding: 14px; color: var(--text); background: rgba(16,163,127,.07); border: 1px solid rgba(16,163,127,.18); border-radius: 13px; }
.audit-policy strong { font-size: .8rem; }
.audit-policy p { margin: 3px 0 0; font-size: .7rem; }
.split-panels { display: grid; grid-template-columns: 1.3fr .7fr; gap: 14px; margin-bottom: 26px; }
.run-list { display: grid; }
.run-list > div { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.run-list p { min-width: 0; margin: 0; }
.run-list strong, .run-list small { display: block; overflow: hidden; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.run-list small, .run-list time { color: var(--muted); font-size: .65rem; }
.tag-cloud { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-cloud span { padding: 5px 7px; color: var(--muted); background: var(--surface-2); border-radius: 7px; font-size: .66rem; }
.audit-explainer > p { margin: 13px 0 0; color: var(--muted); font-size: .7rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 20px 0 12px; }
.section-heading h2 { margin: 0; font-size: 1.05rem; }
.section-heading p { margin: 2px 0 0; color: var(--muted); font-size: .72rem; }
.issue-list { display: grid; gap: 10px; }
.issue-list > article { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 145px; gap: 16px; overflow: hidden; padding: 17px 17px 17px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
.severity-bar { position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--muted); }
.severity-bar--critical, .severity-bar--high { background: var(--danger); }
.severity-bar--medium { background: #e58c00; }
.severity-bar--low { background: var(--accent); }
.issue-main header { display: flex; gap: 6px; }
.issue-main h3 { margin: 8px 0 3px; font-size: .92rem; }
.issue-main > p { margin: 0 0 10px; color: var(--muted); font-size: .74rem; }
.issue-main dl { display: grid; gap: 7px; margin: 0; }
.issue-main dl div { display: grid; grid-template-columns: 70px 1fr; gap: 8px; }
.issue-main dt, .issue-main dd { margin: 0; font-size: .68rem; }
.issue-main dt { color: var(--muted); font-weight: 750; }
.issue-list aside { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--muted); font-size: .66rem; }
.issue-list aside form { margin-top: auto; }
.issue-list aside select { padding: 6px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; font-size: .68rem; }
.metrics-periods { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.metrics-periods > span { flex: 0 0 auto; margin: 0; }
.metrics-filter { display: grid; grid-template-columns: 1fr 1.35fr .9fr .85fr .85fr auto; gap: 9px; align-items: end; margin-bottom: 15px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
.metric-analysis { margin-bottom: 15px; }
.line-chart--large { height: 320px; }
.chart-total { display: grid; justify-items: end; font-size: 1.2rem; }
.chart-total small { color: var(--muted); font-size: .65rem; }
.chart-total strong { font-size: 1.2rem; }
.table-note { margin: 0; padding: 12px 14px; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: .68rem; }
.table-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.table-empty { padding: 46px 24px; color: var(--muted); text-align: center; }
.precision-note { display: flex; gap: 10px; margin-bottom: 14px; padding: 12px 14px; color: #6b4500; background: #fff4cf; border: 1px solid #ead687; border-radius: 11px; font-size: .74rem; }
.ranking-controls { display: grid; grid-template-columns: .4fr 1.6fr; gap: 12px; margin-bottom: 15px; }
.ranking-controls > form { display: grid; gap: 8px; padding: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.ranking-controls > form:last-child { grid-template-columns: 1.4fr .4fr .7fr auto; align-items: end; }
.ranking-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 15px; }
.ranking-grid article { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.ranking-grid header { display: flex; gap: 6px; align-items: start; justify-content: space-between; }
.ranking-grid header strong { font-size: .8rem; }
.ranking-grid header span { color: var(--muted); font-size: .62rem; }
.ranking-grid article > div { margin: 15px 0; }
.ranking-grid article > div span { display: block; color: var(--muted); font-size: .65rem; }
.ranking-grid article > div strong { display: block; font-size: 1.5rem; }
.ranking-grid footer { display: flex; justify-content: space-between; padding-top: 9px; color: var(--muted); border-top: 1px solid var(--line); font-size: .62rem; }
.ranking-entry { margin-bottom: 15px; }
.ranking-entry h2 { margin: 0 0 10px; font-size: .9rem; }
.ranking-entry form { display: grid; grid-template-columns: 1.2fr .5fr .7fr 1fr auto; gap: 8px; align-items: end; }
.collapsible-form { margin-bottom: 15px; }
.collapsible-form > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.collapsible-form > header h2 { margin: 0; font-size: 1rem; }
.collapsible-form > header button { flex: 0 0 40px; width: 40px; height: 40px; padding: 0; color: var(--muted); background: none; border: 0; cursor: pointer; }
.collapsible-form > header button svg { width: 18px; height: 18px; }
.task-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(280px,.55fr); gap: 14px; align-items: start; }
.task-list { display: grid; gap: 9px; }
.task-card { display: grid; grid-template-columns: 7px 1fr; gap: 11px; padding: 15px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.task-card.is-selected { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(31,111,235,.08); }
.task-card .priority-marker { height: 100%; min-height: 68px; }
.task-card header { display: flex; gap: 8px; align-items: center; }
.task-card header > span:last-child { color: var(--muted); font-size: .67rem; }
.task-card h2 { margin: 7px 0 2px; font-size: .9rem; }
.task-card p { margin: 0; color: var(--muted); font-size: .72rem; }
.task-card footer { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.task-card footer span, .task-card footer time { padding: 3px 6px; color: var(--muted); background: var(--surface-2); border-radius: 5px; font-size: .61rem; }
.status-badge--suggested { color: var(--warning); background: rgba(229,140,0,.1); }
.status-badge--approved, .status-badge--in_progress { color: var(--primary); background: rgba(31,111,235,.1); }
.task-detail { position: sticky; top: 82px; }
.task-detail h2 { margin: 10px 0 5px; font-size: 1.05rem; }
.task-detail > p { color: var(--muted); font-size: .75rem; }
.task-detail dl { display: grid; gap: 7px; margin: 15px 0; }
.task-detail dl div { display: flex; justify-content: space-between; padding-top: 7px; border-top: 1px solid var(--line); font-size: .69rem; }
.task-detail dt { color: var(--muted); }
.task-detail dd { margin: 0; font-weight: 750; }
.task-detail form { display: grid; gap: 10px; }
.experiment-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.experiment-grid article { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
.experiment-grid article > header { display: flex; align-items: center; justify-content: space-between; }
.experiment-grid header small { color: var(--muted); }
.experiment-grid h2 { margin: 10px 0 5px; font-size: .9rem; }
.experiment-grid blockquote { min-height: 70px; margin: 0; color: var(--muted); font-size: .72rem; }
.experiment-grid dl { display: grid; gap: 6px; margin: 10px 0; }
.experiment-grid dl div { display: flex; justify-content: space-between; padding-top: 6px; border-top: 1px solid var(--line); }
.experiment-grid dt, .experiment-grid dd { margin: 0; font-size: .65rem; }
.experiment-grid dt { color: var(--muted); }
.experiment-grid details { padding-top: 8px; border-top: 1px solid var(--line); }
.experiment-grid summary { cursor: pointer; color: var(--primary); font-size: .7rem; font-weight: 800; }
.experiment-grid details form { display: grid; gap: 8px; margin-top: 10px; }
.change-timeline { position: relative; max-width: 900px; }
.change-timeline > h2 { margin: 25px 0 9px 125px; color: var(--muted); font-size: .8rem; }
.change-timeline article { display: grid; grid-template-columns: 105px 10px 1fr; gap: 13px; align-items: start; }
.change-timeline article > time { padding-top: 12px; color: var(--muted); font-size: .65rem; text-align: right; }
.change-timeline article > span { position: relative; width: 9px; height: 9px; margin-top: 14px; background: var(--primary); border-radius: 50%; }
.change-timeline article > span::after { position: absolute; top: 9px; bottom: -85px; left: 4px; width: 1px; content: ""; background: var(--line); }
.change-timeline article > div { margin-bottom: 9px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.change-timeline header { display: flex; justify-content: space-between; }
.change-timeline header strong { font-size: .78rem; }
.change-timeline header small { color: var(--muted); font-size: .64rem; }
.change-timeline p { margin: 4px 0 0; color: var(--muted); font-size: .7rem; }
.alert-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.alert-grid > article { padding: 17px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
.alert-grid article > header { display: flex; align-items: center; justify-content: space-between; }
.confidence { color: var(--muted); font-size: .65rem; }
.alert-grid .eyebrow { margin-top: 12px; }
.alert-grid h2 { margin: 3px 0 12px; font-size: 1rem; }
.alert-comparison { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 12px; background: var(--surface-2); border-radius: 10px; text-align: center; }
.alert-comparison small, .alert-comparison strong { display: block; }
.alert-comparison small { color: var(--muted); font-size: .6rem; }
.alert-comparison strong { margin-top: 2px; }
.alert-grid dl { display: grid; gap: 6px; margin: 13px 0; }
.alert-grid dl div { display: grid; grid-template-columns: 95px 1fr; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.alert-grid dt, .alert-grid dd { margin: 0; font-size: .67rem; }
.alert-grid dt { color: var(--muted); font-weight: 750; }
.alert-grid footer form { display: flex; gap: 6px; flex-wrap: wrap; }
.signal-recheck-field { display: flex; flex: 1 1 150px; gap: 4px; align-items: center; min-width: 150px; color: var(--muted); font-size: .75rem; font-weight: 750; }
.signal-recheck-field select { flex: 1; min-height: 36px; padding: 7px 9px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.analysis-runner { margin-bottom: 15px; padding: 17px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: var(--radius); }
.analysis-runner form { display: grid; grid-template-columns: 1.2fr repeat(4,1fr) auto; gap: 10px; align-items: end; }
.analysis-runner form > div:first-child h2 { margin: 0; font-size: .95rem; }
.analysis-runner form > div:first-child p { margin: 3px 0 0; color: var(--muted); font-size: .68rem; }
.analysis-sources { grid-column: 1 / -1; display: flex; gap: 8px 15px; flex-wrap: wrap; padding-top: 9px; border-top: 1px solid rgba(31,111,235,.16); }
.analysis-sources strong, .analysis-sources span, .analysis-sources small { font-size: .66rem; }
.analysis-sources span, .analysis-sources small { color: var(--muted); }
.source-status { color: var(--muted); font-size: .7rem; }
.anomaly-overview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 15px; }
.anomaly-overview article { padding: 15px 17px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.anomaly-overview article::before { content: ''; display: block; width: 34px; height: 3px; margin-bottom: 10px; border-radius: 999px; }
.anomaly-overview__negative::before { background: var(--danger); }
.anomaly-overview__positive::before { background: var(--success); }
.anomaly-overview span, .anomaly-overview small { display: block; color: var(--muted); font-size: .7rem; }
.anomaly-overview strong { display: block; margin: 2px 0; font-size: 1.55rem; }
.finding-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.finding-card { position: relative; padding: 17px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
.anomaly-grid { margin-bottom: 26px; }
.anomaly-card { border-top: 3px solid var(--line-strong); }
.anomaly-card--negative { border-top-color: var(--danger); }
.anomaly-card--positive { border-top-color: var(--success); }
.anomaly-direction { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 8px; border-radius: 999px; font-size: .65rem; font-weight: 850; }
.anomaly-direction--negative { color: var(--danger); background: rgba(201,54,79,.1); }
.anomaly-direction--positive { color: var(--success); background: rgba(30,139,94,.1); }
.statement--opportunity { border-left-color: var(--success); }
.anomaly-card__actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 11px; }
.anomaly-card__actions form { margin-top: 0 !important; }
.notification-panel--secondary { margin-top: 28px; opacity: .88; border-style: dashed; }
.notification-panel--secondary .panel__header { background: var(--surface-2); }
.finding-card > header { display: flex; align-items: center; justify-content: space-between; }
.finding-card .eyebrow { margin-top: 12px; }
.finding-card h2 { margin: 3px 0 12px; font-size: 1rem; }
.demo-label { display: inline-flex; padding: 3px 7px; color: #6b4500; background: #fff0bb; border-radius: 6px; font-size: .61rem; font-weight: 900; text-transform: uppercase; }
.finding-card > .demo-label { position: absolute; top: 0; right: 0; border-radius: 0 12px 0 8px; }
.statement { margin: 7px 0; padding: 10px; background: var(--surface-2); border-left: 3px solid var(--muted); border-radius: 7px; }
.statement--fact { border-left-color: var(--success); }
.statement--hypothesis { border-left-color: #e58c00; }
.statement strong { font-size: .68rem; }
.statement p { margin: 2px 0 0; color: var(--muted); font-size: .7rem; }
.finding-meta { display: flex; gap: 5px; flex-wrap: wrap; margin: 10px 0; }
.finding-meta span { padding: 4px 6px; background: var(--surface-2); border-radius: 5px; color: var(--muted); font-size: .61rem; }
.finding-card details { padding: 8px 0; border-block: 1px solid var(--line); }
.finding-card summary { cursor: pointer; font-size: .68rem; font-weight: 800; }
.finding-card pre, .message pre { max-height: 220px; overflow: auto; padding: 10px; color: var(--muted); background: var(--surface-2); border-radius: 8px; font: .65rem/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; white-space: pre-wrap; }
.finding-card footer form { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 11px; }
.text-action { padding: 5px; color: var(--muted); background: none; border: 0; cursor: pointer; font-size: .65rem; font-weight: 750; }
.inline-create { display: grid; grid-template-columns: 1fr 1fr 1.2fr auto; gap: 8px; align-items: end; }
.chat-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); min-height: 680px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.thread-panel { min-width: 0; background: var(--surface-2); border-right: 1px solid var(--line); }
.thread-filter { padding: 11px; border-bottom: 1px solid var(--line); }
.thread-filter select { width: 100%; padding: 8px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: .72rem; }
.thread-panel nav { display: grid; max-height: 625px; overflow-y: auto; padding: 6px; }
.thread-panel nav > a { display: flex; gap: 9px; align-items: center; min-width: 0; padding: 10px; color: var(--text); border-radius: 9px; text-decoration: none; }
.thread-panel nav > a.is-active { background: var(--surface); box-shadow: 0 5px 16px rgba(24,43,77,.06); }
.thread-icon { display: grid; place-items: center; flex: 0 0 31px; width: 31px; height: 31px; color: var(--primary); background: rgba(31,111,235,.1); border-radius: 9px; font-size: .68rem; font-weight: 900; }
.thread-panel nav a > span:last-child { min-width: 0; }
.thread-panel strong, .thread-panel small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-panel strong { font-size: .74rem; }
.thread-panel small { color: var(--muted); font-size: .61rem; }
.conversation { display: grid; grid-template-rows: auto auto minmax(300px,1fr) auto; min-width: 0; }
.conversation--with-alert { grid-template-rows: auto auto auto minmax(300px,1fr) auto; }
.chat-empty { align-self: center; grid-row: 1 / -1; padding: 40px; text-align: center; }
.chat-empty > span { color: var(--primary); font-size: 2.2rem; }
.chat-empty h2 { margin: 8px 0 3px; }
.chat-empty p { color: var(--muted); font-size: .78rem; }
.conversation__header { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.conversation__header h2 { display: inline; margin: 0 7px; font-size: .92rem; }
.conversation__header p { display: inline; color: var(--muted); font-size: .67rem; }
.conversation__header > div:last-child { display: flex; gap: 5px; }
.conversation__header form { display: flex; margin: 0; }
.conversation__header input { width: 155px; padding: 6px 8px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; font-size: .68rem; }
.alert-chat-context { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 15px 17px; background: color-mix(in srgb, var(--primary) 5%, var(--surface)); border-bottom: 1px solid var(--line); }
.alert-chat-context > div { min-width: 0; }
.alert-chat-context .eyebrow { display: inline; margin-left: 7px; }
.alert-chat-context h3 { margin: 6px 0 3px; font-size: .95rem; }
.alert-chat-context p:last-child { max-width: 760px; margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.alert-chat-context > a { flex: 0 0 auto; }
.quick-prompts { display: flex; gap: 5px; flex-wrap: wrap; overflow: visible; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.quick-prompts button { flex: 0 0 auto; padding: 6px 9px; color: var(--primary); background: rgba(31,111,235,.07); border: 1px solid rgba(31,111,235,.14); border-radius: 999px; cursor: pointer; font-size: .64rem; font-weight: 750; }
.message-list { max-height: 560px; overflow-y: auto; padding: 20px; background: color-mix(in srgb,var(--surface) 96%,var(--bg)); scroll-behavior: smooth; }
.chat-welcome { padding: 50px 20px; color: var(--muted); text-align: center; }
.chat-welcome span { color: var(--primary); font-size: 1.8rem; }
.chat-welcome h3 { margin: 5px 0 2px; color: var(--text); }
.chat-welcome p { max-width: 500px; margin: auto; font-size: .72rem; }
.message { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 10px; max-width: min(88%,820px); margin-bottom: 16px; }
.message--user { grid-template-columns: minmax(0,1fr) 38px; margin-left: auto; }
.message__avatar { display: grid; place-items: center; width: 36px; height: 36px; color: var(--primary); background: rgba(31,111,235,.1); border-radius: 10px; font-size: .61rem; font-weight: 850; }
.message--user .message__avatar { grid-column: 2; background: rgba(16,163,127,.1); color: var(--success); }
.message--user .message__body { grid-column: 1; grid-row: 1; background: rgba(31,111,235,.08); }
.message__body { min-width: 0; padding: 13px 15px; background: var(--surface-2); border-radius: 4px 13px 13px 13px; overflow-wrap: anywhere; }
.message__content { color: var(--text); font-size: .82rem; line-height: 1.62; white-space: pre-wrap; }
.message__content p { margin: 0 0 10px; white-space: normal; }
.message__content p:last-child { margin-bottom: 0; }
.message__content h3, .message__content h4 { margin: 14px 0 6px; line-height: 1.35; }
.message__content h3:first-child, .message__content h4:first-child { margin-top: 0; }
.message__content h3 { font-size: .92rem; }
.message__content h4 { font-size: .85rem; }
.message__content ul, .message__content ol { display: grid; gap: 5px; margin: 7px 0 10px; padding-left: 21px; white-space: normal; }
.message__content code { padding: 1px 4px; color: var(--text); background: var(--surface); border-radius: 4px; font-size: .76rem; }
.message__content pre { margin: 8px 0; white-space: pre-wrap; }
.message__body footer { margin-top: 9px; color: var(--muted); font-size: .6rem; }
.message__body details { margin-top: 7px; font-size: .64rem; }
.message--streaming .message__body { box-shadow: inset 3px 0 0 rgba(31,111,235,.35); }
.chat-activity { display: flex; gap: 8px; align-items: center; margin-bottom: 9px; color: var(--primary); font-size: .68rem; font-weight: 750; }
.chat-activity small { margin-left: auto; color: var(--muted); font-size: .58rem; font-weight: 700; }
.chat-activity__spinner { flex: 0 0 13px; width: 13px; height: 13px; border: 2px solid rgba(31,111,235,.2); border-top-color: var(--primary); border-radius: 50%; animation: chat-spin .75s linear infinite; }
.chat-stream-error { color: var(--danger); }
.chat-stream-error > strong { font-size: .78rem; }
.chat-stream-error p, .chat-stream-error li { color: var(--muted); font-size: .7rem; line-height: 1.5; }
.chat-stream-error p { margin: 4px 0; }
.chat-stream-error ol { margin: 8px 0; padding-left: 19px; }
.chat-stream-error a { color: var(--primary); font-size: .7rem; font-weight: 800; }
@keyframes chat-spin { to { transform: rotate(360deg); } }
.attachment-list { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.attachment-list span { padding: 4px 6px; background: var(--surface); border-radius: 5px; font-size: .6rem; }
.composer { padding: 10px 12px; border-top: 1px solid var(--line); }
.composer__meta { display: flex; gap: 8px 14px; align-items: center; margin-bottom: 7px; color: var(--muted); font-size: .58rem; }
.composer__meta label { display: flex; gap: 5px; align-items: center; }
.composer__meta select { padding: 3px 5px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; font-size: .6rem; }
.composer__input { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 8px; align-items: end; }
.composer textarea { min-height: 56px; max-height: 140px; padding: 9px 11px; resize: vertical; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font-size: .75rem; }
.composer[aria-busy="true"] textarea { opacity: .72; }
.composer button:disabled { cursor: progress; opacity: .78; }
.attachment-button { display: grid; place-items: center; width: 40px; height: 40px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.attachment-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.attachment-button input { position: absolute; width: 1px; opacity: 0; }
.source-strip { display: flex; gap: 8px; align-items: center; overflow-x: auto; margin-bottom: 14px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.source-strip > strong { padding: 0 5px; font-size: .72rem; }
.source-strip > span { color: var(--muted); font-size: .68rem; }
.source-strip > div { display: flex; gap: 7px; align-items: center; flex: 0 0 auto; padding: 7px 9px; background: var(--surface-2); border-radius: 9px; }
.source-strip > div.is-paused { opacity: .68; }
.source-strip > div > span:nth-child(2) { min-width: 0; }
.source-strip > div strong, .source-strip > div small { display: block; }
.source-strip > div strong { font-size: .67rem; }
.source-strip > div small { max-width: 150px; overflow: hidden; color: var(--muted); font-size: .56rem; text-overflow: ellipsis; white-space: nowrap; }
.source-error-help { display: block; margin-top: 2px; color: var(--danger); font-size: .56rem; font-weight: 800; }
.source-strip form { margin: 0; }
.source-strip button { color: var(--primary); background: none; border: 0; cursor: pointer; font-size: .6rem; font-weight: 800; }
.news-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(260px,.5fr); gap: 14px; align-items: start; }
.news-feed { display: grid; gap: 10px; }
.news-feed > article { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.news-feed article > header { display: flex; align-items: center; justify-content: space-between; }
.news-feed time { color: var(--muted); font-size: .61rem; }
.news-feed h2 { margin: 10px 0 4px; font-size: .92rem; }
.news-feed h2 a { color: var(--text); text-decoration: none; }
.news-feed h2 a:hover { color: var(--primary); }
.news-feed article > p { margin: 0; color: var(--muted); font-size: .72rem; }
.news-feed article > footer { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--line); }
.relevance-label { padding: 3px 6px; color: var(--muted); background: var(--surface-2); border-radius: 5px; font-size: .6rem; font-weight: 800; text-transform: uppercase; }
.relevance-label--direct { color: var(--danger); background: rgba(201,54,79,.09); }
.relevance-label--possible { color: var(--warning); background: rgba(229,140,0,.1); }
.news-feed details { position: relative; }
.news-feed summary { cursor: pointer; color: var(--primary); font-size: .65rem; font-weight: 800; }
.news-feed details form { position: absolute; right: 0; z-index: 4; width: 280px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.news-feed details select { width: 100%; padding: 6px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; }
.news-feed details fieldset { display: grid; gap: 4px; max-height: 110px; overflow-y: auto; margin: 8px 0; padding: 7px; border: 1px solid var(--line); }
.news-feed details label { display: flex; gap: 5px; font-size: .65rem; }
.external-events { position: sticky; top: 82px; }
.external-events .timeline em { display: block; max-width: 220px; margin-top: 3px; color: var(--muted); font-size: .6rem; font-style: normal; white-space: normal; }
.external-context-panel { display: grid; gap: 16px; margin-bottom: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 14px; }
.external-context-panel--holiday { border-left-color: var(--warning); }
.external-context-panel--pending { border-left-color: var(--muted); }
.external-context-panel__summary { display: flex; gap: 12px; align-items: flex-start; }
.external-context-panel__summary h2 { margin: 2px 0 5px; font-size: 1.05rem; }
.external-context-panel__summary p:last-child { max-width: 850px; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.context-indicator { flex: 0 0 11px; width: 11px; height: 11px; margin-top: 8px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 4px rgba(27, 134, 92, .12); }
.external-context-panel--holiday .context-indicator { background: var(--warning); box-shadow: 0 0 0 4px rgba(229, 140, 0, .12); }
.external-context-panel--pending .context-indicator { background: var(--muted); box-shadow: 0 0 0 4px rgba(102, 112, 133, .12); }
.external-context-panel__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.external-context-panel__facts > div { min-width: 0; padding: 13px; background: var(--surface-2); border-radius: 10px; }
.external-context-panel__facts span, .external-context-panel__facts small { display: block; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.external-context-panel__facts strong { display: block; overflow-wrap: anywhere; margin: 5px 0; font-size: .9rem; }
.context-holidays { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; color: var(--warning); background: rgba(229, 140, 0, .09); border-radius: 9px; font-size: .76rem; }
.context-holidays span { padding: 4px 7px; color: var(--text); background: var(--surface); border-radius: 6px; }
.external-context-panel__actions { display: flex; gap: 12px; align-items: center; }
.external-context-panel__actions form { margin: 0; }
.external-context-panel__actions small { color: var(--muted); font-size: .75rem; }
.credential-reveal { margin-bottom: 15px; padding: 15px; background: #fff8df; border: 1px solid #ead687; border-radius: 13px; }
.credential-reveal label { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; align-items: center; margin-top: 7px; }
.credential-reveal label > span { font-size: .7rem; font-weight: 800; }
.credential-reveal code { overflow-wrap: anywhere; padding: 7px; color: #2b2b2b; background: #fff; border-radius: 6px; font-size: .68rem; }
.credential-reveal button, .api-details button { color: var(--primary); background: none; border: 0; cursor: pointer; font-size: .65rem; font-weight: 800; }
.form-card > h2 { margin-top: 0; font-size: 1rem; }
.api-details { display: grid; gap: 9px; margin: 0 0 18px; }
.api-details div { padding-top: 8px; border-top: 1px solid var(--line); }
.api-details dt { color: var(--muted); font-size: .65rem; }
.api-details dd { margin: 3px 0 0; font-size: .75rem; font-weight: 700; }
.api-details dd code { overflow-wrap: anywhere; }
.code-examples { margin-top: 16px; background: #101828; border-radius: 13px; overflow: hidden; }
.code-examples > header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; color: #e8eef9; border-bottom: 1px solid #2c3a52; }
.code-examples h2 { margin: 0; font-size: .8rem; }
.code-examples pre { max-height: 480px; margin: 0; overflow: auto; padding: 16px; color: #cbd7eb; font: .7rem/1.55 ui-monospace,SFMono-Regular,Consolas,monospace; }
.brand-logo { flex: 0 0 38px; width: 38px; height: 38px; object-fit: contain; border-radius: 10px; background: #fff; }
.auth-logo { width: min(190px, 55%); max-height: 82px; object-fit: contain; }
.sidebar--compact .sidebar__nav a { min-height: 34px; padding-block: 5px; font-size: .8rem; }
.settings-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.settings-nav { position: sticky; top: 84px; display: grid; gap: 10px; padding: 0 18px 0 0; background: transparent; border: 0; border-right: 1px solid var(--line); border-radius: 0; }
.settings-search span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .75rem; font-weight: 800; }
.settings-search input { width: 100%; min-height: 42px; padding: 8px 10px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .74rem; }
.settings-nav__group { display: grid; gap: 5px; padding-top: 9px; border-top: 1px solid var(--line); }
.settings-nav__group > header { padding: 0 6px; }
.settings-nav__group h2 { margin: 0; color: var(--text); font-size: .75rem; }
.settings-nav__group header p { margin: 2px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.35; }
.settings-nav__items { display: grid; gap: 3px; }
.settings-nav a { min-width: 0; min-height: 48px; overflow: hidden; padding: 9px 11px; color: var(--text); border-left: 2px solid transparent; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; text-decoration: none; }
.settings-nav a.is-active { color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); border-left-color: var(--primary); }
.settings-nav strong, .settings-nav small { display: block; }
.settings-nav strong { font-size: .76rem; }
.settings-nav small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.settings-search__empty { margin: 0; padding: 12px; color: var(--muted); background: var(--surface-2); border-radius: 9px; font-size: .7rem; line-height: 1.45; }
.settings-panel { min-width: 0; padding: 28px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.settings-panel > header { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.settings-panel > header h2 { margin: 0; }
.settings-panel > header p:last-child { margin: 4px 0 0; color: var(--muted); font-size: .76rem; }
.settings-form { display: grid; }
.setting-field { display: grid; grid-template-columns: minmax(0,1fr) minmax(170px,260px); gap: 22px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--line); }
.setting-field strong, .setting-field small { display: block; }
.setting-field strong { font-size: .78rem; }
.setting-field small { margin-top: 3px; color: var(--muted); font-size: .66rem; }
.setting-field input:not([type="checkbox"]), .setting-field select { width: 100%; min-height: 40px; padding: 8px 10px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; }
.setting-field input[type="color"] { padding: 4px; }
.setting-field--multi { display: block; min-width: 0; margin: 0; border: 0; border-bottom: 1px solid var(--line); }
.setting-field--multi legend { width: 100%; padding: 0; }
.setting-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.setting-choice { display: flex; gap: 9px; align-items: center; min-width: 0; min-height: 46px; padding: 9px 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.setting-choice:has(input:checked) { background: rgba(31,111,235,.07); border-color: rgba(31,111,235,.38); }
.setting-choice input { flex: 0 0 auto; width: 17px; height: 17px; accent-color: var(--primary); }
.setting-choice span { min-width: 0; }
.setting-choice span strong { overflow: hidden; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.setting-choice span small { margin-top: 1px; font-size: .75rem; }
.cron-overview { display: grid; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cron-state { display: grid; grid-template-columns: 11px minmax(0,1fr); gap: 11px; align-items: start; padding: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; }
.cron-state > span { width: 10px; height: 10px; margin-top: 4px; background: var(--warning); border-radius: 50%; box-shadow: 0 0 0 4px rgba(229,140,0,.12); }
.cron-state--ok > span { background: var(--success); box-shadow: 0 0 0 4px rgba(27,153,92,.12); }
.cron-state strong { display: block; font-size: .82rem; }
.cron-state p { margin: 3px 0 0; color: var(--muted); font-size: .75rem; }
.cron-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.cron-stats article { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.cron-stats span, .cron-stats small { display: block; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.cron-stats strong { display: block; overflow: hidden; margin: 3px 0; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.cron-install-guide { margin-top: 18px; padding: 18px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; }
.cron-install-guide > header { display: flex; gap: 12px; align-items: start; justify-content: space-between; }
.cron-install-guide h3, .settings-subheading h3 { margin: 0; font-size: .94rem; }
.cron-steps { display: grid; gap: 9px; margin: 16px 0; padding: 0; list-style: none; }
.cron-steps li { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 10px; align-items: start; }
.cron-steps li > span { display: grid; width: 28px; height: 28px; place-items: center; color: var(--primary); background: rgba(31,111,235,.1); border-radius: 50%; font-size: .75rem; font-weight: 900; }
.cron-steps strong { display: block; font-size: .75rem; }
.cron-steps p { margin: 2px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.cron-steps code, .cron-note code { padding: 1px 4px; background: var(--surface); border-radius: 4px; }
.cron-note { margin: 11px 0 0; padding: 11px 12px; color: var(--muted); background: var(--surface); border-radius: 9px; font-size: .75rem; line-height: 1.55; }
.cron-note--attention { color: var(--warning); border: 1px solid rgba(229,140,0,.22); }
.cron-url-option { margin-top: 14px; border: 1px solid var(--line); border-radius: 11px; }
.cron-url-option > header { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 15px; }
.cron-url-option > header h3 { margin: 2px 0 0; font-size: .92rem; }
.cron-url-option > header .eyebrow { margin: 0; }
.cron-url-option > div { padding: 0 15px 15px; border-top: 1px solid var(--line); }
.cron-url-option > div > p { color: var(--muted); font-size: .75rem; line-height: 1.5; }
.cron-url-option form { margin: 12px 0 0; }
.command-card--secret code { color: var(--danger); }
.settings-subheading { margin-top: 22px; padding-top: 4px; }
.settings-subheading > p:last-child { margin: 4px 0 0; color: var(--muted); font-size: .7rem; }
.switch { position: relative; justify-self: end; width: 42px; height: 24px; }
.switch input { position: absolute; opacity: 0; }
.switch i { position: absolute; inset: 0; background: var(--line); border-radius: 999px; cursor: pointer; transition: .15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: .15s; }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 3px solid rgba(31,111,235,.28); outline-offset: 2px; }
.recommended-reset, .upload-card, .demo-management { display: flex; gap: 18px; align-items: center; justify-content: space-between; margin-top: 16px; padding: 16px; background: var(--surface-2); border-radius: 12px; }
.recommended-reset p, .demo-management p { margin: 2px 0 0; color: var(--muted); font-size: .68rem; }
.notification-email-status > div { display: grid; gap: 5px; }
.notification-email-status .source-error-help { color: var(--danger); }
.notification-email-status .text-link { justify-self: start; font-size: .75rem; }
.notification-email-status form { flex: 0 0 auto; margin: 0; }
.upload-card > div { flex: 0 0 62px; }
.upload-card img { width: 58px; height: 58px; object-fit: contain; }
.upload-card label { flex: 1; font-size: .72rem; }
.upload-card label strong, .upload-card label small { display: block; }
.upload-card label small { color: var(--muted); }
.upload-card input { margin-top: 7px; max-width: 100%; }
.demo-management > div:last-child { display: flex; gap: 7px; flex-wrap: wrap; }
.demo-management form { margin: 0; }
.health-summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; margin-bottom: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.health-summary article { padding: 16px; background: transparent; border: 0; border-left: 1px solid var(--line); border-radius: 0; }
.health-summary article:first-child { border-left: 0; }
.health-summary span, .health-summary small { display: block; color: var(--muted); font-size: .65rem; }
.health-summary strong { display: block; margin: 3px 0; font-size: 1.02rem; }
.health-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-bottom: 16px; }
.health-check { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.health-check__signal { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.health-check--configured .health-check__signal { background: var(--success); }
.health-check--attention .health-check__signal { background: var(--warning); }
.health-check--error .health-check__signal { background: var(--danger); }
.health-check h2 { margin: 0; font-size: .78rem; }
.health-check p { margin: 2px 0 0; color: var(--muted); font-size: .64rem; }
.warning-card, .recovery-panel { margin-bottom: 16px; padding: 16px; color: var(--warning); background: rgba(229,140,0,.08); border: 1px solid rgba(229,140,0,.24); border-radius: 12px; }
.warning-card p, .recovery-panel p { margin: 3px 0 0; font-size: .72rem; }
.backup-automation-card { display: flex; gap: 18px; align-items: center; justify-content: space-between; margin-bottom: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.backup-automation-card > div { display: grid; gap: 5px; min-width: 0; }
.backup-automation-card .status-badge { justify-self: start; }
.backup-automation-card strong { font-size: .78rem; }
.backup-automation-card p { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.55; }
.backup-setting-note > div { display: grid; gap: 5px; }
.backup-setting-note .text-link { justify-self: start; font-size: .75rem; }
.restore-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; padding: 10px; }
.restore-form label, .inline-security-form label, .security-grid form label { display: grid; gap: 4px; color: var(--muted); font-size: .66rem; }
.restore-form input, .inline-security-form input, .security-grid form input { min-height: 40px; padding: 8px 10px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.help-search { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; max-width: 760px; margin-bottom: 16px; }
.help-search input { min-height: 45px; padding: 9px 13px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.help-layout { display: grid; grid-template-columns: 290px minmax(0,1fr); min-height: 600px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.help-nav { max-height: 760px; overflow-y: auto; padding: 12px; background: var(--surface-2); border-right: 1px solid var(--line); }
.help-nav h2 { margin: 12px 8px 5px; color: var(--muted); font-size: .63rem; text-transform: uppercase; letter-spacing: .08em; }
.help-nav a { display: block; padding: 10px; color: var(--text); border-radius: 9px; text-decoration: none; }
.help-nav a.is-active { background: var(--surface); box-shadow: 0 4px 12px rgba(24,43,77,.07); }
.help-nav strong, .help-nav small { display: block; }
.help-nav strong { font-size: .72rem; }
.help-nav small { margin-top: 2px; color: var(--muted); font-size: .6rem; }
.help-article { min-width: 0; padding: clamp(22px,4vw,48px); }
.help-article > header { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.help-article > header h2 { margin: 0; font-size: 1.55rem; }
.help-article > header small { color: var(--muted); }
.prose { max-width: 800px; font-size: .94rem; line-height: 1.7; }
.prose h2 { margin: 28px 0 8px; font-size: 1.12rem; }
.prose h3, .prose h4 { margin: 20px 0 6px; font-size: 1rem; }
.prose p { color: var(--muted); }
.prose code { padding: 2px 5px; color: var(--text); background: var(--surface-2); border-radius: 4px; overflow-wrap: anywhere; }
.help-welcome { padding: 18vh 20px; color: var(--muted); text-align: center; }
.help-welcome > span { color: var(--primary); font-size: 2.4rem; font-weight: 900; }
.help-welcome h2 { color: var(--text); }
.security-mode-card { margin-bottom: 14px; }
.security-mode-card > p { color: var(--muted); font-size: .75rem; }
.security-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.security-grid .form-card:first-child { grid-row: span 2; }
.security-grid .form-card > p { color: var(--muted); font-size: .75rem; }
.security-grid form { display: grid; gap: 10px; margin-top: 16px; }
.secret-box { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; margin: 12px 0; padding: 10px; background: var(--surface-2); border-radius: 9px; }
.secret-box code, .break-code { overflow-wrap: anywhere; font-size: .7rem; }
.secret-box button { color: var(--primary); background: none; border: 0; cursor: pointer; font-size: .65rem; font-weight: 800; }
.recovery-panel { color: var(--text); }
.guided-tour { position: fixed; inset: 0; z-index: 100; display: grid; place-items: end center; padding: 24px; }
.guided-tour__backdrop { position: absolute; inset: 0; background: rgba(5,12,23,.62); }
.guided-tour__card { position: relative; width: min(440px,100%); padding: 22px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.guided-tour__card > span { color: var(--primary); font-size: .65rem; font-weight: 850; text-transform: uppercase; }
.guided-tour__card h2 { margin: 5px 0; font-size: 1.15rem; }
.guided-tour__card p { margin: 0 0 17px; color: var(--muted); font-size: .76rem; }
.guided-tour__card > div { display: flex; justify-content: flex-end; gap: 7px; }
.tour-highlight { position: relative; z-index: 101 !important; outline: 4px solid #fff; outline-offset: 3px; border-radius: 12px; }
.tour-container-highlight { z-index: 101 !important; }

@media (max-width: 700px) {
    .install-shell { width: min(100% - 20px, 960px); padding: 10px 0; }
    .install-card { padding: 22px 18px; border-radius: 18px; }
    .install-header { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: start; }
    .step-count { grid-column: 2; margin-left: 0; font-size: .75rem; }
    .feature-grid, .form-grid { grid-template-columns: 1fr; }
    .field--full { grid-column: auto; }
    .check-row { grid-template-columns: 12px 1fr; }
    .check-row .badge { grid-column: 2; justify-self: start; }
    .command-card { grid-template-columns: 1fr; }
    .command-card > span { grid-column: auto; }
    .recovery-codes { grid-template-columns: 1fr; }
    .form-actions .button { width: 100%; }
    .auth-shell { grid-template-columns: 1fr; width: min(100% - 24px, 480px); padding: 24px 0; }
    .auth-brand { display: none; }
    .auth-card { padding: 26px 20px; }
    .error-guidance { grid-template-columns: 1fr; }
    .error-guidance__solution { padding: 12px 0 0; border-top: 1px solid rgba(201,54,79,.22); border-left: 0; }
    .app-shell { display: block; }
    .sidebar { position: fixed; left: 0; transform: translateX(-105%); width: min(280px, 88vw); transition: transform .2s ease; }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar-toggle { display: inline-grid; }
    .topbar { min-height: 58px; padding: 8px 12px; }
    .topbar__actions { gap: 5px; }
    .quick-add span:last-child { display: none; }
    .page-content { padding: 22px 14px 106px; }
    .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }
    .heading-actions { width: 100%; }
    .heading-actions .button { flex: 1; padding-left: 10px; padding-right: 10px; }
    .onboarding-panel { grid-template-columns: 1fr; gap: 26px; padding: 25px 20px; }
    .dashboard-command { grid-template-columns: 1fr; margin-bottom: 26px; }
    .dashboard-command__copy { padding: 22px 19px; }
    .dashboard-command__action { padding: 18px 19px; border-top: 1px solid var(--line); border-left: 0; }
    .dashboard-command dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-command dl div { padding: 12px 16px; border-top: 1px solid var(--line); }
    .dashboard-command dl div:nth-child(odd) { border-left: 0; }
    .section-heading--dashboard { align-items: flex-start; flex-direction: column; gap: 4px; }
    .section-heading--dashboard > p { text-align: left; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric-grid--dashboard .metric-card { min-height: 0; border-top: 1px solid var(--line); }
    .metric-grid--dashboard .metric-card:nth-child(odd) { border-left: 0; }
    .metric-grid--dashboard .metric-card:nth-child(-n + 2) { border-top: 0; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-grid .dashboard-projects, .dashboard-grid .dashboard-alerts, .dashboard-grid .dashboard-changes { grid-column: auto; }
    .panel--span-2 { grid-column: auto; }
    .portfolio-strip { grid-template-columns: repeat(2, 1fr); }
    .portfolio-strip > div { border-top: 1px solid var(--line); }
    .portfolio-strip > div:nth-child(odd) { border-left: 0; }
    .dashboard-ai-cost { grid-template-columns: 1fr auto; }
    .dashboard-ai-cost small { grid-column: 1 / -1; }
    .toolbar { align-items: stretch; flex-direction: column; }
    .anomaly-filter-groups { align-items: stretch; flex-direction: column; gap: 8px; }
    .metrics-periods { align-items: stretch; flex-direction: column; }
    .metrics-periods .filter-tabs { flex-wrap: wrap; overflow: visible; }
    .data-report-section th:last-child, .data-report-section td:last-child { min-width: 128px; }
    .search-form { max-width: none; }
    .project-card-grid { grid-template-columns: 1fr; }
    .template-row { grid-template-columns: repeat(5, 170px); }
    .project-wizard { grid-template-columns: 1fr; }
    .wizard-nav { position: static; display: flex; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
    .wizard-nav::-webkit-scrollbar { display: none; }
    .wizard-nav button { flex: 0 0 auto; }
    .wizard-nav button:not(:last-child)::after { top: 23px; right: -13px; bottom: auto; left: 37px; width: auto; height: 1px; }
    .wizard-nav button strong { display: none; }
    .wizard-stage__meta { align-items: flex-start; flex-direction: column; gap: 3px; }
    .wizard-stage fieldset { min-height: 520px; padding: 24px 18px; }
    .option-grid { grid-template-columns: repeat(2, 1fr); }
    .wizard-actions { flex-wrap: wrap; padding: 12px; }
    .wizard-actions__spacer { display: none; }
    .wizard-actions .button { flex: 1; min-width: 120px; padding-inline: 9px; }
    .project-hero { align-items: flex-start; flex-direction: column; }
    .project-hero .heading-actions { width: 100%; }
    .project-summary-grid { grid-template-columns: repeat(2, 1fr); }
    .project-summary-grid article { border-top: 1px solid var(--line); }
    .project-summary-grid article:nth-child(odd) { border-left: 0; }
    .project-summary-grid article:nth-child(-n + 2) { border-top: 0; }
    .project-dashboard { grid-template-columns: 1fr; }
    .panel--chart { grid-column: auto; }
    .danger-zone { align-items: stretch; flex-direction: column; }
    .setup-summary { align-items: flex-start; flex-direction: column; }
    .integration-steps { grid-template-columns: 1fr; margin-top: -10px; padding-block: 8px; }
    .integration-steps li, .integration-steps li:first-child { padding: 10px 0; border-top: 1px solid var(--line); border-left: 0; }
    .integration-steps li:first-child { border-top: 0; }
    .integration-toolbar { grid-template-columns: 1fr; padding: 14px; }
    .integration-filters { grid-column: auto; margin-inline: -2px; scrollbar-width: none; }
    .integration-filters::-webkit-scrollbar { display: none; }
    .integration-toolbar .integration-results { grid-column: auto; }
    .integration-grid { grid-template-columns: 1fr; }
    .configuration-layout { grid-template-columns: 1fr; }
    .permission-check-panel { align-items: stretch; flex-direction: column; }
    .permission-check-panel .button { width: 100%; }
    .setup-step-list, .setup-grid { grid-template-columns: 1fr; }
    .setup-step-list li { grid-template-columns: 28px minmax(0,1fr); }
    .setup-finish { align-items: stretch; flex-direction: column; }
    .setup-finish .button { width: 100%; }
    .setup-banner { align-items: stretch; flex-direction: column; }
    .field-checks { grid-template-columns: 1fr; }
    .data-paths > div, .import-explainer { grid-template-columns: 1fr; }
    .data-paths article p { min-height: 0; }
    .file-guidance, .column-mapping-grid { grid-template-columns: 1fr; }
    .queue-counters { grid-template-columns: repeat(2, 1fr); }
    .audit-controls, .split-panels { grid-template-columns: 1fr; }
    .audit-controls > form, .metrics-filter { grid-template-columns: 1fr; }
    .issue-list > article { grid-template-columns: 1fr; }
    .issue-list aside { align-items: flex-start; }
    .ranking-controls { grid-template-columns: 1fr; }
    .ranking-controls > form:last-child, .ranking-entry form { grid-template-columns: 1fr; }
    .ranking-grid { grid-template-columns: repeat(2, 1fr); }
    .task-layout { grid-template-columns: 1fr; }
    .task-detail { position: static; }
    .experiment-grid, .alert-grid { grid-template-columns: 1fr; }
    .change-timeline > h2 { margin-left: 0; }
    .change-timeline article { grid-template-columns: 10px 1fr; }
    .change-timeline article > time { grid-column: 2; padding: 0; text-align: left; }
    .change-timeline article > span { grid-column: 1; grid-row: 1 / span 2; }
    .change-timeline article > div { grid-column: 2; }
    .analysis-runner form { grid-template-columns: 1fr; }
    .anomaly-overview { grid-template-columns: 1fr; }
    .finding-grid { grid-template-columns: 1fr; }
    .inline-create { grid-template-columns: 1fr; }
    .chat-layout { grid-template-columns: 1fr; min-height: 0; }
    .thread-panel { border-right: 0; border-bottom: 1px solid var(--line); }
    .thread-panel nav { display: flex; max-height: none; overflow-x: auto; }
    .thread-panel nav > a { flex: 0 0 190px; }
    .thread-panel nav, .quick-prompts { scrollbar-width: none; }
    .thread-panel nav::-webkit-scrollbar, .quick-prompts::-webkit-scrollbar { display: none; }
    .quick-prompts { flex-wrap: nowrap; overflow-x: auto; }
    .conversation { min-height: 620px; }
    .conversation__header { align-items: flex-start; flex-direction: column; }
    .conversation__header > div:last-child { width: 100%; }
    .conversation__header > div:last-child form:first-child { flex: 1; }
    .conversation__header input { width: 100%; }
    .alert-chat-context { align-items: stretch; flex-direction: column; gap: 10px; }
    .alert-chat-context > a { align-self: flex-start; }
    .message { max-width: 95%; }
    .message-list { padding: 14px 10px; }
    .message__content { font-size: .8rem; }
    .composer__meta { align-items: flex-start; flex-direction: column; }
    .composer__input { grid-template-columns: 40px minmax(0,1fr); }
    .composer__input .button { grid-column: 1 / -1; }
    .news-layout { grid-template-columns: 1fr; }
    .external-events { position: static; }
    .credential-reveal label { grid-template-columns: 1fr; }
    .settings-layout, .help-layout { grid-template-columns: 1fr; }
    .settings-nav { position: static; display: grid; overflow: visible; padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--line); }
    .settings-nav__items { display: flex; overflow-x: auto; scrollbar-width: none; }
    .settings-nav__items::-webkit-scrollbar { display: none; }
    .settings-nav__items a { flex: 0 0 165px; }
    .cron-stats { grid-template-columns: 1fr; }
    .cron-install-guide > header { align-items: flex-start; flex-direction: column; }
    .setting-field { grid-template-columns: 1fr; gap: 8px; }
    .setting-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .switch { justify-self: start; }
    .recommended-reset, .upload-card, .demo-management, .backup-automation-card { align-items: stretch; flex-direction: column; }
    .health-summary, .health-grid, .security-grid { grid-template-columns: 1fr; }
    .health-summary article, .health-summary article:first-child { border-top: 1px solid var(--line); border-left: 0; }
    .health-summary article:first-child { border-top: 0; }
    .health-check { grid-template-columns: 10px minmax(0,1fr); }
    .health-check .status-badge { grid-column: 2; justify-self: start; }
    .restore-form { grid-template-columns: 1fr; }
    .help-nav { display: flex; max-height: none; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
    .help-nav section { display: flex; flex: 0 0 auto; }
    .help-nav h2 { writing-mode: vertical-rl; }
    .help-nav a { flex: 0 0 190px; }
    .security-grid .form-card:first-child { grid-row: auto; }
    .mobile-dock { position: fixed; z-index: 45; right: 10px; bottom: 10px; left: 10px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 7px; background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); backdrop-filter: blur(18px); }
    .mobile-dock a { position: relative; display: grid; place-items: center; gap: 2px; min-height: 52px; padding: 5px; color: var(--muted); border-radius: 11px; text-decoration: none; }
    .mobile-dock a.is-active { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
    .mobile-dock svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .mobile-dock span { font-size: .75rem; font-weight: 760; }
    .mobile-dock small { position: absolute; top: 3px; right: 16px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; color: #fff; background: var(--danger); border-radius: 999px; font-size: .75rem; font-weight: 850; }
    .app-footer { padding-bottom: 88px; }
}

@media (min-width: 701px) and (max-width: 1080px) {
    .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
    .sidebar__nav a { font-size: .8rem; }
    .page-content { padding: 28px 22px; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid .dashboard-projects { grid-column: span 2; }
    .dashboard-grid .dashboard-alerts { grid-column: span 2; }
    .dashboard-grid .dashboard-changes { grid-column: span 2; }
    .portfolio-strip { grid-template-columns: repeat(3, 1fr); }
    .project-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .template-row { grid-template-columns: repeat(5, 185px); }
    .project-summary-grid { grid-template-columns: repeat(3, 1fr); }
    .integration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.notification-button { position: relative; }
.notification-count { position: absolute; top: -.35rem; right: -.35rem; display: grid; place-items: center; min-width: 1.2rem; height: 1.2rem; padding: 0 .25rem; border: 2px solid var(--surface, #fff); border-radius: 999px; background: #d1242f; color: #fff; font-size: .68rem; font-weight: 800; line-height: 1; }
.notification-panel { margin-bottom: 1rem; }
.notification-list { display: grid; gap: .75rem; }
.notification-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .85rem; align-items: start; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.notification-item.is-read { opacity: .72; }
.notification-item h3 { margin: 0 0 .25rem; font-size: 1rem; }
.notification-item p { margin: 0 0 .35rem; color: var(--muted); }
.notification-item__actions { display: flex; gap: .5rem; align-items: center; }

@media (max-width: 700px) {
    .notification-item { grid-template-columns: 1fr; }
    .notification-item__actions { flex-wrap: wrap; }
    .install-footer { align-items: flex-start; flex-direction: column; margin-top: -8px; }
}

/* Product shell and public surfaces */
.sidebar__brand { position: relative; }
.sidebar__close { display: none; margin-left: auto; }
.sidebar__group { display: grid; gap: 2px; margin: 0 0 10px; }
.sidebar__group h2 { margin: 0; padding: 7px 11px 3px; color: #667995; font-size: .62rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.sidebar__group--collapsible { border-top: 1px solid var(--line); }
.sidebar__group--collapsible > summary { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 8px 10px; color: var(--muted); cursor: pointer; font-size: .75rem; font-weight: 820; letter-spacing: .06em; list-style: none; text-transform: uppercase; }
.sidebar__group--collapsible > summary::-webkit-details-marker { display: none; }
.sidebar__group--collapsible > summary small { display: grid; place-items: center; min-width: 22px; height: 22px; color: var(--muted); background: var(--surface-2); border-radius: 7px; font-size: .75rem; letter-spacing: 0; }
.sidebar__group--collapsible > summary::after { content: "+"; margin-left: auto; padding-left: 8px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.sidebar__group--collapsible[open] > summary::after { content: "−"; }
.nav-icon { display: block; flex: 0 0 19px; width: 19px; height: 19px; padding: 0; overflow: visible; border: 0; border-radius: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button svg, .alert__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.project-context-pill { display: flex; gap: 8px; align-items: center; min-width: 0; margin-left: 24px; padding: 7px 10px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.project-context-pill span { color: var(--muted); font-size: .67rem; }
.project-context-pill strong { max-width: 220px; overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.project-context-pill--portfolio { opacity: .78; }
.app-main { display: flex; flex-direction: column; min-height: 100vh; }
.page-content { flex: 1; }
.app-footer, .auth-footer, .public-footer { display: flex; gap: 18px; align-items: center; justify-content: space-between; color: var(--muted); font-size: .76rem; }
.app-footer { width: min(1500px, 100%); margin: 0 auto; padding: 18px clamp(24px, 4vw, 42px); border-top: 1px solid var(--line); }
.app-footer nav, .auth-footer nav, .public-footer nav { display: flex; gap: 15px; }
.app-footer a, .auth-footer a, .public-footer a { color: inherit; font-weight: 700; text-decoration: none; }
.app-footer a:hover, .auth-footer a:hover, .public-footer a:hover { color: var(--primary); }
.auth-page { display: flex; flex-direction: column; }
.auth-shell { flex: 1; }
.auth-footer { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 18px 0 24px; border-top: 1px solid var(--line); }
.auth-links { display: flex; gap: 16px; justify-content: space-between; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 72px; }
.password-field button { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); padding: 5px 7px; color: var(--primary); background: transparent; border: 0; cursor: pointer; font-size: .76rem; font-weight: 800; }
.button[aria-busy="true"], button:disabled { cursor: wait; opacity: .72; transform: none; }
.metric-card__source { display: block; margin-top: 10px; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.project-summary-grid article small { display: block; margin-top: 6px; color: var(--muted); font-size: .7rem; line-height: 1.35; }
.portfolio-strip > div small { display: block; margin-top: 3px; color: var(--muted); font-size: .62rem; }
.connection-status__detail, .integration-state-detail { display: block; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.connection-journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 16px 0; padding: 0; list-style: none; }
.connection-journey li { display: grid; gap: 4px; justify-items: center; color: var(--muted); font-size: .67rem; text-align: center; }
.connection-journey li span { display: grid; place-items: center; width: 25px; height: 25px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 50%; font-weight: 850; }
.connection-journey li.is-done { color: var(--success); }
.connection-journey li.is-done span { color: #fff; background: var(--success); border-color: var(--success); }
.status-badge--data_ready, .large-status--data_ready { color: var(--success); background: rgba(16,163,127,.12); }
.status-badge--tested, .large-status--tested { color: #1769d2; background: rgba(31,111,235,.12); }
.status-badge--syncing, .large-status--syncing { color: var(--warning); background: rgba(229,140,0,.12); }
.status-badge--attention, .large-status--attention { color: var(--danger); background: rgba(201,54,79,.1); }
.form-actions--split { align-items: center; justify-content: space-between; }
.project-context-selector { display: flex; justify-content: flex-end; margin: -10px 0 18px; }
.project-context-selector label { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .78rem; font-weight: 750; }
.project-context-selector select { min-height: 40px; padding: 7px 34px 7px 10px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }

.public-page { display: flex; flex-direction: column; min-height: 100vh; background: var(--bg); }
.public-header, .public-footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.public-header { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--line); }
.public-brand { display: flex; gap: 11px; align-items: center; min-width: 0; color: var(--text); text-decoration: none; }
.public-brand > span:last-child { min-width: 0; }
.public-brand strong, .public-brand small { display: block; }
.public-brand strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.public-brand small { color: var(--muted); font-size: .72rem; }
.public-content { flex: 1; width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: clamp(40px, 8vw, 96px) 0; }
.public-footer { padding: 22px 0; border-top: 1px solid var(--line); }
.legal-page { padding: clamp(24px, 5vw, 52px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.legal-page h1 { max-width: 720px; margin: 5px 0 10px; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -.035em; }
.legal-page__lead { max-width: 720px; color: var(--muted); font-size: 1.05rem; }
.legal-page section { padding-top: 20px; border-top: 1px solid var(--line); }
.legal-page section + section { margin-top: 20px; }
.legal-page h2 { margin: 0 0 6px; font-size: 1.05rem; }
.legal-page section p { margin: 5px 0; color: var(--muted); }
.legal-page__actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 28px; }
.empty-state { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }

.confirm-dialog { width: min(440px, calc(100% - 28px)); padding: 0; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: 0 24px 70px rgba(4, 12, 9, .28); }
.confirm-dialog::backdrop { background: rgba(5,12,23,.64); backdrop-filter: blur(3px); }
.confirm-dialog__content { padding: 24px; }
.confirm-dialog h2 { margin: 0 0 7px; font-size: 1.15rem; }
.confirm-dialog p { margin: 0; color: var(--muted); }
.confirm-dialog__actions { display: flex; gap: 9px; justify-content: flex-end; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }

.panel__header > a,
.dashboard-ai-cost a,
.app-footer a,
.text-link,
.data-paths article a,
.preview-summary a { display: inline-flex; align-items: center; min-height: 36px; }
.evidence-list { display: grid; gap: 8px; margin: 12px 0 4px; padding: 0; list-style: none; }
.evidence-list li { display: flex; gap: 4px 12px; flex-wrap: wrap; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; }
.evidence-list strong { width: 100%; font-size: .78rem; }
.evidence-list span, .evidence-list small { color: var(--muted); font-size: .7rem; }
.advanced-actions { position: relative; }
.advanced-actions > summary { padding: 10px 13px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: .76rem; font-weight: 800; }
.advanced-actions[open] > summary { border-radius: 10px 10px 0 0; }
.advanced-actions > div { position: absolute; z-index: 10; top: 100%; right: 0; display: grid; gap: 8px; width: min(420px, 88vw); padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px 0 10px 10px; box-shadow: var(--shadow); }
.advanced-actions p { margin: 0 0 4px; color: var(--muted); font-size: .75rem; }
.technical-details { padding: 0; overflow: hidden; }
.technical-details > summary { padding: 16px 18px; cursor: pointer; font-weight: 800; }
.technical-details > .responsive-table { border-top: 1px solid var(--line); }
.inline-technical { margin-top: 4px; color: var(--muted); font-size: .66rem; }
.inline-technical summary { cursor: pointer; }
.inline-technical code { display: block; margin-top: 5px; overflow-wrap: anywhere; }
.job-source { display: block; margin-top: 3px; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.help-mobile-selector { display: none; }

@media (max-width: 700px) {
    .auth-shell { align-content: center; gap: 16px; padding: 18px 0; }
    .auth-brand { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 3px 12px; align-items: center; max-width: none; padding: 4px 4px 0; }
    .auth-brand .auth-logo, .auth-brand .brand-mark { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 13px; }
    .auth-brand .eyebrow { align-self: end; margin: 0; }
    .auth-brand h1 { grid-column: 2; align-self: start; margin: 0; font-size: 1rem; letter-spacing: -.01em; }
    .auth-brand > p:not(.eyebrow), .auth-proof { display: none; }
    .auth-footer, .public-footer, .app-footer { align-items: flex-start; flex-direction: column; }
    .app-footer nav, .auth-footer nav, .public-footer nav { align-items: center; flex-wrap: wrap; row-gap: 4px; }
    .app-footer a, .auth-footer a, .public-footer a { display: inline-flex; align-items: center; min-height: 36px; }
    .setup-summary > a { display: inline-flex; align-items: center; min-height: 36px; margin: -8px 0; }
    .auth-footer { width: min(100% - 24px, 480px); }
    .sidebar__close { display: inline-grid; }
    .sidebar { width: min(320px, 92vw); }
    body.sidebar-open { overflow: hidden; }
    .project-context-pill { max-width: 122px; margin-left: 6px; }
    .project-context-pill span { display: none; }
    .project-context-pill strong { max-width: 100px; }
    .project-context-pill--portfolio { display: none; }
    .project-row { grid-template-columns: 34px minmax(0, 1fr) minmax(68px, auto) 10px; gap: 6px; padding-inline: 0; }
    .project-row__stat--alerts { min-width: 68px; padding-inline: 6px; }
    .dashboard-alert-row { align-items: stretch; grid-template-columns: 1fr; }
    .dashboard-alert-row form, .dashboard-alert-row form .button { width: 100%; }
    .topbar__crumb span { display: none; }
    .metric-card__foot { align-items: flex-start; flex-direction: column; }
    .metric-card__foot small { white-space: normal; }
    .project-context-selector { justify-content: stretch; margin-top: 0; }
    .project-context-selector label { align-items: stretch; flex-direction: column; width: 100%; }
    .form-actions--split { flex-direction: column-reverse; }
    .form-actions--split .button { width: 100%; }
    .help-nav { display: grid; overflow: visible; }
    .help-nav section { display: grid; }
    .help-nav h2 { writing-mode: horizontal-tb; }
    .help-nav a { flex: initial; }
    .legal-page { padding: 25px 20px; border-radius: 18px; }
    .public-brand small { display: none; }
    .chart-shell { grid-template-columns: 48px minmax(0, 1fr); gap: 7px; }
    .chart-y-axis { font-size: .6rem; }
    .chart-x-axis { margin-left: 55px; font-size: .6rem; }
    .chart-reader-row { align-items: flex-start; flex-direction: column; gap: 7px; }
    .chart-reader-row .text-action { align-self: flex-start; }
    .advanced-actions { width: 100%; }
    .advanced-actions > summary { text-align: center; }
    .advanced-actions > div { position: static; width: 100%; border-radius: 0 0 10px 10px; box-shadow: none; }
    .help-mobile-selector { display: grid; grid-column: 1; gap: 6px; padding: 14px; border-bottom: 1px solid var(--line); }
    .help-mobile-selector label { color: var(--muted); font-size: .7rem; font-weight: 800; }
    .help-mobile-selector select { width: 100%; }
    .help-nav { display: none; }
    .help-article { grid-column: 1; padding: 24px 18px; }
}

@media (min-width: 701px) and (max-width: 880px) {
    .app-shell { grid-template-columns: 76px minmax(0, 1fr); }
    .sidebar { padding-inline: 9px; }
    .sidebar__brand { justify-content: center; padding-inline: 0; }
    .sidebar__brand > span:last-of-type, .sidebar__group h2, .sidebar__nav a span:last-child, .sidebar__footer > a span:last-child { display: none; }
    .sidebar__nav a { justify-content: center; padding-inline: 8px; }
    .sidebar__footer { justify-content: center; }
    .sidebar__footer > a { flex: 0; }
    .project-context-pill { margin-left: 10px; }
    .upload-card { align-items: stretch; flex-direction: column; }
}

@media (min-width: 881px) {
    .settings-nav small {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }
}

.installation-status {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
}
.installation-status__signal {
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 7px rgba(31, 111, 235, .11);
}
.installation-status h2 { margin: 0; font-size: 1.2rem; }
.installation-status p:not(.eyebrow) { margin: 3px 0 0; color: var(--muted); }
.installation-status__schedule {
    max-width: 210px;
    padding: 8px 11px;
    color: var(--muted);
    background: var(--surface-2);
    border-radius: 10px;
    font-size: .75rem;
    font-weight: 700;
    text-align: center;
}
.installation-status--active { border-color: rgba(11, 125, 96, .28); }
.installation-status--active .installation-status__signal {
    background: var(--success);
    box-shadow: 0 0 0 7px rgba(11, 125, 96, .11);
}
.installation-status--limited { border-color: rgba(162, 91, 0, .28); }
.installation-status--limited .installation-status__signal,
.installation-status--pending .installation-status__signal {
    background: var(--warning);
    box-shadow: 0 0 0 7px rgba(162, 91, 0, .11);
}
.installation-status--blocked { border-color: rgba(201, 54, 79, .28); }
.installation-status--blocked .installation-status__signal {
    background: var(--danger);
    box-shadow: 0 0 0 7px rgba(201, 54, 79, .11);
}
.installation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 18px;
    margin-bottom: 22px;
}
.installation-details dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}
.installation-details dl > div {
    min-width: 0;
    padding: 12px;
    background: var(--surface-2);
    border-radius: 11px;
}
.installation-details__wide { grid-column: 1 / -1; }
.installation-details dt {
    color: var(--muted);
    font-size: .75rem;
}
.installation-details dd {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
    font-size: .84rem;
    font-weight: 750;
}
.installation-details code {
    display: block;
    padding: 8px 10px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 600;
}
.installation-registration .stack-form { margin-bottom: 10px; }
.installation-registration .stack-form .button { margin-top: 0; }
.data-sharing-note {
    padding: 13px 14px;
    color: var(--muted);
    background: rgba(31, 111, 235, .07);
    border: 1px solid rgba(31, 111, 235, .18);
    border-radius: 11px;
    font-size: .78rem;
}
.data-sharing-note strong { color: var(--text); }
.data-sharing-note p { margin: 4px 0 0; }
.installation-revalidate { width: 100%; }
.installation-heading { margin-bottom: 18px; }
.installation-page {
    display: grid;
    grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
    gap: 18px;
    max-width: 1040px;
}
.installation-product {
    align-self: start;
    padding: 24px;
    background: var(--surface);
    border-top: 3px solid var(--primary);
}
.installation-product h2 {
    margin: 5px 0 23px;
    font-size: clamp(1.28rem, 2.4vw, 1.7rem);
    letter-spacing: -.025em;
}
.installation-product dl {
    display: grid;
    gap: 0;
    margin: 0;
}
.installation-product dl > div {
    padding: 14px 0;
    border-top: 1px solid var(--line);
}
.installation-product dt {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 650;
}
.installation-product dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    font-size: .94rem;
    font-weight: 800;
}
.system-update-card {
    padding: 24px;
    box-shadow: 0 14px 34px rgba(18, 35, 62, .06);
}
.system-update-card .panel__header { align-items: center; margin-bottom: 20px; }
.system-update-card .panel__header h2 { margin-top: 3px; font-size: 1.18rem; }
.system-update-card__badge {
    flex: 0 0 auto;
    padding: 7px 10px;
    color: var(--success);
    background: rgba(11, 125, 96, .09);
    border: 1px solid rgba(11, 125, 96, .2);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
}
.update-package-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--surface-2);
    border: 1px dashed rgba(31, 111, 235, .38);
    border-radius: 13px;
}
.update-package-field > span { font-size: .86rem; font-weight: 800; }
.update-package-field input[type="file"] {
    width: 100%;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 9px;
}
.update-package-field input[type="file"]::file-selector-button {
    min-height: 36px;
    margin: -7px 12px -7px -1px;
    padding: 7px 12px;
    color: var(--primary);
    background: rgba(31, 111, 235, .09);
    border: 0;
    border-right: 1px solid var(--line);
    cursor: pointer;
    font-weight: 800;
}
.update-package-field small {
    color: var(--muted);
    font-size: .76rem;
}
.update-confirmation {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text);
    font-size: .8rem;
    line-height: 1.45;
}
.update-confirmation input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: var(--primary);
}
.system-update-card__safety {
    margin: -2px 0 0;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.55;
}
.system-update-card .button { justify-content: center; width: 100%; }
.installation-support {
    grid-column: 1 / -1;
    padding: 0;
    overflow: hidden;
}
.installation-support > summary {
    justify-content: space-between;
    min-height: 64px;
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
}
.installation-support > summary::-webkit-details-marker { display: none; }
.installation-support > summary > span:first-child {
    display: grid;
    gap: 2px;
}
.installation-support > summary strong { font-size: .86rem; }
.installation-support > summary small { color: var(--muted); font-size: .78rem; }
.installation-support__action {
    color: var(--primary);
    font-size: .77rem;
    font-weight: 800;
}
.installation-support__content {
    padding: 0 18px 18px;
    border-top: 1px solid var(--line);
}
.installation-support__content > p {
    margin: 16px 0;
    color: var(--muted);
    font-size: .8rem;
}
.installation-support__content .stack-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.installation-support__content .stack-form .button {
    grid-column: 1 / -1;
    justify-content: center;
}
.installation-support__content > form:last-child {
    margin-top: 9px;
    text-align: center;
}
.service-unavailable {
    max-width: 680px;
    margin: 8vh auto;
    padding: clamp(28px, 5vw, 48px);
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.service-unavailable__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    color: var(--danger);
    background: rgba(201, 54, 79, .1);
    border-radius: 18px;
    font-size: 1.5rem;
    font-weight: 900;
}
.service-unavailable h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.service-unavailable > p:not(.eyebrow) { margin: 10px 0 26px; color: var(--muted); }
.service-unavailable .heading-actions { justify-content: center; }

@media (max-width: 900px) {
    .installation-layout { grid-template-columns: minmax(0, 1fr); }
    .installation-page { grid-template-columns: minmax(0, 1fr); }
    .installation-support { grid-column: auto; }
}

@media (max-width: 700px) {
    .installation-status {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        padding: 16px;
    }
    .installation-status__signal { margin-top: 7px; }
    .installation-status__schedule {
        grid-column: 1 / -1;
        max-width: none;
        text-align: left;
    }
    .installation-details dl { grid-template-columns: minmax(0, 1fr); }
    .installation-details__wide { grid-column: auto; }
    .installation-product,
    .system-update-card { padding: 18px; }
    .system-update-card .panel__header {
        align-items: flex-start;
        flex-direction: column;
    }
    .system-update-card__badge { align-self: flex-start; }
    .installation-support__content .stack-form { grid-template-columns: minmax(0, 1fr); }
    .installation-support__content .stack-form .button { grid-column: auto; }
    .service-unavailable { margin-block: 24px; }
    .service-unavailable .heading-actions,
    .service-unavailable .button { width: 100%; }
}

/* Readability floor for secondary information across dense administrative screens. */
.alert-grid dt,
.alert-grid dd,
.anomaly-direction,
.anomaly-filter-groups > div > span,
.anomaly-overview span,
.anomaly-overview small,
.analysis-runner form > div:first-child p,
.analysis-sources strong,
.analysis-sources span,
.analysis-sources small,
.api-details dt,
.badge,
.callback-box > span,
.change-timeline article > time,
.change-timeline header small,
.chart-selection,
.chart-tooltip span,
.chart-total small,
.chart-x-axis,
.chart-y-axis,
.chat-activity,
.chat-activity small,
.chat-welcome p,
.column-mapping-grid span,
.compact-list small,
.composer__meta,
.confidence,
.connection-journey li,
.connection-status > p,
.revoke-panel p,
.connection-status dt,
.connection-status dd,
.conversation__header input,
.conversation__header p,
.credential-reveal button,
.api-details button,
.credential-reveal code,
.data-paths article a,
.dashboard-alert-row small,
.demo-label,
.error-guidance__solution a,
.error-guidance__solution ol,
.experiment-grid blockquote,
.experiment-grid dt,
.experiment-grid dd,
.file-guidance p,
.finding-card summary,
.finding-meta span,
.guided-tour__card > span,
.health-check p,
.health-summary span,
.health-summary small,
.help-nav h2,
.help-nav strong,
.import-explainer small,
.import-explainer strong,
.inline-technical,
.install-footer,
.integration-card .last-test,
.integration-card > div > p,
.integration-guide a,
.integration-guide ol,
.issue-list aside,
.issue-list aside small,
.issue-list aside select,
.issue-main > p,
.issue-main dt,
.issue-main dd,
.large-status,
.message__avatar,
.message__body details,
.metric-card__source,
.metrics-periods > span,
.news-feed article > p,
.news-feed details label,
.news-feed summary,
.news-feed time,
.notification-count,
.permission-check-panel p,
.portfolio-strip > div small,
.portfolio-strip span,
.precision-note,
.preview-summary a,
.project-card dt,
.project-context-pill span,
.project-details dt,
.project-row small,
.project-row__stat small,
.project-summary-grid span,
.project-tabs a,
.public-brand small,
.queue-counters span,
.quick-prompts button,
.ranking-grid article > div span,
.ranking-grid footer,
.ranking-grid header span,
.recommended-reset p,
.demo-management p,
.restore-form label,
.inline-security-form label,
.security-grid form label,
.review-card span,
.run-list small,
.run-list time,
.scope-list dd,
.scope-list dt,
.secret-box button,
.section-heading p,
.setting-field small,
.settings-nav small,
.settings-subheading > p:last-child,
.setup-finish p,
.setup-recommendations small,
.setup-step-list strong,
.severity-pill,
.sidebar__brand small,
.sidebar__footer small,
.sidebar__group h2,
.source-error-help,
.source-strip > div small,
.source-strip > div strong,
.source-strip > span,
.source-strip > strong,
.statement strong,
.status-badge,
.table-actions button,
.table-note,
.tag-cloud span,
.task-card footer span,
.task-card footer time,
.task-card header > span:last-child,
.task-card p,
.task-detail dl div,
.template-row small,
.text-action,
.thread-filter select,
.thread-icon,
.thread-panel small,
.thread-panel strong,
.timeline small,
.topbar__crumb span,
.upload-card label,
.warning-card p,
.recovery-panel p,
.wizard-nav button > span,
td small,
th {
    font-size: .75rem;
}

.metric-card__foot small,
.trend,
.integration-group > header p,
.integration-card ul,
.integration-card footer select,
.context-chip span,
.callback-box code,
.privacy-note p,
.setup-step-list small,
.setup-card .text-link,
.setup-banner span,
.data-paths article > span,
.import-explainer span,
.data-paths article p,
.preview-summary span,
.column-mapping-grid select,
.audit-policy p,
.audit-explainer > p,
.experiment-grid summary,
.change-timeline p,
.alert-comparison small,
.source-status,
.statement p,
.message__body footer,
.chat-stream-error p,
.chat-stream-error li,
.chat-stream-error a,
.attachment-list span,
.composer__meta select,
.source-strip button,
.relevance-label,
.external-events .timeline em,
.credential-reveal label > span,
.code-examples pre,
.message pre,
.help-nav small,
.secret-box code,
.break-code,
.project-summary-grid article small,
.evidence-list span,
.evidence-list small,
.upload-card label small,
.help-mobile-selector label {
    font-size: .75rem;
}

.button--small { min-height: 38px; }
.text-action,
.quick-prompts button,
.composer__meta select,
.source-strip button {
    min-height: 36px;
}
.source-strip button {
    padding: 7px 8px;
    border-radius: 7px;
}
.text-action {
    display: inline-flex;
    align-items: center;
    padding-block: 7px;
}
.thread-filter select,
.help-mobile-selector select,
.field--inline select,
.integration-card footer select,
.column-mapping-grid select,
.issue-list aside select {
    min-height: 40px;
}

.table-actions button,
.credential-reveal button,
.api-details button,
.secret-box button {
    min-height: 36px;
    padding-block: 7px;
}
.password-field button {
    min-width: 40px;
    min-height: 40px;
}
details > summary {
    display: flex;
    align-items: center;
    min-height: 40px;
}
input[type="file"] {
    min-height: 44px;
    padding-block: 7px;
}

.pagespeed-measurements { margin-top: 24px; }
.pagespeed-projects { display: grid; gap: 14px; padding: 0 20px 20px; }
.pagespeed-project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr); gap: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.pagespeed-project h3 { margin: 0 0 6px; }
.pagespeed-project__url { overflow-wrap: anywhere; color: var(--muted); }
.pagespeed-project small { display: block; margin-top: 8px; color: var(--muted); }
.pagespeed-project form { display: grid; gap: 10px; align-content: start; }
.pagespeed-project label { display: grid; gap: 6px; }
.pagespeed-project label span { font-size: .875rem; }
@media (max-width: 700px) {
    .pagespeed-project { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

@media (max-width: 700px) {
    .guided-tour { z-index: 110; }
    .guided-tour__backdrop { background: rgba(5,12,23,.5); }
    .tour-container-highlight { z-index: 40 !important; }
    .topbar.tour-container-highlight { z-index: 30 !important; }
    .external-context-panel { padding: 15px; }
    .external-context-panel__facts { grid-template-columns: 1fr; }
    .external-context-panel__actions { align-items: stretch; flex-direction: column; }
    .external-context-panel__actions .button { width: 100%; }
    .setting-choice-grid { grid-template-columns: 1fr; }
    .button--small { min-height: 42px; }
    .composer__meta select { min-height: 40px; }
    .text-action,
    .table-actions button,
    .quick-prompts button,
    .credential-reveal button,
    .api-details button,
    .secret-box button,
    .source-strip button,
    .news-feed summary {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
    }
}
