:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--ink:#17221d;--muted:#748078;--line:#e6ebe6;--surface:#fff;--canvas:#f6f8f6;--green:#246c4c;--green-strong:#185c3c;--green-soft:#eaf4ed;--mint:#d8ebdc;--red:#a43e3e;--shadow:0 18px 55px #1d3a2a14}*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:var(--canvas);color:var(--ink);-webkit-font-smoothing:antialiased;font-family:Avenir Next,Segoe UI,sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}h1,h2,h3,p{margin-top:0}h1,h2,.brand{font-family:Avenir Next,Segoe UI,sans-serif}h1{letter-spacing:-1.35px;margin-bottom:8px;font-size:clamp(28px,3vw,36px);line-height:1.16}h2{letter-spacing:-.45px;margin-bottom:0;font-size:19px}.muted{color:var(--muted)}.eyebrow{color:#7c8a81;letter-spacing:1.45px;margin-bottom:8px;font-size:10px;font-weight:700}.button{border:1px solid #0000;border-radius:9px;justify-content:center;align-items:center;gap:9px;min-height:40px;padding:0 15px;font-size:13px;font-weight:600;transition:background .15s,border-color .15s,transform .15s;display:inline-flex}.button:not(:disabled):active{transform:translateY(1px)}.button-primary{background:var(--green);color:#fff}.button-primary:hover:not(:disabled){background:var(--green-strong)}.button-dark{color:#fff;background:#1e2923}.button-dark:hover:not(:disabled){background:#304238}.button-secondary{border-color:var(--line);color:#334139;background:#fff}.button-secondary:hover:not(:disabled){background:#f8fbf8;border-color:#bccfc1}.button-danger{color:#a34541;background:#fff;border-color:#efd8d7}.button-danger:hover:not(:disabled){background:#fff6f5;border-color:#e8bebc}.button-quiet{color:#56645b;background:0 0;min-height:34px;padding:0 10px}.button-quiet:hover{background:var(--green-soft)}.button-full{width:100%}.stack{gap:16px;display:grid}.stack label,.input-fields label{color:#39473e;gap:7px;font-size:12px;font-weight:600;display:grid}.stack input,.input-fields input,.input-fields select,.input-fields textarea{width:100%;color:var(--ink);background:#fff;border:1px solid #dfe6e0;border-radius:8px;outline:none;padding:10px 11px;font-size:13px;transition:border .15s,box-shadow .15s}.stack input:focus,.input-fields input:focus,.input-fields select:focus,.input-fields textarea:focus,.flow-select:focus,.composer textarea:focus{border-color:#72a88a;box-shadow:0 0 0 3px #428b5e1a}.stack small{color:#88938b;font-size:11px;font-weight:400;line-height:1.5}.error-text{color:var(--red);margin:-4px 0 0;font-size:12px}.auth-page{background:radial-gradient(at 8% 12%,#cae7d0a6,#0000 32%),radial-gradient(at 90% 90%,#daebddcc,#0000 34%),#f6f9f6;place-items:center;min-height:100vh;padding:24px;display:grid}.auth-card{width:min(100%,430px);box-shadow:var(--shadow);background:#fffffff2;border:1px solid #e4ede5e6;border-radius:18px;padding:40px}.brand-mark{color:#fff;background:linear-gradient(145deg,#337d58,#174d35);border-radius:12px;place-items:center;width:40px;height:40px;font-family:Avenir Next,Segoe UI,sans-serif;font-size:21px;font-weight:800;display:grid;box-shadow:0 6px 15px #1a623b33}.auth-card>.eyebrow{margin-top:28px;margin-bottom:9px}.auth-card h1{font-size:26px}.auth-card>.muted{margin-bottom:26px;font-size:13px;line-height:1.6}.login-actions{gap:17px;display:grid}.divider{color:#89938c;align-items:center;gap:12px;font-size:11px;display:flex}.divider:before,.divider:after{background:var(--line);content:"";flex:1;height:1px}.google-g{color:#4285f4;font-size:15px;font-weight:700}.fine-print{color:#8a948d;text-align:center;margin:2px 0 0;font-size:11px;line-height:1.55}.site-header{border-bottom:1px solid var(--line);background:#fffffff0;justify-content:space-between;align-items:center;height:68px;padding:0 clamp(20px,4vw,54px);display:flex}.brand{letter-spacing:-.3px;align-items:center;gap:10px;font-size:15px;font-weight:800;display:inline-flex}.brand-mark-small{border-radius:9px;width:30px;height:30px;font-size:16px}.header-user{color:#69766d;align-items:center;gap:11px;font-size:12px;display:flex}.header-name{text-overflow:ellipsis;white-space:nowrap;max-width:190px;overflow:hidden}.avatar{color:#36724f;background:#e7f0e8;border-radius:50%;flex:0 0 30px;place-items:center;width:30px;height:30px;font-size:12px;font-weight:700;display:inline-grid}.nav-link{color:var(--green);border-radius:7px;padding:7px 9px;font-weight:600}.nav-link:hover{background:var(--green-soft)}.page-shell{min-height:100vh}.page-heading{justify-content:space-between;align-items:flex-end;gap:20px;padding:38px clamp(20px,5vw,68px) 28px;display:flex}.page-heading .muted{margin-bottom:0;font-size:13px}.admin-grid{grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:18px;padding:0 clamp(20px,5vw,68px) 20px;display:grid}.panel{border:1px solid var(--line);background:var(--surface);border-radius:13px;padding:22px;box-shadow:0 5px 24px #243e2e06}.panel-heading{justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;display:flex}.panel-heading .eyebrow{margin-bottom:5px}.flow-heading-actions,.flow-row-actions{align-items:center;gap:7px;display:flex}.api-key-form{background:#f8fbf8;border:1px solid #dfe9e0;border-radius:9px;gap:8px;margin:-4px 0 15px;padding:12px;display:grid}.api-key-form label{color:#39473e;gap:6px;font-size:11px;font-weight:600;display:grid}.api-key-form input{min-width:0;color:var(--ink);background:#fff;border:1px solid #dfe6e0;border-radius:7px;outline:none;padding:9px 10px;font-size:12px}.api-key-form input:focus{border-color:#72a88a;box-shadow:0 0 0 3px #428b5e1a}.api-key-form p{color:#7e8d82;margin:0;font-size:10px;line-height:1.5}.api-key-form>div{gap:6px;display:flex}.count-pill{color:#678071;white-space:nowrap;background:#f7faf7;border:1px solid #e0e9e1;border-radius:99px;align-items:center;padding:5px 10px;font-size:10px;font-weight:600;display:inline-flex}.flow-list{display:grid}.flow-row{border-top:1px solid #edf0ed;align-items:center;gap:12px;min-height:61px;padding:9px 0;display:flex}.flow-disabled{opacity:.55}.flow-icon,.panel-icon{color:#46835b;background:#edf5ee;border-radius:10px;flex:0 0 34px;place-items:center;width:34px;height:34px;font-size:18px;display:grid}.flow-info{flex:1;gap:4px;min-width:0;display:grid}.flow-info strong{text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.flow-info small{color:#87928a;text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.flow-access{color:#87928a;white-space:nowrap;font-size:10px}.flow-row-actions{gap:8px}.flow-action{color:#4b775a;white-space:nowrap;background:0 0;border:0;padding:4px 0;font-size:10px}.flow-action:hover{color:#1d5e38;text-decoration:underline}.panel-icon{color:#62756a;background:#f0f4f1;flex-basis:31px;width:31px;height:31px}.compact-stack{gap:13px}.compact-stack .button{margin-top:3px}.users-panel{margin:0 clamp(20px,5vw,68px)}.user-list{display:grid}.user-row{border-top:1px solid #edf0ed;grid-template-columns:minmax(160px,.9fr) minmax(240px,1.5fr) 76px 72px 72px;align-items:center;gap:15px;padding:15px 0;display:grid}.user-identity{align-items:center;gap:10px;min-width:0;display:flex}.user-identity>div{gap:4px;min-width:0;display:grid}.user-identity strong,.user-identity small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.user-identity strong{font-size:12px}.user-identity small{color:#839087;font-size:10px}.assignment-list{flex-wrap:wrap;gap:8px 14px;display:flex}.check-item,.status-toggle{color:#59675e;align-items:center;gap:6px;font-size:11px;display:inline-flex}.check-item input,.status-toggle input,.input-fields input[type=checkbox]{accent-color:var(--green)}.status-toggle{white-space:nowrap}.save-button{min-height:33px;padding:0 9px;font-size:11px}.notice{border:1px solid;border-radius:9px;margin:0 clamp(20px,5vw,68px) 17px;padding:11px 14px;font-size:12px}.notice-error{color:#9b4242;background:#fff8f7;border-color:#f1d5d5}.notice-success{color:#34744d;background:#f1f8f2;border-color:#d5e9d9}.empty-state{text-align:center;justify-items:center;display:grid}.empty-state h2{margin:12px 0 7px}.empty-state p,.empty-state small{color:#849088;margin:0;font-size:12px;line-height:1.6}.empty-state.compact{align-content:center;gap:6px;min-height:130px}.empty-icon{background:var(--green-soft);color:#46835b;border-radius:13px;place-items:center;width:40px;height:40px;font-size:23px;display:grid}.page-footer{color:#8a958d;padding:21px clamp(20px,5vw,68px);font-size:10px}.chat-shell{background:#fbfcfb;flex-direction:column;height:100%;max-height:100dvh;display:flex;overflow:hidden}.chat-layout{flex:1;grid-template-columns:258px minmax(0,1fr);min-height:0;display:grid;overflow:hidden}.chat-sidebar{border-right:1px solid var(--line);background:#f8faf8;flex-direction:column;min-height:0;padding:24px 15px 14px;display:flex}.sidebar-section{padding:0 4px}.flow-select{color:#293930;background:#fff;border:1px solid #e1e9e2;border-radius:8px;outline:none;width:100%;min-height:40px;padding:0 10px;font-size:12px;font-weight:600}.flow-description{color:#89958c;margin:10px 0 0;font-size:11px;line-height:1.55}.new-chat-button{width:100%;margin:21px 0 26px}.new-chat-button span{font-size:18px;font-weight:400;line-height:0}.history-section{flex-direction:column;flex:1;min-height:0;display:flex}.section-label{justify-content:space-between;align-items:center;display:flex}.section-label .eyebrow{margin-bottom:10px}.section-label>span{color:#9aa39c;font-size:10px}.conversation-list{overscroll-behavior:contain;flex:1;align-content:start;gap:3px;min-height:0;display:grid;overflow:auto}.conversation-item{color:#68756c;text-align:left;background:0 0;border:0;border-radius:7px;align-self:start;align-items:center;gap:9px;min-width:0;padding:9px 8px;font-size:11px;display:flex}.conversation-item>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.conversation-item:hover,.conversation-active{color:#245e3d;background:#eaf2eb}.conversation-dot{border:1px solid #9aac9e;border-radius:50%;flex:0 0 6px;width:6px;height:6px}.conversation-active .conversation-dot{background:#43835a;border-color:#43835a}.history-empty{color:#9aa49d;padding:5px 2px;font-size:10px;line-height:1.5}.sidebar-bottom{color:#829087;border-top:1px solid #e8ede8;align-items:center;gap:8px;padding:14px 5px 0;font-size:10px;display:flex}.online-dot{background:#57a56f;border-radius:50%;flex:0 0 7px;width:7px;height:7px;box-shadow:0 0 0 3px #57a56f1f}.chat-main{flex-direction:column;min-width:0;min-height:0;display:flex;overflow:hidden}.chat-topbar{background:#ffffffa8;border-bottom:1px solid #eef1ee;justify-content:space-between;align-items:center;min-height:76px;padding:13px clamp(20px,4vw,48px);display:flex}.chat-topbar .eyebrow{margin-bottom:3px;font-size:9px}.chat-topbar h1{letter-spacing:-.4px;margin:0;font-size:17px}.conversation-status{color:#829087;align-items:center;gap:8px;font-size:10px;display:inline-flex}.message-scroll{overscroll-behavior:contain;scroll-behavior:smooth;flex-direction:column;flex:1;min-height:0;padding:28px clamp(20px,8vw,115px) 24px;display:flex;overflow:auto}.chat-empty{flex:1;align-content:center}.hero-orb{color:#47835b;background:linear-gradient(145deg,#f0f8f1,#e2f1e4);border:1px solid #d7e8d9;border-radius:18px;place-items:center;width:52px;height:52px;font-size:27px;display:grid;box-shadow:0 8px 22px #30724414}.message-list{align-content:end;gap:28px;display:grid}.message-row{align-items:flex-start;gap:11px;display:flex}.message-user{justify-content:flex-end}.message-body{min-width:0;max-width:min(760px,88%)}.message-user .message-body{background:#f0f6f0;border:1px solid #e3ede4;border-radius:14px 14px 4px;padding:11px 14px}.message-meta{color:#88958c;margin-bottom:6px;font-size:10px;font-weight:600}.message-user .message-meta{color:#52745c;text-align:right}.assistant-avatar{color:#45815a;background:#eaf3eb;border-radius:9px;flex:0 0 28px;place-items:center;width:28px;height:28px;font-size:15px;display:grid}.message-content{color:#27362d;overflow-wrap:anywhere;font-size:13px;line-height:1.72}.message-user .message-content{white-space:pre-wrap}.message-rich{gap:10px;display:grid}.message-plain{white-space:pre-wrap;overflow-wrap:anywhere}.markdown-body{overflow-wrap:anywhere;min-width:0}.markdown-body>:first-child{margin-top:0}.markdown-body>:last-child{margin-bottom:0}.markdown-body p,.markdown-body ul,.markdown-body ol,.markdown-body pre,.markdown-body blockquote,.markdown-body table{margin:0 0 .85em}.markdown-body p:last-child,.markdown-body ul:last-child,.markdown-body ol:last-child,.markdown-body pre:last-child,.markdown-body blockquote:last-child,.markdown-body table:last-child{margin-bottom:0}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4{color:#1f3227;letter-spacing:-.3px;margin:1em 0 .45em;font-weight:700;line-height:1.3}.markdown-body h1{font-size:1.35em}.markdown-body h2{font-size:1.2em}.markdown-body h3{font-size:1.08em}.markdown-body h4{font-size:1em}.markdown-body ul,.markdown-body ol{padding-left:1.35em}.markdown-body li+li{margin-top:.28em}.markdown-body a{color:#2d6b4a;text-underline-offset:2px;text-decoration:underline}.markdown-body strong{color:#1d2f24;font-weight:700}.markdown-body blockquote{color:#5a6b60;border-left:3px solid #c5d9c9;padding:.15em 0 .15em .9em}.markdown-body code{color:#2f4a39;background:#f3f7f3;border:1px solid #e0e9e1;border-radius:5px;padding:.12em .38em;font-family:SF Mono,Menlo,Consolas,monospace;font-size:.9em}.markdown-body pre{background:#f5f8f5;border:1px solid #e0e8e1;border-radius:10px;padding:12px 14px;overflow:auto}.markdown-body pre code{white-space:pre;background:0 0;border:0;padding:0;font-size:.86em;line-height:1.6}.markdown-body table{border-collapse:collapse;width:100%;display:block;overflow:auto}.markdown-body th,.markdown-body td{text-align:left;border:1px solid #dde6de;padding:7px 10px}.markdown-body th{background:#f3f7f3;font-weight:650}.markdown-body hr{border:0;border-top:1px solid #e2eae3;margin:1em 0}.think-block{background:#f7faf7;border:1px solid #e3ebe4;border-radius:10px;overflow:hidden}.think-active{background:linear-gradient(#f4f9f5,#eef5ef);border-color:#d2e4d6}.think-toggle{color:#5f7365;text-align:left;background:0 0;border:0;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:8px 11px;font-size:11px;font-weight:600;display:flex}.think-toggle:hover{color:#3d634c}.think-label{align-items:center;gap:7px;display:inline-flex}.think-pulse{background:#57a56f;border-radius:50%;width:7px;height:7px;animation:1.4s ease-out infinite think-glow;box-shadow:0 0 #57a56f73}.think-ellipsis{gap:3px;margin-left:1px;display:inline-flex}.think-ellipsis i{background:#7da889;border-radius:50%;width:3px;height:3px;animation:1s ease-in-out infinite pulse}.think-ellipsis i:nth-child(2){animation-delay:.12s}.think-ellipsis i:nth-child(3){animation-delay:.24s}.think-arrow{color:#7d8d82;border-radius:5px;place-items:center;width:18px;height:18px;font-size:16px;line-height:1;transition:transform .16s,background .16s;display:inline-grid;transform:rotate(90deg)}.think-arrow-open{color:#3f6a50;background:#e5eee6;transform:rotate(-90deg)}.think-body{border-top:1px solid #e4ece5;padding:10px 12px 12px}.think-body pre{color:#5a6a5f;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-family:Avenir Next,Segoe UI,sans-serif;font-size:11px;font-weight:400;line-height:1.65}.think-empty{color:#8a968c;margin:0;font-size:11px}@keyframes think-glow{0%{opacity:1;box-shadow:0 0 #57a56f66}70%{opacity:.75;box-shadow:0 0 0 8px #57a56f00}to{opacity:1;box-shadow:0 0 #57a56f00}}.message-file-tags{flex-wrap:wrap;gap:5px;margin-bottom:8px;display:flex}.message-file-tags span,.attachment-chip{color:#65756a;background:#fff;border:1px solid #dfe8e0;border-radius:6px;align-items:center;gap:6px;padding:5px 7px;font-size:10px;display:inline-flex}.feedback-row{gap:4px;margin-top:8px;display:flex}.feedback-row button{color:#849188;background:0 0;border:0;border-radius:6px;width:25px;height:24px}.feedback-row button:hover,.feedback-row button.feedback-active{color:#39764e;background:#e8f2e9}.typing-dots{gap:4px;padding:4px 0;display:inline-flex}.typing-dots i{background:#7da889;border-radius:50%;width:5px;height:5px;animation:1s ease-in-out infinite pulse}.typing-dots i:nth-child(2){animation-delay:.12s}.typing-dots i:nth-child(3){animation-delay:.24s}@keyframes pulse{0%,70%,to{opacity:.3;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}.composer-area{flex:none;align-self:center;width:min(100%,1020px);padding:0 clamp(16px,5vw,55px) 17px}.chat-topbar,.site-header{flex:none}.composer-notice{margin:0 0 9px}.input-fields{background:#fff;border:1px solid #e3eae3;border-radius:10px;margin-bottom:10px;padding:10px 12px}.input-fields summary{color:#516258;cursor:pointer;font-size:11px;font-weight:600;list-style-position:inside}.input-fields summary span{color:#929d95;margin-left:7px;font-size:10px;font-weight:400}.input-fields-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:11px;padding:12px 1px 2px;display:grid}.input-fields label{font-size:10px}.input-fields input,.input-fields select,.input-fields textarea{padding:8px;font-size:11px}.input-fields input[type=checkbox]{width:17px;height:17px}.required-mark{color:#bc5b4b}.attachment-list{flex-wrap:wrap;gap:6px;margin-bottom:7px;display:flex}.attachment-chip{background:#f7faf7}.attachment-chip button{color:#78877d;background:0 0;border:0;padding:0;font-size:15px;line-height:1}.composer{background:#fff;border:1px solid #e0e8e1;border-radius:13px;align-items:flex-end;gap:8px;min-height:55px;padding:8px;display:flex;box-shadow:0 5px 19px #27432f0d}.composer:focus-within{border-color:#bad2bf;box-shadow:0 0 0 3px #4487570f,0 5px 19px #27432f0d}.composer textarea{resize:vertical;min-height:36px;max-height:150px;color:var(--ink);background:0 0;border:1px solid #0000;border-radius:8px;outline:none;flex:1;padding:9px 4px 7px;font-size:12px;line-height:1.5}.composer textarea:focus{box-shadow:none;border-color:#0000}.composer-tool,.send-button{color:#79877e;background:0 0;border:0;border-radius:9px;flex:0 0 35px;place-items:center;width:35px;height:35px;font-size:20px;display:grid}.composer-tool:hover:not(:disabled){color:var(--green);background:#f0f5f0}.send-button{background:var(--green);color:#fff;font-size:21px;font-weight:600}.send-button:hover:not(:disabled){background:var(--green-strong)}.stop-button{color:#a14440;background:#fff9f8;border:1px solid #efdada;border-radius:8px;min-width:54px;height:34px;font-size:11px;font-weight:600}.composer-caption{color:#9aa39c;text-align:center;margin:7px 2px 0;font-size:9px}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.loader{border:2px solid #dce9de;border-top-color:#48865b;border-radius:50%;width:25px;height:25px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width:940px){.admin-grid{grid-template-columns:1fr}.user-row{grid-template-columns:minmax(145px,.8fr) minmax(220px,1.5fr) 75px 65px;gap:9px}}@media (max-width:700px){.auth-card{padding:30px 24px}.site-header{height:60px;padding:0 16px}.header-name,.nav-link{display:none}.page-heading{flex-direction:column;align-items:flex-start;padding:28px 17px 20px}.admin-grid{padding:0 14px 14px}.panel{padding:17px}.users-panel{margin:0 14px}.user-row{grid-template-columns:1fr auto auto;gap:12px}.assignment-list{grid-column:1/-1;padding-left:39px}.status-toggle{grid-column:1;padding-left:39px}.save-button{grid-area:2/2}.button-danger.save-button{grid-area:2/3}.notice{margin-left:14px;margin-right:14px}.chat-layout{grid-template-rows:auto minmax(0,1fr);grid-template-columns:1fr;min-height:0}.chat-sidebar{border-right:0;border-bottom:1px solid var(--line);min-height:auto;padding:13px 14px}.sidebar-section:first-child{align-items:center;gap:10px;display:flex}.sidebar-section:first-child .eyebrow{white-space:nowrap;margin:0}.flow-select{min-height:36px}.flow-description,.history-section,.sidebar-bottom{display:none}.new-chat-button{width:auto;min-height:34px;margin:9px 4px 0;padding:0 10px;font-size:11px}.chat-topbar{min-height:61px;padding:10px 17px}.message-scroll{padding:20px 16px}.composer-area{padding:0 12px 11px}}
