.lab-constellation{--sky-zenith:#1a120c;--sky-mid:#07060a;--sky-horizon:#000;--ink:#f5f5f7;--ink-2:#d2d2d7;--ink-3:#a1a1a6;--rule:#ffffff1f;--rule-strong:#ffffff42;--glass:#121214ed;--glass-hi:#1c1c1ef0;--main:#ffb27a;--sub:#e8e8ed;--you:#ff6a13;--shell:#ffae6b;--files:#7acfff;--edit:#6be3b4;--web:#b69bff;--mcp:#ff8ccb;--other:#c9cee0;--ok:#78f0c6;--fail:#ff5e6e;--hook-tool:#ffcb6b;--hook-agent:#ffb27a;--hook-turn:#d8c7ff;--hook-wait:#ff8fa6;--hook-compact:#9c8bff;--hook-other:#bfe6ff;--serif:var(--font);--sans:var(--font);--fs-micro:12px;--fs-small:13px;--fs-body:14px;--fs-lead:16px;--fs-h2:21px;--fs-h1:40px;--gutter:20px;--panel-r:10px;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}.lab-constellation *{box-sizing:border-box}.lab-constellation{background:radial-gradient(120% 90% at 50% 18%, var(--sky-zenith) 0%, var(--sky-mid) 45%, var(--sky-horizon) 100%);background-color:var(--sky-horizon);height:100%;color:var(--ink);font:400 var(--fs-body)/1.45 var(--sans);-webkit-font-smoothing:antialiased;margin:0;overflow:hidden}.lab-constellation #sky{touch-action:none;outline:none;width:100%;height:100%;display:block;position:fixed;inset:0}.lab-constellation button{font:500 var(--fs-small)/1 var(--sans);color:var(--ink-2);border:1px solid var(--rule);cursor:pointer;background:0 0;border-radius:999px;padding:8px 14px;transition:color .15s,border-color .15s,background-color .15s}.lab-constellation button:hover{color:var(--ink);border-color:var(--rule-strong)}.lab-constellation button[aria-pressed=true]{color:var(--ink);background:#ffe3a812;border-color:#ffe3a873}.lab-constellation button:disabled{opacity:.5;cursor:default}.lab-constellation :focus-visible{outline:2px solid var(--main);outline-offset:2px}.lab-constellation button.primary{color:#1b1606;background:var(--main);border-color:var(--main);font-size:var(--fs-body);padding:11px 20px}.lab-constellation button.primary:hover{background:#fff0cf}.lab-constellation button.ghost{border-radius:6px}.lab-constellation code{color:var(--main);background:#ffe3a814;border-radius:4px;padding:1px 6px;font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace;font-size:.92em}.lab-constellation .masthead{top:calc(var(--nav-h) + var(--gutter));left:var(--gutter);pointer-events:none;text-shadow:0 1px 12px #03041acc;max-width:560px;position:fixed}.lab-constellation .masthead h1{font:italic 600 var(--fs-h1)/1 var(--serif);letter-spacing:.01em;color:var(--ink);margin:0}.lab-constellation .subtitle{color:var(--ink-2);font-size:var(--fs-body);margin:6px 0 0}.lab-constellation .tally{flex-wrap:wrap;gap:4px 22px;margin:16px 0 0;display:flex}.lab-constellation .tally div{flex-direction:column-reverse;display:flex}.lab-constellation .tally dt{font-size:var(--fs-micro);color:var(--ink-3)}.lab-constellation .tally dd{font:500 var(--fs-lead)/1.2 var(--sans);font-variant-numeric:tabular-nums;color:var(--ink);margin:0}.lab-constellation .toolbar{top:calc(var(--nav-h) + var(--gutter));right:var(--gutter);flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;max-width:calc(100vw - 600px);display:flex;position:fixed}.lab-constellation .signal{font-size:var(--fs-small);color:var(--ink-2);white-space:nowrap;align-items:center;gap:8px;padding:0 8px 0 2px;display:inline-flex}.lab-constellation .signal-dot{background:var(--ink-3);border-radius:50%;width:8px;height:8px}.lab-constellation .signal[data-state=live] .signal-dot{background:var(--ok);box-shadow:0 0 0 3px #78f0c62e}.lab-constellation .signal[data-state=quiet] .signal-dot{background:var(--main)}.lab-constellation .signal[data-state=down] .signal-dot{background:var(--fail)}.lab-constellation .log{top:calc(var(--nav-h) + 76px);right:var(--gutter);bottom:var(--gutter);background:var(--glass);border:1px solid var(--rule);border-radius:var(--panel-r);flex-direction:column;width:360px;display:flex;position:fixed;overflow:hidden}.lab-constellation .log-head{justify-content:space-between;align-items:center;padding:14px 14px 10px 16px;display:flex}.lab-constellation .log-head h2{margin:0}.lab-constellation .log-toggle{cursor:default;font:italic 600 var(--fs-h2)/1.1 var(--serif);color:var(--ink);background:0 0;border:0;border-radius:4px;padding:0}.lab-constellation .log-toggle:hover{color:var(--ink)}.lab-constellation #btn-pause{padding:6px 12px}.lab-constellation .log-body{flex-direction:column;flex:1;min-height:0;display:flex}.lab-constellation .filters{border-bottom:1px solid var(--rule);flex-wrap:wrap;gap:6px;padding:0 14px 12px 16px;display:flex}.lab-constellation .filters button{font-size:var(--fs-micro);padding:5px 10px}.lab-constellation .paused-note{font-size:var(--fs-micro);color:var(--main);border-bottom:1px solid var(--rule);margin:0;padding:8px 16px}.lab-constellation .log-list{scrollbar-width:thin;scrollbar-color:var(--rule-strong) transparent;flex:1;margin:0;padding:4px 0 8px;list-style:none;overflow-y:auto}.lab-constellation .row{cursor:pointer;border-left:2px solid #0000;grid-template-columns:52px 14px 1fr;gap:0 8px;padding:7px 14px 7px 16px;display:grid}.lab-constellation .row:hover{background:#a8baff0f}.lab-constellation .row.is-new{animation:1.4s ease-out arrive}@keyframes arrive{0%{background:#ffe3a81a}to{background:0 0}}.lab-constellation .row time{font-size:var(--fs-micro);color:var(--ink-3);font-variant-numeric:tabular-nums;padding-top:2px}.lab-constellation .row .glyph{background:var(--c,var(--other));width:9px;height:9px;box-shadow:0 0 8px var(--c,var(--other));border-radius:50%;margin-top:5px}.lab-constellation .row .glyph.g-ring{border:1.5px solid var(--c);box-shadow:none;background:0 0}.lab-constellation .row .glyph.g-star{border-radius:1px;transform:rotate(45deg)scale(.85)}.lab-constellation .row .glyph.g-comet{background:linear-gradient(90deg, transparent, var(--c));width:13px;height:7px;box-shadow:none;border-radius:0 6px 6px 0;margin-top:6px}.lab-constellation .row .line1{justify-content:space-between;align-items:baseline;gap:10px;min-width:0;display:flex}.lab-constellation .row .what{color:var(--ink);white-space:nowrap;text-overflow:ellipsis;font-weight:500;overflow:hidden}.lab-constellation .row .who{color:var(--ink-3);font-size:var(--fs-micro);white-space:nowrap;text-overflow:ellipsis;flex-shrink:1;overflow:hidden}.lab-constellation .row .text{color:var(--ink-2);font-size:var(--fs-small);-webkit-line-clamp:2;word-break:break-word;-webkit-box-orient:vertical;margin-top:2px;display:-webkit-box;overflow:hidden}.lab-constellation .row .state{font-size:var(--fs-micro);color:var(--ink-3);margin-left:6px;font-weight:400}.lab-constellation .row.running .state{color:var(--hook-tool)}.lab-constellation .row.failed{border-left-color:var(--fail)}.lab-constellation .row.failed .state{color:var(--fail)}.lab-constellation .row.ok .state{color:var(--ok)}.lab-constellation .chips{flex-wrap:wrap;gap:4px;margin-top:4px;display:flex}.lab-constellation .chip{color:var(--ink-2);border:1px solid var(--rule);border-radius:999px;align-items:center;gap:5px;padding:3px 7px 3px 6px;font-size:11px;line-height:1;display:inline-flex}.lab-constellation .chip:before{content:"";border:1.25px solid var(--c,var(--hook-tool));border-radius:50%;width:6px;height:6px}.lab-constellation .log[data-hide-hooks=true] .chips{display:none}.lab-constellation .legend{left:var(--gutter);bottom:var(--gutter);background:var(--glass);border:1px solid var(--rule);border-radius:var(--panel-r);max-width:340px;font-size:var(--fs-small);color:var(--ink-2);position:fixed}.lab-constellation .legend summary{cursor:pointer;font:italic 600 var(--fs-lead)/1.2 var(--serif);color:var(--ink);border-radius:var(--panel-r);padding:10px 14px;list-style:none}.lab-constellation .legend summary::-webkit-details-marker{display:none}.lab-constellation .legend summary:after{content:"+";float:right;font:400 var(--fs-lead)/1.2 var(--sans);color:var(--ink-3);margin-left:16px}.lab-constellation .legend[open] summary:after{content:"−"}.lab-constellation .legend-list{gap:7px;margin:0;padding:0 14px 12px;list-style:none;display:grid}.lab-constellation .legend-list li{align-items:flex-start;gap:10px;display:flex}.lab-constellation .lg{flex:none;width:14px;height:14px;margin-top:2px;position:relative}.lab-constellation .lg-main{background:radial-gradient(circle, #fff 0 20%, var(--main) 30%, transparent 70%)}.lab-constellation .lg-main:before,.lab-constellation .lg-main:after{content:"";background:linear-gradient(transparent, var(--main), transparent);width:1px;position:absolute;top:-3px;bottom:-3px;left:50%}.lab-constellation .lg-main:after{transform:rotate(90deg)}.lab-constellation .lg-sub{background:radial-gradient(circle, #fff 0 16%, var(--sub) 26%, transparent 66%)}.lab-constellation .lg-you{background:radial-gradient(circle, #fff 0 12%, var(--you) 22%, transparent 60%)}.lab-constellation .lg-comet{background:linear-gradient(90deg, transparent, var(--main));border-radius:0 6px 6px 0;height:6px;margin-top:6px}.lab-constellation .lg-ring{border:1.5px solid var(--hook-tool);border-radius:50%;width:12px;height:12px}.lab-constellation .lg-wait{background:var(--hook-wait);border-radius:50%;width:10px;height:10px;margin:4px 2px 0;box-shadow:0 0 0 4px #ff8fa633}.lab-constellation .legend-tools{flex-wrap:wrap;padding:2px 0;gap:6px 12px!important}.lab-constellation .lg-tool{align-items:center;gap:6px;display:inline-flex}.lab-constellation .lg-tool:before{content:"";background:var(--c);width:7px;height:7px;box-shadow:0 0 6px var(--c);border-radius:50%}.lab-constellation .detail{left:var(--gutter);top:calc(var(--nav-h) + 180px);width:320px;max-height:calc(100vh - var(--nav-h) - 180px - 300px);background:var(--glass-hi);border:1px solid var(--rule-strong);border-radius:var(--panel-r);padding:16px;position:fixed;overflow-y:auto}.lab-constellation .detail-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.lab-constellation .detail h2{font:italic 600 28px/1.05 var(--serif);margin:0}.lab-constellation .detail-sub{color:var(--ink-2);font-size:var(--fs-small);margin:4px 0 0}.lab-constellation .icon-btn{border-radius:6px;padding:6px;line-height:0}.lab-constellation .detail-stats{font-size:var(--fs-small);grid-template-columns:auto 1fr;gap:6px 16px;margin:14px 0 0;display:grid}.lab-constellation .detail-stats dt{color:var(--ink-3)}.lab-constellation .detail-stats dd{color:var(--ink);font-variant-numeric:tabular-nums;text-align:right;overflow-wrap:anywhere;margin:0}.lab-constellation .detail-recent-title{font:italic 600 var(--fs-lead)/1.2 var(--serif);color:var(--ink);margin:16px 0 6px}.lab-constellation .detail-recent{font-size:var(--fs-small);color:var(--ink-2);gap:6px;margin:0 0 12px;padding:0;list-style:none;display:grid}.lab-constellation .detail-recent li{grid-template-columns:52px 1fr;gap:8px;display:grid}.lab-constellation .detail-recent time{color:var(--ink-3);font-size:var(--fs-micro);font-variant-numeric:tabular-nums;padding-top:1px}.lab-constellation .detail-recent .r-what{color:var(--ink)}.lab-constellation .empty{background:var(--glass-hi);border:1px solid var(--rule-strong);border-radius:14px;width:min(460px,100vw - 40px);padding:28px 30px 24px;position:fixed;top:50%;left:50%;transform:translate(-50%,-46%)}.lab-constellation .empty h2{font:italic 600 32px/1.05 var(--serif);margin:0 0 8px}.lab-constellation .empty p{color:var(--ink-2);margin:0}.lab-constellation .steps{color:var(--ink);gap:8px;margin:18px 0 22px;padding-left:22px;display:grid}.lab-constellation .steps li::marker{color:var(--main);font-family:var(--serif);font-style:italic;font-weight:600;font-size:var(--fs-lead)}.lab-constellation .fineprint{font-size:var(--fs-micro);color:var(--ink-3)!important;margin-top:12px!important}.lab-constellation .empty[hidden],.lab-constellation .detail[hidden]{display:none}.lab-constellation #labels{pointer-events:none;position:fixed;inset:0;overflow:hidden}.lab-constellation .lbl{white-space:nowrap;will-change:transform, opacity;text-shadow:0 0 6px #03041af2,0 0 2px #03041ae6;position:absolute;top:0;left:0}.lab-constellation .lbl-session{font:italic 600 22px/1 var(--serif);color:var(--c,var(--ink));letter-spacing:.02em;transform-origin:0 0}.lab-constellation .lbl-agent{font:italic 600 var(--fs-lead)/1.1 var(--serif);color:var(--ink)}.lab-constellation .lbl-agent .meta{font:400 11px/1.3 var(--sans);color:var(--ink-3);font-variant-numeric:tabular-nums;font-style:normal;display:block}.lab-constellation .lbl-agent.is-done{color:var(--ink-3)}.lab-constellation .lbl-agent.is-waiting .meta{color:var(--hook-wait)}.lab-constellation .lbl-you{font:italic 500 var(--fs-body)/1 var(--serif);color:var(--you)}.lab-constellation .lbl-tool{font:400 11px/1 var(--sans);color:var(--ink-2)}.lab-constellation .lbl-tool .n{color:var(--ink-3);font-variant-numeric:tabular-nums}.lab-constellation .lbl-flare{font:500 11px/1 var(--sans);color:var(--c,var(--hook-tool))}.lab-constellation .tip{z-index:5;pointer-events:none;background:var(--glass-hi);border:1px solid var(--rule-strong);max-width:280px;font-size:var(--fs-small);color:var(--ink-2);border-radius:8px;padding:8px 10px;position:fixed;top:0;left:0}.lab-constellation .tip strong{font:italic 600 var(--fs-lead)/1.15 var(--serif);color:var(--ink);display:block}.lab-constellation .tip[hidden]{display:none}.lab-constellation .noscript{text-align:center;color:var(--ink-2);position:fixed;inset:auto 0 40%}.lab-constellation .webgl-error{text-align:center;max-width:420px;color:var(--ink-2);position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}@media (max-width:1100px){.lab-constellation .toolbar{max-width:none;top:auto;left:auto;bottom:calc(var(--gutter) + 52px);right:var(--gutter)}.lab-constellation .log{height:46vh;top:auto}.lab-constellation .log[data-open=false]{height:auto}}@media (max-width:760px){.lab-constellation{--gutter:14px;--fs-h1:30px}.lab-constellation .subtitle{display:none}.lab-constellation .tally{gap:2px 14px;margin-top:10px}.lab-constellation .tally dd{font-size:var(--fs-body)}.lab-constellation .toolbar{left:var(--gutter);right:var(--gutter);top:auto;bottom:auto;top:calc(var(--nav-h) + 118px);justify-content:flex-start;position:fixed}.lab-constellation .toolbar button{padding:6px 10px}.lab-constellation .log{left:var(--gutter);right:var(--gutter);width:auto;height:38vh}.lab-constellation .log-toggle{cursor:pointer}.lab-constellation .legend{display:none}.lab-constellation .detail{left:var(--gutter);right:var(--gutter);width:auto;max-height:40vh;top:auto;bottom:calc(38vh + 26px)}}.lab-constellation .log[data-open=false] .log-body{display:none}@media (prefers-reduced-motion:reduce){.lab-constellation .row.is-new{animation:none}.lab-constellation *{transition:none!important}}.lab-constellation .row[hidden]{display:none}.lab-constellation .row .body,.lab-constellation .row .who{min-width:0}.lab-constellation .row .what{flex-shrink:0;max-width:68%}.lab-constellation,.lab-constellation *{font-style:normal!important}.lab-constellation h1,.lab-constellation h2,.lab-constellation h3{letter-spacing:-.02em}body:has(.lab-constellation) .foot{display:none}.lab-constellation{z-index:0;position:fixed;inset:0;overflow:hidden}.lab-constellation .models{border-radius:var(--panel-r);background:var(--glass);border:1px solid var(--rule);width:100%;padding:12px 14px}.lab-constellation .models[hidden]{display:none}.lab-constellation .models-title{font:500 var(--fs-micro)/1.2 var(--sans);color:var(--ink-3);text-transform:uppercase;letter-spacing:.06em;margin:0 0 8px}.lab-constellation .model-head,.lab-constellation .model-list li{grid-template-columns:minmax(0,1fr) 56px 44px 56px;align-items:baseline;gap:8px;display:grid}.lab-constellation .model-head{font-size:var(--fs-micro);color:var(--ink-3);border-bottom:1px solid var(--rule);padding-bottom:4px}.lab-constellation .model-head span:not(:first-child),.lab-constellation .model-num{text-align:right;font-variant-numeric:tabular-nums}.lab-constellation .model-list{margin:0;padding:0;list-style:none}.lab-constellation .model-list li{border-bottom:1px solid var(--rule);font-size:var(--fs-small);color:var(--ink-2);padding:5px 0}.lab-constellation .model-name{color:var(--ink);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.lab-constellation .ctx-label{font-size:var(--fs-micro);color:var(--ink-3);justify-content:space-between;gap:8px;margin-top:10px;display:flex}.lab-constellation #ctx-value{color:var(--ink-2);font-variant-numeric:tabular-nums}.lab-constellation .ctx{background:#ffffff1a;border-radius:3px;height:6px;margin-top:6px;position:relative;overflow:visible}.lab-constellation .ctx-bar{background:var(--orange-500,#ff6a13);border-radius:3px;transition:width .6s;position:absolute;inset:0 auto 0 0}.lab-constellation .ctx[data-state=mid] .ctx-bar{background:#ffcb6b}.lab-constellation .ctx[data-state=high] .ctx-bar{background:var(--fail)}.lab-constellation .ctx-peak{background:var(--ink);border-radius:1px;width:2px;height:12px;margin-left:-1px;position:absolute;top:-3px}.lab-constellation .ctx-peak[hidden]{display:none}@media (max-width:760px){.lab-constellation .models{display:none}}@media (prefers-reduced-motion:reduce){.lab-constellation .ctx-bar{transition:none}}.lab-constellation .dock{left:var(--gutter);bottom:var(--gutter);flex-direction:column;align-items:stretch;gap:10px;width:360px;display:flex;position:fixed}.lab-constellation .dock .legend{align-self:flex-start;max-width:none;position:static}.lab-constellation .dock .legend[open]{align-self:stretch}@media (max-width:760px){.lab-constellation .dock{display:none}}.lab-constellation.is-recording .toolbar,.lab-constellation.is-recording .log,.lab-constellation.is-recording .dock,.lab-constellation.is-recording .empty,.lab-constellation.is-recording .tip,.lab-constellation.is-recording .detail{display:none!important}
