:root{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif;color:#182033;background:#f5f7fb}
*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#fbfcfe 0,#f3f6fb 100%)}button{font:inherit}
.shell{display:grid;grid-template-columns:220px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;padding:24px 14px;background:rgba(255,255,255,.82);backdrop-filter:blur(24px);border-right:1px solid #e9edf4;display:flex;flex-direction:column;overflow:hidden}
.brand{display:flex;gap:10px;align-items:center;margin-bottom:28px}.brand strong{font-size:16px}.brand small{display:block;font-size:8px;color:#8b95a7;margin-top:3px}.logo{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;color:white;background:linear-gradient(135deg,#4c8dff,#79c7ff)}
nav{display:grid;gap:7px;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}nav button{border:0;background:transparent;color:#566177;padding:11px 12px;border-radius:10px;text-align:left;display:flex;gap:10px;align-items:center}nav button.active{background:#eaf2ff;color:#1f6fff;font-weight:700}nav b{margin-left:auto;background:#ff5564;color:white;border-radius:99px;padding:1px 6px;font-size:10px}
.side-footer{flex:none;position:static;margin-top:14px;padding-top:12px;border-top:1px solid #e9edf4;color:#8490a4}.side-footer p{font-size:12px}.side-footer small{line-height:1.8;font-size:11px}
main{padding:0 28px 38px;max-width:1500px;width:100%;margin:auto}header{height:76px;display:flex;align-items:center;justify-content:space-between}.jump-chat{background:#eaf2ff;color:#1f6fff;border-radius:14px;padding:11px 16px;text-decoration:none;font-weight:700;font-size:13px}.topright{display:flex;gap:16px;align-items:center;color:#667085}.avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#dbeafe,#d8f3ff);font-weight:700}
.hero{display:flex;justify-content:space-between;align-items:flex-start;margin:20px 0}.hero h1{font-size:34px;margin:0 0 6px}.hero p{margin:0;color:#8a94a6}.hero blockquote{font-family:serif;font-size:18px;transform:rotate(-3deg);margin:14px 30px 0 0}
.metrics{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.metrics article,.panel{background:rgba(255,255,255,.92);border:1px solid #e9edf3;border-radius:18px;box-shadow:0 8px 30px rgba(38,66,117,.06)}
.metrics article{padding:20px;min-height:112px}.metrics label{display:block;font-size:13px;font-weight:650;margin-bottom:12px}.metrics strong{display:block;font-size:23px}.metrics small{display:block;color:#8d97a9;margin-top:8px;font-size:11px}
.grid-main{display:grid;grid-template-columns:2fr 1fr;gap:16px;margin-top:16px}.panel{padding:20px;margin-top:16px}.grid-main .panel{margin-top:0}.panel-head{display:flex;justify-content:space-between;align-items:center}.panel-head h2{font-size:17px;margin:0}.panel-head span{color:#8a94a6;font-size:12px}.pill{padding:5px 9px;background:#e8f1ff!important;color:#176dff!important;border-radius:999px}
.task-panel h3{font-size:21px;margin:22px 0 6px}.task-panel>p{color:#78849a;margin:0 0 16px}.task-meta{display:flex;gap:10px;flex-wrap:wrap}.task-meta span{background:#f5f7fb;border-radius:12px;padding:10px 14px;font-size:12px;color:#7d879a}.task-meta b{display:block;color:#253047;margin-top:4px}
.next{margin-top:16px;padding:14px;background:#f7f9fc;border-radius:13px}.next label,.next small{display:block;color:#8c96a8;font-size:11px}.next strong{display:block;margin:5px 0;font-size:13px}
.focus-list{margin-top:14px;display:grid;gap:10px}.focus-item{display:flex;gap:9px;align-items:center;font-size:13px}.dot{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:#e7f7ef;color:#17a66a;font-size:11px}.dot.warn{background:#fff1e7;color:#f07d24}
.projects{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:16px}.project-card{padding:16px;border-radius:15px;border:1px solid #edf0f5}.project-card h3{margin:0 0 6px;font-size:15px}.project-card .status{font-size:12px;color:#2f73ff}.project-card small{color:#8b95a6}.facts{margin:10px 0 0;padding-left:17px;color:#778399;font-size:11px;line-height:1.55}
.roles{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;margin-top:16px}.role{min-height:125px;padding:14px;border-radius:15px;background:linear-gradient(180deg,#f8fbff,#f5f7fb);border:1px solid #edf0f6}.role-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e5efff;margin-bottom:10px}.role strong{font-size:13px}.role p{font-size:11px;color:#7e899c;margin:7px 0}.role small{color:#1da86a}
.bottom-grid{display:grid;grid-template-columns:1.4fr 1fr .8fr;gap:16px}.bottom-grid .panel{min-height:190px}.empty{padding:24px;text-align:center;color:#98a2b3;background:#f8fafc;border-radius:13px;margin-top:14px}.approval-card{margin-top:14px;padding:14px;border-radius:13px;background:#fff7f2;border:1px solid #ffe3d1}.approval-card strong{display:block}.approval-card small{color:#8b95a7}
.recent-row{display:grid;grid-template-columns:80px 1fr;gap:8px;padding:9px 0;border-bottom:1px solid #eef1f5;font-size:12px}.recent-row time{color:#8c96a8}.recent-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vision{margin-top:16px;border-radius:18px;min-height:190px;padding:24px;color:#21304b;background:linear-gradient(145deg,#eef8ff,#f8fbff 48%,#ddeafb);display:flex;flex-direction:column;justify-content:flex-end;box-shadow:0 8px 30px rgba(38,66,117,.06)}.vision div{margin-bottom:auto}.vision p{margin:4px 0;font-family:serif;letter-spacing:4px}.vision small{font-size:8px;color:#7d899c;margin-top:3px}
@media(max-width:1050px){.metrics{grid-template-columns:repeat(2,1fr)}.roles{grid-template-columns:repeat(4,1fr)}.bottom-grid{grid-template-columns:1fr 1fr}.vision{grid-column:1/-1}}
@media(max-width:760px){.shell{display:block}main{padding:0 14px 28px}header{height:62px}.hero{display:block}.hero h1{font-size:28px}.hero blockquote{display:none}.metrics{grid-template-columns:1fr 1fr;gap:10px}.metrics article{padding:15px}.grid-main,.bottom-grid{grid-template-columns:1fr}.projects{grid-template-columns:1fr}.roles{grid-template-columns:repeat(2,1fr)}.panel{padding:16px}.vision{grid-column:auto}}

.p0-queue-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:16px;margin-top:16px}
.p0-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:16px}
.p0-summary div{padding:12px;border-radius:13px;background:#f7f9fc;border:1px solid #edf1f6;text-align:center}
.p0-summary strong{display:block;font-size:20px}.p0-summary small{color:#8c96a8;font-size:10px}
.p0-list,.queue-list{display:grid;gap:9px;margin-top:14px}
.p0-row{display:grid;grid-template-columns:58px 94px 1fr;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #eef1f5;font-size:11px}
.p0-id{font-weight:700}.p0-status{padding:4px 7px;border-radius:999px;text-align:center;font-weight:700;background:#eef2f7;color:#667085}
.p0-status.pass{background:#e9f8f0;color:#178b59}.p0-status.partial{background:#fff7e8;color:#b87812}.p0-status.remaining{background:#fff0ef;color:#c94c43}.p0-status.need_owner{background:#f1ecff;color:#7057c7}
.p0-blocker{color:#778399;line-height:1.45}
.queue-row{display:grid;grid-template-columns:30px 1fr;gap:10px;padding:12px;border-radius:13px;background:#f8fafc;border:1px solid #edf1f6}
.queue-no{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#e8f1ff;color:#246fe5;font-weight:700;font-size:11px}
.queue-row strong{font-size:12px}.queue-row p{font-size:11px;color:#667085;margin:5px 0;line-height:1.45}.queue-row small{font-size:10px;color:#98a2b3}
.approval-card p{font-size:11px;color:#8b5b37;margin:7px 0 0;line-height:1.45}
.approval-detail{color:#667085!important;font-size:11px!important;margin-top:6px!important}
@media(max-width:900px){.p0-queue-grid{grid-template-columns:1fr}.p0-summary{grid-template-columns:repeat(3,1fr)}}
@media(max-width:560px){.p0-summary{grid-template-columns:repeat(2,1fr)}.p0-row{grid-template-columns:48px 88px 1fr}}

.owner-chat-row{display:grid;grid-template-columns:1fr auto auto;gap:10px;margin-top:14px}
.owner-chat-panel{border:1px solid #cfe0ff;background:linear-gradient(180deg,#fff,#f7faff)}
.owner-chat-row input{min-width:0;border:1px solid #dfe5ee;border-radius:12px;padding:12px 14px;font:inherit;background:#fff}
.owner-chat-row button{border:0;border-radius:12px;padding:0 16px;background:#1f6feb;color:#fff;font-weight:700;cursor:pointer}
.owner-chat-row button:last-child{background:#eef4ff;color:#245fc4}
@media(max-width:760px){.owner-chat-row{grid-template-columns:1fr 1fr}.owner-chat-row input{grid-column:1/-1}}

.mobile-owner-bar{display:none;margin-top:12px;padding:12px 14px;border-radius:12px;background:#eef6ff;color:#245fc4;font-size:12px;font-weight:700}

/* ===== P2-2 信息密度：低频面板可折叠 ===== */
.collapsible-head{cursor:pointer;user-select:none}
.collapsible-head:hover h2{color:#245fc4}
.fold-hint{color:#8a94a6;font-size:12px}
.collapsible-head::after{content:"▾";margin-left:8px;color:#a8b2c4;font-size:12px;transition:transform .18s ease}
.collapsible.collapsed .collapsible-head::after{transform:rotate(-90deg)}
.collapsible.collapsed .collapsible-body{display:none}
.ops-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:8px}
.sub-head{margin:0;font-size:12px;color:#8a94a6;font-weight:700}
@media(max-width:900px){.ops-grid{grid-template-columns:1fr}}

/* ===== P1-5 数据新鲜度指示 ===== */
.freshness{font-size:11px;font-weight:700;padding:5px 9px;border-radius:999px;background:#f1f5f9;color:#64748b;white-space:nowrap}
.freshness.ok{background:#e9f8f0;color:#178b59}
.freshness.warn{background:#fff7e8;color:#b87812}
.freshness.stale{background:#fff0ef;color:#c94c43}

/* ===== P1-1 告警铃铛与告警区 ===== */
.bell{position:relative;border:0;background:transparent;font-size:17px;cursor:pointer;padding:4px;line-height:1;border-radius:10px}
.bell:hover{background:#f1f5f9}
.bell-count{position:absolute;top:-3px;right:-5px;background:#94a3b8;color:#fff;border-radius:99px;padding:0 5px;font-size:10px;font-weight:700;line-height:15px;min-width:15px;text-align:center}
.bell.has-critical .bell-count{background:#e5484d}
.alert-badge{margin-left:auto;background:#94a3b8;color:white;border-radius:99px;padding:1px 6px;font-size:10px}
.alert-badge.critical{background:#e5484d}
.alert-panel{border:1px solid #ffe0dd;background:linear-gradient(180deg,#fff,#fffbfb)}
.alert-list{display:grid;gap:10px;margin-top:10px}
.scope-note{margin:10px 0 0;font-size:11px;color:#98a2b3;line-height:1.5;background:#f8fafc;border-radius:10px;padding:9px 12px}
.scope-note strong{color:#66708a}
.alert-item{display:grid;grid-template-columns:58px 1fr;gap:12px;padding:13px 14px;border-radius:13px;border:1px solid #eef1f5;background:#f8fafc}
.alert-item.critical{background:#fff5f4;border-color:#ffd9d5}
.alert-item.warning{background:#fffaf0;border-color:#ffe9c9}
.alert-sev{display:grid;place-items:center;height:24px;border-radius:8px;font-size:11px;font-weight:700;background:#eef2f7;color:#667085}
.alert-item.critical .alert-sev{background:#e5484d;color:#fff}
.alert-item.warning .alert-sev{background:#f0a020;color:#fff}
.alert-item strong{font-size:13px}
.alert-item p{font-size:11.5px;color:#5b667a;margin:6px 0 0;line-height:1.5}
.alert-hint,.alert-task{display:block;font-size:11px;color:#98a2b3;margin-top:5px}
.alert-hint{color:#7c8798}

/* ===== 老板对话：建议问句 + 未命中样式 ===== */
.chat-suggest{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.chat-suggest button{border:1px solid #dbe6fb;background:#f5f9ff;color:#2f6fd0;border-radius:999px;padding:6px 12px;font-size:12px;cursor:pointer}
.chat-suggest button:hover{background:#e8f1ff}
.chat-unmatched{color:#b87812!important}

/* ===== 待您处理：两类分组 ===== */
.approval-group{margin-top:14px}
.approval-group h4{margin:0;font-size:12px;color:#8a94a6;font-weight:700;letter-spacing:.4px}
.approval-group.material h4{color:#7057c7}
.approval-card.material-card{background:#f7f5ff;border-color:#e2dcfb}
.need-box{margin-top:10px;padding:10px 12px;border-radius:10px;background:#fff;border:1px dashed #cbc0f2}
.need-box span{display:block;font-size:10px;color:#8b95a7}
.need-box b{display:block;font-size:12.5px;color:#4c3b9e;margin-top:3px}

/* ===== P2-6 AI 员工三态分色 ===== */
.role-idle{opacity:.82}
.role-working{background:linear-gradient(180deg,#eefaf3,#f6fdf9);border-color:#c8ecd9}
.role-working .role-state{color:#178b59}
.role-blocked{background:linear-gradient(180deg,#fffaf0,#fffdf8);border-color:#ffe6bf}
.role-blocked .role-state{color:#b87812}
.role-error{background:linear-gradient(180deg,#fff5f4,#fffafa);border-color:#ffd9d5}
.role-error .role-state{color:#c94c43}
.role-state{font-weight:700}

/* ===== P2-9 队列为空的原因说明 ===== */
.empty-reason{margin:10px 0 0;font-size:11px;color:#98a2b3;line-height:1.5}

/* ===== P1-6 手机端导航：汉堡 + 抽屉 ===== */
.hamburger{display:none;border:0;background:#eef4ff;color:#245fc4;width:38px;height:38px;border-radius:11px;font-size:17px;cursor:pointer;margin-right:10px}
.scrim{display:none;position:fixed;inset:0;background:rgba(20,28,45,.42);z-index:40}
.scrim.show{display:block}

@media(max-width:760px){
  .mobile-owner-bar{display:block}.metrics{position:static;padding:0}.p0-summary{grid-template-columns:repeat(2,1fr)}.owner-chat-panel{margin-top:4px}.timeline-section{max-height:760px;overflow:auto}.jump-chat{padding:9px 12px}
  .hamburger{display:inline-block}
  .sidebar{display:block;position:fixed;top:0;left:0;bottom:0;width:238px;z-index:50;transform:translateX(-100%);transition:transform .22s ease;overflow-y:auto}
  .sidebar.open{transform:translateX(0)}
  .sidebar .side-footer{position:static;margin-top:22px}
  /* 手机端把「要您做的事」提到首屏之后，避免埋在页尾 */
  .todo-panel{order:-1}
  .alert-item{grid-template-columns:52px 1fr;padding:11px}
  .headline{grid-template-columns:1fr}
  .step-body p{font-size:12px}
}

/* ===== 首屏三件事：有没有事出事 / 有没有事等我 / 现在在干什么 ===== */
.headline{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:16px}
.headline-card{background:rgba(255,255,255,.92);border:1px solid #e9edf3;border-radius:18px;padding:18px 20px;position:relative;overflow:hidden;box-shadow:0 8px 30px rgba(38,66,117,.06)}
.headline-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#2f9e6b}
.headline-card label{display:block;font-size:12px;color:#8a94a6;margin-bottom:8px}
.headline-card strong{display:block;font-size:19px;line-height:1.35;color:#1d2836}
.headline-card small{display:block;margin-top:8px;font-size:11px;color:#98a2b3;line-height:1.5}
.headline-card[data-level="ok"]::before{background:#2f9e6b}
.headline-card[data-level="warning"]::before{background:#e59a2a}
.headline-card[data-level="critical"]::before{background:#e04b4b}
.headline-card[data-level="critical"]{background:linear-gradient(180deg,#fff5f4,#fffafa);border-color:#ffd9d5}
.headline-card[data-level="todo"]::before{background:#2f6fe0}
.headline-card[data-level="todo"]{background:linear-gradient(180deg,#f4f8ff,#fbfdff);border-color:#d9e6ff}
.headline-card[data-level="doing"]::before{background:#8a94a6}
.headline-jump{margin-top:12px;border:0;background:#2f6fe0;color:#fff;border-radius:10px;padding:8px 14px;font-size:12px;cursor:pointer;font-weight:500}
.headline-jump:hover{background:#1f5bcc}

/* ===== 要您做的事：三步卡片 + 复制 + 划掉 ===== */
.todo-panel{margin-top:16px}
.todo-group{margin-top:14px}
.todo-group h4{margin:0 0 10px;font-size:13px;color:#5a6577;font-weight:500}
.todo-card{background:#fff;border:1px solid #e9edf3;border-radius:16px;padding:18px;margin-bottom:12px;transition:opacity .2s ease}
.todo-card.is-handled{opacity:.5;background:#f8fafc}
.todo-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.todo-head strong{font-size:15px;color:#1d2836}
.todo-badge{font-size:11px;padding:3px 9px;border-radius:999px;font-weight:500}
.todo-badge.ok{background:#e7f7ef;color:#17a66a}
.todo-badge.warn{background:#fff1e7;color:#d97a1f}
.todo-detail{margin:0 0 10px;font-size:12px;color:#7d879a;line-height:1.6}
.steps{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:12px}
.step{display:grid;grid-template-columns:26px 1fr;gap:10px;align-items:start}
.step-no{width:24px;height:24px;border-radius:50%;background:#eaf2ff;color:#2f6fe0;display:grid;place-items:center;font-size:12px;font-weight:500;margin-top:1px}
.step-body strong{display:block;font-size:13px;color:#26313f;font-weight:500}
.step-body p{margin:4px 0 0;font-size:12px;color:#7d879a;line-height:1.65}
.step-value{margin-top:8px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.step-value code{background:#f4f7fb;border:1px solid #e5eaf2;border-radius:8px;padding:6px 10px;font-family:Consolas,Monaco,monospace;font-size:13px;color:#1d2836}
.copy-btn{border:1px solid #d9e3f0;background:#fff;color:#2f6fe0;border-radius:8px;padding:6px 12px;font-size:12px;cursor:pointer;font-weight:500;transition:all .15s ease}
.copy-btn:hover{background:#f4f8ff;border-color:#bcd4f7}
.copy-btn.copied{background:#e7f7ef;border-color:#b6e5cd;color:#17a66a}
.copy-btn.primary{background:#2f6fe0;color:#fff;border-color:#2f6fe0}
.copy-btn.primary:hover{background:#1f5bcc}
.copy-btn.primary.copied{background:#17a66a;border-color:#17a66a;color:#fff}
.todo-input{margin-top:14px;padding:14px;background:#f7f9fc;border-radius:12px;border:1px dashed #dbe3ee}
.todo-input label{display:block;font-size:12px;color:#8a94a6;margin-bottom:8px}
.todo-field{width:100%;border:1px solid #dbe3ee;border-radius:10px;padding:10px 12px;font-size:13px;font-family:inherit;margin-bottom:10px;transition:border-color .15s ease}
.todo-field:focus{outline:none;border-color:#2f6fe0}
.todo-field.need-input{border-color:#e04b4b;background:#fff8f8}
.todo-actions{margin-top:14px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.handled-btn{border:1px solid #dbe3ee;background:#fff;color:#5a6577;border-radius:10px;padding:8px 14px;font-size:12px;cursor:pointer;font-weight:500;transition:all .15s ease}
.handled-btn:hover{background:#f4f8ff;border-color:#bcd4f7;color:#2f6fe0}
.handled-note{font-size:11px;color:#a3adbd}

/* ===== 全局提示 toast：任何操作必须有可见结果（2026-09-28） ===== */
.dash-toast{position:fixed;left:50%;bottom:36px;transform:translateX(-50%) translateY(14px);background:#1d2836;color:#fff;padding:12px 20px;border-radius:12px;font-size:13px;line-height:1.5;opacity:0;pointer-events:none;transition:opacity .22s ease,transform .22s ease;z-index:99;max-width:82vw;box-shadow:0 10px 32px rgba(20,28,45,.28)}
.dash-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.dash-toast.ok{background:#158055}
.dash-toast.err{background:#c0392b}

/* ===== 「提交给系统」按钮：老板填的材料真正送达执行端 ===== */
.todo-input-actions{display:flex;gap:8px;flex-wrap:wrap}
.submit-btn{border:1px solid #17a66a;background:#17a66a;color:#fff;border-radius:8px;padding:6px 14px;font-size:12px;cursor:pointer;font-weight:600;transition:all .15s ease}
.submit-btn:hover{background:#128a56;border-color:#128a56}
.submit-btn:disabled{opacity:.65;cursor:wait}
.submit-hint{display:block;margin-top:8px;font-size:11px;color:#a3adbd;line-height:1.5}
.empty.all-good{padding:32px;background:#f6fbf8;border:1px solid #d9f0e4;color:#3d7f5f}
.empty.all-good strong{display:block;font-size:15px;color:#17a66a;margin-bottom:6px}

/* ===== 技术详情折叠：默认收起，保持首屏干净 ===== */
.detail-fold{margin-top:16px;border:1px solid #e9edf3;border-radius:16px;background:rgba(255,255,255,.7)}
.detail-summary{cursor:pointer;padding:15px 20px;font-size:13px;color:#5a6577;list-style:none;font-weight:500}
.detail-summary::-webkit-details-marker{display:none}
.detail-summary::before{content:"▸ ";color:#8a94a6}
.detail-fold[open] .detail-summary::before{content:"▾ "}
.detail-fold .p0-queue-grid{padding:0 12px}
.detail-fold .panel{margin-top:12px}

/* ===== 术语小问号：不懂就悬停，不用查词典 ===== */
.term-help{display:inline-grid;place-items:center;width:14px;height:14px;border-radius:50%;background:#eef2f8;color:#7d879a;font-size:10px;margin-left:5px;cursor:help;vertical-align:middle;font-weight:500}
.term-help:hover{background:#dde6f3;color:#2f6fe0}

/* ===== 项目单元卡片：老板一眼看清有几个摊子 ===== */
.units-panel{margin-top:16px}
.units{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:16px}
.unit-card{position:relative;padding:16px;border-radius:15px;border:1px solid #edf0f5;background:linear-gradient(180deg,#fbfdff,#f7fafd);overflow:hidden}
.unit-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#2f9e6b}
.unit-card[data-level="todo"]::before{background:#2f6fe0}
.unit-card[data-level="warn"]::before{background:#e59a2a}
.unit-card[data-level="unknown"]::before{background:#b4b2a9}
.unit-card[data-level="todo"]{background:linear-gradient(180deg,#f6faff,#fbfdff);border-color:#dde9fb}
.unit-card[data-level="warn"]{background:linear-gradient(180deg,#fffcf6,#fffefb);border-color:#f6e7cd}
.unit-card.is-handled{opacity:.55}
.unit-top{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.unit-top strong{font-size:15px;color:#1d2836}
.unit-code{font-size:10px;color:#98a2b3;background:#f1f4f8;border-radius:5px;padding:2px 6px;font-family:Consolas,Monaco,monospace}
.unit-kind{font-size:10px;color:#7d879a;background:#eef4ff;border-radius:999px;padding:2px 8px;margin-left:auto}
.unit-ext{font-size:10px;color:#8a6d1f;background:#fdf3d7;border-radius:999px;padding:2px 8px;margin-left:6px;flex:none}
.unit-team{font-size:10px;color:#167452;background:#e5f7ef;border-radius:999px;padding:2px 8px;margin-left:6px;flex:none}
.unit-note{margin-top:8px;font-size:11px;color:#8a94a6;line-height:1.5;min-height:32px}
.unit-state{margin-top:10px;display:flex;align-items:center;gap:6px;font-size:13px;font-weight:500;color:#26313f}
.unit-dot{width:7px;height:7px;border-radius:50%;background:#2f9e6b;flex-shrink:0}
.unit-card[data-level="todo"] .unit-dot{background:#2f6fe0}
.unit-card[data-level="warn"] .unit-dot{background:#e59a2a}
.unit-card[data-level="unknown"] .unit-dot{background:#b4b2a9}
.unit-go{margin-left:auto;border:0;background:#2f6fe0;color:#fff;border-radius:8px;padding:4px 10px;font-size:11px;cursor:pointer;font-weight:500}
.unit-go:hover{background:#1f5bcc}
.unit-facts{margin:12px 0 0;padding-left:15px;color:#8a94a6;font-size:10.5px;line-height:1.55}
.unit-facts li{margin-bottom:3px}
.unit-foot{margin-top:12px;padding-top:10px;border-top:1px solid #eef1f5;display:flex;justify-content:space-between;gap:8px}
.unit-foot small{font-size:10px;color:#a3adbd}
.unit-raw{cursor:help;text-decoration:underline dotted #c9d2de}
.unit-chat{width:100%;margin-top:12px;border:1px solid #cfe0ff;background:#eef5ff;color:#245fc4;border-radius:10px;padding:8px 12px;font-size:12px;font-weight:600;cursor:pointer}
.unit-chat:hover{background:#dfebff;border-color:#b8d0f5}

/* ===== 项目独立对话：每项目独立落盘，总部统一排期 ===== */
.project-chat-modal{position:fixed;inset:0;z-index:120;display:none;align-items:stretch;justify-content:flex-end}
.project-chat-modal.show{display:flex}
.project-chat-backdrop{position:absolute;inset:0;background:rgba(18,26,40,.4);backdrop-filter:blur(2px)}
.project-chat-dialog{position:relative;width:min(520px,100vw);height:100%;background:#fff;box-shadow:-16px 0 48px rgba(20,28,45,.2);display:grid;grid-template-rows:auto auto 1fr auto auto;padding:22px;gap:12px}
.project-chat-head{height:auto;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f5;padding-bottom:14px}
.project-chat-head h2{margin:0;color:#1d2836;font-size:18px}
.project-chat-head span{display:inline-block;margin-top:5px;font:11px Consolas,Monaco,monospace;color:#8a94a6}
.project-chat-head button{width:34px;height:34px;border:0;border-radius:10px;background:#f2f5f9;color:#687386;font-size:24px;line-height:1;cursor:pointer}
.project-chat-policy{margin:0;padding:9px 11px;border-radius:10px;background:#f4f8ff;color:#4f6f9f;font-size:11px;line-height:1.5}
.project-chat-messages{overflow:auto;min-height:160px;padding:6px 2px;display:flex;flex-direction:column;gap:10px}
.project-chat-message{max-width:88%;padding:11px 13px;border-radius:14px;background:#f3f6fa;color:#26313f;align-self:flex-start}
.project-chat-message.owner{background:#eaf2ff;color:#173b70;align-self:flex-end}
.project-chat-message>div{display:flex;align-items:center;gap:9px;margin-bottom:5px}
.project-chat-message strong{font-size:11px}
.project-chat-message time{font-size:10px;color:#98a2b3}
.project-chat-message p{margin:0;font-size:13px;line-height:1.65;word-break:break-word}
.project-chat-pending{display:block;margin-top:7px;color:#b87812;font-size:10px}
.project-chat-empty{margin:auto;text-align:center;color:#98a2b3;font-size:12px;line-height:1.7;padding:28px}
.project-chat-empty.error{color:#c0392b}
.project-chat-compose{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:stretch}
.project-chat-compose textarea{min-height:76px;max-height:180px;resize:vertical;border:1px solid #dbe3ee;border-radius:12px;padding:11px 13px;font:13px/1.55 inherit;outline:none}
.project-chat-compose textarea:focus{border-color:#2f6fe0;box-shadow:0 0 0 3px rgba(47,111,224,.09)}
.project-chat-compose button{border:0;border-radius:12px;background:#2f6fe0;color:#fff;font-weight:700;padding:0 17px;cursor:pointer}
.project-chat-compose button:disabled{opacity:.6;cursor:wait}
.project-chat-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#8a94a6;line-height:1.5}
.project-chat-foot small:first-child{color:#b87812}

@media(max-width:1050px){.units{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.units{grid-template-columns:1fr}.project-chat-dialog{padding:16px}.project-chat-compose{grid-template-columns:1fr}.project-chat-compose button{height:42px}}

/* ===== 左侧项目导航 + 项目专属界面（纯展示层，不改门禁） ===== */
.nav-group{margin-top:14px;padding-top:12px;border-top:1px solid #e9edf4}
.nav-group-title{display:block;padding:0 12px 8px;font-size:11px;color:#8a94a6}
.nav-projects{display:grid;gap:5px}
.nav-project{border:0;background:transparent;color:#566177;padding:8px 12px;border-radius:9px;text-align:left;display:flex;gap:8px;align-items:center;font-size:13px;cursor:pointer;width:100%;font-family:inherit}
.nav-project:hover{background:#f3f7ff;color:#2f6fe0}
.nav-project.active{background:#eaf2ff;color:#2f6fe0;font-weight:700}
.np-dot{width:7px;height:7px;border-radius:99px;background:#2f9e6b;flex:none}
.nav-project[data-level="todo"] .np-dot{background:#2f6fe0}
.nav-project[data-level="warn"] .np-dot{background:#e59a2a}
.nav-project[data-level="unknown"] .np-dot{background:#b4b2a9}
.nav-project[data-level="alarm"] .np-dot{background:#e24b4a}
.np-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-empty{padding:8px 12px;font-size:12px;color:#98a2b3}

#projectView{display:none}
main.project-mode>.hero,
main.project-mode>#headlineSection,
main.project-mode>#todoSection,
main.project-mode>#alertSection,
main.project-mode>#ownerChatSection,
main.project-mode>#statusCenter,
main.project-mode>#taskCenter,
main.project-mode>#detailFold,
main.project-mode>#opsSection,
main.project-mode>#unitsSection,
main.project-mode>#projectsSection,
main.project-mode>#teamSection,
main.project-mode>.bottom-grid,
main.project-mode>.mobile-owner-bar{display:none!important}
main.project-mode>#projectView{display:block!important}

.pv-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.pv-back{border:1px solid #dbe3ee;background:#fff;color:#2f6fe0;padding:8px 14px;border-radius:10px;font-size:13px;cursor:pointer;font-family:inherit}
.pv-back:hover{background:#eaf2ff}
.pv-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pv-title h2{font-size:19px;margin:0}
.pv-code{padding:3px 9px;background:#eef3fb;color:#5f6d84;border-radius:999px;font-size:11px}
.pv-kind{padding:3px 9px;background:#eaf2ff;color:#2f6fe0;border-radius:999px;font-size:11px}
.pv-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.pv-mod{padding:15px;border-radius:14px;border:1px solid #edf0f5;background:linear-gradient(180deg,#fbfdff,#f8fbfe)}
.pv-mod h3{font-size:13px;margin:0 0 10px;color:#5f6d84}
.pv-mod-chat{grid-column:span 2}
.pv-body{font-size:13px;color:#566177}
.pv-row{display:flex;gap:10px;padding:6px 0;border-bottom:1px dashed #eef1f6}
.pv-row:last-child{border-bottom:0}
.pv-row label{flex:none;width:58px;color:#8a94a6;font-size:12px}
.pv-row span{flex:1;min-width:0;line-height:1.6}
.pv-state-line{display:flex;align-items:center;gap:8px;font-size:14px;color:#26334a}
.pv-dot{width:8px;height:8px;border-radius:99px;background:#2f9e6b;flex:none}
.pv-state-line[data-level="todo"] .pv-dot{background:#2f6fe0}
.pv-state-line[data-level="warn"] .pv-dot{background:#e59a2a}
.pv-state-line[data-level="unknown"] .pv-dot{background:#b4b2a9}
.pv-state-line[data-level="alarm"] .pv-dot{background:#e24b4a}
.pv-raw{margin-top:10px;padding:8px 10px;background:#f5f8fc;border-radius:8px;font-size:11px;color:#7b8798;word-break:break-all}
.pv-facts{margin:0;padding-left:18px;line-height:1.9;font-size:13px}
.pv-facts li{color:#566177}
.pv-empty{padding:14px;text-align:center;color:#98a2b3;font-size:12px}
.pv-empty.error{color:#c0392b}
.pv-chat-messages{max-height:280px;overflow-y:auto;padding:10px;background:#fff;border:1px solid #edf0f5;border-radius:12px;margin-bottom:10px}
.pv-msg{padding:9px 11px;border-radius:10px;margin-bottom:8px;background:#f5f8fc}
.pv-msg.owner{background:#eaf2ff}
.pv-msg>div{display:flex;justify-content:space-between;gap:10px;margin-bottom:4px}
.pv-msg strong{font-size:12px;color:#5f6d84}
.pv-msg time{font-size:11px;color:#98a2b3}
.pv-msg p{margin:0;font-size:13px;color:#26334a;word-break:break-word}
.pv-pending{display:inline-block;margin-top:4px;font-size:11px;color:#b87812}
.pv-chat-compose{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:stretch}
.pv-chat-compose textarea{min-height:66px;max-height:180px;resize:vertical;border:1px solid #dbe3ee;border-radius:12px;padding:11px 13px;font:13px/1.55 inherit;outline:none}
.pv-chat-compose textarea:focus{border-color:#2f6fe0;box-shadow:0 0 0 3px rgba(47,111,224,.09)}
.pv-chat-compose button{border:0;border-radius:12px;background:#2f6fe0;color:#fff;font-weight:700;padding:0 20px;cursor:pointer}
.pv-chat-compose button:disabled{opacity:.6;cursor:wait}
.pv-chat-foot{display:flex;justify-content:space-between;gap:12px;margin-top:9px;flex-wrap:wrap}
.pv-chat-foot small{color:#8a94a6;font-size:11px;line-height:1.5}
.pv-chat-foot small:first-child{color:#b87812}
.unit-open{margin-top:10px;margin-right:6px;padding:7px 13px;border:1px solid #cfe0fb;background:#fff;color:#2f6fe0;border-radius:9px;font-size:12px;cursor:pointer;font-family:inherit}
.unit-open:hover{background:#eaf2ff}

/* 停摆提示：待办列表为空只代表没有要老板拍板的事，绝不等于"AI 在推进"。
   只要看门狗判定停滞，首屏必须显式给出，不允许再用绿色"一切正常"盖住。 */
.stall-note{margin-top:10px;padding:10px 13px;border-radius:9px;border:1px solid #f0c36d;
  background:#fdf5e6;color:#6b4310;font-size:13px;line-height:1.65}
.stall-note strong{display:block;margin-bottom:2px;color:#8a4b06;font-weight:600}

@media(max-width:760px){
  .pv-grid{grid-template-columns:1fr}
  .pv-mod-chat{grid-column:auto}
  .pv-chat-messages{max-height:220px}
  .pv-chat-compose{grid-template-columns:1fr}
  .pv-chat-compose button{height:42px}
}
