:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#151a1f;background:#f6f6f7;--ag-ink: #151a1f;--ag-muted: #5f6d7a;--ag-border: #dfe5e8;--ag-panel: #ffffff;--ag-panel-soft: #f8fafb;--ag-green: #008060;--ag-green-strong: #00684f;--ag-green-soft: #e8f5f1;--ag-blue-soft: #eaf1fb;--ag-gold-soft: #fff4dc;--ag-danger: #a73636;--ag-warning: #9a640f;--ag-ok: #17724f;--ag-shadow: 0 16px 40px rgb(23 30 38 / 8%)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{min-width:320px;min-height:100vh;margin:0;background:#f6f6f7;color:var(--ag-ink);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:hidden}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}svg{flex:0 0 auto}*:focus-visible{outline:2px solid var(--ag-green);outline-offset:2px}.ag-button,.ag-button-secondary,.ag-icon-button{border:0;border-radius:12px;font-weight:850}.ag-button,.ag-button-secondary{display:inline-flex;min-height:42px;align-items:center;justify-content:center;gap:9px;padding:10px 14px}.ag-button{background:var(--ag-green);color:#fff;box-shadow:0 8px 22px #00806033}.ag-button:hover{background:var(--ag-green-strong)}.ag-button-secondary{border:1px solid var(--ag-border);background:#fff;color:var(--ag-ink)}.ag-icon-button{display:grid;width:40px;height:40px;place-items:center;background:#eef3f5;color:var(--ag-ink)}.ag-pill{display:inline-flex;min-height:34px;align-items:center;gap:8px;padding:7px 11px;border:1px solid #b8d8cf;border-radius:999px;background:var(--ag-green-soft);color:var(--ag-green-strong);font-size:13px;font-weight:850}.ag-eyebrow{margin:0 0 6px;color:var(--ag-muted);font-size:12px;font-weight:850;letter-spacing:0;text-transform:uppercase}.ag-card{border:1px solid var(--ag-border);border-radius:24px;background:var(--ag-panel);box-shadow:var(--ag-shadow)}.ag-field{display:grid;gap:6px;color:var(--ag-muted);font-size:12px;font-weight:850;letter-spacing:0;text-transform:uppercase}.ag-field input,.ag-field select,.ag-field textarea,.ag-input,.ag-textarea{width:100%;min-width:0;border:1px solid var(--ag-border);border-radius:12px;background:#fff;color:var(--ag-ink);text-transform:none}.ag-field input,.ag-field select,.ag-input{min-height:42px;padding:9px 12px}.ag-field textarea,.ag-textarea{resize:vertical;padding:10px 12px;line-height:1.45}.ag-spin{animation:ag-spin .9s linear infinite}@keyframes ag-spin{to{transform:rotate(360deg)}}.builder-shell{min-height:100vh;background:linear-gradient(180deg,#fbfcfc,#f4f6f7 42%,#eef2f3)}.builder-topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:72px;padding:12px max(18px,calc((100vw - 1760px)/2 + 18px));border-bottom:1px solid #e1e6e8;background:#ffffffeb;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.builder-brand,.app-switcher,.app-switcher-current,.app-switcher-link,.topbar-actions,.topbar-action,.panel-heading,.subsection-title,.schema-row,.prompt-row,.submitted-box,.result-box dl,.result-box dl div,.memory-examples{display:flex;align-items:center}.builder-brand{gap:10px;min-width:210px}.builder-brand>span,.draft-icon,.builder-stat-grid article>span{display:grid;place-items:center}.builder-brand>span{width:40px;height:40px;border-radius:14px;background:#151a1f;color:#fff;font-weight:900}.builder-brand strong{font-size:22px;line-height:1}.app-switcher{flex-wrap:wrap;justify-content:center;gap:8px}.app-switcher-current,.app-switcher-link,.topbar-action{min-height:44px;justify-content:center;gap:8px;border:1px solid transparent;border-radius:14px;background:transparent;padding:10px 14px;color:#4d5b68;font-weight:850;text-decoration:none}.app-switcher-current{background:#eef3f5;color:#151a1f}.app-switcher-link:hover,.topbar-action:hover{border-color:#dfe5e8;background:#f7fafb;color:#151a1f}.topbar-actions{flex-wrap:wrap;flex:0 0 auto;justify-content:flex-end;gap:10px}.builder-main{display:grid;width:min(1760px,100%);margin:0 auto;padding:clamp(36px,5vw,76px) 18px 72px;gap:28px}.builder-hero{display:grid;gap:28px}.builder-login-gate{display:grid;min-height:460px;place-items:center;align-content:center;gap:14px;text-align:center}.builder-login-gate h1{max-width:780px;margin:0;color:#151a1f;font-size:clamp(42px,5vw,78px);line-height:1}.builder-login-gate p:not(.hero-kicker){max-width:660px;margin:0;color:#53616e;font-size:17px;line-height:1.5}.hero-kicker{display:inline-flex;width:fit-content;min-height:34px;align-items:center;margin:0 0 18px;border-radius:999px;background:#e8f5f1;color:#008060;padding:7px 14px;font-size:13px;font-weight:900}.builder-hero h1{max-width:980px;margin:0;color:#151a1f;font-size:clamp(58px,7vw,116px);line-height:.96}.builder-hero>div:first-child>p:last-child{max-width:1040px;margin:20px 0 0;color:#53616e;font-size:clamp(20px,2.1vw,30px);line-height:1.35}.builder-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.builder-guide{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.builder-guide article{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 10px;align-items:start;border:1px solid #dfe7ea;border-radius:20px;background:#fff;padding:16px;box-shadow:0 14px 30px #161c220d}.account-switch-card{min-height:116px}.account-switch-card>div{display:grid;gap:8px}.account-select{display:grid;gap:5px}.account-select span{color:#53616e;font-size:12px;font-weight:900}.account-select select{width:100%;min-height:42px;border:1px solid #dfe7ea;border-radius:12px;background:#fbfcfd;color:#151a1f;padding:8px 10px;font-weight:850}.builder-guide article>span{display:grid;width:30px;height:30px;place-items:center;grid-row:span 2;border-radius:999px;background:#e8f5f1;color:#008060;font-size:13px;font-weight:900}.builder-guide strong{color:#151a1f;line-height:1.2}.builder-guide p{margin:0;color:#5f6d7a;font-size:13px;line-height:1.35}.builder-stat-grid article{display:grid;min-height:176px;align-content:start;gap:8px;border:1px solid #e0e5e8;border-radius:24px;background:#fff;padding:24px;box-shadow:0 18px 44px #161c220f}.builder-stat-grid article>span{width:52px;height:52px;margin-bottom:6px;border-radius:17px;background:#eaf1fb;color:#2f68d8}.builder-stat-grid article:nth-child(2)>span{background:#f0e9ff;color:#7149cc}.builder-stat-grid article:nth-child(3)>span{background:#fff4dc;color:#a36f00}.builder-stat-grid article:nth-child(4)>span{background:#e8f5f1;color:#008060}.builder-stat-grid small{color:#53616e;font-size:15px;font-weight:850}.builder-stat-grid strong{color:#07090b;font-size:clamp(34px,3vw,48px);line-height:1}.builder-stat-grid p,.panel-copy,.subsection-title p,.rail-head small,.empty-copy,.result-box p,.submitted-box p{color:#5f6d7a}.builder-stat-grid p{margin:0;line-height:1.4}.builder-layout{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:22px;align-items:start}.draft-rail,.editor-panel,.pipeline-panel{border-color:#dde4e7;padding:24px}.draft-rail{position:sticky;top:92px;display:grid;align-content:start;gap:18px;max-height:calc(100vh - 112px);overflow:auto}.rail-head{display:grid;gap:4px}.rail-head strong{font-size:28px;line-height:1.05}.draft-list,.draft-group,.editor-panel,.build-pipeline,.pipeline-panel,.memory-editor,.prompt-editor,.builder-subsection{display:grid}.draft-list{gap:16px}.draft-group{gap:8px}.draft-group>p{margin:0;color:#687683;font-size:12px;font-weight:900;text-transform:uppercase}.draft-list button{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;width:100%;border:1px solid #dfe7ea;border-radius:24px;background:#fff;padding:14px;color:#151a1f;text-align:left}.draft-list button.active,.draft-list button:hover{border-color:#008060;background:#effaf6;box-shadow:0 14px 28px #00806017}.draft-list button span:nth-child(2){display:grid;min-width:0;gap:4px}.draft-list button strong{overflow:hidden;font-size:19px;line-height:1.08;text-overflow:ellipsis}.draft-list small{overflow:hidden;color:#687683;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.draft-list em{border-radius:999px;background:#eef3f5;color:#53616e;padding:6px 8px;font-size:11px;font-style:normal;font-weight:900}.draft-icon{width:54px;height:54px;border-radius:18px;background:#e8f5f1;color:#008060}.build-another{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;border:1px dashed #c8d1d6;border-radius:24px;background:#fbfcfd;padding:14px;color:#151a1f;text-align:left}.build-another strong{font-size:19px;line-height:1.08}.build-another small{color:#5f6d7a;line-height:1.35;white-space:normal}.builder-workbench{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,440px);gap:22px;align-items:start}.builder-tabs,.overview-panel,.definition-fields,.overview-grid,.overview-step-grid,.wizard-modal,.wizard-step,.wizard-footer,.wizard-progress{display:grid}.builder-tabs,.overview-panel{grid-column:1 / -1}.builder-tabs{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.builder-tabs button{display:grid;gap:3px;min-height:72px;border:1px solid #dfe7ea;border-radius:18px;background:#fff;color:#151a1f;padding:12px;text-align:left}.builder-tabs button.active{border-color:#008060;background:#effaf6;box-shadow:0 14px 28px #00806017}.builder-tabs span,.overview-grid small,.overview-step-grid span{color:#65737f;font-size:12px;font-weight:800;line-height:1.3}.overview-panel{gap:18px}.overview-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.overview-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.overview-grid article,.overview-step-grid button{min-width:0;border:1px solid #dfe7ea;border-radius:20px;background:#fbfcfd;padding:16px}.overview-grid article{display:grid;gap:7px}.overview-grid strong{color:#151a1f;font-size:22px;line-height:1.1}.overview-grid p,.overview-step-grid span{margin:0;overflow-wrap:anywhere}.overview-grid code{border-radius:6px;background:#eef3f5;color:#26343e;padding:2px 5px}.overview-step-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.overview-step-grid button{display:grid;gap:5px;color:#151a1f;text-align:left}.overview-step-grid button:hover{border-color:#008060;background:#effaf6}.setup-preview{min-width:0;border:1px solid #dfe7ea;border-radius:18px;background:#fff;padding:12px}.setup-preview summary{cursor:pointer;color:#53616e;font-weight:850}.setup-preview pre{max-height:360px;margin:12px 0 0;overflow:auto;border-radius:14px;background:#151a1f;color:#f7fbff;padding:14px;white-space:pre-wrap;overflow-wrap:anywhere}.panel-overview .editor-panel,.panel-overview .build-pipeline,.panel-definition .overview-panel,.panel-memory .overview-panel,.panel-knowledge .overview-panel,.panel-sandbox .overview-panel,.panel-review .overview-panel,.panel-definition .memory-fields,.panel-definition .session-fields,.panel-definition .build-pipeline,.panel-memory .definition-fields,.panel-memory .build-pipeline,.panel-knowledge .editor-panel,.panel-sandbox .editor-panel,.panel-review .editor-panel{display:none}.panel-knowledge .build-pipeline,.panel-sandbox .build-pipeline,.panel-review .build-pipeline{grid-column:1 / -1;position:static;max-height:none;overflow:visible}.panel-knowledge .build-pipeline,.panel-sandbox .build-pipeline,.panel-review .build-pipeline{grid-template-columns:minmax(0,720px)}.panel-knowledge .sandbox-panel,.panel-knowledge .review-panel,.panel-sandbox .knowledge-panel,.panel-sandbox .review-panel,.panel-review .knowledge-panel,.panel-review .sandbox-panel{display:none}.editor-panel{gap:22px}.definition-fields{gap:16px}.panel-heading{justify-content:space-between;gap:16px}.panel-heading h2{margin:0;font-size:clamp(25px,2vw,34px);line-height:1.1}.panel-heading.compact h2{font-size:25px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.builder-shell .ag-field{gap:8px}.builder-shell .ag-field input,.builder-shell .ag-field select,.builder-shell .ag-field textarea{border-radius:18px;font-size:16px;font-weight:550;letter-spacing:0}.builder-shell .ag-field input,.builder-shell .ag-field select{min-height:56px;padding:12px 16px}.builder-shell .ag-field textarea{padding:15px 16px}.builder-subsection{gap:16px;border-top:1px solid #e8edf0;padding-top:22px}.subsection-title{align-items:flex-start;gap:12px}.subsection-title svg{margin-top:4px}.subsection-title h3{margin:0;font-size:24px;line-height:1.1}.subsection-title p,.panel-copy{margin:7px 0 0;line-height:1.45}.memory-editor,.prompt-editor{gap:10px}.schema-label-row,.prompt-label-row{display:grid;gap:10px;color:#687683;font-size:12px;font-weight:900;text-transform:uppercase}.schema-label-row{grid-template-columns:210px minmax(0,1fr)}.prompt-label-row{grid-template-columns:minmax(120px,.8fr) minmax(120px,.8fr) minmax(220px,1.7fr)}.schema-row,.prompt-row{gap:10px;min-width:0}.schema-row input,.prompt-row input{min-width:0;min-height:52px;border:1px solid #dfe5e8;border-radius:18px;background:#fff;color:#151a1f;padding:12px 14px;font-weight:550}.schema-row input:first-child{flex:0 0 210px}.schema-row input:last-child,.prompt-row input:last-child{flex:1 1 auto}.prompt-row{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(120px,.8fr) minmax(220px,1.7fr)}.memory-examples{flex-wrap:wrap;gap:8px}.memory-examples span{border-radius:999px;background:#eef3f5;color:#53616e;padding:8px 11px;font-size:13px;font-weight:800}.build-pipeline{position:sticky;top:92px;gap:16px;max-height:calc(100vh - 112px);min-width:0;overflow-x:hidden;overflow-y:auto}.pipeline-panel{gap:14px;min-width:0;overflow:hidden}.pipeline-panel .ag-button,.pipeline-panel .ag-button-secondary{width:100%;min-height:52px;border-radius:18px;font-size:16px}.ag-button-danger{display:inline-flex;min-height:46px;align-items:center;justify-content:center;gap:8px;border:1px solid #edc0bd;border-radius:14px;background:#fff5f4;color:#a33838;padding:10px 14px;font-weight:900}.result-box{display:grid;gap:10px;min-width:0;border:1px solid #cfe4dc;border-radius:20px;background:#f2fbf7;padding:14px;overflow:hidden}.result-box p,.submitted-box p{margin:0;line-height:1.45;overflow-wrap:anywhere}.test-chat-response{border-radius:14px;background:#fff;padding:12px;color:#53616e;white-space:pre-wrap}.result-box dl{flex-wrap:wrap;gap:8px;margin:0}.result-box dl div{gap:6px;border-radius:999px;background:#fff;padding:7px 10px}.result-box dt{color:#65737f;font-size:12px;font-weight:850}.result-box dd{margin:0;font-size:12px;font-weight:850;overflow-wrap:anywhere}.submitted-box{gap:10px;border:1px solid #b8d8cf;border-radius:20px;background:#e8f5f1;color:#00684f;padding:14px}.wizard-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:grid;place-items:center;background:#151a1f6b;padding:18px}.wizard-modal{width:min(980px,100%);max-height:min(860px,calc(100vh - 36px));overflow:auto;gap:18px;border:1px solid #dfe7ea;border-radius:28px;background:#fff;padding:24px;box-shadow:0 32px 90px #151a1f38}.wizard-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.wizard-header h2{margin:0;font-size:clamp(30px,4vw,52px);line-height:1}.icon-close{display:grid;width:42px;height:42px;place-items:center;border:1px solid #dfe7ea;border-radius:14px;background:#fff;color:#151a1f}.wizard-progress{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.wizard-progress button{display:flex;align-items:center;gap:8px;min-height:48px;border:1px solid #dfe7ea;border-radius:14px;background:#fff;color:#53616e;padding:8px 10px;font-weight:900}.wizard-progress span{display:grid;width:26px;height:26px;place-items:center;border-radius:999px;background:#eef3f5;color:#53616e;font-size:12px}.wizard-progress button.active,.wizard-progress button.complete{border-color:#008060;background:#effaf6;color:#00684f}.wizard-progress button.active span,.wizard-progress button.complete span{background:#008060;color:#fff}.wizard-step{gap:16px}.wizard-step h3{margin:0;color:#151a1f;font-size:28px;line-height:1.1}.wizard-step>p{margin:0;color:#5f6d7a;font-size:17px;line-height:1.4}.wizard-footer{grid-template-columns:auto minmax(0,auto);justify-content:end;gap:10px;border-top:1px solid #e8edf0;padding-top:16px}@media(max-width:1280px){.builder-stat-grid,.builder-guide{grid-template-columns:repeat(2,minmax(0,1fr))}.builder-layout,.builder-workbench{grid-template-columns:1fr}.builder-tabs,.overview-grid,.overview-step-grid,.wizard-progress{grid-template-columns:repeat(2,minmax(0,1fr))}.draft-rail,.build-pipeline{position:static;max-height:none}}@media(max-width:900px){.builder-topbar{align-items:flex-start;flex-direction:column}.builder-nav,.topbar-actions{width:100%;justify-content:flex-start}.topbar-action{flex:1 1 auto}}@media(max-width:720px){.builder-main{padding:26px 12px 48px}.builder-hero h1{font-size:54px}.builder-stat-grid,.builder-guide,.form-grid,.builder-tabs,.overview-grid,.overview-step-grid,.schema-label-row,.prompt-label-row,.prompt-row,.wizard-progress,.wizard-footer{grid-template-columns:1fr}.draft-rail,.editor-panel,.pipeline-panel{padding:18px}.schema-row{display:grid}.schema-row input:first-child{flex-basis:auto}.draft-list button{grid-template-columns:auto minmax(0,1fr)}.draft-list em{grid-column:2;width:fit-content}}
