/* Shared shell overrides are active only while the Agent route owns its theme. */
.al-header-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px}
.al-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 12px;background:#fff;border:1px solid #bdcddd;border-radius:24px;color:#364e6d;font-size:12px!important;cursor:pointer;white-space:nowrap}
.al-theme-toggle:hover{background:#ffffffe6}.al-theme-toggle svg{width:17px;height:17px}.al-theme-toggle:focus-visible{outline:2px solid #547da8;outline-offset:4px}
:root[data-agent-theme=dark]{color-scheme:dark;--bg:#111a26;--text:#e0e9f4;--muted:#a6b6c9;--line:#34475c;--accent:#b4cfea;--card:#1a283ac2}
:root[data-agent-theme=dark] body{background:radial-gradient(ellipse at 5% 35%,#1a2c3c 0,transparent 55%),radial-gradient(ellipse at 95% 60%,#20263d 0,transparent 50%),var(--bg)}
:root[data-agent-theme=dark] ::selection{background:#37566f;color:#f1f7ff}
[data-agent-theme=dark] .flow-site[data-page=agents] .flow-brand>span{color:#9aacc0}
[data-agent-theme=dark] .flow-site[data-page=agents] .flow-navigation{background:#23324699;border-color:#4a5f7570}
[data-agent-theme=dark] .flow-site[data-page=agents] .flow-navigation>a[aria-current=page],
[data-agent-theme=dark] .flow-site[data-page=agents] .flow-menu>summary.current,
[data-agent-theme=dark] .flow-site[data-page=agents] .flow-menu[open]>summary{background:#354a60;box-shadow:none}
[data-agent-theme=dark] .flow-site[data-page=agents] .flow-menu-panel{background:#1c2a3bf5;border-color:#3b4f64;box-shadow:0 20px 60px #0005}
[data-agent-theme=dark] .flow-site[data-page=agents] .flow-menu-panel a:hover,
[data-agent-theme=dark] .flow-site[data-page=agents] .flow-menu-panel a[aria-current=page]{background:#31445a}
[data-agent-theme=dark] .flow-site[data-page=agents] .flow-footer{color:#a6b6c9;border-color:#34475c}
[data-agent-theme=dark] .flow-site[data-page=agents] :focus-visible{outline-color:#b4d4f2}
[data-agent-theme=dark] .al-page{color:#e0e9f4}
[data-agent-theme=dark] .al-page .page-intro p,
[data-agent-theme=dark] .al-panel p,
[data-agent-theme=dark] .al-panel small,
[data-agent-theme=dark] .al-prompt-intro>p{color:#a6b6c9}
[data-agent-theme=dark] .al-eyebrow,
[data-agent-theme=dark] .al-prompt-steps,
[data-agent-theme=dark] .al-pair-device code,
[data-agent-theme=dark] .al-session-details,
[data-agent-theme=dark] .al-panel label,
[data-agent-theme=dark] .al-footnote p,
[data-agent-theme=dark] .al-footnote svg{color:#9dafc3}
[data-agent-theme=dark] .al-panel{background:#1c2a3bad;border-color:#3b50657a;box-shadow:0 12px 32px #00000015}
[data-agent-theme=dark] .al-prompt-text{background:#101d2bd9!important;color:#cfdeee!important;border-color:#3e536a!important;caret-color:#c3e0fa}
[data-agent-theme=dark] .al-prompt-hint{color:#9dafc3!important}
[data-agent-theme=dark] .al-primary{background:#bed5ec;color:#16283a}
[data-agent-theme=dark] .al-primary:hover{background:#d2e5f7}
[data-agent-theme=dark] .al-secondary{background:#2b3d52;border-color:#496078;color:#d1deec}
[data-agent-theme=dark] .al-health,
[data-agent-theme=dark] .al-theme-toggle{background:#223447a6;border-color:#49607880;color:#b5c5d7}
[data-agent-theme=dark] .al-theme-toggle:hover{background:#344c64}
[data-agent-theme=dark] .al-health.online i{background:#8bd1ad}
[data-agent-theme=dark] .al-prompt-steps b{border-color:#42586e}
[data-agent-theme=dark] .al-prompt-steps>i{background:#42586e}
[data-agent-theme=dark] .al-prompt-placeholder{background:#17263980;border-color:#42586e;color:#a4b7cc}
[data-agent-theme=dark] .al-verdict{border-color:#42586e;color:#b0c2d6}
[data-agent-theme=dark] .al-verdict.passed{background:#203e36;color:#a1ddbd;border-color:#3d6a57}
[data-agent-theme=dark] .al-pair-device{background:#16263880;border-color:#3a5066}
[data-agent-theme=dark] .al-device-icon{background:#304359;color:#b0c5db}
[data-agent-theme=dark] .al-pair-device.online .al-device-icon{background:#294b40;color:#a1ddbd}
[data-agent-theme=dark] .al-status{border-color:#4a6076;color:#b0c2d6}
[data-agent-theme=dark] .al-checks{border-color:#3a5066}
[data-agent-theme=dark] .al-checks li>span{border-color:#4a6076}
[data-agent-theme=dark] .al-checks li.done>span{border-color:#4d7963;background:#294b40;color:#a1ddbd}
[data-agent-theme=dark] .al-checks small{color:#a6b6c9}
[data-agent-theme=dark] .al-verification.is-verified{border-color:#4d7963}
[data-agent-theme=dark] .al-page details>summary{color:#bed5ec}
[data-agent-theme=dark] .al-restore-file input::file-selector-button{background:#2b3d52;border-color:#496078;color:#d1deec}
[data-agent-theme=dark] .al-alert{background:#4b2c32;color:#ffc0bc}
@media(max-width:600px){.al-header-actions{gap:7px;max-width:130px}.al-theme-toggle{min-height:36px;padding:7px 10px;font-size:10px!important}.al-theme-toggle svg{width:15px;height:15px}}
