[hidden]{display:none!important}.workspace-nav .side{width:100%}.workspace-view{min-height:70vh}.workflow-callout{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#e9efff;border:1px solid #c4d2f3;border-radius:12px;padding:22px 26px;margin-bottom:24px}.workflow-callout h2{margin:7px 0;font-size:22px}.workflow-callout p{font-size:15px;color:#50658d}.workflow-callout button{border-color:#afbee3;color:#294d9e;white-space:nowrap}.workflow-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:28px 0}.step-card{background:white;border:1px solid #dce4f2;border-radius:12px;padding:22px}.step-card>small{color:#4266c9;font-size:14px}.step-card h3{font-size:18px;margin:15px 0 9px}.step-card p{font-size:14px}.workflow-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:22px}.model-panel{background:#e9eef8;padding:26px;border-radius:12px}.model-panel h2{font-size:20px;margin-top:20px}.model-panel p{font-size:15px;margin:15px 0}.model-panel hr{border:0;border-top:1px solid #ced8e8;margin:24px 0}.model-panel small{line-height:1.8}.feature-row{display:flex;align-items:center;justify-content:space-between;padding:22px 24px;gap:20px;border-bottom:1px solid #e5eaf1}.feature-row:last-child{border:0}.feature-row p{font-size:14px;margin-top:6px}.feature-row strong{overflow-wrap:anywhere}.external-open{display:inline-block;padding:12px 20px;border-radius:8px;text-decoration:none}form textarea{display:block;width:100%;font:inherit;font-size:16px;padding:10px;border:1px solid #ced7e5;border-radius:8px;margin-top:8px;resize:vertical}.source-picker{border:1px solid #dbe3f0;border-radius:8px;max-height:none;overflow:visible;margin:20px 0;padding:12px}.source-picker legend{font-size:14px}.source-picker label{font-size:14px;font-weight:400;margin:10px 0;gap:8px}.source-picker small{display:block;line-height:1.6}form select:disabled{color:#69788f;background:#f1f4f9}@media(max-width:1000px){.workflow-steps{grid-template-columns:repeat(2,1fr)}.workflow-layout{grid-template-columns:1fr}.model-panel{padding:20px}}@media(max-width:760px){aside{display:block}.workspace-nav{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.workspace-nav .side,aside>button.side{display:block;width:auto;font-size:14px;margin:0;padding:10px}.workflow-callout{align-items:flex-start;flex-direction:column;padding:20px}.workflow-callout h2{font-size:20px}.workflow-steps{gap:10px}.step-card{padding:16px}.step-card h3{font-size:16px}.feature-row{padding:18px}.brand small{display:block}.workflow-callout p{line-height:1.8}}
.home-panel{background:white;border:1px solid #dce4f2;border-radius:12px;padding:8px 24px;margin-bottom:26px}.home-panel>.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid #e5eaf1}.home-panel>.toolbar h2{font-size:20px}.home-panel>.toolbar .muted{display:block;font-size:13px;margin-top:4px}.home-panel .empty{padding:30px 10px}.issue-row{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid #eef2f8}.issue-row:last-child{border:0}.issue-row.urgent .issue-title{font-weight:600}.issue-main{min-width:0}.issue-title{display:flex;align-items:center;gap:10px;font-size:16px;overflow-wrap:anywhere}.issue-meta{font-size:13px;color:#69788f;margin-top:6px}.issue-detail{font-size:14px;color:#50658d;margin:8px 0 0}.tag-danger{background:#fdeaea;color:#c03535;border-color:#f2c1c1}.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px;padding:20px 0}.project-card{border:1px solid #dce4f2;border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:10px}.project-card.done{opacity:.72}.project-card.paused{background:#f7f9fc}.project-card.overdue{border-color:#f2c1c1}.project-card.soon{border-color:#f3d9a4}.project-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.project-head strong{font-size:17px;overflow-wrap:anywhere}.tag-done{background:#e8f4ea;color:#2c7a3f;border-color:#c2e2c9}.tag-paused{background:#eef1f6;color:#69788f;border-color:#d5dce6}.project-meta{font-size:13px;color:#69788f}.progress-row{display:flex;align-items:center;gap:12px}.progress{flex:1;height:8px;background:#e9eef6;border-radius:99px;overflow:hidden}.progress-bar{height:100%;background:#264cde;border-radius:99px;transition:width .3s}.progress-num{font-size:14px;font-weight:600;color:#294d9e;min-width:42px;text-align:right}.project-stage{font-size:14px;color:#50658d;margin:0}.project-card .actions{justify-content:flex-start}@media(max-width:700px){.project-grid{grid-template-columns:1fr}}
.welcome{margin-left:auto;margin-right:16px;font-size:13px;color:#68748b;white-space:nowrap}.group-title{font-size:14px;color:#69788f;margin:18px 0 10px}.shortcut-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}.shortcut-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:18px 12px;border:1px solid #dce4f2;border-radius:12px;background:white;text-align:center;text-decoration:none;cursor:pointer;transition:border-color .2s,box-shadow .2s}.shortcut-card:hover{border-color:#9fb4ee;box-shadow:0 6px 18px #20345c0f}.shortcut-icon{font-size:26px;line-height:1}.shortcut-name{font-size:14px;font-weight:600;color:#23324f;overflow-wrap:anywhere}.shortcut-host{font-size:12px;color:#8b97ab;overflow-wrap:anywhere}.shortcut-edit{position:absolute;top:6px;right:6px;font-size:12px;padding:3px 8px;opacity:0;transition:opacity .2s}.shortcut-card:hover .shortcut-edit{opacity:1}.tool-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;padding:18px 0}.tool-card{border:1px solid #e3e9f3;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:8px;background:#fbfcfe}.tool-card h3{font-size:14px;color:#69788f;font-weight:600}.tool-card input{font:inherit;font-size:14px;padding:7px 9px;border:1px solid #ced7e5;border-radius:8px}.tool-value{font-size:17px;font-weight:600;color:#23324f}.tool-card small{font-size:12px;color:#8b97ab}@media(max-width:700px){.shortcut-grid{grid-template-columns:repeat(2,1fr)}.welcome{width:100%;margin:6px 0 0}}
.pm-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.pm-head h2{font-size:22px}.pm-tabs{display:flex;gap:8px}.pm-tab{border:1px solid #d5dce6;background:white;border-radius:8px;padding:7px 14px;font-size:14px;cursor:pointer}.pm-tab.active{border-color:#264cde;color:#264cde;background:#eef2ff}.pm-tab.disabled{opacity:.5;cursor:not-allowed}.pm-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.pm-stat{border:1px solid #e3e9f3;border-radius:12px;padding:14px 16px;background:white}.pm-stat-num{font-size:24px;font-weight:700;color:#23324f}.pm-stat-label{font-size:13px;color:#69788f;margin-top:2px}.pm-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.pm-toolbar-left,.pm-toolbar-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.pm-toolbar input[type=search],.pm-toolbar select{font:inherit;font-size:14px;padding:8px 10px;border:1px solid #ced7e5;border-radius:8px}.pm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px;margin-top:8px}.pm-card{border:1px solid #dce4f2;border-radius:12px;padding:18px;background:white;display:flex;flex-direction:column;gap:10px;cursor:pointer;transition:border-color .2s,box-shadow .2s}.pm-card:hover{border-color:#9fb4ee;box-shadow:0 8px 22px #20345c0f}.pm-card.archived{opacity:.6}.pm-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.pm-card-head strong{font-size:17px;overflow-wrap:anywhere}.pm-card-meta{font-size:13px;color:#69788f}.pm-card-line{font-size:13px;color:#50658d}.pm-card-actions{display:flex;gap:8px;justify-content:flex-end}.pm-detail-head{margin-bottom:12px}.pm-detail-info{border:1px solid #e3e9f3;border-radius:12px;padding:18px;margin-bottom:16px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}.pm-detail-info h2{font-size:21px}.pm-desc{font-size:14px;color:#50658d}.pm-detail-body{margin-top:16px}.pm-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid #eef2f8}.pm-row:last-child{border-bottom:0}.pm-row-title{font-size:15px;font-weight:600;color:#23324f;overflow-wrap:anywhere}.pm-row-meta{font-size:13px;color:#69788f;margin-top:4px}.pm-row-body{font-size:14px;color:#50658d;margin:6px 0 0}.pm-row.overdue-row .pm-row-meta{color:#c03535}.pm-row.done-row .pm-row-title{text-decoration:line-through;color:#8b97ab}.pm-detail-body h3{font-size:16px}.hidden-card{opacity:.5;border-style:dashed}@media(max-width:760px){.pm-summary{grid-template-columns:repeat(2,1fr)}.pm-grid{grid-template-columns:1fr}}
.contact-box{display:flex;flex-direction:column;gap:8px;margin:10px 0;border:1px solid #e3e9f3;border-radius:8px;padding:12px}.contact-row{display:flex;gap:8px;align-items:center}.contact-row input{flex:1;font:inherit;font-size:14px;padding:8px 10px;border:1px solid #ced7e5;border-radius:8px}.contact-row button{font-size:13px;padding:6px 10px}
.code-badge{display:inline-block;margin-right:8px;padding:2px 8px;border-radius:6px;background:#eef2ff;color:#3457ad;font-size:12px;font-weight:600;letter-spacing:.5px}.pm-card-head strong{overflow-wrap:anywhere}.weekly-card{cursor:default}.weekly textarea{display:block;width:100%;font:inherit;font-size:15px;padding:10px;border:1px solid #ced7e5;border-radius:8px;margin:8px 0;resize:vertical}
.ov-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:12px}@media(max-width:820px){.ov-grid{grid-template-columns:1fr}}.ov-block{border:1px solid #e3e9f3;border-radius:10px;padding:12px 14px}.ov-block h3{font-size:15px;margin:0 0 8px;display:flex;align-items:center;gap:8px}.ov-block .empty{font-size:13px;padding:6px 0}.ov-row{padding:8px 6px;border-radius:7px;cursor:pointer}.ov-row:hover{background:#f7f9fd}.ov-title{font-size:14px;font-weight:600;color:#23324f}.ov-meta{font-size:12px;color:#7a8aa8;margin-top:2px}.stat-danger .pm-stat-num{color:#d94b4b}.stat-warn .pm-stat-num{color:#c07a12}.overdue-row{border-left:3px solid #d94b4b;background:#fff7f7}.done-row{opacity:.6}
.pm-stat-click{cursor:pointer;transition:box-shadow .15s,transform .15s}.pm-stat-click:hover{box-shadow:0 2px 10px #264cde1a;transform:translateY(-1px)}
.pm-sharelist{display:flex;flex-direction:column;gap:8px;max-height:34vh;overflow:auto;margin:4px 0 12px}.pm-sharerow{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #e3e9f3;border-radius:9px;padding:9px 12px}.pm-sharerow strong{margin-right:8px}.pm-sharerow small{display:block;margin-top:3px;color:#8a97ad}.pm-shareops{display:flex;gap:6px;flex:none}.pm-shareops button{font-size:12px;padding:5px 9px}.pm-sharenew{display:flex;flex-wrap:wrap;gap:12px;align-items:center;border-top:1px solid #eef2f8;padding-top:12px}.pm-sharecode{margin-top:14px;padding:12px;border:1px dashed #6386ef;border-radius:10px;background:#f4f7ff}.pm-sharecode-value{display:block;font-size:13px;word-break:break-all;color:#264cde;margin:8px 0}
/* ===== 全局文字换行优化（2026-09-16）：段落防孤字、标题断行均衡、按钮标签不折行、长串可断 ===== */
p,small,.hr-mini,.pm-card-meta,.ov-meta,.empty,.notice,.feature-row p,.step-card p,.pm-card-line,.ov-title{text-wrap:pretty}
h1,h2,h3,h4,.empty h3,.ov-block h3{text-wrap:balance}
button,.tag,.code-badge{text-wrap:nowrap}
.dialog-actions{flex-wrap:wrap}
.pm-toolbar,.pm-toolbar-left,.pm-toolbar-right,.hr-invops,.hr-invmeta{flex-wrap:wrap}
a,code,.hr-mono,.pm-card-head strong,.ov-row span{overflow-wrap:anywhere}
/* 长句说明类统一 12px 档，宁可小一号也不挤 */
.notice{font-size:12.5px;line-height:1.55}
.empty{font-size:13px;line-height:1.55}
/* 弹窗关闭按钮锁定：头部吸附弹窗顶部，内容滚动不消失（2026-09-16） */
dialog .dialog-head{position:sticky;top:-28px;z-index:6;background:#fff;margin-bottom:16px;padding:4px 0 10px;border-bottom:1px solid #eef1f6}
/* 首页「我的资料」小窗 */
.me-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.me-head .me-name{font-size:16px;font-weight:600;color:#23324f}
.me-head .primary{margin-left:auto;font-size:13px;padding:7px 12px}
.me-kv{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px 20px;margin-top:12px}
.me-kv div{font-size:13.5px;color:#3c4d6b;overflow-wrap:anywhere}
.me-kv b{display:block;font-size:11.5px;color:#8a97ad;font-weight:500;margin-bottom:2px}
.me-foot{margin-top:12px}
/* 合同富文本编辑器与打印（2026-09-16） */
.rt-toolbar{display:flex;flex-wrap:wrap;gap:4px;border:1px solid #dbe3f0;border-bottom:0;border-radius:8px 8px 0 0;background:#f4f7fd;padding:5px}
.rt-toolbar button{font-size:12.5px;padding:4px 9px;border-radius:6px;background:#fff}
.rt-edit{min-height:320px;max-height:52vh;overflow:auto;border:1px solid #dbe3f0;border-radius:0 0 8px 8px;background:#fff;padding:14px 16px;font-size:13.5px;line-height:1.9;color:#23324d;white-space:pre-wrap}
.rt-edit:focus{outline:none;border-color:#6386ef}
.rt-edit p{margin:.3em 0}
.ct-plain{white-space:pre-wrap;font-family:inherit;margin:0}
/* 合同模板占满可用屏幕高度，纸张区随窗口伸缩，工具栏和发布按钮常显。 */
dialog[open].ct-template-editor{width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important;height:calc(100dvh - 12px);max-height:none;padding:8px 12px;box-sizing:border-box}
dialog.ct-template-editor form{display:flex;flex-direction:column;height:100%;min-height:0}
dialog.hr-edit-dialog.ct-template-editor .dialog-head{position:relative;top:auto;flex:0 0 auto;min-height:30px;margin:0 0 2px;padding:0 0 3px}
dialog.hr-edit-dialog.ct-template-editor .dialog-head .close{height:28px;padding:0 4px;font-size:22px;line-height:1}
dialog.hr-edit-dialog.ct-template-editor .dialog-actions{flex:0 0 auto;margin-top:2px;padding-top:3px}
@media(max-height:650px){dialog[open].ct-template-editor{height:calc(100dvh - 8px);padding:6px 12px}dialog.hr-edit-dialog.ct-template-editor .dialog-head{margin-bottom:2px;padding-bottom:3px}}
/* WPS 风格文档工具栏（2026-09-17） */
.rt-toolbar.wps{gap:0;background:linear-gradient(#fdfefe,#f2f5fa);border:1px solid #d6deea;border-radius:8px 8px 0 0;padding:4px 6px;flex-wrap:wrap}
.rt-grp{display:flex;gap:2px;align-items:center;padding:0 6px;border-right:1px solid #dde4ee}
.rt-grp:last-child{border-right:0}
.rt-grp select{padding:4px 6px;font-size:12.5px;border-radius:6px;border-color:#d6deea;background:#fff;color:#3c4d6b}
.rt-toolbar.wps button{font-size:13px;padding:5px 8px;border:1px solid transparent;border-radius:6px;background:transparent;color:#3c4d6b;white-space:nowrap}
.rt-toolbar.wps button:hover{background:#e6eeff;color:#264cde}
.rt-color{width:26px;height:26px;padding:1px;border-radius:6px;border:1px solid #d6deea;background:#fff;cursor:pointer}
.docsct-title{flex:1;min-width:160px;max-width:420px;font-size:16px;font-weight:600;padding:6px 10px;border:1px solid transparent;border-radius:7px;background:transparent;color:#19243b}
.docsct-title:hover{border-color:#d6deea}
.docsct-title:focus{border-color:#6386ef;background:#fff;outline:none}
.docsct-status{display:flex;gap:18px;align-items:center;font-size:12px;color:#8a97ad;padding:6px 4px;border-top:1px dashed #e3eaf3;margin-top:2px}
.docsct-status span:first-child{color:#3f7d58}
/* WPS 纸张视觉（2026-09-17） */
.rt-edit.paper{background:#fff;border:0;border-radius:2px;box-shadow:0 2px 14px rgba(30,50,90,.13);max-width:794px;margin:14px auto 6px;min-height:900px;padding:56px 68px;font-size:14.5px}
.rt-edit.paper:focus{border:0;box-shadow:0 2px 14px rgba(30,50,90,.18)}
.docsct-title{font-size:17px}
/* WPS 极限仿真：分页线/标尺/默认字体边距（2026-09-17 r61） */
.rt-ruler{height:18px;max-width:794px;margin:10px auto 0;background:
 repeating-linear-gradient(to right,rgba(90,120,170,.55) 0 1px,transparent 1px 37.8px),
 linear-gradient(#f2f5fa,#e9eef6);border:1px solid #d6deea;border-bottom:0;border-radius:6px 6px 0 0;position:relative}
.rt-ruler::after{content:'页边距 3.18cm ▸ 2.54cm ▴';position:absolute;right:6px;top:2px;font-size:9px;color:#9aa7bc}
.rt-edit.paper{
 --page:1123px;
 background:
  repeating-linear-gradient(to bottom,
    #ffffff 0,#ffffff 1121px,
    #e8ecf3 1121px,#e8ecf3 1122px,
    #f3f5f9 1122px,#f3f5f9 1123px);
 background-attachment:local;
 font-family:'宋体',SimSun,serif;
 font-size:14px;line-height:1.75;
 padding:96px 120px;min-height:2246px;
 color:#111}
.rt-edit.paper p{margin:.4em 0}
@media print{
 .xl-top,.rt-toolbar,.docsct-status,.rt-ruler,#toast{display:none!important}
 .rt-edit.paper{box-shadow:none;margin:0;max-width:100%;padding:0;background:#fff;min-height:0}
 body{background:#fff}
}
.docsct-status{max-width:794px;margin:6px auto 0}
/* WPS 单行工具栏（2026-09-17 r62） */
.rt-toolbar.wps{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.rt-toolbar.wps button{min-width:28px;padding:4px 5px;display:inline-flex;align-items:center;justify-content:center;font-size:13px}
.rt-toolbar.wps button:hover{background:#dbe7ff}
.rt-toolbar.wps svg{display:block;flex:none}
.rt-toolbar.wps .rt-color{width:24px;height:24px;flex:none}
.rt-toolbar.wps select{flex:none;max-width:110px}
/* WPS 多页视图：页间灰带（2026-09-17 r63） */
.rt-edit.paper{
 --gap:26px;
 background-color:#8a8f99;
 background-image:repeating-linear-gradient(to bottom,
  #ffffff 0,#ffffff 1123px,
  #8a8f99 1123px,#8a8f99 1149px);
 background-attachment:local;
 padding-top:96px;padding-bottom:26px}
.rt-edit.paper::selection{background:#b4d0ff}
/* 分页符 */
.page-break{position:relative;text-align:center;margin:28px -130px;border-top:1px dashed #a8b3c2;border-bottom:1px dashed #a8b3c2;background:#eef2f8;padding:5px 0;color:#7d8aa0;font-size:11px;letter-spacing:2px;user-select:none}
.page-break span{background:#eef2f8;padding:0 14px}
/* ===== r64 聚焦模式 / 当前段高亮 / 查找替换 / 缩放 ===== */
.rt-zoom-val{min-width:46px;font-variant-numeric:tabular-nums;color:#50658d}
.rt-edit.paper .doc-cur{background:#fffbe8;border-radius:3px;box-shadow:0 0 0 2px #f6ecc0}
.doc-fr{display:flex;gap:6px;align-items:center;flex-wrap:wrap;max-width:794px;margin:8px auto 0;padding:8px 10px;background:#fff;border:1px solid #d6deea;border-radius:9px;box-shadow:0 4px 16px rgba(30,50,90,.12);position:sticky;top:6px;z-index:8}
.doc-fr .fr-q,.doc-fr .fr-r{font:inherit;font-size:13px;padding:6px 9px;border:1px solid #ced7e5;border-radius:7px;min-width:0}
.doc-fr button{font-size:12.5px;padding:5px 9px;border:1px solid #d6deea;border-radius:7px;background:#fff;color:#3c4d6b;cursor:pointer}
.doc-fr button:hover{background:#e6eeff}
.doc-fr .fr-case{display:flex;align-items:center;gap:3px;font-size:12px;color:#69788f;white-space:nowrap}
.doc-fr .fr-n{font-size:12px;white-space:nowrap}
/* 聚焦模式：编辑容器全屏浮起，盖住工作台导航，只留文档 */
body.doc-focus .docsct{position:fixed;inset:0;z-index:50;background:#eceff5;overflow:auto;padding:10px 0 70px}
.doc-focus-exit{display:none;position:fixed;right:18px;bottom:18px;z-index:60;font-size:13px;padding:8px 14px;border-radius:99px;border:1px solid #d6deea;background:#fff;box-shadow:0 4px 16px rgba(30,50,90,.18);color:#3c4d6b;cursor:pointer}
body.doc-focus .doc-focus-exit{display:block}
/* ===== r65 Tiptap 引擎样式 ===== */
.tiptap-host{min-height:100%}
.tiptap-body{outline:none;white-space:normal;font-family:'宋体',SimSun,serif;font-size:14px;line-height:1.75;color:#111;min-height:2000px}
.tiptap-body:focus{outline:none}
.tiptap-body p{margin:.4em 0}
.tiptap-body h1{font-size:26px;margin:.55em 0 .3em;font-weight:700}
.tiptap-body h2{font-size:21px;margin:.5em 0 .3em;font-weight:700}
.tiptap-body h3{font-size:18px;margin:.5em 0 .3em;font-weight:600}
.tiptap-body h4{font-size:15.5px;margin:.5em 0 .3em;font-weight:600}
.tiptap-body ul,.tiptap-body ol{padding-left:1.7em;margin:.4em 0}
.tiptap-body li{margin:.15em 0}
.tiptap-body blockquote{border-left:3px solid #c9d3e2;margin:.5em 0;padding:.15em 14px;color:#44506a;background:#f7f9fc}
.tiptap-body hr{border:0;border-top:1px solid #d6deea;margin:1em 0}
.tiptap-body img{max-width:100%;height:auto;border-radius:2px}
.tiptap-body img.ProseMirror-selectednode{outline:2px solid #6386ef}
.tiptap-body a{color:#264cde;text-decoration:underline;cursor:pointer}
.tiptap-body mark{background:#ffe97f;border-radius:2px;padding:0 1px}
.tiptap-body code{background:#f1f4f9;border:1px solid #e3e9f3;border-radius:4px;padding:0 4px;font-size:13px}
.tiptap-body pre{background:#f6f8fb;border:1px solid #e3e9f3;border-radius:8px;padding:10px 14px;overflow:auto;font-size:13px}
.tiptap-body pre code{background:none;border:0;padding:0}
.tiptap-body table{border-collapse:collapse;width:100%;margin:.6em 0;table-layout:fixed;overflow:hidden}
.tiptap-body td,.tiptap-body th{border:1px solid #999;padding:4px 8px;vertical-align:top;position:relative}
.tiptap-body th{background:#f0f3f8;font-weight:600}
.tiptap-body .selectedCell{background:rgba(99,134,239,.14)!important}
.tiptap-body .selectedCell:after{content:'';position:absolute;inset:0;pointer-events:none}
.tiptap-body .column-resize-handle{position:absolute;right:-2px;top:0;bottom:0;width:4px;background:#6386ef;z-index:5}
.tiptap-body.resize-cursor,table.resize-cursor{cursor:col-resize}
.tiptap-body p.is-empty:first-child::before{content:attr(data-placeholder);color:#b6c0d2;float:left;height:0;pointer-events:none}



/* 首页合并：小工具与常用网址同处一个面板 */
.tools-inline{margin:2px 0 4px}
.tools-inline-bar{display:flex;align-items:center;gap:8px;margin:10px 0 6px}
.tools-inline-title{font-size:12.5px;font-weight:700;color:#50658d;background:#f2f5fa;border:1px solid #e6ecf5;border-radius:6px;padding:3px 10px}
.home-divider{height:1px;background:#e8edf5;margin:12px 0 2px}

/* 嵌入式视图（财务中心在工作台内打开） */
.embed-wrap{width:100%;padding:0}
.embed-frame{width:100%;height:calc(100vh - 118px);border:none;border-radius:12px;background:#f2f5fa;display:block}
@media (max-width:900px){.embed-frame{height:calc(100vh - 140px)}}
/* 被嵌入的页面：紧凑内边距 + 隐藏"返回工作台/返回财务"这类按钮 */
.embedded .wrap{padding:12px 12px 40px;max-width:none}
.embedded .back{display:none!important}   /* 仅隐藏「返回工作台」；页内返回（返回财务/工资表列表）保留，保证 iframe 内可正常逐级返回 */
.embedded .topbar{border-radius:12px}

/* 工资表列表项的操作按钮 */
.pitem .pn{position:relative}
.pitem .pops{display:flex;gap:5px;justify-content:flex-end;margin-top:6px}
.pitem .pops button{font-size:12px;padding:3px 9px}

/* 我的资料：分组 + 隐私模式 */
.me-group{margin-top:10px}
.me-group-title{font-size:12px;color:#8391a6;font-weight:700;letter-spacing:.03em;margin:0 0 6px;padding-left:2px}
.me-kv{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px 16px}
.me-kv>div{display:flex;flex-direction:column;gap:1px;min-width:0}
.me-kv b{font-size:11.5px;color:#8391a6;font-weight:600}
.me-kv span{font-size:13.5px;color:#23324d;word-break:break-all}
.home-panel .toolbar button.on{background:#eef3ff;border-color:#b9cbf0;color:#264cde}

/* 工作台概览：一行数字 + 悬停切换明细（合并后更紧凑） */
.ov-bar{display:flex;gap:10px;flex-wrap:wrap}
.ov-chip{display:flex;align-items:center;gap:10px;border:1px solid #e6ecf6;background:#fbfcfe;border-radius:12px;padding:10px 16px;cursor:pointer;transition:all .16s;min-width:132px}
.ov-chip:hover{border-color:#b9cbf0;background:#f4f8ff;transform:translateY(-1px);box-shadow:0 4px 14px #20345c0f}
.ov-chip.on{border-color:#3059da;background:#f2f6ff;box-shadow:0 0 0 2px #3059da1a}
.ov-chip-num{font-size:22px;font-weight:700;color:#16233c;line-height:1}
.ov-chip-label{font-size:13px;color:#5c6b83}
.ov-chip.ov-danger .ov-chip-num{color:#c0392b}
.ov-chip.ov-warn .ov-chip-num{color:#a9761a}
.ov-detail{margin-top:12px;border:1px solid #eef1f6;border-radius:12px;padding:12px 14px;background:#fcfdff;max-height:264px;overflow:auto}
.ov-detail-head{display:flex;align-items:baseline;gap:9px;margin-bottom:8px}
.ov-detail-head strong{font-size:14px}
.ov-empty{color:#8b97a8;font-size:13px;padding:8px 0}
.ov-list{display:flex;flex-direction:column;gap:7px}
.ov-item{border:1px solid #eef2f8;border-radius:10px;padding:9px 12px;background:#fff;cursor:pointer;transition:.14s}
.ov-item:hover{border-color:#c9d9f7;background:#fafcff}
.ov-item .ov-title{font-size:13.5px;font-weight:600}
.ov-item .ov-meta{font-size:12px;color:#8391a6;margin-top:2px}
.ov-more{font-size:12px;color:#8b97a8;text-align:center;padding:6px 0}

/* ===== 常用入口：统一卡片网格（可拖拽 / 呼吸感） ===== */
.entry-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(236px,1fr));gap:16px;margin-top:6px}
.entry-card{position:relative;background:#fff;border:1px solid #e6ecf6;border-radius:16px;padding:18px 18px 16px;cursor:pointer;transition:transform .16s,box-shadow .16s,border-color .16s;display:flex;flex-direction:column;gap:12px;min-height:132px}
.entry-card:hover{border-color:#b9cbf0;box-shadow:0 8px 26px #20345c17;transform:translateY(-2px)}
.entry-card:active{cursor:grabbing}
.entry-card.dragging{opacity:.45;border-style:dashed;border-color:#3059da;transform:none;box-shadow:none}
.entry-card.entry-hidden{opacity:.6;border-style:dashed;background:#fbfcfe}
.entry-link{border-left:3px solid #dbe6fb}
.entry-form{border-left:3px solid #3059da;background:linear-gradient(160deg,#fbfdff,#f4f8ff)}
.entry-tool{border-left:3px solid #7c96e8}
.ec-top{display:flex;align-items:center;gap:11px}
.ec-icon{width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#eef4ff,#e2ecff);display:flex;align-items:center;justify-content:center;font-size:20px;flex:none}
.ec-meta{min-width:0;flex:1}
.ec-title{font-size:15px;font-weight:650;color:#1c2b45;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ec-sub{font-size:12px;color:#8391a6;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ec-tool{display:flex;flex-direction:column;gap:5px}
.ec-big{font-size:16px;font-weight:650;color:#264cde;line-height:1.3}
.ec-small{font-size:12px;color:#8391a6}
.ec-input{font-size:12.5px;padding:6px 8px;width:100%;border:1px solid #dbe3ef;border-radius:8px;background:#fbfdff}
.ec-ops{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto}
.ec-ops button{font-size:12.5px;padding:6px 12px;border-radius:9px}
.ec-ops button.primary{background:#264cde;border-color:#264cde;color:#fff}
.ec-edit{position:absolute;right:10px;top:10px;font-size:11.5px;padding:3px 9px;border-radius:8px;opacity:0;transition:.15s}
.entry-card:hover .ec-edit{opacity:1}
@media (max-width:640px){.entry-grid{grid-template-columns:1fr 1fr;gap:12px}.entry-card{padding:14px;min-height:118px}}

/* 工作台概览：一行数字 + 悬停切换明细（合并后更紧凑） */
.ov-bar{display:flex;gap:10px;flex-wrap:wrap}
.ov-chip{display:flex;align-items:center;gap:10px;border:1px solid #e6ecf6;background:#fbfcfe;border-radius:12px;padding:10px 16px;cursor:pointer;transition:all .16s;min-width:132px}
.ov-chip:hover{border-color:#b9cbf0;background:#f4f8ff;transform:translateY(-1px);box-shadow:0 4px 14px #20345c0f}
.ov-chip.on{border-color:#3059da;background:#f2f6ff;box-shadow:0 0 0 2px #3059da1a}
.ov-chip-num{font-size:22px;font-weight:700;color:#16233c;line-height:1}
.ov-chip-label{font-size:13px;color:#5c6b83}
.ov-chip.ov-danger .ov-chip-num{color:#c0392b}
.ov-chip.ov-warn .ov-chip-num{color:#a9761a}
.ov-detail{margin-top:12px;border:1px solid #eef1f6;border-radius:12px;padding:12px 14px;background:#fcfdff;max-height:264px;overflow:auto}
.ov-detail-head{display:flex;align-items:baseline;gap:9px;margin-bottom:8px}
.ov-detail-head strong{font-size:14px}
.ov-empty{color:#8b97a8;font-size:13px;padding:8px 0}
.ov-list{display:flex;flex-direction:column;gap:7px}
.ov-item{border:1px solid #eef2f8;border-radius:10px;padding:9px 12px;background:#fff;cursor:pointer;transition:.14s}
.ov-item:hover{border-color:#c9d9f7;background:#fafcff}
.ov-item .ov-title{font-size:13.5px;font-weight:600}
.ov-item .ov-meta{font-size:12px;color:#8391a6;margin-top:2px}
.ov-more{font-size:12px;color:#8b97a8;text-align:center;padding:6px 0}

/* 我的资料：折叠态 */
.me-collapsed-hint{font-size:12.5px;color:#8b97a8;padding:4px 2px 2px}
.home-panel .toolbar button.on{background:#eef3ff;border-color:#b9cbf0;color:#264cde}

/* ===== 侧栏：每个中心专属色（界限清晰） ===== */
.workspace-nav{gap:2px;display:flex;flex-direction:column}
.workspace-nav button.side{display:flex;align-items:center;gap:9px;border-left:3px solid transparent;transition:all .15s;font-weight:500}
.workspace-nav button.side:hover{background:#f4f7fd}
.workspace-nav button.side.active{border-left-color:var(--nc,#264cde);background:var(--nb,#eef3ff);font-weight:650;color:var(--nc,#264cde)}
.nav-ico{width:26px;height:26px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;font-size:14px;flex:none;background:var(--nb,#eef3ff);transition:all .15s}
.workspace-nav button.side.active .nav-ico{background:var(--nc,#264cde);color:#fff;box-shadow:0 3px 10px var(--ns,#264cde44)}
.nav-label{flex:1;text-align:left}
/* 各中心配色 */
.workspace-nav button[data-nav="home"]{--nc:#264cde;--nb:#eef3ff;--ns:#264cde40}
.workspace-nav button[data-nav="projects"]{--nc:#6366f1;--nb:#f0f0ff;--ns:#6366f140}
.workspace-nav button[data-nav="customers"]{--nc:#e8890c;--nb:#fff5e8;--ns:#e8890c40}
.workspace-nav button[data-nav="hr"]{--nc:#10a86b;--nb:#e9f8f1;--ns:#10a86b40}
.workspace-nav button[data-nav="docs"]{--nc:#0891b2;--nb:#e8f7fb;--ns:#0891b240}
.workspace-nav button[data-nav="finance"]{--nc:#e0447a;--nb:#fdeef4;--ns:#e0447a40}
.workspace-nav button[data-nav="directory"]{--nc:#64748b;--nb:#f1f4f8;--ns:#64748b40}
.workspace-nav button[data-nav="workflow"]{--nc:#8b5cf6;--nb:#f4f0ff;--ns:#8b5cf640}
.workspace-nav button[data-nav="admin"]{--nc:#475569;--nb:#f1f4f8;--ns:#47556940}
/* 侧栏其他静态项（用户管理 / 服务器状态 / 外链）也统一图标块风格 */
aside a.side{display:flex;align-items:center;gap:9px;border-left:3px solid transparent}
aside a.side:hover{border-left-color:#cbd5e1}

/* ===== 首页视觉升级：色块 / 层次 / 交互感 ===== */
/* 标题区 */
.home .intro, .workspace-view .intro{padding:6px 2px 2px}
.workspace-view .eyebrow{display:inline-block;font-size:11px;letter-spacing:.14em;color:#8b97a8;font-weight:700;background:#f1f4f9;border-radius:6px;padding:3px 9px;margin-bottom:8px}
.workspace-view .intro h1{font-size:25px;letter-spacing:-.4px;margin:2px 0 4px;color:#16233c}
.workspace-view .intro p{color:#6b7a91;font-size:13.5px}

/* 常用入口卡片：彩色渐变条 + 渐变图标 + 更强交互 */
.entry-card{overflow:hidden;padding-top:22px;box-shadow:0 2px 8px #20345c0a}
.entry-card::before{content:'';position:absolute;left:0;top:0;right:0;height:5px;background:var(--grad,#cbd5e1);opacity:.95;transition:opacity .16s}
.entry-card:hover::before{opacity:1}
.entry-card:hover{box-shadow:0 12px 32px #20345c1c;transform:translateY(-3px)}
.entry-card:active{transform:translateY(-1px) scale(.995)}
.entry-form{--grad:linear-gradient(90deg,#6366f1,#8b5cf6);background:linear-gradient(165deg,#fbfcff,#f3f6ff)}
.entry-tool{--grad:linear-gradient(90deg,#0891b2,#22c1dc)}
.entry-link{--grad:linear-gradient(90deg,#94a3b8,#cbd5e1)}
.entry-form .ec-icon{background:linear-gradient(135deg,#e0e7ff,#c7d2fe)}
.entry-tool .ec-icon{background:linear-gradient(135deg,#e0f2fe,#bae6fd)}
.entry-link .ec-icon{background:linear-gradient(135deg,#eef2f7,#e2e8f0)}
.ec-icon{box-shadow:0 3px 10px #20345c12}
.ec-title{font-size:15.5px;letter-spacing:-.2px}
.ec-sub{font-size:12px;color:#7a879b}
.ec-big{font-size:17px;color:#1f4bb8;letter-spacing:-.2px}
.ec-ops button{border-radius:10px;transition:all .15s}
.ec-ops button:hover{transform:translateY(-1px);box-shadow:0 3px 10px #20345c14}
.ec-ops button.primary:hover{background:#1e40c0}

/* 概览芯片：更醒目 */
.ov-chip{background:#fff;box-shadow:0 2px 8px #20345c0a;border-color:#e8edf5}
.ov-chip:hover{transform:translateY(-2px);box-shadow:0 8px 22px #20345c16;background:#fff}
.ov-chip.ov-danger{border-color:#f3d6d6;background:linear-gradient(160deg,#fff,#fdf6f6)}
.ov-chip.ov-warn{border-color:#f0e2c8;background:linear-gradient(160deg,#fff,#fdfaf2)}
.ov-chip.on{background:#fff}
.ov-chip-num{font-size:24px;letter-spacing:-.5px}

/* 面板卡与分组标题层次 */
.home-panel{box-shadow:0 1px 3px #20345c08}
.home-panel .toolbar h2{font-size:16.5px;letter-spacing:-.2px}
.home-panel .group-title{font-weight:650;color:#3d4c66}
.me-group-title{color:#6b7a91}
.me-kv b{font-size:11.5px;color:#94a0b3;letter-spacing:.01em}
.me-kv span{font-size:13.5px;color:#1c2b45;font-weight:500}
.me-head .me-name{font-size:17px;letter-spacing:-.2px}

/* 概览明细条目：更清晰 */
.ov-item{border-color:#f0f3f8;box-shadow:0 1px 2px #20345c06}
.ov-item:hover{box-shadow:0 4px 14px #20345c12;transform:translateY(-1px)}
.ov-item .ov-title{color:#1c2b45}

/* ===== 视觉强化：侧栏图标实色 + 概览数字色块 ===== */
/* 侧栏：非选中项也用该中心的实色图标块（深色侧栏上界限清晰） */
.workspace-nav .nav-ico{background:var(--nc,#64748b);color:#fff;font-weight:600;box-shadow:0 2px 8px var(--ns,#20345c33);opacity:.92}
.workspace-nav button.side:hover .nav-ico{opacity:1;transform:scale(1.04)}
.workspace-nav button.side.active{background:#ffffff1f;color:#fff;border-left-color:var(--nc)}
.workspace-nav button.side.active .nav-ico{background:var(--nc);color:#fff;opacity:1;box-shadow:0 3px 14px var(--ns,#20345c55)}
.workspace-nav button.side.active .nav-label{font-weight:700}

/* 概览芯片：数字加彩色底块，一眼可辨 */
.ov-chip-num{background:#eef3ff;color:#264cde;border-radius:10px;padding:5px 11px;min-width:42px;text-align:center;font-size:17px;font-weight:700;line-height:1.3;box-shadow:inset 0 0 0 1px #dbe6fb}
.ov-chip.ov-danger .ov-chip-num{background:#fdeeee;color:#c0392b;box-shadow:inset 0 0 0 1px #f6d9d9}
.ov-chip.ov-warn .ov-chip-num{background:#fdf4e3;color:#a9761a;box-shadow:inset 0 0 0 1px #f1e2c4}
.ov-chip-label{font-weight:600;color:#3d4c66}
.ov-chip:hover .ov-chip-num{transform:scale(1.05)}
.ov-chip-num{transition:transform .15s}

/* ===== 优化：卡片等高 / 输入框收窄 / 视图切换动画 ===== */
.entry-grid{grid-auto-rows:minmax(150px,1fr)}
.entry-card{height:100%}
.entry-card .ec-ops{margin-top:auto}
.ec-tool{gap:6px}
.ec-input{width:132px;max-width:100%;font-size:12px;padding:5px 8px;border-radius:7px;background:#f8fafd}
.ec-input:focus{background:#fff}

/* 视图切换：淡入上浮 */
.workspace-view.view-enter{animation:viewEnter .28s cubic-bezier(.22,.61,.36,1)}
@keyframes viewEnter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.entry-card{animation:cardIn .3s cubic-bezier(.22,.61,.36,1) backwards}
@keyframes cardIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.entry-card:nth-child(2){animation-delay:.03s}
.entry-card:nth-child(3){animation-delay:.06s}
.entry-card:nth-child(4){animation-delay:.09s}
.entry-card:nth-child(5){animation-delay:.12s}
.entry-card:nth-child(6){animation-delay:.15s}
.entry-card:nth-child(7){animation-delay:.18s}
.entry-card:nth-child(8){animation-delay:.21s}
.ov-chip{animation:viewEnter .3s cubic-bezier(.22,.61,.36,1) backwards}
.ov-chip:nth-child(2){animation-delay:.04s}
.ov-chip:nth-child(3){animation-delay:.08s}
.ov-chip:nth-child(4){animation-delay:.12s}

/* ===== 深色主题（覆盖式，仅影响工作台外壳与首页） ===== */
.theme-toggle{font-size:15px;padding:5px 11px;border-radius:9px;background:#fff;border:1px solid #dde4ef;cursor:pointer;transition:.15s}
.theme-toggle:hover{background:#f4f7fd;transform:scale(1.05)}

html[data-mode="dark"]{--dk-bg:#0b1220;--dk-card:#192338;--dk-card2:#131c30;--dk-border:#2b3652;--dk-text:#e6ecf7;--dk-muted:#8b97a8;--dk-blue:#5b8cff;background:var(--dk-bg)}
html[data-mode="dark"] body{background:var(--dk-bg);color:var(--dk-text)}
html[data-mode="dark"] main{background:var(--dk-bg)}
html[data-mode="dark"] header{background:#131c30;border-color:var(--dk-border);color:var(--dk-text)}
html[data-mode="dark"] header strong,html[data-mode="dark"] header .link{color:var(--dk-text)}
html[data-mode="dark"] aside{background:#0a1020;border-color:var(--dk-border)}
html[data-mode="dark"] footer{background:#0a1020;border-color:var(--dk-border);color:var(--dk-muted)}
.kbd-hint{color:#9aa6b8;font-size:12.5px;white-space:nowrap;letter-spacing:.2px}
html[data-mode="dark"] .kbd-hint{color:var(--dk-muted)}
html[data-mode="dark"] .theme-toggle{background:#1c2740;border-color:#2c3852;color:#e6ecf7}
html[data-mode="dark"] .theme-toggle:hover{background:#243152}
/* 卡片与面板 */
html[data-mode="dark"] .home-panel,
html[data-mode="dark"] .entry-card,
html[data-mode="dark"] .ov-detail,
html[data-mode="dark"] .ov-item,
html[data-mode="dark"] .directory,
html[data-mode="dark"] .feature-row,
html[data-mode="dark"] .step-card{background:var(--dk-card);border-color:var(--dk-border);color:var(--dk-text);box-shadow:none}
/* 暗色质感：底更深、卡片带一层很轻的投影，面板像浮在底色上（借鉴 Krea 深底浮层） */
html[data-mode="dark"] .home-panel,html[data-mode="dark"] .directory{box-shadow:0 10px 28px #00000045}
html[data-mode="dark"] .wk-card:hover,html[data-mode="dark"] .ov-item:hover{border-color:#3a4a6d}
html[data-mode="dark"] .entry-card:hover{box-shadow:0 12px 32px #00000055;border-color:#3a4a6d}
html[data-mode="dark"] .entry-form{background:linear-gradient(165deg,#161f36,#131b2e)}
html[data-mode="dark"] .ov-item:hover{background:#1d2841}
/* 文字层级 */
html[data-mode="dark"] .ec-title,html[data-mode="dark"] .ov-item .ov-title,
html[data-mode="dark"] .me-kv span,html[data-mode="dark"] .intro h1,
html[data-mode="dark"] .home-panel .toolbar h2,html[data-mode="dark"] .me-head .me-name,
html[data-mode="dark"] .me-kv span,html[data-mode="dark"] .ov-chip-label{color:var(--dk-text)}
html[data-mode="dark"] .ec-sub,html[data-mode="dark"] .muted,html[data-mode="dark"] .hint,
html[data-mode="dark"] .me-kv b,html[data-mode="dark"] .me-collapsed-hint,
html[data-mode="dark"] .ov-item .ov-meta,html[data-mode="dark"] .intro p,
html[data-mode="dark"] .me-foot,html[data-mode="dark"] .workspace-view .eyebrow{color:var(--dk-muted)}
html[data-mode="dark"] .workspace-view .eyebrow{background:#1c2740}
/* 图标块与标签 */
html[data-mode="dark"] .entry-tool .ec-icon{background:linear-gradient(135deg,#123039,#134e5c)}
html[data-mode="dark"] .entry-form .ec-icon{background:linear-gradient(135deg,#232a52,#2e2560)}
html[data-mode="dark"] .entry-link .ec-icon{background:linear-gradient(135deg,#1e293b,#243044)}
html[data-mode="dark"] .tag,html[data-mode="dark"] .tag.blue{background:#1e2b45;color:#8fb0ff}
html[data-mode="dark"] .tag.ok{background:#14301f;color:#5fd18f}
html[data-mode="dark"] .tag.warn{background:#33280f;color:#e0b45c}
html[data-mode="dark"] .tag.gray{background:#1f2937;color:#94a3b8}
/* 概览数字块 */
html[data-mode="dark"] .ov-chip{background:var(--dk-card);border-color:var(--dk-border)}
html[data-mode="dark"] .ov-chip:hover,html[data-mode="dark"] .ov-chip.on{background:#1d2841;border-color:#4d7cfe}
html[data-mode="dark"] .ov-chip-num{background:#1f2b45;color:#9db4ff;box-shadow:inset 0 0 0 1px #2b3a5c}
html[data-mode="dark"] .ov-chip.ov-danger .ov-chip-num{background:#3a1f22;color:#f08a8a;box-shadow:inset 0 0 0 1px #4d2a2d}
html[data-mode="dark"] .ov-chip.ov-warn .ov-chip-num{background:#3a2f1a;color:#e0b45c;box-shadow:inset 0 0 0 1px #4d3f24}
/* 表单控件 */
html[data-mode="dark"] input,html[data-mode="dark"] select,html[data-mode="dark"] textarea{background:#101827;border-color:#2c3852;color:var(--dk-text)}
html[data-mode="dark"] .ec-input{background:#101827}
html[data-mode="dark"] button{background:#1c2740;border-color:#2c3852;color:#dbe6f7}
html[data-mode="dark"] button:hover{background:#243152}
html[data-mode="dark"] button.primary{background:var(--dk-blue);border-color:var(--dk-blue);color:#fff}
html[data-mode="dark"] .notice{background:var(--dk-card2);border-color:var(--dk-border);color:var(--dk-muted)}
html[data-mode="dark"] .ec-big,html[data-mode="dark"] .ov-item .ov-title{color:#cfe0ff}
/* 内嵌页面（财务/表单）保持浅色内容区，加边框区分 */
html[data-mode="dark"] .embed-frame{border:1px solid var(--dk-border);box-shadow:0 8px 30px #00000055}
html[data-mode="dark"] dialog{background:#182236;color:var(--dk-text)}
html[data-mode="dark"] dialog .dialog-head{border-color:var(--dk-border)}

/* 深色主题：补漏（主区容器全部覆盖，避免露出白底） */
html[data-mode="dark"] main,
html[data-mode="dark"] main>section,
html[data-mode="dark"] .workspace-view,
html[data-mode="dark"] #homeView,
html[data-mode="dark"] #directoryView,
html[data-mode="dark"] .wrap,
html[data-mode="dark"] .home{background:var(--dk-bg)}
html[data-mode="dark"] .workspace-view{padding-bottom:24px}

/* ===== 六套主题：主色变量体系 ===== */
html[data-theme]{--p:#264cde;--pd:#1e40c0;--ps:#eef3ff;--pg:linear-gradient(90deg,#6366f1,#8b5cf6);--pi:#264cde1a}
html[data-theme="azure"]{--p:#264cde;--pd:#1e40c0;--ps:#eef3ff;--pg:linear-gradient(90deg,#6366f1,#8b5cf6);--pi:#264cde1a}
html[data-theme="midnight"]{--p:#5b8cff;--pd:#4a76e6;--ps:#1b2540;--pg:linear-gradient(90deg,#5b8cff,#8b5cf6);--pi:#5b8cff22}
html[data-theme="jade"]{--p:#0d9488;--pd:#0f766e;--ps:#e6f7f4;--pg:linear-gradient(90deg,#0d9488,#22c1a8);--pi:#0d94881a}
html[data-theme="sunset"]{--p:#e07b1a;--pd:#c96a0e;--ps:#fff4e6;--pg:linear-gradient(90deg,#e07b1a,#f0a13a);--pi:#e07b1a1a}
html[data-theme="violet"]{--p:#7c3aed;--pd:#6a2fd8;--ps:#f3eeff;--pg:linear-gradient(90deg,#7c3aed,#a855f7);--pi:#7c3aed1a}
html[data-theme="obsidian"]{--p:#94a3b8;--pd:#7d8da3;--ps:#20263a;--pg:linear-gradient(90deg,#64748b,#94a3b8);--pi:#94a3b822}
/* 主色应用：按钮 / 标签 / 高亮 / 卡片条 / 芯片 / 品牌 */
button.primary{background:var(--p);border-color:var(--p)}
button.primary:hover{background:var(--pd)}
.ec-ops button.primary{background:var(--p);border-color:var(--p)}
.ec-ops button.primary:hover{background:var(--pd)}
.tag{background:var(--ps);color:var(--p)}
.entry-form::before{background:var(--pg)}
.entry-form .ec-icon{background:var(--pi)}
.ov-chip.on{border-color:var(--p);box-shadow:0 0 0 2px var(--pi)}
.ov-chip-num{background:var(--ps);color:var(--p);box-shadow:inset 0 0 0 1px var(--pi)}
.ec-big{color:var(--p)}
.workspace-nav button[data-nav="home"]{--nc:var(--p);--nb:var(--ps);--ns:var(--pi)}
.brand b{background:var(--p)!important}
.workspace-view .eyebrow{color:var(--p)}
html[data-mode="dark"] .ov-chip-num{background:var(--pi);color:var(--p);box-shadow:inset 0 0 0 1px var(--pi)}
html[data-mode="dark"] button.primary{background:var(--p);border-color:var(--p)}
html[data-mode="dark"] .tag{background:var(--pi);color:var(--p)}

/* 主题选择器面板 */
.theme-toggle{font-size:13px;padding:6px 12px;border-radius:9px;background:#fff;border:1px solid #dde4ef;cursor:pointer;transition:.15s;display:inline-flex;align-items:center;gap:6px}
.theme-toggle:hover{background:#f4f7fd}
.theme-panel{position:absolute;right:16px;top:52px;z-index:99;background:#fff;border:1px solid #e2e8f3;border-radius:14px;padding:8px;box-shadow:0 16px 44px #20345c22;min-width:212px}
.theme-panel .tp-title{font-size:11.5px;color:#8391a6;font-weight:700;padding:6px 10px 4px;letter-spacing:.06em}
.theme-item{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;cursor:pointer;font-size:13.5px;color:#2b3a55;transition:.14s}
.theme-item:hover{background:#f4f7fd}
.theme-item.on{background:var(--ps);color:var(--p);font-weight:650}
.theme-swatch{width:26px;height:26px;border-radius:8px;flex:none;border:1px solid #0000000f;display:flex;align-items:center;justify-content:center}
.theme-swatch i{width:12px;height:12px;border-radius:50%;background:#fff;opacity:.92}
.theme-item .tp-name{flex:1}
.theme-item .tp-tag{font-size:11px;color:#8b97a8}
html[data-mode="dark"] .theme-panel{background:#182236;border-color:#28324a;box-shadow:0 16px 44px #00000066}
html[data-mode="dark"] .theme-item{color:#dbe6f7}
html[data-mode="dark"] .theme-item:hover{background:#1f2b45}
html[data-mode="dark"] .theme-toggle{background:#1c2740;border-color:#2c3852;color:#e6ecf7}
html[data-mode="dark"] .theme-toggle:hover{background:#243152}

/* 主题图标块：用主色浅底更清晰（避免过淡） */
.entry-form .ec-icon{background:var(--ps)}
html[data-mode="dark"] .entry-form .ec-icon{background:var(--pi)}

/* 侧栏行距收紧（配合各中心彩色图标块，整体更紧凑） */
.workspace-nav{gap:1px}
.workspace-nav button.side{padding:9px 10px;margin:1px 0;border-radius:9px;font-size:14.5px}
.workspace-nav .nav-ico{width:24px;height:24px;border-radius:7px;font-size:13px}
aside .side-label{margin-top:6px;margin-bottom:4px}

/* ===== 侧栏重新设计（统一线性图标 / 配色收敛 / 强化交互） ===== */
aside{background:linear-gradient(180deg,#0d1526 0%,#0a1120 100%)}
/* 品牌区 */
.brand{padding:14px 14px 12px;display:flex;align-items:center;gap:11px}
.brand b{width:34px;height:34px;border-radius:11px;display:flex;align-items:center;justify-content:center;
 font-size:17px;font-weight:800;color:#fff;background:linear-gradient(140deg,var(--p,#264cde),var(--pd,#1e40c0));
 box-shadow:0 4px 14px var(--pi,#264cde33)}
.brand span{display:flex;flex-direction:column;line-height:1.25}
.brand span>small{font-size:11px;color:#7b8aa3;font-weight:400;letter-spacing:.04em}
/* 分组标题 */
.side-label,aside .side-label{font-size:11px;letter-spacing:.16em;color:#5f6f88;font-weight:700;
 padding:14px 16px 6px;text-transform:uppercase}
/* 导航项：统一灰 → hover 微亮 → 选中着色 */
.workspace-nav{display:flex;flex-direction:column;gap:2px;padding:0 8px}
.workspace-nav button.side,
aside a.side{
 display:flex;align-items:center;gap:10px;
 padding:9px 11px;margin:0;border-radius:10px;
 color:#93a1b8;font-size:14.5px;font-weight:500;letter-spacing:.01em;
 border:0;border-left:3px solid transparent;background:transparent;
 transition:background .18s,color .18s,transform .18s,border-color .18s;
}
.workspace-nav .nav-ico{
 width:20px;height:20px;flex:none;background:none!important;box-shadow:none!important;
 color:currentColor;display:inline-flex;align-items:center;justify-content:center;opacity:.9;
}
.workspace-nav .nav-ico svg{width:19px;height:19px;display:block}
.workspace-nav button.side:hover,
aside a.side:hover{background:#ffffff0f;color:#e4ebf7;transform:translateX(2px)}
.workspace-nav button.side:hover .nav-ico{opacity:1}
.workspace-nav button.side.active{
 background:linear-gradient(90deg,color-mix(in srgb,var(--nc,#264cde) 26%,transparent),color-mix(in srgb,var(--nc,#264cde) 6%,transparent));
 color:#fff;font-weight:650;border-left-color:var(--nc);
}
.workspace-nav button.side.active .nav-ico{color:var(--nc);opacity:1}
.nav-label{flex:1;text-align:left}
/* 底部区 */
.side-bottom{padding:12px 14px;border-top:1px solid #ffffff12;margin-top:auto}
/* 侧栏可滚动：aside 是 position:fixed 的 flex 列，模块一多就会超出视口，
   以前没有任何滚动容器，超出的条目直接被裁掉、鼠标划不到。 */
aside{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
 scrollbar-width:thin;scrollbar-color:#ffffff30 transparent}
aside::-webkit-scrollbar{width:8px}
aside::-webkit-scrollbar-track{background:transparent}
aside::-webkit-scrollbar-thumb{background:#ffffff26;border-radius:4px}
aside::-webkit-scrollbar-thumb:hover{background:#ffffff40}
/* 窄屏下 aside 变成静态块（内容自然排列、没有固定高度），不需要也不应该出现滚动条 */
@media(max-width:760px){aside{overflow:visible}}
.side-bottom small{color:#5f6f88;font-size:10.5px;letter-spacing:.06em}
/* 顶栏也跟着精致一点 */
header{backdrop-filter:saturate(1.2)}

/* ===== 工作空间管理：折叠子菜单 + 字号放大 ===== */
.workspace-nav button.side,aside a.side{font-size:15.5px}
.ws-wrap{margin-top:8px;padding-top:8px;border-top:1px solid #ffffff12}
.ws-head{width:100%}
.ws-caret{margin-left:auto;font-size:10px;color:#7b8aa3;transition:transform .2s,color .2s;line-height:1}
.ws-head:hover .ws-caret{color:#cbd5e1}
.ws-head.collapsed .ws-caret{color:#5f6f88}
.ws-body{display:flex;flex-direction:column;gap:1px;margin-top:2px;padding-left:6px;border-left:1px solid #ffffff12;margin-left:12px}
.ws-body button.side.sub,.ws-body a.side.sub{font-size:14px;padding:7px 10px;color:#8494ac;font-weight:450}
.ws-body button.side.sub .nav-ico svg,.ws-body a.side.sub .nav-ico svg{width:17px;height:17px;opacity:.85}
.ws-body button.side.sub:hover,.ws-body a.side.sub:hover{color:#dbe6f7;background:#ffffff0d}
.ws-body button.side.active{border-left:0;background:linear-gradient(90deg,color-mix(in srgb,var(--nc,#264cde) 24%,transparent),transparent);color:#fff;font-weight:600}

/* 修复：折叠组内的图标同样要去掉实色底块（作用域扩大到整个 aside） */
aside .nav-ico{background:none!important;box-shadow:none!important;color:currentColor;width:20px;height:20px;
 display:inline-flex;align-items:center;justify-content:center;flex:none;opacity:.9;border-radius:0}
aside .nav-ico svg{width:19px;height:19px;display:block}
.ws-head .nav-ico svg,.ws-body .nav-ico svg{width:18px;height:18px}
aside button.side.active .nav-ico{background:none!important;box-shadow:none!important;color:var(--nc,#264cde);opacity:1}

/* ===== 周报月报：视图切换 + 团队看板 ===== */
.weekly-tabs{display:flex;gap:6px;align-items:center;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #eef1f6;flex-wrap:wrap}
.weekly-tabs>button{font-size:14px;padding:7px 16px;border-radius:10px;border:1px solid #dde4ef;background:#fff;cursor:pointer;transition:.15s}
.weekly-tabs>button:hover{background:#f4f7fd}
.weekly-tabs>button.on{background:var(--p,#264cde);border-color:var(--p,#264cde);color:#fff;font-weight:600;box-shadow:0 3px 12px var(--pi,#264cde33)}
.weekly-tabs-right{margin-left:auto;display:flex;gap:4px}
.weekly-tabs-right button{font-size:12.5px;padding:5px 12px;border-radius:8px;border:1px solid #dde4ef;background:#fff;cursor:pointer}
.weekly-tabs-right button.on{background:var(--ps,#eef3ff);border-color:var(--p,#264cde);color:var(--p,#264cde);font-weight:600}
/* ===== 我的周报：团队看板里的第一块，直接可编辑 ===== */
.my-wk{border:1px solid #e6ecf6;border-left:3px solid var(--p,#264cde);box-shadow:0 4px 18px #20345c10}
.my-wk-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:4px}
.my-wk-id{display:flex;align-items:center;gap:11px;flex:1;min-width:0}
.my-wk-ava{width:38px;height:38px;border-radius:11px;background:var(--pg,#264cde);color:#fff;font-size:15px;font-weight:700;
 display:flex;align-items:center;justify-content:center;flex:none}
.my-wk-nm{display:flex;flex-direction:column;gap:2px;min-width:0}
.my-wk-nm strong{font-size:16.5px;color:#1c2b45;letter-spacing:-.2px}
.my-wk-nm small{font-size:12.5px;color:#8391a6}
.my-wk-period{font-size:13px;color:#5c6b83;font-weight:600;background:#f2f6ff;padding:5px 12px;border-radius:9px;white-space:nowrap}
.my-wk-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:2px 0 12px}
.wk-hist{margin-top:16px;border:1px solid #e6ecf6;border-radius:13px;background:#fff;padding:0 16px}
.wk-hist>summary{cursor:pointer;padding:13px 0;font-size:13.5px;font-weight:600;color:#2b3a55;list-style:none}
.wk-hist>summary::-webkit-details-marker{display:none}
.wk-hist>summary::before{content:'▸';display:inline-block;margin-right:7px;transition:transform .15s}
.wk-hist[open]>summary::before{transform:rotate(90deg)}
html[data-mode="dark"] .my-wk{border-color:#28324a;box-shadow:none}
html[data-mode="dark"] .my-wk-nm strong{color:#e6ecf7}
html[data-mode="dark"] .my-wk-nm small{color:#8b97a8}
html[data-mode="dark"] .my-wk-period{background:#1f2a41;color:#a8b4c6}
html[data-mode="dark"] .wk-hist{background:#182236;border-color:#28324a}
html[data-mode="dark"] .wk-hist>summary{color:#e6ecf7}
/* ===== 权限收敛：无权限的入口灰显 + 锁，点击直接去申请 ===== */
.workspace-nav button.side.locked{opacity:.46}
.workspace-nav button.side.locked:hover{opacity:.72}
.nav-lock{margin-left:auto;font-size:11px;line-height:1;filter:grayscale(1)}
html[data-mode="dark"] .workspace-nav button.side.locked{opacity:.4}
/* ===== 权限管理 ===== */
.perm-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-bottom:4px}
.perm-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.perm-lab{font-size:12.5px;color:#6b7a91;font-weight:600}
.perm-field select,.perm-field input{font:inherit;font-size:13.5px;padding:8px 10px;border:1px solid #d8e0ec;border-radius:9px;background:#fff;width:100%}
.perm-field select:focus,.perm-field input:focus{outline:none;border-color:var(--p,#264cde);box-shadow:0 0 0 3px var(--pi,#264cde1a)}
.perm-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:13px 15px;border:1px solid #e6ecf6;border-radius:12px;margin-bottom:9px;background:#fff;
 border-left:3px solid var(--p,#264cde)}
.perm-row-main{flex:1;min-width:180px}
.perm-row-title{font-size:14.5px;font-weight:600;color:#1c2b45;margin-bottom:3px}
.perm-row-meta{font-size:12.5px;color:#8391a6}
.perm-ops{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.perm-ops select{font:inherit;font-size:13px;padding:6px 9px;border:1px solid #d8e0ec;border-radius:8px;background:#fff}
.perm-dlg{border:none;border-radius:16px;padding:0;max-width:420px;width:92vw;box-shadow:0 20px 60px #0d172a44}
.perm-dlg::backdrop{background:#0d172a55}
.perm-dlg form{padding:20px 22px;display:flex;flex-direction:column;gap:12px}
.perm-dlg label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#5c6b83}
.perm-dlg select{font:inherit;font-size:13.5px;padding:8px 10px;border:1px solid #d8e0ec;border-radius:9px;background:#fff;width:100%}
html[data-mode="dark"] .perm-row{background:#182236;border-color:#28324a;border-left-color:var(--p,#5b8cff)}
html[data-mode="dark"] .perm-row-title{color:#e6ecf7}
html[data-mode="dark"] .perm-row-meta{color:#8b97a8}
html[data-mode="dark"] .perm-lab{color:#8b97a8}
html[data-mode="dark"] .perm-field select,html[data-mode="dark"] .perm-field input,
html[data-mode="dark"] .perm-ops select,html[data-mode="dark"] .perm-dlg select{background:#141d31;border-color:#2c3852;color:#e6ecf7}
html[data-mode="dark"] .perm-dlg{background:#182236}
html[data-mode="dark"] .perm-dlg label{color:#8b97a8}
/* ===== 用户与权限：四类事项合并为一张清晰列表 ===== */
.perm-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:2px 0 14px}
.perm-head h2{margin:0;font-size:21px;color:#1c2b45}
.perm-subtitle{margin-top:4px;color:#8491a5;font-size:13px}
.perm-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.perm-actions button,.perm-row-ops button{font-size:12.5px;padding:6px 10px;border-radius:8px;white-space:nowrap}
.perm-actions button.primary,.perm-row-ops button.primary{background:#3158dc;border-color:#3158dc;color:#fff}
.perm-actions button:hover,.perm-row-ops button:hover{filter:brightness(.97)}
.perm-actions button.primary:hover,.perm-row-ops button.primary:hover{filter:brightness(1.04)}
.perm-list-toolbar{display:flex;align-items:center;gap:9px;margin:0 0 9px}
.perm-filter,.perm-search,.perm-inline-select{font:inherit;font-size:12.5px;padding:7px 9px;border:1px solid #d8e0ec;border-radius:8px;background:#fff;color:#2b3a55}
.perm-filter{min-width:125px}
.perm-search{width:min(320px,50vw)}
.perm-count{margin-left:auto;color:#8793a6;font-size:12px}
.perm-table-wrap{overflow:auto;border:1px solid #e2e8f1;border-radius:11px;background:#fff}
.perm-table{width:100%;min-width:760px;border-collapse:collapse;font-size:13px}
.perm-table th,.perm-table td{padding:10px 11px;border-bottom:1px solid #edf1f6;text-align:left;vertical-align:middle}
.perm-table th{position:sticky;top:0;background:#f7f9fc;color:#748198;font-size:11.5px;font-weight:650;white-space:nowrap;z-index:1}
.perm-table tr:last-child td{border-bottom:0}
.perm-kind{width:82px;color:#66758d;white-space:nowrap}
.perm-item-main{min-width:220px;max-width:540px}
.perm-item-main strong{display:block;font-size:13px;font-weight:620;color:#263651;overflow-wrap:anywhere}
.perm-item-main small{display:block;margin-top:2px;color:#929daf;font-size:11.5px;line-height:1.45;overflow-wrap:anywhere}
.perm-level{min-width:98px;color:#53637c;white-space:nowrap}
.perm-status{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;background:#f0f3f8;color:#69788e;font-size:11.5px;white-space:nowrap}
.perm-status.pending{background:#fff4df;color:#9a6b17}
.perm-status.approved{background:#eaf7ef;color:#2d7948}
.perm-status.closed{background:#f1f3f6;color:#7a879b}
.perm-row-ops{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.perm-row-ops button.mini{padding:5px 8px}
.perm-row-ops button.danger{color:#bd4444;border-color:#eed0d0;background:#fff}
.perm-row-ops .perm-inline-select{max-width:126px}
.perm-row-hint{font-size:11.5px;color:#8b97a9;white-space:nowrap}
.perm-empty-row td{text-align:center!important;padding:26px 12px;color:#929daf}
.perm-dlg{max-height:min(88vh,900px);overflow:auto}
.perm-dlg form{gap:10px}
.perm-dlg .dialog-head{margin-bottom:4px}
.perm-dlg .dialog-head h2{font-size:18px}
.perm-dlg .dialog-head .close{margin-left:auto;width:34px;height:34px;padding:0;font-size:22px}
.perm-dialog-field{display:flex!important;flex-direction:column;gap:5px!important;margin:0!important;color:#596981!important;font-size:12px!important;font-weight:600}
.perm-dialog-field input,.perm-dialog-field select,.perm-dialog-field textarea{box-sizing:border-box;width:100%;margin:0!important;padding:8px 10px!important;border:1px solid #d8e0ec;border-radius:8px;font:inherit;font-size:13px;background:#fff;color:#2b3a55}
.perm-dialog-field textarea{resize:vertical;min-height:68px}
.perm-dialog-hint{font-size:11.5px;color:#8793a6;line-height:1.5}
.perm-dlg .dialog-actions{margin-top:5px;padding-top:9px;border-top:1px solid #edf1f6}
.perm-dlg .dialog-actions button{padding:7px 13px;font-size:12.5px}
.perm-dlg-wide{max-width:780px}
.perm-dialog-section{font-size:12px;font-weight:650;color:#53637b;margin-top:2px}
.perm-dialog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px}
.perm-dialog-permission{display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;gap:8px!important;margin:0!important;padding:6px 8px;border:1px solid #e8edf4;border-radius:8px;background:#fafbfd;font-size:12px!important}
.perm-dialog-permission span{font-weight:500;white-space:nowrap}
.perm-dialog-permission select{max-width:112px;padding:5px 7px!important;font-size:11.5px!important}
.perm-dialog-permission select:disabled{opacity:.65}
html[data-mode="dark"] .perm-head h2,html[data-mode="dark"] .perm-item-main strong{color:#e6ecf7}
html[data-mode="dark"] .perm-subtitle,html[data-mode="dark"] .perm-item-main small,html[data-mode="dark"] .perm-count{color:#8b97a8}
html[data-mode="dark"] .perm-table-wrap{background:#182236;border-color:#28324a}
html[data-mode="dark"] .perm-table th{background:#1e2a40;color:#a3aec0;border-color:#28324a}
html[data-mode="dark"] .perm-table td{border-color:#28324a}
html[data-mode="dark"] .perm-level,html[data-mode="dark"] .perm-kind{color:#b2bdd0}
html[data-mode="dark"] .perm-filter,html[data-mode="dark"] .perm-search,html[data-mode="dark"] .perm-inline-select,
html[data-mode="dark"] .perm-dialog-field input,html[data-mode="dark"] .perm-dialog-field select,html[data-mode="dark"] .perm-dialog-field textarea{background:#141d31;border-color:#2c3852;color:#e6ecf7}
html[data-mode="dark"] .perm-dialog-permission{background:#141d31;border-color:#2c3852}
html[data-mode="dark"] .perm-dlg .dialog-actions{border-color:#28324a}
@media(max-width:760px){
 .perm-head{align-items:stretch}.perm-actions{width:100%}.perm-actions button{flex:1}
 .perm-list-toolbar{flex-wrap:wrap}.perm-search{flex:1;min-width:160px}
 .perm-dialog-grid{grid-template-columns:1fr}.perm-dlg-wide{width:94vw}
}
/* ===== 用户与权限：按办理流程分区，避免把不同事项堆成一张长表 ===== */
.perm{max-width:1440px;margin:0 auto}
.perm-head{align-items:center;margin:4px 0 20px;padding:0 2px}
.perm-page-title h2{margin:0;color:#1c2b45;font-size:23px;letter-spacing:-.35px}
.perm-page-title .perm-subtitle{margin:5px 0 0;color:#718099;font-size:13px}
.perm-top-actions{display:flex;align-items:center;gap:8px}
.perm-top-actions button{min-height:36px;padding:7px 13px;border-radius:9px;font-size:13px;white-space:nowrap}
.perm-top-actions .primary{background:#3158dc;border-color:#3158dc;color:#fff}
.perm-refresh-button{color:#52627a;background:#fff;border-color:#dce4ef}
.perm-sections{display:flex;align-items:stretch;gap:8px;overflow-x:auto;margin:0 0 20px;padding:0 0 1px;border-bottom:1px solid #e4eaf2}
.perm-section-tab{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 15px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#697991;font:inherit;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer;transition:color .15s,border-color .15s}
.perm-section-tab:hover{color:#3158dc;background:#f7f9fd}
.perm-section-tab.active{border-bottom-color:#3158dc;color:#284fce}
.perm-tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#edf1f7;color:#65748a;font-size:11px;font-weight:600}
.perm-section-tab.active .perm-tab-count,.perm-subsection-tab.active .perm-tab-count{background:#e7edff;color:#3158dc}
.perm-section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px}
.perm-section-heading h3{margin:0;color:#263651;font-size:16px;font-weight:650}
.perm-section-heading p{margin:4px 0 0;color:#8793a6;font-size:12.5px;line-height:1.55}
.perm-section-actions{display:flex;align-items:center;gap:7px;flex:none}
.perm-section-actions button{padding:7px 11px;border-radius:8px;font-size:12.5px;white-space:nowrap}
.perm-section-actions button.primary{background:#3158dc;border-color:#3158dc;color:#fff}
.perm-subsections{display:flex;align-items:center;gap:6px;margin:2px 0 10px;padding:4px;width:max-content;max-width:100%;border:1px solid #e7ecf4;border-radius:10px;background:#f6f8fb}
.perm-subsection-tab{display:inline-flex;align-items:center;gap:7px;min-height:31px;padding:0 11px;border:0;border-radius:7px;background:transparent;color:#6e7c92;font:inherit;font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer}
.perm-subsection-tab.active{background:#fff;color:#294fce;box-shadow:0 1px 4px #182c4d12}
.perm-subsection-tab .perm-tab-count{min-width:18px;height:18px;background:#e9edf4}
.perm-people-toolbar{display:flex;justify-content:flex-end;min-height:34px;margin:0 0 9px}
.perm-search-box{display:flex;align-items:center;gap:7px;width:min(260px,100%);height:34px;padding:0 10px;border:1px solid #dce4ef;border-radius:8px;background:#fff;color:#96a1b1}
.perm-search-box input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#2b3a55;font:inherit;font-size:12.5px}
.perm-table-wrap{border-color:#e5eaf2;border-radius:10px;box-shadow:0 1px 3px #20345c08}
.perm-table{min-width:680px;font-size:12.5px}
.perm-table th,.perm-table td{padding:11px 13px}
.perm-table th{background:#f8f9fc;color:#77849a;font-size:11.5px;letter-spacing:.1px}
.perm-table td{color:#52627a;line-height:1.5}
.perm-item-main{min-width:180px}
.perm-item-main strong{font-size:13px;color:#263651}
.perm-item-main small{font-size:11.5px;color:#8995a7}
.perm-row-ops button{min-height:29px;border-radius:7px;background:#fff;color:#52627a}
.perm-row-ops button.primary{background:#3158dc;border-color:#3158dc;color:#fff}
.perm-row-ops button.danger,.perm-dlg .dialog-actions button.danger{color:#b94141;border-color:#f0d1d1;background:#fff8f8}
.perm-status{padding:3px 8px;font-weight:600}
.perm-empty-row td{padding:0!important}
.perm-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:126px;padding:20px;color:#68778f}
.perm-empty-state strong{font-size:13px;font-weight:600}
.perm-empty-state small{color:#939eae;font-size:12px}
.perm-review-summary{display:flex;flex-direction:column;gap:0;margin:0 0 3px;border:1px solid #e8edf4;border-radius:9px;background:#f8fafd}
.perm-review-detail{display:grid;grid-template-columns:88px minmax(0,1fr);gap:10px;padding:9px 11px;border-bottom:1px solid #e9eef5;align-items:start}
.perm-review-detail:last-child{border-bottom:0}
.perm-review-detail small{color:#8692a5;font-size:11.5px}
.perm-review-detail strong{color:#34435c;font-size:12.5px;font-weight:550;white-space:pre-wrap;overflow-wrap:anywhere}
.perm-dlg .dialog-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.perm-dlg .dialog-actions button{border-radius:8px}
html[data-mode="dark"] .perm-page-title h2,html[data-mode="dark"] .perm-section-heading h3{color:#e6ecf7}
html[data-mode="dark"] .perm-page-title .perm-subtitle,html[data-mode="dark"] .perm-section-heading p{color:#929db0}
html[data-mode="dark"] .perm-sections{border-color:#28324a}
html[data-mode="dark"] .perm-section-tab{color:#a3aec0}
html[data-mode="dark"] .perm-section-tab:hover{background:#1c2740;color:#b6c7ff}
html[data-mode="dark"] .perm-section-tab.active{color:#9db3ff;border-color:#6688ff}
html[data-mode="dark"] .perm-tab-count{background:#26334d;color:#b3bfd2}
html[data-mode="dark"] .perm-refresh-button,html[data-mode="dark"] .perm-row-ops button{background:#182236;border-color:#34415c;color:#c4cede}
html[data-mode="dark"] .perm-subsections{background:#141d31;border-color:#2c3852}
html[data-mode="dark"] .perm-subsection-tab.active{background:#26334d;color:#b4c4ff}
html[data-mode="dark"] .perm-search-box{background:#141d31;border-color:#2c3852}
html[data-mode="dark"] .perm-search-box input{color:#e6ecf7}
html[data-mode="dark"] .perm-table th{background:#1e2a40}
html[data-mode="dark"] .perm-empty-state{color:#bac5d6}
html[data-mode="dark"] .perm-empty-state small{color:#8794a9}
html[data-mode="dark"] .perm-review-summary{background:#141d31;border-color:#2c3852}
html[data-mode="dark"] .perm-review-detail{border-color:#2c3852}
html[data-mode="dark"] .perm-review-detail strong{color:#dbe4f2}
@media(max-width:760px){
 .perm-head{align-items:flex-start;gap:12px}
 .perm-top-actions{width:100%;justify-content:space-between}
 .perm-top-actions .primary{flex:1}
 .perm-sections{gap:2px;margin-bottom:15px}
 .perm-section-tab{padding:0 10px;font-size:12px}
 .perm-section-heading{align-items:flex-start;flex-direction:column}
 .perm-section-actions{width:100%}
 .perm-section-actions button{flex:1}
 .perm-table{min-width:610px}
 .perm-people-toolbar{justify-content:stretch}
 .perm-search-box{width:100%}
 .perm-review-detail{grid-template-columns:76px minmax(0,1fr)}
}
/* 浅色下的 tag 变体（此前只定义了深色的，浅色下 ok/warn/gray 会全变成同一个主色蓝） */
.tag.ok{background:#e8f6ec;color:#2c7a3f}
.tag.warn{background:#fdf4e3;color:#a9761a}
.tag.gray{background:#f2f4f8;color:#7a879b}
.tag.red{background:#fdeeee;color:#c03535}
.tag.blue{background:#eef3ff;color:#1f4bb8}
/* ===== 团队看板：项目卡片里的任务行 ===== */
.wkt-who{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:9px 0 6px}
.wkt-who button{font-size:12.5px;padding:5px 12px;border-radius:8px}
.wkt-list{border-top:1px solid #eef2f8;margin-top:2px}
.wkt-row{display:flex;align-items:baseline;gap:10px;padding:9px 0;border-bottom:1px solid #f4f7fb;font-size:13.5px}
.wkt-row:last-child{border-bottom:none}
.wkt-whoami{min-width:62px;font-weight:600;color:#2b3a55;white-space:nowrap}
.wkt-date{color:#8391a6;font-size:12.5px;white-space:nowrap;min-width:54px}
.wkt-body{flex:1;min-width:0;color:#23324d;text-wrap:pretty}
html[data-mode="dark"] .wkt-list{border-color:#28324a}
html[data-mode="dark"] .wkt-row{border-color:#1f2a41}
html[data-mode="dark"] .wkt-whoami{color:#e6ecf7}
html[data-mode="dark"] .wkt-date{color:#8b97a8}
html[data-mode="dark"] .wkt-body{color:#c3cddd}
/* 统计卡 */
.wk-stat{display:grid;grid-template-columns:repeat(auto-fit,minmax(146px,1fr));gap:12px;margin-bottom:12px}
/* 双栏对照：左写（我的周报+往期）右看（团队看板），窄屏叠回单栏 */
.wk-split{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:18px;align-items:start}
.wk-col{min-width:0}
.wk-col .home-panel{margin-bottom:18px}
.wk-col .home-panel:last-child{margin-bottom:0}
@media(max-width:1180px){.wk-split{grid-template-columns:1fr}}
.wk-stat-card{background:#fff;border:1px solid #e6ecf6;border-radius:12px;padding:13px 16px;box-shadow:0 1px 3px #20345c08}
.wk-stat-num{font-size:21px;font-weight:700;color:#16233c;letter-spacing:-.3px}
.wk-stat-label{font-size:12.5px;color:#8391a6;margin-top:2px}
.wk-prog{height:8px;background:#e6ebf3;border-radius:6px;overflow:hidden;margin-bottom:18px}
.wk-prog i{display:block;height:100%;background:var(--pg,linear-gradient(90deg,#4a6fe8,#3059da));border-radius:6px;transition:width .35s}
/* 看板卡片 */
.wk-board{display:flex;flex-direction:column;gap:10px}
.wk-card{background:#fff;border:1px solid #e6ecf6;border-radius:13px;padding:14px 16px;transition:.15s}
.wk-card:hover{border-color:#c9d9f7;box-shadow:0 4px 16px #20345c12}
.wk-card.done{border-left:3px solid #10a86b}
.wk-card-head{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.wk-card-head strong{font-size:15px;color:#1c2b45}
.wk-dot{width:9px;height:9px;border-radius:50%;background:#cbd5e1;flex:none}
.wk-dot.on{background:#10a86b;box-shadow:0 0 0 3px #10a86b22}
.wk-card-body{margin-top:10px;display:flex;flex-direction:column;gap:8px;padding-top:9px;border-top:1px dashed #eef1f6}
.wk-sec{display:flex;gap:10px;font-size:13.5px;line-height:1.7}
.wk-sec b{flex:none;color:#7a879b;font-weight:600;font-size:12.5px;min-width:64px;padding-top:1px}
.wk-sec span{color:#2b3a55;white-space:pre-wrap;word-break:break-word}
html[data-mode="dark"] .wk-card,html[data-mode="dark"] .wk-stat-card{background:#182236;border-color:#28324a}
html[data-mode="dark"] .wk-stat-num{color:#e6ecf7}
html[data-mode="dark"] .wk-stat-label,html[data-mode="dark"] .wk-card .muted,html[data-mode="dark"] .wkt-date{color:#8b97a8}
html[data-mode="dark"] .wk-card-head strong,html[data-mode="dark"] .wk-sec span{color:#e6ecf7}
html[data-mode="dark"] .weekly-tabs>button{background:#1c2740;border-color:#2c3852;color:#dbe6f7}

/* 侧栏拖拽排序 */
.workspace-nav button.side{cursor:grab}
.workspace-nav button.side:active{cursor:grabbing}
.workspace-nav button.side.dragging{opacity:.5;background:#ffffff1a;border-left-color:transparent}
.workspace-nav button.side[draggable="true"]:hover::after{content:'⋮⋮';position:absolute;right:6px;font-size:10px;color:#5f6f88;letter-spacing:-1px}
.workspace-nav button.side{position:relative}

/* ===== 中心首页（一个板块一整条通栏入口，为同级功能预留） ===== */
.center-home{padding:2px}
.center-head{margin-bottom:18px}
.center-head h2{margin:0 0 5px;font-size:21px;letter-spacing:-.3px;color:#16233c}
.center-head p{margin:0;color:#6b7a91;font-size:13.5px}
.center-list{display:flex;flex-direction:column;gap:14px}
/* 可收起板块：卡片当标题条，内容在下方展开（两者紧贴成一体） */
.center-group{display:flex;flex-direction:column}
.center-card{position:relative;background:#fff;border:1px solid #e6ecf6;border-radius:18px;
 padding:20px 22px;cursor:pointer;transition:transform .16s,box-shadow .16s,border-color .16s;box-shadow:0 2px 8px #20345c0a}
/* 左侧主题色竖条：卡片不能再用 overflow:hidden（会裁掉悬停浮层），所以给竖条自己收圆角 */
.center-card::before{content:'';position:absolute;left:-1px;top:0;bottom:0;width:3px;border-radius:18px 0 0 18px;background:var(--pg);opacity:0;transition:opacity .16s}
.center-card:hover{border-color:var(--p);box-shadow:0 12px 34px #20345c17;transform:translateY(-2px)}
.center-card:hover::before{opacity:1}
.center-card.soon{cursor:default;border-style:dashed;background:#fbfcfe}
.center-card.soon:hover{transform:none;box-shadow:none;border-color:#e6ecf6}
.center-card.soon:hover::before{opacity:0}
/* 展开态：卡片下沿拉平与面板咬合，取消悬浮位移免抖动 */
.center-card.open{border-bottom-left-radius:0;border-bottom-right-radius:0}
.center-card.open,.center-card.open:hover{transform:none;box-shadow:0 2px 8px #20345c0a}
.center-card.open::before{opacity:1}
.center-panel{border:1px solid #e6ecf6;border-top:none;border-radius:0 0 18px 18px;background:#fff;padding:6px 22px 20px}
/* 面板内的原功能界面自带同名大标题，与卡片标题重复 → 只隐藏那一行，右侧「刷新/新增」按钮保留 */
.center-panel .pm-head h2{display:none}
.center-panel .pm-head{margin-top:8px}
.cc-toggle{display:inline-flex;align-items:center;gap:6px}
.cc-caret{display:inline-block;font-size:11px;transition:transform .18s}
.cc-toggle.on .cc-caret{transform:rotate(180deg)}
.cc-top{display:flex;align-items:flex-start;gap:15px}
.cc-ico{width:52px;height:52px;border-radius:15px;background:linear-gradient(135deg,#eef4ff,#e2ecff);display:flex;
 align-items:center;justify-content:center;font-size:24px;flex:none;margin-top:2px}
.cc-tt{flex:1;min-width:0}
.cc-top strong{display:block;font-size:18.5px;color:#1c2b45;letter-spacing:-.2px;margin-bottom:5px}
.cc-desc{margin:0;font-size:13.5px;color:#7a879b;line-height:1.7;max-width:780px;text-wrap:pretty}
.cc-act{flex:none;padding-top:4px}
.cc-act button{font-size:13.5px;padding:8px 18px;border-radius:10px}
/* 子条目：点一下直达对应功能页签 */
.cc-subs{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px;padding-top:15px;border-top:1px solid #eef2f8}
.cc-sub{position:relative;display:flex;align-items:baseline;gap:6px;padding:8px 14px;border:1px solid #e6ecf6;border-radius:11px;
 background:#fafcff;cursor:pointer;transition:border-color .14s,background .14s;white-space:nowrap}
.cc-sub:hover{border-color:var(--p);background:var(--ps)}
.cc-sub-l{font-size:13px;color:#5c6b83}
.cc-sub-n{font-size:15px;font-weight:700;color:#1c2b45;font-variant-numeric:tabular-nums}
.cc-sub-u{font-size:11.5px;color:#8b97a8}
.cc-sub.warn .cc-sub-n{color:#c03535}
/* 悬停浮层：把条目背后的明细摊开（朝下弹，避免盖住卡片标题；卡片已去掉 overflow:hidden 不会被裁） */
.cc-tip{position:absolute;left:50%;top:calc(100% + 10px);transform:translateX(-50%) translateY(-4px);
 opacity:0;visibility:hidden;pointer-events:none;z-index:40;transition:opacity .15s,transform .15s,visibility .15s;
 background:#1c2b45;color:#fff;border-radius:11px;padding:9px 13px;box-shadow:0 10px 28px #0d172a4d;
 font-size:12px;line-height:1.7;font-weight:400;text-align:left;white-space:normal;width:max-content;max-width:280px}
.cc-tip::after{content:'';position:absolute;bottom:100%;left:50%;margin-left:-5px;border:5px solid transparent;border-bottom-color:#1c2b45}
.cc-tip-line{color:#dfe7f5}
.cc-tip-line+.cc-tip-line{color:#aab9d1;text-wrap:pretty}
/* 最左侧条目：改为左对齐，避免浮层向左溢出卡片 */
.cc-sub:first-child .cc-tip{left:0;transform:translateX(0) translateY(-4px)}
.cc-sub:first-child .cc-tip::after{left:22px}
.cc-sub:hover .cc-tip,.cc-sub:focus-visible .cc-tip{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}
.cc-sub:first-child:hover .cc-tip,.cc-sub:first-child:focus-visible .cc-tip{transform:translateX(0) translateY(0)}
.center-back{margin-bottom:14px}
.center-back button{font-size:13.5px;padding:7px 15px;border-radius:9px}
html[data-mode="dark"] .center-card{background:#182236;border-color:#28324a}
html[data-mode="dark"] .center-card.soon{background:#141d31}
html[data-mode="dark"] .center-head h2,html[data-mode="dark"] .cc-top strong,html[data-mode="dark"] .cc-sub-n{color:#e6ecf7}
html[data-mode="dark"] .cc-ico{background:linear-gradient(135deg,#232a52,#2e2560)}
html[data-mode="dark"] .cc-desc,html[data-mode="dark"] .cc-sub-l,html[data-mode="dark"] .cc-sub-u{color:#8b97a8}
html[data-mode="dark"] .cc-subs{border-color:#28324a}
html[data-mode="dark"] .cc-sub{background:#141d31;border-color:#28324a}
html[data-mode="dark"] .cc-sub:hover{background:#1b2540}
html[data-mode="dark"] .cc-sub.warn .cc-sub-n{color:#f08a8a}
html[data-mode="dark"] .center-panel{background:#182236;border-color:#28324a}
html[data-mode="dark"] .cc-tip{background:#232f4a;box-shadow:0 10px 28px #00000066}
html[data-mode="dark"] .cc-tip::after{border-bottom-color:#232f4a}
html[data-mode="dark"] .cc-tip-line{color:#e6ecf7}
html[data-mode="dark"] .cc-tip-line+.cc-tip-line{color:#9fb0cb}

/* Independent permission workflow windows. */
.perm-panel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}
.perm-panel{min-width:0;padding:18px;border:1px solid #e1e7f1;border-radius:14px;background:#fff;display:flex;flex-direction:column}
.perm-panel .perm-section-heading{align-items:flex-start}
.perm-panel h3 .perm-tab-count{margin-left:8px;vertical-align:middle}
.perm-panel .perm-table-wrap{overflow:auto;max-height:310px;min-height:150px;overscroll-behavior:contain}
.perm-panel .perm-table{min-width:0;width:100%;table-layout:auto}
.perm-panel .perm-item-main{min-width:100px;max-width:220px}
.perm-panel .perm-table th,.perm-panel .perm-table td{padding:9px 8px}
.perm-panel .perm-table th{position:sticky;top:0;z-index:1}
.perm-panel .perm-row-ops{white-space:nowrap}
html[data-mode="dark"] .perm-panel{background:#151e30;border-color:#28324a}
@media(max-width:1000px){.perm-panel-grid{grid-template-columns:1fr}.perm-panel{padding:15px}.perm-panel .perm-table-wrap{max-height:340px}}

.pm-components{margin-top:24px}.pm-component-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:14px}.pm-component-card{min-width:0;padding:20px;border:1px solid #dfe6f2;border-radius:12px;background:#fff}.pm-component-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.pm-component-head h3{margin:0;font-size:16px}.pm-component-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.pm-check-item{display:flex;gap:10px;margin:9px 0;overflow-wrap:anywhere}.pm-checked{color:#8490a3;text-decoration:line-through}.pm-component-link{display:block;margin:9px 0;color:#3158dc;overflow-wrap:anywhere}.pm-component-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:16px;border-top:1px solid #edf1f6;padding-top:12px}.pm-component-actions button{font-size:12px;padding:5px 9px}.pm-component-dialog{width:min(600px,90vw)}html[data-mode="dark"] .pm-component-card{background:#151e30;border-color:#28324a}@media(max-width:760px){.pm-component-grid{grid-template-columns:1fr}}

.pm-demo-picker{display:flex;flex-wrap:wrap;gap:8px;padding:14px;border:1px solid #dce4f2;border-radius:10px;background:#f7f9fd;margin:12px 0}.pm-demo-picker strong{width:100%;font-size:13px}.pm-demo-picker button{padding:8px 12px}.pm-contact-table{width:100%;border-collapse:collapse;font-size:13px}.pm-contact-table td,.pm-contact-table th{border-bottom:1px solid #e5eaf2;padding:10px 7px;text-align:left;overflow-wrap:anywhere}.pm-component-content{overflow:auto}.pm-qa-item{padding:12px 0;border-bottom:1px solid #e5eaf2}.pm-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pm-photo-grid figure{margin:0}.pm-photo-grid img{width:100%;height:160px;object-fit:cover;border-radius:8px}.pm-photo-grid figcaption{font-size:12px;color:#7a8799}.pm-project-history{margin-top:20px;padding:15px;border:1px solid #e5eaf2;border-radius:10px}.pm-project-history summary{cursor:pointer}.pm-unified-board .pm-components{margin-top:0}

.pm-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr))}.pm-card{gap:14px;padding:22px}.pm-card.archived{opacity:1;background:#f8fafc}.pm-card-head{align-items:center}.pm-card-head .tag,.pm-card-head .code-badge{flex:none;white-space:nowrap}.pm-project-title{display:block;font-size:18px;line-height:1.55;word-break:normal;overflow-wrap:break-word}.pm-card-fields{margin:0;display:grid;gap:9px}.pm-card-fields>div{display:grid;grid-template-columns:70px minmax(0,1fr);gap:10px}.pm-card-fields dt{font-size:12px;color:#8a96a8;white-space:nowrap}.pm-card-fields dd{margin:0;font-size:13px;line-height:1.5;word-break:normal;overflow-wrap:break-word}.pm-card-archive{border-top:1px solid #e5eaf2;padding-top:12px;margin-top:auto}.pm-card-archive strong{font-size:12px;color:#62738f}.pm-card-archive p{font-size:12px;line-height:1.6;color:#7c89a0;margin:5px 0 0}.pm-card-actions{flex-wrap:wrap;justify-content:flex-start}.pm-card-actions button{white-space:nowrap}.pm-cycle-history details{border-bottom:1px solid #e5eaf2;padding:10px 0}.pm-cycle-history summary{cursor:pointer;font-weight:600}html[data-mode="dark"] .pm-card.archived{background:#151e30}

/* 本月生日：独立窗口，桌面/手机均完整显示姓名和日期。 */
.birthday-panel{border-top:3px solid #e6b469}.birthday-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,1fr));gap:12px;padding:16px 0 8px}.birthday-person{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:14px;border:1px solid #e5eaf1;border-radius:10px;background:#fafbfd}.birthday-name{flex:1;min-width:80px;overflow-wrap:anywhere;color:#253751}.birthday-date{white-space:nowrap;color:#526581;font-size:13px}.birthday-status{flex-basis:100%;font-size:12px;color:#7b879c}.birthday-today{background:#fff4e3;border-color:#e9bd77}.birthday-today .birthday-status{color:#a9610e;font-weight:650}.birthday-soon{background:#f4f7ff;border-color:#c5d3f4}.birthday-soon .birthday-status{color:#4267ba}.birthday-note{font-size:12px;color:#8a96a9;margin:8px 0 14px}.birthday-empty{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0;color:#7b879c;font-size:13px}html[data-mode="dark"] .birthday-person{background:#182235;border-color:#344258}html[data-mode="dark"] .birthday-name{color:#e0e9f9}html[data-mode="dark"] .birthday-date{color:#aabbd5}html[data-mode="dark"] .birthday-today{background:#392d20;border-color:#86642e}html[data-mode="dark"] .birthday-soon{background:#202e49;border-color:#425c8f}@media(max-width:500px){.birthday-list{grid-template-columns:1fr}}

.birthday-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.birthday-controls select{width:82px;padding:7px 10px;border:1px solid #dce4f2;border-radius:8px;background:var(--panel,#fff);color:inherit;font:inherit}.birthday-controls button{min-width:34px;padding:5px 11px;font-size:22px;line-height:1}.birthday-controls .birthday-reset{font-size:12px;padding:9px 10px}.birthday-summary{font-size:13px;color:#7b879c;margin:12px 0 0}@media(max-width:500px){.birthday-panel>.toolbar{flex-wrap:wrap;gap:10px}.birthday-controls{gap:6px}}

html[data-mode="dark"] .birthday-controls select{background:#182235;border-color:#344258;color:#e0e9f9}

/* 生日提醒作为概况下方的次要信息，保持紧凑。 */
.home-panel.birthday-panel{width:100%;max-width:none;box-sizing:border-box;padding:6px 16px;margin-bottom:18px;border-top:1px solid #dce4f2;box-shadow:none}
.birthday-panel>.toolbar{padding:8px 0;gap:10px}
.birthday-panel>.toolbar h2{font-size:14px;margin:0}
.birthday-panel .birthday-controls{gap:5px}
.birthday-panel .birthday-controls select{width:68px;padding:4px 6px;font-size:12px;border-radius:6px}
.birthday-panel .birthday-controls button{min-width:28px;padding:3px 8px;font-size:18px}
.birthday-panel .birthday-controls .birthday-reset{font-size:11px;padding:5px 7px}
.birthday-panel .birthday-summary{font-size:11px;margin:7px 0 0}
.birthday-panel .birthday-list{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;padding:8px 0 2px;max-height:none;overflow:visible}
.birthday-panel .birthday-person{padding:7px 9px;gap:3px 8px;border-radius:7px}
.birthday-panel .birthday-name{flex:0 1 auto;font-size:12px;min-width:0;font-weight:600}
.birthday-panel .birthday-date{font-size:11px}
.birthday-panel .birthday-status{font-size:11px}
.birthday-panel .birthday-note{font-size:10px;margin:6px 0}
.birthday-panel .birthday-empty,.birthday-panel>p.muted{font-size:12px;padding:8px 0;margin:0}
@media(max-width:1500px){.birthday-panel .birthday-list{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:900px){.birthday-panel .birthday-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.birthday-panel .birthday-list{grid-template-columns:1fr}.birthday-panel>.toolbar{gap:6px}}

.birthday-group{padding-top:10px}.birthday-group+.birthday-group{border-top:1px solid var(--line,#e5eaf1);margin-top:10px}.birthday-group-title{font-size:12px;font-weight:650;color:var(--text,#40536f);margin:0}.birthday-code{font-size:10px;color:var(--muted,#7b879c);white-space:nowrap}.birthday-person .birthday-status{flex-basis:100%}

.partner-roles{display:flex;gap:24px;margin-top:10px}.partner-roles label{display:flex;align-items:center;gap:8px}.partner-roles input[type=checkbox]{width:18px;height:18px;margin:0}.partner-badges{display:flex;gap:8px;flex-wrap:wrap}

.customers .partner-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}.customers .partner-card{display:flex;align-items:stretch;text-align:left;padding:12px 14px;gap:7px;min-width:0;min-height:135px;color:inherit}.partner-card-heading{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted,#718096)}.partner-type{color:#4764a4;white-space:nowrap}.partner-name{font-size:14px!important;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:normal;overflow-wrap:anywhere;min-height:40px}.partner-contact{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.partner-footer{font-size:11px;color:var(--muted,#718096);margin-top:auto}.partner-results{font-size:12px;color:var(--muted,#718096);margin:12px 0}.partner-pager{display:flex;justify-content:center;gap:12px;margin-top:20px}.partner-delete{color:#bc3434;margin-right:auto}@media(max-width:550px){.customers .partner-grid{grid-template-columns:1fr}}
.customers .partner-card,.customers .partner-name{white-space:normal}.customers .pm-toolbar{justify-content:flex-start}.customers .pm-toolbar input[type=search]{width:300px;max-width:100%}.customers .partner-card:hover{background:#f7f9ff}.customers .partner-code{padding:2px 7px}

.birthday-panel .birthday-passed{background:#f1f3f5;border-color:#e2e5e9}.birthday-panel .birthday-passed .birthday-name,.birthday-panel .birthday-passed .birthday-date,.birthday-panel .birthday-passed .birthday-code{color:#737d89}html[data-mode="dark"] .birthday-panel .birthday-passed{background:#242a33;border-color:#414956}html[data-mode="dark"] .birthday-panel .birthday-passed .birthday-name,html[data-mode="dark"] .birthday-panel .birthday-passed .birthday-date{color:#a2acb9}
/* Navigation A: one selection surface, inline groups, searchable commands. */
.nav-interactive{position:relative;isolation:isolate}.nav-selection{position:absolute;top:0;left:0;z-index:-1;pointer-events:none;background:linear-gradient(110deg,#ffffff22,#ffffff0c);border:1px solid #ffffff16;border-radius:11px;transition:transform .32s cubic-bezier(.22,1.18,.42,1),width .26s,height .26s}.nav-group{min-width:0}.nav-main-row{display:flex;align-items:center}.nav-interactive .nav-main-row>.side{flex:1;min-width:0;margin:0;background:transparent!important;border-left-color:transparent!important;cursor:pointer}.nav-interactive [aria-current=page]{color:#fff;font-weight:650}.nav-interactive button:focus-visible,.mobile-dock button:focus-visible{outline:2px solid #8faaff;outline-offset:-2px}.nav-expand{flex:none;width:30px;height:36px;padding:0;border:0;background:transparent;color:#9bacc7;font-size:23px;transition:transform .2s}.nav-expand[aria-expanded=true]{transform:rotate(90deg)}.nav-children{margin:4px 14px 9px 25px;padding-left:12px;border-left:1px solid #ffffff28}.nav-child{display:flex;align-items:center;gap:8px;width:100%;padding:9px 10px;text-align:left;background:transparent;border:0;color:#aebbd0;font-size:13px;animation:navChildEnter .2s both;animation-delay:var(--nav-delay,0ms)}.nav-child:hover{background:#ffffff0e;color:#fff}.nav-count{margin-left:auto;font-size:11px;font-weight:650;background:#f3b366;color:#332517;border-radius:9px;padding:1px 6px;line-height:18px;white-space:nowrap}.command-trigger{font-size:13px;padding:7px 12px;white-space:nowrap}.command-dialog{width:min(620px,calc(100vw - 28px));padding:0;border:1px solid #dce3ef;max-height:min(70dvh,620px);color:#24354e;background:#fff}.command-dialog::backdrop{background:#14233e70;backdrop-filter:blur(3px)}.command-head{display:flex;align-items:center;gap:8px;padding:16px;border-bottom:1px solid #e6eaf2}.command-input{flex:1;min-width:0;padding:10px;border:0;background:transparent;font:inherit;outline-offset:0}.command-close{font-size:12px;padding:7px 10px}.command-results{max-height:48dvh;overflow:auto;padding:8px}.command-option{display:block;width:100%;border:0;background:transparent;text-align:left;padding:13px 14px;font-size:14px}.command-option[aria-selected=true]{background:#edf2ff;color:#214bbd}.command-option mark{background:#fff0b4;color:inherit;border-radius:2px}.command-empty{padding:24px;text-align:center}.command-help{padding:10px 18px;font-size:12px;background:#f7f9fc}.mobile-dock{display:none}html[data-mode=dark] .command-dialog{background:#172238;color:#e7efff;border-color:#35445e}html[data-mode=dark] .command-option[aria-selected=true]{background:#29406a;color:#edf3ff}html[data-mode=dark] .command-help{background:#101a2c}html[data-mode=dark] .command-option mark{background:#735c23}
@keyframes navChildEnter{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media(max-width:760px){aside .nav-interactive,aside .ws-wrap{display:none!important}aside{padding:12px 18px}main{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}header{flex-wrap:wrap;gap:7px;height:auto;min-height:58px;padding:9px 0}.command-trigger{margin-left:auto}.mobile-dock{position:fixed;z-index:15;bottom:0;left:0;right:0;display:flex;justify-content:space-around;gap:2px;padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px));background:#ffffffed;border-top:1px solid #dce3ef;backdrop-filter:blur(10px)}.dock-item{position:relative;flex:1;min-width:0;min-height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px 2px;border:0;background:transparent;font-size:11px;color:#63718a;white-space:nowrap}.dock-icon{width:21px;height:21px}.dock-icon svg{width:100%;height:100%}.dock-item[aria-current=page]{color:#264cde;background:#edf2ff}.dock-item .nav-count{position:absolute;top:0;right:2px;line-height:15px;padding:0 4px}.command-dialog{max-height:75dvh}.command-results{max-height:43dvh}html[data-mode=dark] .mobile-dock{background:#101a2cf2;border-color:#35445e}html[data-mode=dark] .dock-item{color:#aabbda}html[data-mode=dark] .dock-item[aria-current=page]{background:#25385c;color:#baccff}}
@media(prefers-reduced-motion:reduce){.nav-selection,.nav-expand{transition:none!important}.nav-child,.workspace-view.view-enter{animation:none!important}}
