:root{--ink:#172b42;--muted:#52647b;--paper:#f4f7fb;--line:#d8e2ed;--accent:#0b7088;--dark:#142c42;--mono:ui-monospace,SFMono-Regular,Consolas,monospace}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a,summary{touch-action:manipulation}button,summary{cursor:pointer}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button:disabled{opacity:.45;cursor:not-allowed}:focus-visible{outline:3px solid #1496ad;outline-offset:3px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.skip-link{position:fixed;top:-80px;left:16px;z-index:50;background:white;padding:12px}.skip-link:focus{top:8px}
.nav{min-height:80px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px max(24px,calc((100vw - 1440px)/2));background:white;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;font-size:23px;font-weight:700;letter-spacing:-.5px;color:var(--ink)}.brand:hover{text-decoration:none}.brand small{display:block;font-size:12px;font-weight:400;letter-spacing:0;color:var(--muted)}.logo{display:grid;place-items:center;background:var(--accent);color:white;width:44px;height:44px;border-radius:12px;font-size:34px;line-height:1}.tag{font-size:11px;letter-spacing:.5px;color:#075d71;background:#e5f3f7;padding:3px 7px;border-radius:4px}.nav nav{display:flex;flex-wrap:wrap;align-items:center;gap:22px;font-size:14px;font-weight:550}.nav button{background:none;border:0;padding:8px 0;color:var(--muted);font-size:14px}.nav .nav-active{border-bottom:2px solid var(--accent);color:var(--accent)}main{max-width:1488px;margin:auto;padding:0 24px}.intro{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:34px 0 24px}.eyebrow{font-size:12px;font-weight:650;letter-spacing:1.3px;color:var(--accent)}.intro h1{font-size:clamp(30px,3.2vw,42px);line-height:1.25;letter-spacing:-1px;margin:8px 0 10px}.intro p{font-size:17px;color:var(--muted);max-width:760px;margin:0}.research-link{font-size:14px;white-space:nowrap}.research-link span{margin-left:8px}.quick-guide{display:flex;align-items:center;gap:12px 24px;flex-wrap:wrap;padding:15px 20px;background:#eaf3f8;border:1px solid #d0e3ed;border-radius:9px;margin-bottom:24px;color:#334f66;font-size:14px}.quick-guide strong{color:#135e76}.quick-guide span{display:flex;align-items:center;gap:8px}.quick-guide b{display:grid;place-items:center;width:23px;height:23px;background:white;border:1px solid #c6dce8;border-radius:50%;font-size:12px}
.workspace{display:grid;grid-template-columns:288px minmax(0,1fr);gap:24px;align-items:start}.task-panel{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.sidebar-section{padding:20px;border-bottom:1px solid var(--line)}.sidebar-section:last-child{border:0}.panel-title{font-size:12px;letter-spacing:.8px;font-weight:700;color:#45637d}.model-name{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0 6px;font-size:15px;font-weight:650}.model-name span,.pill{font-size:12px;border-radius:5px;background:#edf3f8;color:#47647b;padding:3px 8px;white-space:nowrap}.connection{font-size:13px;line-height:1.6;color:var(--muted);margin:0;overflow-wrap:anywhere}.example-list{display:grid;gap:8px;margin-top:12px}.example-list button{background:#f7f9fc;border:1px solid var(--line);border-radius:6px;color:#314c67;text-align:left;padding:10px 12px;font-size:14px}.example-list button.active{background:#e9f6f8;border-color:#91c8d4;color:#075d72}.walkthrough{display:flex;align-items:center;gap:10px;text-align:left;width:100%;background:#f4f0fa;border:1px solid #dbd1ea;border-radius:7px;padding:13px 10px;color:#544071;margin:12px 0}.walkthrough strong{display:block;font-size:14px;line-height:1.5}.walkthrough small{display:block;font-size:12px;line-height:1.6;color:#635473}.walkthrough>span{font-size:18px}.tiny,.small{font-size:13px;line-height:1.7;color:var(--muted)}.paper-example .tiny{margin-bottom:0}.dataset-box{padding:20px;border-bottom:1px solid var(--line)}.dataset-box summary{font-size:14px;font-weight:650}.dataset-box summary span{font-size:12px;color:var(--muted);float:right;font-weight:400}.dataset-box label{font-size:13px;margin:14px 0 6px}.dataset-box .secondary{width:100%;margin-top:10px}.dataset-box .tiny{margin-bottom:0}.sidebar-resources>a{display:flex;justify-content:space-between;padding-top:12px;font-size:14px}
label{display:block;font-size:15px;font-weight:600;margin-bottom:8px}.label-note{font-size:13px;font-weight:400;color:var(--muted);margin-left:10px}textarea,input,select{width:100%;max-width:100%;padding:12px 14px;border:1px solid #bdccdc;border-radius:7px;background:#fff;color:var(--ink);line-height:1.7;font-size:16px}select{font-size:14px;padding:10px}.dataset-box input{font-size:14px}textarea{resize:vertical;min-height:110px}textarea:focus,input:focus{border-color:#4d9bb1;background:white}#task{display:block;min-height:120px;max-height:500px}#context{margin-top:12px}.lab-panel{display:flex;flex-direction:column;gap:24px;min-width:0}.task-editor,.execution-panel{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:0 4px 20px #102b4304}.task-editor{padding:24px 28px}.editor-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.editor-heading h2{font-size:24px;line-height:1.4;margin:5px 0 0;letter-spacing:-.4px}.section-kicker{font-size:12px;letter-spacing:.8px;font-weight:650;color:#45677e}.context-box{margin-top:14px}.context-box summary{font-size:14px;color:#37546d}.context-box summary span{font-size:13px;color:var(--muted);margin-left:8px}.context-box .tiny{margin-bottom:0}.run-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:20px}.primary{display:inline-flex;align-items:center;justify-content:space-between;gap:30px;background:var(--accent);color:white;border:0;border-radius:7px;padding:12px 20px;font-size:15px;font-weight:650;min-height:46px}.primary:hover{background:#07596d;text-decoration:none}.secondary{background:#f7f9fc;color:#334f69;border:1px solid #c8d6e4;border-radius:6px;padding:10px 15px;font-size:14px;min-height:42px}.run-hint{font-size:13px;color:var(--muted)}.lab-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line)}.lab-toolbar>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.lab-toolbar strong{font-size:16px;font-weight:650}.dot{width:8px;height:8px;background:#12889d;border-radius:50%;display:inline-block}.text-button{border:0;background:transparent;color:#176e87;font-size:14px;padding:8px}.pipeline{list-style:none;display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin:0;padding:22px 24px 10px}.pipeline li{display:flex;align-items:center;gap:7px;font-size:13px;color:#5c7086}.pipeline b{display:grid;place-items:center;width:27px;height:27px;flex-shrink:0;border:1px solid #cbd8e5;border-radius:50%;font-size:12px}.pipeline li.active{color:#075f75;font-weight:600}.pipeline li.active b{background:#ddf2f5;border-color:#76bacb}.pipeline li.done b{background:#e7f4f2;color:#176853}#status{padding:10px 24px 20px;font-size:14px;color:#415d75;line-height:1.7}#status.error{background:#fff1ee;color:#9b302c}.graph-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin:0 20px;background:#142e43;padding:18px 18px 0;border-radius:9px 9px 0 0}.graph-head .tiny{color:#b8d1e0;font-size:13px}.segmented{display:flex;background:#0c2133;padding:4px;border-radius:6px}.segmented button{background:none;border:0;border-radius:4px;color:#b9cfdf;font-size:14px;padding:8px 13px}.segmented button.selected{background:#31536a;color:white}.graph-canvas{background-color:#142e43;background-image:radial-gradient(#8eb0c426 .8px,transparent .8px);background-size:20px 20px;margin:0 20px 20px;border-radius:0 0 9px 9px;min-height:300px;padding:20px 12px;overflow:auto;color:#e0edf5}.empty{text-align:center;padding:18px 10px}.empty-icon{font-size:34px;color:#8cc7d4}.empty h3{font-size:21px;font-weight:600;margin:12px 0}.empty p{font-size:15px;color:#b5cbd9;line-height:1.75;max-width:500px;margin:0 auto}.ghost-graph{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:26px}.ghost-graph span{font-size:13px;border:1px dashed #638398;color:#bed5e3;border-radius:6px;padding:8px 12px}.ghost-graph i{font-style:normal;color:#9ab7c9}.graph-svg{display:block;height:auto;width:100%;max-height:none}.graph-svg text{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.graph-svg .node{cursor:pointer}.graph-svg .node:hover rect,.graph-svg .node:focus rect{stroke:#c6f5fb;stroke-width:2}.graph-svg .flow{stroke-dasharray:5 7;animation:flow 1s linear infinite}.graph-svg .running rect{animation:pulse 1.5s infinite}.graph-svg .new-node rect{stroke:#d7c3ff;stroke-width:2}.graph-svg .edge-changed{stroke:#d7c3ff}.graph-help{font-size:13px;color:var(--muted);padding:0 24px 20px;margin:0}
.inspector{padding:24px;border-top:1px solid var(--line);background:#f6f9fc}.inspector h3{font-size:18px;margin:0;overflow-wrap:anywhere}.inspector p{font-size:15px;color:#3e566d}.node-meta{font-size:13px;color:var(--muted);margin:12px 0}.inspector pre,.answer pre{white-space:pre-wrap;overflow-wrap:anywhere;font:16px/1.85 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#263f56;max-height:450px;overflow:auto;margin:14px 0 0}.patch-panel{padding:26px 24px;border-top:1px solid #e0d8ed;background:#f6f3fc}.patch-title{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin:14px 0}.patch-title h3{font-size:21px;margin:0}.patch-title code{font-size:13px;background:#e9e0f5;color:#5d427c;padding:5px 9px;border-radius:5px}.patch-panel p{font-size:15px;line-height:1.8;color:#5f5071}.patch-panel blockquote{border-left:3px solid #a88ac8;margin:20px 0;padding:10px 18px;font-size:17px;line-height:1.75;color:#5a4074}.comparison{padding:26px 24px}.comparison-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.answer{padding:20px;border:1px solid var(--line);border-radius:8px;background:#f7f9fc;min-width:0}.answer.updated{background:#eef8f7;border-color:#bdded7}.answer h3{font-size:15px;font-weight:700;color:#26576b;margin:0}.metrics{display:flex;flex-wrap:wrap;gap:12px 20px;margin-top:20px}.metrics span{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}.event-box{border-top:1px solid var(--line);padding:18px 24px;color:#49677e;font-size:14px}.event-box summary span{float:right}.event-box #events{max-height:260px;overflow:auto;font:12px/1.8 var(--mono);padding-top:12px}.event-line{padding:6px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.principles{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin:28px 0}.principles article{background:#eaf0f7;border:1px solid #dbe5ee;border-radius:9px;padding:24px}.principles article>span{font-size:12px;color:#456e89;font-weight:600}.principles h3{font-size:18px;margin:10px 0}.principles p{font-size:15px;line-height:1.8;color:#455c73;margin:0}.faq{background:white;border:1px solid var(--line);border-radius:12px;padding:28px;margin-bottom:32px}.faq h2{font-size:25px;margin:0 0 18px}.faq details{border-top:1px solid var(--line);padding:16px 0}.faq summary{font-size:16px;font-weight:600}.faq p{font-size:15px;line-height:1.8;color:#425a71;margin-bottom:0}.site-stats{display:flex;justify-content:center;flex-wrap:wrap;gap:10px 24px;font-size:14px;padding:14px 0 30px;color:#425e76}.site-stats strong{font-size:19px;margin-right:6px;font-variant-numeric:tabular-nums}.site-stats [data-stats-status]{flex-basis:100%;text-align:center;font-size:12px;color:var(--muted)}.site-footer{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:30px max(24px,calc((100vw - 1440px)/2));border-top:1px solid var(--line);background:white;font-size:14px}.site-footer>div{margin-right:auto}.site-footer .brand{font-size:20px}.site-footer .footer-title{display:block;font-weight:600}.site-footer .project-authors,.site-footer .footer-affiliations{display:block;font-size:13px;color:var(--muted);margin-top:4px}.site-footer nav{display:flex;gap:20px;font-size:14px}.guide{max-width:1000px;padding-top:40px;padding-bottom:50px}.guide h1{font-size:38px;margin:10px 0}.guide h2{font-size:23px;margin-top:32px}.guide p{font-size:16px;color:var(--muted)}.guide section{background:white;padding:10px 28px 30px;border:1px solid var(--line);border-radius:12px}.guide pre{background:#142e43;color:#d5ebf5;font:14px/1.8 var(--mono);padding:22px;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto}.inline{width:fit-content;margin-top:20px}.guide .scope-note{padding:18px;border-left:3px solid var(--accent);background:#eef6fa}
@keyframes flow{to{stroke-dashoffset:-24}}@keyframes pulse{50%{stroke:#cff6ff;stroke-width:2}}@media(max-width:1100px){.workspace{grid-template-columns:250px minmax(0,1fr);gap:18px}.nav{flex-wrap:wrap}.sidebar-section,.dataset-box{padding:17px}.task-editor{padding:22px}.pipeline{justify-content:flex-start;gap:12px}.comparison-grid{grid-template-columns:1fr}.research-link{white-space:normal;min-width:140px}}
@media(max-width:800px){main{padding:0 18px}.nav{padding:18px;gap:16px}.nav nav{width:100%;gap:12px 20px}.intro{padding:28px 0 20px;align-items:flex-start;flex-direction:column;gap:12px}.intro h1{font-size:32px}.intro p{font-size:16px}.workspace{grid-template-columns:1fr}.task-panel{display:grid;grid-template-columns:1fr 1fr}.sidebar-section,.dataset-box{border-bottom:1px solid var(--line)}.dataset-box{grid-column:1/-1}.sidebar-resources{display:none}.paper-example{grid-column:1/-1}.walkthrough{max-width:520px}.example-list{margin-top:10px}.principles{grid-template-columns:1fr;gap:12px}.principles article{padding:22px}.site-footer{flex-wrap:wrap;padding:24px 18px}.site-footer>div{margin:0}.editor-heading h2{font-size:22px}.label-note{display:block;margin:3px 0}.graph-head{gap:10px}.quick-guide{font-size:13px;gap:10px 18px}.quick-guide>strong{width:100%}.faq{padding:24px}.site-stats [data-stats-status]{font-size:11px}}
@media(max-width:480px){.brand small{font-size:11px}.nav .tag{display:none}.nav nav{font-size:13px;gap:12px 16px}.nav button{font-size:13px}.task-panel{grid-template-columns:1fr}.model-name{margin:7px 0}.task-editor{padding:20px}.editor-heading .pill{display:none}.run-hint{width:100%}.lab-toolbar{padding:18px;flex-wrap:wrap}.pipeline,#status{padding-left:18px;padding-right:18px}.pipeline li{font-size:12px}.graph-head{margin:0 12px;padding:14px 10px 0}.graph-canvas{margin:0 12px 16px}.segmented button{font-size:13px;padding:8px 10px}.ghost-graph{gap:8px}.ghost-graph span{padding:7px;font-size:11px}.comparison,.inspector,.patch-panel{padding:22px 18px}.site-footer{align-items:flex-start}.site-footer>div{width:100%}.guide h1{font-size:32px}.guide section{padding:8px 20px 24px}.guide pre{font-size:13px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Live allowance, consistent with MAS-Gate. */
.quota-panel { margin: 0; border-top: 1px solid var(--line); background: #f1f8fb; }
.quota-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quota-heading button { border: 0; background: none; color: #126e88; padding: 6px 0; font-size: 12px; }
.quota-value { font-variant-numeric: tabular-nums; color: #155b73; margin-top: 12px; font-size: 14px; }
.quota-value strong { font-size: 32px; line-height: 1.3; }
.quota-panel meter { width: 100%; height: 12px; margin: 10px 0 2px; accent-color: #168ca0; }
.quota-panel p { margin: 7px 0 0; }
.quota-panel.is-empty { background: #fff6e7; }
