:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#e7e8ec;background:#17181b;font-size:14px;color-scheme:dark;--line:#303136;--muted:#97999f;--accent:#d3dfcc}
.primary,.brand-mark,.send{background:var(--accent)!important}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,.button{cursor:pointer;border-radius:8px;padding:10px 14px;border:1px solid transparent;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#28292d;color:inherit;transition:background .15s}button:hover,.button:hover{background:#36383e}button:disabled{opacity:.4;cursor:not-allowed}a{color:inherit;text-decoration:none}a:hover{color:#fff}p{line-height:1.65}h1,h2,h3{font-weight:550;letter-spacing:-.025em}h1{font-size:30px;margin:8px 0 12px}h2{font-size:18px;margin:0 0 15px}h3{font-size:14px}small{font-size:12px;color:var(--muted)}input:not([type=checkbox]),textarea{display:block;width:100%;border:1px solid #393b40;background:#1b1c20;border-radius:8px;padding:12px;color:#eceef0;outline:none;margin-top:8px}input:focus,textarea:focus{border-color:#96a692;box-shadow:0 0 0 2px #9ead9917}input[type=checkbox]{accent-color:#b5c4b2}textarea{resize:vertical;line-height:1.7}label{display:block;color:#c8c9ce;font-size:13px}label:has(input:disabled){opacity:.65}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.6}code{overflow-wrap:anywhere;color:#b5c4b2}table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}th,td{padding:12px 6px;border-bottom:1px solid var(--line)}th{color:var(--muted);font-weight:500}.primary{background:#d6e1d2;color:#182218;font-weight:600}.primary:hover{background:#e5eedd}.secondary{border:1px solid #414247;background:transparent}.quiet{background:transparent;padding:7px 10px;color:#aaacb3}.muted{color:var(--muted)}.error{color:#f7ada7}.pre-wrap{white-space:pre-wrap;overflow-wrap:anywhere}.small-text{font-size:13px}.row-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.notice{margin:16px 24px;padding:12px 16px;background:#282d29;border:1px solid #38413a;border-radius:8px;font-size:13px;line-height:1.6;display:flex;justify-content:space-between;align-items:center;gap:10px}.notice.error{background:#342524;border-color:#59403e}.notice button{flex-shrink:0}.loading{display:grid;place-items:center;height:100vh;color:var(--muted)}
.workspace{display:flex;height:100dvh;overflow:hidden}.sidebar{width:248px;flex-shrink:0;background:#121316;border-right:1px solid #27282c;display:flex;flex-direction:column;padding:26px 16px 18px}.brand{display:flex;align-items:center;gap:11px;font-size:20px;letter-spacing:-.04em;font-weight:600;margin:0 8px 30px}.brand-mark{background:#d3dfcc;color:#283326;border-radius:12px;width:48px;height:48px;display:grid;place-items:center;font-family:Georgia,serif;font-size:33px;line-height:1;letter-spacing:-.08em}.brand-mark.small{width:31px;height:31px;font-size:23px;border-radius:8px}.new-chat{justify-content:flex-start;border:1px solid #34363a;background:#202125;margin-bottom:24px;font-size:13px}.sidebar nav{display:grid;gap:4px}.sidebar nav a{padding:11px 12px;border-radius:7px;color:#aaacb2;display:flex;gap:10px;align-items:center}.sidebar nav a:hover,.sidebar nav .active{background:#242529;color:#f1f2f3}.count{font-size:11px;margin-left:auto;color:var(--muted)}.section-label{font-size:10px;letter-spacing:.12em;color:#70727b;margin:30px 12px 14px}.history{flex:1;overflow:auto}.history a{display:block;padding:10px 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#9a9da6;font-size:12px;border-radius:6px}.history a:hover,.history a.selected{background:#202126;color:#e5e6eb}.history small{display:block;padding:0 12px;color:#60636e;font-size:11px}.sidebar-bottom{display:flex;flex-direction:column;gap:14px;padding:18px 9px 0}.sidebar-bottom>a{font-size:13px;color:#b1b3bb}.sidebar-bottom button{text-align:left;justify-content:flex-start;padding:0;color:#717580;font-size:12px}.budget{font-size:11px;color:#8e919a;display:grid;gap:9px;margin-bottom:12px}.budget strong{font-size:12px;color:#aeb2bb;font-weight:400}.budget progress{height:3px;width:100%;border:0;background:#2b2e33}.budget progress::-webkit-progress-bar{background:#2b2e33}.budget progress::-webkit-progress-value{background:#9dad94}
.main{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:67px;flex-shrink:0;border-bottom:1px solid #292b30;display:flex;gap:16px;align-items:center;padding:0 28px;color:#c0c2c9;font-size:12px}.top-status{margin-left:auto;color:#757b80;font-size:11px;display:flex;align-items:center;gap:7px}.status-dot{width:5px;height:5px;border-radius:50%;background:#a9b9a1}.mobile-menu{display:none}.chat-area{flex:1;display:flex;overflow:hidden;min-height:0}.chat{min-width:0;flex:1;display:flex;flex-direction:column;padding:0 36px 15px}.messages{flex:1;overflow:auto;scroll-behavior:smooth;padding:24px 0}.welcome{max-width:680px;margin:clamp(25px,14vh,150px) auto 36px}.eyebrow{font-size:10px;letter-spacing:.15em;color:#929d8f;margin-bottom:20px}.welcome h1{font-size:38px;font-weight:450}.welcome>p{color:#9498a2;font-size:15px;margin-bottom:30px}.suggestions{display:flex;gap:12px;margin:26px 0}.suggestions button{border:1px solid #373a40;background:#202226;min-width:200px;justify-content:space-between;padding:17px 18px;font-size:12px;color:#bec1ca}.suggestions span{margin-left:28px;color:#8d948a}.welcome .small-text{font-size:12px;color:#6f7480}.welcome a{text-decoration:underline;text-underline-offset:3px}.composer{width:100%;max-width:800px;margin:0 auto;background:#222429;border:1px solid #41444b;border-radius:14px;box-shadow:0 10px 30px #0002;padding:14px 16px 12px}.composer textarea{border:0;padding:4px;background:transparent;resize:none;margin:0;min-height:66px;max-height:240px;box-shadow:none;font-size:14px}.composer-tools{display:flex;align-items:center;gap:16px}.attachment{width:27px;height:27px;cursor:pointer;position:relative;font-size:24px;line-height:1}.attachment input,.file-button input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;margin:0}.file-button{position:relative;overflow:hidden}.toggle{display:flex;gap:6px;align-items:center;white-space:nowrap;font-size:12px;color:#b3b6bf}.composer-hint{font-size:10px;color:#737986}.send{margin-left:auto;background:#cedbc7;color:#24341c;border-radius:8px;width:33px;height:33px;padding:0;font-size:23px}.chat-footnote{text-align:center;display:block;margin:12px 0 0;font-size:10px;color:#6c7280}.message{max-width:800px;margin:16px auto 28px;line-height:1.75;overflow-wrap:anywhere}.message-author{font-size:11px;color:#a3ada0;margin-bottom:8px}.message.user{padding:16px 20px;background:#25272c;border-radius:12px}.message.user .message-author{color:#9196a0}.message-text{white-space:pre-wrap}.chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.chips>*{background:#262b29;border:1px solid #39433b;border-radius:6px;color:#afc0a9;font-size:11px;padding:5px 9px;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.run-inline{max-width:800px;margin:16px auto;padding:16px;border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px}.context-panel{width:300px;flex-shrink:0;background:#141619;border-left:1px solid var(--line);padding:24px 20px;overflow:auto}.panel-heading{display:flex;justify-content:space-between;align-items:center}.panel-heading h2{font-size:14px;margin:0}.context-panel>p{font-size:12px}.source-card{display:block;border:1px solid var(--line);border-radius:8px;margin:16px 0;padding:14px}.source-card strong{display:block;margin-top:8px;font-size:13px}.source-card p{font-size:11px;color:var(--muted);max-height:120px;overflow:hidden}
.page-content{padding:36px 44px;overflow:auto;width:100%;max-width:1280px;margin:0 auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.page-heading p{margin:8px 0;font-size:13px}.page-content>.notice{margin:0 0 26px}.card{background:#1d1f23;border:1px solid #32353b;border-radius:12px;padding:24px;margin-bottom:24px}.card p{font-size:13px;color:#a5a9b2}.card .row-actions{margin-top:20px}.source-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}.source-grid .card{margin:0}.source-icon{display:block;font-size:25px;color:#aebeaa;margin-bottom:22px}.search-bar{display:flex;align-items:center;gap:14px;margin:20px 0 24px}.search-bar input{margin:0}.search-bar input:not([type=checkbox]){flex:1}.document-row{display:flex;align-items:center;gap:18px;border-bottom:1px solid #2a2d32;padding:22px 8px}.document-row:hover{background:#202226}.document-row>div{flex:1;min-width:0}.document-row strong{font-size:14px;font-weight:500}.document-row p{color:#858b97;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;margin:7px 0}.document-row>span:last-child{color:#6b717c}.doc-icon{font-size:22px;color:#87927f}.document-editor{display:grid;gap:20px;margin-bottom:24px}.document-editor button{justify-self:start}.document-editor textarea{font-size:14px}.linked-document{display:block;margin:12px 0;font-size:12px;color:#aabea1}.empty{text-align:center;color:#717986;padding:65px 20px;line-height:1.9}.empty h2{color:#c0c5ce;font-size:20px}.list-heading{display:flex;justify-content:space-between}.settings-page{max-width:1050px}.settings-form{display:grid;gap:21px}.settings-form h2,.settings-form p{margin:0}.settings-form button{justify-self:start}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.stat-grid .card{padding:20px}.stat-grid small{font-size:9px;letter-spacing:.06em}.stat-grid strong{display:block;font-size:22px;margin-top:12px;font-weight:500}.stat-grid span{color:#6f7887;font-size:15px}.connection-test{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:13px}.task-row{border:1px solid #31363e;background:#1b1e22;padding:22px;border-radius:10px;margin-bottom:16px}.task-top,.task-bottom{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.task-top strong{font-size:14px;font-weight:500}.task-top>small{margin-left:auto}.task-row p{font-size:13px;color:#929aa8;margin:12px 0}.task-row .error{color:#f7ada7}.task-bottom a{font-size:12px}.task-bottom small{margin-right:auto}.badge{font-size:10px;padding:4px 8px;border-radius:5px;background:#2b3037;color:#a5b0be}.badge.completed,.badge.ready{background:#27362a;color:#a6be9e}.badge.failed{background:#3c2a28;color:#e5a5a0}.badge.running,.badge.queued{background:#2a303f;color:#a6b6d6}.diff{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0}.diff>div{padding:15px;background:#191b1e;border:1px solid #35393e;border-radius:8px;max-height:400px;overflow:auto}.diff>div:last-child{border-color:#4b5c44}.diff pre{font-size:12px}.events{font-size:12px;line-height:2}.events small{margin-right:12px}.audit{margin-top:40px;padding:20px 0;border-top:1px solid var(--line);color:#a8b0bc;font-size:13px}.audit summary{cursor:pointer;margin-bottom:20px}.audit-row{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid #2a2d32}.audit-row>a{flex:1}.audit-row button{font-size:11px}
.login-page{min-height:100dvh;display:grid;place-items:center;padding:30px;background:radial-gradient(ellipse at top,#252a25,#17181b 65%)}.login-card{width:100%;max-width:380px;display:grid;gap:22px}.login-card .brand-mark{margin-bottom:8px}.login-card h1{margin:0;font-size:34px}.login-card p{margin:0 0 10px}.login-card>small{font-size:11px;text-align:center;margin-top:10px}#blazor-error-ui{display:none;position:fixed;bottom:0;left:0;right:0;background:#542d27;color:#fff;padding:20px;z-index:100}#blazor-error-ui a{margin-left:20px;text-decoration:underline}
@media(min-width:1600px){.welcome{margin-top:18vh}.chat{padding-left:70px;padding-right:70px}}
@media(max-width:1100px){.sidebar{width:218px}.page-content{padding:30px 26px}.context-panel{width:265px}.chat{padding-left:22px;padding-right:22px}.composer-hint{display:none}.welcome h1{font-size:32px}.suggestions button{min-width:0;flex:1}.stat-grid{grid-template-columns:1fr}.stat-grid .card{margin:0}.stat-grid{margin-bottom:24px}}
@media(max-width:760px){.sidebar{display:none;position:fixed;left:0;top:57px;bottom:0;width:250px;z-index:20;box-shadow:20px 0 70px #0008}.menu-open .sidebar{display:flex}.mobile-menu{display:inline-flex}.topbar{height:57px;padding:0 14px;gap:10px;font-size:11px}.top-status{display:none}.topbar>.quiet:last-child{margin-left:auto}.page-content{padding:24px 18px}.page-heading{align-items:flex-start;flex-direction:column;gap:15px;margin-bottom:20px}h1{font-size:25px}.chat{padding:0 16px 12px}.welcome{margin:55px auto 20px}.welcome h1{font-size:31px}.welcome>p{font-size:13px}.eyebrow{font-size:8px}.suggestions{gap:8px}.suggestions button{font-size:11px;padding:14px 10px}.suggestions span{margin-left:8px}.composer{padding:12px}.composer textarea{font-size:16px}.chat-footnote{font-size:8px;line-height:1.5}.context-panel{position:fixed;inset:57px 0 0 auto;width:min(90vw,340px);z-index:15;box-shadow:-20px 0 70px #0008}.search-bar{flex-wrap:wrap;gap:12px}.search-bar input:not([type=checkbox]){flex-basis:100%}.form-grid,.diff{grid-template-columns:1fr}.card{padding:20px}.source-grid{grid-template-columns:1fr}.task-row{padding:16px}.task-top{gap:8px}.task-bottom{gap:8px}.audit-row{flex-wrap:wrap}.audit-row>a{flex-basis:100%}.settings-page table{font-size:11px}.connection-test{align-items:flex-start;flex-direction:column}input:not([type=checkbox]),textarea{font-size:16px}}
