:root{
  --paper:#fff;
  --paper-soft:#fbfbfb;
  --surface:#fff;
  --surface-2:#f7f7f6;
  --ink:#080808;
  --ink-2:#2e2e2e;
  --muted:#777775;
  --faint:#a8a8a5;
  --line:#e8e8e5;
  --line-strong:#d9d9d5;
  --hover:#f4f4f2;
  --selected:#efefed;
  --shadow:0 1px 1px rgba(0,0,0,.025),0 12px 40px rgba(0,0,0,.035);
  --shadow-float:0 28px 90px rgba(0,0,0,.18),0 2px 10px rgba(0,0,0,.08);
  --radius:18px;
  --radius-sm:12px;
  --sidebar:230px;
  --topbar:68px;
  --dock-h:82px;
  --search-clear:920px;
  --panel-ease:.2s ease;
  --panel-fade:.18s ease;
  --sans:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Helvetica Neue",Arial,sans-serif;
  --mono:"SFMono-Regular","SF Mono",ui-monospace,Menlo,Monaco,Consolas,monospace;
}

*{box-sizing:border-box}
html{background:var(--paper);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body{margin:0;min-width:320px;min-height:100vh;background:var(--paper);overflow:hidden}
button,input{font:inherit;color:inherit}
button{border:0;background:none;cursor:pointer}
svg{display:block;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}

::selection{background:#111;color:#fff}
:focus-visible{outline:2px solid #111;outline-offset:3px}

.app-shell{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);height:100vh;background:var(--paper);transition:grid-template-columns var(--panel-ease)}

/* Sidebar */
.sidebar{position:relative;z-index:30;display:flex;flex-direction:column;min-height:0;padding:20px 14px 16px;border-right:1px solid var(--line);background:rgba(255,255,255,.96);transition:opacity var(--panel-fade),transform var(--panel-ease),padding var(--panel-ease),visibility 0s linear}
@media (min-width:761px){
  body.left-panel-hidden .app-shell{grid-template-columns:0px minmax(0,1fr)}
  body.left-panel-hidden .sidebar{visibility:hidden;overflow:hidden;padding-left:0;padding-right:0;border-right:0;opacity:0;transform:translateX(-18px);transition:opacity var(--panel-fade),transform var(--panel-ease),padding var(--panel-ease),visibility 0s linear .2s}
}
.brand{display:flex;align-items:center;gap:11px;height:38px;margin:0 4px 28px;color:inherit;text-decoration:none}
.brand-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#050505;color:#fff;font-size:16px;font-weight:760;letter-spacing:-.04em;box-shadow:0 3px 12px rgba(0,0,0,.12)}
.brand-name{font-size:18px;font-weight:690;letter-spacing:-.035em}
.sidebar-nav{min-height:0;overflow-y:auto;scrollbar-width:none;padding:0 1px}
.sidebar-nav::-webkit-scrollbar{display:none}
.nav-group{display:flex;flex-direction:column;gap:3px}
.nav-group.compact{gap:2px}
.nav-item{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;width:100%;min-height:38px;padding:7px 11px;border-radius:11px;color:#242424;text-align:left;transition:background .16s ease,transform .16s ease,color .16s ease}
.nav-item:hover{background:var(--hover)}
.nav-item:active{transform:scale(.985)}
.nav-item.is-active{background:#111;color:#fff}
.nav-item svg{width:18px;height:18px}
.nav-item>span:nth-child(2){font-size:13px;font-weight:540;letter-spacing:-.012em}
.nav-count{display:grid;place-items:center;min-width:23px;height:20px;padding:0 6px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#111;font:600 10px/1 var(--mono)}
.nav-item.is-active .nav-count{border-color:#3a3a3a;background:#282828;color:#fff}
.nav-divider{height:1px;margin:18px 8px 15px;background:var(--line)}
.nav-label{padding:0 11px 8px;color:var(--faint);font:600 9px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase}
.profile-card{display:grid;grid-template-columns:38px minmax(0,1fr) 18px;align-items:center;gap:10px;width:100%;margin-top:auto;padding:10px;border:1px solid var(--line);border-radius:14px;background:#fff;text-align:left;transition:background .16s ease,border-color .16s ease,box-shadow .16s ease}
.profile-card:hover{background:var(--paper-soft);border-color:var(--line-strong);box-shadow:0 8px 24px rgba(0,0,0,.04)}
.profile-card img{width:38px;height:38px;border-radius:50%}
.profile-copy{display:flex;min-width:0;flex-direction:column;gap:2px}
.profile-copy strong{font-size:12.5px;font-weight:650;letter-spacing:-.01em}
.profile-copy small{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.profile-chevron{width:14px;height:14px;color:var(--faint);transform:rotate(90deg)}

/* Workspace shell */
.workspace-shell{position:relative;display:grid;grid-template-rows:var(--topbar) minmax(0,1fr);min-width:0;min-height:0;background:var(--paper)}
.topbar{position:relative;z-index:20;display:flex;align-items:center;gap:10px;height:var(--topbar);padding:0 24px 0 18px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.91);backdrop-filter:blur(22px) saturate(140%)}
.mobile-menu{display:none;width:38px;height:38px;border:1px solid var(--line);border-radius:11px;background:#fff;padding:10px}
.mobile-menu span{display:block;height:1.5px;margin:4px 0;background:#111;border-radius:2px}
.panel-toggle{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:#191919;transition:background .16s ease,transform .16s ease}
.panel-toggle:hover{background:var(--hover)}
.panel-toggle:active{transform:scale(.94)}
.panel-toggle svg{width:17px;height:17px}
.global-search{position:fixed;z-index:26;left:50%;top:13px;transform:translateX(-50%);display:flex;align-items:center;width:min(610px,calc(100vw - var(--search-clear)));height:42px;padding:0 9px 0 13px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.02);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.global-search:focus-within{border-color:#bdbdb9;box-shadow:0 0 0 4px rgba(0,0,0,.04),0 10px 30px rgba(0,0,0,.04);transform:translateX(-50%) translateY(-1px)}
.global-search>svg{width:18px;height:18px;margin-right:10px;color:#111}
.global-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;font-size:13.5px;letter-spacing:-.01em}
.global-search input::placeholder{color:#8a8a87}
kbd{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:23px;padding:0 6px;border:1px solid var(--line);border-bottom-color:#cfcfcb;border-radius:7px;background:#fafafa;color:#777;font:600 10px/1 var(--mono);box-shadow:0 1px 0 #efefed}
.global-search kbd{gap:2px;margin-left:8px}
.topbar-status{margin-left:auto;display:flex;align-items:center;gap:4px;min-width:0}
.system-state{display:flex;align-items:center;gap:8px;margin-right:7px;padding-right:11px;border-right:1px solid var(--line)}
.state-dot{width:7px;height:7px;border-radius:50%;background:#080808;box-shadow:0 0 0 4px #ededeb}
.system-state>span:last-child{display:flex;flex-direction:column;gap:1px;white-space:nowrap}
.system-state small{color:var(--muted);font-size:9px}
.system-state strong{font-size:11px;font-weight:650}
.top-icon{position:relative;display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:#191919;transition:background .16s ease,transform .16s ease}
.top-icon:hover{background:var(--hover)}
.top-icon:active{transform:scale(.94)}
.top-icon svg{width:17px;height:17px}
.top-icon.has-notice::after{content:"";position:absolute;right:7px;top:6px;width:5px;height:5px;border:2px solid #fff;border-radius:50%;background:#080808}
.top-clock{margin-left:7px;color:#202020;font-size:11.5px;font-weight:600;white-space:nowrap}
.mini-avatar{display:grid;place-items:center;width:31px;height:31px;margin-left:7px;border-radius:50%;background:#080808;color:#fff;font-size:12px;font-weight:700}

.home-content{min-height:0;overflow:auto;padding:30px 26px calc(var(--dock-h) + 36px);scrollbar-color:#d8d8d4 transparent;scrollbar-width:thin}
.home-content::-webkit-scrollbar{width:8px}
.home-content::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background:#d8d8d4;background-clip:content-box}

/* Hero */
.hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.85fr);align-items:center;min-height:130px;margin-bottom:22px;padding:4px 12px 0 14px;overflow:hidden}
.hero-copy{position:relative;z-index:2}
.eyebrow{margin:0 0 10px;color:#888884;font:600 9px/1 var(--mono);letter-spacing:.13em;text-transform:uppercase}
.hero h1{margin:0;font-size:clamp(30px,3vw,44px);font-weight:570;letter-spacing:-.052em;line-height:1.03}
.hero p:not(.eyebrow){margin:13px 0 0;color:var(--muted);font-size:13.5px;letter-spacing:-.012em}
.orbit-visual{position:relative;height:124px;min-width:280px}
.orbit{position:absolute;left:50%;top:61%;border:1px solid #e3e3df;border-radius:50%;transform:translate(-50%,-50%);opacity:.9}
.orbit-one{width:360px;height:48px}.orbit-two{width:290px;height:38px}.orbit-three{width:220px;height:29px}.orbit-four{width:150px;height:20px}
.orbit-visual::before{content:"";position:absolute;inset:22px 2% 0;background:radial-gradient(ellipse at center,rgba(0,0,0,.04),transparent 62%);filter:blur(16px)}
.orbit-visual img{position:absolute;left:50%;top:47%;width:70px;height:70px;border-radius:18px;box-shadow:0 15px 45px rgba(0,0,0,.18);transform:translate(-50%,-50%);animation:float-mark 5.2s ease-in-out infinite}
@keyframes float-mark{0%,100%{transform:translate(-50%,-50%)}50%{transform:translate(-50%,calc(-50% - 6px))}}

/* Shared panels */
.panel,.metric-card{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow)}
.panel{border-radius:var(--radius);overflow:hidden}
.panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 19px 13px}
.panel-header h2{margin:2px 0 0;font-size:14px;font-weight:670;letter-spacing:-.02em}
.panel-kicker{display:block;color:var(--faint);font:600 8.5px/1 var(--mono);letter-spacing:.105em;text-transform:uppercase}
.text-button{align-self:center;color:#656562;font-size:10.5px;font-weight:580;transition:color .16s ease}
.text-button:hover{color:#000}
.icon-button{display:grid;place-items:center;width:29px;height:29px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#777}
.icon-button:hover{background:var(--hover);color:#111}
.icon-button svg{width:14px;height:14px}
.select-button{align-self:center;display:flex;align-items:center;gap:6px;height:29px;padding:0 9px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:9px;font-weight:590}
.select-button svg{width:11px;height:11px;transform:rotate(90deg)}

/* Metrics */
.metric-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:18px}
.metric-card{min-width:0;padding:15px 15px 13px;border-radius:16px;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.metric-card:hover{border-color:#d2d2ce;box-shadow:0 14px 34px rgba(0,0,0,.055);transform:translateY(-2px)}
.metric-heading{display:flex;align-items:center;gap:8px;margin-bottom:13px;color:#202020}
.metric-heading svg{width:15px;height:15px}
.metric-heading span{font:650 9px/1 var(--mono);letter-spacing:.055em;text-transform:uppercase}
.metric-body{display:flex;align-items:flex-end;justify-content:space-between;gap:8px}
.metric-body>div{display:flex;min-width:0;flex-direction:column}
.metric-body strong{white-space:nowrap;font-size:clamp(21px,1.7vw,29px);font-weight:560;letter-spacing:-.04em;line-height:1}
.metric-body small{margin-top:9px;color:#5f5f5c;font-size:10.5px}
.spark{width:42%;min-width:54px;height:38px;overflow:visible}
.spark polyline,.row-spark polyline{fill:none;stroke:#181818;stroke-width:1.4;vector-effect:non-scaling-stroke}

/* Primary content grid */
.primary-grid{display:grid;grid-template-columns:minmax(460px,1.65fr) minmax(270px,.86fr) minmax(250px,.76fr);gap:14px;align-items:start;margin-bottom:14px;transition:grid-template-columns var(--panel-ease)}
@media (min-width:1321px){
  body.right-panel-hidden .primary-grid{grid-template-columns:minmax(460px,1.65fr) minmax(270px,.86fr) minmax(0px,0fr)}
  body.right-panel-hidden .right-stack{visibility:hidden;overflow:hidden;margin-left:-14px;opacity:0;transform:translateX(18px);transition:opacity var(--panel-fade),transform var(--panel-ease),margin-left var(--panel-ease),visibility 0s linear .2s}
}
.workspaces-panel{min-width:0}
.workspace-list{padding:0 10px 11px}
.workspace-row{display:grid;grid-template-columns:38px minmax(150px,1fr) 56px 118px 62px 18px;align-items:center;gap:10px;width:100%;min-height:58px;padding:7px 8px;border-top:1px solid #f0f0ee;text-align:left;transition:background .16s ease,border-radius .16s ease,transform .16s ease}
.workspace-row:first-child{border-top:0}
.workspace-row:hover,.workspace-row.is-selected{border-radius:12px;background:var(--hover)}
.workspace-row:active{transform:scale(.995)}
.workspace-icon{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:11px;background:#fff}
.workspace-icon svg{width:17px;height:17px}
.workspace-name{display:flex;min-width:0;flex-direction:column;gap:4px}
.workspace-name strong{overflow:hidden;font-size:12px;font-weight:660;letter-spacing:-.014em;text-overflow:ellipsis;white-space:nowrap}
.workspace-name small{overflow:hidden;color:var(--muted);font-size:9.5px;text-overflow:ellipsis;white-space:nowrap}
.workspace-agents{color:#4f4f4d;font-size:9.5px;text-align:right;white-space:nowrap}
.avatar-stack{display:flex;align-items:center;justify-content:flex-end}
.avatar-stack i,.avatar-stack b{display:grid;place-items:center;width:20px;height:20px;margin-left:-4px;border:2px solid #fff;border-radius:50%;background:#111;color:#fff;font:600 7.5px/1 var(--sans);font-style:normal}
.avatar-stack b{background:#f0f0ee;color:#5d5d5a;font-size:7px}
.row-spark{width:60px;height:25px}
.row-arrow{width:13px;height:13px;color:#777}

.overview-panel{min-width:0;padding-bottom:12px}
.system-orbit{position:relative;height:186px;margin:0 15px}
.system-orbit .ring{position:absolute;left:50%;top:49%;border:1px solid #e6e6e2;border-radius:50%;transform:translate(-50%,-50%)}
.system-orbit .r1{width:170px;height:170px}.system-orbit .r2{width:126px;height:126px}.system-orbit .r3{width:84px;height:84px}.system-orbit .r4{width:42px;height:42px}
.system-orbit img{position:absolute;left:50%;top:49%;width:37px;height:37px;border-radius:10px;transform:translate(-50%,-50%);box-shadow:0 5px 16px rgba(0,0,0,.11)}
.system-orbit .node{position:absolute;width:7px;height:7px;border:2px solid #fff;border-radius:50%;background:#0a0a0a;box-shadow:0 0 0 1px #d5d5d0}
.system-orbit .n1{left:48%;top:4%}.system-orbit .n2{right:17%;top:25%}.system-orbit .n3{right:11%;top:55%}.system-orbit .n4{right:28%;bottom:4%}.system-orbit .n5{left:44%;bottom:1%}.system-orbit .n6{left:14%;bottom:26%}.system-orbit .n7{left:11%;top:31%;background:#aaa}.system-orbit .n8{left:32%;top:16%;background:#aaa}
.overview-list{display:flex;flex-direction:column;padding:0 15px}
.overview-list button{display:flex;align-items:center;justify-content:space-between;min-height:27px;padding:0 4px;border-radius:8px;text-align:left}
.overview-list button:hover{background:var(--hover)}
.overview-list button span{display:grid;grid-template-columns:50px 1fr;align-items:center;color:#363634;font-size:10px}
.overview-list button b{color:#111;font-size:10.5px}
.overview-list svg{width:12px;height:12px;color:#888}

.right-stack{display:grid;gap:14px;transition:opacity var(--panel-fade),transform var(--panel-ease),margin-left var(--panel-ease),visibility 0s linear}
.status-panel,.activity-panel{min-width:0}
.live-chip{display:flex;align-items:center;gap:5px;height:25px;padding:0 8px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:8.5px;font-weight:650}
.live-chip span{width:5px;height:5px;border-radius:50%;background:#111}
.status-list{padding:0 15px 10px}
.status-list>div{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;min-height:35px;padding:0 2px;border-top:1px solid #f1f1ef}
.status-list>div:first-child{border-top:0}
.status-list svg{width:14px;height:14px}
.status-list span{font-size:10.5px}
.status-list strong{font-size:9.5px;font-weight:620}
.panel-action{display:flex;align-items:center;justify-content:space-between;width:calc(100% - 30px);height:38px;margin:0 15px 14px;padding:0 12px;border-radius:10px;background:#f3f3f1;font-size:10px;font-weight:620;transition:background .16s ease,transform .16s ease}
.panel-action:hover{background:#e9e9e6}
.panel-action:active{transform:scale(.985)}
.panel-action svg{width:12px;height:12px}
.activity-list{padding:0 14px 12px}
.activity-list button{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;width:100%;min-height:34px;padding:0 3px;border-top:1px solid #f1f1ef;border-radius:8px;text-align:left}
.activity-list button:first-child{border-top:0}
.activity-list button:hover{background:var(--hover)}
.activity-list svg{width:13px;height:13px}
.activity-list span{overflow:hidden;font-size:9.8px;text-overflow:ellipsis;white-space:nowrap}
.activity-list time{color:#747471;font-size:8.8px;white-space:nowrap}

/* Analytics */
.analytics-grid{display:grid;grid-template-columns:1.45fr .85fr 1fr;gap:14px}
.chart-panel{min-width:0;height:188px}
.line-chart{position:relative;height:128px;padding:4px 12px 24px 43px}
.line-chart>svg{width:100%;height:100%;overflow:visible}
.grid-lines path{fill:none;stroke:#eeeeeb;stroke-width:1}
.chart-line{fill:none;stroke:#111;stroke-width:1.6;vector-effect:non-scaling-stroke}
.chart-y{position:absolute;left:14px;top:10px;bottom:29px;display:flex;flex-direction:column;justify-content:space-between;color:#8b8b87;font-size:8px}
.chart-x{position:absolute;right:12px;bottom:5px;left:43px;display:flex;justify-content:space-between;color:#858581;font-size:7.5px}
.resource-total{display:flex;align-items:baseline;gap:8px;padding:0 18px}
.resource-total strong{font-size:22px;font-weight:590;letter-spacing:-.035em}
.resource-total span{font-size:9px;font-weight:650}
.bar-chart{display:flex;align-items:flex-end;gap:3px;height:74px;margin:9px 18px 0;border-bottom:1px solid #ddd}
.bar-chart i{flex:1;height:var(--h);min-width:2px;background:#111;border-radius:2px 2px 0 0;opacity:.9;transition:height .4s ease}
.bar-chart i:hover{opacity:.45}
.bar-labels{display:flex;justify-content:space-between;margin:5px 18px 0;color:#878783;font-size:7.5px}
.network-graph{width:100%;height:116px;padding:0 15px 8px}
.graph-edges path{fill:none;stroke:#d2d2cf;stroke-width:1.2}
.graph-nodes circle{fill:#111;stroke:#fff;stroke-width:1.5}
.graph-nodes circle:nth-child(even){fill:#8a8a87}

/* Dock */
.dock{position:fixed;z-index:25;left:50%;bottom:14px;display:flex;align-items:center;gap:8px;height:66px;padding:8px 13px;border:1px solid rgba(215,215,211,.92);border-radius:20px;background:rgba(255,255,255,.86);box-shadow:0 18px 50px rgba(0,0,0,.11),0 2px 6px rgba(0,0,0,.04);backdrop-filter:blur(28px) saturate(150%);transform:translateX(-50%)}
.dock-item{position:relative;display:grid;place-items:center;width:48px;height:48px;border:1px solid transparent;border-radius:14px;color:#111;transition:transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease}
.dock-item:hover{border-color:var(--line);background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.07);transform:translateY(-5px) scale(1.04)}
.dock-item:active{transform:translateY(-1px) scale(.96)}
.dock-item.is-active{border-color:var(--line);background:#fff;box-shadow:0 5px 16px rgba(0,0,0,.06)}
.dock-item.is-active::after{content:"";position:absolute;bottom:-6px;width:4px;height:4px;border-radius:50%;background:#111}
.dock-item svg{width:21px;height:21px}
.dock-item img{width:29px;height:29px;border-radius:8px}
.dock-divider{width:1px;height:32px;margin:0 2px;background:var(--line)}

/* Command palette */
.command-overlay{position:fixed;z-index:100;inset:0;display:grid;place-items:start center;padding-top:12vh}
.command-overlay[hidden]{display:none}
.command-backdrop{position:absolute;inset:0;width:100%;height:100%;background:rgba(255,255,255,.48);backdrop-filter:blur(10px)}
.command-palette{position:relative;width:min(620px,calc(100vw - 36px));overflow:hidden;border:1px solid #d5d5d1;border-radius:20px;background:#fff;box-shadow:var(--shadow-float);animation:palette-in .18s ease-out}
@keyframes palette-in{from{opacity:0;transform:translateY(-10px) scale(.98)}to{opacity:1;transform:none}}
.command-palette>header{display:flex;align-items:center;height:58px;padding:0 15px;border-bottom:1px solid var(--line)}
.command-palette>header svg{width:20px;height:20px;margin-right:11px}
.command-palette>header input{min-width:0;flex:1;border:0;outline:0;background:transparent;font-size:15px;letter-spacing:-.018em}
.command-results{max-height:410px;overflow-y:auto;padding:8px}
.command-result{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:11px;width:100%;min-height:52px;padding:6px 9px;border-radius:13px;text-align:left}
.command-result:hover,.command-result.is-active{background:#f1f1ef}
.command-result-icon{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:10px;background:#fff}
.command-result-icon svg{width:16px;height:16px}
.command-result-copy{display:flex;min-width:0;flex-direction:column;gap:3px}
.command-result-copy strong{font-size:12.5px;font-weight:640}
.command-result-copy small{overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.command-result>kbd{font-size:8px}
.command-empty{padding:34px;color:var(--muted);font-size:12px;text-align:center}
.command-palette>footer{display:flex;align-items:center;gap:18px;height:40px;padding:0 14px;border-top:1px solid var(--line);background:#fafafa;color:#777;font-size:9px}
.command-palette>footer span{display:flex;align-items:center;gap:4px}
.command-palette>footer kbd{min-width:18px;height:18px;padding:0 4px;border-radius:5px;font-size:8px}

.toast{position:fixed;z-index:120;right:22px;bottom:22px;max-width:min(380px,calc(100vw - 44px));padding:11px 14px;border:1px solid #2b2b2b;border-radius:12px;background:#090909;color:#fff;box-shadow:0 20px 50px rgba(0,0,0,.2);font-size:11.5px;font-weight:570;opacity:0;pointer-events:none;transform:translateY(10px);transition:opacity .2s ease,transform .2s ease}
.toast.is-visible{opacity:1;transform:none}

/* Responsive */
@media (max-width:1320px){
  :root{--sidebar:205px}
  .primary-grid{grid-template-columns:minmax(430px,1.55fr) minmax(250px,.82fr)}
  .right-stack{grid-column:1/-1;grid-template-columns:1fr 1fr}
  .analytics-grid{grid-template-columns:1.35fr .9fr}
  .graph-panel{grid-column:1/-1}
  .workspace-row{grid-template-columns:38px minmax(140px,1fr) 54px 100px 56px 16px}
  body.right-panel-hidden .right-stack{display:none}
}

@media (max-width:1050px){
  :root{--sidebar:78px}
  .sidebar{padding:18px 11px 15px}
  .brand{justify-content:center;margin:0 0 26px}
  .brand-name,.nav-item>span,.nav-label,.profile-copy,.profile-chevron{display:none}
  .nav-item{grid-template-columns:1fr;place-items:center;padding:7px}
  .nav-count{position:absolute;right:2px;top:0;display:grid!important;min-width:16px;height:16px;padding:0 4px;font-size:7px}
  .profile-card{grid-template-columns:1fr;padding:8px}
  .profile-card img{justify-self:center}
  :root{--search-clear:680px}
  .topbar{padding-left:14px}
  .system-state{display:none}
  .hero{grid-template-columns:1fr 360px}
  .metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .primary-grid{grid-template-columns:1fr}
  .overview-panel{min-height:345px}
  .right-stack{grid-column:auto;grid-template-columns:1fr 1fr}
  .analytics-grid{grid-template-columns:1fr 1fr}
  .activity-chart-panel{grid-column:1/-1}
  .graph-panel{grid-column:auto}
}

@media (max-width:760px){
  :root{--sidebar:230px;--topbar:62px}
  body{overflow:hidden}
  .app-shell{grid-template-columns:1fr}
  .sidebar{position:fixed;inset:0 auto 0 0;width:230px;box-shadow:30px 0 60px rgba(0,0,0,.16);transform:translateX(-105%);transition:transform .22s ease}
  body.sidebar-open .sidebar{transform:none}
  .brand{justify-content:flex-start;margin:0 4px 28px}
  .brand-name,.nav-item>span,.nav-label,.profile-copy,.profile-chevron{display:initial}
  .nav-item{grid-template-columns:24px minmax(0,1fr) auto;place-items:initial;padding:7px 11px}
  .nav-count{position:static;display:grid!important;min-width:23px;height:20px;padding:0 6px;font-size:10px}
  .profile-card{grid-template-columns:38px minmax(0,1fr) 18px;padding:10px}
  :root{--search-clear:180px}
  .topbar{gap:8px;padding:0 12px}
  .mobile-menu{display:block}
  #toggle-left{display:none}
  .global-search{top:11px;height:40px;padding-left:11px}
  .global-search kbd{display:none}
  .topbar-status{gap:0}
  .top-icon,.top-clock{display:none}
  .mini-avatar{margin-left:0}
  .home-content{padding:22px 14px calc(var(--dock-h) + 30px)}
  .hero{grid-template-columns:1fr;min-height:210px;padding:4px 4px 0}
  .hero h1{font-size:35px}
  .orbit-visual{height:108px;margin-top:8px}
  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .metric-card:last-child{grid-column:1/-1}
  .right-stack{grid-template-columns:1fr}
  .analytics-grid{grid-template-columns:1fr}
  .activity-chart-panel,.graph-panel{grid-column:auto}
  .workspace-row{grid-template-columns:36px minmax(0,1fr) 48px 16px}
  .workspace-agents,.avatar-stack,.row-spark{display:none}
  .dock{right:12px;left:12px;justify-content:flex-start;overflow-x:auto;transform:none;scrollbar-width:none}
  .dock::-webkit-scrollbar{display:none}
  .dock-item{flex:0 0 45px;width:45px;height:45px}
}

@media (max-width:470px){
  .metric-grid{grid-template-columns:1fr}
  .metric-card:last-child{grid-column:auto}
  .hero h1{font-size:31px}
  :root{--search-clear:150px}
  .global-search input{font-size:12px}
  .global-search>svg{width:16px;height:16px;margin-right:7px}
  .workspace-name small{max-width:180px}
  .panel-header{padding:16px 15px 12px}
  .workspaces-panel .panel-header .text-button{display:none}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
