:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#182d2a;background:#f4f6f4;font-synthesis:none;--ink:#182d2a;--muted:#697772;--line:#dce3de;--green:#1d7350;--mint:#b5f4ce}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,select,summary,input[type=range]{cursor:pointer}button{transition:background .15s,transform .15s}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #66bb94;outline-offset:3px}header{height:84px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 4.2%;background:#fbfcfb}.brand{color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:12px;font-size:23px;font-weight:740;letter-spacing:-1px}.mark{display:grid;place-items:center;width:39px;height:39px;border-radius:10px;background:var(--ink);color:var(--mint);font-weight:700;font-size:27px}.brand-slash{margin:0 17px;font-weight:350;color:#a5b1a9}.brand-sub{font:12px ui-monospace,SFMono-Regular,monospace;letter-spacing:1.6px;vertical-align:middle}.header-right{display:flex;align-items:center;gap:24px}.stack-label{font-size:13px;color:var(--muted)}.status{font-size:12px;border:1px solid var(--line);padding:7px 11px;border-radius:20px}.status.connected:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#299366;margin-right:7px}main{max-width:1570px;margin:auto;padding:38px 4.2% 0}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.eyebrow,.small-label{font:11px ui-monospace,SFMono-Regular,monospace;letter-spacing:1.3px;color:var(--muted)}h1{font-size:clamp(28px,3vw,40px);font-weight:620;letter-spacing:-1.7px;line-height:1.2;margin:13px 0 8px}.page-heading p{color:var(--muted);font-size:15px;margin:0}h2,h3{margin:0;font-weight:620}h2{font-size:17px;letter-spacing:-.4px}h3{font-size:14px}.text-button{border:0;background:transparent;color:var(--ink);font-size:14px;padding:7px 0;white-space:nowrap}.text-button:hover{color:var(--green)}.text-button span{margin-left:12px}.small{font-size:12px}.workspace{display:grid;grid-template-columns:340px minmax(0,1fr);gap:24px;align-items:start}.panel{background:white;border:1px solid var(--line);border-radius:12px}.composer{padding:24px;position:sticky;top:18px}.panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.panel-heading .small-label{font-size:10px}label{display:block;font-size:13px;font-weight:560;margin-bottom:9px}select,input[type=password],input[type=number]{width:100%;background:#fbfcfb;border:1px solid #d8e0db;border-radius:7px;padding:11px 12px;color:var(--ink);font-size:14px}select{padding-right:28px}.help{font-size:12px;color:var(--muted);line-height:1.55;margin:9px 0 20px}.field-title{display:flex;align-items:center;justify-content:space-between}.field-title label{margin-bottom:8px}.field-title .text-button{padding-top:0}textarea{display:block;resize:vertical;width:100%;border:1px solid #d8e0db;border-radius:7px;padding:12px;color:var(--ink);background:#fbfcfb;font-size:14px;line-height:1.6}.context-editor{height:116px;font:11px/1.65 ui-monospace,SFMono-Regular,monospace;color:#60766c;border-radius:7px 7px 0 0}.context-editor.expanded{height:300px}.editor-footer{display:flex;justify-content:space-between;background:#f3f6f3;border:1px solid #d8e0db;border-top:0;border-radius:0 0 7px 7px;padding:8px;font-size:10px;color:var(--muted);margin-bottom:22px}.prompt-editor{height:115px}.settings{padding-top:23px}output{font:11px ui-monospace,SFMono-Regular,monospace;color:var(--green)}input[type=range]{width:100%;accent-color:#2c7759;margin:7px 0}.range-labels{display:flex;justify-content:space-between;font-size:10px;color:#85928b}.advanced{border-top:1px solid var(--line);margin:23px 0 20px;padding-top:15px}.advanced summary{font-size:12px;color:var(--muted)}.advanced[open] summary{margin-bottom:18px}.advanced .help{margin-bottom:14px}.primary{width:100%;display:flex;align-items:center;justify-content:space-between;border:0;background:var(--ink);color:var(--mint);padding:14px 17px;border-radius:7px;font-size:14px;font-weight:600}.primary:hover:not(:disabled){background:#285c45}.primary span:last-child{font-size:20px;font-weight:400;line-height:1}.run-note{font-size:10px;line-height:1.6;text-align:center;color:var(--muted);margin:11px 0 0;overflow-wrap:anywhere}.reset-button{display:block;margin:10px auto 0;border:0;background:none;color:var(--muted);font-size:12px}.flow{padding:19px 25px 22px;background:#edf3ee}.flow-top{display:flex;align-items:center;justify-content:space-between}.badge{font:10px ui-monospace,SFMono-Regular,monospace;color:#397053;border:1px solid #c5dccc;background:#eaf7ed;border-radius:4px;padding:5px 7px;white-space:nowrap}.flow-steps{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:19px}.flow-steps>div{display:grid;grid-template-columns:36px auto;column-gap:9px;align-items:center}.step-icon{grid-row:span 2;border:1px solid #ccdad0;border-radius:8px;background:#fafcf9;width:36px;height:36px;display:grid;place-items:center;font-size:24px;font-weight:400}.flow-steps b{font-size:13px;font-weight:600}.flow-steps small{font-size:10px;color:var(--muted);margin-top:3px}.active-step .step-icon{background:var(--ink);color:var(--mint);border-color:var(--ink)}.connector{color:#8fa797;font-size:18px}.result-heading{display:flex;align-items:center;justify-content:space-between;margin:29px 0 18px;gap:12px}.result-heading p{font-size:12px;color:var(--muted);margin:8px 0 0}.turn-count{font:10px ui-monospace,SFMono-Regular,monospace;letter-spacing:.6px;color:#7b8b82;margin-left:10px}.turns{display:flex;gap:4px;max-width:230px;overflow:auto}.turns button{font:11px ui-monospace,SFMono-Regular,monospace;padding:7px 9px;border:1px solid var(--line);border-radius:5px;background:white;white-space:nowrap}.turns button.selected{background:var(--ink);color:var(--mint);border-color:var(--ink)}.metrics{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);background:white;border-radius:10px;overflow:hidden}.metric{padding:20px 17px;border-right:1px solid var(--line);min-width:0}.metric:last-child{border:0}.metric>span{font-size:11px;color:var(--muted);display:block}.metric strong{display:block;font-size:31px;font-weight:580;letter-spacing:-1.4px;margin-top:14px;white-space:nowrap}.metric strong small{font-size:17px;font-weight:400;margin-left:3px;color:var(--muted)}.metric:first-child strong{color:var(--green)}.metric p{font-size:10px;color:var(--muted);line-height:1.5;margin:9px 0 0;min-height:28px}.budget{margin-top:18px;padding:20px 23px}.budget-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.budget-heading .small-label{font-size:9px}.bar-row{display:grid;grid-template-columns:76px 1fr 61px;gap:10px;align-items:center;margin:12px 0}.bar-row>span{font-size:12px;color:var(--muted)}.bar-track{height:14px;border-radius:3px;background:repeating-linear-gradient(90deg,#f2f5f2 0,#f2f5f2 1px,transparent 1px,transparent 5px);overflow:hidden}.bar{height:100%;border-radius:3px;transition:width .65s cubic-bezier(.2,.8,.2,1);min-width:0}.original-bar{background:#40554c}.compressed-bar{background:#9de5b8}.bar-row b{font:12px ui-monospace,SFMono-Regular,monospace;text-align:right}.budget-footer{border-top:1px solid #edf0ed;padding-top:12px;margin-top:19px;display:flex;align-items:center;justify-content:space-between;gap:10px}.budget-footer>span{font-size:11px;color:var(--muted);line-height:1.5}.response-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-top:18px}.response-card{overflow:hidden;display:flex;flex-direction:column;min-width:0;min-height:260px}.response-heading{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #e9ede9;gap:8px}.response-heading h3{display:flex;align-items:center;gap:7px}.path-dot{width:7px;height:7px;border-radius:2px;display:inline-block}.baseline-dot{background:#52635a}.compressed-dot{background:#7aca9c}.response-heading .small-label{font-size:9px}.compressed-card{border-color:#b6d5bf}.compressed-card .response-heading{background:#f4faf5}.response-text{font-size:13px;line-height:1.85;padding:19px 20px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:450px;overflow:auto;flex:1}.response-text.empty{color:#8b9890;font-size:13px;display:flex;align-items:center;justify-content:center;min-height:165px;text-align:center}.response-footer{border-top:1px solid #edf0ed;padding:12px 20px;color:var(--muted);font:10px/1.7 ui-monospace,SFMono-Regular,monospace}.checks{display:flex;flex-wrap:wrap;gap:5px;padding:0 20px 12px}.checks:empty{display:none}.check{font-size:10px;padding:4px 6px;border-radius:4px;background:#eef6ef;color:#30744a}.check.fail{background:#fff0e9;color:#a25932}.method-note{display:flex;align-items:start;gap:10px;margin-top:17px;color:var(--muted)}.method-note>span{margin-top:1px}.method-note p{font-size:11px;line-height:1.7;margin:0}.suggestions{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.suggestions:empty{margin:0}.suggestions button{font-size:11px;background:transparent;border:1px solid #d1dcd2;border-radius:20px;padding:8px 12px;text-align:left;color:#44614e}.suggestions button:hover{background:#e5efe7}.followup-hint{font-size:11px;padding:10px;margin-top:12px;background:#edf7ef;border-radius:5px;color:#487d58}.error{margin-top:15px;color:#a83d2e;background:#fff1ec;border:1px solid #f0d2c5;border-radius:6px;padding:11px;font-size:12px;line-height:1.6}footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:40px;padding:20px 0 25px;color:#849187;font-size:11px}footer>span:first-child{font:10px ui-monospace,SFMono-Regular,monospace;letter-spacing:1.4px}dialog{width:min(1180px,94vw);max-height:88vh;border:1px solid var(--line);border-radius:14px;padding:28px;color:var(--ink);background:#f9fbf9}dialog::backdrop{background:#14231fc0;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.dialog-heading h2{font-size:24px;margin-top:8px}.close-dialog{background:none;border:0;font-size:30px;color:var(--muted)}.inspect-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.inspect-grid h3{margin-bottom:10px}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;border:1px solid var(--line);border-radius:8px;padding:16px;font-size:11px;line-height:1.7;max-height:60vh;overflow:auto}#architecture{max-width:740px}.architecture-body{font-size:15px;line-height:1.8;color:#4d6057}.architecture-body li{padding-bottom:10px}.architecture-body code{font-size:12px;background:#e8efe9;padding:3px}body.running .primary{background:#406d53}body.running .metrics{opacity:.6}.running .active-step .step-icon{animation:pulse 1s infinite alternate}@keyframes pulse{to{background:#508b66}}[hidden]{display:none!important}@media(min-width:1450px){.workspace{grid-template-columns:370px minmax(0,1fr)}}@media(max-width:1150px){.workspace{grid-template-columns:310px minmax(0,1fr);gap:18px}.composer{padding:19px}.metrics{grid-template-columns:repeat(2,1fr)}.metric:nth-child(2){border-right:0}.metric:nth-child(-n+2){border-bottom:1px solid var(--line)}.flow{padding:17px}.flow-steps>div{display:flex;flex-direction:column;gap:6px;text-align:center}.flow-steps small{font-size:9px}.step-icon{width:30px;height:30px}.response-grid{grid-template-columns:1fr}.response-text.empty{min-height:110px}.response-card{min-height:200px}}@media(max-width:800px){header{height:70px;padding:0 5%}.stack-label,.brand-sub,.brand-slash{display:none}main{padding:28px 5% 0}.page-heading{align-items:start;gap:15px}.page-heading>.text-button{font-size:11px;margin-top:0}.eyebrow{font-size:9px}.page-heading p{font-size:13px}.workspace{grid-template-columns:1fr}.composer{position:static;padding:23px}.context-editor{height:85px}.prompt-editor{height:95px}.flow-steps>div{display:grid;grid-template-columns:30px auto;text-align:left;gap:7px}.flow-steps small{display:none}.flow-steps b{font-size:11px}.step-icon{grid-row:auto}.flow .small-label{font-size:9px}.flow .badge{font-size:9px}.flow-steps{gap:5px}.connector{font-size:13px}.metric strong{font-size:34px}.response-grid{grid-template-columns:1fr 1fr}.response-heading{padding:15px 12px}.response-heading h3{font-size:12px}.response-heading>.small-label,.response-heading>.badge{display:none}.response-text{padding:15px 12px;font-size:12px}.response-footer{padding:12px}.checks{padding:0 12px 12px}.inspect-grid{grid-template-columns:1fr}.dialog-heading h2{font-size:20px}footer>span:nth-child(2){display:none}footer{margin-top:25px}.budget-footer{align-items:start}.flow-top .small-label{max-width:160px;line-height:1.6}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Allow narrow grid children to shrink instead of widening the viewport. */
.composer,.results-area,.result-heading>div:first-child{min-width:0}
@media(max-width:800px){.workspace{grid-template-columns:minmax(0,1fr)}.flow-steps>div{display:flex;flex-direction:column;text-align:center;gap:7px}.flow-steps{gap:3px}.result-heading p{overflow-wrap:anywhere}.budget-heading{gap:12px}.budget-heading .small-label{text-align:right;line-height:1.5}.response-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
