/* Theme controls shared across agent.mona.expert. Dark is the default. */
:root{--agent-bg:#061422;--agent-surface:rgba(10,27,45,.9);--agent-ink:#e6f2fa;--agent-muted:#90a7b8;--agent-line:rgba(173,221,240,.2);--agent-cyan:#67e4ed}
html[data-agent-theme="light"]{--agent-bg:#f5f8fb;--agent-surface:rgba(255,255,255,.9);--agent-ink:#0b1726;--agent-muted:#6c7f91;--agent-line:#dbe5ed;--agent-cyan:#13bdd1}
body:has(.agent-nav),body:has(.mw-shell){margin:0!important;background:var(--agent-bg)!important;color:var(--agent-ink)!important}
.agent-theme-toggle{width:34px;height:34px;border:1px solid rgba(181,226,245,.26);border-radius:10px;background:rgba(255,255,255,.06);color:#dff8fb;font-size:16px;line-height:1;cursor:pointer;display:inline-grid;place-items:center;flex:0 0 auto;box-shadow:inset 0 1px 0 rgba(255,255,255,.1);transition:background .16s,border-color .16s,color .16s,transform .16s}
.agent-theme-toggle:hover{background:rgba(76,214,229,.14);border-color:rgba(76,214,229,.55);color:#85edf3;transform:translateY(-1px)}
.agent-theme-toggle:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(76,214,229,.22)}
html[data-agent-theme="light"] .agent-theme-toggle{background:#fff;border-color:#d5e2eb;color:#17314a;box-shadow:0 2px 8px rgba(10,30,50,.08)}
html[data-agent-theme="dark"] .agent-nav-full{background:rgba(6,20,34,.88)!important;border-color:var(--agent-line)!important;box-shadow:0 1px 0 rgba(255,255,255,.04)}
html[data-agent-theme="dark"] .agent-nav-brand-copy strong{color:var(--agent-ink)!important}
html[data-agent-theme="dark"] .agent-nav-brand-copy small,html[data-agent-theme="dark"] .agent-nav-label,html[data-agent-theme="dark"] .agent-nav-console a,html[data-agent-theme="dark"] .agent-nav-resources summary{color:var(--agent-muted)!important}
html[data-agent-theme="dark"] .agent-nav-console a:hover{background:rgba(255,255,255,.07)!important;color:var(--agent-ink)!important}
html[data-agent-theme="dark"] .agent-resource-menu{border-color:var(--agent-line)!important;background:#0a1b2d!important;box-shadow:0 16px 42px rgba(0,0,0,.3)!important}
html[data-agent-theme="dark"] .agent-resource-menu a{color:#b8cbd9!important}
html[data-agent-theme="dark"] .agent-resource-menu a:hover{background:rgba(76,214,229,.1)!important;color:#8debf2!important}
html[data-agent-theme="dark"] .agent-shell{background:radial-gradient(circle at 5% 0,rgba(19,189,209,.13),transparent 28%),var(--agent-bg)!important}
html[data-agent-theme="dark"] .agent-shell .card,html[data-agent-theme="dark"] .agent-shell .auth-card,html[data-agent-theme="dark"] .agent-shell .agent-packages-card{background:var(--agent-surface)!important;border-color:var(--agent-line)!important;color:var(--agent-ink)!important}
html[data-agent-theme="dark"] .agent-shell h1,html[data-agent-theme="dark"] .agent-shell h2,html[data-agent-theme="dark"] .agent-shell h3{color:var(--agent-ink)!important}
html[data-agent-theme="dark"] .agent-shell p,html[data-agent-theme="dark"] .agent-shell label,html[data-agent-theme="dark"] .agent-shell .text-muted{color:var(--agent-muted)!important}
html[data-agent-theme="dark"] .agent-shell input,html[data-agent-theme="dark"] .agent-shell select{background:rgba(255,255,255,.05)!important;border-color:var(--agent-line)!important;color:var(--agent-ink)!important}
html[data-agent-theme="light"] .mw-shell{background:linear-gradient(135deg,#edf8fb,#f6f9fc 54%,#edf3ff)!important}
html[data-agent-theme="light"] .mw-topbar{background:rgba(255,255,255,.92)!important;border-color:#dbe7ee!important}
html[data-agent-theme="light"] .mw-c,html[data-agent-theme="light"] .mw-sc{background:rgba(255,255,255,.86)!important;border-color:#dbe7ee!important;color:#0c1828!important}
html[data-agent-theme="light"] .mw-c h3,html[data-agent-theme="light"] .mw-sv,html[data-agent-theme="light"] .mw-greet h1{color:#0c1828!important}
html[data-agent-theme="light"] .mw-console-menu summary{background:#fff!important;border-color:#dbe7ee!important;color:#17314a!important}
html[data-agent-theme="light"] .mw-console-menu-panel{background:#fff!important;border-color:#dbe7ee!important}
html[data-agent-theme="light"] .mw-console-menu-panel .mw-cm-user{color:#17314a!important;border-color:#e6edf2!important}
html[data-agent-theme="light"] .mw-console-menu-panel a{color:#294158!important}
html[data-agent-theme="light"] .mw-console-menu-panel a:hover{background:#edf8fb!important;color:#117d8b!important}
html[data-agent-theme="light"] .mw-utility-dock{background:rgba(255,255,255,.92)!important;border-color:#dbe7ee!important;box-shadow:0 16px 42px rgba(10,30,50,.14)!important}
body:has(.mw-shell) .main-header,body:has(.mw-shell) .footer{display:none!important}
body:has(.mw-shell) #main-wrapper,body:has(.mw-shell) .main-wrapper{margin-top:0!important;padding-top:0!important}
body:has(.mw-shell) .container-fluid{padding-left:0!important;padding-right:0!important}
@media(max-width:760px){.agent-nav-full{height:auto!important;min-height:64px!important;padding:10px 16px!important}.agent-nav-console{display:none!important}.agent-nav-end{gap:8px!important}.agent-nav-resources{display:none!important}.agent-nav-action{font-size:11px!important}.mw-theme-toggle{width:34px;height:34px}}
