:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f8faf9;--surface:#fff;--surface-soft:#f1f5f4;--surface-subtle:#fbfcfc;--ink:#151918;--ink-soft:#313b39;--muted:#66736f;--line:#dbe3e0;--line-strong:#c7d2ce;--accent:#0f766e;--accent-strong:#0a5f59;--accent-soft:#e2f4f1;--blue:#315caa;--amber:#9a6700;--danger:#b42318;--radius:6px;--nav-height:46px;--soft-shadow:0 16px 40px #121c1914;--lift-shadow:0 10px 28px #121c191a;letter-spacing:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{min-height:100%}body{background:linear-gradient(135deg, #0f766e0d, transparent 32%), linear-gradient(315deg, #9a67000d, transparent 38%), var(--bg);color:var(--ink);letter-spacing:0;margin:0;font-size:15px}body.is-resizing{cursor:col-resize;-webkit-user-select:none;user-select:none}button,input,select,textarea{font:inherit;letter-spacing:0}button{cursor:pointer}button:disabled,textarea:disabled{cursor:not-allowed;opacity:.65}h1,h2,p{margin:0}h1{overflow-wrap:anywhere;font-size:1.25rem;font-weight:700;line-height:1.2}h2{overflow-wrap:anywhere;font-size:.92rem;font-weight:500;line-height:1.25}strong{font-weight:500}.loading-screen,.login-screen{background:linear-gradient(90deg, #0f766e14, transparent 34%), var(--bg);place-items:center;min-height:100dvh;padding:clamp(1rem,4vw,3rem);display:grid}.loading-mark{color:var(--accent-strong);font-weight:500}.login-panel{gap:1.5rem;width:min(100%,430px);display:grid}.login-brand,.brand-block,.agent-heading{align-items:center;gap:.85rem;display:flex}.login-brand h1{margin-bottom:.25rem}.login-brand p,.brand-block span,.muted-note,.document-row small{color:var(--muted)}.brand-icon,.agent-avatar{border-radius:var(--radius);background:var(--accent-soft);width:32px;height:32px;color:var(--accent-strong);flex:none;place-items:center;display:grid}.brand-icon.large{width:48px;height:48px}.form-stack,.create-user-panel{gap:1rem;display:grid}label{color:var(--ink-soft);gap:.45rem;min-width:0;font-weight:500;display:grid}input,select,textarea{border:1px solid var(--line-strong);border-radius:var(--radius);background:var(--surface);width:100%;min-width:0;color:var(--ink);outline:none;min-height:44px;padding:.72rem .8rem}textarea{resize:vertical;min-height:82px;line-height:1.45}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #0f766e21}.primary-button,.secondary-button,.icon-button,.history-item{border-radius:var(--radius);border:0;justify-content:center;align-items:center;gap:.55rem;min-width:0;min-height:34px;font-weight:500;display:inline-flex}.primary-button{background:var(--accent);color:#fff;padding:.72rem 1rem}.primary-button:hover{background:var(--accent-strong)}.secondary-button{border:1px solid var(--line);color:var(--ink);background:0 0;padding:.68rem .9rem}.secondary-button:hover,.icon-button:hover{background:var(--surface-soft)}.icon-button{border:1px solid var(--line);width:34px;min-height:34px;color:var(--ink);background:0 0;padding:0}.compact-icon-button{border-color:#0000;width:34px;min-height:34px}.compact-icon-button:hover{color:var(--danger)}.panel-resizer{z-index:5;cursor:col-resize;touch-action:none;width:8px;height:100%;position:absolute;top:0;right:-4px}.panel-resizer:after{content:"";background:0 0;position:absolute;inset:0 3px}.panel-resizer:hover:after,body.is-resizing .panel-resizer:after{background:var(--accent)}.compact-button{min-height:32px;padding:.35rem .55rem}.app-shell{background:var(--bg);grid-template-columns:minmax(0,1fr);min-height:100dvh;display:grid}.main-area{grid-template-rows:var(--nav-height) minmax(0, 1fr);min-width:0;display:grid}.workspace{min-width:0;min-height:0;overflow:auto}.start-view{min-height:calc(100dvh - var(--nav-height));background:linear-gradient(135deg, #0f766e0f, transparent 36%), linear-gradient(315deg, #315caa0d, transparent 42%), var(--bg);display:block}.window-grid{grid-template-columns:minmax(0,560px);align-content:start;gap:.55rem;padding:.85rem;display:grid}.window-tile{border-radius:var(--radius);min-height:56px;color:var(--ink-soft);text-align:left;box-shadow:0 1px 0 #121c190a, var(--soft-shadow);background:#ffffffc7;border:0;align-items:center;gap:.65rem;padding:.72rem .8rem;display:flex}.window-tile:hover{color:var(--accent-strong);background:#fff;transform:translateY(-1px)}.conversation-tile{grid-template-columns:minmax(0,1fr) auto;padding:0;display:grid}.conversation-open{min-width:0;min-height:56px;color:inherit;text-align:left;background:0 0;border:0;align-items:center;gap:.65rem;padding:.72rem .8rem;display:flex}.conversation-tile .compact-icon-button{align-self:center;margin-right:.45rem}.window-tile span{min-width:0}.window-tile>span:not(.window-tile-content){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.window-tile-content{gap:.18rem;min-width:0;display:grid}.window-tile-content>span{color:var(--ink-soft);text-overflow:ellipsis;white-space:nowrap;font-weight:500;overflow:hidden}.window-tile-content small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:.8rem;font-weight:400;overflow:hidden}.workspace-tabs{min-width:0;min-height:var(--nav-height);scrollbar-width:thin;background:#121916;align-items:center;gap:.28rem;padding:.3rem .55rem;display:flex;overflow-x:auto;box-shadow:0 10px 26px #1219162e}.workspace-tab{color:#d7dfdc;background:0 0;border:0;border-radius:999px;flex:none;align-items:center;gap:.45rem;min-height:34px;padding:.42rem .78rem;display:inline-flex}.workspace-tab:hover{color:#fff;background:#ffffff14}.workspace-tab.is-active{color:#fff;background:#e2f4f129;box-shadow:inset 0 0 0 1px #e2f4f138}.workspace-tab.is-muted{color:#96a29e}.logout-tab{color:var(--danger);margin-left:auto}.logout-tab:hover{color:#ffd8d4;background:#b4231829}.role-badge,.active-badge,.readonly-badge{text-overflow:ellipsis;white-space:nowrap;border-radius:999px;justify-content:center;align-items:center;max-width:min(100%,180px);min-height:28px;padding:.18rem .62rem;font-size:.84rem;font-weight:500;display:inline-flex;overflow:hidden}.role-ceo{color:var(--blue);background:#e9efff}.role-development{background:var(--accent-soft);color:var(--accent-strong)}.role-marketing{color:var(--amber);background:#fff3d8}.active-badge.is-active{background:var(--accent-soft);color:var(--accent-strong)}.active-badge.is-inactive,.readonly-badge{color:var(--danger);background:#fce8e6}.error-box{color:var(--danger);background:#fff6f5;border-block:1px solid #efc1bc;padding:.75rem 1rem}.chat-layout{height:calc(100dvh - var(--nav-height));grid-template-columns:minmax(0,1fr);min-height:0;display:grid}.history-panel,.chat-panel,.document-section,.create-user-panel,.users-table-wrap{background:0 0;border:0;border-radius:0}.history-panel,.chat-panel{min-height:0;display:grid}.history-panel{background:#ffffff9e;grid-template-rows:auto minmax(0,1fr);position:relative;box-shadow:12px 0 34px #121c190f}.chat-panel{background:var(--bg);grid-template-rows:auto auto minmax(0,1fr) auto}.panel-header,.view-header{background:#ffffff8a;justify-content:space-between;align-items:center;gap:1rem;padding:.62rem .75rem;display:flex}.panel-actions{align-items:center;gap:.45rem;min-width:0;display:inline-flex}.panel-header>*,.view-header>*,.agent-heading,.chat-heading,.agent-heading>div:last-child{min-width:0}.agent-heading h2{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.view-header{padding:.75rem .85rem}.eyebrow{color:var(--muted);text-transform:uppercase;margin-bottom:.25rem;font-size:.78rem;font-weight:500;display:block}.history-list{align-content:start;gap:.2rem;min-height:0;padding:.35rem;display:grid;overflow:auto}.history-entry{border-radius:var(--radius);grid-template-columns:minmax(0,1fr) auto;align-items:center;display:grid}.history-entry:hover,.history-entry.is-active{background:var(--surface-soft)}.history-entry.is-active{background:var(--accent-soft);color:var(--accent-strong)}.history-entry.is-active .history-item{color:var(--accent-strong)}.history-item{text-align:left;width:100%;color:var(--ink-soft);background:0 0;justify-content:flex-start;padding:.62rem .65rem}.history-item span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.message-list{flex-direction:column;gap:.85rem;min-height:0;padding:.85rem;display:flex;overflow:auto}.message-row{display:flex}.message-row.user{justify-content:flex-end}.message-row.assistant,.message-row.system{justify-content:flex-start}.message-bubble{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);white-space:pre-wrap;overflow-wrap:anywhere;min-width:0;max-width:min(780px,86%);padding:.62rem .72rem;line-height:1.5}.message-row.user .message-bubble{background:var(--accent-soft);border-color:#b9ded8}.message-bubble span{color:var(--muted);margin-bottom:.35rem;font-size:.78rem;font-weight:500;display:block}.message-bubble small{color:var(--muted);margin-bottom:.35rem;font-size:.74rem;display:block}.chat-controls{align-items:center;gap:.75rem;min-width:0;display:flex}.model-picker{gap:.3rem;min-width:min(260px,36vw);display:grid}.model-picker span{color:var(--muted);font-size:.76rem;font-weight:500}.model-picker select{background:var(--surface-subtle);text-overflow:ellipsis;min-height:38px}.composer{background:#ffffffc7;grid-template-columns:minmax(0,1fr) 46px;align-items:center;gap:.55rem;padding:.55rem .65rem;display:grid;box-shadow:0 -10px 26px #121c190e}.composer textarea{min-height:46px;max-height:120px;padding-block:.62rem}.send-button{width:46px;min-width:46px;min-height:46px;padding:0}.empty-state,.muted-note{color:var(--muted);padding:1rem}.empty-state{background:0 0}.empty-state.compact{align-self:center}.documents-view,.admin-view{min-height:calc(100dvh - var(--nav-height));grid-template-rows:auto minmax(0,1fr);align-content:start;gap:0;display:grid}.view-tools{background:#ffffff75;justify-content:flex-end;align-items:center;gap:.5rem;min-height:42px;padding:.4rem .65rem;display:flex}.access-admin{gap:0;display:grid}.access-grid{grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:.85rem;padding:.85rem;display:grid}.access-panel{box-shadow:var(--soft-shadow);background:#ffffffb8;border:0;border-radius:8px;gap:.85rem;padding:1rem;display:grid}.documents-grid{grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));display:grid}.document-section{overflow:hidden}.document-workbench{grid-template-columns:var(--areas-width,220px) var(--files-width,340px) minmax(0, 1fr);min-height:calc(100dvh - var(--nav-height));background:#ffffff5c;display:grid}.document-screen{min-height:calc(100dvh - var(--nav-height));background:linear-gradient(135deg, #0f766e0b, transparent 34%), var(--bg);grid-template-rows:auto auto minmax(0,1fr);min-width:0;display:grid}.document-screen.editor-mode{grid-template-rows:auto minmax(0,1fr)}.screen-toolbar{background:#ffffff8f;justify-content:space-between;align-items:center;gap:.7rem;min-height:52px;padding:.5rem .65rem;display:flex}.start-toolbar{justify-content:flex-start}.toolbar-left{align-items:center;gap:.55rem;min-width:0;display:flex}.path-chip{min-width:0;color:var(--ink-soft);text-overflow:ellipsis;white-space:nowrap;font-size:.92rem;font-weight:500;overflow:hidden}.area-panel,.file-panel,.editor-panel{background:0 0;border:0;border-radius:0;min-width:0;min-height:0;display:grid;position:relative}.area-panel,.file-panel{box-shadow:10px 0 28px #121c190b}.area-panel{grid-template-rows:minmax(0,1fr)}.file-panel{grid-template-rows:auto auto minmax(0,1fr)}.editor-panel{border-right:0;grid-template-rows:auto minmax(0,1fr)}.area-list,.interactive-list{min-height:0;overflow:auto}.area-list{align-content:start;gap:.2rem;padding:.5rem;display:grid}.area-button{border-radius:var(--radius);min-height:42px;color:var(--ink-soft);text-align:left;background:0 0;border:0;align-items:center;gap:.55rem;padding:.62rem .65rem;font-weight:500;display:flex}.area-button span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.area-button:hover,.document-row:hover{background:var(--surface-soft)}.area-button.is-active,.document-row.is-active{background:var(--accent-soft);color:var(--accent-strong)}.file-panel-header,.editor-header{min-height:52px}.file-toolbar,.editor-actions{align-items:center;gap:.5rem;min-width:0;display:flex}.create-file-form{background:#ffffff6b;grid-template-columns:minmax(0,1fr) auto auto;gap:.55rem;padding:.5rem;display:grid}.upload-button{position:relative;overflow:hidden}.upload-button input{opacity:0;pointer-events:none;position:absolute;inset:0}.upload-button.is-disabled{cursor:not-allowed;opacity:.65}.document-list{display:grid}.document-row{width:100%;color:var(--ink-soft);text-align:left;background:0 0;border:0;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.65rem;min-height:36px;padding:.5rem .7rem;display:grid}.document-row span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.file-editor{resize:none;background:var(--surface);border:0;border-radius:0;min-height:100%;padding:.75rem;font-family:Cascadia Code,SFMono-Regular,Consolas,monospace;line-height:1.55}.file-editor:focus{box-shadow:inset 0 0 0 3px #0f766e1f}.operational-workspace{--agent-rail-width:270px;--agent-panel-width:380px;min-height:calc(100dvh - var(--nav-height));height:calc(100dvh - var(--nav-height));grid-template-columns:var(--agent-rail-width) minmax(0, 1fr) var(--agent-panel-width);background:linear-gradient(135deg, #0f766e0b, transparent 38%), linear-gradient(315deg, #315caa0a, transparent 42%), var(--bg);min-width:0;display:grid;overflow:hidden}.operational-workspace.is-left-collapsed{--agent-rail-width:52px}.operational-workspace.is-right-collapsed{--agent-panel-width:46px}.agent-rail,.agent-chat-panel{background:#ffffff94;min-width:0;min-height:0;display:grid}.agent-rail{grid-template-rows:auto auto minmax(0,1fr);box-shadow:10px 0 28px #121c190d}.agent-chat-panel{grid-template-rows:auto auto auto minmax(0,1fr) auto;box-shadow:-10px 0 28px #121c190d}.workspace-documents{min-width:0;min-height:0;overflow:hidden}.documents-view.is-embedded,.documents-view.is-embedded .document-screen,.documents-view.is-embedded .start-view{min-height:calc(100dvh - var(--nav-height));height:calc(100dvh - var(--nav-height))}.rail-toolbar,.agent-panel-header{min-height:48px;color:var(--ink-soft);background:#ffffff75;justify-content:space-between;align-items:center;gap:.55rem;padding:.45rem .55rem;font-size:.9rem;font-weight:500;display:flex}.rail-toolbar.slim{min-height:40px;font-size:.82rem}.agent-list,.conversation-list{align-content:start;gap:.18rem;min-height:0;padding:.4rem;display:grid;overflow:auto}.agent-list-button{border-radius:var(--radius);width:100%;min-height:44px;color:var(--ink-soft);text-align:left;background:0 0;border:0;align-items:center;gap:.55rem;padding:.55rem;display:flex}.agent-list-button:hover,.agent-list-button.is-active,.workspace-conversation:hover,.workspace-conversation.is-active{background:var(--accent-soft);color:var(--accent-strong)}.agent-list-button>span{gap:.12rem;min-width:0;display:grid}.agent-list-button>span>span,.agent-list-button small,.workspace-conversation span,.agent-panel-header span,.agent-panel-header small{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.agent-list-button small,.agent-panel-header small{color:var(--muted);font-size:.75rem;font-weight:400}.conversation-strip{grid-template-rows:auto minmax(0,1fr);min-height:0;display:grid}.workspace-conversation{border-radius:var(--radius);grid-template-columns:minmax(0,1fr) auto;align-items:center;min-width:0;display:grid}.workspace-conversation>button:first-child{min-width:0;min-height:36px;color:inherit;text-align:left;background:0 0;border:0;align-items:center;gap:.45rem;padding:.45rem .5rem;display:flex}.agent-panel-header>div{gap:.12rem;min-width:0;display:grid}.panel-model-picker{min-width:0;padding:.45rem .55rem}.workspace-message-list{padding:.65rem}.workspace-message-list .message-bubble{max-width:94%}.workspace-composer{grid-template-columns:minmax(0,1fr) 42px;padding:.5rem}.workspace-composer textarea{min-height:42px;max-height:110px}.workspace-composer .send-button,.agent-panel-opener{width:42px;min-width:42px;min-height:42px}.agent-panel-opener{color:var(--ink-soft);background:0 0;border:0;border-radius:0;place-items:center;display:grid}.agent-panel-opener:hover{background:var(--accent-soft);color:var(--accent-strong)}.create-user-panel{background:#ffffff8f;grid-template-columns:repeat(4,minmax(150px,1fr)) auto;align-items:end;padding:1rem}.users-table-wrap{overflow-x:auto}.users-table{border-collapse:collapse;width:100%;min-width:760px}.users-table th,.users-table td{text-align:left;vertical-align:middle;border-bottom:1px solid #0f766e14;padding:.85rem 1rem}.users-table th{color:var(--muted);font-size:.86rem}.users-table td strong,.users-table td span{display:block}.users-table td strong{font-weight:500}.users-table td span{color:var(--muted);margin-top:.2rem}.table-actions{align-items:center;gap:.5rem;display:flex}.table-actions select{min-width:160px}@media (width<=1040px){.operational-workspace{--agent-rail-width:230px;--agent-panel-width:340px}.document-workbench{grid-template-columns:200px minmax(0,1fr)}.editor-panel{grid-column:1/-1;min-height:420px;box-shadow:0 -10px 26px #121c190b}.create-user-panel{grid-template-columns:repeat(2,minmax(160px,1fr))}.create-user-panel .primary-button{grid-column:1/-1}}@media (width<=860px){.operational-workspace{--agent-rail-width:52px;--agent-panel-width:min(360px, 86vw);grid-template-columns:var(--agent-rail-width) minmax(0, 1fr);position:relative}.operational-workspace .agent-rail{grid-template-rows:auto auto}.operational-workspace .agent-rail .rail-toolbar span,.operational-workspace .agent-list-button>span,.conversation-strip{display:none}.agent-chat-panel{inset-block:0;width:var(--agent-panel-width);z-index:3;position:absolute;right:0}.operational-workspace.is-right-collapsed{--agent-panel-width:46px}.panel-resizer{display:none}.chat-layout{grid-template-columns:1fr;height:auto;min-height:0}.history-panel{border-right:0;min-height:260px;box-shadow:0 10px 24px #121c190e}.chat-panel{min-height:520px}.composer{grid-template-columns:minmax(0,1fr) 42px}.send-button{width:42px;min-width:42px;min-height:42px}.document-workbench{grid-template-columns:1fr;min-height:0}.area-panel,.file-panel,.editor-panel{border-right:0;min-height:320px;box-shadow:0 10px 24px #121c190b}}@media (width<=620px){.view-header,.panel-header{flex-direction:column;align-items:flex-start}.chat-heading{flex-direction:column;align-items:stretch}.chat-controls,.model-picker{width:100%;min-width:0}.message-bubble{max-width:100%}.create-user-panel{grid-template-columns:1fr}.table-actions{flex-direction:column;align-items:stretch}.create-file-form,.editor-actions{grid-template-columns:1fr;width:100%}.screen-toolbar{flex-direction:column;align-items:stretch}.toolbar-left,.file-toolbar{width:100%}.file-toolbar{justify-content:flex-start;overflow-x:auto}.editor-actions{flex-direction:column;align-items:stretch}.editor-actions .secondary-button,.editor-actions .primary-button{width:100%}}
