:root{font-family:Tahoma,Arial,sans-serif;color:#202b3e;background:#f5f7fb;font-size:14px;line-height:1.8;--accent:#5865e8;--muted:#7d8798}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,textarea{font:inherit}button,a,label.upload-button{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #a3abff;outline-offset:3px}input,textarea{width:100%;padding:11px 13px;border:1px solid #dce1eb;border-radius:9px;background:white;color:inherit;outline:none}input:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #5865e812}textarea{resize:vertical}label{display:block;margin:15px 0 0}label input,label textarea{margin-top:6px}h1,h2,p{margin-top:0}h1{font-size:29px;letter-spacing:-.8px;margin-bottom:8px}h2{font-size:17px;margin-bottom:12px}.muted{color:var(--muted)}.eyebrow{font:11px Arial,sans-serif;letter-spacing:2px;color:var(--accent);margin-bottom:9px}.primary{border:0;border-radius:9px;background:var(--accent);color:white;padding:11px 19px;font-weight:bold;box-shadow:0 4px 10px #5865e819}.primary:hover{background:#4753d2}.text-button{border:0;background:transparent;color:var(--muted);padding:5px}.text-button:hover{color:var(--accent)}.shell{display:flex;min-height:100vh}.sidebar{width:240px;flex-shrink:0;background:#111a29;color:#d1d8e5;padding:30px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:#fff;font:bold 23px Arial;direction:ltr;justify-content:flex-end;padding:0 7px 36px}.brand-mark{background:#6571f0;color:white;display:inline-flex;justify-content:center;align-items:center;width:43px;height:43px;border-radius:12px;font:bold 23px monospace;direction:ltr}.brand-sub{display:block;font:9px Arial;letter-spacing:3px;color:#92a0b8;margin-top:5px}.section-label{font-size:11px;color:#718099;margin-bottom:12px;display:flex;justify-content:space-between}.nav{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border-radius:9px;background:#26304a;color:#d7dcff;border:1px solid #384264;text-align:right}.count{margin-right:auto;font-size:11px;background:#414c72;border-radius:5px;padding:0 7px}.sidebar-note{margin-top:auto;border:1px solid #2d384b;border-radius:11px;background:#192334;padding:14px;font-size:11px}.sidebar-note strong{font-size:11px}.sidebar-note p{color:#8d9bb1;margin:8px 0 0;line-height:1.9}.dot{display:inline-block;width:6px;height:6px;background:#d8a35d;border-radius:50%;margin-left:6px}.sidebar-bottom{display:flex;gap:10px;align-items:center;margin-top:24px;font-size:12px}.sidebar-bottom button{margin-right:auto}.avatar{display:inline-grid;place-items:center;background:#2a364d;width:33px;height:33px;border-radius:10px}main{flex:1;min-width:0}.topbar{height:78px;border-bottom:1px solid #e5e9f1;background:#ffffffb8;display:flex;justify-content:space-between;align-items:center;padding:0 42px;font-size:12px;color:#7b8698}.private-label{border:1px solid #e0e5ee;border-radius:20px;padding:3px 12px;color:#758095}.projects-view{max-width:1400px;margin:auto;padding:43px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.page-heading p:last-child{margin-bottom:0}.summary{display:grid;grid-template-columns:1fr 1fr 2fr;background:white;border:1px solid #e3e8f0;border-radius:13px;margin-bottom:38px}.summary>div{padding:20px 25px;border-left:1px solid #edf0f5}.summary>div:last-child{border:0}.summary span{font-size:11px;color:var(--muted)}.summary strong{display:block;font-size:25px;margin-top:4px}.summary .small-value{font-size:14px;padding-top:9px}.list-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.list-heading h2{margin:0}.list-heading input{width:230px;background:transparent;font-size:12px}.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}.project-card{background:#fff;border:1px solid #e2e7f0;border-radius:14px;padding:23px;text-align:right;color:inherit;transition:transform .15s,border-color .15s;min-width:0}.project-card:hover{transform:translateY(-3px);border-color:#a7aff1}.project-symbol{display:inline-grid;place-items:center;font:bold 22px monospace;width:49px;height:49px;background:#eef0ff;color:var(--accent);border-radius:12px;margin-bottom:17px}.project-card h2{margin:0 0 6px}.project-description{color:var(--muted);font-size:12px;min-height:44px;overflow-wrap:anywhere}.project-path{direction:ltr;text-align:left;font:11px monospace;color:#8b95a7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:10px;background:#f7f8fb;border-radius:7px}.card-footer{display:flex;justify-content:space-between;border-top:1px solid #edf0f5;margin-top:18px;padding-top:14px;color:#8a94a5;font-size:11px}.card-footer span:last-child{color:var(--accent)}.empty{text-align:center;padding:55px 20px;border:1px dashed #d6ddeb;border-radius:14px;color:var(--muted)}.empty h2{color:#45516a}.empty p{font-size:13px}.empty-icon{display:block;font-size:44px;color:#98a2d1;margin-bottom:10px}.chat-layout{height:calc(100dvh - 78px);display:flex}.chat-sidebar{width:245px;flex-shrink:0;border-left:1px solid #e3e8f0;background:#fff;padding:22px 16px;overflow:auto}.chat-sidebar h2{margin:18px 5px}.chat-sidebar>.primary{width:100%;font-size:12px}.chat-list{margin-top:22px;display:grid;gap:8px}.chat-item{border:1px solid transparent;background:transparent;text-align:right;padding:12px;border-radius:8px;overflow-wrap:anywhere;color:#69758c}.chat-item.selected{background:#eff0ff;color:var(--accent);border-color:#e0e3ff}.conversation{flex:1;min-width:0;display:flex;flex-direction:column}.conversation-heading{display:flex;justify-content:space-between;align-items:center;padding:18px 27px;border-bottom:1px solid #e4e8f0;background:#ffffffa0;gap:10px}.conversation-heading h2{margin:0;font-size:15px}.conversation-heading .muted{font-size:11px}.status-pill{background:#f4eee4;color:#a07c43;font-size:10px;white-space:nowrap;padding:3px 9px;border-radius:20px}.messages{flex:1;overflow:auto;padding:25px;display:flex;flex-direction:column;gap:17px}.message{max-width:85%;background:white;border:1px solid #e0e5ef;border-radius:14px 3px 14px 14px;padding:14px 18px;align-self:flex-start;min-width:180px;overflow-wrap:anywhere}.message.assistant{align-self:flex-end;background:#eff0ff;border-color:#e0e3ff}.message p{white-space:pre-wrap;margin:0 0 10px;direction:rtl;unicode-bidi:plaintext}.message audio{max-width:100%;width:280px;display:block;margin:10px 0}.message-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:10px;color:#8993a4}.message-meta button{border:0;background:#fff0ef;color:#b45a55;padding:3px 8px;border-radius:5px;font-size:10px}.state-queued{color:#aa803b}.state-cancelled{color:#9b9fac}.state-completed{color:#369879}.composer{background:#fff;border:1px solid #dce2ee;border-radius:13px;margin:0 25px 20px;padding:10px 15px;box-shadow:0 7px 20px #23315006}.composer textarea{border:0;box-shadow:none;padding:7px;max-height:200px}.composer-actions{display:flex;justify-content:space-between;align-items:center;gap:8px}.composer-actions>div{display:flex;gap:10px;align-items:center}.icon-button,.upload-button{background:none;border:0;font-size:11px;color:#7e89a0;cursor:pointer;padding:6px;margin:0}.upload-button input{display:none}.recording{color:#c34d55;background:#fff0f0;border-radius:6px}.composer-hint{font-size:10px;color:#98a0ae;border-top:1px solid #f0f2f7;padding-top:8px;margin:9px 0 0}#audio-preview{font-size:11px;background:#f1f3fd;border-radius:6px;padding:6px 10px;display:flex;justify-content:space-between}.login{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 20% 20%,#e8eaff,transparent 60%),#f5f7fb;padding:20px}.login-card{width:100%;max-width:430px;padding:38px;border-radius:20px;background:#fff;border:1px solid #e2e6f0;box-shadow:0 20px 80px #2635500a}.login-card .eyebrow{margin-top:24px}.login-card h1{font-size:31px;line-height:1.65}.login-card .muted{font-size:12px}.login-card .primary{width:100%;margin-top:25px}.error{font-size:12px;color:#bc5050;margin:12px 0 0}dialog{border:1px solid #e0e5f0;border-radius:17px;max-width:490px;width:calc(100% - 32px);padding:28px;color:inherit}dialog::backdrop{background:#111a2980;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center}.dialog-heading h2{margin:0}dialog .muted{font-size:12px;margin-top:10px}dialog .primary{width:100%;margin-top:24px}.field-hint{color:#8e98ab;font-size:10px;margin:5px 0}.toast{position:fixed;bottom:24px;left:24px;max-width:calc(100% - 48px);background:#26334a;color:white;padding:13px 22px;border-radius:10px;box-shadow:0 10px 40px #18263930;z-index:10;font-size:12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(min-width:1500px){.projects-view{padding-top:60px}}@media(max-width:1000px){.sidebar{width:195px;padding:25px 14px}.projects-view{padding:28px}.chat-sidebar{width:195px}.summary>div{padding:18px}.summary .small-value .muted{display:block}.conversation-heading{padding:14px}.composer{margin:0 12px 14px}.messages{padding:15px}}@media(max-width:700px){.shell{display:block}.sidebar{position:static;width:100%;height:auto;padding:14px 18px;flex-direction:row;align-items:center;gap:14px}.brand{padding:0;font-size:18px;margin-left:auto}.brand-mark{width:33px;height:33px;font-size:18px}.brand-sub{font-size:7px}.sidebar .section-label,.sidebar .nav,.sidebar-note,.sidebar-bottom .avatar,.sidebar-bottom>span{display:none}.sidebar-bottom{margin:0}.topbar{height:52px;padding:0 18px;font-size:10px}.projects-view{padding:25px 18px}.page-heading{align-items:flex-start;gap:12px}.page-heading h1{font-size:23px}.page-heading .muted{font-size:11px}.page-heading>.primary{font-size:10px;padding:10px;white-space:nowrap}.summary{grid-template-columns:1fr 1fr}.summary>div:last-child{grid-column:span 2;border-top:1px solid #edf0f5}.summary .small-value .muted{display:inline}.summary>div{padding:13px 18px}.list-heading input{width:160px;font-size:11px}.chat-layout{height:calc(100dvh - 115px);flex-direction:column}.chat-sidebar{width:100%;padding:10px 14px;max-height:180px;border-bottom:1px solid #e3e8f0}.chat-sidebar h2{display:inline;font-size:13px;margin:0 10px}.chat-sidebar>.primary{width:auto;padding:6px 10px;margin-right:8px;font-size:10px}.chat-list{display:flex;overflow:auto;gap:5px;margin-top:8px}.chat-item{white-space:nowrap;font-size:11px;padding:6px 10px}.conversation{min-height:0}.conversation-heading h2{font-size:12px}.conversation-heading .muted{font-size:9px}.composer .primary{font-size:11px;padding:8px 12px}.composer-actions>div{gap:0}.message{max-width:95%}.empty{padding:30px 15px}}

.worker-nav{margin-top:12px;background:transparent}.dot.online{background:#57c79a}.status-pill.connected{background:#e6f6ee;color:#368867}.execution-progress{font-size:11px;color:#7c87a0}.worker-row{padding:14px 0;border-bottom:1px solid #e8ecf3}.worker-row p{font-size:11px;margin:6px 0}.worker-row .text-button{color:#b45a55}
@media(max-width:700px){.sidebar .worker-nav{display:block;margin:0;width:auto;font-size:10px;padding:6px}}

.conversation-tools,.chat-actions{display:flex;align-items:center;gap:12px}.chat-actions .text-button{font-size:11px}.text-button.danger{color:#b65555}.conversation-heading h2{overflow-wrap:anywhere}.chat-item{overflow:hidden;text-overflow:ellipsis}.chat-actions{white-space:nowrap}@media(max-width:700px){.conversation-heading{align-items:flex-start}.conversation-tools{flex-direction:column-reverse;align-items:flex-end;gap:5px}.chat-actions{gap:7px}.chat-actions .text-button{font-size:10px;padding:2px}}
