/* Desktop-first application shell shared by every theme. */
.layout{display:grid;grid-template-columns:300px minmax(0,1fr);min-height:100vh;background:var(--app-bg);transition:grid-template-columns 200ms ease}
.shell-main{min-width:0;min-height:100vh}.topbar{position:sticky;z-index:45;top:0;height:56px;padding:0 18px;display:flex;align-items:center;border-bottom:1px solid var(--line);background:var(--header-bg);color:var(--text);box-shadow:0 1px 0 color-mix(in srgb,var(--text) 2%,transparent)}
.topbar-actions{display:flex;align-items:center;gap:9px;margin-left:auto}.topbar .icon-button{width:34px;height:34px}.topbar .user-button{gap:9px;color:var(--text);font-size:12px}.topbar .user-button svg{width:12px;height:12px}.avatar{background:var(--accent);color:white;border-color:var(--accent)}
.global-search{position:fixed;z-index:46;top:8px;left:50vw;transform:translateX(-50%);width:min(520px,38vw);height:40px;padding:7px 10px;display:flex;align-items:center;gap:8px;box-shadow:0 5px 22px color-mix(in srgb,var(--text) 5%,transparent)}.global-search input{font-size:11px;min-width:0;flex:1}.global-search .keycap{font-size:9px}.mobile-menu{display:none}
.theme-toggle .theme-icon{display:grid;place-items:center;transition:transform 180ms,color 180ms}.theme-toggle[data-theme-state=filled] .theme-icon{color:var(--accent)}.theme-toggle[data-theme-state=accent] .theme-icon{color:var(--accent);transform:rotate(30deg)}.theme-toggle[data-theme-state=ring]{box-shadow:inset 0 0 0 1px var(--accent)}.theme-toggle[data-theme-state=ring] .theme-icon{color:var(--warning);transform:rotate(45deg)}
.sidebar{position:sticky;z-index:48;top:0;height:100vh;padding:0 10px 12px;display:flex;flex-direction:column;gap:14px;overflow-y:auto;overflow-x:hidden;background:var(--sidebar-bg);border-right:1px solid var(--line);box-shadow:8px 0 28px color-mix(in srgb,var(--text) 3%,transparent);transition:transform 200ms ease,opacity 160ms ease}
.sidebar-head{height:56px;display:flex;align-items:center;gap:8px;padding:0 2px 0 8px;flex:0 0 auto;border-bottom:1px solid var(--border-subtle)}.sidebar-head .brand{min-width:0;flex:1}.sidebar-head-actions{display:flex;align-items:center;gap:2px}.sidebar-head .icon-button{width:30px;height:30px;padding:5px}.sidebar-hide svg{transform:rotate(180deg)}
.side-nav{gap:3px;margin-top:8px}.nav-item{font-size:12px;padding:8px 10px;min-height:34px;gap:9px}.nav-item svg{width:16px;height:16px}.nav-group>summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer;font-size:12px;padding:8px 10px;color:var(--text-secondary)}.nav-group>summary:after{content:'›';margin-left:auto;transform:rotate(90deg)}.nav-group:not([open])>summary:after{transform:none}.nav-group>.nav-item{padding-left:20px}.side-heading{font-size:9px}.catalog-block{min-height:120px}.tree details>summary{padding:6px 7px;font-size:11px;min-height:31px}.tree-category{padding:6px 8px 3px 24px}.host-item{font-size:11px;padding-top:6px;padding-bottom:6px;min-height:30px}.side-bottom{padding-top:10px}.scope-card{padding:11px}.scope-card strong{font-size:12px}.scope-card p{font-size:10px;margin-top:9px}.sidebar-footer{font-size:8px;gap:5px}
.workspace{padding:16px 20px 22px!important;min-width:0}.workspace-grid{grid-template-columns:minmax(0,1fr) 260px;gap:16px}.center{gap:14px}.right-panel{padding:16px;top:72px}.right-title{font-size:14px}.section-label{margin:18px 0 8px}.policy{margin-top:18px}.hero{padding:18px}.host-title{font-size:23px}.metric{min-height:88px;padding:12px}.metric-value{font-size:22px;margin-top:8px}.connections,.topology{padding:16px}.audit{padding:16px}.middle-grid{gap:14px}.shell-host-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}.shell-host{text-align:left;padding:18px;line-height:1.7}.shell-host p{color:var(--muted);font-size:12px;margin-top:5px}.shell-host:hover{border-color:var(--accent)}
.sidebar-rail{display:none;position:fixed;z-index:80;left:0;top:70px;width:30px;height:48px;border-radius:0 9px 9px 0;background:var(--surface-solid);border:1px solid var(--line);border-left:0;box-shadow:var(--shadow-floating)}.sidebar-rail svg{transform:none}
@media(min-width:1650px){.workspace-grid{grid-template-columns:minmax(0,1fr) 285px}.workspace{padding:20px 24px!important}}
@media(max-width:1250px){.global-search{width:min(430px,36vw)}.workspace-grid{grid-template-columns:minmax(0,1fr)}.right-panel{position:static}.topbar .username{display:none}}
@media(max-width:900px){.global-search{width:min(360px,40vw)}.topbar-actions{gap:5px}.topbar .demo-pill{display:none}}
@media(max-width:760px){.layout{display:block}.topbar{height:56px;padding:0 10px;gap:7px}.mobile-menu{display:inline-flex}.sidebar{display:none;position:fixed;top:56px;left:0;bottom:0;width:245px;height:calc(100vh - 56px);box-shadow:30px 0 70px #0009}.sidebar.mobile-open{display:flex}.sidebar-head{display:none}.workspace{padding:14px 12px!important}.global-search{position:static;transform:none;width:auto;min-width:0!important;max-width:none;flex:1;margin:0 8px}.global-search .keycap,.topbar #refresh-button{display:none}.topbar .username,.topbar .user-button>svg{display:none}.workspace-title{flex-wrap:wrap}.shell-host-grid{grid-template-columns:minmax(0,1fr)}.sidebar-rail{display:none!important}}
