:root{--bg: #f5f5f7;--surface: #ffffff;--surface2: #f0f0f4;--surface3: #e7e7ef;--border: rgba(20, 20, 35, .1);--text: #151520;--text2: #6d6f80;--text3: #999caf;--accent: #5c5fef;--accent2: #10b981;--amber: #f59e0b;--red: #ef4444;--shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 10px 30px rgba(30, 30, 60, .06);font-family:DM Sans,Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);overflow:hidden}button,textarea,input{font:inherit}button{cursor:pointer}.app{height:100vh;display:flex;flex-direction:column}.topbar{height:48px;flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:0 14px;border-bottom:1px solid var(--border);background:var(--surface)}.brandMark{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:var(--accent);color:#fff;font-weight:800;font-size:12px}.brand{display:grid;line-height:1.05;min-width:140px}.brand span,small,.surfaceHeader p,.schemaNote,.workspaceHeader span{color:var(--text2)}.brand span{font-size:10px;margin-top:3px}.nav,.modeSwitch,.sidebarTabs,.tabBar,.workspaceTabs,.promptRow{display:flex;align-items:center;gap:4px}.nav button,.modeSwitch button,.sidebarTabs button,.tabBar button,.workspaceTabs button,.promptRow button,.ghostAction{border:0;border-radius:8px;background:transparent;color:var(--text2);padding:7px 10px;font-size:12px}.nav button.active,.modeSwitch button.active,.sidebarTabs button.active,.tabBar button.active,.workspaceTabs button.active{background:#5c5fef1f;color:var(--accent);font-weight:700}.modeSwitch{margin-left:auto;padding:3px;border:1px solid var(--border);border-radius:10px;background:var(--surface2)}.backendPill{margin-left:auto;border:1px solid var(--border);border-radius:999px;padding:6px 10px;background:var(--surface2);color:var(--text2);font-size:11px;font-weight:800}.backendPill.online{border-color:#10b98159;color:#047857}.backendPill.offline{border-color:#ef444459;color:var(--red)}.backendPill+.modeSwitch{margin-left:0}.main{min-height:0;flex:1;display:grid;grid-template-columns:260px minmax(360px,1fr) 340px}.sidebar,.workspace{min-height:0;overflow:auto;background:var(--surface)}.sidebar{border-right:1px solid var(--border);padding:10px}.workspace{border-left:1px solid var(--border)}.search{width:100%;border:0;outline:none;border-radius:9px;background:var(--surface2);padding:9px 11px;color:var(--text)}.sidebarTabs{margin:8px 0 12px;border-bottom:1px solid var(--border)}.sidebarTabs button{flex:1;border-radius:7px 7px 0 0;font-size:10px}.groupList,.agentList{display:grid;gap:4px}.groupCard,.agentItem{width:100%;border:0;border-radius:10px;background:transparent;color:var(--text);padding:8px;display:grid;grid-template-columns:34px 1fr 8px;align-items:center;gap:8px;text-align:left}.groupCard{grid-template-columns:34px 1fr}.groupCard:hover,.agentItem:hover,.groupCard.active,.agentItem.active{background:#5c5fef1a}.agentEmoji,.groupCard>span:first-child,.avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:var(--surface2)}.agentText,.groupCard span:last-child{display:grid;min-width:0}.agentText small,.groupCard small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px}.sectionLabel{margin:12px 4px 4px;color:var(--text3);font-size:10px;text-transform:uppercase;font-weight:800;letter-spacing:.08em}.status{width:7px;height:7px;border-radius:999px}.status.online{background:var(--accent2)}.status.busy{background:var(--amber)}.status.idle{background:var(--text3)}.center{min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--bg)}.surface{min-height:0;flex:1;display:flex;flex-direction:column}.surface.padded{padding:18px;overflow:auto}.surfaceHeader,.workspaceHeader{display:flex;align-items:center;gap:10px;padding:13px 16px;border-bottom:1px solid var(--border);background:var(--surface)}.surfaceHeader.compact{border:0;background:transparent;padding:0 0 14px}.surfaceHeader h1{margin:0;font-size:15px}.surfaceHeader p{margin:2px 0 0;font-size:11px}.tabBar,.workspaceTabs{padding:7px 10px;border-bottom:1px solid var(--border);background:var(--surface);overflow-x:auto}.heroPanel{flex:1;min-height:260px;display:grid;place-items:center;align-content:center;text-align:center;color:var(--text2);gap:8px}.heroIcon{font-size:40px}.heroPanel h2{margin:0;color:var(--text);font-size:18px}.heroPanel p{margin:0;max-width:520px}.ghostAction{margin-top:8px;border:1px solid rgba(92,95,239,.2);background:#5c5fef14;color:var(--accent)}.promptRow{padding:8px 14px;border-top:1px solid var(--border);background:var(--surface);overflow:auto}.promptRow button{border:1px solid var(--border);background:var(--surface);white-space:nowrap}.composer{padding:0 14px 14px;background:var(--surface);display:grid;grid-template-columns:1fr 72px;gap:8px}.builderReply{margin:0;padding:9px 14px;border-top:1px solid var(--border);background:#10b98114;color:#047857;font-size:12px}.builderReply.error{background:#ef444414;color:var(--red)}.composer textarea{resize:none;min-height:76px;border:1px solid rgba(92,95,239,.25);box-shadow:0 0 0 3px #5c5fef14;border-radius:12px;padding:14px;outline:none}.composer button{border:0;border-radius:12px;background:var(--accent);color:#fff;font-weight:800}button:disabled{cursor:not-allowed;opacity:.55}.workspaceHeader{justify-content:space-between}.workspaceHeader span{font-size:10px}.widgetGrid{display:grid;gap:10px;padding:12px}.specHeader{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px solid var(--border);border-radius:10px;background:var(--surface2)}.specHeader>div{display:grid;gap:2px;min-width:0}.specHeader button{border:0;border-radius:8px;background:var(--accent);color:#fff;padding:7px 10px;font-size:12px;font-weight:800}.widget,.taskCard,.officeCard,.kanbanCol{border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:var(--shadow)}.widget{padding:12px}.widget small{font-weight:800;text-transform:uppercase;letter-spacing:.05em;font-size:10px}.widget strong{display:block;margin-top:8px;font-size:24px}.widget p,.schemaNote{margin:6px 0 0;font-size:12px}.schemaNote{margin:0 12px 12px;padding:12px;border:1px dashed var(--border);border-radius:10px;background:var(--surface2)}.kanban{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.kanbanCol{min-height:320px;padding:12px}.kanbanCol h2{margin:0 0 10px;font-size:13px}.taskCard{padding:10px;display:grid;gap:5px;margin-bottom:8px}.taskEdit{width:100%;border:1px solid var(--border);border-radius:7px;padding:7px 8px;outline:none}.taskActions{display:flex;gap:6px;margin-top:3px}.taskActions button{border:1px solid var(--border);border-radius:7px;background:var(--surface2);color:var(--text2);padding:5px 7px;font-size:11px}.outputCard{border:1px solid var(--border);border-radius:10px;background:var(--surface);padding:12px;box-shadow:var(--shadow)}.agentProfileCard{border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:var(--shadow);overflow:hidden}.agentProfileHeader{display:flex;justify-content:space-between;gap:10px;padding:12px;border-bottom:1px solid var(--border);background:var(--surface2)}.agentProfileHeader>div{display:grid;gap:3px;min-width:0}.agentProfileHeader span{align-self:start;border-radius:999px;background:#5c5fef1f;color:var(--accent);padding:4px 7px;font-size:11px;font-weight:800}.profileGrid{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:12px}.profileField{display:grid;gap:5px;color:var(--text2);font-size:11px;font-weight:800}.profileField.wide{grid-column:1 / -1}.profileField input,.profileField textarea{width:100%;min-width:0;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);padding:8px;outline:none;font-size:12px;font-weight:500}.profileField textarea{min-height:72px;resize:vertical}.profileActions{display:flex;gap:8px;padding:0 12px 12px}.profileActions button,.profileHistory button{border:1px solid var(--border);border-radius:8px;background:var(--surface2);color:var(--text2);padding:7px 9px;font-size:12px;font-weight:800}.profileActions button:first-child{border-color:#5c5fef40;background:var(--accent);color:#fff}.profileMeta{margin:0 12px 12px;color:var(--text2);font-size:12px}.compiledPrompt{margin:0 12px 12px;max-height:240px;overflow:auto;white-space:pre-wrap;border:1px solid var(--border);border-radius:8px;background:#10131f;color:#eef2ff;padding:10px;font-size:11px}.profileHistory{display:grid;gap:6px;padding:12px;border-top:1px solid var(--border);background:var(--surface2)}.profileHistory strong{font-size:12px}.outputCard p{margin:7px 0 0;color:var(--text2);font-size:12px}.outputCard em{display:block;margin-top:8px;color:var(--text3);font-size:11px;font-style:normal}.notesPanel,.runPreview,.emptyPanel{border:1px solid var(--border);border-radius:10px;background:var(--surface2);padding:12px}.notesPanel{display:grid;gap:8px}.notesPanel textarea{width:100%;min-height:220px;resize:vertical;border:1px solid var(--border);border-radius:8px;padding:10px;outline:none;background:var(--surface)}.runPreview{padding:0;overflow:hidden}.runPreviewBar{display:flex;gap:6px;padding:7px 10px;border-bottom:1px solid var(--border);color:var(--text3);font-size:10px;font-weight:800;text-transform:uppercase}.runPreview pre{margin:0;padding:12px;max-height:360px;overflow:auto;font-size:11px;white-space:pre-wrap}.officeGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.officeCard{padding:14px;display:grid;gap:6px}.officeCard span{font-size:24px}@media(max-width:920px){.main{grid-template-columns:220px minmax(320px,1fr)}.workspace{display:none}}@media(max-width:700px){body{overflow:auto}.app{min-height:100vh;height:auto}.topbar{flex-wrap:wrap;height:auto;padding-block:8px}.main{display:block}.sidebar{max-height:260px;border-right:0;border-bottom:1px solid var(--border)}.composer{grid-template-columns:1fr}}
