:root,:root[data-theme=gece]{--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=gunduz]{--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}:root[data-theme=grafit]{--bg:#0a0a0b;--board:#111113;--board-glow:#2a2115;--surface:#18181b;--surface-2:#111113;--surface-3:#26262a;--raised:#1c1c1f;--border:#26262a;--border-strong:#34343a;--line:#544733;--ink:#f2c27b;--accent:#f0a93b;--accent-ink:#1a1204;--accent-soft:#2e2414;--accent-sel:#241d12;--text:#ededef;--soft:#a1a1aa;--soft-2:#d4d4d8;--ok:#4ade80;--ok-bg:#13261a;--ok-text:#86efac;--warn:#fb7185;--warn-bg:#2b1418;--warn-line:#5a2630;--warn-text:#fecdd3;--err:#ff5a5a;--idle:#52525b;--shadow-win:0 30px 80px #0009;--shadow-pop:0 16px 48px #0000008c;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:root[data-theme=orman]{--bg:#050b0a;--board:#0a1412;--board-glow:#0f302a;--surface:#0f1b19;--surface-2:#0b1513;--surface-3:#182825;--raised:#13211e;--border:#1b2e2a;--border-strong:#26403a;--line:#33574f;--ink:#7fe0c4;--accent:#2dd4a7;--accent-ink:#03201a;--accent-soft:#123129;--accent-sel:#10261f;--text:#e6f2ee;--soft:#93aba4;--soft-2:#c3d6d0;--ok:#a3e635;--ok-bg:#1c2a0e;--ok-text:#c5f07a;--warn:#fbbf24;--warn-bg:#2b2410;--warn-line:#5a4714;--warn-text:#fce3a0;--err:#ff6b6b;--idle:#45605a;--shadow-win:0 30px 80px #0000008c;--shadow-pop:0 16px 48px #00000080;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:root[data-theme=mor]{--bg:#09070f;--board:#100c1b;--board-glow:#2a1b4a;--surface:#171226;--surface-2:#110d1d;--surface-3:#231c37;--raised:#1b152c;--border:#251e3b;--border-strong:#33294f;--line:#4c3d78;--ink:#c4b5fd;--accent:#a78bfa;--accent-ink:#12081f;--accent-soft:#2a2148;--accent-sel:#211a38;--text:#eeeaf8;--soft:#a49dbb;--soft-2:#d2cce6;--ok:#34d399;--ok-bg:#0f2a22;--ok-text:#86efcf;--warn:#fbbf24;--warn-bg:#2b2112;--warn-line:#5a4214;--warn-text:#fcd9a0;--err:#ff6b81;--idle:#544c6e;--shadow-win:0 30px 80px #0000008c;--shadow-pop:0 16px 48px #00000080;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:root[data-theme=kagit]{--bg:#e9e4da;--board:#f8f5ef;--board-glow:#efe6d3;--surface:#fff;--surface-2:#f5f1e9;--surface-3:#ece6da;--raised:#fbf9f5;--border:#e3dccf;--border-strong:#d3c9b7;--line:#9db0cc;--ink:#1f4e8c;--accent:#1f5fad;--accent-ink:#fff;--accent-soft:#dde7f4;--accent-sel:#e8eff8;--text:#1c1a16;--soft:#655e52;--soft-2:#3e3a33;--ok:#1e7f4f;--ok-bg:#e1f1e7;--ok-text:#17663f;--warn:#b45309;--warn-bg:#fbebd3;--warn-line:#ebc48e;--warn-text:#7a3e05;--err:#b42318;--idle:#a39c8f;--shadow-win:0 24px 60px #3c2d1429;--shadow-pop:0 16px 40px #3c2d1424;--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-mode=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}.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)}.stars{pointer-events:none;position:absolute;inset:0}.stars i{background:var(--line);opacity:.8;border-radius:50%;width:2px;height:2px;position:absolute}.stars i:first-child{top:9%;left:8%}.stars i:nth-child(2){top:4%;left:28%}.stars i:nth-child(3){top:6%;left:57%}.stars i:nth-child(4){top:38%;left:91%}.stars i:nth-child(5){top:46%;left:6%}.stars i:nth-child(6){top:88%;left:40%}.stars i:nth-child(7){top:82%;left:63%}.stars i:nth-child(8){top:52%;left:79%}.constellation{pointer-events:none;position:absolute;inset:0}.constellation>*{pointer-events:auto}.constellation-lines{pointer-events:none;position:absolute;top:0;left:0}.constellation-lines line{stroke-width:1.4px}.constellation-lines .cl-running{stroke:var(--accent);stroke-opacity:.85}.constellation-lines .cl-idle{stroke:var(--line)}.constellation-lines .cl-stopped{stroke:var(--border-strong);stroke-dasharray:3 5}.gauge{cursor:pointer;color:var(--text);background:0 0;border:0;border-radius:50%;padding:0;position:absolute;transform:translate(-50%,-50%)}.gauge svg{position:absolute;inset:0}.gauge-track{fill:var(--board);stroke:var(--surface-3);stroke-width:10px}.gauge-fill{fill:none;stroke:var(--accent);stroke-width:10px;stroke-linecap:round;transition:stroke-dasharray .4s}.gauge-inner{fill:none;stroke:var(--line);stroke-width:1px}.gauge:hover .gauge-track{stroke:var(--accent-soft)}.gauge:focus-visible{outline:2px solid var(--accent);outline-offset:6px}.gauge-text{flex-direction:column;justify-content:center;align-items:center;gap:4px;display:flex;position:absolute;inset:0}.gauge-logo{font-family:var(--font-display);letter-spacing:-.03em;font-weight:600;line-height:1}.gauge-logo b,.gauge-logo sup{color:var(--ink);font-weight:600}.gauge-logo sup{font-size:.46em}.gauge-value{color:var(--soft-2);font-size:13px;font-weight:500}.gauge-value span{color:var(--soft)}.gauge-sub{color:var(--soft);font-size:11px}.cnode{cursor:pointer;width:150px;color:var(--text);background:0 0;border:0;border-radius:14px;flex-direction:column;align-items:center;gap:3px;padding:4px;display:flex;position:absolute;transform:translate(-50%,-50%)}.cnode:hover{background:color-mix(in srgb, var(--surface) 70%, transparent)}.cnode-avatar{background:var(--surface);border:2px solid var(--border-strong);width:46px;height:46px;font:600 19px var(--font-display);border-radius:50%;place-items:center;margin-bottom:2px;transition:box-shadow .2s;display:grid}.cnode.running .cnode-avatar{border-color:var(--accent);box-shadow:0 0 22px color-mix(in srgb, var(--accent) 45%, transparent)}.cnode.idle .cnode-avatar{border-color:var(--warn);box-shadow:0 0 18px color-mix(in srgb, var(--warn) 18%, transparent)}.cnode.stopped{color:var(--soft)}.cnode-text{flex-direction:column;align-items:center;gap:2px;display:flex}.cnode-name{font-size:13px;font-weight:600}.constellation.compact .cnode{background:color-mix(in srgb, var(--board) 80%, transparent);border-radius:26px;flex-direction:row;gap:8px;width:auto;padding:4px 10px 4px 4px}.constellation.compact .cnode-avatar{width:36px;height:36px;margin:0;font-size:15px}.constellation.compact .cnode-text{align-items:flex-start;gap:0}.cnode-meta{color:var(--soft);white-space:nowrap;font-size:11px}.constellation-stats,.constellation-actions{white-space:nowrap;gap:8px;display:flex;position:absolute;left:50%;transform:translate(-50%)}.cstat{background:var(--surface);border:1px solid var(--border-strong);height:38px;color:var(--text);cursor:pointer;border-radius:19px;align-items:center;gap:8px;padding:0 14px;font-size:13px;display:inline-flex}.cstat span{color:var(--soft)}.cstat b{font-family:var(--font-display);font-weight:600}.cstat.warn{border-color:var(--warn-line)}.cstat.warn b{color:var(--warn)}.cstat:hover{border-color:var(--line)}.btn.dashed{border:1.5px dashed var(--accent);color:var(--ink);background:0 0;font-weight:600}.btn.dashed:hover{background:var(--accent-sel)}.btn.dashed.soft-dash{border-color:var(--line);color:var(--soft-2)}.constellation-lines .cl-sat{stroke:var(--ink);stroke-opacity:.35;stroke-width:1px}.constellation-lines .cl-sat.active{stroke-opacity:.9}.sat{background:var(--ink);cursor:pointer;border:0;border-radius:50%;place-items:center;width:12px;height:12px;padding:0;transition:transform .15s,box-shadow .15s;display:grid;position:absolute;transform:translate(-50%,-50%)}.sat:hover,.sat:focus-visible{transform:translate(-50%,-50%)scale(1.35)}.sat.active{background:var(--accent);box-shadow:0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);animation:1.4s ease-in-out infinite sat-pulse}.sat.adhoc{background:var(--soft-2)}.sat.off{background:var(--border-strong)}.sat.add{background:var(--board);border:1.5px dashed var(--line);width:18px;height:18px;color:var(--soft);opacity:.7}.sat.add:hover{opacity:1;border-color:var(--accent);color:var(--ink)}@keyframes sat-pulse{50%{box-shadow:0 0 0 8px color-mix(in srgb, var(--accent) 8%, transparent)}}@media (prefers-reduced-motion:reduce){.sat.active{animation:none}}.sub-row{border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:10px 0;display:flex}.sub-row:last-of-type{border-bottom:0}.sub-row .tags{margin-top:4px}.sub-dot{background:var(--ink);width:12px;height:12px;box-shadow:0 0 0 4px var(--accent-soft);border-radius:50%;flex-shrink:0}.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-mode=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}}.kind-profile{background:var(--accent-soft);color:var(--ink)}.kind-plugin{color:#c9a8ff;background:#b98cff2e}:root[data-mode=light] .kind-plugin{color:#6b3fb0}.err-text{color:var(--err)}.warn-text{color:var(--warn-text)}.faded{opacity:.55}.path-note{margin-top:8px}.profile-pick select{min-width:160px}.file-chips{flex-wrap:wrap;gap:6px;display:flex}.file-chips span{background:var(--surface-3);color:var(--soft-2);border-radius:8px;padding:4px 8px;font-size:12px}.chip-toggles{flex-wrap:wrap;gap:6px;display:flex}.chip-toggles button{border:1px solid var(--border-strong);height:32px;color:var(--soft);font:500 12px var(--font-mono);cursor:pointer;background:0 0;border-radius:16px;padding:0 12px}.chip-toggles button.on{border-color:var(--line);background:var(--accent-sel);color:var(--text)}.perm-grid.wide{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}.perm.tall{height:auto;min-height:48px;padding:6px 10px}.job-row{border-bottom:1px solid var(--border);align-items:center;gap:10px;padding:8px 0;display:flex}.job-row:last-child{border-bottom:0}.twin-split{grid-template-columns:240px 1fr;align-items:start;gap:14px;display:grid}.file-list{flex-direction:column;gap:6px;display:flex}.file-item{border:1px solid var(--border);background:var(--surface-2);cursor:pointer;text-align:left;border-radius:12px;flex-direction:column;gap:6px;padding:10px 12px;display:flex}.file-item:hover{border-color:var(--border-strong)}.file-item.active{border-color:var(--line);background:var(--accent-sel)}.file-item code{color:var(--text);font-size:13px;font-weight:600}.file-meter{align-items:center;gap:8px;display:flex}.file-meter .bar{flex:1;height:4px}.editor-card{gap:10px;min-width:0}.editor{resize:vertical;width:100%;min-height:280px;font:13px/1.6 var(--font-mono);background:var(--surface);border:1px solid var(--border-strong);color:var(--text);border-radius:10px;outline:none;padding:12px 14px}.editor:focus-visible{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.sum-list.twin li{padding:7px 8px}.file-name{min-width:84px;font-size:12px;font-weight:600}.tool-card.sub{border-style:dashed}.tool-card.approval{border-color:var(--warn-line);background:var(--warn-bg);width:92%}.tool-card .clip{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.spinner{border:2px solid var(--border-strong);border-top-color:var(--ink);border-radius:50%;width:12px;height:12px;animation:.8s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}@container (width<=620px){.twin-split{grid-template-columns:1fr}}.chat-session{background:var(--accent-sel);border-bottom:1px solid var(--border);color:var(--soft-2);align-items:center;gap:8px;padding:8px 14px;font-size:12px;display:flex}.chat-status{background:var(--warn-bg);color:var(--warn-text);border-bottom:1px solid var(--warn-line);align-items:center;gap:8px;padding:8px 14px;font-size:12px;font-weight:500;display:flex}.interim{color:var(--soft);align-items:center;gap:6px;padding:0 4px;font-size:12px;font-style:italic;display:flex}.interim.live{color:var(--soft-2)}.tool-card.clarify{border-color:var(--line);background:var(--accent-sel);gap:8px;width:92%}.clarify-q{font-size:14px;font-weight:500}.tool-card.clarify input{min-height:34px}.sub-meta{gap:12px}.stop-btn{border:1px solid var(--err);background:color-mix(in srgb, var(--err) 14%, transparent);width:36px;height:36px;color:var(--err);cursor:pointer;border-radius:10px;flex-shrink:0;place-items:center;display:grid}.stop-btn:hover{background:var(--err);color:#fff}.msg.history{opacity:.8}.grid.stat-row{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.grid.stat-row .card{gap:2px}.chart{height:240px;margin-top:6px;position:relative}.chart-grid{pointer-events:none;flex-direction:column;justify-content:space-between;display:flex;position:absolute;inset:0 0 24px}.chart-tick{border-top:1px dashed var(--border);height:0;position:relative}.chart-tick span{font:500 11px var(--font-mono);color:var(--soft);background:var(--surface-2);padding-right:6px;position:absolute;top:0;left:0;transform:translateY(-50%)}.chart-bars{align-items:stretch;gap:2px;display:flex;position:absolute;inset:0 0 24px 46px}.chart-col{cursor:default;border-radius:6px;outline:none;flex:1;justify-content:center;align-items:flex-end;display:flex;position:relative}.chart-col.hover,.chart-col:focus-visible{background:color-mix(in srgb, var(--accent) 7%, transparent)}.chart-bar{background:var(--accent);border-radius:4px 4px 0 0;width:62%;max-width:40px;min-height:2px;transition:height .25s}.chart-col.hover .chart-bar{filter:brightness(1.15)}.chart-tip{z-index:5;background:var(--surface);border:1px solid var(--border-strong);min-width:160px;box-shadow:var(--shadow-pop);pointer-events:none;border-radius:10px;flex-direction:column;gap:2px;padding:8px 10px;font-size:12px;display:flex;position:absolute;top:0;bottom:auto;left:50%;transform:translate(-50%)}.chart-tip.left{left:auto;right:0;transform:none}.chart-x{gap:2px;height:20px;display:flex;position:absolute;bottom:0;left:46px;right:0}.chart-x span{text-align:center;color:var(--soft);white-space:nowrap;flex:1;font-size:11px;overflow:hidden}.limit-row{flex-direction:column;gap:4px;padding:6px 0;display:flex}.session-row{border-bottom:1px solid var(--border);padding:8px 0}.session-row:last-of-type{border-bottom:0}.session-title{text-align:left;cursor:pointer;color:var(--text);background:0 0;border:0;padding:0}.session-title:hover span:first-child{text-decoration:underline}.session-actions{flex-shrink:0;gap:4px}.session-actions .btn{height:30px;padding:0 10px;font-size:12px}.session-preview{border-left:2px solid var(--line);flex-direction:column;gap:8px;margin:8px 0 4px 54px;padding:10px 12px;display:flex}.pv-msg{gap:10px;font-size:13px;display:flex}.pv-msg.tool{color:var(--soft)}.pv-role{text-transform:uppercase;letter-spacing:.06em;color:var(--soft);flex:0 0 44px;padding-top:2px;font-size:11px;font-weight:600}.pv-msg.assistant .pv-role{color:var(--ink)}.modal.wide{width:min(620px,100%);max-height:calc(100vh - 32px);overflow-y:auto}.field{flex-direction:column;gap:8px;display:flex}.field-label{color:var(--soft);font-size:12px}.editor.short{min-height:90px;font-family:var(--font-body);font-size:14px}.check-label{align-self:end;align-items:center;height:36px;flex-direction:row!important;gap:8px!important}.modal label textarea{color:var(--text)}.check-row{align-items:center;gap:8px;padding:4px 0;font-size:13px;display:flex}.check-row svg{flex-shrink:0}.check-row code{min-width:92px}.cap-grid{flex-wrap:wrap;gap:6px;display:flex}.cap{border:1px solid var(--border);height:28px;color:var(--soft);border-radius:14px;align-items:center;gap:6px;padding:0 10px;font-size:12px;display:inline-flex}.cap.on{border-color:var(--line);color:var(--text);background:var(--accent-sel)}@container (width<=560px){.session-preview{margin-left:0}.session-row>.row{flex-wrap:wrap}}.error-banner{z-index:100005;background:var(--surface);border:1px solid var(--err);width:min(560px,100% - 32px);color:var(--text);box-shadow:var(--shadow-pop);border-radius:14px;align-items:center;gap:10px;padding:10px 10px 10px 14px;display:flex;position:absolute;top:70px;left:50%;transform:translate(-50%)}.error-banner>svg{color:var(--err);flex-shrink:0}.error-banner small{color:var(--soft)}.m-shell .error-banner{width:auto;margin:0 12px 8px;position:static;transform:none}.theme-menu{width:300px;padding:10px;right:0}.theme-picker{flex-direction:column;gap:4px;display:flex}.theme-option{cursor:pointer;text-align:left;width:100%;color:var(--text);background:0 0;border:1px solid #0000;border-radius:12px;align-items:center;gap:12px;padding:8px 10px;display:flex}.theme-option:hover{background:var(--surface-3)}.theme-option.on{border-color:var(--line);background:var(--accent-sel)}.theme-option>svg{color:var(--ink);flex-shrink:0}.theme-swatch{border:1.5px solid;border-radius:9px;flex-shrink:0;width:44px;height:30px;position:relative;overflow:hidden}.theme-swatch span:first-child{border-radius:4px;width:18px;height:16px;position:absolute;top:6px;left:6px}.theme-swatch span:last-child{border-radius:50%;width:10px;height:10px;position:absolute;bottom:6px;right:6px}.icon-btn.on{background:var(--surface-3);color:var(--text)}.sheet-back{z-index:100020;background:#00000073;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);border-top:1px solid var(--line);border-radius:20px 20px 0 0;flex-direction:column;gap:12px;width:100%;padding:16px 14px 24px;display:flex}.sheet .theme-option{min-height:52px}.page.page-fill{height:100%;min-height:420px}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.btn.sm{height:30px;padding:0 10px;font-size:12px}.segmented.tabs .dot{width:6px;height:6px;margin-left:6px}.canvas-panel{flex-direction:column;flex:1;gap:10px;min-height:0;display:flex}.canvas-bar{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.canvas-run{background:var(--surface-3);height:34px;color:var(--soft-2);border-radius:10px;align-items:center;gap:6px;max-width:min(420px,100%);padding:0 10px;display:inline-flex}.canvas-run select{appearance:none;min-height:0;color:var(--text);cursor:pointer;text-overflow:ellipsis;background:0 0;border:0;min-width:0;max-width:100%;padding:0;font-size:12px;font-weight:600}.canvas-follow{cursor:pointer;gap:6px}.canvas-stage{border:1px solid var(--border);background:var(--surface-2);border-radius:14px;flex:1;min-height:320px;position:relative;overflow:hidden}.canvas-stage .excalidraw{--color-primary:var(--accent)}.canvas-stage .excalidraw .App-menu_top .welcome-screen-center{display:none}.canvas-loading{place-items:center;display:grid;position:absolute;inset:0}.canvas-pending{z-index:5;flex-direction:column;gap:8px;width:min(320px,100% - 24px);display:flex;position:absolute;bottom:64px;right:12px}.canvas-pending .tool-card{background:var(--surface);box-shadow:0 8px 28px #00000040}.canvas-foot{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.canvas-replay{align-items:center;gap:8px;min-width:220px;display:flex}.canvas-replay input[type=range]{min-width:120px;accent-color:var(--accent);flex:1}.canvas-send{flex:1;gap:8px;min-width:280px;display:flex}.canvas-send input{flex:1;min-width:0}.canvas-empty{text-align:center;color:var(--soft-2);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:10px;padding:40px 20px;display:flex}.canvas-empty p{max-width:460px;margin:0}.sum.mini-canvas{color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:10px;gap:8px;padding:0 6px}.sum.mini-canvas:hover .mini-flow{border-color:var(--border-strong)}.sum.mini-canvas .row{align-items:center;gap:8px}.sum.mini-canvas .log-line{margin:0}.mini-flow{border:1px solid var(--border);background:var(--surface-2);box-sizing:border-box;border-radius:10px;width:100%;height:auto;max-height:96px;padding:6px}.mf-line{stroke:var(--border-strong);stroke-width:1.5px}.mf-node{stroke-width:1.5px;fill:var(--surface-3);stroke:var(--border-strong)}.mf-sub{stroke-width:1.2px;fill:var(--surface-3);stroke:var(--border-strong)}.mf-running{stroke:var(--accent);fill:var(--accent-soft);animation:1.2s ease-in-out infinite mf-pulse}.mf-done{stroke:var(--ok);fill:var(--ok-bg)}.mf-error,.mf-denied{stroke:var(--err);fill:var(--surface-3)}.mf-waiting{stroke:var(--warn);fill:var(--warn-bg);animation:1.2s ease-in-out infinite mf-pulse}.mf-more{fill:var(--soft);font-size:10px;font-family:var(--mono,monospace)}@keyframes mf-pulse{50%{opacity:.45}}@media (prefers-reduced-motion:reduce){.mf-running,.mf-waiting{animation:none}}.cron-run{gap:6px;padding:10px 14px}.cron-run-head{width:100%;color:inherit;font:inherit;cursor:pointer;text-align:left;background:0 0;border:0;padding:0}.cron-out{white-space:pre-wrap;font-family:var(--mono,ui-monospace, monospace);color:var(--soft-2);max-height:320px;margin:0;font-size:12px;overflow:auto}.menu-wrap{position:relative}.canvas-export{z-index:20;background:var(--surface);border:1px solid var(--border-strong);border-radius:12px;flex-direction:column;min-width:230px;padding:6px;display:flex;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 12px 32px #0000004d}.canvas-export button{text-align:left;color:var(--text);cursor:pointer;font:inherit;background:0 0;border:0;border-radius:8px;padding:9px 10px;font-size:13px}.canvas-export button:hover{background:var(--surface-3)}.step-detail{z-index:6;background:var(--surface);border:1px solid var(--border-strong);border-radius:14px;flex-direction:column;gap:10px;width:min(340px,100% - 24px);max-height:calc(100% - 150px);padding:12px 14px;display:flex;position:absolute;top:64px;right:12px;overflow:auto;box-shadow:0 12px 32px #0000004d}.step-detail header .icon-btn{width:28px;height:28px}.step-body{flex-direction:column;gap:6px;font-size:13px;display:flex}.step-body p{margin:0}.step-pre{background:var(--surface-2);white-space:pre-wrap;word-break:break-word;font-family:var(--mono,ui-monospace, monospace);border-radius:8px;max-height:180px;margin:0;padding:8px 10px;font-size:12px;overflow:auto}.step-text{white-space:pre-wrap;max-height:220px;overflow:auto}.step-actions{flex-wrap:wrap;gap:6px;display:flex}.step-detail+.canvas-pending{bottom:64px}.rule-buttons{flex-wrap:wrap;gap:4px 14px;margin-top:2px;display:flex}.rule-buttons code{font-size:11px}.danger-text{color:var(--err)!important}.rule-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.rule-list li{background:var(--surface-2);border-radius:10px;align-items:center;gap:10px;padding:6px 8px;display:flex}.audit td{vertical-align:top}.audit-detail{word-break:break-word;max-width:420px;color:var(--soft-2)}.wf-card{gap:12px}.wf-card h3{margin:0}.wf-chain{flex-wrap:wrap;align-items:stretch;gap:8px;margin:0;padding:0;list-style:none;display:flex}.wf-chain li{background:var(--surface-2);border:1px solid var(--border);border-radius:12px;flex:180px;align-items:center;gap:8px;max-width:320px;padding:8px 10px;display:flex;position:relative}.wf-chain li+li:before{content:"→";color:var(--soft);font-size:12px;position:absolute;top:50%;left:-9px;transform:translate(-50%,-50%)}.wf-chain li.active{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.wf-chain small{white-space:nowrap;text-overflow:ellipsis;display:block;overflow:hidden}.wf-editor{gap:12px}.wf-name{font-size:16px;font-weight:600}.wf-steps{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.wf-steps li{background:var(--surface-2);border:1px solid var(--border);border-radius:12px;flex-direction:column;gap:6px;padding:10px 12px;display:flex}.wf-steps textarea{resize:vertical;min-height:64px;font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border-strong);border-radius:9px;outline:none;padding:8px 10px}.wf-steps textarea:focus-visible{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.wf-schedule{align-items:center;gap:14px}.wf-schedule label{gap:8px}.wf-schedule .num{width:80px}.icon-btn.flip svg{transform:rotate(180deg)}
