:root{color-scheme:light;--bg: #f4f5f7;--surface: #ffffff;--sidebar: #1d2433;--sidebar-muted: #8a93a6;--sidebar-hover: #2a3447;--text: #1c2230;--text-muted: #6b7280;--border: #e3e6ec;--primary: #3b6ef5;--primary-dark: #2f59c9;--danger: #d64545;--success: #1f8a5b;--warning: #a86a10;--radius: 10px;--shadow: 0 1px 2px rgba(20, 28, 45, .06), 0 8px 24px rgba(20, 28, 45, .05)}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;font-size:14px;line-height:1.5}h1,h2{margin:0;font-weight:600}h1{font-size:22px}h2{font-size:15px}code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px}.layout{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100%}.sidebar{display:flex;flex-direction:column;gap:24px;padding:24px 18px;background:var(--sidebar);color:#eef1f7}.brand{display:flex;flex-direction:column;gap:2px;padding:0 6px}.brand-name{font-size:20px;font-weight:700;letter-spacing:.02em}.brand-tagline{font-size:12px;color:var(--sidebar-muted)}.nav{display:flex;flex-direction:column;gap:4px}.nav-item{padding:9px 12px;border:0;border-radius:8px;background:transparent;color:#cfd6e4;font-size:14px;text-align:left;cursor:pointer}.nav-item:hover{background:var(--sidebar-hover)}.nav-item.active{background:var(--primary);color:#fff}.sidebar-footer{display:flex;flex-direction:column;gap:4px;margin-top:auto;padding:14px 12px 0;border-top:1px solid rgba(255,255,255,.08)}.user-name{font-weight:600;word-break:break-all}.user-region{font-size:12px;color:var(--sidebar-muted)}.main{padding:28px 32px 48px;min-width:0}.page{display:flex;flex-direction:column;gap:18px;max-width:1040px}.page-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.muted{color:var(--text-muted);font-size:13px}.hint,.empty{color:var(--text-muted);padding:12px 0}.count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 8px;border-radius:999px;background:#eef1f7;color:var(--text-muted);font-size:12px;font-weight:600}.error,.success,.warning{margin:0;padding:10px 12px;border-radius:8px;font-size:13px}.error{background:#fdecec;color:var(--danger)}.success{background:#e9f7f0;color:var(--success)}.warning{background:#fdf3e3;color:var(--warning)}.panel{display:flex;flex-direction:column;gap:12px;padding:18px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow)}.panel.danger{border-color:#f2caca}.panel.done{opacity:.85}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}.split{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}.form{display:flex;flex-direction:column;gap:12px}.form.inline{flex-direction:row;flex-wrap:wrap;align-items:flex-end}.form label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--text-muted)}.form label.grow{flex:1 1 220px}.form input,.form select{height:36px;padding:0 10px;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--text);font-size:14px;outline:none}.form input:focus,.form select:focus{border-color:var(--primary);box-shadow:0 0 0 3px #3b6ef526}.row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.row input{flex:1 1 120px}.btn{height:36px;padding:0 14px;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--text);font-size:13px;font-weight:500;cursor:pointer;white-space:nowrap}.btn:hover:not(:disabled){border-color:#c9ced9}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.primary{border-color:var(--primary);background:var(--primary);color:#fff}.btn.primary:hover:not(:disabled){background:var(--primary-dark);border-color:var(--primary-dark)}.btn.danger{border-color:#f0bfbf;background:#fff;color:var(--danger)}.btn.ghost{background:transparent}.btn.small{height:30px;padding:0 10px;font-size:12px}.btn.block{width:100%}.sidebar .btn.ghost{border-color:#ffffff2e;color:#dfe5f0}.sidebar .btn.ghost:hover{background:var(--sidebar-hover)}.link{padding:0;border:0;background:none;color:var(--primary);font-size:12px;cursor:pointer}.link.danger{color:var(--danger)}.link:disabled{opacity:.5;cursor:not-allowed}.badge{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:999px;background:#eef1f7;color:var(--text-muted);font-size:11px;font-weight:600}.badge.role-owner{background:#e7edff;color:var(--primary)}.badge.role-editor{background:#e9f7f0;color:var(--success)}.badge.role-viewer{background:#f1ecfb;color:#7a55c9}.segmented{display:inline-flex;padding:3px;border:1px solid var(--border);border-radius:999px;background:#fff}.segmented button{padding:6px 14px;border:0;border-radius:999px;background:transparent;color:var(--text-muted);font-size:13px;cursor:pointer}.segmented button.active{background:var(--primary);color:#fff}.auth-wrap{display:grid;place-items:center;min-height:100vh;padding:24px;background:radial-gradient(circle at 20% 20%,#eef2ff 0%,var(--bg) 45%)}.auth-wrap.embedded{min-height:100%;background:none}.auth-card{display:flex;flex-direction:column;gap:20px;width:min(400px,100%);padding:28px;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:var(--shadow)}.auth-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.auth-head h1{font-size:24px}.auth-notice{margin:0;padding:10px 12px;border:1px solid var(--border);border-left:3px solid var(--warning);border-radius:8px;background:#fff8ec;color:var(--warning);font-size:13px;line-height:1.5}.dev-code{margin:0;padding:10px 12px;border-radius:8px;background:#eef2ff;color:var(--primary);font-size:13px}.project-list{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none}.project-card{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:14px 16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);text-align:left;cursor:pointer;box-shadow:var(--shadow)}.project-card:hover{border-color:#c9d3ea}.project-card-main{display:flex;flex-direction:column;gap:2px;min-width:0}.project-name{display:flex;align-items:center;gap:8px;font-weight:600;word-break:break-all}.task-list,.task-children{display:flex;flex-direction:column;gap:4px;margin:0;padding:0;list-style:none}.task-children{margin:4px 0 0 26px;padding-left:12px;border-left:2px solid var(--border)}.task-block{display:flex;flex-direction:column}.task-row{display:flex;align-items:center;gap:10px;padding:8px 6px;border-radius:8px}.task-row:hover{background:#f7f8fb}.task-row.done .task-title{color:var(--text-muted);text-decoration:line-through}.check{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:20px;height:20px;border:1px solid #c9ced9;border-radius:6px;background:#fff;color:var(--success);font-size:12px;cursor:pointer}.task-row.done .check{border-color:var(--success);background:#e9f7f0}.check:disabled{opacity:.6;cursor:not-allowed}.task-main{display:flex;flex:1 1 auto;flex-direction:column;min-width:0}.task-title{font-size:14px;word-break:break-word}.task-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px;color:var(--text-muted);font-size:12px}.task-actions{display:flex;flex:0 0 auto;gap:10px}.plain-list{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}.plain-list li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid #f0f2f6}.plain-list li:last-child{border-bottom:0}.plain-list li.wrap{justify-content:flex-start}.token{flex:1 1 220px;padding:4px 8px;border-radius:6px;background:#f4f6fa;color:var(--text-muted);word-break:break-all}.site-node-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}.site-node-card{display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);text-decoration:none;color:var(--text);transition:border-color .15s,transform .15s}.site-node-card:hover{border-color:var(--primary);transform:translateY(-2px)}.site-node-title{font-size:15px}.site-node-domain{color:var(--primary);font-size:12px;word-break:break-all}.site-crumb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px;color:var(--text-muted);font-size:13px}.site-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:4px}.site-sec-nav{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 16px;padding-bottom:10px;border-bottom:1px solid var(--border)}.site-sec-btn{padding:5px 12px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text-muted);font-size:12px;cursor:pointer}.site-sec-btn.active{border-color:var(--primary);background:var(--primary);color:#fff}.site-kv{display:flex;flex-direction:column;gap:0;border:1px solid var(--border);border-radius:8px;overflow:hidden}.site-kv-row{display:grid;grid-template-columns:130px 1fr;gap:12px;padding:9px 12px;border-bottom:1px solid var(--border);font-size:13px}.site-kv-row:last-child{border-bottom:none}.site-kv-key{color:var(--text-muted)}.site-cap{margin:0;padding-left:20px;line-height:1.9}.site-related{display:flex;flex-wrap:wrap;gap:8px}.site-pager{display:flex;justify-content:space-between;gap:12px;font-size:13px}.store-detail{display:flex;flex-direction:column;gap:8px;margin-top:10px;padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--bg);font-size:13px}.store-detail-title{margin:0;font-size:12px;font-weight:600;color:var(--text-muted)}@media(max-width:760px){.layout{grid-template-columns:1fr}.sidebar{gap:14px;padding:16px}.nav{flex-direction:row;flex-wrap:wrap}.sidebar-footer{flex-direction:row;align-items:center;margin-top:0}.main{padding:20px 16px 36px}.form.inline{flex-direction:column;align-items:stretch}.site-sec-nav{flex-wrap:nowrap;overflow-x:auto}.site-sec-btn{flex:0 0 auto}}.chat-layout{display:grid;grid-template-columns:300px minmax(0,1fr);height:calc(100vh + -0px);min-height:0}.chat-sidebar{display:flex;flex-direction:column;border-right:1px solid var(--border);background:var(--surface);min-height:0}.chat-search{padding:12px;border-bottom:1px solid var(--border)}.chat-search input{width:100%;padding:8px 12px;border:1px solid var(--border);border-radius:var(--radius);font-size:14px;outline:none}.chat-search input:focus{border-color:var(--primary)}.chat-search-results{max-height:240px;overflow-y:auto;border-bottom:1px solid var(--border)}.chat-user-item{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:none;background:transparent;text-align:left;cursor:pointer}.chat-user-item:hover{background:var(--bg)}.chat-conversations{flex:1;overflow-y:auto}.chat-conv-item{display:flex;align-items:flex-start;gap:10px;width:100%;padding:12px;border:none;border-bottom:1px solid var(--border);background:transparent;text-align:left;cursor:pointer}.chat-conv-item:hover{background:var(--bg)}.chat-conv-item.active{background:#3b6ef514}.chat-avatar{flex:0 0 36px;width:36px;height:36px;border-radius:50%;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600}.chat-conv-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.chat-conv-title{font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-conv-preview{color:var(--text-muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-badge{flex:0 0 auto;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--danger);color:#fff;font-size:11px;display:flex;align-items:center;justify-content:center}.chat-empty{padding:20px 12px;color:var(--text-muted);font-size:13px;text-align:center}.chat-main{display:flex;flex-direction:column;min-height:0;background:var(--bg)}.chat-header{display:flex;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid var(--border);background:var(--surface)}.chat-header-title{font-weight:600;font-size:16px}.chat-header-status{color:var(--text-muted);font-size:12px}.chat-messages{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:16px}.chat-msg{display:flex;flex-direction:column;max-width:70%}.chat-msg.mine{align-self:flex-end;align-items:flex-end}.chat-msg.theirs{align-self:flex-start;align-items:flex-start}.chat-msg-sender{font-size:12px;color:var(--text-muted);margin-bottom:4px}.chat-msg-bubble{padding:10px 14px;border-radius:12px;background:var(--surface);border:1px solid var(--border);word-break:break-word;line-height:1.5}.chat-msg.mine .chat-msg-bubble{background:var(--primary);color:#fff;border-color:var(--primary)}.chat-msg-time{font-size:11px;color:var(--text-muted);margin-top:4px}.chat-input{display:flex;gap:10px;padding:14px 20px;border-top:1px solid var(--border);background:var(--surface)}.chat-input textarea{flex:1;resize:none;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius);font-family:inherit;font-size:14px;outline:none}.chat-input textarea:focus{border-color:var(--primary)}.chat-placeholder{flex:1;display:flex;align-items:center;justify-content:center;color:var(--text-muted);font-size:14px}.chat-error{padding:8px 20px;background:#d645451a;color:var(--danger);font-size:13px;border-top:1px solid var(--border)}.video-call-float{position:fixed;right:24px;bottom:24px;width:360px;background:#000;border-radius:12px;box-shadow:0 8px 32px #0000004d;overflow:hidden;z-index:1000}.video-call-title{display:flex;justify-content:space-between;padding:10px 14px;background:#0009;color:#fff;font-size:13px}.video-call-name{font-weight:600}.video-call-state{opacity:.8}.video-remote{width:100%;height:240px;object-fit:cover;display:block;background:#111}.video-local{position:absolute;right:10px;bottom:56px;width:100px;height:70px;border-radius:6px;border:1px solid rgba(255,255,255,.4);object-fit:cover}.video-call-error{padding:6px 14px;background:var(--danger);color:#fff;font-size:12px}.video-call-actions{display:flex;justify-content:center;gap:12px;padding:12px;background:#0009}@media(max-width:720px){.chat-layout{grid-template-columns:1fr}.chat-sidebar{display:none}}
