:root,:root[data-theme=dark]{--bg:#070a11;--board:#0c111c;--board-glow:#142039;--surface:#121a2a;--surface-2:#0e1524;--surface-3:#1c2536;--raised:#141d30;--border:#1f2940;--border-strong:#2a3756;--line:#3a4e7a;--ink:#8fb0ff;--accent:#5b8cff;--accent-ink:#06101f;--accent-soft:#1b2846;--accent-sel:#1a2540;--text:#e7ecf5;--soft:#9aa6bd;--soft-2:#c6d0e2;--ok:#3dd68c;--ok-bg:#10291f;--ok-text:#7be8b0;--warn:#f5b544;--warn-bg:#2a1c10;--warn-line:#5a3a14;--warn-text:#fcd9a0;--err:#ff6b6b;--idle:#4a5672;--shadow-win:0 30px 80px #0000008c;--shadow-pop:0 16px 48px #00000080;--radius:14px;--font-display:"Space Grotesk", system-ui, sans-serif;--font-body:Inter, system-ui, sans-serif;--font-mono:"JetBrains Mono", ui-monospace, monospace;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:root[data-theme=light]{--bg:#e9edf5;--board:#f7f9fc;--board-glow:#dfe8ff;--surface:#fff;--surface-2:#f3f5fa;--surface-3:#e9edf5;--raised:#f7f9fc;--border:#e0e5ef;--border-strong:#cbd3e3;--line:#9fb2d9;--ink:#2e54b8;--accent:#2f5fe0;--accent-ink:#fff;--accent-soft:#e3ebff;--accent-sel:#edf2ff;--text:#131a2a;--soft:#5a6478;--soft-2:#3b4459;--ok:#138a55;--ok-bg:#e2f5ec;--ok-text:#0e6b42;--warn:#b26a00;--warn-bg:#fff4e0;--warn-line:#f1ce8e;--warn-text:#7a4a00;--err:#c93a3a;--idle:#9aa3b5;--shadow-win:0 24px 60px #141e3c2e;--shadow-pop:0 16px 40px #141e3c29;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}html,body,#root{height:100%}body{background:var(--bg);color:var(--text);font:400 14px/1.5 var(--font-body);-webkit-font-smoothing:antialiased;margin:0}h1,h2,h3,h4{margin:0;font-weight:600}h2{font-size:18px}h3{font-size:15px}h4{align-items:center;gap:6px;margin-bottom:6px;font-size:13px;display:flex}p{margin:4px 0}a{color:var(--ink)}code,pre,kbd,.mono{font-family:var(--font-mono)}code,pre{font-size:12px}button,input,select{font:inherit;color:inherit}input,select{background:var(--surface-2);border:1px solid var(--border-strong);border-radius:9px;outline:none;min-height:36px;padding:8px 10px}input:focus-visible,select:focus-visible{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}input[type=range]{width:100%;accent-color:var(--accent);background:0 0;border:0;min-height:0;padding:0}kbd{color:var(--soft-2);border:1px solid var(--border-strong);border-radius:6px;padding:2px 6px;font-size:11px}.display{font-family:var(--font-display);letter-spacing:-.01em}.soft,.muted{color:var(--soft)}.small{font-size:12px}.strong{color:var(--text);font-weight:600}.ok-text{color:var(--ok-text)}.grow{flex:1;min-width:0}.grow-text{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.grow-text.two{white-space:normal;flex-direction:column;display:flex}.grow-text.two>*{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.grow-text.two small{color:var(--soft);font-size:12px}.row{align-items:center;gap:10px;display:flex}.row.between{justify-content:space-between}.row.wrap{flex-wrap:wrap}.mt-auto{margin-top:auto}.mt{margin-top:18px}.big{font:600 24px/1.2 var(--font-display)}.price{font-weight:600}.icon-tile{background:var(--accent-soft);width:30px;height:30px;color:var(--ink);border-radius:9px;flex-shrink:0;place-items:center;display:inline-grid}.icon-tile.sm{border-radius:7px;width:26px;height:26px}.agent-avatar{background:var(--surface-3);width:32px;height:32px;color:var(--ink);font:600 13px var(--font-display);border-radius:9px;flex-shrink:0;place-items:center;display:grid}.agent-avatar.sm{width:30px;height:30px}.avatar{background:var(--accent);width:32px;height:32px;color:var(--accent-ink);border-radius:50%;flex-shrink:0;place-items:center;font-size:13px;font-weight:700;display:grid}.dot{background:var(--idle);border-radius:50%;flex-shrink:0;width:8px;height:8px;display:inline-block}.dot.running,.dot.ok{background:var(--ok);box-shadow:0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent)}.dot.idle,.dot.warn{background:var(--warn)}.dot.info{background:var(--accent)}.dot.stopped{background:var(--idle)}.meter{background:var(--surface-3);border-radius:4px;flex-shrink:0;width:64px;height:4px;display:inline-block;overflow:hidden}.meter>span{background:var(--accent);border-radius:inherit;height:100%;display:block}.bar{background:var(--surface-3);border-radius:99px;height:6px;overflow:hidden}.bar span{background:var(--accent);border-radius:inherit;height:100%;transition:width .3s;display:block}.btn{cursor:pointer;white-space:nowrap;border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;gap:6px;height:36px;padding:0 14px;font-weight:500;display:inline-flex}.btn.primary{background:var(--accent);color:var(--accent-ink);font-weight:600}.btn.primary:hover{filter:brightness(1.08)}.btn.ghost{background:var(--surface);border-color:var(--border-strong)}.btn.ghost:hover{background:var(--surface-3)}.btn.danger{color:var(--err)}.btn.icon-only{width:36px;padding:0}.btn:disabled{opacity:.45;cursor:not-allowed}.icon-btn{cursor:pointer;width:34px;height:34px;color:var(--soft);background:0 0;border:0;border-radius:10px;flex-shrink:0;place-items:center;display:inline-grid;position:relative}.icon-btn:hover{background:var(--surface-3);color:var(--text)}.icon-btn.lg{width:44px;height:44px}.icon-btn.boxed{border:1px solid var(--border-strong);background:var(--surface)}.link-btn{color:var(--ink);cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;padding:0;font-size:13px;font-weight:500;display:inline-flex}.link-btn:hover{text-decoration:underline}.page{flex-direction:column;gap:16px;display:flex}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;gap:8px;padding:16px;display:flex}.card.inset{background:var(--surface-2)}.card.dashed{background:0 0;border-style:dashed}.card-label,.section-label{color:var(--soft);font-size:12px;font-weight:500}.section-label{text-transform:uppercase;letter-spacing:.08em;font-size:11px;font-weight:600}.grid{gap:12px;display:grid}.grid.cards{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}.grid.three{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.grid.two{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}.stack{flex-direction:column;gap:10px;display:flex}.badge,.pill{background:var(--surface-3);color:var(--soft-2);border-radius:99px;align-items:center;gap:6px;padding:3px 10px;font-size:12px;font-weight:600;display:inline-flex}.kind-tag,.badge[class*=kind-]{font:600 10px var(--font-mono);letter-spacing:.04em;text-transform:uppercase;text-align:center;border-radius:6px;min-width:44px;padding:3px 7px}.kind-agent{background:var(--accent-soft);color:var(--ink)}.kind-mcp{background:color-mix(in srgb, var(--ok) 16%, transparent);color:var(--ok-text)}.kind-skill{background:var(--warn-bg);color:var(--warn-text)}.kind-template{color:#c9a8ff;background:#b98cff2e}:root[data-theme=light] .kind-template{color:#6b3fb0}.st-running,.sync-synced{background:var(--ok-bg);color:var(--ok-text)}.st-idle,.sync-syncing{background:var(--warn-bg);color:var(--warn-text)}.st-stopped,.sync-error{background:color-mix(in srgb, var(--err) 14%, transparent);color:var(--err)}.tags{flex-wrap:wrap;gap:6px;display:flex}.tags span{background:var(--surface-3);color:var(--soft-2);border-radius:6px;padding:3px 8px;font-size:12px}.tags .tag-add{border:1px dashed var(--line);color:var(--ink);background:0 0}.toolbar{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.search{background:var(--surface-2);border:1px solid var(--border-strong);min-width:200px;color:var(--soft);border-radius:10px;flex:1;align-items:center;gap:8px;padding:0 10px;display:flex}.search input{box-shadow:none;background:0 0;border:0;flex:1;padding:8px 0}.segmented{background:var(--surface-2);border:1px solid var(--border);border-radius:10px;flex-wrap:wrap;gap:2px;padding:3px;display:inline-flex}.segmented button{cursor:pointer;color:var(--soft);text-transform:capitalize;background:0 0;border:0;border-radius:7px;padding:5px 12px}.segmented button.on{background:var(--surface-3);color:var(--text);box-shadow:inset 0 0 0 1px var(--border-strong);font-weight:600}.segmented.full{display:flex}.segmented.full button{flex:1}.segmented.tabs{align-self:flex-start}.tabs-line{border-bottom:1px solid var(--border);gap:2px;display:flex}.tabs-line button{height:36px;color:var(--soft);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;margin-bottom:-1px;padding:0 12px;font-weight:500}.tabs-line button.on{color:var(--text);border-bottom-color:var(--accent)}.table-wrap{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius);overflow-x:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;border-bottom:1px solid var(--border);white-space:nowrap;padding:10px 14px}th{color:var(--soft);font-size:12px;font-weight:500}tr:last-child td{border-bottom:0}pre.code{background:var(--surface-2);border:1px solid var(--border);border-radius:10px;margin:0;padding:12px;overflow-x:auto}code.block{background:var(--surface-2);word-break:break-all;border-radius:8px;margin:8px 0;padding:8px;display:block}.notice{background:var(--accent-soft);border-radius:var(--radius);padding:14px}.toggle{background:var(--border-strong);cursor:pointer;border:0;border-radius:99px;flex-shrink:0;width:38px;height:22px;transition:background .2s;position:relative}.toggle span{background:#fff;border-radius:50%;width:16px;height:16px;transition:transform .2s;position:absolute;top:3px;left:3px}.toggle.on{background:var(--accent)}.toggle.on span{transform:translate(16px)}.act-row{align-items:flex-start;gap:10px;padding:6px 0;font-size:13px;display:flex}.act-row .dot{margin-top:6px}.alert{border-radius:10px;align-items:center;gap:10px;padding:8px 10px;font-size:12px;font-weight:500;display:flex}.alert.warn{background:var(--warn-bg);border:1px solid var(--warn-line);color:var(--warn-text)}.alert.ok{background:var(--ok-bg);color:var(--ok-text)}.alert button{cursor:pointer;background:0 0;border:1px solid;border-radius:8px;flex-shrink:0;height:28px;padding:0 10px;font-size:12px;font-weight:600}.os{background:var(--bg);position:fixed;inset:0;overflow:hidden}.desktop{border:1.5px solid var(--line);background:radial-gradient(ellipse at 50% 50%, var(--board-glow) 0%, var(--board) 60%);border-radius:32px;position:absolute;inset:12px 12px 70px;overflow:hidden}.desktop.dragging,.desktop.dragging *{-webkit-user-select:none;user-select:none}.desktop.dragging .win-body{pointer-events:none}.board-lines{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.board-lines line{stroke:var(--line);stroke-width:1px;stroke-dasharray:4 6}.cmd-pill{background:var(--surface);border:1px solid var(--border);width:340px;min-width:220px;max-width:calc(100% - 960px);height:40px;color:var(--soft);cursor:pointer;border-radius:12px;align-items:center;gap:10px;padding:0 10px 0 14px;font-size:13px;display:flex;position:absolute;top:20px;left:50%;transform:translate(-50%)}.cmd-pill span{text-align:left;white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.cmd-pill:hover{border-color:var(--line);color:var(--text)}.core-wrap{flex-direction:column;align-items:center;gap:18px;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.core{aspect-ratio:1.73;border:1.5px solid var(--ink);background:var(--board);cursor:pointer;width:clamp(280px,27vw,400px);color:var(--text);box-shadow:0 0 0 10px color-mix(in srgb, var(--accent) 7%, transparent), 0 0 80px color-mix(in srgb, var(--accent) 18%, transparent);border-radius:50%;flex-direction:column;justify-content:center;align-items:center;gap:6px;transition:box-shadow .2s;display:flex}.core:hover{box-shadow:0 0 0 14px color-mix(in srgb, var(--accent) 10%, transparent), 0 0 90px color-mix(in srgb, var(--accent) 26%, transparent)}.core-label{font:600 clamp(44px, 4.4vw, 64px)/1 var(--font-display);letter-spacing:-.03em}.core-label b,.core-label sup{color:var(--ink);font-weight:600}.core-label sup{font-size:.47em}.core-sub{letter-spacing:.2em;text-transform:uppercase;color:var(--soft);font-size:12px;font-weight:500}.quick{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.win{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-win);border-radius:16px;flex-direction:column;display:flex;position:absolute}.win.focused:not(.docked){box-shadow:var(--shadow-win), 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent)}.win.docked{border-color:var(--border-strong);box-shadow:none}.win.max{box-shadow:none;border:0;border-radius:30px}.win.corner-tl,.win.corner-br{border-radius:22px 10px}.win.corner-tr,.win.corner-bl{border-radius:10px 22px}.win-head{cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none;border-bottom:1px solid var(--border);background:var(--raised);border-radius:16px 16px 0 0;flex-shrink:0;align-items:center;gap:10px;height:46px;padding:0 8px 0 14px;display:flex}.win-head:active{cursor:grabbing}.win-head .icon-tile{background:0 0;border-radius:7px;width:26px;height:26px}.win-title{min-width:0;font:600 14px var(--font-display);white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.win-meta{color:var(--soft);white-space:nowrap;align-items:center;gap:6px;font-size:12px;font-weight:500;display:inline-flex}.win-ctrl{gap:2px;display:flex}.win-ctrl button{cursor:pointer;width:30px;height:28px;color:var(--soft);background:0 0;border:0;border-radius:8px;place-items:center;display:grid}.win-ctrl button:hover{background:var(--surface-3);color:var(--text)}.win-ctrl button.close:hover{background:var(--err);color:#fff}.win.docked .win-head{background:0 0;border-radius:0;height:auto;padding:14px 12px 12px 16px}.win.docked .win-head .icon-tile{background:var(--accent-soft);border-radius:9px;width:30px;height:30px}.win.docked .win-title{font-size:17px}.win.docked .win-ctrl button:not(:last-child){display:none}.win.docked:hover .win-ctrl button,.win.docked:focus-within .win-ctrl button{display:grid}.win.max .win-head{border-radius:30px 30px 0 0;height:52px;padding:0 16px 0 22px}.win-body{flex:1;min-height:0;padding:16px 18px;overflow:auto;container-type:inline-size}.win.max .win-body{padding:20px 26px 26px}.win.docked .win-body{padding:6px 10px 12px}.rz{z-index:2;touch-action:none;position:absolute}.rz-n,.rz-s{cursor:ns-resize;height:8px;left:12px;right:12px}.rz-n{top:-4px}.rz-s{bottom:-4px}.rz-e,.rz-w{cursor:ew-resize;width:8px;top:12px;bottom:12px}.rz-e{right:-4px}.rz-w{left:-4px}.rz-ne,.rz-nw,.rz-se,.rz-sw{width:16px;height:16px}.rz-ne{cursor:nesw-resize;top:-4px;right:-4px}.rz-sw{cursor:nesw-resize;bottom:-4px;left:-4px}.rz-nw{cursor:nwse-resize;top:-4px;left:-4px}.rz-se{cursor:nwse-resize;bottom:-4px;right:-4px}.snap-preview{z-index:100000;pointer-events:none;border:1.5px dashed var(--accent);background:color-mix(in srgb, var(--accent) 9%, transparent);color:var(--ink);border-radius:22px;place-items:center;font-size:13px;font-weight:500;transition:all .12s;display:grid;position:absolute}.sum{flex-direction:column;gap:10px;height:100%;display:flex}.sum>.link-btn{align-self:flex-start;margin:auto 8px 2px}.sum-list{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.sum-list li{border-radius:10px;align-items:center;gap:10px;padding:8px;font-weight:500;display:flex}.sum-list li:hover{background:var(--surface-3)}.sum-list.agents li{padding:6px 8px}.sum-list .mono{font-size:12px}.stat-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:4px 6px 0;display:grid}.stat-tiles>div{background:var(--surface-2);border:1px solid var(--border);border-radius:12px;flex-direction:column;padding:10px 12px;display:flex}.stat-tiles b{font:600 22px/1.2 var(--font-display)}.stat-tiles i{color:var(--soft);font-size:14px;font-style:normal}.stat-tiles small{color:var(--soft);font-size:11px}.mono-label{font:500 11px var(--font-mono);color:var(--soft)}.log-line{background:var(--surface-2);color:var(--soft);white-space:nowrap;text-overflow:ellipsis;border-radius:10px;margin:0 6px;padding:8px 10px;font-size:11px;overflow:hidden}.seg-bar{border-radius:6px;gap:2px;height:10px;margin:8px 8px 0;display:flex;overflow:hidden}.legend{color:var(--soft-2);flex-wrap:wrap;gap:6px 16px;padding:0 8px;font-size:12px;display:flex}.legend span{align-items:center;gap:6px;display:inline-flex}.legend i{border-radius:2px;width:8px;height:8px}.sum .alert{margin:auto 8px 2px}.taskbar{align-items:center;gap:10px;height:50px;display:flex;position:absolute;bottom:10px;left:12px;right:12px}.pop-wrap{position:relative}.start-btn{border:1.5px solid var(--ink);background:var(--board);width:44px;height:44px;color:var(--text);font:700 15px var(--font-display);cursor:pointer;border-radius:50%}.start-btn sup{color:var(--ink);font-size:9px}.start-btn.on,.start-btn:hover{background:var(--accent-soft)}.pop-scrim{z-index:100001;position:fixed;inset:0}.popover{z-index:100002;background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius);box-shadow:var(--shadow-pop);flex-direction:column;gap:2px;padding:8px;display:flex;position:absolute;bottom:calc(100% + 10px)}.start-menu{width:260px;left:0}.bell-menu{width:320px;padding:10px 14px;right:0}.start-title{font:600 20px var(--font-display);padding:6px 10px 10px}.start-title b,.start-title sup{color:var(--ink)}.pop-title{font:600 14px var(--font-display);padding-bottom:4px}.start-menu button{cursor:pointer;text-align:left;background:0 0;border:0;border-radius:10px;align-items:center;gap:10px;padding:9px 10px;display:flex}.start-menu button kbd{margin-left:auto}.start-menu button:hover{background:var(--surface-3)}.start-menu hr{border:0;border-top:1px solid var(--border);width:100%;margin:6px 0}.task-list{scrollbar-width:none;flex-shrink:1;gap:4px;min-width:0;display:flex;overflow-x:auto}.task{cursor:pointer;height:40px;color:var(--soft);white-space:nowrap;background:0 0;border:1px solid #0000;border-radius:10px;align-items:center;gap:8px;padding:0 12px;font-weight:500;display:flex}.task:hover{background:var(--surface);color:var(--text)}.task.active{background:var(--surface);border-color:var(--border-strong);color:var(--text);box-shadow:inset 0 -2px 0 var(--accent)}.chat-slot{flex:1;min-width:260px;max-width:620px;margin:0 auto}.tray{align-items:center;gap:6px;display:flex}.tray-chip{background:var(--surface);height:32px;font:500 12px var(--font-mono);color:var(--soft-2);white-space:nowrap;border:0;border-radius:10px;align-items:center;gap:8px;padding:0 10px;display:inline-flex}button.tray-chip{cursor:pointer}button.tray-chip:hover{background:var(--surface-3)}.tray-chip .meter{width:40px}.badge-dot{background:var(--warn);border-radius:50%;width:7px;height:7px;position:absolute;top:7px;right:8px}.chatbar{background:var(--surface);border:1.5px solid var(--line);border-radius:14px;align-items:center;gap:8px;height:46px;padding:4px;display:flex}.chatbar:focus-within{border-color:var(--ink)}.chatbar input{min-width:0;box-shadow:none;background:0 0;border:0;flex:1;min-height:0;padding:0 8px;font-size:14px}.chatbar input:focus-visible{box-shadow:none}.agent-pick{background:var(--surface-3);height:34px;color:var(--soft-2);border-radius:10px;flex-shrink:0;align-items:center;gap:6px;padding:0 8px 0 10px;display:inline-flex}.agent-pick select{appearance:none;min-height:0;color:var(--text);cursor:pointer;background:0 0;border:0;padding:0;font-size:12px;font-weight:600}.send-btn{background:var(--accent);width:36px;height:36px;color:var(--accent-ink);cursor:pointer;border:0;border-radius:10px;flex-shrink:0;place-items:center;display:grid}.send-btn:disabled{opacity:.4;cursor:default}.chat-panel{z-index:100003;background:var(--surface);border:1px solid var(--line);width:min(440px,100vw - 48px);box-shadow:var(--shadow-win);border-radius:20px;flex-direction:column;display:flex;position:fixed;top:24px;bottom:76px;right:24px;overflow:hidden}.chat-head{border-bottom:1px solid var(--border);flex-shrink:0;align-items:center;gap:10px;height:58px;padding:0 10px 0 16px;display:flex}.chat-body{flex-direction:column;flex:1;gap:12px;min-height:0;padding:16px;display:flex;overflow-y:auto}.msg{flex-direction:column;gap:6px;display:flex}.msg.user{align-items:flex-end}.msg.bot{align-items:flex-start}.bubble{white-space:pre-wrap;border-radius:16px;max-width:86%;padding:10px 14px;font-size:14px}.bubble.user{background:var(--accent);color:var(--accent-ink);border-bottom-right-radius:4px;font-weight:500}.bubble.bot{background:var(--surface-3);border-bottom-left-radius:4px;align-self:flex-start}.tool-card{border:1px solid var(--border-strong);background:var(--surface-2);border-radius:12px;flex-direction:column;gap:4px;width:86%;padding:10px 12px;display:flex}.tool-call{color:var(--ink);align-items:center;gap:8px;font-size:12px;display:flex}.chips{flex-wrap:wrap;gap:6px;display:flex}.chips button{border:1px solid var(--border-strong);height:30px;color:var(--soft-2);cursor:pointer;background:0 0;border-radius:15px;padding:0 12px;font-size:12px;font-weight:500}.chips button:hover{border-color:var(--ink);color:var(--text)}.chat-compose{flex-direction:column;gap:6px;padding:0 12px 12px;display:flex}.chat-compose small{padding:0 4px;font-size:11px}.chatbar.inner{background:var(--surface-2)}.typing{gap:4px;padding:12px 14px;display:flex}.typing span{background:var(--soft);border-radius:50%;width:6px;height:6px;animation:1s infinite blink}.typing span:nth-child(2){animation-delay:.15s}.typing span:nth-child(3){animation-delay:.3s}@keyframes blink{50%{opacity:.2}}.palette-back{z-index:100010;background:#04070d9e;justify-content:center;padding:12vh 16px 16px;display:flex;position:fixed;inset:0}:root[data-theme=light] .palette-back{background:#141e3c4d}.palette{background:var(--surface);border:1px solid var(--line);width:min(600px,100%);box-shadow:var(--shadow-win);border-radius:16px;flex-direction:column;align-self:flex-start;max-height:70vh;display:flex;overflow:hidden}.palette-input{border-bottom:1px solid var(--border);height:56px;color:var(--soft);flex-shrink:0;align-items:center;gap:10px;padding:0 16px;display:flex}.palette-input input{box-shadow:none;color:var(--text);background:0 0;border:0;flex:1;font-size:16px}.palette-list{padding:8px;overflow-y:auto}.palette-group{letter-spacing:.08em;text-transform:uppercase;color:var(--soft);padding:8px 10px 4px;font-size:11px;font-weight:600}.palette-item{cursor:pointer;text-align:left;background:0 0;border:0;border-radius:10px;align-items:center;gap:12px;width:100%;height:44px;padding:0 10px;font-weight:500;display:flex}.palette-item.on{background:var(--accent-sel)}.palette-empty{color:var(--soft);padding:16px 10px}.palette-foot{border-top:1px solid var(--border);color:var(--soft);flex-shrink:0;gap:16px;padding:10px 16px;font-size:12px;display:flex}.split{grid-template-columns:240px 1fr;align-items:start;gap:18px;display:grid}.list-pane{flex-direction:column;gap:4px;display:flex}.list-pane>.row{margin-bottom:6px}.list-item{cursor:pointer;text-align:left;background:0 0;border:1px solid #0000;border-radius:10px;align-items:center;gap:10px;padding:8px;display:flex}.list-item:hover{background:var(--surface-3)}.list-item.active{border-color:var(--line);background:var(--accent-sel)}.detail-pane{flex-direction:column;gap:14px;min-width:0;display:flex}.detail-pane h2{font-size:22px}.perm-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;display:grid}.perm{border:1px solid var(--border);cursor:pointer;height:36px;color:var(--soft);border-radius:9px;align-items:center;gap:8px;padding:0 10px;display:flex}.perm.on{border-color:var(--line);background:var(--accent-sel);color:var(--text)}.perm input{accent-color:var(--accent);min-height:0}.form-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;display:grid}.form-grid label,.modal label{color:var(--soft);flex-direction:column;gap:4px;font-size:12px;display:flex}.modal-back{z-index:100020;background:#00000080;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.modal{background:var(--surface);border:1px solid var(--line);width:min(420px,100%);box-shadow:var(--shadow-win);border-radius:16px;flex-direction:column;gap:12px;padding:20px;display:flex}.twin-icon{background:var(--accent-soft);width:42px;height:42px;color:var(--ink);border-radius:12px;place-items:center;display:grid}.twin-card .btn{align-self:flex-start}.mem-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.mem-list li{background:var(--surface-3);border-radius:10px;justify-content:space-between;align-items:center;gap:8px;padding:8px 8px 8px 12px;display:flex}.m-shell{background:var(--bg);flex-direction:column;display:flex;position:fixed;inset:0}.m-top{flex-shrink:0;align-items:center;gap:6px;padding:12px 12px 8px 16px;display:flex}.m-logo{font:600 24px var(--font-display);letter-spacing:-.02em;flex:1}.m-logo b,.m-logo sup{color:var(--ink);font-weight:600}.m-logo sup{font-size:12px}.m-title{font:600 18px var(--font-display);flex:1}.m-main{flex-direction:column;flex:1;gap:12px;min-height:0;padding:4px 14px 16px;display:flex;overflow-y:auto;container-type:inline-size}.m-stats{gap:8px;display:flex}.m-stats>*{background:var(--surface);border:1px solid var(--border);text-align:left;border-radius:12px;flex-direction:column;flex:1;gap:2px;padding:10px 12px;display:flex}.m-stats>button{cursor:pointer}.m-stats small{color:var(--soft);font-size:11px}.m-stats b{font-size:15px}.m-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.m-tile{background:var(--surface);border:1px solid var(--border-strong);text-align:left;cursor:pointer;flex-direction:column;align-items:flex-start;gap:6px;height:140px;padding:14px;display:flex}.m-tile b{font:600 16px var(--font-display);margin-top:auto}.m-tile small{color:var(--soft);align-items:center;gap:6px;font-size:12px;display:inline-flex}.m-tile.corner-tl,.m-tile.corner-br{border-radius:20px 8px}.m-tile.corner-tr,.m-tile.corner-bl{border-radius:8px 20px}.m-links{gap:8px;display:flex}.m-links .btn{flex:1;height:44px}.m-bottom{border-top:1px solid var(--border);background:var(--bg);flex-direction:column;flex-shrink:0;gap:8px;padding:8px 12px 12px;display:flex}.m-bottom .chatbar{height:52px}.m-bottom .send-btn{width:44px;height:44px}.m-nav{background:var(--surface);border:1px solid var(--border);border-radius:16px;grid-template-columns:repeat(5,minmax(0,1fr));height:56px;display:grid}.m-nav button{color:var(--soft);cursor:pointer;background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:11px;font-weight:500;display:flex}.m-nav button.on{color:var(--ink)}.m-shell .chat-panel{width:auto;inset:8px 8px 140px}@container (width<=620px){.split{grid-template-columns:1fr}}@media (width<=1360px){.tray-chip.token{display:none}}@media (width<=1180px){.task span,.cmd-pill{display:none}}
