:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:dark;--bg:#11151c;--panel:#171d26;--panel2:#1d2530;--line:#2a3341;--text:#eef2f7;--muted:#91a0b4;--subtle:#67778d;--accent:#84b8f1;--accent-bg:#22364f;--green:#8cc6b0;--red:#f49b9b;--yellow:#ddbf85;--sidebar:236px;--chat:410px;--radius:12px;font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,textarea,select{font:inherit}button,a,input,textarea,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.45;cursor:wait}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button,input,textarea,select,a{outline:none}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}input:focus,textarea:focus,select:focus{border-color:var(--accent)!important;box-shadow:0 0 0 3px #84b8f11a}h1,h2,h3,p{margin:0}h1{font-size:28px;line-height:1.3;font-weight:700;letter-spacing:-.035em}h2{font-size:20px;font-weight:700;letter-spacing:-.025em}h3{font-size:16px;font-weight:700}p{line-height:1.65}svg{width:20px;height:20px;flex:none;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}button svg{pointer-events:none}.muted{color:var(--muted)}.small{font-size:13px}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.boot{min-height:100svh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:22px;color:var(--muted)}.brand-mark{height:38px;width:38px;border-radius:11px;background:#253a53;color:#a1ceff;display:grid;place-items:center;font-size:23px;font-weight:800;letter-spacing:-.14em;padding-right:4px}.brand{display:flex;align-items:center;gap:11px;font-weight:800;letter-spacing:.035em;font-size:16px}.brand small{font-size:10px;letter-spacing:.2em;color:var(--muted);display:block;margin-top:3px;font-weight:600}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:9px;background:var(--panel2);padding:10px 15px;font-size:14px;font-weight:600;white-space:nowrap;min-height:40px;transition:background .15s,border-color .15s}.btn:hover{background:#283342;border-color:#41506a}.btn.primary{background:var(--accent);border-color:var(--accent);color:#132338}.btn.primary:hover{background:#a0caff}.btn.ghost{background:transparent}.btn.danger{color:var(--red);background:#f49b9b0d;border-color:#663b40}.btn.compact{min-height:32px;padding:6px 10px;font-size:12px}.icon-btn{height:36px;width:36px;display:inline-grid;place-items:center;border:1px solid transparent;background:transparent;border-radius:8px;color:var(--muted)}.icon-btn:hover{background:var(--panel2);color:var(--text)}.badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;padding:4px 8px;border-radius:6px;background:#26303e;color:#abb8cb;white-space:nowrap}.badge.blue{background:#84b8f117;color:var(--accent)}.badge.green{background:#8cc6b016;color:var(--green)}.badge.yellow{background:#ddbf8517;color:var(--yellow)}.badge.red{background:#f49b9b17;color:var(--red)}.dot{height:6px;width:6px;border-radius:50%;background:currentColor;flex:none}.divider{height:1px;background:var(--line);margin:20px 0}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}.field label,.field-label{font-size:13px;color:#c8d2df;font-weight:600}.field input,.field textarea,.field select,.filter-input{width:100%;background:#121822;border:1px solid #344052;border-radius:9px;padding:11px 13px;line-height:1.4;color:var(--text);min-height:44px}.field input::placeholder,.field textarea::placeholder{color:#65758b}.field textarea{min-height:104px;resize:vertical}.field small{font-size:12px;color:var(--muted);line-height:1.55}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.input-wrap{position:relative}.input-wrap input{padding-right:45px}.input-wrap .icon-btn{position:absolute;right:5px;top:5px}.error-box{padding:12px 15px;border:1px solid #f49b9b35;border-radius:9px;background:#f49b9b09;color:#f4b6b6;font-size:13px;line-height:1.6;margin-bottom:18px}.note{padding:14px 16px;border:1px solid var(--line);background:#192230;border-radius:9px;font-size:13px;color:#a8b8cd;line-height:1.7}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.login-page{min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 24px;background:radial-gradient(ellipse at 50% 0%,#1b2a3b 0,transparent 52%),var(--bg)}.login-brand{margin-bottom:36px}.login-card{width:min(100%,420px);background:#171e28;border:1px solid #303c4d;border-radius:18px;padding:32px;box-shadow:0 24px 80px #05090e40}.login-card h1{font-size:25px;margin-bottom:10px}.login-card>p{font-size:14px;color:var(--muted);margin-bottom:28px}.login-card .btn.primary{width:100%;margin-top:6px}.login-foot{font-size:12px;color:var(--subtle);margin-top:24px;display:flex;align-items:center;gap:7px}.login-foot svg{width:14px;height:14px}.app-shell{height:100svh;display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);transition:grid-template-columns .18s;overflow:hidden}.sidebar{display:flex;flex-direction:column;background:#141a22;border-right:1px solid var(--line);min-width:0;overflow:hidden}.sidebar-head{height:80px;flex:none;padding:22px 20px;display:flex;align-items:center;gap:10px}.sidebar-head .brand{flex:1}.sidebar-head .icon-btn{display:none}.sidebar-label{font-size:10px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--subtle);padding:18px 22px 9px}.nav{display:flex;flex-direction:column;gap:5px;padding:0 12px}.nav-btn{height:43px;border:1px solid transparent;padding:0 11px;display:flex;align-items:center;gap:12px;background:transparent;color:#97a6b9;border-radius:8px;text-align:left;font-size:13px;font-weight:500;white-space:nowrap}.nav-btn:hover{color:var(--text);background:#1b2430}.nav-btn.active{color:#c1dcfb;background:#84b8f115;border-color:#84b8f118}.nav-btn svg{width:18px;height:18px}.nav-btn .nav-count{font-size:10px;color:var(--muted);margin-left:auto;background:#263342;border-radius:4px;padding:3px 5px}.sidebar-projects{overflow-y:auto;min-height:0;padding-bottom:12px}.project-nav{font-size:12px;height:36px;gap:10px}.project-dot{height:7px;width:7px;border-radius:2px;background:#667c9c;flex:none;margin:0 5px}.project-nav.active .project-dot{background:var(--accent)}.sidebar-foot{margin-top:auto;padding:15px 14px;border-top:1px solid var(--line);display:flex;align-items:center;gap:10px;min-height:76px}.avatar{width:34px;height:34px;border-radius:10px;background:#344152;color:#d8e6f7;display:grid;place-items:center;font-size:12px;font-weight:700;flex:none}.user-meta{flex:1;min-width:0}.user-meta strong{font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis}.user-meta small{font-size:10px;color:var(--muted);display:block;margin-top:4px}.sidebar-folded{--sidebar:76px}.sidebar-folded .brand>span,.sidebar-folded .nav-btn>span,.sidebar-folded .sidebar-label,.sidebar-folded .user-meta,.sidebar-folded .sidebar-foot .icon-btn{display:none}.sidebar-folded .sidebar-head{padding:20px 18px}.sidebar-folded .nav{padding:0 14px}.sidebar-folded .nav-btn{justify-content:center;padding:0}.sidebar-folded .project-nav{height:36px}.sidebar-folded .project-dot{width:8px;height:8px;margin:0}.sidebar-folded .sidebar-foot{padding:15px 20px}.main{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}.topbar{height:67px;padding:0 26px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:14px;flex:none;background:#11171f}.topbar .breadcrumb{font-size:12px;color:var(--subtle);display:flex;align-items:center;gap:12px}.breadcrumb strong{font-weight:500;color:#c6d1df}.topbar-right{margin-left:auto;display:flex;align-items:center;gap:18px}.topbar-right .badge{font-size:10px;background:transparent;color:var(--muted)}.topbar-right .small{font-size:11px;color:var(--subtle)}.view{flex:1;overflow:auto;min-height:0;position:relative}.page{padding:30px;max-width:1500px;margin:auto}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:27px}.page-head p{font-size:13px;color:var(--muted);margin-top:8px;max-width:650px}.page-head .btn{margin-top:3px}.eyebrow{color:var(--subtle);font-size:10px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;margin-bottom:8px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:25px 0 15px}.section-head h2{font-size:16px}.section-head span{font-size:12px;color:var(--muted)}.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:18px}.project-card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:22px;display:flex;flex-direction:column;min-height:216px;transition:border-color .15s,transform .15s;cursor:pointer;text-align:left}.project-card:hover{border-color:#5a7695;transform:translateY(-2px)}.project-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.project-glyph{width:38px;height:38px;border-radius:11px;background:#26384e;color:#a6c8f2;display:grid;place-items:center}.project-card h2{font-size:17px;margin-bottom:8px}.project-card p{font-size:12px;color:var(--muted);line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:20px}.project-card-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--subtle);border-top:1px solid var(--line);padding-top:14px}.project-card-foot svg{width:16px;height:16px;color:var(--accent)}.new-card{border:1px dashed #3c4b5f;background:transparent;justify-content:center;align-items:center;text-align:center;color:var(--muted);gap:13px;min-height:216px}.new-card:hover{color:var(--text);background:#18202a}.new-card .plus{width:40px;height:40px;border:1px solid #3c4b5f;border-radius:12px;display:grid;place-items:center;color:var(--accent)}.new-card strong{font-size:13px}.new-card span{font-size:11px;max-width:220px;line-height:1.6}.workspace{height:100%;display:flex;flex-direction:column;min-height:0}.workspace-head{padding:19px 24px 18px;display:flex;align-items:center;gap:14px;flex:none;border-bottom:1px solid var(--line)}.workspace-head .project-glyph{width:38px;height:38px}.workspace-head h1{font-size:18px}.workspace-head p{font-size:11px;color:var(--muted);margin-top:5px;max-width:650px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-head .head-actions{margin-left:auto;display:flex;gap:7px;align-items:center}.workspace-columns{display:grid;grid-template-columns:var(--chat) 6px minmax(0,1fr);flex:1;min-height:0;overflow:hidden}.chat-pane{display:flex;flex-direction:column;min-height:0;min-width:0;background:#141b24}.pane-title{padding:17px 20px 15px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);flex:none;gap:8px}.pane-title h2{font-size:13px;display:flex;align-items:center;gap:8px}.pane-title h2 svg{width:16px;height:16px;color:var(--accent)}.pane-title .small{font-size:10px;color:var(--subtle)}.messages{overflow-y:auto;flex:1;padding:24px 20px;min-height:0;scroll-behavior:smooth}.chat-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:0 15px}.chat-empty .empty-icon{margin-bottom:19px}.chat-empty h3{font-size:16px;margin-bottom:10px}.chat-empty p{font-size:12px;color:var(--muted);line-height:1.8;max-width:290px}.chat-empty .prompt-examples{display:flex;flex-direction:column;gap:8px;margin-top:22px;width:100%}.prompt-example{font-size:11px;text-align:left;border:1px solid var(--line);border-radius:8px;background:#1b2431;color:#b1bfd2;padding:11px 12px;line-height:1.6}.prompt-example:hover{border-color:#587796}.message{margin-bottom:24px;font-size:13px;line-height:1.75;overflow-wrap:anywhere}.message-author{font-size:10px;font-weight:700;display:flex;align-items:center;gap:8px;margin-bottom:7px;color:#a8b8ce}.message-author time{margin-left:auto;font-weight:400;font-size:9px;color:var(--subtle)}.message-author .avatar{height:24px;width:24px;font-size:9px;border-radius:7px}.message.user .message-body{background:#233246;border:1px solid #344966;border-radius:0 10px 10px 10px;padding:12px 14px}.message.assistant .message-body{color:#cbd6e5;white-space:pre-wrap}.message.system .message-body{font-size:12px;color:var(--muted);border-left:2px solid var(--line);padding-left:12px}.message.user .message-body{white-space:pre-wrap}.message.assistant .avatar{color:var(--accent);background:#24364c}.task-mini{border:1px solid var(--line);border-radius:9px;padding:12px;margin-bottom:16px;background:#1a2330}.task-mini-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px}.task-mini p{color:var(--muted);font-size:11px;margin-top:9px;line-height:1.7}.task-mini .task-mini-actions{display:flex;gap:5px;margin-top:10px}.chat-composer{padding:15px 18px 14px;border-top:1px solid var(--line);flex:none;background:#141b24}.composer-box{background:#1b2532;border:1px solid #3a4b62;border-radius:11px;overflow:hidden}.composer-box:focus-within{border-color:#7daee6}.composer-box textarea{width:100%;border:0;box-shadow:none;outline:none!important;background:transparent;color:var(--text);padding:15px 15px 6px;min-height:95px;max-height:240px;resize:none;line-height:1.6;font-size:12px}.composer-box textarea::placeholder{color:#8291a7}.composer-bottom{display:flex;align-items:center;gap:9px;padding:0 12px 10px;color:#8395ad;font-size:10px}.composer-bottom .send{margin-left:auto;background:#82b5ee;color:#12243b;border:0;border-radius:7px;height:31px;width:33px;display:grid;place-items:center}.composer-bottom .send svg{width:16px;height:16px}.composer-hint{display:flex;justify-content:space-between;color:#687b93;font-size:9px;margin-top:9px;gap:8px}.resize-handle{background:#0c121a;cursor:col-resize;position:relative;touch-action:none}.resize-handle:after{content:"";position:absolute;width:2px;height:35px;top:calc(50% - 17px);left:2px;background:#43516a;border-radius:3px}.resize-handle:hover,.resize-handle.dragging{background:#42638b}.preview-pane{display:flex;flex-direction:column;min-width:0;min-height:0;background:#10151c}.preview-toolbar{height:56px;padding:0 16px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);flex:none}.preview-toolbar h2{font-size:12px;display:flex;gap:8px;align-items:center;color:#bac7d9}.preview-toolbar h2 svg{height:16px;width:16px;color:var(--subtle)}.preview-tools{margin-left:auto;display:flex;align-items:center;gap:8px}.segmented{display:flex;align-items:center;gap:1px;padding:3px;border:1px solid var(--line);border-radius:7px;background:#141d28}.segmented button{border:0;background:transparent;color:#7c8da5;width:31px;height:25px;border-radius:4px;display:grid;place-items:center}.segmented button.active{background:#31445d;color:#c9e2ff}.segmented button svg{height:14px;width:14px}.zoom-select{font-size:10px;border:1px solid var(--line);background:#18212d;color:var(--muted);border-radius:7px;height:33px;padding:0 5px;max-width:65px}.preview-stage{position:relative;min-height:0;flex:1;overflow:auto;display:flex;align-items:flex-start;justify-content:center;padding:22px;background-color:#111720;background-image:radial-gradient(#39475955 .7px,transparent .7px);background-size:17px 17px}.preview-frame-wrap{height:100%;min-height:450px;background:white;border:1px solid #384558;border-radius:8px;overflow:hidden;box-shadow:0 18px 60px #0005;transition:width .18s;flex-shrink:0}.preview-frame-wrap iframe{border:0;width:100%;height:100%;display:block;background:white}.preview-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;height:100%;width:100%;max-width:380px;color:var(--muted)}.preview-empty .browser-shape{width:170px;height:116px;border:1px solid #36465d;border-radius:10px;background:#1a2432;margin-bottom:26px;overflow:hidden;display:flex;flex-direction:column}.browser-shape .browser-bar{border-bottom:1px solid #36465d;padding:10px;display:flex;gap:4px}.browser-shape .browser-bar i{width:4px;height:4px;border-radius:50%;background:#61718a}.browser-shape .browser-body{display:grid;place-items:center;flex:1;color:#6f8dad}.browser-body svg{width:27px;height:27px}.preview-empty h3{color:#c5d2e2;font-size:16px;margin-bottom:10px}.preview-empty p{font-size:12px;line-height:1.8}.preview-footer{padding:9px 16px;font-size:9px;color:var(--subtle);display:flex;align-items:center;gap:7px;border-top:1px solid var(--line);flex:none;background:#151c25}.preview-footer .version{margin-left:auto}.chat-collapsed .workspace-columns{grid-template-columns:0 0 minmax(0,1fr)}.chat-collapsed .chat-pane,.chat-collapsed .resize-handle{visibility:hidden}.workspace-mobile-tabs{display:none}.filter-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:20px}.filter-bar select,.filter-bar input{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:9px 12px;font-size:12px;color:#bdcadd;min-height:37px;max-width:220px}.filter-bar input{flex:1;max-width:330px;min-width:140px}.filter-bar .filter-note{margin-left:auto;font-size:11px;color:var(--subtle)}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin:0 0 24px}.tab{background:transparent;border:0;border-bottom:2px solid transparent;color:var(--muted);font-size:13px;font-weight:600;padding:0 1px 14px}.tab.active{color:var(--accent);border-bottom-color:var(--accent)}.card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:24px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:24px}.stat-card{background:var(--panel);border:1px solid var(--line);border-radius:11px;padding:20px}.stat-card-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px}.stat-card-top svg{height:16px;width:16px;color:var(--subtle)}.stat-value{font-size:29px;font-weight:600;letter-spacing:-.04em;margin-top:14px}.stat-foot{font-size:10px;color:var(--subtle);margin-top:9px}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:11px;background:var(--panel)}table{width:100%;border-collapse:collapse;font-size:12px}th{color:var(--subtle);font-size:10px;font-weight:600;text-align:left;white-space:nowrap;padding:15px 18px;background:#161f2b;border-bottom:1px solid var(--line)}td{padding:17px 18px;border-bottom:1px solid #293443;color:#b9c7da;line-height:1.5;vertical-align:middle}tr:last-child td{border-bottom:0}td strong{color:#dce6f3;font-weight:600}td .secondary{display:block;font-size:10px;color:var(--subtle);margin-top:5px}td.numeric{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.row-actions{display:flex;justify-content:flex-end;gap:4px}.row-actions .icon-btn{height:29px;width:29px}.row-actions .icon-btn svg{height:15px;width:15px}.positive{color:var(--green)}.negative{color:var(--red)}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:58px 25px;text-align:center;min-height:240px}.empty-icon{height:54px;width:54px;display:grid;place-items:center;background:#26364b;color:#8fafd5;border:1px solid #364961;border-radius:16px;margin-bottom:19px}.empty-icon svg{width:23px;height:23px}.empty-state h2{font-size:17px;margin-bottom:10px}.empty-state p{font-size:12px;line-height:1.8;max-width:440px;color:var(--muted)}.empty-state .btn{margin-top:20px}.provider-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}.provider-card{padding:22px;background:var(--panel);border:1px solid var(--line);border-radius:12px}.provider-head{display:flex;align-items:center;gap:12px;margin-bottom:22px}.provider-head .provider-letter{width:40px;height:40px;display:grid;place-items:center;font-size:17px;font-weight:700;background:#2e3b4c;border:1px solid #40546d;border-radius:12px;color:#c9ddf4}.provider-head h3{font-size:15px}.provider-head p{font-size:11px;color:var(--muted);margin-top:4px}.provider-head .badge{margin-left:auto;font-size:9px}.kv-row{display:flex;justify-content:space-between;gap:18px;font-size:11px;color:var(--muted);padding:10px 0;border-bottom:1px solid var(--line)}.kv-row:last-of-type{border:0}.kv-row strong{color:#c2d0e2;font-weight:500;max-width:65%;text-align:right;overflow-wrap:anywhere}.provider-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:19px}.provider-actions .btn{font-size:11px;padding:7px 10px;min-height:32px}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.timeline{border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:4px 22px}.activity-row{display:flex;gap:16px;padding:20px 0;border-bottom:1px solid var(--line);align-items:flex-start}.activity-row:last-child{border:0}.activity-icon{height:31px;width:31px;border:1px solid var(--line);border-radius:9px;display:grid;place-items:center;color:var(--accent);background:#233347;flex:none}.activity-icon svg{height:14px;width:14px}.activity-info{flex:1}.activity-info h3{font-size:12px;margin:1px 0 5px}.activity-info p{color:var(--muted);font-size:11px;line-height:1.6}.activity-row time{font-size:10px;color:var(--subtle);white-space:nowrap;padding-top:3px}.profile-grid{display:grid;grid-template-columns:minmax(0,560px) minmax(0,1fr);gap:24px}.profile-id{display:flex;align-items:center;gap:15px;margin-bottom:25px}.profile-id .avatar{height:50px;width:50px;font-size:18px;border-radius:14px}.profile-id h2{font-size:18px}.profile-id p{font-size:11px;color:var(--muted);margin-top:5px}.permission-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:8px 0 20px}.check-label{display:flex;gap:9px;align-items:center;font-size:12px;color:#b4c3d6;cursor:pointer;line-height:1.5}.check-label input{accent-color:var(--accent);width:16px;height:16px;min-height:unset;margin:0}.project-checks{max-height:180px;overflow:auto;border:1px solid var(--line);border-radius:9px;padding:12px;display:flex;flex-direction:column;gap:11px}.modal-overlay{position:fixed;inset:0;z-index:100;background:#060b14c9;backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:26px}.modal{width:min(100%,530px);background:#19212d;border:1px solid #41506a;border-radius:16px;box-shadow:0 30px 100px #0008;max-height:90svh;overflow:auto}.modal.wide{width:min(100%,780px)}.modal-head{padding:22px 25px 18px;display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#19212d;z-index:1}.modal-head h2{font-size:18px}.modal-body{padding:24px 25px}.modal-body>p{font-size:13px;color:var(--muted);margin-bottom:22px;line-height:1.7}.modal-body .error-box:empty{display:none}.modal pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#111924;border:1px solid var(--line);padding:15px;font-size:11px;line-height:1.75;color:#bccde2;border-radius:9px;max-height:400px;overflow:auto}.secret-result{padding:17px;border:1px solid #6897cf;border-radius:9px;background:#223a55;margin:17px 0}.secret-result p{font-size:12px;color:#c1d8f3}.secret-result code{display:block;font-size:12px;margin-top:12px;word-break:break-all;color:#e2f0ff;user-select:all}.toasts{position:fixed;right:24px;bottom:24px;display:flex;flex-direction:column;gap:10px;z-index:200;max-width:min(440px,calc(100vw - 32px))}.toast{padding:14px 16px;display:flex;align-items:flex-start;gap:10px;background:#27364a;border:1px solid #4c6483;border-radius:10px;box-shadow:0 8px 40px #0005;font-size:12px;line-height:1.7;color:#d1e0f3;animation:toast-in .18s ease}.toast.error{border-color:#9c5860;background:#412a32;color:#ffd0d4}.toast svg{width:17px;height:17px;margin-top:2px}.toast .icon-btn{width:21px;height:21px;margin-left:8px;margin-top:-1px}.toast .icon-btn svg{width:14px;height:14px}.loading{min-height:230px;display:flex;flex-direction:column;gap:18px;justify-content:center;align-items:center;color:var(--muted);font-size:12px}.spinner{width:23px;height:23px;border:2px solid #33435a;border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}.inline-spinner{width:12px;height:12px;border-width:1.5px}.loading-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.skeleton{height:216px;border-radius:12px;background:linear-gradient(100deg,#1a222e 10%,#222d3c 40%,#1a222e 70%);background-size:250% 100%;animation:shimmer 1.7s infinite}.task-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}.task-detail-grid>div{border:1px solid var(--line);border-radius:8px;padding:12px}.task-detail-grid span{display:block;font-size:10px;color:var(--subtle);margin-bottom:6px}.task-detail-grid strong{font-size:12px;font-weight:500;overflow-wrap:anywhere}.noscript{padding:30px;text-align:center}.mobile-shade{display:none}.provider-help{margin:22px 0}.permission-note{margin-bottom:17px}.table-title{display:flex;align-items:center;gap:8px}.table-title svg{width:17px;height:17px;color:var(--accent)}@keyframes spin{to{transform:rotate(360deg)}}@keyframes shimmer{to{background-position:-150% 0}}@keyframes toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1700px){:root{--chat:450px}.preview-stage{padding:28px}}
@media(max-width:1200px){:root{--sidebar:210px;--chat:350px}.sidebar-head{padding:20px 17px}.sidebar-head .brand{font-size:14px}.nav-btn{font-size:12px}.topbar{padding:0 20px}.page{padding:25px}.preview-toolbar{padding:0 12px;gap:6px}.preview-toolbar h2{font-size:11px}.preview-tools{gap:5px}.preview-stage{padding:15px}.workspace-head{padding:17px 20px}.stat-grid{gap:11px}.stat-card{padding:16px}.stat-value{font-size:25px}.provider-grid{grid-template-columns:repeat(auto-fill,minmax(270px,1fr))}.profile-grid{grid-template-columns:1fr 1fr}}
@media(max-width:980px){.topbar-right .small{display:none}.workspace-head .head-actions .btn span{display:none}.workspace-head .head-actions .btn{padding:8px}.workspace-columns{grid-template-columns:minmax(285px,40%) 6px minmax(0,1fr)}.preview-toolbar h2{font-size:0;gap:0}.preview-toolbar h2 svg{height:18px;width:18px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-grid{grid-template-columns:1fr}.two-columns{grid-template-columns:1fr}.loading-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){:root{--sidebar:0px;--chat:100%}.app-shell{grid-template-columns:0 minmax(0,1fr)}.sidebar{position:fixed;z-index:40;top:0;bottom:0;left:0;width:250px;transform:translateX(-100%);transition:transform .18s;box-shadow:12px 0 50px #0005}.sidebar-head{padding:20px}.sidebar-head .icon-btn{display:inline-grid}.mobile-sidebar-open .sidebar{transform:translateX(0)}.mobile-sidebar-open .mobile-shade{display:block;position:fixed;inset:0;z-index:39;background:#0008;border:0}.sidebar-folded .brand>span,.sidebar-folded .nav-btn>span,.sidebar-folded .sidebar-label,.sidebar-folded .user-meta,.sidebar-folded .sidebar-foot .icon-btn{display:revert}.sidebar-folded .sidebar-head{padding:20px}.sidebar-folded .nav{padding:0 12px}.sidebar-folded .nav-btn{justify-content:flex-start;padding:0 11px}.sidebar-folded .sidebar-foot{padding:15px 14px}.topbar{height:57px;padding:0 13px;gap:8px}.topbar .breadcrumb{font-size:10px;gap:8px}.topbar-right{gap:0}.topbar-right .badge{font-size:8px}.topbar-right .avatar{width:29px;height:29px;font-size:10px}.page{padding:24px 17px}.page-head{gap:12px;margin-bottom:22px}.page-head h1{font-size:24px}.page-head p{font-size:12px}.page-head .btn{font-size:0;padding:10px}.page-head .btn svg{width:18px;height:18px}.page-head .btn.no-icon{font-size:11px;padding:9px 11px}.project-grid{grid-template-columns:1fr}.project-card{min-height:195px}.new-card{min-height:160px}.workspace-head{padding:14px 15px;gap:10px}.workspace-head h1{font-size:16px}.workspace-head p{font-size:10px;max-width:220px}.workspace-head .project-glyph{height:33px;width:33px}.workspace-head .head-actions .btn{height:32px;min-height:32px;width:32px;padding:6px}.workspace-head .head-actions .chat-toggle{display:none}.workspace-mobile-tabs{display:flex;border-bottom:1px solid var(--line);flex:none;background:#171f2a;padding:0 17px;gap:25px}.workspace-mobile-tabs button{padding:13px 0;font-size:12px;border:0;background:transparent;color:var(--muted);border-bottom:2px solid transparent}.workspace-mobile-tabs button.active{color:var(--accent);border-bottom-color:var(--accent)}.workspace-columns{display:block;position:relative;flex:1;min-height:0}.chat-pane,.preview-pane{height:100%}.resize-handle{display:none}.workspace.mobile-chat .preview-pane{display:none}.workspace.mobile-preview .chat-pane{display:none}.chat-collapsed .chat-pane{visibility:visible}.pane-title{display:none}.messages{padding:20px 17px}.message{font-size:13px}.composer-box textarea{font-size:13px;min-height:86px}.chat-composer{padding:12px 15px;padding-bottom:max(12px,env(safe-area-inset-bottom))}.preview-toolbar h2{font-size:12px;gap:7px}.preview-stage{padding:12px}.preview-frame-wrap{min-height:380px}.stat-card{padding:16px}.stat-value{font-size:26px}.stat-card-top{font-size:10px}.stat-foot{font-size:9px}.filter-bar{gap:8px}.filter-bar select,.filter-bar input{max-width:100%;flex:1;min-width:120px}.filter-bar .filter-note{display:none}th{padding:12px 14px}td{padding:15px 14px}.table-wrap{margin:0 -1px}.tabs{gap:18px}.tab{font-size:12px}.provider-grid{grid-template-columns:1fr}.card{padding:21px}.profile-grid{gap:18px}.field-row{grid-template-columns:1fr;gap:0}.modal-overlay{padding:12px}.modal{max-height:94svh}.modal-head{padding:18px 19px}.modal-head h2{font-size:17px}.modal-body{padding:20px}.toasts{right:16px;bottom:17px}.login-card{padding:27px}.login-page{padding:25px}.login-brand{margin-bottom:27px}.activity-row{gap:11px}.activity-row time{font-size:9px;max-width:80px;white-space:normal;text-align:right;line-height:1.6}.permission-grid{gap:10px}.loading-cards{grid-template-columns:1fr}.task-detail-grid{gap:8px}.form-actions .btn{font-size:12px}.login-foot{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Readable working text, including long prompts and task results. */
.message{font-size:15px}.composer-box textarea{font-size:14px}.project-card p{font-size:13px}.chat-empty p{font-size:13px}.preview-empty p{font-size:13px}.prompt-example{font-size:12px}.task-mini p{font-size:12px}table{font-size:13px}.modal pre{font-size:13px}.modal-body>p{font-size:14px}.field small{font-size:13px}.note{font-size:13px}
/* The fixed mobile sidebar leaves its grid track empty. Keep the main pane in column two. */
.main{grid-column:2}

.message{font-size:16px}.composer-box textarea{font-size:16px}
/* Visible sidebar control, with an explicit expand button in icon mode. */
.sidebar-head .sidebar-desktop-toggle{display:inline-grid;flex:none;width:29px;height:31px;border:1px solid #415e80;background:#243b56;color:#c0ddfc}.sidebar-head .sidebar-mobile-close{display:none}.sidebar-head{gap:6px;padding-left:17px;padding-right:14px}.sidebar-head .brand{min-width:0}.sidebar-head .brand>span{font-size:14px}.sidebar-head .brand small{font-size:9px}.sidebar-folded .sidebar-head{height:118px;flex-direction:column;padding:18px 15px 11px;gap:10px}.sidebar-folded .sidebar-head .brand{flex:0}.sidebar-folded .sidebar-head .sidebar-desktop-toggle{display:inline-grid}.guide-card{margin-bottom:22px}.guide-card-head{display:flex;align-items:center;gap:14px;margin-bottom:15px}.guide-card-head h2{font-size:18px}.guide-card-head .empty-icon{height:38px;width:38px;border-radius:11px;margin:0;flex:none}.guide-card-head .empty-icon svg{height:21px;width:21px}.guide-card-actions{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}.guide-intro p{font-size:14px;line-height:1.7;color:var(--muted);margin-top:12px}.guide-steps{list-style:none;counter-reset:steps;margin:23px 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:23px}.guide-steps li{counter-increment:steps;position:relative;padding-left:34px}.guide-steps li:before{content:counter(steps);position:absolute;left:0;top:0;height:23px;width:23px;display:grid;place-items:center;border-radius:7px;background:#2c425e;color:#b8d8fc;font-size:11px;font-weight:700}.guide-steps h3{font-size:14px;margin:2px 0 8px}.guide-steps p{font-size:13px;line-height:1.8;color:var(--muted)}.tool-list{display:grid;grid-template-columns:1fr 1fr;gap:13px}.tool-card{border:1px solid var(--line);border-radius:11px;background:#161e2b;padding:17px}.tool-card-head{display:flex;gap:9px;align-items:center;margin-bottom:14px}.tool-symbol{color:var(--accent);display:grid;place-items:center}.tool-symbol svg{height:17px;width:17px}.tool-card h3{font-size:13px;flex:1;line-height:1.5}.tool-card-head .badge{font-size:9px;padding:4px 6px}.tool-card p{font-size:12px;color:var(--muted);line-height:1.7}.tool-meta{display:flex;justify-content:space-between;gap:10px;color:var(--subtle);font-size:10px;margin-top:15px;padding-top:12px;border-top:1px solid var(--line)}.tool-meta span:last-child{overflow-wrap:anywhere;max-width:70%;text-align:right}.tool-card details{font-size:11px;color:var(--subtle);margin-top:11px}.tool-card summary{cursor:pointer;color:#a5bad6;margin-bottom:8px}.tool-card code{font-size:11px;color:var(--muted);display:block;line-height:1.6}.check-label:has(input:disabled){opacity:.55}
@media(max-width:760px){.sidebar-head{padding:20px;gap:10px}.sidebar-head .brand>span{font-size:16px}.sidebar-head .brand small{font-size:10px}.sidebar-head .sidebar-desktop-toggle,.sidebar-folded .sidebar-head .sidebar-desktop-toggle{display:none}.sidebar-head .sidebar-mobile-close{display:inline-grid}.sidebar-folded .sidebar-head{height:80px;flex-direction:row;padding:20px;gap:10px}.sidebar-folded .sidebar-head .brand{flex:1}.guide-steps{grid-template-columns:1fr;gap:22px}.tool-list{grid-template-columns:1fr}.workspace-head .head-actions{gap:5px}.guide-card-head h2{font-size:16px}.guide-card-actions .btn{font-size:12px}.guide-steps p{font-size:14px}.guide-intro p{font-size:14px}}
.guide-section-title{margin:27px 0 15px}.guide-sections{display:grid;grid-template-columns:1fr 1fr;gap:15px 24px;margin:0;padding:20px;border:1px solid var(--line);border-radius:10px;background:#151e2a}.guide-sections dt{font-size:12px;font-weight:700;color:#c1d3e9;margin-bottom:5px}.guide-sections dd{font-size:12px;line-height:1.7;color:var(--muted);margin:0}@media(max-width:760px){.guide-sections{grid-template-columns:1fr;padding:17px}.guide-sections dd{font-size:13px}}
