:root{color:#172033;background:#f3f1ec;font-family:Segoe UI Variable,Segoe UI,system-ui,sans-serif;font-synthesis:none;--ink: #101928;--muted: #6d7584;--paper: #fbfaf7;--line: #ddd9d0;--accent: #6558e8}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#f3f1ec}body:has(.embed-chat-panel){min-width:0;background:#fbfaf7}button,input,select,textarea{font:inherit}button{cursor:pointer}h1,h2,strong{font-family:Segoe UI Variable Display,Segoe UI,system-ui,sans-serif}h1,h2,p{margin-top:0}.eyebrow{margin-bottom:12px;color:#796ef0;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}.muted{color:var(--muted);line-height:1.6}.auth-page{position:relative;min-height:100vh;display:grid;grid-template-columns:minmax(360px,46%) 1fr}.login-github-link{position:absolute;z-index:3;top:22px;right:24px;height:38px;padding:0 6px 0 12px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;color:#343b49;background:#ffffffe6;box-shadow:0 5px 18px #1b1f2b12;text-decoration:none;font-size:12px;font-weight:750;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}.login-github-link:hover{border-color:#aaa3da;box-shadow:0 7px 22px #1b1f2b1f;transform:translateY(-1px)}.login-github-link:focus-visible{outline:3px solid rgba(101,88,232,.22);outline-offset:2px}.login-github-link>svg{width:18px;height:18px;fill:currentColor}.github-star-count{height:26px;min-width:42px;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;gap:5px;border-left:1px solid var(--line);color:#5a6070;font-variant-numeric:tabular-nums}.github-star-count svg{width:13px;height:13px;fill:#d49b22}.auth-story{position:relative;overflow:hidden;padding:52px clamp(38px,6vw,92px);display:flex;flex-direction:column;justify-content:space-between;color:#f8f6ef;background:radial-gradient(circle at 85% 15%,#373d68 0,transparent 28%),linear-gradient(145deg,#111a2a,#182438 68%,#23264c)}.auth-story:after{content:"";position:absolute;width:360px;height:360px;border:1px solid rgba(255,255,255,.09);border-radius:50%;right:-150px;bottom:-120px;box-shadow:0 0 0 55px #ffffff06,0 0 0 110px #ffffff05}.brand-mark{width:54px;height:54px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.22);border-radius:16px;color:#fff;background:#ffffff14;font-weight:700;letter-spacing:-.04em}.brand-mark.brand-logo{overflow:hidden;padding:0;border-radius:50%;background:transparent}.brand-logo img{width:100%;height:100%;display:block;object-fit:contain}.auth-story h1{margin-bottom:12px;font-size:clamp(48px,7vw,82px);line-height:.95;letter-spacing:-.06em}.story-copy{color:#b8c1d0;font-size:20px}.story-grid{position:relative;z-index:1;display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#d7daed;font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase}.story-grid span{padding:9px 12px;border:1px solid rgba(255,255,255,.13);border-radius:999px;background:#ffffff0d}.story-grid i{width:20px;height:1px;background:#6558e8}.story-note,blockquote{position:relative;z-index:1;max-width:420px;color:#8994a7;font-size:14px;line-height:1.7}blockquote{margin:0;padding-left:20px;border-left:2px solid #6558e8;font-size:18px;color:#cbd2df}.auth-panel{padding:44px 28px;display:grid;place-items:center;background:var(--paper)}.auth-card{width:min(100%,470px)}.auth-card.compact{width:min(100%,420px)}.auth-card h2{margin-bottom:10px;font-size:36px;letter-spacing:-.045em}.auth-card label{display:block;margin:22px 0 8px;color:#343b49;font-size:13px;font-weight:700}.auth-card input,.auth-card select{width:100%;height:48px;padding:0 14px;border:1px solid var(--line);border-radius:10px;outline:none;color:var(--ink);background:#fff;transition:border .2s,box-shadow .2s}.auth-card input:focus,.auth-card select:focus{border-color:#786cf2;box-shadow:0 0 0 3px #6558e81f}.password-reset-link{width:100%;margin-top:14px;padding:9px;border:0;color:#5c50d7;background:transparent;font-weight:700;cursor:pointer}.password-reset-link:disabled{opacity:.55;cursor:default}.reset-path{margin:20px 0 6px;padding:14px;border:1px solid #d8d3ff;border-radius:10px;background:#f5f3ff}.reset-path span,.reset-path small{display:block;color:var(--muted);font-size:12px}.reset-path code{display:block;margin:8px 0;overflow-wrap:anywhere;color:#352d8c;font-weight:700}.request-reset-again{margin-top:18px}.primary-button{width:100%;height:50px;margin-top:28px;border:0;border-radius:10px;color:#fff;background:var(--ink);font-weight:700;transition:transform .15s,opacity .15s}.primary-button:hover:not(:disabled){transform:translateY(-1px)}.primary-button:disabled{cursor:not-allowed;opacity:.38}.field-error,.form-error{margin:8px 0 0;color:#bd3e52;font-size:13px}.field-hint{margin:6px 0 0;color:var(--muted);font-size:12px}.form-error{padding:11px 13px;border-radius:8px;background:#fff0f1}.admin-shell{min-height:100vh;display:grid;grid-template-columns:238px 1fr}.sidebar{position:sticky;top:0;height:100vh;padding:26px 18px 20px;display:flex;flex-direction:column;color:#d9deea;background:var(--ink)}.sidebar-brand{display:flex;align-items:center;gap:12px;padding:0 8px 28px;color:#fff}.brand-mark.small{width:34px;height:34px;border-radius:10px;font-size:11px}.nav-section{display:block;padding:28px 12px 10px;color:#667085;font-size:10px;font-weight:700;letter-spacing:.16em}.nav-link{margin:3px 0;padding:11px 12px;display:flex;gap:12px;border-radius:8px;color:#aeb7c6;text-decoration:none;font-size:14px}.nav-link.router-link-active{color:#fff;background:#ffffff14}.nav-link.disabled{opacity:.58;cursor:default}.sidebar-footer{margin-top:auto;display:grid;gap:4px}.text-button{padding:10px 12px;border:0;text-align:left;color:#9aa5b6;background:transparent}.text-button:hover{color:#fff}.admin-main{min-width:0}.topbar{height:70px;padding:0 34px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);color:var(--muted);background:#fbfaf7d9;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);font-size:13px}.status-dot{width:7px;height:7px;margin-right:7px;display:inline-block;border-radius:50%;background:#37a36b;box-shadow:0 0 0 4px #37a36b1a}.account-menu{position:relative}.admin-identity{display:flex;align-items:center;gap:12px;padding:0;border:0;color:inherit;background:transparent;cursor:pointer}.admin-identity b{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;color:#fff;background:#6558e8;font-size:11px}.account-dropdown{position:absolute;z-index:20;top:calc(100% + 9px);right:0;width:180px;padding:7px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 14px 34px #141c2d29}.account-dropdown button{width:100%;padding:10px 12px;border:0;border-radius:7px;color:var(--ink);background:transparent;text-align:left;cursor:pointer}.account-dropdown button:hover{background:#f2f0ff}.password-dialog label{display:grid;gap:7px;margin-top:14px;color:#343b49;font-size:12px;font-weight:700}.password-dialog input{width:100%;height:44px;padding:0 12px;border:1px solid var(--line);border-radius:9px}.overview-page{padding:54px clamp(28px,5vw,72px)}.overview-page>h1{margin-bottom:8px;font-size:clamp(34px,4vw,52px);letter-spacing:-.05em}.overview-subtitle{max-width:620px}.metric-grid{margin-top:36px;display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:16px}.metric-card{padding:22px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;border:1px solid var(--line);border-radius:14px;background:var(--paper);box-shadow:0 8px 30px #1f233009}.metric-card p{margin:5px 0 0;color:var(--muted);font-size:12px}.metric-card>b{font-size:24px}.metric-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:10px}.violet{color:#6558e8;background:#eeecff}.blue{color:#3276b9;background:#e6f2fb}.amber{color:#ad7421;background:#fff1da}.green{color:#2b8a5c;background:#e5f5ec}.journey-card{margin-top:24px;padding:34px;display:grid;grid-template-columns:1fr 1fr;gap:30px;border-radius:16px;color:#fff;background:linear-gradient(135deg,#19263b,#252a50)}.journey-card h2{margin-bottom:8px;font-size:28px}.journey-card p{color:#aeb8c8;line-height:1.6}.journey-start{width:fit-content;margin-top:18px;padding:10px 16px;display:inline-flex;border-radius:8px;color:#182438;background:#f8f6ef;font-size:13px;font-weight:700;text-decoration:none}.journey-start:hover{background:#fff}.journey-card ol{margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:12px;list-style:none}.journey-card li{padding:13px;border:1px solid rgba(255,255,255,.1);border-radius:10px;color:#d8ddea;font-size:13px;background:#ffffff0a}.journey-card li span{margin-right:8px;color:#8d83ff;font-weight:700}.management-page{padding:48px clamp(28px,5vw,72px)}.narrow-page{max-width:1040px}.page-heading{margin-bottom:30px;display:flex;justify-content:space-between;gap:24px;align-items:end}.page-heading h1{margin-bottom:7px;font-size:clamp(32px,4vw,48px);letter-spacing:-.05em}.page-heading p:last-child{margin-bottom:0}.with-actions{align-items:center}.import-panel,.settings-panel{padding:26px;border:1px solid var(--line);border-radius:16px;background:var(--paper);box-shadow:0 10px 32px #1f233009}.form-grid,.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid label,.settings-grid label{display:grid;gap:8px;color:#343b49;font-size:12px;font-weight:700}.form-grid input,.settings-grid input,.settings-grid select{width:100%;height:44px;padding:0 12px;border:1px solid var(--line);border-radius:9px;color:var(--ink);background:#fff}.file-field{grid-column:1 / -1}.file-field input{height:auto;padding:10px}.primary-action,.secondary-action,.danger-action{padding:10px 15px;border-radius:9px;font-weight:700}.primary-action{margin-top:20px;border:0;color:#fff;background:var(--ink)}.primary-action:disabled{cursor:not-allowed;opacity:.4}.form-actions{display:flex;align-items:center;gap:10px}.form-actions .secondary-action{margin-top:20px}.secondary-action{border:1px solid var(--line);color:#313848;background:#fff}.danger-action{border:0;color:#ad3d4f;background:transparent}.row-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.editor-actions{margin:0;justify-content:flex-start}.success-text{color:#247352;font-weight:700}.resource-list{margin-top:20px;display:grid;gap:10px}.resource-row{padding:17px 18px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}.resource-row p{margin:4px 0 0;color:var(--muted);font-size:12px}.compact-resource-list{gap:7px}.compact-resource-list .resource-row{padding:10px 12px;grid-template-columns:auto minmax(150px,1fr) auto auto;gap:9px}.compact-resource-list .resource-icon{width:34px;height:34px;border-radius:8px}.compact-resource-list .resource-copy{min-width:0;line-height:1.15}.compact-resource-list .resource-copy strong{display:block}.compact-resource-list .resource-copy p{margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact-resource-list .row-actions{margin-left:0;gap:6px}.compact-resource-list .row-actions button,.compact-resource-list .row-actions>label{padding:7px 10px}.source-inline-editor{grid-column:2 / -1;display:grid;grid-template-columns:1fr 1.5fr;align-items:end;gap:12px}.source-inline-editor label:not(.checkbox-label){display:grid;gap:7px;color:#343b49;font-size:12px;font-weight:700}.source-inline-editor input:not([type=checkbox]){height:42px;padding:0 11px;border:1px solid var(--line);border-radius:9px}.source-refresh-file{position:relative;overflow:hidden;cursor:pointer}.source-refresh-file input{position:absolute;width:1px;height:1px;opacity:0}.refresh-notice{color:#26734d!important;font-weight:700}.checkbox-label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.resource-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:10px;color:#6558e8;background:#eeecff;font-size:10px;font-weight:800}.status-pill{padding:5px 9px;border-radius:999px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.status-pill.enabled{color:#247550;background:#e2f5ea}.status-pill.disabled{color:#7b7480;background:#ebe8e5}.empty-state{padding:34px;border:1px dashed #cbc6bc;border-radius:14px;text-align:center;color:var(--muted)}.segmented{padding:3px;display:flex;border:1px solid var(--line);border-radius:10px;background:#ebe9e3}.segmented button{padding:7px 12px;border:0;border-radius:7px;color:var(--muted);background:transparent;font-size:12px}.segmented button.active{color:var(--ink);background:#fff;box-shadow:0 2px 7px #1f233014}.import-mode{width:fit-content;margin-bottom:18px}.import-private{margin:16px 0}.source-filter-banner{margin:-12px 0 20px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dcd7ff;border-radius:11px;color:#4f46a5;background:#f2f0ff;font-size:13px;font-weight:700}.tool-source-group{margin-top:28px}.tool-search{margin-top:22px;display:grid;gap:7px;color:#343b49;font-size:12px;font-weight:700}.tool-search input{width:min(560px,100%);height:44px;padding:0 14px;border:1px solid var(--line);border-radius:10px;background:var(--paper);font:inherit;font-weight:500}.tool-search input:focus{border-color:#6558e8;outline:3px solid #eeecff}.tool-bulk-bar{position:sticky;z-index:3;top:12px;margin:18px 0 24px;padding:14px 16px;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px 18px;border:1px solid #d8d3f4;border-radius:12px;background:#faf9fff7;box-shadow:0 8px 24px #211b5714}.tool-bulk-bar strong{white-space:nowrap;font-size:13px}.tool-bulk-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}.tool-bulk-error,.tool-bulk-summary,.tool-bulk-failures{grid-column:1 / -1;margin:0;font-size:13px}.tool-bulk-error,.tool-bulk-failures{color:var(--danger)}.tool-bulk-failures{padding-left:20px;display:grid;gap:4px}.tool-select{display:inline-flex;align-items:center}.tool-select input{width:18px;height:18px;margin:0;accent-color:#6558e8;cursor:pointer}.tool-select input:focus-visible{outline:3px solid #d9d5ff;outline-offset:3px}.confirmation-dialog{width:min(480px,calc(100% - 48px));margin:auto;padding:26px;border:0;border-radius:16px;background:var(--paper);box-shadow:0 24px 70px #12141c4d}.confirmation-dialog::backdrop{background:#12141c80}.confirmation-dialog:focus{outline:3px solid #d9d5ff;outline-offset:3px}.confirmation-dialog h2{margin:0 0 10px}.confirmation-dialog p{color:var(--muted);line-height:1.55}.confirmation-actions{margin-top:22px;display:flex;justify-content:flex-end;gap:10px}.tool-source-heading{padding-bottom:10px;display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);cursor:pointer}.tool-source-heading:before{content:"▸";color:#6558e8;font-size:13px}.tool-source-group[open]>.tool-source-heading:before{content:"▾"}.tool-source-group[open]>.tool-source-heading{margin-bottom:12px}.tool-tag-group{margin:12px 0 20px 24px}.tool-tag-heading{display:flex;align-items:center;gap:10px;padding:10px 0;cursor:pointer;list-style:none}.tool-tag-heading::-webkit-details-marker{display:none}.tool-tag-heading:before{content:"▸";color:var(--muted)}.tool-tag-group[open]>.tool-tag-heading:before{content:"▾"}.tool-tag-heading h3{margin:0;font-size:15px}.tool-tag-heading span{color:var(--muted);font-size:12px}.tool-source-heading h2{flex:1;margin:0;font-size:20px;letter-spacing:-.025em}.tool-source-heading span{color:var(--muted);font-size:12px;font-weight:700}.tool-grid{display:grid;grid-template-columns:repeat(3,minmax(230px,1fr));gap:16px}.tool-card{min-height:230px;padding:20px;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;background:var(--paper)}.tool-card-head{display:flex;justify-content:space-between;align-items:center}.tool-card-head code{padding:5px 7px;border-radius:6px;color:#6558e8;background:#eeecff;font-size:10px;font-weight:800}.tool-card h2{margin:14px 0 8px;font-size:20px;letter-spacing:-.025em;overflow-wrap:anywhere}.tool-card>p{color:var(--muted);font-size:13px;line-height:1.5}.tool-card-description{min-height:2.7em;margin:16px 0 0;color:var(--ink)!important;font-size:15px!important;font-weight:800;line-height:1.45;overflow-wrap:anywhere}.description-edit-action{align-self:flex-start;padding:0;border:0;color:#6558e8;background:transparent;font-size:12px;cursor:pointer}.tool-description-editor{margin:8px 0 14px}.tool-description-editor label,.tool-description-editor label span{display:block}.tool-description-editor label span{margin-bottom:6px;color:var(--muted);font-size:12px;font-weight:700}.tool-description-editor textarea{width:100%;resize:vertical}.tool-description-editor>div{margin-top:8px;display:flex;gap:8px}.tool-parameters{margin:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.tool-parameters summary{padding:11px 0;cursor:pointer;color:#4f5665;font-size:12px;font-weight:800}.parameter-list{padding-bottom:10px;display:grid;gap:8px}.parameter-row{padding:9px;border-radius:8px;background:#f5f3ee}.parameter-heading{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.parameter-heading code{color:var(--ink);font-size:11px;font-weight:800}.parameter-heading span,.parameter-heading b{padding:2px 5px;border-radius:5px;color:#526071;background:#e7eaf0;font-size:9px;font-weight:800}.parameter-heading b{margin-left:auto;color:#9a5228;background:#ffeadc}.parameter-heading b.optional{color:#647080;background:#e5e8eb}.parameter-row p{margin:6px 0 0;color:var(--muted);font-size:11px;line-height:1.4}.parameter-guidance{display:grid;gap:5px;margin-top:8px}.parameter-guidance p{margin:0;display:grid;grid-template-columns:76px minmax(0,1fr);gap:8px}.parameter-guidance strong{color:#526071;font-size:10px}.parameter-guidance span,.parameter-guidance code{min-width:0;overflow-wrap:anywhere;color:var(--muted);font-size:11px}.parameter-edit-action{margin-top:8px;padding:0;border:0;color:#6558e8;background:transparent;font-size:11px;font-weight:700;cursor:pointer}.parameter-editor{margin-top:10px;padding-top:10px;display:grid;gap:9px;border-top:1px solid #dedad2}.parameter-editor label{display:grid;gap:5px;color:#526071;font-size:10px;font-weight:800}.parameter-editor textarea{width:100%;padding:8px;border:1px solid var(--line);border-radius:7px;color:var(--ink);background:#fff;font:inherit;font-size:11px;resize:vertical}.parameter-editor-hint{margin:0!important}.parameter-editor-actions{display:flex;gap:7px}.parameter-editor-actions .primary-action{margin:0}.parameter-editor-actions button{padding:7px 10px;font-size:11px}.parameter-save-success{color:#247352!important;font-weight:700}.parameter-save-error{color:#9f2424!important;font-weight:700}.tool-card footer{margin-top:auto;padding-top:16px;display:flex;justify-content:space-between;border-top:1px solid #ebe7df}.wide{grid-column:1 / -1}.toggle-row{padding-bottom:22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.toggle-row span{display:grid;gap:5px}.toggle-row small{color:var(--muted)}.toggle-row input{width:42px;height:22px;accent-color:#6558e8}.settings-grid{margin-top:22px}.agent-mode-note{margin:18px 0 0;padding:12px 14px;border-radius:9px;color:#4f46a5;background:#f2f0ff;font-size:13px}.agent-actions{margin:0;justify-content:flex-start}.agent-error{margin:16px 0 0;padding:12px 14px;border:1px solid #e7b7b7;border-radius:9px;color:#9f2424;background:#fff4f4}.agent-management-page{max-width:1440px}.heading-action{margin:0;white-space:nowrap}.page-error{margin:-14px 0 20px}.agent-workspace{display:grid;grid-template-columns:minmax(230px,300px) minmax(0,1fr);gap:20px;align-items:start}.agent-roster{position:sticky;top:90px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--paper)}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.panel-heading h2,.panel-heading h3{margin:0}.compact-heading{align-items:center}.compact-heading h2{font-size:17px}.compact-heading h3{font-size:15px}.compact-heading p{margin:4px 0 0;font-size:12px}.agent-list{margin-top:14px;display:grid;gap:7px}.agent-list-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:6px}.agent-list-item{width:100%;padding:11px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid transparent;border-radius:10px;text-align:left;color:var(--ink);background:transparent}.agent-list-item:hover,.agent-list-item.active{border-color:#d7d2ff;background:#f2f0ff}.agent-list-item:disabled{cursor:wait;opacity:.62}.agent-list-item>span:nth-child(2){min-width:0;display:grid;gap:3px}.agent-list-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.agent-list-item small{color:var(--muted);font-size:10px}.agent-list-item b{padding:3px 6px;border-radius:999px;color:#4f46a5;background:#e6e2ff;font-size:9px}.agent-chat-action{align-self:center;padding:7px 9px;border:1px solid #d7d2ff;border-radius:8px;color:#5146b5;background:#f7f5ff;text-decoration:none;font-size:11px;font-weight:700}.agent-chat-action:hover:not(:disabled){background:#ebe8ff}.agent-chat-action:disabled{cursor:not-allowed;opacity:.45}.agent-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;color:#5d51d3;background:#e9e6ff;font-size:10px;font-weight:800}.agent-detail{min-width:0;display:grid;gap:16px}.settings-panel form{display:grid;gap:10px}.settings-panel label{display:grid;gap:8px;font-size:12px;font-weight:700}.settings-panel input{height:44px;padding:0 12px;border:1px solid var(--line);border-radius:9px}.settings-panel .primary-action{width:fit-content}.oauth-panel{margin-top:20px}.oauth-panel .panel-heading{margin-bottom:20px}.oauth-panel .primary-action{width:fit-content}.oauth-callbacks{grid-column:1 / -1;padding:12px;border-radius:9px;background:#f4f2ed;overflow-wrap:anywhere}.oauth-callbacks p{margin:4px 0;font-size:12px}.form-grid select,.form-grid textarea{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:9px;color:var(--ink);background:#fff}.form-grid select{height:44px}.form-grid textarea{min-height:88px;resize:vertical}.auth-form-actions,.auth-test-fields{grid-column:1 / -1}.auth-form-actions .secondary-action{margin-top:20px}.auth-test-fields{padding:14px;display:grid;grid-template-columns:1fr 1fr;gap:14px;border:1px solid var(--line);border-radius:10px}.auth-test-fields legend{padding:0 6px;color:var(--muted);font-size:12px;font-weight:800}.auth-test-success{margin:14px 0 0;color:#247352;font-size:13px;font-weight:700}.embed-admin-panel{padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}.embed-create-form{margin-top:18px}.embed-create-form .embed-origins{grid-column:1 / -1}.embed-create-form .primary-action{width:fit-content;margin:0}.embed-list{margin-top:18px;display:grid;gap:10px}.embed-row{grid-template-columns:minmax(0,1fr) auto}.embed-row code{display:block;margin-top:6px;overflow-wrap:anywhere;color:#6558e8;font-size:10px}.embed-row .row-actions{grid-column:1 / -1;margin:0;flex-wrap:wrap}.embed-row .row-actions .secondary-action{margin:0;text-decoration:none;font-size:11px}.embed-editor{grid-column:1 / -1}.embed-editor summary{cursor:pointer;color:var(--muted);font-size:12px;font-weight:700}.embed-editor .form-grid{margin-top:12px}.embed-editor .primary-action{width:fit-content;margin:0}.agent-lifecycle{padding:12px 16px;display:flex;justify-content:flex-end;gap:8px;border:1px solid var(--line);border-radius:12px;background:#fbfaf7b3}.agent-lifecycle button:disabled{cursor:not-allowed;opacity:.45}.agent-editor-panel .panel-heading .eyebrow,.agent-key-panel .panel-heading .eyebrow{margin-bottom:7px}.agent-fields{margin-top:22px}.skill-binding{margin-top:22px;padding-top:22px;border-top:1px solid var(--line)}.bound-skill-list{margin:14px 0 0;padding:0;display:grid;gap:7px;list-style:none}.bound-skill-list li{padding:10px 11px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid var(--line);border-radius:9px;background:#f7f5f0}.bound-skill-list li>div:nth-child(2){display:flex;align-items:center;flex-wrap:wrap;gap:7px}.skill-order{width:24px;height:24px;display:grid;place-items:center;border-radius:7px;color:#4f46a5;background:#e9e6ff;font-size:10px;font-weight:800}.stopped-label{padding:3px 6px;border-radius:999px;color:#7b7480;background:#e5e1dd;font-size:9px;font-weight:800;text-transform:uppercase}.skill-order-actions{display:flex;gap:4px}.skill-order-actions button{min-width:30px;height:30px;padding:0;border:1px solid var(--line);border-radius:7px;background:#fff}.skill-order-actions button:disabled{cursor:not-allowed;opacity:.35}.skill-order-actions .danger-action{border-color:transparent}.empty-inline{margin:14px 0 0;padding:14px;border:1px dashed #cbc6bc;border-radius:9px;color:var(--muted);text-align:center;font-size:12px}.skill-search{margin-top:16px;display:grid;gap:7px;color:#343b49;font-size:12px;font-weight:700}.skill-search input,.key-create-grid input{width:100%;height:42px;padding:0 11px;border:1px solid var(--line);border-radius:9px;color:var(--ink);background:#fff}.available-skills{max-height:210px;margin-top:8px;display:grid;gap:6px;overflow-y:auto}.available-skills>button{width:100%;padding:9px 11px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:9px;text-align:left;color:var(--ink);background:#fff}.available-skills>button:hover{border-color:#8d83ff}.available-skills>button>span:first-child{display:grid;gap:3px}.available-skills small{color:var(--muted)}.key-create-grid{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:12px}.key-create-grid label{display:grid;gap:7px;color:#343b49;font-size:12px;font-weight:700}.key-create-grid .primary-action{margin:0;height:42px}.secret-dialog{position:static;width:100%;margin:18px 0 0;padding:18px;border:1px solid #b9b2ff;border-radius:12px;color:var(--ink);background:#f2f0ff}.secret-dialog p{margin-bottom:8px}.secret-dialog code{padding:11px 12px;display:block;overflow-wrap:anywhere;border-radius:8px;color:#352d8c;background:#fff;font-weight:700}.secret-dialog .row-actions{margin-top:12px;justify-content:flex-end}.secret-dialog .primary-action{margin:0}.copy-feedback{margin:10px 0 0!important;color:#247352;font-size:12px;font-weight:700}.key-list{margin-top:18px;display:grid;gap:8px}.key-row{padding:13px;display:grid;grid-template-columns:minmax(130px,.8fr) minmax(280px,1.5fr) auto;align-items:center;gap:14px;border:1px solid var(--line);border-radius:10px}.key-row>div:first-child{display:grid;gap:5px}.key-row code{color:#6558e8;font-size:11px}.key-row dl{margin:0;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.key-row dl div{min-width:0}.key-row dt{color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase}.key-row dd{margin:3px 0 0;font-size:11px}.key-inline-editor{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:12px}.key-inline-editor label{display:grid;gap:6px;color:#343b49;font-size:11px;font-weight:700}.key-inline-editor input{height:40px;padding:0 10px;border:1px solid var(--line);border-radius:8px}.key-inline-editor .primary-action{margin:0}.mutedPanel{opacity:.55}.skill-workbench{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,42%);gap:20px;align-items:start}.skill-editor textarea,.block-label input,.block-label textarea{width:100%;padding:12px;border:1px solid var(--line);border-radius:9px;color:var(--ink);background:#fff;resize:vertical}.block-label{margin-top:18px;display:grid;gap:8px;color:#343b49;font-size:12px;font-weight:700}.prompt-field{position:relative}.tool-mention-menu{position:absolute;z-index:5;left:0;right:0;max-height:250px;overflow-y:auto;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 14px 36px #1b1f2b2e}.tool-mention-menu button{width:100%;padding:10px 12px;display:grid;gap:3px;border:0;border-bottom:1px solid var(--line);text-align:left;color:var(--ink);background:#fff;cursor:pointer}.tool-mention-menu button:hover,.tool-mention-menu button.active{background:#f3f1ff}.tool-mention-menu small{color:var(--muted)}.mention-category{position:sticky;top:0;z-index:1;margin:0;padding:7px 12px;color:#5c6471;background:#ece9e2;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.bound-count{margin-top:12px;color:var(--muted);font-size:12px}.tool-reference-tray{padding:24px;border-radius:16px;color:#fff;background:linear-gradient(145deg,#152136,#25294f)}.tool-reference-tray h2{margin-bottom:6px}.tool-reference-tray .muted{color:#aeb8c8;font-size:13px}.reference-groups{max-height:620px;margin-top:14px;overflow-y:auto}.reference-source-group,.reference-tag-group{margin-top:8px}.reference-source-group>summary,.reference-tag-group>summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none}.reference-source-group>summary::-webkit-details-marker,.reference-tag-group>summary::-webkit-details-marker{display:none}.reference-source-group>summary:before,.reference-tag-group>summary:before{content:"▸";color:#9fa9bb}.reference-source-group[open]>summary:before,.reference-tag-group[open]>summary:before{content:"▾"}.reference-source-group h3,.reference-tag-group h4{margin:0}.reference-source-group h3{font-size:14px}.reference-tag-group h4{font-size:12px;color:#c6cede}.reference-source-group summary span{margin-left:auto;color:#9fa9bb;font-size:10px}.reference-tag-group{margin-left:14px}.reference-tool{width:100%;margin-top:9px;padding:12px;display:grid;gap:4px;border:1px solid rgba(255,255,255,.12);border-radius:9px;text-align:left;color:#fff;background:#ffffff0d}.reference-tool:hover{border-color:#8378fb;background:#6558e82e}.reference-tool small{color:#9fa9bb}.tool-catalog-panel{position:relative;min-height:420px;max-height:1000px;padding:22px 20px 15px;display:flex;flex-direction:column;overflow:hidden;resize:vertical;border-radius:16px;color:#fff;background:linear-gradient(145deg,#152136,#25294f)}.catalog-heading{flex:0 0 auto}.catalog-heading h2{margin:0 0 5px}.catalog-heading .muted{margin:0;color:#aeb8c8;font-size:12px}.catalog-controls{margin-top:14px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.catalog-controls label{min-width:0;display:grid;gap:4px;color:#c6cede;font-size:10px;font-weight:750}.catalog-controls .catalog-search{grid-column:1 / -1}.catalog-controls input,.catalog-controls select{min-width:0;width:100%;height:34px;padding:0 9px;border:1px solid rgba(255,255,255,.18);border-radius:7px;color:#fff;background:#26314a;font-size:11px}.catalog-controls input::placeholder{color:#aeb8c8}.catalog-controls input:focus,.catalog-controls select:focus{outline:3px solid rgba(142,132,255,.38);border-color:#a69dff}.catalog-limit{margin:9px 0 0;color:#b8c2d1;font-size:10px}.catalog-groups{min-height:0;margin-top:8px;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain}.catalog-source-group,.catalog-tag-group{margin-top:6px}.catalog-source-group>summary,.catalog-tag-group>summary{display:flex;align-items:center;gap:7px;cursor:pointer;list-style:none}.catalog-source-group>summary::-webkit-details-marker,.catalog-tag-group>summary::-webkit-details-marker{display:none}.catalog-source-group>summary:before,.catalog-tag-group>summary:before{content:"▸";color:#9fa9bb}.catalog-source-group[open]>summary:before,.catalog-tag-group[open]>summary:before{content:"▾"}.catalog-source-group h3,.catalog-tag-group h4{margin:0}.catalog-source-group h3{font-size:13px}.catalog-tag-group h4{color:#c6cede;font-size:11px}.catalog-source-group summary span{margin-left:auto;color:#9fa9bb;font-size:9px}.catalog-tag-group{margin-left:12px}.catalog-tool-row{margin-top:6px;padding:8px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:7px;border:1px solid rgba(255,255,255,.12);border-radius:8px;background:#ffffff0d}.catalog-tool-row.disabled{border-style:dashed;opacity:.72}.catalog-bind input{width:15px;height:15px;margin:0;accent-color:#8d83ff}.catalog-tool-main{min-width:0;display:grid;gap:3px}.catalog-tool-main strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.catalog-operation{min-width:0;display:flex;gap:5px;color:#aeb8c8;font-size:9px}.catalog-operation code:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.catalog-tool-meta{grid-column:2 / -1;display:flex;align-items:center;flex-wrap:wrap;gap:4px;color:#aeb8c8;font-size:9px}.catalog-tag,.catalog-state,.catalog-eligibility{padding:2px 5px;border-radius:999px;background:#ffffff17}.catalog-state{margin-left:auto;text-transform:uppercase}.catalog-state.enabled{color:#8ee8b5}.catalog-state.disabled,.catalog-eligibility.unavailable{color:#ffc09c}.catalog-eligibility{text-transform:uppercase}.catalog-reference{width:26px;height:26px;padding:0;border:1px solid rgba(255,255,255,.18);border-radius:7px;color:#fff;background:transparent;font-weight:800}.catalog-reference:disabled{cursor:not-allowed;opacity:.35}.catalog-resize-handle{width:100%;height:14px;margin-top:6px;padding:0;flex:0 0 auto;border:0;border-radius:5px;background:transparent}.catalog-resize-handle span{width:42px;height:3px;margin:auto;display:block;border-radius:2px;background:#ffffff47}.catalog-resize-handle:focus-visible{outline:2px solid #b9b2ff;outline-offset:-2px}.skill-list{margin-top:20px;display:grid;gap:10px}.chat-page{height:100vh;min-height:0;display:grid;grid-template-rows:68px minmax(0,1fr);overflow:hidden;color:var(--ink);background:#f3f1ec}.chat-header{height:68px;padding:0 clamp(20px,5vw,70px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:var(--paper);color:var(--muted);font-size:13px}.chat-brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none}.chat-brand .brand-mark{color:var(--ink);border-color:var(--line)}.chat-workspace{min-height:0;height:100%;display:grid;grid-template-columns:260px minmax(0,1fr);overflow:hidden}.chat-history{min-height:0;padding:20px 14px;overflow:hidden;border-right:1px solid var(--line);background:var(--paper)}.history-heading{margin-bottom:16px;display:flex;align-items:center;justify-content:space-between}.history-heading button{padding:7px 10px;border:1px solid var(--line);border-radius:7px;background:#fff;cursor:pointer}.history-empty{padding:12px 8px;color:var(--muted);font-size:12px}.history-row{width:100%;margin-bottom:7px;display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:center;border:1px solid transparent;border-radius:9px;background:transparent}.history-row:hover,.history-row.active{border-color:var(--line);background:#f3f1ec}.history-item{min-width:0;padding:10px 4px 10px 11px;display:grid;gap:4px;border:0;text-align:left;background:transparent;cursor:pointer}.history-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-item small{overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap}.history-delete{width:30px;height:30px;padding:7px;border:0;border-radius:7px;color:var(--muted);background:transparent;cursor:pointer;opacity:0;transition:opacity .15s ease,color .15s ease,background .15s ease}.history-row:hover .history-delete,.history-row:focus-within .history-delete,.history-row.active .history-delete{opacity:1}.history-delete:hover{color:#a52f45;background:#fff0f2}.history-delete:focus-visible{opacity:1;outline:2px solid #6558e8;outline-offset:1px}.history-delete:disabled{cursor:default;opacity:.35}.history-delete svg{width:100%;height:100%;fill:currentColor}.conversation{min-width:0;min-height:0;height:100%;display:grid;grid-template-rows:minmax(0,1fr) auto;overflow:hidden}.message-stream{min-height:0;width:100%;padding:48px max(20px,calc((100% - 820px)/2)) 32px;overflow-y:auto;overscroll-behavior:contain}.chat-empty{max-width:620px;margin:12vh auto 0;text-align:center}.chat-empty h1{margin-bottom:12px;font-size:clamp(36px,6vw,62px);letter-spacing:-.055em}.chat-empty>p:last-child{color:var(--muted)}.message{max-width:78%;margin:14px 0;padding:15px 17px;border-radius:14px;line-height:1.6;white-space:pre-wrap}.message.user{margin-left:auto;color:#fff;background:var(--ink)}.message.assistant{border:1px solid var(--line);background:var(--paper)}.message>span{display:block}.markdown-body{min-width:0;overflow-wrap:anywhere;white-space:normal}.markdown-body>:first-child{margin-top:0}.markdown-body>:last-child{margin-bottom:0}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin:1.1em 0 .45em;line-height:1.25}.markdown-body p,.markdown-body ul,.markdown-body ol,.markdown-body blockquote,.markdown-body pre,.markdown-body table{margin:.75em 0}.markdown-body ul,.markdown-body ol{padding-left:1.5em}.markdown-body blockquote{max-width:none;padding:.1em 0 .1em 1em;display:block;border-left:3px solid #8d83ff;color:var(--muted);font-size:inherit}.markdown-body code{padding:.12em .35em;border-radius:5px;background:#ece9e2;font-family:ui-monospace,Cascadia Code,Consolas,monospace;font-size:.9em}.markdown-body pre{max-width:100%;padding:13px 15px;overflow-x:auto;border-radius:9px;color:#edf1f7;background:#172033}.markdown-body pre code{padding:0;color:inherit;background:transparent}.markdown-body a{color:#4f46a5;text-decoration-thickness:1px;text-underline-offset:2px}.markdown-body table{display:block;width:max-content;min-width:100%;max-width:100%;overflow-x:auto;border-collapse:collapse;font-size:.92em}.markdown-body th,.markdown-body td{padding:8px 10px;border:1px solid #d9d4ca;text-align:left;vertical-align:top}.markdown-body th{background:#ece9e2;font-weight:800}.markdown-body tbody tr:nth-child(2n){background:#f5f3ee}.message.clarification{border-color:#d7cef9;background:#f6f3ff}.clarification-label{margin-bottom:6px;display:block;color:#574bb5;font-size:11px;letter-spacing:.04em;text-transform:uppercase}.loaded-skills{margin-top:10px;display:block;color:var(--muted);font-size:11px;font-weight:700}.chat-error{margin:16px 0;padding:12px 14px;border:1px solid #e7b7b7;border-radius:9px;color:#9f2424;background:#fff4f4}.composer{width:min(760px,calc(100% - 48px));margin:0 auto 24px;padding:10px;display:grid;grid-template-columns:1fr auto;border:1px solid var(--line);border-radius:16px;background:#fbfaf7f5;box-shadow:0 18px 55px #1b1f2b29;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.composer textarea{padding:10px;border:0;outline:0;background:transparent;resize:none}.composer>button{align-self:start;padding:10px 18px;border:0;border-radius:9px;color:#fff;background:var(--ink);font-weight:700}.agent-dock{grid-column:1 / -1;min-width:0;padding:8px 8px 2px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.agent-dock>span{flex:0 0 auto;text-align:right}.chat-suggestions{grid-column:1 / -1;min-width:0;padding:2px 8px 4px;display:flex;flex-wrap:wrap;align-items:center;gap:7px;color:var(--muted);font-size:11px}.chat-suggestions>span{margin-right:2px;font-weight:700}.chat-suggestions button{max-width:100%;padding:5px 9px;overflow:hidden;border:1px solid #d7d1f7;border-radius:999px;color:#5146ad;background:#f6f4ff;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.chat-suggestions button:hover{border-color:#a89ff5;background:#eeebff}.agent-select{min-width:0;display:flex;align-items:center;gap:8px;color:var(--ink);font-size:12px;font-weight:800}.agent-select select{min-width:180px;max-width:min(360px,55vw);padding:6px 28px 6px 9px;border:1px solid var(--line);border-radius:7px;color:var(--ink);background:#fff}.agent-select select:disabled{cursor:default;opacity:.68}.chat-login{width:min(430px,calc(100% - 40px));margin:10vh auto;padding:30px;border:1px solid var(--line);border-radius:16px;background:var(--paper)}.chat-login label{margin-top:17px;display:grid;gap:7px;font-size:12px;font-weight:700}.chat-login input{height:44px;padding:0 12px;border:1px solid var(--line);border-radius:9px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:980px){.metric-grid{grid-template-columns:1fr 1fr}.auth-page{grid-template-columns:38% 1fr}.story-grid{display:none}.agent-workspace{grid-template-columns:220px minmax(0,1fr)}.key-create-grid,.key-row,.key-inline-editor{grid-template-columns:1fr}.key-row dl{grid-template-columns:repeat(3,1fr)}.key-row .row-actions{margin:0}}@media(max-width:980px){.tool-grid{grid-template-columns:1fr 1fr}}@media(max-width:720px){.auth-page{grid-template-columns:1fr}.login-github-link{top:20px;right:20px;color:#f8f6ef;border-color:#fff3;background:#111a2ab8}.login-github-link:hover{border-color:#ffffff6b}.login-github-link .github-star-count{color:#d7daed;border-color:#fff3}.auth-story{min-height:240px;padding:30px}.auth-story h1{font-size:48px}.story-note,blockquote{display:none}.auth-panel{padding:38px 20px}.admin-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;padding:16px}.sidebar nav,.sidebar-footer{display:none}.overview-page,.management-page{padding:32px 20px}.metric-grid,.journey-card,.tool-grid,.form-grid,.settings-grid,.skill-workbench,.agent-workspace{grid-template-columns:1fr}.agent-roster{position:static}.agent-list{grid-template-columns:repeat(2,minmax(0,1fr))}.agent-lifecycle{justify-content:flex-start;flex-wrap:wrap}.page-heading{align-items:stretch;flex-direction:column}.tool-bulk-bar{position:static;grid-template-columns:1fr}.tool-bulk-actions{justify-content:stretch}.tool-bulk-actions button{flex:1 1 140px}.confirmation-actions{align-items:stretch;flex-direction:column-reverse}.topbar{padding:0 20px}.chat-workspace{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.chat-history{max-height:190px;padding:10px 14px;overflow-y:auto;border-right:0;border-bottom:1px solid var(--line)}.history-delete{opacity:1}.composer{width:calc(100% - 36px);margin-bottom:18px}.agent-dock>span{display:none}.agent-select{width:100%}.agent-select select{min-width:0;flex:1}.message{max-width:92%}}@media(max-width:720px){.compact-resource-list .resource-row{grid-template-columns:auto minmax(0,1fr) auto}.compact-resource-list .row-actions{grid-column:2 / -1;flex-wrap:wrap}.auth-test-fields{grid-template-columns:1fr}}@media(max-width:480px){.agent-list,.key-row dl{grid-template-columns:1fr}.bound-skill-list li{grid-template-columns:auto minmax(0,1fr)}.skill-order-actions{grid-column:1 / -1;justify-content:flex-end}}@media(max-width:720px){.tool-catalog-panel{width:100%;max-height:820px}.catalog-controls{grid-template-columns:1fr}.catalog-controls .catalog-search{grid-column:auto}}
