/* ========== 基础 ========== */
:root{
  --teal:#14b8b8;
  --teal-dark:#0fa3a3;
  --navy:#12242c;
  --navy-2:#17313b;
  --navy-3:#1b2a4a;
  --line:#e3e8e8;
  --text:#000;
  --muted:#8b979b;
  --bg:#fff;
}
*{box-sizing:border-box;}
[hidden]{display:none !important;}
html,body{height:100%;}
body{
  margin:0;
  font:13px/1.5 "Microsoft YaHei","PingFang SC","Segoe UI",Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
}
button{font:inherit;cursor:pointer;}
input,select,textarea{font:inherit;color:var(--text);}
a{color:var(--teal);text-decoration:none;}
.logo-mark{display:inline-block;}
.spacer{flex:1;}
.muted{color:var(--muted);}

/* 品牌 HD 标 */
.hd-logo{
  width:62px;height:62px;margin:0 auto;
  display:flex;align-items:center;justify-content:center;
  font:800 40px/1 "Arial Black","Microsoft YaHei",sans-serif;
  color:#3d8fc4;letter-spacing:-1px;
}
.hd-logo.small{width:auto;height:auto;margin:0;font-size:21px;color:#3d8fc4;}

/* 企业 LOGO 容器（登录页 / 侧边栏 / 去翻译窗口共用） */
.brand-logo{display:flex;align-items:center;justify-content:center;line-height:0;}
.brand-logo img{display:block;object-fit:contain;max-width:100%;max-height:100%;}
.brand-logo .hd-logo{margin:0;}
.brand-logo.small img{height:36px;max-width:72px;}
.brand-logo.tiny img{height:24px;max-width:48px;}

/* ========== 登录 ========== */
.login-page{
  min-height:100vh;
  display:flex;align-items:center;justify-content:center;
  background:#f3f5f5;
  padding:24px;
}
.login-card{
  width:900px;max-width:100%;
  min-height:520px;
  display:grid;grid-template-columns:1fr 345px;
  background:#fff;
  box-shadow:0 2px 14px rgba(0,0,0,.06);
}
.login-left{padding:56px 78px 40px;display:flex;flex-direction:column;}
.login-left h1{
  margin:0 0 38px;
  text-align:center;
  font-size:30px;font-weight:700;letter-spacing:3px;
  color:var(--teal);
}
.login-tip{
  display:flex;align-items:center;gap:8px;
  padding:11px 12px;
  background:#eefaf9;border:1px solid #cdeeee;border-radius:3px;
  color:#4d8b8b;font-size:12.5px;
  margin-bottom:34px;
}
.login-tip .i{
  width:15px;height:15px;border-radius:50%;
  background:var(--teal);color:#fff;font-size:11px;line-height:15px;text-align:center;font-style:italic;flex:none;
}
.login-tip .tip-x{margin-left:auto;border:0;background:none;color:#9db9b9;font-size:14px;padding:0 2px;}
.login-field{
  display:flex;align-items:center;
  height:44px;border:1px solid #dfe4e4;border-radius:3px;
  padding:0 10px;margin-bottom:18px;background:#fff;
}
.login-field:focus-within{border-color:var(--teal);}
.login-field .ico{color:#9aa6aa;margin-right:9px;display:flex;align-items:center;}
.login-field .ico svg{width:15px;height:15px;}
.login-field input{border:0;outline:none;flex:1;font-size:14px;background:none;}
.login-field .clear{border:0;background:none;color:#c6cdcd;font-size:13px;padding:0 2px;display:none;}
.login-field.has-value .clear{display:block;}
.login-error{color:#e05252;font-size:12.5px;margin:-6px 0 12px;}
.remember{display:flex;align-items:center;gap:6px;color:#5c6b6e;margin:6px 0 26px;font-size:13px;}
.remember input{accent-color:var(--teal);}
.login-submit{
  width:100%;
  height:46px;border:0;border-radius:3px;
  background:var(--teal);color:#fff;font-size:16px;letter-spacing:6px;
  transition:.2s;
}
.login-submit:hover{background:var(--teal-dark);}
.login-submit[disabled]{opacity:.6;cursor:default;}
.login-right{
  background:linear-gradient(160deg,#17323c 0%,#1a3145 55%,#1b2a4a 100%);
  color:#fff;
  display:flex;flex-direction:column;align-items:center;
  padding:76px 34px 28px;
  position:relative;
}
.login-right .brand-logo{width:96px;height:96px;}
.login-right .brand-name{font-size:19px;letter-spacing:3px;margin-top:22px;}
.no-account{text-align:center;margin-top:78px;}
.no-account .q{font-size:16px;margin:0 0 12px;}
.no-account .d{font-size:12px;color:#b9c9d2;line-height:1.9;margin:0 0 22px;}
.no-account .outline{
  padding:8px 30px;border:1px solid var(--teal);border-radius:22px;
  background:transparent;color:#eafcfc;font-size:13px;
}
.no-account .outline:hover{background:rgba(20,184,184,.15);}
.api-hint{position:absolute;bottom:14px;font-size:11px;color:#6d8390;}

/* ========== 主框架 ========== */
.app{display:flex;height:100vh;min-height:100vh;}
.sidebar{
  width:220px;flex:none;
  background:var(--navy);
  color:#cfdbdd;
  display:flex;flex-direction:column;
  overflow-y:auto;
}
.side-logo{
  height:68px;display:flex;align-items:center;gap:10px;
  padding:0 18px;
  background:linear-gradient(90deg,#123542,#0f2630);
  color:#fff;
}
.side-logo strong{font-size:17px;letter-spacing:1.5px;}
.nav{display:flex;flex-direction:column;padding:2px 0;}
.nav-item{
  display:flex;align-items:center;gap:9px;
  padding:0 16px;height:45px;
  background:none;border:0;color:#c6d2d5;text-align:left;
  font-size:14.5px;width:100%;
}
.nav-item i{width:20px;font-style:normal;font-size:15px;color:#93a5aa;text-align:center;}
.nav-item em{margin-left:auto;font-style:normal;color:#6c8087;font-size:11px;transition:.2s;}
.nav-item:hover{background:rgba(255,255,255,.05);color:#fff;}
.nav-item.active{background:var(--teal);color:#fff;}
.nav-item.active i{color:#e8ffff;}
.nav-sub{display:flex;flex-direction:column;background:#0e1d24;}
.nav-sub.collapsed{display:none;}
.nav-item.sub{padding-left:30px;height:38px;font-size:13.5px;}
.side-foot{margin-top:auto;padding:12px;}
.side-logout{
  width:100%;height:32px;border:1px solid #2f4750;border-radius:3px;
  background:none;color:#9fb1b6;font-size:12.5px;
}
.side-logout:hover{border-color:var(--teal);color:#fff;}

.main{flex:1;display:flex;flex-direction:column;min-width:0;background:var(--bg);}
.topbar{
  height:48px;flex:none;
  background:#fff;border-bottom:1px solid var(--line);
  display:flex;align-items:center;padding:0 20px;
}
.crumb{color:#6b7a7e;font-size:13px;}
.crumb.small{font-size:12px;color:#9aa7aa;}
.top-right{display:flex;align-items:center;gap:10px;margin-left:auto;}
.ico-btn{
  width:26px;height:26px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid #e4e8e8;color:#7d8b8f;font-size:12px;background:#fff;cursor:pointer;
}
.avatar{
  width:22px;height:22px;border-radius:50%;
  background:#e8f7f7;color:var(--teal-dark);font-size:11px;
  display:inline-flex;align-items:center;justify-content:center;
}
.user-name{color:#5b686c;font-size:12.5px;}

.page{flex:1;min-height:0;overflow:auto;padding:0 20px 18px;}
.page-title-row{display:flex;align-items:flex-end;justify-content:space-between;padding:14px 2px 12px;}
.page-title-row h2{margin:4px 0 0;font-size:20px;font-weight:600;}

/* 首页 */
.kpi-row{
  display:grid;grid-template-columns:repeat(8,minmax(0,1fr));
  gap:0;
  background:#fff;border-radius:3px;margin:14px 0 12px;
  padding:16px 0;
  box-shadow:0 1px 2px rgba(0,0,0,.03);
}
.kpi{padding:0 20px;border-right:0;min-width:0;}
.kpi:last-child{border-right:0;}
.kpi .k{color:#8c9a9d;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.kpi .v{font-size:24px;margin-top:9px;font-weight:600;letter-spacing:.3px;}
.kpi .v small{font-size:12px;color:#8c9a9d;font-weight:400;margin-left:4px;}
.kpi .v.down{color:#e05252;}
.kpi .v.up{color:#1eb980;}
.dash-row{display:flex;gap:12px;margin-bottom:12px;align-items:stretch;}
.panel{background:#fff;border-radius:3px;padding:14px 18px 18px;box-shadow:0 1px 2px rgba(0,0,0,.03);min-width:0;}
.panel.grow{flex:1;}
.panel.w360{width:32%;max-width:520px;min-width:340px;}
.panel-head{display:flex;align-items:center;gap:10px;margin-bottom:10px;flex-wrap:wrap;}
.panel-head h3{margin:0;font-size:16px;font-weight:600;white-space:nowrap;}
.panel-head .muted{margin-left:auto;font-size:11.5px;}
.panel-tools{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap;}
.panel-tools .quick{display:flex;align-items:center;gap:1px;}
.panel-tools .quick button{
  border:0;background:transparent;color:#8c9a9d;font-size:11.5px;padding:2px 6px;cursor:pointer;border-radius:2px;
}
.panel-tools .quick button:hover{color:#14b8b8;}
.panel-tools .quick button.active{color:#0f9f9f;font-weight:600;background:#eefafa;}
.panel-tools .lbl{color:#8c9a9d;font-size:11.5px;white-space:nowrap;}
.panel-tools input[type=date],.panel-tools input[type=month]{
  width:108px;height:24px;font-size:11.5px;color:#4c5a5e;
  border:1px solid #e2eaea;border-radius:2px;padding:0 4px;background:#fff;
}
.month-wrap{position:relative;display:inline-block;width:108px;height:24px;flex:none;vertical-align:middle;}
.month-wrap input[type=month]{position:absolute;left:0;top:0;width:100%;height:100%;color:transparent;caret-color:transparent;opacity:0;-webkit-text-fill-color:transparent;}
.month-wrap input[type=month]::-webkit-datetime-edit{color:transparent;opacity:0;}
.month-wrap input[type=month]::-webkit-calendar-picker-indicator{opacity:0;}
.month-wrap .mv{
  position:absolute;left:6px;top:5px;color:#4c5a5e;font-size:11.5px;
  pointer-events:none;line-height:14px;
}
.date-wrap{position:relative;display:inline-block;width:118px;height:24px;flex:none;vertical-align:middle;}
.date-wrap input[type=date]{position:absolute;left:0;top:0;width:100%;height:100%;color:transparent;caret-color:transparent;opacity:0;-webkit-text-fill-color:transparent;}
.date-wrap input[type=date]::-webkit-datetime-edit{color:transparent;opacity:0;}
.date-wrap input[type=date]::-webkit-calendar-picker-indicator{opacity:0;}
.date-wrap .dv{
  position:absolute;left:6px;top:5px;color:#4c5a5e;font-size:11.5px;
  pointer-events:none;line-height:14px;white-space:nowrap;
}
.panel-tools select{height:24px;font-size:11.5px;color:#4c5a5e;border:1px solid #e2eaea;border-radius:2px;background:#fff;padding:0 4px;}
.panel-tools .arr{color:#a8b4b6;font-size:11px;}
.trend-chart{height:250px;position:relative;}
.trend-chart svg{width:100%;height:100%;display:block;}
.trend-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#a8b4b6;}
.rank-list{display:flex;flex-direction:column;gap:2px;}
.rank-item{display:flex;align-items:center;gap:10px;padding:9px 2px;border-bottom:1px solid #f2f5f5;}
.rank-item .no{
  width:19px;height:19px;border-radius:50%;flex:none;
  background:#eef5f5;color:#7b8b8e;font-size:11px;
  display:inline-flex;align-items:center;justify-content:center;
}
.rank-item:nth-child(-n+3) .no{background:var(--teal);color:#fff;}
.rank-item:nth-child(n+4) .no{background:transparent;color:#8c9a9d;font-size:12px;}
.rank-item .nm{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#4c5a5e;}
.rank-item .num{color:#5c6b6e;font-weight:600;font-size:12.5px;}
.pie-label{
  position:absolute;transform:translate(-50%,-50%);color:#fff;font-size:12px;font-weight:600;
  text-shadow:0 1px 2px rgba(0,0,0,.28);pointer-events:none;
}
.trend-tip{
  position:absolute;z-index:3;min-width:132px;padding:8px 10px;background:rgba(255,255,255,.97);
  border:1px solid #e4ecec;border-radius:3px;box-shadow:0 4px 14px rgba(0,0,0,.10);
  transform:translate(-50%,-112%);pointer-events:none;display:flex;flex-direction:column;gap:5px;
  font-size:12px;color:#4c5a5e;white-space:nowrap;
}
.trend-tip b{font-weight:600;color:#2d3b3e;}
.trend-tip span{color:#14b8b8;}
.pie-row{display:flex;gap:20px;align-items:center;justify-content:space-around;flex-wrap:wrap;}
.pie-block{display:flex;align-items:center;gap:26px;flex:1;min-width:300px;justify-content:center;}
.pie{width:clamp(170px,14vw,230px);height:clamp(170px,14vw,230px);border-radius:50%;position:relative;flex:none;background:#eef2f2;}
.pie::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--bg);transform:scale(.72);display:none;}
.legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px;row-gap:8px;font-size:12.5px;min-width:190px;}
.legend .lg{display:flex;align-items:center;gap:8px;color:#5c6b6e;}
.legend .lg-name{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.legend .lg-pct{flex:none;color:#31464d;font-weight:600;font-variant-numeric:tabular-nums;}
.legend .dot{width:9px;height:9px;border-radius:50%;flex:none;}

/* 订单管理 */
.orders-card{
  background:#fff;border-radius:3px;
  padding:12px 14px 8px;box-shadow:0 1px 2px rgba(0,0,0,.03);
}
.orders-actions{display:flex;flex-wrap:wrap;gap:7px;padding-bottom:10px;}
.btn{
  height:30px;padding:0 14px;border:1px solid #dfe4e4;border-radius:3px;
  background:#fff;color:#4c5a5e;font-size:12.5px;white-space:nowrap;
}
.btn:hover{border-color:var(--teal);color:var(--teal-dark);}
.btn.teal{background:var(--teal);border-color:var(--teal);color:#fff;}
.btn.teal:hover{background:var(--teal-dark);color:#fff;}
.btn.orange{background:#f5a623;border-color:#f5a623;color:#fff;}
.btn.red{background:#f0554e;border-color:#f0554e;color:#fff;}
.btn:disabled,.btn.teal:disabled{opacity:.45;cursor:not-allowed;}
.ghost{
  height:28px;padding:0 12px;border:1px solid #e1e6e6;border-radius:3px;
  background:#fff;color:#5b686c;font-size:12.5px;
}
.ghost:hover{border-color:var(--teal);color:var(--teal-dark);}
.ghost.small{height:22px;padding:0 8px;font-size:11.5px;}
.orders-filter{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:2px 0 10px;color:#6b7a7e;}
.orders-filter label{display:flex;align-items:center;gap:6px;font-size:12.5px;}
.orders-filter select,.orders-filter input{
  height:28px;border:1px solid #e1e6e6;border-radius:3px;padding:0 8px;background:#fff;
}
.orders-filter input[type=search]{width:170px;}
#orders-view{display:flex;flex-direction:column;overflow:hidden;}
#orders-view .orders-card{display:flex;flex-direction:column;flex:1;min-height:0;}
#orders-view .table-wrap{flex:1;min-height:0;overflow:auto;}
.table-wrap{overflow:auto;border:1px solid #e9eeee;border-radius:2px;}
table.grid{width:100%;border-collapse:collapse;font-size:12.5px;}
table.grid.fixed{table-layout:fixed;}
/* p325 会给所有业务表格加 table-layout:fixed，这里统一兜住单元格溢出，避免长字段压到相邻列。 */
table.grid th,table.grid td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
table.grid.fixed th,table.grid.fixed td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
/* 单元格内的长文本、状态胶囊和标签统一收在列宽内，避免压到相邻列。 */
table.grid th > *,table.grid td > *{max-width:100%;min-width:0;}
table.grid td .status-pill{max-width:100%;overflow:hidden;}
table.grid td .cell-clip,table.grid td .cell-ell{max-width:100%;}
#cust-grid .cust-name .muted{font-size:11px;line-height:1.3;color:#8a989c;}
#cust-grid .cust-name .cell-ell{max-width:none;}
table.grid thead{position:sticky;top:0;z-index:3;}
table.grid thead th{
  background:#f4f8f7;color:#6b7a7e;font-weight:500;
  padding:9px 10px;border-bottom:1px solid #e6edec;border-right:1px solid #d8e4e2;
  white-space:nowrap;text-align:left;position:sticky;top:0;z-index:2;
}
table.grid tbody td{
  padding:8px 10px;border-bottom:1px solid #f0f4f4;border-right:1px solid #e2ecea;
  white-space:nowrap;vertical-align:middle;
}
table.grid tfoot td{border-right:1px solid #d8e4e2;}
table.grid tbody tr{cursor:pointer;}
table.grid tbody tr.sel{background:#dff6f6;}
table.grid tbody tr:hover{background:#f0fbfb;}
.w36{width:36px;}
.w120{width:120px;}
.w110{width:110px;}
.w90{width:90px;}
.cell-order{color:var(--teal-dark);}
#cust-grid td:first-child{padding-left:0;padding-right:0;text-align:center;overflow:hidden;text-overflow:clip;}
#cust-grid td:first-child input{width:13px;height:13px;margin:0;vertical-align:middle;}
.cell-ell{max-width:100%;overflow:hidden;text-overflow:ellipsis;}
.cell-clip{max-width:100%;overflow:hidden;text-overflow:ellipsis;}
/* 行内 span 的 max-width 不生效，必须转成 inline-block，订单/客户/资产列表的长字段才会真正省略。 */
span.cell-ell,span.cell-clip{display:inline-block;vertical-align:middle;white-space:nowrap;}
.status-pill{display:inline-flex;align-items:center;gap:6px;}.status-pill .dot{width:7px;height:7px;border-radius:50%;background:#5a9bd5;}
.grid th.sortable{cursor:pointer;user-select:none;}
.grid th.sortable:hover{color:#2f9bd0;}
.grid th .sort-ind{font-size:9px;color:#c4ced1;margin-left:3px;letter-spacing:0;}
.grid th .sort-ind.on{color:#2f9bd0;}
.due-warn{color:#e05252;}
.empty-row td{text-align:center;color:#a4b0b3;padding:44px 0;cursor:default;}
.orders-footer{display:flex;align-items:center;gap:14px;padding:10px 6px 6px;color:#6b7a7e;}
.pager{display:flex;align-items:center;gap:6px;margin-left:auto;}
.pager-btn{width:24px;height:24px;border:1px solid #e1e6e6;background:#fff;border-radius:2px;color:#6b7a7e;}
.pager-btn:hover{border-color:var(--teal);color:var(--teal-dark);}
.pager-btn[disabled]{opacity:.45;cursor:default;}
.pager-input{width:44px;height:22px;border:1px solid #d8e1e0;background:#fff;border-radius:2px;color:#5f6f73;font-size:12px;text-align:center;padding:0 2px;outline:none;}
.pager-input:focus{border-color:var(--teal);}
.pager-total{color:#778589;font-size:12px;margin:0 5px 0 3px;white-space:nowrap;}
#o-page{min-width:20px;text-align:center;color:var(--teal-dark);}
.pager select{height:26px;border:1px solid #e1e6e6;border-radius:2px;padding:0 6px;}
.copyright{text-align:center;color:#a7b2b5;font-size:11.5px;padding:8px 0 2px;}

/* ========== 编辑器 ========== */
.page.editor{display:flex;flex-direction:column;padding:0;overflow:hidden;}
.editor-top{
  display:flex;align-items:center;gap:12px;
  padding:8px 14px;background:#fff;border-bottom:1px solid var(--line);
  flex:none;
}
.proj-no{color:var(--teal-dark);font-weight:600;}
.proj-name{color:#4c5a5e;}
.badge{background:#eef7f7;color:#5d8686;border:1px solid #d6ebeb;border-radius:2px;padding:1px 8px;font-size:11.5px;}
.editor-toolbar{
  display:flex;align-items:stretch;gap:10px;flex-wrap:wrap;
  padding:6px 12px;background:#fff;border-bottom:1px solid #eef2f2;
  flex:none;
}
.tb-group{display:flex;align-items:center;gap:2px;padding-right:10px;border-right:1px solid #edf1f1;}
.tb{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:2px;min-width:58px;height:52px;padding:2px 8px;
  border:0;border-radius:3px;background:#fff;color:#415458;font-size:13px;
}
.tb span{white-space:nowrap;}
/* 工具栏只保留图标，中文说明放在 title 悬停提示里，避免按钮拥挤 */
#ed-tool-home .tb > span{display:none;}
#ed-tool-home .tb{min-width:38px;height:36px;padding:2px 5px;}
#ed-tool-view .view-tool > span{display:none;white-space:nowrap;}
/* 视图工具默认只显示图标；打开顶部 Aa 开关后与主页工具栏一起显示文字 */
#ed-tool-view .view-tool{width:auto;min-width:0;height:30px;padding:0 7px;gap:4px;font-size:12px;}
#ed-tool-view .view-tool b{font-size:14px;line-height:1;}
body.show-tool-labels #ed-tool-home .tb,
body.show-tool-labels #ed-tool-view .view-tool{flex-direction:row;width:auto;min-width:0;height:32px;padding:0 7px;gap:4px;font-size:12px;}
body.show-tool-labels #ed-tool-home .tb-ai-btn{min-width:0;}
body.show-tool-labels #ed-tool-home .tb > span,
body.show-tool-labels #ed-tool-view .view-tool > span{display:inline;}
body.show-tool-labels #ed-tool-home .tb b,
body.show-tool-labels #ed-tool-view .view-tool b{font-size:15px;line-height:1;}
#ed-tool-home .tb-ai-btn{min-width:38px;}
body.editor-window #ed-tool-home .tb{min-width:38px;height:36px;padding:2px 5px;}
body.editor-window #ed-tool-home .tb-ai-btn{min-width:38px;}
#ed-tool-home .tb-more{display:none;min-width:38px;}
.tb-more-menu{
  position:fixed;z-index:10050;width:244px;max-height:75vh;overflow:auto;padding:6px;
  background:#fff;border:1px solid #d8e2e2;border-radius:6px;
  box-shadow:0 10px 28px rgba(18,42,48,.18);
}
.tb-more-menu[hidden]{display:none;}
.tb-more-group{padding:6px 8px 3px;color:#7b8b8e;font-size:11px;line-height:1.4;border-top:1px solid #eef3f3;}
.tb-more-group:first-child{border-top:0;padding-top:3px;}
.tb-more-item{
  display:flex;align-items:center;gap:8px;width:100%;height:29px;padding:0 8px;
  border:0;border-radius:4px;background:transparent;color:#31474b;
  font-size:12.5px;text-align:left;cursor:pointer;
}
.tb-more-item:hover{background:#eef9f8;color:#087f7b;}
.tb-more-item b{flex:0 0 26px;display:flex;align-items:center;justify-content:center;font-size:15px;line-height:1;color:#4d6267;font-weight:600;}
.tb-more-item span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tb-more-item:disabled{opacity:.42;cursor:default;background:transparent;}
.tb-more-item.active{background:#e4f7f5;color:#087f7b;}
body.theme-dark .tb-more-menu,
body.ui-style-dark .tb-more-menu{background:#202b30;border-color:#34464b;box-shadow:0 12px 30px rgba(0,0,0,.5);}
body.theme-dark .tb-more-group,
body.ui-style-dark .tb-more-group{color:#9fb2ba;border-top-color:#33444b;}
body.theme-dark .tb-more-item,
body.ui-style-dark .tb-more-item{color:#d7e5e7;}
body.theme-dark .tb-more-item b,
body.ui-style-dark .tb-more-item b{color:#c7d6d8;}
body.theme-dark .tb-more-item:hover,
body.ui-style-dark .tb-more-item:hover{background:#2b3b42;color:#8fe1d8;}
#ed-tool-home .tb b{font-size:17px;line-height:1;}
.tb b{font-size:16px;font-weight:600;color:#4d6267;}
.tb:hover{background:#f0fafa;color:var(--teal-dark);}
.tb.active{background:#e4f7f5;color:#087f7b;}
.tb.active b{color:#087f7b;}
.tb.loading b{opacity:.45;}
.tb.strong b{color:var(--teal);}
.tb-ai-group{gap:4px;padding:2px 6px;border:1px solid #dcf0ee;border-radius:5px;background:#f7fdfc;}
.tb-ai-btn{min-width:56px;}
.tb-ai-btn>span{color:#41565b;}
.tb-ai-btn>b{font-family:Arial,"Segoe UI",sans-serif;font-size:16px;font-weight:700;letter-spacing:.3px;}
.tb-ai-btn>b.ai-ico{font-family:"Microsoft YaHei","PingFang SC",sans-serif;font-size:15px;line-height:1;font-weight:800;letter-spacing:0;}
.tb-ai-btn>b.ai-ico-trans{color:#0f8f8a;}
.tb-ai-btn>b.ai-ico-retrans{color:#2d548b;}
.tb-ai-btn>b.ai-ico-review{color:#b26a00;}
/* ui-refresh.css 里还有 #tb-ai>b / #tb-ai-retrans>b 的品牌色规则，用 ID+类提高优先级覆盖。 */
body #tb-ai>b.ai-ico-trans{color:#0f8f8a;}
body #tb-ai-retrans>b.ai-ico-retrans{color:#2d548b;}
body #tb-ai-review>b.ai-ico-review{color:#b26a00;}
#tb-ai>b{color:#14b8b8;}
#tb-ai-retrans>b{color:#455a64;}
#tb-ai-lock>b{height:19px;display:flex;align-items:center;justify-content:center;}
#tb-ai-lock svg{width:16px;height:19px;fill:none;stroke:#263238;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}
#tb-ai-lock svg rect{fill:#f2c14e;stroke:#263238;stroke-width:1.4;}
#tb-ai-lock svg circle{fill:#263238;stroke:none;}
#tb-ai-lock.active{background:#fff8df;}
#tb-ai-lock.active>b{filter:drop-shadow(0 0 1px rgba(213,163,0,.55));}
body.editor-window .tb-ai-btn{min-width:60px;}
.tb[disabled]{opacity:.45;cursor:default;}
.tb-select{display:flex;flex-direction:column;gap:2px;font-size:11px;color:#8b979b;}
.tb-select select{height:24px;border:1px solid #e1e6e6;border-radius:2px;padding:0 4px;}
.editor-filter{
  position:relative;display:flex;flex-wrap:nowrap;align-items:center;gap:6px;
  padding:6px 9px;background:#fbfdfd;border-bottom:1px solid #e9eeee;color:#6b7a7e;flex:none;
  margin-right:var(--ed-filter-right,0);
}
.editor-filter .inline{display:flex;align-items:center;gap:6px;font-size:12.5px;}
.ef-field{display:flex;align-items:center;gap:5px;flex:1 1 0;min-width:72px;max-width:300px;}
.ef-field span{font-size:11.5px;color:#6b7a7e;flex:none;}
.editor-filter input[type=search]{
  height:27px;border:1px solid #e1e6e6;border-radius:3px;padding:0 7px;background:#fff;width:100%;min-width:0;font-size:12.5px;
}
.editor-filter select{height:28px;border:1px solid #e1e6e6;border-radius:3px;padding:0 6px;background:#fff;}
.ef-case{
  height:27px;min-width:29px;border:1px solid #e1e6e6;border-radius:3px;background:#fff;
  color:#617276;font-size:12px;font-family:Georgia,serif;cursor:pointer;flex:none;
}
.ef-case.active{color:#0b8e89;border-color:#8bcbcb;background:#eaf8f8;font-weight:600;}
.ef-icon{
  width:27px;height:27px;border:1px solid #e1e6e6;border-radius:3px;background:#fff;
  display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:none;padding:0;
}
.ef-icon svg{width:16px;height:16px;fill:none;stroke:#6d7d80;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.ef-icon:hover{border-color:#9bcbcb;color:#0d8787;}
.ef-remember{
  height:27px;border:1px solid #dfe7e7;border-radius:3px;background:#fff;color:#617276;
  font-size:11.5px;padding:0 7px;white-space:nowrap;cursor:pointer;flex:none;
}
.ef-remember:hover{border-color:#9bcbcb;color:#0d8787;}
.ef-remember.return{border-color:#8bcbcb;background:#eaf8f8;color:#0b8e89;}
#tb-confirm{min-width:76px;}
#tb-confirm span{white-space:nowrap;}
#tb-confirm-menu{min-width:14px !important;width:14px !important;padding:0 1px !important;}
#tb-confirm-menu b{font-size:0 !important;line-height:0;width:0;height:0;border-left:3.5px solid transparent;border-right:3.5px solid transparent;border-top:4.5px solid #8a9a9d;display:block;transform:none;}
body.theme-dark #tb-confirm-menu b{border-top-color:#b1c3c5;}
#tb-clear{min-width:66px;}
#tb-clear-menu{min-width:14px !important;width:14px !important;padding:0 1px !important;}
#tb-clear-menu b{font-size:0 !important;line-height:0;width:0;height:0;border-left:3.5px solid transparent;border-right:3.5px solid transparent;border-top:4.5px solid #8a9a9d;display:block;transform:none;}
body.theme-dark #tb-clear-menu b{border-top-color:#b1c3c5;}
.find-replace-bar{
  display:flex;align-items:center;gap:6px;flex-wrap:nowrap;
  padding:4px 9px 6px;background:#fbfdfd;border-bottom:1px solid #e9eeee;flex:none;
}
.find-replace-bar[hidden]{display:none;}
.fr-label{font-size:11.5px;color:#6b7a7e;white-space:nowrap;flex:none;}
.find-replace-bar input[type=search]{
  height:27px;border:1px solid #e1e6e6;border-radius:3px;padding:0 7px;background:#fff;
  flex:1 1 120px;width:150px;max-width:240px;min-width:80px;font-size:12.5px;
}
.fr-btn{
  height:27px;border:1px solid #dfe7e7;border-radius:3px;background:#fff;color:#617276;
  font-size:11.5px;padding:0 10px;white-space:nowrap;cursor:pointer;flex:none;
}
.fr-btn:hover{border-color:#9bcbcb;color:#0d8787;}
.fr-btn.strong{border-color:#0d9c9c;background:#0d9c9c;color:#fff;}
.fr-btn.strong:hover{background:#0b8e89;color:#fff;}
.fr-scope{font-size:11px;color:#8b9a9d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 1 auto;min-width:0;}
@media (max-width:1000px){.fr-scope{display:none;}}
.fr-close{
  width:24px;height:24px;border:0;border-radius:2px;background:transparent;color:#7b8b8e;
  font-size:16px;line-height:1;cursor:pointer;flex:none;
}
.fr-close:hover{background:#eef8f7;color:#0d8787;}
.ef-filter-btn{position:relative;padding:0 5px;height:27px;border:1px solid #e1e6e6;border-radius:3px;background:#fff;color:#6d7d80;}
.ef-filter-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;}
.ef-filter-btn.active{color:#0b8e89;border-color:#8bcbcb;background:#eaf8f8;}
.qf-panel{
  position:absolute;top:calc(100% + 3px);right:7px;width:304px;max-height:calc(100vh - 150px);
  overflow-y:auto;background:#fff;border:1px solid #dce7e7;border-radius:2px;
  box-shadow:0 5px 16px rgba(24,55,60,.16);z-index:75;padding:0 10px 9px;font-size:12.3px;color:#435659;
}
.qf-panel[hidden]{display:none;}
.qf-head{
  position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;
  padding:8px 0 7px;background:#fff;border-bottom:1px solid #edf2f2;
}
.qf-head b{font-size:12.5px;color:#344a4e;}
.qf-head button{border:0;background:none;color:#178c8c;font-size:12px;cursor:pointer;padding:0;}
.qf-row{display:flex;align-items:center;gap:8px;padding:6px 0;}
.qf-row>label{width:58px;flex:none;color:#617276;font-size:12px;}
.qf-row select{height:27px;border:1px solid #dfe7e7;border-radius:2px;background:#fff;flex:1;min-width:0;}
.qf-range,.qf-jump{display:flex;align-items:center;gap:6px;flex:1;min-width:0;}
.qf-range input,.qf-jump input{height:27px;border:1px solid #dfe7e7;border-radius:2px;background:#fff;min-width:0;padding:0 6px;font-size:12px;}
.qf-range input{width:68px;}
.qf-range span{color:#8b9a9d;}
.qf-jump input{flex:1;}
.qf-jump button{height:27px;border:1px solid #9bcbcb;background:#f2fbfb;color:#0c8784;border-radius:2px;padding:0 8px;font-size:12px;cursor:pointer;}
.qf-group{padding:6px 0 7px;border-top:1px solid #f0f4f4;}
.qf-label{color:#526569;font-size:12px;margin-bottom:5px;}
.qf-checks{display:grid;grid-template-columns:1fr 1fr;gap:4px 8px;}
.qf-checks label{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:12px;color:#435659;line-height:1.4;}
.qf-checks input[type=checkbox]{width:13px;height:13px;margin:0;padding:0;flex:none;accent-color:#0d9c9c;}
.editor-body{--ed-fs:14px;--ed-status-w:108px;--ed-src-font:"Segoe UI","Microsoft YaHei UI","Microsoft YaHei","PingFang SC","Noto Sans SC",sans-serif;--ed-tgt-font:"Segoe UI","Microsoft YaHei UI","Microsoft YaHei","PingFang SC","Noto Sans SC",sans-serif;flex:1;min-height:0;display:flex;}
#editor-body .sentence-grid .c-src{font-size:var(--ed-fs,13px);font-family:var(--ed-src-font);}
#editor-body .sentence-grid .c-tgt textarea{font-size:var(--ed-fs,13px);font-family:var(--ed-tgt-font);}
#editor-body .fmt-view,#editor-body .spell-overlay{font-family:var(--ed-tgt-font);}
#editor-body[data-density=compact] .sentence-grid .c-src{padding:2px 9px;line-height:var(--ed-text-lh,1.3);}
#editor-body[data-density=compact] .sentence-grid .c-tgt textarea{min-height:31px;padding:2px 9px;line-height:var(--ed-text-lh,1.3);}
#editor-body[data-density=compact] .sentence-grid .c-no,#editor-body[data-density=compact] .sentence-grid .c-status{padding:3px 8px;}
/* 紧凑密度随字号收缩：小字号时同步压缩状态图标、确认块与行内按钮，避免行高被状态列撑开 */
#editor-body[data-density=compact]{--st-size:clamp(19px,calc(var(--ed-fs,13px) * 1.5),28px);--ed-status-w:clamp(104px,calc(var(--ed-fs,13px) * 3.3 + 55px),140px);}
#editor-body[data-density=compact] .sentence-grid .c-tgt textarea{min-height:calc(var(--ed-text-lh,1.42) * 1em + 4px);}
#editor-body[data-density=compact] .sentence-grid .c-status{padding:clamp(2px,calc(var(--ed-fs,13px) * .22),6px) 8px;}
#editor-body[data-density=compact] .st-tile{flex:0 0 var(--st-size);width:var(--st-size);height:var(--st-size);}
#editor-body[data-density=compact] .st-tile .st-ico,
#editor-body[data-density=compact] .st-tile .st-ico svg{width:calc(var(--st-size) * .68);height:calc(var(--st-size) * .68);}
#editor-body[data-density=compact] .st-flow{gap:clamp(3px,calc(var(--ed-fs,13px) * .4),7px);}
#editor-body[data-density=compact] .sentence-grid .c-tgt{padding:2px 9px;}
#editor-body[data-density=compact] .sentence-grid .c-tgt textarea{display:block;padding:2px 9px;}
#editor-body[data-density=compact] .c-status-inner{flex-direction:row;align-items:center;gap:clamp(1px,calc(var(--ed-fs,13px) * .14),3px);flex-wrap:wrap;}
#editor-body[data-density=compact] .sentence-grid .qa-inline{padding:1px 5px;font-size:9.5px;line-height:1.25;}
#editor-body[data-density=compact] .c-status-inner .st-flags{flex:0 0 100%;width:100%;margin-top:1px;}
#editor-body[data-density=compact] .sentence-grid .c-status .acts .mini{font-size:clamp(9px,calc(var(--ed-fs,13px) * .72),12px);line-height:1.3;}
#editor-body[data-density=compact] .st-rate{min-width:clamp(44px,calc(var(--ed-fs,13px) * 4),62px);height:clamp(18px,calc(var(--ed-fs,13px) * 1.4),26px);font-size:clamp(10px,calc(var(--ed-fs,13px) * .8),12px);}
#editor-body[data-density=loose] .sentence-grid .c-src{padding:12px 10px;line-height:var(--ed-text-lh,1.7);}
#editor-body[data-density=loose] .sentence-grid .c-tgt textarea{min-height:calc(var(--ed-text-lh,1.7) * 1em + 24px);padding:12px 10px;line-height:var(--ed-text-lh,1.7);}
#editor-body[data-density=loose] .sentence-grid .c-no,#editor-body[data-density=loose] .sentence-grid .c-status{padding:12px 10px;}
.editor-left{flex:1;min-width:0;display:flex;flex-direction:column;background:#fff;position:relative;}
.editor-left .table-wrap{flex:1;min-height:0;border:0;border-radius:0;overflow-x:hidden;}
.col-resizer{
  position:absolute;top:0;width:9px;margin-left:-4px;z-index:12;cursor:col-resize;
  touch-action:none;display:flex;align-items:center;justify-content:center;outline:none;
}
.col-resizer::before{
  content:"";width:1px;height:100%;background:#e2eaea;transition:background .12s,box-shadow .12s;
}
.col-resizer::after{
  content:"";position:absolute;top:0;width:7px;height:26px;border-radius:0 0 4px 4px;
  background:#c8d8d8;opacity:.55;
}
.col-resizer:hover::before,.col-resizer.dragging::before{background:#0d8787;box-shadow:0 0 0 1px rgba(13,135,135,.18);}
.col-resizer:hover::after,.col-resizer.dragging::after{background:#0d8787;opacity:1;}
.col-resizer:focus-visible::before{background:#0d8787;box-shadow:0 0 0 2px rgba(13,135,135,.22);}
#editor-body.stacked .col-resizer{display:none;}
body.theme-dark .col-resizer::before{background:#3b4c51;}
body.theme-dark .col-resizer::after{background:#587074;}
body.theme-dark .col-resizer:hover::before,body.theme-dark .col-resizer.dragging::before{background:#6fd8cf;}
table.sentence-grid thead th{background:#fff;color:#000;}
table.sentence-grid{table-layout:fixed;width:100%;}
.sentence-grid th:nth-child(1){width:72px;}
.sentence-grid th:nth-child(2){width:auto;}
.sentence-grid th:nth-child(3){width:auto;}
.sentence-grid th:nth-child(4),.sentence-grid td.c-status{width:var(--ed-status-w);}
#editor-body.compact-cols{--ed-status-w:80px;}
#editor-body.compact-cols .sentence-grid th:nth-child(1){width:70px;}
#editor-body.compact-cols .sentence-grid .c-no{padding:8px 6px;}
#editor-body.compact-cols .sentence-grid .c-status{padding:6px 4px;}
#editor-body.compact-cols .sentence-grid .st-flow{gap:4px;}
#editor-body.compact-cols .sentence-grid .st-tile{flex:0 0 20px;width:20px;height:20px;}
#editor-body.compact-cols .sentence-grid .st-tile .st-ico,
#editor-body.compact-cols .sentence-grid .st-tile .st-ico svg{width:16px;height:16px;}
#editor-body.compact-cols .sentence-grid thead th.c-status-head{padding:9px 4px;}
.sentence-grid thead th.c-status-head{padding:9px 10px;vertical-align:middle;}
.st-head-tools{display:flex;align-items:center;gap:4px;height:24px;margin-bottom:2px;}
.st-head-tools .st-tool{
  width:24px;height:24px;padding:0;border:1px solid #dfe7e7;border-radius:3px;
  display:inline-flex;align-items:center;justify-content:center;background:#fff;
  color:#6d7d80;font-size:15px;line-height:1;cursor:pointer;flex:none;
}
.st-head-tools .st-tool svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;}
.st-head-tools .st-tool:hover{border-color:#9bcbcb;color:#0d8787;background:#f3fbfa;}
.st-head-tools .st-tool.active{color:#0b8e89;border-color:#8bcbcb;background:#eaf8f8;}
.st-head-label{display:block;font-weight:500;line-height:1.35;}
.editor-filter #file-select{max-width:260px;}
table.sentence-grid tbody td{white-space:normal;vertical-align:middle;padding:0;}
.sentence-grid tbody tr{cursor:pointer;}
.sentence-grid .c-no{padding:8px 10px;color:#333;font-size:12px;white-space:nowrap;text-align:left;vertical-align:top;}
.sentence-grid .c-src{padding:8px 10px;color:#000;line-height:var(--ed-text-lh,var(--ed-lh,1.62));word-break:break-word;overflow-wrap:anywhere;font-weight:500;text-align:left;vertical-align:top;}
#editor-body .sentence-grid .c-src p{margin:0 0 .22em;}
#editor-body .sentence-grid .c-src p:last-child{margin-bottom:0;}
.sentence-grid .c-tgt{position:relative;background:#fff;vertical-align:top;}
.sentence-grid .c-tgt textarea{
  display:block;width:100%;min-height:calc(var(--ed-text-lh,1.62) * 1em + 16px);border:0;resize:none;overflow:hidden;outline:none;
  padding:8px 10px;background:transparent;line-height:var(--ed-text-lh,var(--ed-lh,1.62));color:#000;font-weight:500;text-align:left;
  position:relative;z-index:1;
}
.sentence-grid .c-tgt textarea:focus{background:transparent;box-shadow:none;}
.sentence-grid .c-tgt.has-spellcheck textarea{background:transparent;}
.spell-overlay{
  position:absolute;z-index:2;pointer-events:none;overflow:hidden;margin:0;border:0;
  background:transparent;color:transparent;-webkit-text-fill-color:transparent;
  font-size:var(--ed-fs,13px);line-height:var(--ed-text-lh,var(--ed-lh,1.62));
  user-select:none;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;
}
.spell-overlay .spell-bad{
  text-decoration-line:underline;text-decoration-style:wavy;text-decoration-color:#ff4d4f;
  text-decoration-thickness:1.5px;text-underline-offset:2px;text-decoration-skip-ink:none;
}
/* 显示隐藏字符：覆盖层保留原字符宽度，只把空格/制表符的标记画出来，避免译文层错位 */
.hidden-overlay{
  position:absolute;z-index:3;pointer-events:none;overflow:hidden;margin:0;border:0;
  background:transparent;color:transparent;-webkit-text-fill-color:transparent;
  font-size:var(--ed-fs,13px);line-height:var(--ed-text-lh,var(--ed-lh,1.45));
  user-select:none;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;
  box-sizing:border-box;
}
.hidden-overlay .hc{position:relative;}
.hidden-overlay .hc-base{color:transparent;-webkit-text-fill-color:transparent;}
.hidden-overlay .hc>i{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  font-style:normal;font-weight:800;font-size:1em;line-height:1;
  color:#d92d20;-webkit-text-fill-color:#d92d20;
  background:transparent;border-radius:0;padding:0;
  box-shadow:none;
}
.hidden-overlay .hc-tab>i{left:2px;transform:translateY(-50%);}
.hidden-mark{color:#d92d20;font-weight:800;background:transparent;border-radius:0;padding:0;}
body.theme-dark .hidden-overlay .hc>i{color:#ff6b5e;-webkit-text-fill-color:#ff6b5e;background:transparent;box-shadow:none;}
body.theme-dark .hidden-mark{color:#ff6b5e;background:transparent;}
body.theme-dark .spell-overlay .spell-bad{text-decoration-color:#ff7a7a;}
.sentence-grid .c-tgt.has-format textarea{color:transparent;-webkit-text-fill-color:transparent;caret-color:#0b5f5f;}
.sentence-grid .c-tgt.has-format textarea::selection{background:rgba(45,84,139,.22);color:#000;-webkit-text-fill-color:#000;}
.sentence-grid .c-tgt.has-format.composing textarea{color:#000;-webkit-text-fill-color:#000;}
.sentence-grid .c-tgt.has-format.composing .fmt-view{display:none !important;}
.fmt-view{
  position:absolute;z-index:2;pointer-events:none;overflow:hidden;margin:0;border:0;
  background:transparent;color:#000;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;
  font-size:var(--ed-fs,13px);line-height:var(--ed-text-lh,var(--ed-lh,1.62));font-weight:500;text-align:left;
}
.fmt-view b{font-weight:inherit;-webkit-text-stroke:.34px currentColor;text-shadow:.35px 0 currentColor,-.35px 0 currentColor;}
.fmt-view p{margin:0 0 .22em;}
.fmt-view p:last-child{margin-bottom:0;}
.fmt-view i{font-style:italic;}
.fmt-view u{text-decoration:underline;text-underline-offset:2px;}
.fmt-view s{text-decoration:line-through;}
.fmt-view sup{font-size:.72em;line-height:0;vertical-align:super;}
.fmt-view sub{font-size:.72em;line-height:0;vertical-align:sub;}
.search-hit{background:#ffe58f;color:#4a3300;padding:0;border-radius:2px;box-shadow:0 0 0 1px rgba(214,158,0,.16);}
.fmt-view .search-hit{background:#ffdf6e;}
body.theme-dark .search-hit,body.ui-style-dark .search-hit{background:#8a6500;color:#fff3bf;box-shadow:0 0 0 1px rgba(255,214,92,.22);}
body.theme-dark .fmt-view .search-hit,body.ui-style-dark .fmt-view .search-hit{background:#9b7300;}
body.theme-dark .fmt-view{color:#e6eef1;}
.spell-menu{
  position:fixed;z-index:10060;min-width:172px;padding:5px;
  background:#fff;border:1px solid #d9e1e5;border-radius:6px;
  box-shadow:0 8px 24px rgba(15,35,45,.18);font-size:12px;color:#1f2d33;
}
.spell-menu[hidden]{display:none;}
.spell-menu-title{
  padding:5px 9px 6px;color:#6b7c84;border-bottom:1px solid #edf1f3;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px;
}
.spell-menu button{
  display:block;width:100%;padding:7px 9px;border:0;border-radius:4px;
  background:transparent;color:#1f2d33;text-align:left;cursor:pointer;font:inherit;
}
.spell-menu button:hover{background:#eaf5f6;color:#0f6f73;}
body.theme-dark .spell-menu{background:#1f2a2f;border-color:#33444b;color:#e6eef1;box-shadow:0 10px 28px rgba(0,0,0,.45);}
body.theme-dark .spell-menu-title{color:#9fb2ba;border-bottom-color:#33444b;}
body.theme-dark .spell-menu button{color:#e6eef1;}
body.theme-dark .spell-menu button:hover{background:#2b3b42;color:#8fe1d8;}
.sentence-grid tr.sel .c-tgt textarea,
.sentence-grid tr.sel .c-tgt textarea:focus{background:transparent !important;}
.sentence-grid tr.dirty .c-tgt{box-shadow:inset 3px 0 0 #ffc400;}
.sentence-grid tr.sel{--row-sel:#bae7ff;--sel-line:#a7d4ee;}
.sentence-grid tr.sel td{background:var(--row-sel);}
.sentence-grid tr.sel td.c-tgt{background:var(--row-sel) !important;}
.sentence-grid .c-status{padding:6px 8px;vertical-align:middle;}
.st-flow{display:flex;gap:7px;width:auto;align-items:center;}
.st-tile{
  flex:0 0 26px;width:26px;height:26px;display:flex;align-items:center;justify-content:center;
  padding:0;border:0;border-radius:3px;background:transparent;
  color:#56696d;text-align:center;cursor:pointer;
}
.st-tile:hover:not(:disabled){background:rgba(11,140,134,.09);}
.st-tile:disabled{cursor:default;}
.st-tile .st-ico{width:18px;height:18px;flex:none;display:flex;align-items:center;justify-content:center;}
.st-tile .st-ico svg{width:18px;height:18px;}
.st-tile.ready{color:#0b8c86;}
.st-tile.qc.ready{color:#465a5e;}
.st-tile.done{color:#227a49;}
.st-tile.deny{color:#b54b3f;}
.st-tile.blocked{color:#98a5a6;}
.st-tile.qa{display:none;position:relative;}
.st-tile.qa.alert{display:flex;color:#c43f34;background:#fff3f2;border-radius:50%;}
.st-tile.qa.ignored{display:flex;color:#98a5a6;background:transparent;border-radius:50%;}
.st-tile.qa.ignored:hover:not(:disabled){background:rgba(120,140,142,.10);}
.st-tile.qa.ignored .st-ico svg{transform:scale(1.02);}
.st-tile.qa.alert .st-ico svg{transform:scale(1.1);}
#editor-body .sentence-grid .st-tile.qa.alert{background:#fff3f2!important;}
#editor-body .sentence-grid .st-tile.qa.alert:hover{background:#ffe7e4!important;}
.st-tile.qa.alert::after{
  content:attr(data-tip);position:absolute;right:calc(100% + 7px);top:50%;transform:translateY(-50%);
  z-index:10;width:max-content;max-width:220px;padding:5px 8px;border:1px solid #f0c1bc;border-radius:4px;
  background:#fff4f3;color:#a23f36;font:11px/1.45 "Microsoft YaHei",sans-serif;text-align:left;
  white-space:normal;box-shadow:0 6px 16px rgba(160,50,40,.16);opacity:0;visibility:hidden;pointer-events:none;
}
.st-tile.qa.alert:hover::after,.st-tile.qa.alert:focus-visible::after{opacity:1;visibility:visible;}
.st-tile.qa.ignored,.st-tile.qa.normal{color:#98a5a6;}
.st-tile.qa.clean{color:#98a5a6;}
.st-tile.qa.idle{color:#a7b3b3;}
.sentence-grid .c-status .acts{display:flex;gap:7px;flex-wrap:wrap;margin-top:0;}
.sentence-grid .c-status .acts .mini{border:0;background:transparent;padding:0;line-height:16px;font-size:10px;color:#6a7e81;}
.sentence-grid .c-status .acts .mini:hover{color:var(--teal-dark);text-decoration:underline;}
.sentence-grid .qa-inline{
  display:flex;align-items:center;gap:4px;max-width:100%;padding:2px 6px;
  border:1px solid #f0cfc9;border-radius:3px;background:#fff6f5;color:#a23f36;
  font:10px/1.35 "Microsoft YaHei",sans-serif;text-align:left;cursor:pointer;
}
.sentence-grid .qa-inline[hidden]{display:none;}
.sentence-grid .qa-inline-lv{font-weight:600;white-space:nowrap;flex:none;}
.sentence-grid .qa-inline-msg{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sentence-grid .qa-inline.is-warn{border-color:#efdcb6;background:#fffaef;color:#94600f;}
.sentence-grid .qa-inline.is-normal{border-color:#dbe7ef;background:#f5f9fc;color:#4e7188;}
.sentence-grid tr.sel .qa-inline{background:#fff;}
body.theme-dark .sentence-grid .qa-inline,
body.ui-style-dark .sentence-grid .qa-inline{
  border-color:#6b3a3f;background:#3a2528;color:#ffb8b1;
}
body.theme-dark .sentence-grid .qa-inline.is-warn,
body.ui-style-dark .sentence-grid .qa-inline.is-warn{
  border-color:#6b5934;background:#3d3220;color:#f0c27d;
}
body.theme-dark .sentence-grid .qa-inline.is-normal,
body.ui-style-dark .sentence-grid .qa-inline.is-normal{
  border-color:#364b5c;background:#25313c;color:#a8c4d8;
}
body.theme-dark .sentence-grid tr.sel .qa-inline,
body.ui-style-dark .sentence-grid tr.sel .qa-inline{background:#3a2528;}
.sentence-grid .c-no{vertical-align:middle;}
.sentence-grid .c-no-inner{display:flex;flex-wrap:wrap;align-items:center;gap:3px;}
.sentence-grid .c-status-inner{display:flex;flex-direction:column;gap:5px;align-items:flex-start;width:100%;}
.sentence-grid tr.sel .c-status .st-tile,
.sentence-grid tr.sel .c-status .st-tile.ready,
.sentence-grid tr.sel .c-status .st-tile.done,
.sentence-grid tr.sel .c-status .st-tile.deny,
.sentence-grid tr.sel .c-status .st-tile.blocked,
.sentence-grid tr.sel .c-status .acts .mini{background:transparent;border-color:var(--sel-line);}
.c-no-main{line-height:1.5;}
.row-flag{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:15px;height:15px;padding:0 3px;border-radius:2px;
  border:1px solid #e2e8e8;background:#f8fafa;color:#78888b;
  font:600 9.5px/1 "Microsoft YaHei",sans-serif;letter-spacing:0;
}
.row-flag.mt{border-color:#f0cfc9;background:#fff5f2;color:#b54b3f;}
.row-flag.tm{border-color:#cfe7dc;background:#f3fbf6;color:#2b7a52;}
.row-flag.dup{border-color:#eadfbf;background:#fffaf0;color:#9a7420;}
.row-flag-model{display:inline-block;margin-left:2px;max-width:46px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:1px;color:#a5675d;font:500 8px/1 "Microsoft YaHei",sans-serif;}
.st-flags{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin-top:0;}
.st-rate{
  display:inline-flex;align-items:center;justify-content:center;min-width:62px;height:24px;padding:0 8px;border:0;border-radius:2px;
  font:700 12px/1 "Microsoft YaHei",sans-serif;letter-spacing:.2px;
  background:#2f7d48;color:#fff;
}
.st-rate.hi,.st-rate.mid{background:#2f7d48;color:#fff;}
.st-rate.lo{background:#a9721b;color:#fff;}
.mini{
  border:1px solid #e1e6e6;background:#fff;border-radius:2px;
  font-size:11px;color:#506468;padding:1px 6px;line-height:18px;
}
.mini:hover{border-color:var(--teal);color:var(--teal-dark);}
.mini.flag{color:#5c6b6e;}
.tag{font-size:10.5px;padding:0 5px;border-radius:2px;border:1px solid #dbe6e6;color:#6b7a7e;background:#fff;}
.tag.confirm{background:#e8faf3;border-color:#c4eedf;color:#1f9d70;}
.tag.deny{background:#fdeeee;border-color:#f6d3d0;color:#d95c52;}
.tag.mt{background:#f0f6ff;border-color:#d7e4f7;color:#4a78b8;}
.tag.over{background:#fff6e8;border-color:#f7e2bd;color:#c98a1f;}
.match-badge{font-size:10.5px;color:#fff;background:#7fb069;border-radius:2px;padding:0 4px;}
.preview-pane{height:190px;flex:none;border-top:1px solid #e9eeee;display:flex;flex-direction:column;background:#fff;}
.preview-pane.collapsed{height:34px!important;flex:0 0 34px!important;}
.preview-pane.collapsed .preview-resizer{display:none;}
.preview-pane.collapsed .preview-body{display:none;}
.preview-resizer{position:relative;flex:none;height:7px;cursor:row-resize;background:#fff;touch-action:none;outline:none;}
.preview-resizer:before{content:"";position:absolute;left:0;right:0;top:3px;height:1px;background:#e9eeee;transition:background .12s;}
.preview-resizer:after{content:"";position:absolute;left:50%;top:2px;width:38px;height:3px;margin-left:-19px;border-radius:2px;background:#d7e2e1;transition:background .12s;}
.preview-resizer:hover:before,.preview-resizer.dragging:before,.preview-resizer:focus-visible:before{top:2px;height:2px;background:#2d548b;}
.preview-resizer:hover:after,.preview-resizer.dragging:after,.preview-resizer:focus-visible:after{background:#2d548b;}
.preview-pane.collapsed .preview-body{display:none;}
.preview-head{display:flex;align-items:center;padding:5px 12px;background:#f7fafa;color:#6b7a7e;font-size:12px;}
.preview-head .preview-collapse{margin-left:auto;}
.preview-head #preview-toggle{margin-left:2px;}
.preview-head button{min-width:20px;height:20px;padding:0 4px;line-height:18px;}
.preview-body{flex:1;overflow:auto;padding:10px 14px;background:#fafcfc;color:#4c5a5e;line-height:1.8;font-size:12.5px;}
#preview-body.preview-locate-miss::after{
  content:"当前句段未能在原文件中精确定位，请以左侧选中的原文为准。";
  position:absolute;left:14px;right:14px;top:10px;z-index:2;padding:7px 10px;
  border:1px solid #f0cf92;border-radius:3px;background:rgba(255,248,232,.97);
  color:#8a5a12;font-size:12px;line-height:1.5;box-shadow:0 2px 8px rgba(80,60,20,.08);
}
.preview-body .hl{background:#fff2bf;}
.editor-right{
  width:380px;flex:none;border-left:1px solid var(--line);background:#fff;
  display:flex;flex-direction:column;min-height:0;
}
.panel-tabs{display:flex;flex-wrap:wrap;border-bottom:1px solid var(--line);background:#f7fafa;flex:none;}
.pt{
  flex:1 1 20%;min-width:0;height:32px;border:0;background:none;color:#7c8b8e;font-size:12px;
  border-bottom:2px solid transparent;border-right:1px solid #f0f5f5;
  padding:0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.pt:hover{color:var(--teal-dark);}
.pt.active{background:#fff;color:var(--teal-dark);border-bottom-color:var(--teal);font-weight:600;}
.panel-body{flex:1;overflow:auto;padding:12px;}
.panel-body .pad{color:#a4b0b3;text-align:center;padding-top:60px;}
.mt-card{border:1px solid #eef3f2;border-radius:3px;padding:10px 12px;margin-bottom:10px;}
.mt-card .h{display:flex;align-items:center;gap:8px;color:#6b7a7e;font-size:11.5px;}
.mt-card .h .spacer{flex:1;}
.mt-card .src{color:#2f3f43;margin:6px 0 4px;}
.mt-card .tgt{color:#20464c;background:#f5fbfb;border-radius:2px;padding:6px 8px;line-height:1.6;}
.mt-card .ops{display:flex;gap:6px;margin-top:8px;}
.remark-item,.history-item{border-bottom:1px solid #f1f5f5;padding:8px 0;font-size:12.5px;}
.remark-item .meta,.history-item .meta{color:#9aa7aa;font-size:11.5px;margin-bottom:4px;}
.history-item .val{color:#4c5a5e;word-break:break-word;}
.remark-add{display:flex;flex-direction:column;gap:6px;margin-top:10px;}
.remark-add textarea{min-height:64px;border:1px solid #e1e6e6;border-radius:3px;padding:8px;resize:vertical;}
.asset-card{border:1px solid #eef3f2;border-radius:3px;padding:9px 11px;margin-bottom:9px;font-size:12.5px;}
.asset-card .ra{display:flex;align-items:center;gap:6px;margin-bottom:6px;}
.asset-card .ra .rate{font-size:10.5px;color:#fff;background:#14b8b8;border-radius:2px;padding:0 5px;line-height:17px;}
.asset-card .ra .spacer{flex:1;}
.asset-card .ra .who{color:#9aa7aa;font-size:11px;}
.asset-card .s{color:#59686c;margin-bottom:4px;word-break:break-word;}
.asset-card .t{color:#20464c;background:#f5fbfb;border-radius:2px;padding:6px 8px;line-height:1.6;word-break:break-word;}
.asset-card .ops{display:flex;gap:6px;margin-top:7px;}
.panel-sec{display:flex;align-items:center;gap:8px;margin:4px 0 8px;color:#6b7a7e;font-size:12px;}
.panel-sec b{color:#2f3f43;}
.panel-sec .spacer{flex:1;}
.term-search{display:flex;gap:6px;margin-bottom:8px;}
.term-search input{flex:1;border:1px solid #e1e6e6;border-radius:3px;padding:5px 8px;font-size:12px;}
.term-form{display:grid;grid-template-columns:1fr 1fr;gap:6px;border-top:1px solid #f0f5f5;padding-top:10px;margin-top:6px;}
.term-form input{width:100%;border:1px solid #e1e6e6;border-radius:3px;padding:5px 8px;font-size:12px;}
.term-form .full{grid-column:1 / -1;display:flex;align-items:center;gap:8px;}
.term-row{display:flex;align-items:center;gap:6px;padding:6px 0;border-bottom:1px solid #f4f8f8;font-size:12.5px;}
.term-row .s{color:#59686c;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.term-row .t{color:#20464c;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.term-row .del{color:#c2554c;border:0;background:none;font-size:11.5px;cursor:pointer;}
.cd-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:2px 0 10px;border-bottom:1px solid #edf3f2;}
.cd-head-main{min-width:0;}
.cd-head-main b{font-size:14px;color:#25383e;}
.cd-head-main .tag{margin-left:6px;}
.cd-head-meta{font-size:12px;color:#86969a;white-space:nowrap;}
.cd-2col{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:12px;}
.cd-sec{border:1px solid #edf3f2;border-radius:4px;background:#fcfefe;padding:10px 12px;min-width:0;}
.cd-sec-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;color:#20464c;font-size:12.5px;font-weight:600;}
.cd-sec-title .muted{font-weight:400;font-size:11.5px;}
.cd-order-wrap{margin-top:12px;}
.cd-order-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:8px;font-size:12px;color:#7d8d90;}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;}
.form-grid label{display:block;margin:0;color:#6b7a7e;font-size:12.5px;}
.form-grid .full{grid-column:1 / -1;}
.form-grid select{width:100%;border:1px solid #e1e6e6;border-radius:3px;padding:7px 9px;margin-top:5px;background:#fff;}
.form-grid .form-sec{grid-column:1 / -1;margin:6px 0 -4px;padding:0 0 6px;border-bottom:1px solid #eef3f3;color:#2d548b;font-size:12px;font-weight:600;letter-spacing:.4px;}
#cust-grid td.cell-ell{white-space:nowrap;}
.cust-sum-row td{background:#f7fbfb;color:#41575c;font-weight:600;border-top:1px solid #dfe8e8;}
.cust-sum-row td.num{text-align:right;font-variant-numeric:tabular-nums;}
.sc-wrap{max-height:calc(60vh - 46px);overflow:auto;border:1px solid #eef4f4;border-radius:4px;}
.sc-table{width:100%;border-collapse:collapse;font-size:12.5px;}
.sc-table th{position:sticky;top:0;background:#f7fbfb;color:#6b7a7e;font-weight:400;text-align:center;padding:9px 12px;border-bottom:1px solid #e8f0f0;}
.sc-table th:first-child{text-align:left;}
.sc-table td{padding:8px 12px;border-bottom:1px solid #f2f7f7;color:#2f3f43;}
.sc-table tr:last-child td{border-bottom:0;}
.sc-table td:last-child{text-align:center;white-space:nowrap;}
.sc-key{display:inline-flex;gap:4px;vertical-align:middle;}
.sc-kbd{display:inline-block;min-width:22px;padding:2px 7px;border:1px solid #d9e2e2;border-radius:3px;background:#fbfdfd;color:#405154;font-size:11.5px;line-height:18px;text-align:center;}
.sc-edit,.sc-cancel{margin-left:8px;padding:1px 7px;border:1px solid #cfe4e2;border-radius:3px;background:#fff;color:#137f7a;font-size:11px;line-height:18px;cursor:pointer;}
.sc-edit:hover,.sc-cancel:hover{background:#eef9f8;border-color:#9fd2cd;}
.sc-fixed{margin-left:8px;color:#9aa8aa;font-size:10.5px;white-space:nowrap;}
.sc-capture{margin-left:8px;color:#0d8c88;font-size:11px;white-space:nowrap;}
.sc-table tr.sc-editing td{background:#effbfa;}
.sc-hint{margin:0 0 8px;color:#7f8f92;font-size:11.5px;line-height:1.6;}
.theme-dark .sc-wrap{border-color:#31424b;}
.theme-dark .sc-table th{background:#223039;color:#a9bcc0;border-bottom-color:#31424b;}
.theme-dark .sc-table td{color:#dce8e8;border-bottom-color:#2b3b44;}
.theme-dark .sc-kbd{background:#223039;border-color:#40535b;color:#e4eeee;}
.theme-dark .sc-edit,.theme-dark .sc-cancel{background:#223039;border-color:#3f5f5c;color:#72d3cd;}
.theme-dark .sc-edit:hover,.theme-dark .sc-cancel:hover{background:#2a4047;border-color:#5b8a85;}
.theme-dark .sc-fixed{color:#84979b;}
.theme-dark .sc-capture{color:#72d3cd;}
.theme-dark .sc-table tr.sc-editing td{background:#20363d;}
.theme-dark .sc-hint{color:#91a5a8;}
.ed-set-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.ed-set-grid label{display:block;font-size:12.5px;color:#59696e;}
.ed-set-grid select{display:block;width:100%;height:31px;margin-top:5px;border:1px solid #dfe7e7;border-radius:3px;background:#fff;padding:0 6px;}
.ed-font-preview{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 8px;padding:9px 10px;border:1px solid #e4ecec;border-radius:4px;background:#fafcfc;}
.ed-font-preview>div{min-width:0;}
.ed-font-preview span{display:block;margin-bottom:4px;color:#8a9a9d;font-size:10.5px;}
.ed-font-preview b{display:block;color:#26383d;font-size:13px;line-height:1.5;font-weight:500;word-break:break-word;}
#editor-body .src-edit-input{font-family:var(--ed-src-font);}
body.theme-dark .ed-font-preview{border-color:#3b4c51;background:#243238;}
body.theme-dark .ed-font-preview b{color:#dce8ea;}
body.theme-dark .ed-font-preview span{color:#93a7aa;}
.theme-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.theme-choice{position:relative;display:flex;align-items:center;gap:12px;padding:10px;border:1px solid #e1e6e6;border-radius:4px;background:#fff;text-align:left;cursor:pointer;}
.theme-choice:hover{border-color:#8bcbcb;background:#f9fdfd;}
.theme-choice.selected{border-color:#2d548b;box-shadow:0 0 0 2px rgba(45,84,139,.12);}
.theme-swatch{display:flex;width:72px;height:46px;flex:none;border:1px solid #e3e8e8;border-radius:3px;overflow:hidden;}
.theme-swatch span{flex:1;}
.theme-meta{min-width:0;display:flex;flex-direction:column;gap:3px;}
.theme-meta b{color:#33474b;font-size:13px;font-weight:600;}
.theme-meta em{color:#8a999c;font-size:11.5px;font-style:normal;}
.theme-check{position:absolute;right:9px;top:8px;color:#2d548b;font-size:13px;font-weight:700;opacity:0;}
.theme-choice.selected .theme-check{opacity:1;}
.layout-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.layout-choice{display:flex;align-items:center;gap:14px;padding:12px;border:1px solid #e1e6e6;border-radius:4px;background:#fff;text-align:left;cursor:pointer;}
.layout-choice:hover{border-color:#8bcbcb;background:#f9fdfd;}
.layout-choice.selected{border-color:#2d548b;box-shadow:0 0 0 2px rgba(45,84,139,.12);}
.layout-demo{width:92px;height:56px;flex:none;display:flex;gap:3px;padding:4px;border:1px solid #dfe7e7;border-radius:3px;background:#fafcfc;}
.layout-demo span,.layout-demo i{display:block;background:#fff;border:1px solid #e3ecec;border-radius:2px;}
.layout-demo.side{flex-direction:row;}
.layout-demo.side i{flex:1;}
.layout-demo.updown{flex-direction:column;}
.layout-demo.updown i{flex:1;}
.layout-demo i:first-child{background:#eef8f7;}
.layout-meta{display:flex;flex-direction:column;gap:4px;min-width:0;}
.layout-meta b{color:#33474b;font-size:13px;font-weight:600;}
.layout-meta em{color:#8a999c;font-size:11.5px;font-style:normal;}
.import-box{font-size:13px;color:#435659;line-height:1.7;}
.import-box p{margin:0 0 13px;}
.import-pick{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:11px 12px;border:1px dashed #a9d2d2;border-radius:3px;background:#f8fdfd;}
.import-pick input[type=file]{font-size:12px;max-width:100%;}
.import-file-name{margin-top:8px;color:#7b8c90;font-size:12px;}

.manual-box{font-size:13px;color:#435659;line-height:1.7;max-height:62vh;overflow:auto;padding-right:4px;}
.manual-box h4{margin:12px 0 5px;font-size:13.5px;color:#2d548b;font-weight:600;}
.manual-box h4:first-child{margin-top:0;}
.manual-box li{margin-bottom:3px;}
.manual-box code{padding:1px 5px;border:1px solid #e0e8e8;border-radius:2px;background:#f7fafa;color:#35686c;font-size:11.5px;}
.manual-box .manual-link{display:inline-flex;margin-top:4px;text-decoration:none;}

/* 订单结算 */
.settle-head{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 18px;padding:12px 14px;border:1px solid #e2eae9;border-radius:4px;background:#f7fbfb;margin-bottom:12px;}
.settle-head>div{min-width:0;}
.settle-head .k{font-size:12px;color:#8a999c;margin-bottom:3px;}
.settle-head .v{font-size:13px;color:#33474b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.settle-head .v.cell-ell{display:block;}
.settle-remark{padding:8px 12px;border-left:3px solid #cfe3e3;background:#fafdfd;color:#5c6f73;font-size:12.5px;margin-bottom:10px;line-height:1.6;}
.settle-sub{margin:14px 0 8px;font-size:13px;color:#2d548b;font-weight:600;border-left:3px solid #2d548b;padding-left:8px;}
.settle-table{max-height:300px;overflow:auto;border:1px solid #e2eae9;border-radius:4px;}
.settle-table table{width:100%;}
.settle-table th,.settle-table td{white-space:nowrap;font-size:12.5px;}
.settle-table td.num{text-align:right;font-variant-numeric:tabular-nums;}
.settle-form{margin-bottom:6px;}
.settle-item-edit{display:grid;grid-template-columns:170px 170px 170px minmax(0,1fr);gap:12px;align-items:end;padding:10px 12px;background:#fafcfc;border:1px solid #e2eae9;border-radius:4px;}
.settle-item-edit label{display:block;font-size:12.5px;color:#6b7a7e;}
.settle-item-edit input{width:100%;height:30px;border:1px solid #e1e6e6;border-radius:3px;padding:4px 8px;margin-top:5px;background:#fff;}
.settle-item-edit input[readonly]{background:#f2f6f6;color:#40555a;font-weight:600;}
.settle-item-msg{font-size:12px;color:#8a999c;padding-bottom:6px;}
.settle-tip{margin:10px 0 0;font-size:12px;line-height:1.6;}
.money-warn{color:#d9534f;font-weight:600;}
.money-paid{color:#2f9e6f;font-weight:600;}

/* 结算管理列表 */
#st-grid td.num{text-align:right;font-variant-numeric:tabular-nums;}
#st-grid .st-check,#st-check-all{width:14px;height:14px;margin:0;accent-color:var(--teal);cursor:pointer;}
#st-grid .st-no{color:#2d548b;font-weight:600;}
#st-grid .st-amount{font-variant-numeric:tabular-nums;}
#st-grid .st-amount.paid{color:#2f9e6f;}
#st-grid .st-amount.bad{color:#d9534f;font-weight:600;}
#st-grid .st-flag{display:inline-block;font-size:11px;line-height:18px;padding:0 6px;border-radius:2px;background:#eef5f5;color:#5b6b6f;}
#st-grid .st-flag.warn{background:#fff5e6;color:#b97618;}
#st-grid .st-flag.due{background:#fdecea;color:#c6453f;}
#st-grid .st-flag.bad{background:#fbe9e8;color:#b33a34;}
#st-grid tbody tr.sel{background:#dff6f6;}
.settle-detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 10px;}
.settle-detail-actions .btn{height:28px;}
.settle-detail-actions .spacer{flex:1;}
.st-mini-danger{border:0;background:none;color:#c2554c;font-size:11.5px;cursor:pointer;padding:0;}
.st-mini-danger:hover{text-decoration:underline;}
.st-empty{padding:26px 0;text-align:center;color:#9aa8aa;font-size:12.5px;}
.detail-table{width:100%;border-collapse:collapse;font-size:12.5px;}
.detail-table td{padding:6px 8px;border-bottom:1px solid #f1f5f5;vertical-align:top;}
.detail-table td.k{width:110px;color:#8b9a9d;}
.detail-table td.v{color:#3d4d51;word-break:break-word;}
.dispatch-list{width:100%;margin-top:8px;border:1px solid #dfe6e6;border-radius:3px;padding:4px;font-size:12.5px;color:#3d4d51;background:#fff;}

.check-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:6px 14px;margin:10px 0 4px;max-height:320px;overflow:auto;padding:10px;border:1px solid #e2eae9;border-radius:4px;background:#fafdfd;}
.check-grid .chk{display:flex;align-items:center;gap:6px;font-size:12.5px;color:#3d4d51;cursor:pointer;}
.check-grid .chk input{width:14px;height:14px;margin:0;accent-color:var(--teal);}
.fm-list{margin-top:10px;max-height:300px;overflow:auto;border:1px solid #e2eae9;border-radius:4px;background:#fff;}
.fm-table tbody tr{cursor:default;}
.fm-table tbody td .ghost{margin-right:6px;}
.fm-upload{display:flex;align-items:center;gap:10px;margin-top:10px;padding:10px;border:1px dashed #cfdedd;border-radius:4px;background:#fafdfd;}
.fm-upload input[type=file]{flex:1;min-width:0;font-size:12.5px;}

.assign-rows{display:flex;flex-direction:column;gap:8px;margin-top:10px;}
.ta-row{position:relative;display:grid;grid-template-columns:repeat(4,minmax(110px,1fr));gap:8px;padding:10px 70px 10px 10px;border:1px solid #e2eae9;border-radius:4px;background:#fafdfd;}
.ta-row.file-mode{padding-right:10px;}
.ta-row label{display:flex;flex-direction:column;gap:3px;font-size:12px;color:#5b6b6f;}
.ta-row select,.ta-row input{height:28px;border:1px solid #cfdad9;border-radius:3px;padding:0 6px;font-size:12.5px;background:#fff;}
.ta-acc-wrap{grid-column:span 2;}
.ta-acc-wrap select{max-width:100%;}
.ta-row .ta-del{position:absolute;right:10px;top:10px;height:28px;}
.ta-row.off-row{padding-right:78px;grid-template-columns:repeat(4,minmax(140px,1fr));}
.ta-row.off-row .oa-del{position:absolute;right:10px;top:10px;height:28px;width:58px;}
.assign-mode{display:flex;gap:8px;margin:8px 0 2px;}
.assign-mode .ghost.active{background:var(--teal);border-color:var(--teal);color:#fff;}
.ta-files{grid-column:1/-1;display:flex;flex-direction:column;gap:4px;font-size:12px;color:#5b6b6f;}
.ta-file-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:4px 12px;max-height:120px;overflow:auto;padding:6px 8px;border:1px solid #e2eae9;border-radius:3px;background:#fff;}
.ta-file-list .chk{display:flex;flex-direction:row;align-items:center;gap:6px;font-size:12px;color:#3d4d51;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ta-file-list .chk input{width:14px;height:14px;margin:0;accent-color:var(--teal);}
.ta-file-list .chk.disabled{color:#9aa8aa;cursor:not-allowed;}
.ta-file-list .chk .fm-meta{color:#8a999c;}
.assign-actions{display:flex;align-items:center;gap:12px;margin-top:10px;}
.assign-actions .muted{font-size:12px;}
.ta-head{margin-bottom:6px;}
.chk-line{flex-direction:row!important;align-items:center;gap:8px!important;font-size:12.5px;grid-column:1/-1;}
.ghost:disabled{opacity:.4;cursor:not-allowed;}
.editor-status{
  display:flex;align-items:center;gap:0;
  height:34px;flex:none;padding:0 12px;
  background:#fbfdfd;border-top:1px solid var(--line);
  color:#6b7a7e;font-size:12px;overflow:hidden;
}
.status-left{display:flex;align-items:center;gap:28px;min-width:0;flex:none;}
.status-left .status-item{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.status-order{color:#45565a;font-weight:500;max-width:130px;}
.status-words,.status-due{display:flex;align-items:center;gap:7px;color:#657478;}
.status-words::before{content:'';width:11px;height:11px;box-sizing:border-box;border:1.5px solid #27b36a;border-radius:50%;flex:none;}
.status-due::before{content:'';width:11px;height:11px;box-sizing:border-box;border:1.5px solid #e04e4b;border-radius:50%;flex:none;}
.status-center{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 18px;color:#4e5e62;font-size:12.5px;}
.status-user{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.status-right{display:flex;align-items:center;gap:4px;flex:none;}
@media (max-width:900px){
  .editor-status{padding:0 8px;}
  .status-left{gap:14px;flex-shrink:1;overflow:hidden;}
  .status-due{display:none;}
  .status-order{max-width:90px;}
  .status-center{padding:0 8px;min-width:0;}
}
@media (max-width:560px){
  .status-left{gap:10px;}
  .status-order{max-width:76px;}
  .status-center{font-size:11.5px;padding:0 5px;}
  .pager-input{width:36px;}
}

/* toast / modal */
.toast{
  position:fixed;left:50%;top:22px;bottom:auto;transform:translateX(-50%);
  background:rgba(30,45,50,.92);color:#fff;
  padding:9px 18px;border-radius:4px;font-size:13px;z-index:100001;
  max-width:70vw;
}
.toast.err,.toast.center{top:50%;bottom:auto;left:50%;right:auto;transform:translate(-50%,-50%);z-index:100001;pointer-events:none;max-width:min(620px,72vw);padding:14px 24px;text-align:center;font-size:13.5px;line-height:1.55;box-shadow:0 10px 34px rgba(0,0,0,.28);border-radius:6px;}
.toast.err{background:rgba(200,60,55,.96);}
.toast.center{background:rgba(27,46,65,.96);border:1px solid rgba(143,224,221,.35);color:#fff;font-weight:500;}
.modal{position:fixed;inset:0;background:rgba(10,20,25,.35);display:flex;align-items:center;justify-content:center;z-index:100;}
.modal-card{width:520px;max-width:92vw;background:#fff;border-radius:4px;overflow:hidden;}
.modal-card.wide{width:860px;}
.modal-card.xwide{width:1180px;max-width:94vw;}
.modal-card header{display:flex;align-items:center;padding:10px 16px;border-bottom:1px solid var(--line);}
.modal-card header strong{font-size:14px;flex:1;min-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.modal-head-actions{display:flex;align-items:center;gap:7px;flex:none;}
.modal-head-actions:empty{display:none;}
.modal-head-actions .btn,.modal-head-actions .ghost{height:28px;padding:0 11px;}
.modal-card header #modal-close{margin-left:9px;flex:none;}
.modal-body{padding:16px;max-height:60vh;overflow:auto;color:#4c5a5e;}
.modal-body label{display:block;margin:10px 0;color:#6b7a7e;}
.modal-body input,.modal-body textarea{width:100%;border:1px solid #e1e6e6;border-radius:3px;padding:7px 9px;margin-top:5px;}
.modal-body label.chk{display:flex;align-items:center;gap:6px;color:#3d4d51;font-size:12.5px;cursor:pointer;}
.modal-body label.chk input{width:14px;height:14px;padding:0;margin:0;flex:none;accent-color:var(--teal);}
.modal-body textarea{min-height:90px;resize:vertical;}
/* 文件预览最大化：占满视口，iframe 跟随高度 */
.modal-card.preview-max{width:96vw;max-width:96vw;height:94vh;display:flex;flex-direction:column;}
.modal-card.preview-max .modal-body{flex:1;min-height:0;max-height:none;padding:0;overflow:hidden;position:relative;}
.modal-card.preview-max .staff-cert-preview{height:100%;}
.pm-preview-tip{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:6;display:flex;align-items:center;gap:8px;padding:9px 18px;border-radius:20px;background:rgba(27,46,65,.94);color:#fff;font-size:13px;box-shadow:0 8px 24px rgba(0,0,0,.22);pointer-events:none;white-space:nowrap;}
.pm-preview-tip::before{content:"";width:13px;height:13px;border:2px solid rgba(255,255,255,.35);border-top-color:#8fe0dd;border-radius:50%;animation:pmSpin .8s linear infinite;}
@keyframes pmSpin{to{transform:rotate(360deg);}}
/* 移动文件：按需展开的目录树 */
.pm-dir-tree{border:1px solid #e1e6e6;border-radius:4px;max-height:260px;overflow:auto;padding:6px 8px;background:#fbfdfd;}
.pm-tree-node{display:flex;align-items:center;gap:3px;min-height:26px;}
.pm-tree-toggle{width:18px;height:18px;border:0;background:transparent;color:#6b7a7e;font-size:11px;line-height:18px;padding:0;cursor:pointer;flex:none;}
.pm-tree-toggle.empty{visibility:hidden;}
.pm-tree-dir{border:0;background:transparent;color:#3d4d51;font-size:12.5px;line-height:24px;padding:0 6px;border-radius:3px;cursor:pointer;text-align:left;}
.pm-tree-dir:hover{background:#eef7f6;}
.pm-tree-dir.active{background:#e2f2f0;color:#0f6b6b;font-weight:700;}
.pm-tree-dir.disabled{color:#b7c2c4;cursor:not-allowed;}
.pm-tree-children{margin-left:14px;}
.pm-report-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 14px;}
.pm-report-toolbar h3{margin:0;font-size:15px;color:#1f3036;}
.pm-report-toolbar .btn{height:36px;padding:0 20px;font-weight:700;}
.modal-foot,footer.modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:10px 16px;border-top:1px solid var(--line);}
#modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:10px 16px;border-top:1px solid var(--line);}

/* AI 处理进度：屏幕居中，显示进度条与实时过程 */
.ai-progress{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:120;background:rgba(9,22,38,.46);backdrop-filter:blur(4px);}
.ai-progress[hidden]{display:none;}
.ai-progress-card{width:520px;max-width:92vw;background:#fff;border:1px solid rgba(255,255,255,.7);border-radius:12px;box-shadow:0 28px 80px -24px rgba(10,28,50,.5);padding:20px 22px 16px;}
.ai-progress-head{display:flex;align-items:center;gap:12px;margin-bottom:12px;}
.ai-progress-head b{font-size:15px;color:#1b2e41;letter-spacing:.2px;}
.ai-progress-head span{margin-left:auto;font-size:13px;font-weight:700;color:#2d548b;font-variant-numeric:tabular-nums;}
.ai-progress-track{height:9px;background:#eaf0f6;border-radius:99px;overflow:hidden;}
.ai-progress-track i{display:block;width:0;height:100%;background:linear-gradient(90deg,#2d548b,#14a7a7);border-radius:99px;transition:width .35s ease;}
.ai-progress-stage{margin-top:11px;color:#2d548b;font-size:12.5px;font-weight:600;min-height:18px;}
.ai-progress-detail{margin-top:4px;color:#6c7d8d;font-size:12px;min-height:18px;line-height:1.6;}
.ai-progress-log{margin-top:12px;padding:9px 11px;max-height:112px;overflow:auto;background:#f6f9fc;border:1px solid #e4ebf3;border-radius:7px;font-size:11.5px;color:#5c7084;}
.ai-progress-log div{display:flex;gap:8px;line-height:1.7;}
.ai-progress-log div span{flex:none;color:#90a0b0;font-variant-numeric:tabular-nums;}
.ai-progress-log div:last-child{color:#2d548b;}
.ai-progress-foot{display:flex;align-items:center;gap:10px;margin-top:10px;color:#93a1af;font-size:11px;}
.ai-progress-foot button{margin-left:auto;height:28px;padding:0 12px;}

/* AI 评审结果 */
.review-summary{display:flex;gap:16px;align-items:stretch;padding:12px 14px;background:#f5f9fd;border:1px solid #e2ebf4;border-radius:9px;margin-bottom:12px;}
.review-score{flex:none;width:104px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-right:1px solid #dfe9f2;}
.review-score strong{font-size:32px;line-height:1;color:#2d548b;font-weight:800;}
.review-score strong small{font-size:13px;color:#8193a4;font-weight:500;}
.review-score span{margin-top:6px;font-size:11px;color:#7a8b9b;}
.review-sum-text{flex:1;min-width:0;}
.review-sum-text b{display:block;color:#1f3448;font-size:13px;margin-bottom:4px;}
.review-sum-text p{margin:0;color:#53697d;font-size:12px;line-height:1.7;}
.review-types{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px;}
.review-types span{padding:1px 8px;border-radius:99px;background:#e9f1fa;color:#2d548b;font-size:11px;line-height:19px;}
.review-meta{margin-top:7px;color:#8596a6;font-size:11px;}
.review-dialog-tip{padding:8px 10px;margin:8px 0 2px;background:#f4f8fc;border-left:3px solid #7fa9cd;color:#5b7185;font-size:11.5px;line-height:1.7;border-radius:0 5px 5px 0;}
.review-model-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,.7fr) minmax(0,.7fr);gap:10px;align-items:end;margin:10px 0 2px;}
.review-model-grid label{margin:0;font-size:11.5px;color:#64777c;}
.review-model-grid select,.review-model-grid input{margin-top:5px;height:34px;border:1px solid #d7e2e4;border-radius:6px;padding:0 8px;background:#fff;font-size:12.5px;width:100%;}
.review-model-grid input{text-align:center;}
.review-model-grid select:focus,.review-model-grid input:focus{outline:none;border-color:#3f9d99;box-shadow:0 0 0 2px rgba(63,157,153,.12);}
.review-model-grid.term-ai-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
@media (max-width:640px){.review-model-grid.term-ai-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}.review-model-grid.term-ai-grid label:first-child{grid-column:auto;}}
@media (max-width:640px){.review-model-grid{grid-template-columns:1fr 1fr;}.review-model-grid label:first-child{grid-column:1/-1;}}
body.theme-dark .review-model-grid label,
body.ui-style-dark .review-model-grid label{color:#9fb2b5;}
body.theme-dark .review-model-grid select,
body.theme-dark .review-model-grid input,
body.ui-style-dark .review-model-grid select,
body.ui-style-dark .review-model-grid input{background:#26363b;border-color:#41565c;color:#dcebec;}
body.theme-dark .review-dialog-tip,
body.ui-style-dark .review-dialog-tip{background:#203036;border-left-color:#5f8fa8;color:#a8bcc0;}
.review-issue{border:1px solid #e4ebf2;border-radius:9px;padding:11px 12px;margin-bottom:9px;background:#fff;transition:border-color .15s;}
.review-issue:hover{border-color:#bfd3e6;}
.review-issue-head{display:flex;align-items:center;gap:8px;margin-bottom:7px;}
.review-issue-head b{font-size:12px;color:#2d548b;background:#edf3fb;border-radius:4px;padding:1px 7px;}
.review-issue-head span{font-size:11px;color:#8b9baa;}
.review-issue-source{font-size:12px;color:#43586c;line-height:1.65;margin-bottom:5px;word-break:break-word;}
.review-issue-target{font-size:12px;color:#65798b;line-height:1.65;padding:6px 8px;background:#f7f9fb;border-radius:5px;margin-bottom:6px;word-break:break-word;}
.review-issue-problem{font-size:12px;color:#a5553d;line-height:1.65;margin-bottom:6px;}
.review-issue-sug{width:100%;min-height:52px;border:1px solid #d9e5f0;border-radius:6px;padding:7px 8px;font-size:12px;line-height:1.6;color:#2f465b;resize:vertical;background:#fff;}
.review-issue-sug:focus{border-color:#8bb3d7;outline:none;box-shadow:0 0 0 3px rgba(45,84,139,.09);}
.review-issue-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:7px;}
.review-issue-actions button{height:26px;padding:0 9px;font-size:11.5px;}
.review-empty{padding:20px;text-align:center;color:#7b8f9f;font-size:12.5px;}
.review-side-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;color:#6b7f8f;font-size:11.5px;}
.review-side-tools .btn{height:26px;padding:0 9px;font-size:11.5px;}
.panel-side .review-summary{flex-direction:column;gap:8px;padding:10px;margin-bottom:9px;}
.panel-side .review-score{width:auto;flex-direction:row;gap:7px;align-items:baseline;border-right:0;border-bottom:1px solid #dfe9f2;padding-bottom:7px;}
.panel-side .review-score strong{font-size:24px;}
.panel-side .review-score span{margin-top:0;}
.panel-side .review-issue{padding:9px;margin-bottom:8px;}
.panel-side .review-issue-actions{flex-direction:column;align-items:stretch;}
.panel-side .review-issue-actions button{width:100%;}
.review-issue.applied{border-color:#a9d2c9;background:#f7fcfa;}
.review-applied{margin-left:auto;color:#2f7d6d;background:#eaf7f2;border-radius:99px;padding:1px 7px;font-size:10.5px;font-style:normal;}


/* 响应式 */
@media (max-width:1440px){
  .kpi-row{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:16px;}
  .kpi:nth-child(4n){border-right:0;}
}
@media (max-width:1200px){
  .editor-right{width:320px;}
  .panel.w360{width:300px;}
  .login-card{grid-template-columns:1fr 300px;}
  .login-left{padding:48px 44px 32px;}
}
body.tb-compact #ed-tool-home{flex-wrap:nowrap;gap:4px;padding:5px 8px;overflow:visible;}
body.tb-compact #ed-tool-home .tb-group{padding-right:4px;gap:1px;}
body.tb-compact #ed-tool-home .tb[data-more],
body.tb-compact #ed-tool-home .tb-format,
body.tb-compact #ed-tool-home .tb-group-aux,
body.tb-compact #ed-tool-home .spacer,
body.tb-compact #ed-tool-home #dirty-hint{display:none;}
body.tb-compact #ed-tool-home .tb > span{display:none;}
body.tb-compact.show-tool-labels #ed-tool-home{overflow-x:auto;}
body.tb-compact.show-tool-labels #ed-tool-home .tb > span{display:inline!important;}
body.tb-compact.show-tool-labels #ed-tool-home .tb-caret{display:none;}
body.tb-compact.show-tool-labels #ed-tool-home .tb{height:32px;padding:0 3px;font-size:11.5px;}
body.tb-compact #ed-tool-home .tb-more{display:flex;}
@media (max-width:420px){
  #ed-tool-home #tb-confirm-menu,
  #ed-tool-home #tb-clear-menu{display:none;}
}
@media (max-width:900px){
  .editor-body{flex-direction:column;}
  .editor-left{flex:1 1 62%;min-height:0;}
  .editor-right{flex:1 1 38%;width:auto;height:auto;min-height:180px;border-left:0;border-top:1px solid var(--line);}
  .preview-pane{height:110px;}
  .editor-filter .inline input[type=search]{width:130px;}
}
@media (max-width:1000px){
  .kpi-row{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:16px;}
  .kpi:nth-child(4n){border-right:0;}
  .dash-row{flex-direction:column;}
  .panel.w360{width:auto;}
}
@media (max-width:820px){
  .kpi-row{grid-template-columns:repeat(2,minmax(0,1fr));}
  .kpi{border-right:0;}
  .login-card{grid-template-columns:1fr;}
  .login-right{display:none;}
  .login-left{padding:40px 28px 30px;}
}

/* ===== 去翻译新窗口 / 编辑器布局对齐生产 ===== */
#editor-boot-cover{display:none;}
html.editor-pending #login-view,
html.editor-pending #app-view{visibility:hidden !important;}
html.editor-pending #editor-boot-cover{
  display:flex;position:fixed;inset:0;z-index:99999;
  align-items:center;justify-content:center;gap:10px;
  background:#f3f8f6;color:#35514d;font-size:14px;
}
#editor-boot-cover .ebc-spin{
  width:18px;height:18px;border:2px solid #b7ded9;border-top-color:#10a6a1;
  border-radius:50%;animation:ebc-spin .8s linear infinite;
}
@keyframes ebc-spin{to{transform:rotate(360deg);}}
.editor-window-bar{display:none;}
#editor-right.side-collapsed{width:46px !important;min-width:46px;max-width:46px;overflow:visible;}
#editor-right.side-collapsed #panel-shell,
#editor-right.side-collapsed #panel-side{display:none !important;}
#editor-right.side-collapsed #panel-rail{flex:0 0 46px;width:46px;}
body.editor-window .sidebar,
body.editor-window .topbar{display:none !important;}
body.editor-window .app{display:block;height:100vh;}
body.editor-window .main{height:100vh;width:100%;}
body.editor-window #editor-view{height:100vh;}
body.editor-window .editor-window-bar{
  display:flex;align-items:center;height:38px;flex:none;
  padding:0 14px;background:#fff;border-bottom:1px solid #e9eeee;
  position:relative;z-index:60;overflow:visible;
}
body.editor-window .editor-top{display:none;}
body.editor-window .editor-toolbar{padding:4px 10px;gap:6px;}
body.editor-window .tb{height:46px;min-width:54px;}
body.editor-window .tb-ai-btn{min-width:62px;}
.edw-tabs{display:flex;align-items:center;gap:0;height:100%;}
.edw-brand{display:flex;align-items:center;gap:8px;height:100%;padding-right:14px;margin-right:8px;border-right:1px solid #e9eeee;}
.edw-brand strong{font-size:12.5px;color:#2d548b;letter-spacing:1px;font-weight:600;white-space:nowrap;}
.edw-brand .brand-logo .hd-logo{font-size:17px;}
.edw-tab{border:0;background:none;height:100%;padding:0 12px;font-size:13px;color:#4d5d61;border-bottom:2px solid transparent;white-space:nowrap;flex:0 0 auto;}
.edw-tab.active{color:#0d9c9c;border-bottom-color:#0d9c9c;font-weight:600;}
.edw-labels{
  width:28px;height:28px;margin-left:2px;padding:0;border:0;border-radius:3px;
  background:transparent;color:#6d7f83;display:inline-flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:600;letter-spacing:-.5px;cursor:pointer;
  flex:0 0 auto;
}
.edw-labels:hover{background:#eef7f7;color:#0d8787;}
.edw-labels.active{background:#e4f7f5;color:#087f7b;}
.edw-collapse{
  width:26px;height:28px;margin-left:2px;padding:0;border:0;border-radius:3px;
  background:transparent;color:#6d7f83;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;
  flex:0 0 auto;
}
.edw-collapse:hover{background:#eef7f7;color:#0d8787;}
.edw-collapse svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease;}
#editor-view.toolbars-collapsed .editor-toolbar{display:none !important;}
#editor-view.toolbars-collapsed .edw-collapse svg{transform:rotate(180deg);}
.edw-user-wrap{position:relative;display:flex;align-items:center;}
.edw-user{
  margin:0;color:#5b6b6e;font-size:12.5px;display:flex;align-items:center;gap:6px;
  border:0;background:none;height:28px;padding:0 5px;border-radius:3px;cursor:pointer;white-space:nowrap;
}
.edw-user:hover{background:#eef7f7;color:#0d8787;}
.edw-actions{display:flex;align-items:center;gap:6px;margin-left:8px;}
.edw-ico{
  width:26px;height:28px;display:inline-flex;align-items:center;justify-content:center;
  border:0;background:transparent;border-radius:3px;cursor:pointer;padding:0;
}
.edw-ico:hover{background:#f2f7f7;}
.edw-ico svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.edw-ico.switch{color:#4197d3;}
.edw-ico.deliver{color:#1f7fd0;}
.edw-ico.deliver:disabled{opacity:.35;cursor:default;}
.edw-ico.export{color:#2f6ab0;}
.edw-ico.import{color:#22b36b;}
.edw-ico.settings{color:#e14a86;}
.edw-ico.help{color:#7a3f9d;}
.edw-ico.full{color:#4b2d7f;}
.edw-ico.active{background:#e8f4ff;}
.edw-menu-wrap{position:relative;display:flex;align-items:center;}
.edw-menu{
  position:absolute;top:31px;right:0;min-width:150px;padding:4px;background:#fff;
  border:1px solid #dce7e7;border-radius:2px;box-shadow:0 5px 16px rgba(24,55,60,.18);z-index:80;
}
.edw-menu[hidden]{display:none;}
.edw-task-menu{width:230px;max-height:330px;overflow:auto;padding-top:0;}
.edw-menu-title{position:sticky;top:0;z-index:1;background:#fff;padding:8px 9px;border-bottom:1px solid #edf2f2;color:#6b7a7e;font-size:11.5px;}
.edw-task-item{
  width:100%;border:0;background:#fff;display:flex;align-items:center;justify-content:space-between;
  padding:8px 9px;text-align:left;font-size:12.5px;color:#415458;cursor:pointer;white-space:nowrap;
}
.edw-task-item em{font-style:normal;color:#93a4a7;font-size:11px;margin-left:8px;}
.edw-task-item:hover{background:#f1f9f9;color:#0d8787;}
.edw-task-item.active{color:#0d8f8b;background:#eaf7f7;font-weight:600;}
.edw-task-empty,.edw-task-error{padding:10px 9px;color:#93a4a7;font-size:12px;line-height:1.5;}
.edw-task-error{color:#c85a4d;}
.edw-menu-wrap .edw-menu{width:188px;}
.edw-export-menu button{
  width:100%;border:0;background:#fff;text-align:left;padding:7px 10px;font-size:12.5px;
  color:#435659;cursor:pointer;white-space:nowrap;
}
.edw-export-menu button:hover{background:#eef8f8;color:#0d8787;}
.ed-view-toolbar{align-items:center;padding:5px 12px;background:#fff;}
.view-tool{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border:0;background:#fff;color:#5e6c70;font-size:12.5px;}
.view-tool b{font-size:15px;color:#7c8d91;font-weight:600;}
.view-tool:hover{background:#f0fafa;color:#0d8787;}
.tb-format .tb.fmt b{font-family:Georgia,serif;}
.panel-engine-bar{display:flex;align-items:center;justify-content:flex-end;gap:6px;padding:6px 8px;border-bottom:1px solid #edf2f2;background:#fff;}
.panel-engine-bar label{font-size:12px;color:#6b7a7e;}
.panel-engine-bar select{height:26px;min-width:118px;border:1px solid #93c9c9;border-radius:2px;background:#fff;color:#2c5b61;font-size:12px;padding:0 4px;}
.panel-engine-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#9aa7aa;padding:48px 12px;gap:6px;}
.panel-engine-empty b{font-size:38px;font-weight:400;color:#c9d7da;}

/* ===== 我的任务 / 企业管理 ===== */
.task-tabs{display:flex;gap:26px;border-bottom:1px solid #dfe8e7;padding:0 2px;margin-bottom:12px;}
.task-tab{border:0;background:none;padding:10px 0 8px;color:#5d6c70;font-size:13.5px;border-bottom:2px solid transparent;}
.task-tab.active{color:#0d9c9c;border-bottom-color:#0d9c9c;font-weight:600;}
.task-grid{table-layout:auto;}
.task-grid td:first-child{text-align:center;}
.task-grid input[type=radio]{width:14px;height:14px;margin:0;vertical-align:middle;}
.task-grid tbody tr.selected,.task-grid tbody tr.sel{background:#d9f5f5;}
.task-grid .pager-btn:disabled{opacity:.4;cursor:default;}
.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:54px 0;color:#a4b1b4;}
.empty-state b{font-size:38px;font-weight:400;color:#cbd8da;}
.enterprise-tabs{display:flex;gap:26px;border-bottom:1px solid #dfe8e7;padding:0 18px;background:#fff;}
.enterprise-tabs button{border:0;background:none;padding:12px 0 10px;color:#4d5d61;font-size:13.5px;border-bottom:2px solid transparent;}
.enterprise-tabs button.active{color:#0d9c9c;border-bottom-color:#0d9c9c;font-weight:600;}
.ent-card{background:#fff;border:1px solid #e5eceb;padding:20px 22px;margin-top:0;}
.ent-form{max-width:760px;color:#45565a;}
.ent-form-row{display:flex;align-items:flex-start;gap:12px;margin-bottom:18px;font-size:13px;}
.ent-form-row > label{width:118px;text-align:right;padding-top:7px;color:#4e5f63;flex:none;}
.ent-form-row .req{color:#e44d43;margin-right:3px;}
.ent-form-row input[type=text],.ent-form-row input[type=email],.ent-form-row textarea{width:380px;height:30px;border:1px solid #dce5e4;padding:4px 8px;color:#394b4f;background:#fff;}
.ent-form-row textarea{height:82px;resize:vertical;}
.ent-form-row .logo-box{width:98px;height:78px;border:1px solid #e4ebea;display:flex;align-items:center;justify-content:center;background:#fff;}
.ent-form-row .logo-box .hd-logo{width:58px;height:58px;font-size:22px;}
.ent-form-row .hint{font-size:11.5px;color:#93a2a4;margin-top:4px;}
.ent-save{height:30px;padding:0 24px;border:0;background:#15b9b0;color:#fff;border-radius:2px;}
.ent-note{border-top:1px solid #edf2f1;margin-top:22px;padding-top:16px;color:#607074;font-size:12.5px;line-height:2;}
.ent-note h3{font-size:15px;color:#35494d;margin:0 0 8px;font-weight:600;}
.ent-grid{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:14px;padding:20px;}
.ent-prefix-card{border:1px solid #e3ebea;padding:12px 14px;min-height:104px;background:#fff;position:relative;}
.ent-prefix-card .t{font-size:13px;color:#405256;margin-bottom:8px;}
.ent-prefix-card .d{font-size:12.5px;color:#718184;line-height:1.8;}
.ent-prefix-card .edit{position:absolute;right:12px;bottom:8px;border:0;background:none;color:#e5a436;font-size:16px;}
.ent-account-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px;padding:20px;}
.ent-account-card{border:1px solid #e3ebea;padding:16px;display:flex;gap:14px;min-height:150px;position:relative;background:#fff;}
.ent-account-card .lines{font-size:12.8px;color:#5a6b6e;line-height:1.9;}
.ent-account-card .lines b{color:#405256;font-weight:500;}
.ent-account-card .hd-logo{width:66px;height:66px;font-size:24px;flex:none;}
.ent-account-card .acts{position:absolute;left:0;right:0;bottom:0;display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #eef3f2;}
.ent-account-card .acts button{border:0;background:#fff;height:32px;color:#e5a436;}
.ent-add-card{border:1px dashed #d6e1e0;display:flex;align-items:center;justify-content:center;min-height:150px;color:#57696d;font-size:13px;background:#fff;}
.ent-email-wrap{display:grid;grid-template-columns:1fr 1.15fr;gap:18px;padding:18px 20px;}
.ent-box{border:1px solid #e4eceb;background:#fff;padding:16px 20px;}
.ent-box h3{font-size:14.5px;margin:0 0 14px;color:#3d5054;font-weight:600;}
.ent-email-line{font-size:13px;color:#506165;margin-bottom:12px;}
.ent-email-line b{font-weight:500;color:#35494d;}
.ent-testbox{border:1px solid #f1e3ad;background:#fffdf3;padding:10px 12px;font-size:12.5px;color:#886f2a;}
.ent-email-input{height:30px;border:1px solid #dce5e4;width:100%;margin:8px 0 12px;padding:0 8px;}
.ent-email-item{border-bottom:1px solid #edf2f1;padding:12px 0;}
.ent-email-item .t{font-size:13.5px;color:#405256;margin-bottom:6px;}
.ent-email-item .d{font-size:12px;color:#8a999c;margin-bottom:10px;}
.ent-email-item .ops{display:flex;gap:16px;color:#15a39c;font-size:12px;}
.ent-email-item .ops span{cursor:pointer;}
.ent-email-item .ops span:hover{text-decoration:underline;}
.ent-badge{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:9px;background:#e6f7f4;color:#0f9a8c;font-size:11px;font-weight:400;}
.ent-badge.off{background:#f2f4f5;color:#98a4a6;}
.ent-template-content{width:100%;min-height:320px;border:1px solid #dfe8e6;background:#fbfdfc;padding:10px;font-family:Consolas,"Courier New",monospace;font-size:12px;line-height:1.7;color:#405256;resize:vertical;}
.ent-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px 14px;background:#fff;border-bottom:1px solid #eef2f1;}
.ent-toolbar .right{margin-left:auto;color:#6b7a7e;font-size:12.5px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;}
.ent-table-card{background:#fff;border:1px solid #e4eceb;}
.ent-table-card .grid{width:100%;}
.ent-table-card .grid tbody tr.selected{background:#e8f8f6;}
.ent-table-card .grid tbody tr.selected td{color:#1f6f6b;}
.ent-toolbar .inline{display:flex;align-items:center;gap:6px;font-size:12.5px;color:#5f7073;}
.ent-toolbar .inline select{height:28px;border:1px solid #dfe8e6;background:#fff;padding:0 6px;}
.ent-toolbar .inline input[type=search]{height:28px;width:150px;border:1px solid #dfe8e6;border-radius:3px;padding:0 8px;background:#fff;}
.emp-role-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));max-height:150px;margin-top:3px;}

.ent-pager{display:flex;align-items:center;gap:8px;padding:9px 14px;border-top:1px solid #eef2f1;color:#6b7a7e;font-size:12.5px;}
.ent-pager .ent-page{min-width:58px;text-align:center;}
.ent-pager .ent-page-total{margin-left:auto;}
.ent-sum td{background:#fbfdfd;color:#5f7073;font-weight:500;}
.perm-layout{display:grid;grid-template-columns:1fr 1.1fr;gap:12px;margin-top:12px;}
.perm-tree{border:1px solid #e3ebe9;height:300px;overflow:auto;padding:12px;font-size:12.5px;color:#4d5f62;line-height:2.1;}
.perm-tree .group{padding-left:18px;}
.perm-tree .leaf{padding-left:36px;}
.perm-current{border:1px solid #e3ebe9;height:300px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#9aa7aa;background:#fbfdfd;}
.perm-current b{font-size:38px;font-weight:400;color:#cbd8da;}
.perm-tip{background:#e9fbfa;border:1px solid #b9eeea;color:#277d79;padding:8px 12px;font-size:12.5px;margin-bottom:10px;}
@media(max-width:1200px){.ent-grid{grid-template-columns:repeat(2,minmax(220px,1fr));}.ent-email-wrap{grid-template-columns:1fr;}}

.ent-account-card{display:block;}
.ent-account-card .lines{position:relative;z-index:1;padding-right:76px;min-width:0;}
.ent-account-card .lines div{word-break:break-word;}
.ent-account-card .hd-logo{position:absolute;right:14px;top:14px;}
.ent-account-card .ent-logo-img{position:absolute;right:14px;top:14px;width:66px;height:66px;object-fit:contain;}
.ent-form-row .logo-box .ent-logo-img{max-width:92px;max-height:72px;object-fit:contain;}

.perm-tree div{white-space:nowrap;}
.perm-tree input[type=checkbox]{width:14px;height:14px;margin:0 5px 0 0;padding:0;vertical-align:middle;}

/* 去重预翻 */
.dp-section{border-top:1px solid #eef2f2;padding:10px 0 2px}
.dp-section b{display:block;margin-bottom:8px;color:#2b3d44}
.dp-checks{display:flex;gap:18px;flex-wrap:wrap;margin-bottom:8px}
.dp-checks label,.dp-inline{font-size:13px;color:#44575f;display:inline-flex;align-items:center;gap:5px}
.dp-row{display:flex;gap:22px;align-items:center;flex-wrap:wrap;margin-bottom:4px}
.dp-row label{font-size:13px;color:#44575f}
.dp-track{height:8px;background:#edf2f2;border-radius:5px;overflow:hidden}
.dp-fill{height:100%;width:0;background:var(--teal);transition:width .25s ease}
.dp-status{margin-top:7px;font-size:13px;color:#5a6b70}
.dp-status.ok{color:#0f8f8f}
.dp-status.err{color:#c0392b}
.modal-body .dp-checks label,.modal-body .dp-inline{display:inline-flex;align-items:center;gap:5px;margin:0;line-height:1.4;white-space:nowrap}
.modal-body .dp-checks input[type=checkbox],.modal-body .dp-inline input[type=checkbox]{width:14px;height:14px;padding:0;margin:0;flex:none;accent-color:var(--teal)}

/* 语言资产 */
.asset-type-tabs{display:flex;gap:8px;margin:0 0 12px;}
.asset-type-tab{
  border:1px solid #d7e2e1;background:#fff;color:#526468;border-radius:3px;
  padding:6px 18px;font-size:13px;line-height:18px;
}
.asset-type-tab:hover{border-color:#9fc6c4;color:#0d7f80;}
.asset-type-tab.active{border-color:#0d9c9c;background:#e9f7f6;color:#087c7d;font-weight:600;}
.asset-grid{table-layout:auto;min-width:960px;}
.asset-grid td:nth-child(n+2):not(:last-child){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.asset-grid td:first-child,.asset-grid th:first-child{text-align:center;}
.asset-grid input[type=radio]{width:14px;height:14px;margin:0;padding:0;accent-color:var(--teal);}
.asset-name-link{
  border:0;background:none;padding:0;text-align:left;color:#137f83;font-weight:600;
  max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.asset-name-link:hover{text-decoration:underline;}
.asset-detail-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
  border:1px solid #e4eceb;background:#f8fbfb;border-radius:3px;padding:10px 12px;margin-bottom:10px;
}
.asset-detail-title{display:flex;align-items:center;gap:8px;min-width:0;}
.asset-detail-title b{font-size:14px;color:#25383e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.asset-record-filter{margin-top:0;}
.asset-record-grid{table-layout:fixed;}
.asset-record-grid th:nth-child(2),.asset-record-grid th:nth-child(3){width:29%;}
.asset-record-grid th:nth-child(4){width:16%;}
.asset-record-grid .ar-source,.asset-record-grid .ar-target{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.asset-record-wrap{max-height:36vh;}
.asset-form{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;}
.asset-form label{display:flex;flex-direction:column;gap:5px;font-size:13px;color:#526468;}
.asset-form label.wide{grid-column:1 / -1;}
.asset-form input,.asset-form select{padding:6px 8px;border:1px solid #cfdbda;border-radius:3px;font:inherit;color:#263b41;background:#fff;}
.asset-form textarea{padding:8px;border:1px solid #cfdbda;border-radius:3px;font:inherit;resize:vertical;color:#263b41;}
.asset-form select:disabled{background:#f3f6f6;color:#7b8a8e;}
.asset-form-record{grid-template-columns:1fr;}
.asset-file{display:block;margin:0 0 12px;font-size:13px;color:#526468;}
.asset-file input{display:block;margin-top:5px;width:100%;}

/* 绩效管理 */
.perf-title-tools{display:flex;align-items:center;gap:14px;font-size:12px;}
.perf-tabs .task-tab em{font-style:normal;margin-left:5px;color:#8fa0a3;font-size:11.5px;font-weight:400;}
.perf-tabs .task-tab.active em{color:#0d9c9c;}
.perf-kpi-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px;}
.perf-kpi{border:1px solid #e2eae9;background:#fff;border-radius:3px;padding:12px 14px;min-width:0;position:relative;overflow:hidden;}
.perf-kpi:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#cfdedd;}
.perf-kpi.warn:before{background:#efaa43;}
.perf-kpi.ok:before{background:#1ea97c;}
.perf-kpi .k{display:block;font-size:12px;color:#7b8b8f;margin-bottom:6px;}
.perf-kpi .v{display:block;font-size:20px;color:#263b41;letter-spacing:.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.perf-kpi.warn .v{color:#d58b1f;}
.perf-kpi.ok .v{color:#14926f;}
.perf-kpi .s{display:block;margin-top:5px;font-size:11.5px;color:#93a2a5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.perf-action-note{font-size:12px;color:#8a999c;margin-left:4px;}
.perf-filter select{min-width:104px;height:30px;border:1px solid #dfe8e6;background:#fff;padding:0 6px;color:#405256;font-size:12.5px;}
.perf-table-wrap{min-height:230px;max-height:calc(100vh - 548px);overflow:auto;}
.perf-grid thead th,.perf-paid-grid thead th{position:sticky;top:0;z-index:2;background:#f4f9f8;}
.perf-grid{table-layout:auto;min-width:1120px;}
.perf-paid-grid{table-layout:auto;min-width:980px;}
.perf-grid th,.perf-paid-grid th{white-space:nowrap;}
.perf-grid th[data-perf-sort],.perf-paid-grid th[data-paid-sort]{cursor:pointer;user-select:none;}
.perf-grid th.sorted,.perf-paid-grid th.sorted{color:#0d8f90;}
.perf-grid th.sorted:after,.perf-paid-grid th.sorted:after{
  content:attr(data-dir);font-size:9px;color:#0d8f90;margin-left:3px;letter-spacing:0;
}
.perf-grid td.num,.perf-paid-grid td.num,.perf-task-grid td.num{text-align:right;font-variant-numeric:tabular-nums;}
.perf-grid td.num.strong,.perf-paid-grid td.num.strong,.perf-task-grid td.num.strong{font-weight:600;color:#2d4b52;}
.perf-grid td.neg,.perf-task-grid td.neg{color:#d9534f;}
.perf-grid td.warn-text,.perf-task-grid td.warn-text{color:#d58b1f;font-weight:600;}
.perf-paid-grid td.ok-text{color:#14926f;font-weight:600;}
.perf-grid td:nth-child(2),.perf-paid-grid td:nth-child(3){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.perf-row-actions{white-space:nowrap;}
.perf-row-actions .ghost{margin-right:5px;}
.perf-pill{display:inline-block;padding:2px 8px;border-radius:10px;font-size:11.5px;line-height:17px;white-space:nowrap;}
.perf-pill.unpaid{background:#fff4df;color:#c27a13;}
.perf-pill.partial{background:#eaf3ff;color:#2d6ca8;}
.perf-pill.settled{background:#e6f7f1;color:#138a63;}
.ok-text{color:#138a63;}
.warn-text{color:#d58b1f;}
.red-text{color:#d9534f;}
.neg{color:#d9534f;}

.perf-detail-hero{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  border:1px solid #e1ebe9;background:linear-gradient(90deg,#f7fbfb,#fff);border-radius:4px;padding:12px 14px;
}
.perf-person{display:flex;align-items:center;gap:12px;min-width:0;}
.perf-avatar{width:42px;height:42px;border-radius:50%;background:#2d548b;color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:600;flex:none;}
.perf-person b{display:block;font-size:15px;color:#25383e;margin-bottom:4px;}
.perf-person span{font-size:12px;color:#7d8d90;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.perf-hero-right{display:flex;align-items:center;gap:16px;font-size:12.5px;color:#6f8084;flex:none;}
.perf-hero-right b{font-size:17px;color:#2b444b;margin-left:4px;}
.perf-detail-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:10px 0;}
.perf-detail-kpis>div{border:1px solid #e6eeec;background:#fbfdfd;border-radius:3px;padding:8px 10px;min-width:0;}
.perf-detail-kpis span{display:block;font-size:11.5px;color:#86969a;margin-bottom:4px;}
.perf-detail-kpis b{display:block;font-size:14px;color:#2b424a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.perf-detail-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:2px 0 6px;}
.perf-detail-actions .btn{height:28px;padding:0 10px;font-size:12px;}
.perf-detail-actions .spacer{flex:1;}
.perf-sub-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0 6px;padding-left:8px;border-left:3px solid #2d548b;}
.perf-sub-head b{font-size:13px;color:#2b424a;}
.perf-sub-head span{font-size:11.5px;color:#8d9c9f;}
.perf-task-wrap{border:1px solid #e3ebe9;border-radius:4px;max-height:35vh;overflow:auto;}
.perf-task-grid{table-layout:auto;min-width:1180px;width:100%;font-size:12px;}
.perf-task-grid th{position:sticky;top:0;z-index:1;}
.perf-task-grid td{white-space:nowrap;}
.perf-task-grid td:nth-child(3){max-width:190px;overflow:hidden;text-overflow:ellipsis;}
.perf-task-grid .ghost{height:23px;padding:0 7px;font-size:11.5px;}
.perf-task-grid tfoot td{background:#f3f7f6;border-top:2px solid #cfdedb;font-weight:600;color:#2b424a;white-space:nowrap;}
.perf-task-grid tfoot td:first-child{padding-left:12px;text-align:left;}
.perf-task-grid tfoot td.muted{font-weight:400;color:#86969a;}
.perf-delivery-time{color:#4e6267;font-variant-numeric:tabular-nums;}
.perf-time-delta{display:inline-block;margin-left:5px;padding:0 5px;border:1px solid;border-radius:2px;font-size:10.5px;line-height:16px;font-weight:600;vertical-align:1px;}
.perf-time-delta.pos{color:#11875f;background:#eefaf4;border-color:#b9e5d3;}
.perf-time-delta.neg{color:#c3413b;background:#fdf0ef;border-color:#f0c4c1;}
.perf-type{display:inline-block;padding:1px 6px;border-radius:2px;font-size:11px;white-space:nowrap;}
.perf-type.cat{background:#eaf3fb;color:#2e6a97;}
.perf-type.off{background:#f4efe4;color:#8d6b31;}
.perf-detail-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:8px 0 2px;font-size:12px;color:#7d8d90;}
.perf-detail-pager select{height:26px;border:1px solid #dfe8e6;background:#fff;padding:0 5px;font-size:12px;}
.perf-history{border:1px solid #e3ebe9;border-radius:4px;max-height:150px;overflow:auto;background:#fcfefe;}
.perf-history-item{display:flex;align-items:center;gap:14px;padding:8px 12px;border-bottom:1px solid #edf3f2;font-size:12px;color:#65777b;}
.perf-history-item:last-child{border-bottom:0;}
.perf-history-item .d{width:130px;color:#849498;}
.perf-history-item b{width:92px;color:#2c444b;font-size:13px;}
.perf-history-item span:nth-child(3){width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.perf-history-item .ghost{margin-left:auto;height:24px;font-size:11.5px;}
.perf-history-empty{padding:24px 12px;text-align:center;color:#9aa8aa;font-size:12.5px;}
.perf-pay-head{display:flex;align-items:baseline;gap:10px;margin-bottom:10px;}
.perf-pay-head b{font-size:15px;color:#25383e;}
.perf-pay-head span{font-size:12px;color:#87979a;}
.perf-pay-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px;}
.perf-pay-facts>div{border:1px solid #e5edeb;background:#fbfdfd;border-radius:3px;padding:8px 10px;}
.perf-pay-facts span{display:block;font-size:11.5px;color:#86969a;margin-bottom:4px;}
.perf-pay-facts b{font-size:14px;color:#2b424a;}
.perf-pay-form{grid-template-columns:1fr;}
.perf-pay-form label{font-size:12.5px;}
.perf-pay-form input{height:34px;font-size:13px;}
.perf-pay-tip{grid-column:1/-1;margin:0;font-size:11.5px;line-height:1.7;color:#8a999c;}
.perf-adj-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border:1px solid #e5edeb;background:#f9fcfc;padding:10px 12px;border-radius:3px;}
.perf-adj-head b{display:block;font-size:14px;color:#25383e;margin-bottom:3px;}
.perf-adj-head span{font-size:12px;color:#7e8e91;}
.perf-adj-head>div:last-child{font-size:12px;color:#7e8e91;white-space:nowrap;}
.perf-adj-head>div:last-child b{display:inline;font-size:15px;margin-left:5px;color:#2b444b;}
.perf-adj-list{border:1px solid #e3ebe9;border-radius:4px;max-height:180px;overflow:auto;background:#fff;}
.perf-adj-item{display:flex;align-items:center;gap:10px;padding:8px 10px;border-bottom:1px solid #edf3f2;font-size:12px;}
.perf-adj-item:last-child{border-bottom:0;}
.perf-adj-type{display:inline-block;width:36px;text-align:center;padding:1px 4px;border-radius:2px;font-size:11px;flex:none;}
.perf-adj-type.reward{background:#e8f7f1;color:#11875f;}
.perf-adj-type.deduct{background:#fdeceb;color:#c3413b;}
.perf-adj-item b{width:68px;text-align:right;font-size:12.5px;flex:none;}
.perf-adj-item .reason{flex:1;min-width:0;color:#526468;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.perf-adj-item .muted{width:120px;font-size:11.5px;flex:none;}
.perf-adj-item .ghost{height:23px;padding:0 7px;font-size:11.5px;}
.perf-adj-form{grid-template-columns:150px 150px minmax(0,1fr);align-items:end;}
.perf-adj-form label{font-size:12.5px;}
.perf-adj-form input,.perf-adj-form select{height:30px;}
.perf-adj-actions{display:flex;align-items:center;gap:8px;margin-top:10px;}
.perf-adj-actions .spacer{flex:1;}
@media(max-width:1200px){
  .perf-kpi-row{grid-template-columns:repeat(2,minmax(0,1fr));}
  .perf-detail-kpis{grid-template-columns:repeat(3,minmax(0,1fr));}
  .perf-adj-form{grid-template-columns:1fr 1fr;}
  .perf-adj-form label.wide{grid-column:1/-1;}
}

/* 个人中心 */
.personal-head-tools{display:flex;align-items:center;gap:10px;min-height:28px;}
.personal-settings-card{
  background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.04);
  display:grid;grid-template-columns:180px minmax(0,1fr);min-height:188px;
}
.personal-settings-nav{padding:18px 0 18px 18px;border-right:1px solid #edf2f2;}
.personal-subtab{
  display:block;width:100%;height:46px;padding:0 14px;border:0;border-right:2px solid transparent;
  background:none;color:#4e5e63;text-align:left;font-size:13.5px;cursor:pointer;
}
.personal-subtab:hover{color:var(--teal-dark);background:#f7fbfa;}
.personal-subtab.active{background:#e8fbfb;color:var(--teal-dark);border-right-color:var(--teal);}
.personal-settings-body{padding:42px 40px 20px;min-width:0;}
.personal-settings-body h3{margin:0 0 20px;font-size:15px;font-weight:500;color:#303f44;}
.personal-pane{min-height:120px;}
.personal-basic-list{display:grid;gap:10px;margin-top:6px;}
.personal-basic-line{display:flex;align-items:center;gap:9px;min-height:24px;color:#3d4f54;font-size:13.5px;}
.personal-basic-line i{width:18px;text-align:center;font-style:normal;color:#6f8084;font-size:15px;}
.personal-basic-line b{font-weight:500;color:#25363c;font-size:14px;}
.personal-role-pill{
  display:inline-block;border:1px solid #c8d3d4;color:#59696e;border-radius:2px;
  padding:1px 8px;font-size:12px;line-height:18px;
}
.personal-dept-text{color:#4a5b60;}
.personal-field{max-width:320px;margin-bottom:18px;}
.personal-field label{display:block;margin-bottom:7px;color:#4b5b60;font-size:13px;}
.personal-field .req{color:#e2504a;margin-right:3px;}
.personal-field input[type=text],.personal-field input[type=password]{
  width:100%;height:34px;padding:0 10px;border:1px solid #dce5e4;border-radius:3px;
  background:#fff;color:#394b4f;font-size:13px;box-sizing:border-box;
}
.personal-field input[type=text]:focus,.personal-field input[type=password]:focus{
  border-color:#79c5c3;outline:none;box-shadow:0 0 0 2px rgba(20,184,184,.08);
}
.personal-field input::placeholder{color:#b6c1c3;}
.personal-update{height:32px;padding:0 16px;min-width:104px;margin-top:15px;}
.pwd-wrap{position:relative;}
.pwd-wrap input{padding-right:38px;}
.pwd-eye{
  position:absolute;right:1px;top:1px;width:34px;height:32px;border:0;background:transparent;
  color:#9dabad;cursor:pointer;font-size:14px;line-height:32px;
}
.pwd-eye:hover{color:#5f7579;}

.personal-module-card{
  background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.04);
  padding:21px 16px 14px;min-height:340px;
}
.personal-module-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:20px;min-height:30px;}
.personal-module-toolbar .btn{height:30px;}
.btn.green{background:#58b95a;border-color:#58b95a;color:#fff;}
.btn.green:hover{background:#45a447;border-color:#45a447;color:#fff;}
.personal-table-wrap{
  position:relative;overflow:auto;border:1px solid #e1e8e7;border-radius:2px;
  min-height:228px;max-height:calc(100vh - 310px);background:#fff;
}
.personal-perf-wrap,.personal-lib-wrap{height:228px;max-height:228px;}
.personal-perf-grid{min-width:1660px;table-layout:fixed;}
.personal-lib-grid{min-width:1110px;table-layout:fixed;}
.personal-perf-grid th,.personal-perf-grid td,.personal-lib-grid th,.personal-lib-grid td{padding-top:10px;padding-bottom:10px;}
.personal-perf-grid th,.personal-lib-grid th{font-size:12.5px;}
.personal-perf-grid td,.personal-lib-grid td{font-size:12.5px;color:#46575c;}
.personal-perf-grid .w40,.personal-lib-grid .w42{width:40px;padding-left:10px;padding-right:4px;}
.personal-perf-grid tbody tr,.personal-lib-grid tbody tr{cursor:default;}
.personal-perf-grid tbody tr.sel,.personal-lib-grid tbody tr.sel{background:#e2f7f7;}
.personal-perf-grid tbody tr:hover,.personal-lib-grid tbody tr:hover{background:#f2fbfb;}
.personal-lib-grid .lib-name{border:0;background:none;padding:0;font:inherit;color:var(--teal-dark);cursor:pointer;}
.personal-lib-grid .lib-name:hover{text-decoration:underline;}
.personal-lib-grid th[data-lib-sort]{cursor:pointer;}
.personal-empty{color:#a7b3b6;padding:0 !important;text-align:center;cursor:default;}
.personal-empty-box{position:sticky;left:0;width:calc(100vw - 252px);height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;}
.personal-empty .empty-ico{display:block;width:44px;height:31px;margin:0 auto 10px;color:#cdd9db;}
.personal-empty .empty-text{font-size:12.5px;}
.th-tool{color:#c2cdd0;font-size:10px;margin-left:3px;letter-spacing:0;}
.personal-perf-grid .num,.personal-lib-grid .num{text-align:right;}
.personal-perf-grid th.num,.personal-lib-grid th.num{text-align:right;}
.personal-perf-detail{height:24px;padding:0 8px;border:1px solid #dce5e4;border-radius:2px;background:#fff;color:var(--teal-dark);font-size:11.5px;cursor:pointer;}
.personal-perf-detail:hover{border-color:var(--teal);}
@media(max-width:1000px){
  .personal-settings-card{grid-template-columns:150px minmax(0,1fr);}
  .personal-settings-body{padding:38px 24px 20px;}
  .personal-module-card{padding:21px 12px 14px;}
  .personal-perf-wrap,.personal-lib-wrap{height:228px;max-height:228px;}
}
@media(max-width:760px){
  .personal-settings-card{grid-template-columns:1fr;}
  .personal-settings-nav{display:flex;overflow-x:auto;padding:0;border-right:0;border-bottom:1px solid #edf2f2;}
  .personal-subtab{width:auto;flex:none;height:42px;border-right:0;border-bottom:2px solid transparent;text-align:center;padding:0 16px;}
  .personal-subtab.active{border-bottom-color:var(--teal);}
  .personal-settings-body{padding:20px 18px 20px;}
  .personal-field{max-width:none;}
}
.topbar > .crumb{display:none;}
#personal-settings,#personal-mperf,#personal-lib{margin-top:24px;}

#personal-pane-info{min-height:300px;}
#personal-pane-security{min-height:350px;}

#personal-pwd-save{margin-top:30px;}

.personal-empty-overlay{position:absolute;left:1px;right:16px;top:34px;bottom:16px;padding-top:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff;pointer-events:none;z-index:2;}
.personal-empty-overlay .empty-ico{display:block;width:44px;height:31px;margin:0 auto 10px;color:#cdd9db;}
.personal-empty-overlay .empty-text{font-size:12.5px;color:#a7b3b6;}

/* 加权配置 */
.coef-grid{table-layout:fixed;}
.coef-grid th{white-space:nowrap;padding-left:6px;padding-right:6px;}
.coef-grid td{height:52px;padding-left:6px;padding-right:6px;}
.coef-pct-cell{display:flex;align-items:center;gap:4px;justify-content:center;width:100%;min-width:0;}
.coef-pct-cell input{width:100%;min-width:0;max-width:72px;height:28px;border:1px solid #dce7e5;background:#fff;border-radius:2px;text-align:center;color:#405256;font-size:13px;padding:0 4px;outline:none;}
.coef-pct-cell input:focus{border-color:#15b9b0;box-shadow:0 0 0 2px rgba(21,185,176,.12);}
.coef-pct-cell span{color:#6d7d80;font-size:12.5px;}
.coef-pct-cell span:empty{display:none;}
.coef-del{border:0;background:none;color:#d9534f;font-size:12.5px;cursor:pointer;padding:4px 6px;}
.coef-del:hover{text-decoration:underline;}
.coef-add-row td{padding:8px 10px!important;height:auto!important;}
.coef-add{display:block;width:100%;height:34px;border:1px dashed #d8e5e3;background:#fbfdfc;color:#52666a;font-size:12.5px;cursor:pointer;}
.coef-add:hover{border-color:#15b9b0;color:#0d9c9c;}
.coef-actions{text-align:center;padding:14px 0 4px;}

/* 权限配置（真实菜单树） */
.perm-pane-title{font-size:12px;color:#879598;margin:0 0 5px;}
.perm-pane-title b{color:#405256;font-weight:500;}
.perm-tree{height:360px;line-height:1.45;padding:8px 6px;background:#fff;}
.perm-node{display:flex;align-items:center;min-height:31px;padding:2px 4px;border-radius:2px;white-space:nowrap;}
.perm-node.lv1{padding-left:16px;}
.perm-node.lv2{padding-left:36px;}
.perm-node.lv3{padding-left:56px;}
.perm-node.sel{background:#e9f8f6;color:#0b7f7f;}
.perm-caret{width:18px;height:24px;border:0;background:none;color:#7f8f92;font-size:12px;line-height:1;cursor:pointer;padding:0;flex:none;}
.perm-node input[type=checkbox]{width:14px;height:14px;margin:0 7px 0 0;padding:0;flex:none;accent-color:#15b9b0;}
.perm-label{cursor:pointer;font-size:12.5px;}
.perm-children.collapsed{display:none;}
.perm-func-box{height:360px;border:1px solid #e3ebe9;background:#fff;padding:12px 14px;overflow:auto;}
.perm-func-head{font-size:12px;color:#7b8b8e;border-bottom:1px solid #eef3f2;padding-bottom:7px;margin-bottom:4px;}
.perm-func-list{min-height:44px;}
.perm-func-item{display:flex!important;align-items:center;gap:6px;margin:9px 0!important;color:#405256;font-size:12.5px;line-height:1.5;}
.perm-func-item input{width:14px!important;height:14px;margin:0!important;padding:0;flex:none;accent-color:#15b9b0;}
.perm-func-item.disabled,.perm-access label.disabled{color:#b4bfc1;}
.perm-access{border-top:1px solid #eef3f2;margin-top:14px;padding-top:12px;color:#586b6f;font-size:12.5px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.perm-access label{display:inline-flex!important;align-items:center!important;gap:5px;margin:0!important;color:inherit;font-size:12.5px;white-space:nowrap;}
.perm-access input{width:14px!important;height:14px!important;margin:0!important;padding:0;flex:none;accent-color:#15b9b0;}
.perm-empty{color:#a4b1b4;font-size:12.5px;padding:22px 0;text-align:center;}


.coef-note{color:#879598;font-size:12px;margin-top:10px;padding-left:2px;}

/* 编辑器视图工具：布局方式 */

/* 布局方式：左右对照 / 上下对照（同一句段原文在上、译文在下，右侧语言面板保持原位） */
#editor-body.stacked table.sentence-grid{display:block;width:100%;table-layout:auto;}
#editor-body.stacked table.sentence-grid thead{display:none;}
#editor-body.stacked table.sentence-grid tbody{display:block;}
#editor-body.stacked table.sentence-grid tbody tr{display:grid;grid-template-columns:72px minmax(0,1fr) var(--ed-status-w);grid-template-rows:auto auto;border-bottom:1px solid #e9eeee;}
#editor-body.stacked table.sentence-grid tbody tr.empty-row{display:block;}
#editor-body.stacked table.sentence-grid tbody td{display:block;min-width:0;border:0;padding:0;}
#editor-body.stacked table.sentence-grid .c-no{grid-column:1;grid-row:1 / span 2;padding:9px 10px;border-right:1px solid #f0f4f4;}
#editor-body.stacked table.sentence-grid .c-src{grid-column:2;grid-row:1;padding:7px 12px 5px;border-bottom:1px dashed #edf2f2;}
#editor-body.stacked table.sentence-grid .c-tgt{grid-column:2;grid-row:2;background:#fff;}
#editor-body.stacked table.sentence-grid .c-tgt textarea{min-height:38px;padding:7px 12px;}
#editor-body.stacked table.sentence-grid .c-status{grid-column:3;grid-row:1 / span 2;padding:9px 10px;border-left:1px solid #f0f4f4;}
#editor-body.stacked .sentence-grid .c-src::before{content:"原文";display:block;margin-bottom:3px;color:#5c7176;font:10.5px/1.2 "Microsoft YaHei",sans-serif;letter-spacing:.5px;}
#editor-body.stacked .sentence-grid .c-tgt::before{content:"译文";display:block;margin-bottom:2px;color:#54716f;font:10.5px/1.2 "Microsoft YaHei",sans-serif;letter-spacing:.5px;}
#editor-body.stacked .sentence-grid tr.sel td{background:var(--row-sel);}
body.theme-blue #editor-body.stacked .sentence-grid .c-tgt{background:#f4f9ff;}
body.theme-blue #editor-body.stacked .sentence-grid tr.sel{--row-sel:#e2efff;--sel-line:#c3d9f0;}
body.theme-blue #editor-body.stacked .sentence-grid tr.sel td{background:var(--row-sel);}
body.theme-eye #editor-body.stacked .sentence-grid .c-tgt{background:#f5faf1;}
body.theme-eye #editor-body.stacked .sentence-grid tr.sel{--row-sel:#e2f1d8;--sel-line:#c5dcb5;}
body.theme-eye #editor-body.stacked .sentence-grid tr.sel td{background:var(--row-sel);}
body.theme-dark #editor-body.stacked .sentence-grid .c-tgt{background:#1f2d32;}
body.theme-dark #editor-body.stacked .sentence-grid tr.sel{--row-sel:#2d4147;--sel-line:#46606a;}
body.theme-dark #editor-body.stacked .sentence-grid tr.sel td{background:var(--row-sel);}
body.theme-dark #editor-body.stacked .sentence-grid .c-src::before,
body.theme-dark #editor-body.stacked .sentence-grid .c-tgt::before{color:#b9ccce;}
.editor-toolbar .view-tool.active{background:#e9f8f6;color:#0b7f7f;border-color:#bfe7e2;}
table.sentence-grid tr.ai-locked{background:#f3f8f2;}
table.sentence-grid tr.ai-locked td:first-child::after{content:"锁";display:inline-block;margin-left:4px;color:#6d9b62;font-size:10px;}

/* 新建订单三步向导 */
.wizard-steps{display:flex;align-items:center;gap:10px;margin:0 0 16px;padding:0 2px;}
.wizard-steps i{flex:1;height:1px;background:#e3ebea;}
.wizard-step{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:14px;background:#f2f7f6;color:#94a3a5;font-size:12.5px;white-space:nowrap;}
.wizard-step.active{background:#e6f7f5;color:#0d8f87;font-weight:600;}
.wizard-step.done{background:#f0f8ef;color:#5f8d55;}
.oc-pane[hidden]{display:none;}
.oc-form{gap:12px 16px!important;}
.oc-form label{position:relative;}
.oc-form input[type=text],.oc-form input[type=datetime-local],.oc-form input[type=number],.oc-form select{border:1px solid #dfe7e6;border-radius:3px;padding:7px 9px;margin-top:5px;background:#fff;box-sizing:border-box;}
.oc-form select{width:100%;}
.oc-price-wrap{display:flex;gap:6px;margin-top:5px;}
.oc-price-wrap select{flex:1;min-width:0;margin-top:0!important;}
.oc-price-wrap input{width:96px!important;flex:none;margin-top:0!important;}
.oc-seg{display:flex;flex-wrap:wrap;gap:0;margin-top:7px;}
.oc-seg button{border:1px solid #d8e3e2;background:#fff;color:#5f6f73;height:30px;padding:0 12px;font-size:12.5px;cursor:pointer;}
.oc-seg button:first-child{border-radius:3px 0 0 3px;}
.oc-seg button:last-child{border-radius:0 3px 3px 0;}
.oc-seg button+button{margin-left:-1px;}
.oc-seg button.active{background:#0faead;border-color:#0faead;color:#fff;position:relative;z-index:1;}
.oc-counter{position:absolute;right:2px;bottom:6px;font-size:11px;color:#a7b4b6;}
.oc-form textarea{padding-bottom:20px;}
.oc-upload-wrap{display:flex;gap:16px;align-items:stretch;min-height:372px;}
.oc-analysis{width:292px;flex:none;margin-top:0;border:1px solid #dfe7e6;border-radius:4px;background:#fff;overflow:hidden;display:flex;flex-direction:column;}
.oc-analysis-title{padding:12px 14px;text-align:center;font-size:13px;font-weight:600;color:#334a4d;border-bottom:1px solid #e8efee;background:#fff;}
.oc-analysis-tabs{display:flex;gap:0;background:#fbfdfd;border-bottom:1px solid #e2eae9;}
.oc-analysis-tabs button{flex:1;border:0;background:transparent;padding:9px 0;font-size:12.5px;color:#7b8c8f;cursor:pointer;}
.oc-analysis-tabs button.active{background:#fff;color:#0f8f8f;font-weight:600;box-shadow:inset 0 -2px 0 #0faead;}
.oc-ana-pane{padding:6px 14px 10px;flex:1;}
.oc-ana-row{display:flex;align-items:center;justify-content:space-between;padding:11px 0;border-bottom:1px solid #f1f6f5;font-size:12.5px;color:#526266;}
.oc-ana-row:last-child{border-bottom:0;}
.oc-ana-row select{width:96px!important;margin-top:0!important;padding:4px 6px;border:1px solid #dfe7e6;border-radius:3px;background:#fff;}
.oc-analysis-note{margin:6px 12px 12px;padding:9px 10px;background:#effbfa;border:1px solid #b7ece8;border-radius:3px;color:#0d8f87;font-size:11.5px;line-height:1.65;}
.oc-upload-main{flex:1;min-width:0;display:flex;flex-direction:column;border:1px solid #dfe7e6;border-radius:4px;background:#fff;overflow:hidden;}
.oc-upload-head{display:flex;align-items:center;gap:8px;padding:9px 12px;border-bottom:1px solid #eef4f3;font-size:12.5px;color:#607074;}
.oc-grow{flex:1;}
.oc-dropzone{flex:1;margin:14px;border:1px dashed #cddcdb;background:#fbfefe;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:280px;padding:20px;text-align:center;transition:border-color .15s,background .15s;}
.oc-dropzone.dragging{border-color:#0faead;background:#effbfa;}
.oc-drop-icon{width:58px;height:50px;line-height:50px;border:2px solid #c9d7d6;border-radius:4px;color:#b7c7c6;font-size:30px;font-weight:600;background:#fff;}
.oc-file-info{margin-top:14px;font-size:13px;color:#5e7274;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.oc-drop-hint{margin-top:7px;font-size:11.5px;color:#9aa9ab;}
.oc-file-list{width:100%;margin-top:14px;max-height:170px;overflow:auto;text-align:left;border-top:1px solid #f0f5f4;padding-top:8px;}
.oc-file-item{display:flex;align-items:center;gap:10px;padding:6px 4px;border-bottom:1px solid #f6f9f8;font-size:12px;}
.oc-file-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#3f5256;}
.oc-file-size{flex:none;color:#9aa9ab;font-size:11px;}
.oc-file-del{flex:none;border:0;background:transparent;color:#b5c2c4;font-size:15px;line-height:1;cursor:pointer;padding:2px 4px;}
.oc-file-del:hover{color:#d05555;}
@media(max-width:720px){.oc-upload-wrap{flex-direction:column;min-height:0}.oc-analysis{width:auto}.oc-upload-main{min-height:280px}}
.oc-tip{margin:10px 0 0;font-size:12px;}
.oc-success{text-align:center;padding:34px 0 40px;}
.oc-tick{width:64px;height:64px;line-height:60px;border-radius:50%;margin:0 auto 14px;border:2px solid #6db45f;color:#6db45f;font-size:34px;font-weight:700;}
.oc-success h3{margin:0 0 8px;font-size:16px;color:#2f4247;}
.oc-success p{margin:0;font-size:12.5px;}

/* 去重预翻生产式界面 */
.dp-order{margin-bottom:12px;}
.dp-order table{width:100%;table-layout:fixed;}
.dp-order td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.dp-order td.k{width:78px;}
.dp-reference{margin-top:9px;padding:9px 10px;border:1px dashed #cfe0de;border-radius:4px;background:#fff;}
.dp-reference[hidden]{display:none!important;}
.dp-ref-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:7px;}
.dp-ref-head b{font-size:12.5px;color:#3b4e52;}
.dp-ref-head .muted{font-size:11.5px;}
.dp-ref-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.dp-ref-mode-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 7px;font-size:11.5px;color:#5b6e72;}
.dp-ref-mode-row select{height:26px;padding:0 7px;font-size:11.5px;border:1px solid #d7e6e3;border-radius:4px;background:#fff;color:#3b4e52;}
.dp-ref-mode-row .muted{font-size:11px;}
.dp-ref-name{font-size:12px;color:#5b6e72;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:340px;}
.dp-ref-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px;}
.dp-ref-list:empty{display:none;}
.dp-ref-chip{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:3px 4px 3px 8px;border:1px solid #d7e6e3;border-radius:11px;background:#f4faf8;color:#3f625d;font-size:11.5px;line-height:1.4;}
.dp-ref-chip>span{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.dp-ref-chip>button{border:0;background:transparent;color:#7a918d;font-size:14px;line-height:1;cursor:pointer;padding:0 2px;}
.dp-ref-chip>button:hover{color:#c0504d;}
.dp-ref-status{margin-top:7px;font-size:11.5px;color:#788a8d;line-height:1.5;}
.dp-ref-status.ok{color:#3f8b51;}
.dp-ref-status.err{color:#c0504d;}
.dp-section{margin-bottom:10px;padding:10px 12px;border:1px solid #e2eae9;border-radius:4px;background:#fbfdfd;}
.dp-sec-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;}
.dp-sec-head b{font-size:13px;color:#2f4247;}
.dp-num{display:inline-block;width:19px;height:19px;line-height:19px;text-align:center;border-radius:50%;background:#e6f7f5;color:#0d8f87;font-size:11.5px;margin-right:6px;}
.dp-checks{display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center;}
.dp-checks label{display:inline-flex!important;align-items:center;gap:6px;margin:0!important;line-height:1.4;white-space:nowrap;font-size:12.5px;color:#3d4d51;}
.dp-checks input[type=checkbox]{width:14px;height:14px;padding:0;margin:0;flex:none;accent-color:#0faead;}
.dp-row{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:6px;font-size:12.5px;color:#526266;}
.dp-row label{display:inline-flex!important;align-items:center;gap:7px;margin:0!important;}
.dp-row select{margin-top:0!important;min-width:110px;width:auto;padding:5px 8px;border:1px solid #dfe7e6;border-radius:3px;background:#fff;}
.dp-fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px 12px;margin-top:10px;padding:9px;border:1px solid #e7efee;border-radius:3px;background:#fff;max-height:150px;overflow:auto;}
.dp-field{display:flex!important;align-items:center;gap:6px;margin:0!important;font-size:12px;color:#46565a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.dp-field input{width:14px;height:14px;padding:0;margin:0;flex:none;accent-color:#0faead;}
.dp-progress-title{margin:14px 0 9px;font-size:13px;color:#45565a;}
.dp-track{height:10px;border-radius:5px;background:#edf3f2;overflow:hidden;}
.dp-fill{height:100%;width:0;background:#0faead;transition:width .25s ease;}
.dp-fill.done{background:#5cae57;}
.dp-result-title{margin:6px 0 10px;font-size:14px;font-weight:600;color:#2f4247;}
.dp-result-table td,.dp-result-table th{text-align:center;}
.dp-result-table td:first-child,.dp-result-table th:first-child{text-align:left;}
.dp-result-table .dp-total td{font-weight:600;background:#f7fbfa;}
.dp-note{margin:8px 0 0;font-size:11.5px;}

/* CAT 分派两步 */
.dp-warn{display:flex;gap:14px;align-items:flex-start;padding:6px 2px;}
.dp-warn-icon{flex:none;width:34px;height:34px;border-radius:50%;background:#fdf0e0;color:#d18a2c;font-weight:700;font-size:20px;line-height:34px;text-align:center;}
.dp-warn p{margin:2px 0 8px;font-size:13px;color:#3f5054;line-height:1.7;}
.dp-warn p.muted{font-size:12px;margin:0;}
.ta-steps{display:flex;align-items:center;gap:10px;margin-bottom:12px;}
.ta-steps span{padding:5px 12px;border-radius:14px;background:#f2f7f6;color:#94a3a5;font-size:12.5px;}
.ta-steps span.active{background:#e6f7f5;color:#0d8f87;font-weight:600;}
.ta-steps span.done{background:#f0f8ef;color:#5f8d55;}
.ta-steps i{flex:1;height:1px;background:#e3ebea;}
.ta-info-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px 12px;padding:10px 12px;border:1px solid #e2eae9;border-radius:4px;background:#f7fbfb;}
.ta-info-grid>div{min-width:0;}
.ta-info-grid span{display:block;font-size:11.5px;color:#8a999c;margin-bottom:3px;}
.ta-info-grid b{display:block;font-size:12.5px;color:#30464b;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ta-topbars{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:8px;}
.ta-topbar{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#65767a;}
.ta-topbar .ghost{height:26px;padding:0 10px;font-size:12px;}
.ta-topbar .ghost.active{background:#0faead;border-color:#0faead;color:#fff;}
.ta-detail{margin-left:auto;}
.ta-controls{display:flex;gap:26px;align-items:center;flex-wrap:wrap;margin-top:10px;padding:9px 12px;border:1px solid #e2eae9;border-radius:4px;background:#fbfdfd;}
.ta-control{display:flex;align-items:center;gap:9px;}
.ta-control>label{font-size:12px;color:#6d7e81;}
.ta-pills{display:inline-flex;}
.ta-pills button{border:1px solid #d8e3e2;background:#fff;color:#5f6f73;height:28px;padding:0 12px;font-size:12px;cursor:pointer;}
.ta-pills button:first-child{border-radius:3px 0 0 3px;}
.ta-pills button:last-child{border-radius:0 3px 3px 0;margin-left:-1px;}
.ta-pills button.active{background:#0faead;border-color:#0faead;color:#fff;position:relative;z-index:1;}
.ta-pills button:disabled{opacity:.4;cursor:not-allowed;}
.ta-deptbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:9px 0 8px;padding:9px 12px;border:1px solid #e2eae9;border-radius:4px;background:#fff;}
.ta-label{font-size:12px;color:#6d7e81;flex:none;}
.ta-depts{display:flex;flex-wrap:wrap;gap:6px;flex:1;min-width:0;}
.ta-dept{border:1px solid #d8e3e2;background:#f7fbfa;color:#52666a;border-radius:12px;padding:3px 10px;font-size:11.5px;cursor:pointer;}
.ta-dept.active{background:#e6f7f5;border-color:#9adbd5;color:#0d8f87;}
.ta-scope{margin-left:auto;}
.ta-dept-select{height:32px;min-width:220px;border:1px solid #cfdedd;border-radius:3px;background:#fff;color:#2f464b;font-size:12.5px;padding:0 8px;}
.ta-dept-tip{font-size:11.5px;color:#8a999c;}
.ta-person-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 8px;padding:8px 10px;border:1px solid #e2eae9;border-radius:4px;background:#fbfdfd;}
.ta-fld{display:flex;align-items:center;gap:6px;font-size:11.5px;color:#7b8c8f;}
.ta-fld select{height:30px;border:1px solid #d7e1e0;border-radius:3px;background:#fff;color:#405256;font-size:12px;padding:0 6px;}
.ta-person-search{height:30px;flex:1;min-width:200px;border:1px solid #d7e1e0;border-radius:3px;background:#fff;padding:0 9px;font-size:12.5px;}
.ta-person-search:focus{outline:none;border-color:#0faead;box-shadow:0 0 0 2px rgba(15,174,173,.1);}
.ta-only-picked{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;color:#5f7175;white-space:nowrap;}
.ta-person-total{font-size:11.5px;color:#7b8c8f;margin-left:auto;white-space:nowrap;}
.ta-person-total b{color:#0d8f87;}
.ta-th-filter{cursor:pointer;user-select:none;}
.ta-th-filter:hover{color:#0d8f87;background:#eef9f8;}
.ta-funnel{display:inline-block;margin-left:4px;font-size:10px;color:#9aabae;}
.ta-person-wrap{max-height:300px;overflow:auto;border:1px solid #e2eae9;border-radius:4px;}
.ta-person-table{font-size:12px;min-width:820px;}
.ta-person-table th{background:#f7fbfb;color:#5f7175;font-weight:500;padding:7px 8px;white-space:nowrap;}
.ta-person-table td{padding:6px 8px;border-bottom:1px solid #f1f6f5;white-space:nowrap;color:#405256;}
.ta-person-table tr:last-child td{border-bottom:0;}
.ta-person-table input[type=checkbox]{width:14px;height:14px;accent-color:#0faead;margin:0;}
.ta-select-hint{margin-top:8px;font-size:12px;color:#7b8c8f;}
.ta-select-hint b{color:#0d8f87;}
.ta2-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:2px 0 10px;font-size:12.5px;color:#607174;}
.ta2-head-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.ta2-sum{font-size:12px;color:#0d8f87;background:#eef9f8;border:1px solid #ccece9;border-radius:12px;padding:3px 10px;}
.ta2-perm-bulk{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 8px;padding:6px 10px;border:1px dashed #d8e6e4;border-radius:4px;background:#fbfdfd;font-size:11.5px;color:#7b8c8f;}
.ta2-rows{display:flex;flex-direction:column;gap:8px;}
.ta2-row{display:grid;grid-template-columns:1.2fr .8fr .8fr 1.2fr .8fr 1fr 90px;gap:10px;padding:10px 12px;border:1px solid #e2eae9;border-radius:4px;background:#fafdfd;}
.ta2-perms{grid-column:1/-1;display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap;padding-top:7px;border-top:1px dashed #e4efed;}
.ta2-perms-label{font-size:11.5px;color:#8a999c;margin-right:2px;}
.ta2-perm{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:5px;font-size:11.5px;color:#52666a;cursor:pointer;white-space:nowrap;background:#f2faf9;border:1px solid #d9ecea;border-radius:12px;padding:3px 9px 3px 7px;}
.ta2-perm input{width:13px;height:13px;accent-color:#0faead;margin:0;}
.ta2-perm:has(input:checked){border-color:#0faead;background:#e6f7f5;color:#0d8f87;}
.ta2-person{display:flex;flex-direction:column;gap:3px;min-width:0;}
.ta2-person b{font-size:13px;color:#2f464b;}
.ta2-person span{font-size:11.5px;color:#8a999c;}
.ta2-meta{display:flex;flex-direction:column;gap:3px;font-size:11.5px;color:#8a999c;}
.ta2-meta b{font-size:12.5px;color:#405256;font-weight:500;}
.ta2-row label{display:flex;flex-direction:column;gap:3px;font-size:11.5px;color:#7b8c8f;}
.ta2-row input{height:30px;border:1px solid #d7e1e0;border-radius:3px;padding:0 7px;font-size:12.5px;background:#fff;margin:0;}
.ta2-remain{display:flex;flex-direction:column;justify-content:center;font-size:11.5px;color:#8a999c;text-align:right;}
.ta2-remain b{display:block;font-size:13px;color:#0d8f87;}
.ta2-row .ta-files{grid-column:1/-1;display:flex;flex-direction:column;gap:4px;font-size:12px;color:#5b6b6f;}
.ta2-row .ta-files[hidden]{display:none;}
.ta2-row.file-mode{grid-template-columns:1.2fr .8fr .8fr 1.2fr .8fr 90px;}
.ta2-tip{margin:10px 0 0;font-size:11.5px;}
.tb:disabled,.edw-ico:disabled,.pt:disabled,.perm-off{opacity:.42;cursor:not-allowed;}


/* ===== 右侧面板（老版 CAT 版式） ===== */
.editor-right{width:480px;flex:none;border-left:0;background:#fff;display:flex;flex-direction:row;min-height:0;}
.editor-hsplit{position:relative;flex:none;width:7px;cursor:col-resize;background:#fff;touch-action:none;outline:none;}
.editor-hsplit:before{content:"";position:absolute;left:3px;top:0;bottom:0;width:1px;background:#e6eded;transition:background .12s;}
.editor-hsplit:after{content:"";position:absolute;left:2px;top:50%;width:3px;height:30px;transform:translateY(-50%);border-radius:2px;background:#dfe8e8;transition:background .12s;}
.editor-hsplit:hover:before,.editor-hsplit.dragging:before,.editor-hsplit:focus-visible:before{left:2px;width:2px;background:#2d548b;}
.editor-hsplit:hover:after,.editor-hsplit.dragging:after,.editor-hsplit:focus-visible:after{background:#2d548b;}
.editor-right .panel-shell{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;}
.editor-right .panel-shell[hidden],.editor-right .panel-side[hidden]{display:none;}
.editor-right .panel-tabs{display:flex;flex:none;border-bottom:1px solid #e6eded;background:#fafcfc;}
.editor-right .pt{flex:1;height:40px;border:0;border-bottom:2px solid transparent;background:none;color:#7b8b8f;font-size:13px;cursor:pointer;}
.editor-right .pt:hover{color:#2d548b;}
.editor-right .pt.active{background:#fff;color:#2d548b;border-bottom-color:#2d548b;font-weight:600;}
.editor-right .panel-content{flex:1;min-height:0;display:flex;flex-direction:column;}
.editor-right .panel-body{flex:1;min-height:96px;overflow:auto;padding:10px 12px;background:#fbfcfc;}
.editor-right .panel-splitter{position:relative;flex:none;height:7px;cursor:row-resize;background:#fbfcfc;touch-action:none;outline:none;}
.editor-right .panel-splitter:before{content:"";position:absolute;left:0;right:0;top:3px;height:1px;background:#dfe8e8;transition:background .12s;}
.editor-right .panel-splitter:hover:before,.editor-right .panel-splitter.dragging:before,.editor-right .panel-splitter:focus-visible:before{top:2px;height:2px;background:#2d548b;}
.editor-right .panel-dock{flex:0 0 42%;min-height:72px;display:flex;flex-direction:column;border-top:0;background:#fff;}
.editor-right .panel-dock.flash{animation:dockFlash .9s ease;}
@keyframes dockFlash{0%{background:#eef6ff;}100%{background:#fff;}}
.dock-head{flex:none;height:32px;display:flex;align-items:center;gap:8px;padding:0 12px;background:#f7fafa;border-bottom:1px solid #edf2f2;}
.dock-title{font-size:12.5px;font-weight:600;color:#33474b;}
.dock-count{margin-left:auto;font-size:11px;color:#9aa7aa;}
.dock-body{flex:1;min-height:0;overflow:auto;padding:0 12px;}
#term-pane{flex:1;}
.dock-empty{color:#a7b2b5;font-size:12px;text-align:center;padding:24px 0;margin:0;}
.dock-empty-ico{height:100%;min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#a7b2b5;font-size:12px;}
.dock-empty-ico svg{width:36px;height:36px;fill:none;stroke:#cbd8d8;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;}
.dock-term-list{padding:4px 0;}
.dock-term{padding:7px 4px;border-bottom:1px solid #f2f6f6;cursor:pointer;}
.dock-term:hover{background:#f6fafa;}
.dt-src{color:#65767a;font-size:12px;line-height:1.55;word-break:break-word;}
.dt-tgt{color:#20464c;font-size:12.5px;line-height:1.6;margin-top:2px;word-break:break-word;}
.dock-term .panel-fill-btn{margin-top:4px;}
.dict-table{padding:2px 0 6px;}
.dict-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) auto;gap:8px;padding:6px 4px;border-bottom:1px solid #f3f7f7;font-size:12px;cursor:pointer;align-items:center;}
.dict-row:hover{background:#f6fafa;}
.dict-row.dict-head{color:#9aa7aa;font-size:11px;cursor:default;background:#fff;position:sticky;top:0;}
.dict-row .ds{color:#65767a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.dict-row .dt{color:#20464c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.panel-rail{flex:none;width:46px;border-left:1px solid #e6eded;background:#fff;display:flex;flex-direction:column;align-items:center;padding-top:6px;gap:2px;}
.rail-btn{position:relative;width:38px;height:38px;border:0;border-radius:4px;background:none;color:#8b999c;display:flex;align-items:center;justify-content:center;cursor:pointer;}
.rail-btn:hover{background:#f2f7fa;color:#2d548b;}
.rail-btn.active{background:#eaf0fa;color:#2d548b;}
.rail-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;}
.rail-badge{position:absolute;top:2px;right:2px;min-width:14px;height:14px;padding:0 3px;border-radius:7px;background:#e45757;color:#fff;font-size:9px;line-height:14px;text-align:center;font-weight:600;}
.panel-side{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;}
.side-title{flex:none;height:40px;display:flex;align-items:center;padding:0 14px;border-bottom:1px solid #e6eded;background:#fafcfc;color:#33474b;font-size:13px;font-weight:600;}
.side-body{flex:1;min-height:0;overflow:auto;padding:10px 12px;background:#fbfcfc;}
.panel-loading{color:#a7b2b5;font-size:12px;padding:18px 0;text-align:center;margin:0;}
.panel-error{color:#c2554c;font-size:12px;padding:14px 0;margin:0;}
.panel-empty{padding:44px 14px;text-align:center;color:#a7b2b5;}
.panel-empty svg{width:46px;height:46px;display:block;margin:0 auto 12px;fill:none;stroke:#cbd8d8;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round;}
.panel-empty .pe-main{font-size:13px;color:#9aa7aa;}
.panel-empty .pe-hint{font-size:11.5px;color:#b4bfc1;margin-top:5px;line-height:1.6;}
.panel-engine-bar{display:flex;align-items:center;gap:8px;padding:2px 0 9px;border-bottom:1px solid #edf2f2;margin-bottom:10px;}
.panel-engine-bar .pe-label{font-size:12px;color:#6b7a7e;}
.panel-engine-bar .spacer{flex:1;}
.panel-engine-bar select{max-width:150px;height:28px;border:1px solid #dfe6e6;border-radius:3px;background:#fff;color:#33474b;font-size:12px;padding:0 5px;}
.pe-refresh{width:26px;height:26px;border:1px solid #dfe6e6;border-radius:3px;background:#fff;color:#7b8b8f;cursor:pointer;line-height:1;}
.pe-refresh:hover{color:#2d548b;border-color:#cbd9e8;}
.mt-src{border:1px solid #edf2f2;border-radius:3px;background:#f9fbfb;padding:9px 11px;}
.mt-src-label{font-size:11px;color:#9aa7aa;margin-bottom:5px;}
.mt-src-text{font-size:12.5px;color:#4f6064;line-height:1.75;word-break:break-word;}
.mt-out{margin-top:10px;min-height:180px;}
.mt-loading{display:flex;align-items:center;justify-content:center;gap:8px;min-height:180px;color:#9aa7aa;font-size:12.5px;}
.dot-spin{width:13px;height:13px;border:2px solid #d7e4e4;border-top-color:#2d548b;border-radius:50%;animation:dotspin .8s linear infinite;}
@keyframes dotspin{to{transform:rotate(360deg);}}
.mt-result{border:1px solid #d8e8e8;border-radius:3px;background:#f4fbfa;padding:8px 10px;min-height:88px;font-size:var(--ed-fs,13px);line-height:var(--ed-text-lh,var(--ed-lh,1.45));color:#20464c;word-break:break-word;cursor:pointer;}
.mt-result:hover{border-color:#b7d7d7;background:#f0f9f8;}
.mt-error{color:#c2554c;background:#fff7f6;border:1px solid #f0d7d4;border-radius:3px;padding:10px 12px;font-size:12.5px;line-height:1.7;}
.panel-fill-btn{
  height:22px;padding:0 8px;border:1px solid #9acdcd;border-radius:3px;
  background:#eef9f8;color:#0b8e89;font-size:11px;line-height:20px;
  white-space:nowrap;cursor:pointer;flex:none;
}
.panel-fill-btn:hover{background:#dcf5f2;border-color:#55b8b4;color:#087a76;}
.cc-hint .panel-fill-btn{margin-left:6px;vertical-align:middle;}
.corpus-card{display:grid;grid-template-columns:46px minmax(0,1fr) 68px;gap:8px;border:1px solid #e8efef;border-radius:3px;padding:9px 10px;margin-bottom:9px;background:#fff;}
.corpus-card:hover{border-color:#cfdfdf;}
.cc-head{display:flex;align-items:center;gap:6px;margin-bottom:7px;}
.cc-side{display:flex;flex-direction:column;align-items:center;gap:9px;padding-top:1px;min-width:0;}
.cc-body{min-width:0;}
.cc-meta{display:flex;flex-direction:column;align-items:flex-end;gap:7px;min-width:0;}
.cc-no{width:20px;height:20px;border-radius:50%;border:1px solid #cfdada;color:#65767a;font-size:11px;display:flex;align-items:center;justify-content:center;flex:none;}
.cc-rate{font-size:15px;line-height:18px;padding:0;border-radius:0;background:none;color:#2b3a3d;font-weight:500;white-space:nowrap;}
.cc-temp{font-size:10.5px;line-height:18px;padding:0 5px;border:1px solid #d5e1e2;border-radius:2px;background:#f7fbfb;color:#536b6f;white-space:nowrap;}
.cc-lib-temp{border-color:#f3a6a6;background:#fff6f6;color:#d9534f;}
.cc-lib-industry{border-color:#c9a6dd;background:#faf5fd;color:#8b4aa8;}
.cc-lib-other{border-color:#b7cfe3;background:#f4f9fd;color:#2d548b;}
.cc-who{color:#8c999c;font-size:11px;line-height:1.35;margin:0;white-space:nowrap;text-align:right;}
.cc-src{color:#2b3a3d;font-size:12px;line-height:1.65;margin-bottom:5px;word-break:break-word;}
.cc-tgt{color:#111;background:transparent;border-radius:0;padding:0;font-size:12.5px;line-height:1.7;word-break:break-word;cursor:pointer;}
.cc-tgt:hover{color:#0b8e89;}
.cc-hint{font-size:10.5px;color:#a9b5b7;margin-top:5px;text-align:right;}
.cc-diff{color:#e05252;background:#fff0f0;border-radius:2px;padding:0 1px;}
.ai-prompt{width:100%;height:180px;min-height:110px;resize:none;border:1px solid #dde6e6;border-radius:3px;padding:10px 11px;background:#fff;color:#3c4d51;font-size:12.5px;line-height:1.85;font-family:inherit;outline:none;}
.ai-prompt:focus{border-color:#b7cde4;box-shadow:0 0 0 2px rgba(45,84,139,.08);}
.ai-modal-prompt-head{display:flex;align-items:center;justify-content:space-between;margin:12px 0 5px;color:#6b7a7e;font-size:12.5px;}
.ai-modal-reset{border:0;background:none;color:#2d548b;font-size:12px;cursor:pointer;padding:1px 0;}
.ai-modal-reset:hover{text-decoration:underline;}
.modal-body .ai-modal-prompt{width:100%;height:118px;min-height:88px;resize:vertical;border:1px solid #dde6e6;border-radius:3px;padding:8px 10px;margin:0;background:#fff;color:#3c4d51;font-size:12.5px;line-height:1.7;font-family:inherit;outline:none;}
.modal-body .ai-modal-prompt:focus{border-color:#b7cde4;box-shadow:0 0 0 2px rgba(45,84,139,.08);}
.ai-modal-term{margin-top:8px;font-size:11.5px;color:#5f7b68;background:#f2f8f3;border-left:3px solid #7bb38a;padding:6px 8px;line-height:1.5;}
.ai-modal-hint{margin-top:4px;font-size:11px;color:#93a2a5;line-height:1.5;}
.ai-foot{display:flex;align-items:center;gap:10px;margin-top:10px;}
.ai-foot-engine{display:flex;align-items:center;gap:6px;flex:1;min-width:0;}
.ai-foot-engine .pe-label{font-size:11.5px;color:#9aa7aa;}
.ai-foot-engine select{flex:1;min-width:0;height:30px;border:1px solid #dfe6e6;border-radius:3px;background:#fff;color:#33474b;font-size:12px;padding:0 5px;}
.ai-run{flex:none;min-width:80px;height:30px;border:0;border-radius:3px;background:#2d548b;color:#fff;font-size:12.5px;cursor:pointer;}
.ai-run:hover{background:#244a7c;}
.ai-run:disabled{background:#9fb0c8;cursor:default;}
.ai-result-wrap{margin-top:10px;}
.ai-result-head{display:flex;align-items:center;margin-bottom:5px;color:#6b7a7e;font-size:11.5px;}
.ai-result-head .cc-hint{margin-left:auto;}
.ai-result{border:1px solid #d8e8e8;border-radius:3px;background:#f4fbfa;padding:8px 10px;color:#20464c;font-size:calc(var(--ed-fs,13px) - .5px);line-height:var(--ed-text-lh,var(--ed-lh,1.45));word-break:break-word;cursor:pointer;min-height:180px;max-height:300px;overflow:auto;}
.ai-tip{color:#a9b5b7;font-size:11px;line-height:1.6;margin-top:8px;}
.hist-card{border:1px solid #e9efef;border-radius:3px;background:#fff;padding:9px 11px;margin-bottom:8px;}
.hc-val{color:#33474b;font-size:12.5px;line-height:1.65;word-break:break-word;}
.hc-meta{color:#9aa7aa;font-size:10.5px;line-height:1.6;margin-top:5px;word-break:break-word;}
.remark-top{display:flex;gap:8px;align-items:flex-start;margin-bottom:12px;}
.remark-top textarea{flex:1;min-height:78px;resize:vertical;border:1px solid #dde6e6;border-radius:3px;padding:8px 10px;font-size:12.5px;line-height:1.6;font-family:inherit;}
.remark-top .btn{flex:none;}
.note-card{border:1px solid #e9efef;border-radius:3px;background:#fff;padding:9px 11px;margin-bottom:8px;}
.nc-text{color:#3c4d51;font-size:12.5px;line-height:1.7;word-break:break-word;}
.nc-meta{color:#9aa7aa;font-size:10.5px;margin-top:5px;}
.qa-table,.qc-table{border:1px solid #edf2f2;border-radius:3px;overflow:hidden;background:#fff;}
.qa-row{display:grid;grid-template-columns:minmax(0,1fr) 62px 56px;gap:7px;align-items:center;padding:8px 9px;border-bottom:1px solid #f2f6f6;font-size:11.5px;}
.qa-row:last-child{border-bottom:0;}
.qa-head{background:#f7fafa;color:#9aa7aa;font-size:10.5px;}
.qa-msg{color:#3c4d51;line-height:1.55;word-break:break-word;}
.qa-row.is-error .qa-msg{color:#c0392b;}
.qa-row.is-normal .qa-msg{color:#7b8b8f;}
.qa-row.is-ignored{opacity:.55;}
.qa-row.is-ignored .qa-level{background:#eef3f3;color:#8a9698;}
.qa-check{color:#7b8b8f;}
.qa-level{font-size:10.5px;text-align:center;padding:0 4px;line-height:17px;border-radius:2px;white-space:nowrap;}
.qa-level.lv-0{background:#eef3f3;color:#617175;}
.qa-level.lv-1{background:#fff4e5;color:#b8741a;}
.qa-level.lv-2{background:#fdecea;color:#a5281c;font-weight:600;}
.qa-legend{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 8px;}
.qa-lv{font-size:10.5px;line-height:19px;padding:0 7px;border-radius:2px;cursor:default;}
.qa-lv b{font-weight:600;}
.qa-lv.lv-2{background:#fdecea;color:#a5281c;}
.qa-lv.lv-1{background:#fff4e5;color:#b8741a;}
.qa-lv.lv-0{background:#eef3f3;color:#617175;}
.qa-foot{color:#7d8b8e;font-size:11px;line-height:1.65;margin-top:8px;}
.qa-foot-error{color:#b23a32;}
.qa-foot-warn{color:#a96a18;}
.qa-foot-ok{color:#2f7a62;}
.qa-actions{display:flex;gap:8px;margin-top:10px;}
.qa-ignore-btn,.qa-fix-btn{flex:1;height:31px;border-radius:3px;font-size:12px;cursor:pointer;}
.qa-ignore-btn{border:1px solid #e0c08c;background:#fffaf2;color:#a96a18;}
.qa-ignore-btn:hover{background:#fff3e0;}
.qa-fix-btn{border:1px solid #d8b6b2;background:#fff;color:#b23a32;}
.qa-fix-btn:hover{background:#fff6f5;}
.qa-ignore-btn:disabled,.qa-fix-btn:disabled{opacity:.6;cursor:default;}
.qc-status{padding:8px 10px;border-radius:3px;background:#fff7e8;color:#a96a18;font-size:12px;line-height:1.6;margin-bottom:10px;}
.qc-status.is-returned{background:#fdecea;color:#b23a32;}
.qc-target{border:1px solid #edf2f2;border-radius:3px;background:#f9fbfb;padding:8px 10px;margin-bottom:10px;}
.qc-label{font-size:10.5px;color:#9aa7aa;margin-bottom:4px;}
.qc-target-text{font-size:12.5px;color:#3c4d51;line-height:1.7;word-break:break-word;}
.qc-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr) 44px 40px;gap:6px;align-items:center;padding:8px 9px;border-bottom:1px solid #f2f6f6;font-size:11.5px;}
.qc-row:last-child{border-bottom:0;}
.qc-head{background:#f7fafa;color:#9aa7aa;font-size:10.5px;}
.qc-msg{color:#b23a32;line-height:1.55;word-break:break-word;}
.qc-return-btn{width:100%;height:32px;margin-top:12px;border:1px solid #d8b6b2;border-radius:3px;background:#fff;color:#b23a32;font-size:12.5px;cursor:pointer;}
.qc-return-btn:hover{background:#fff6f5;}
.qc-return-btn:disabled{opacity:.6;cursor:default;}
.qc-returned{color:#b23a32;background:#fdf5f4;border:1px solid #f0d7d4;border-radius:3px;padding:8px 10px;font-size:11.5px;line-height:1.7;margin-top:10px;}
@media (max-width:1200px){
  .editor-right{width:400px;}
}
@media (max-width:900px){
  .editor-hsplit{display:none;}
  .editor-right{width:auto !important;flex:1 1 42%;height:auto;min-height:260px;border-left:0;border-top:1px solid var(--line);}
  .editor-right .panel-dock{flex-basis:40%;}
}

.editor-right .ai-prompt{height:160px;min-height:110px;}

.editor-right .ai-head{margin:0 0 10px;}

.editor-right .ai-prompt-short{height:110px;min-height:80px;}

/* 确认句段：Enter 主按钮 + 一键确认下拉 */
.tb-split{position:relative;display:flex;align-items:stretch;border-radius:3px;background:#fff;}
.tb-split .tb{border-radius:3px 0 0 3px;}
.tb-split .tb-caret{min-width:14px;width:14px;padding:0 1px;border-left:1px solid #edf1f1;border-radius:0 3px 3px 0;}
.tb-split .tb-caret b{font-size:8px;line-height:1;color:#8a9a9d;transform:translateY(1px);}
.tb-key{font-style:normal;font-size:9px;line-height:1;color:#a4b1b4;margin-top:1px;}
.tb-menu{position:absolute;left:0;top:52px;z-index:30;min-width:146px;padding:4px;background:#fff;border:1px solid #dbe5e4;border-radius:3px;box-shadow:0 6px 18px rgba(23,54,58,.14);}
.tb-menu button{display:block;width:100%;padding:9px 12px;border:0;border-radius:2px;background:#fff;text-align:left;font-size:12.5px;color:#405256;white-space:nowrap;}
.tb-menu button:hover{background:#eef8f7;color:#0d8f8b;}

/* 语言资产管理弹窗 */
.modal-card.asset-card{width:1120px;}
#modal-body.asset-body{padding:12px 14px;max-height:68vh;overflow:hidden;}
.asset-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding-bottom:10px;border-bottom:1px solid #edf1f1;}
.asset-toolbar select,.asset-toolbar input{height:30px;border:1px solid #d5dfde;border-radius:3px;background:#fff;padding:0 8px;font-size:12px;color:#405256;}
.asset-toolbar input{width:210px;}
.asset-toolbar .asset-grow{flex:1;}
.asset-btn{height:30px;padding:0 11px;border:1px solid #cfdcdb;border-radius:3px;background:#fff;color:#405256;font-size:12px;cursor:pointer;}
.asset-btn:hover{border-color:#8fc7c4;background:#f2fbfa;color:#0d8f8b;}
.asset-btn.primary{border-color:#0d9c9c;background:#0d9c9c;color:#fff;}
.asset-btn.primary:hover{background:#0b8b8b;}
.asset-btn.danger:hover{border-color:#dc9a94;background:#fff5f4;color:#b23a32;}
.asset-audit-wrap{position:relative;display:inline-flex;}
.asset-audit-menu{position:absolute;left:0;top:33px;z-index:20;display:none;min-width:92px;padding:4px;background:#fff;border:1px solid #dbe5e4;box-shadow:0 6px 16px rgba(23,54,58,.14);border-radius:3px;}
.asset-audit-menu button{display:block;width:100%;padding:8px 10px;border:0;background:#fff;text-align:left;font-size:12px;color:#405256;}
.asset-audit-menu button:hover{background:#eef8f7;color:#0d8f8b;}
.asset-tip{display:flex;align-items:center;gap:8px;min-height:28px;font-size:11.5px;color:#7a898d;}
.asset-tip .asset-status{color:#0d8f8b;}
.asset-tip .asset-warn{color:#b23a32;}
.asset-import-note{padding:0 0 7px;font-size:11px;line-height:1.55;color:#93a2a5;}
.asset-link{color:#0d8f8b;font-size:11.5px;cursor:pointer;user-select:none;}
.asset-link:hover{text-decoration:underline;}
.asset-table-wrap{max-height:calc(68vh - 120px);overflow:auto;border:1px solid #e5eceb;}
.asset-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px;}
.asset-table th{position:sticky;top:0;z-index:2;height:34px;padding:0 8px;background:#f6f9f9;border-bottom:1px solid #e1e9e8;color:#7d8b8e;font-weight:500;text-align:left;white-space:nowrap;}
.asset-table td{height:38px;padding:4px 8px;border-bottom:1px solid #f0f4f3;color:#415256;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.asset-table tr:hover td{background:#f7fcfb;}
.asset-table .c-check{width:36px;text-align:center;}
.asset-table .c-source{width:27%;}
.asset-table .c-target{width:27%;}
.asset-table .c-from{width:11%;}
.asset-table .c-audit{width:10%;}
.asset-table .c-force{width:9%;text-align:center;}
.asset-table .c-user{width:9%;}
.asset-table .c-time{width:14%;}
.asset-chip{display:inline-block;padding:1px 7px;border-radius:10px;font-size:11px;line-height:18px;}
.asset-chip.pending{color:#a56a12;background:#fff4dd;border:1px solid #f0ddb3;}
.asset-chip.pass{color:#0d7a58;background:#eaf8f1;border:1px solid #bfe5d5;}
.asset-chip.reject{color:#a83b33;background:#fdf0ef;border:1px solid #f0cfcb;}
.asset-force{color:#c2cdcf;}
.asset-force.on{color:#0d9c9c;font-weight:600;}
.asset-empty{height:150px;text-align:center;color:#98a5a8;}
.asset-count{font-size:11.5px;color:#8a989b;}
.asset-foot{display:flex;align-items:center;gap:8px;padding-top:9px;font-size:11.5px;color:#7d8b8e;}
.asset-foot .asset-grow{flex:1;}
.asset-foot b{color:#0d8f8b;}
.asset-form{display:flex;align-items:center;gap:7px;padding:8px 0;border-bottom:1px solid #edf1f1;background:#fbfdfd;}
.asset-form input[type=text],.asset-form input:not([type]){height:30px;border:1px solid #d5dfde;border-radius:3px;padding:0 8px;font-size:12px;width:280px;}
.asset-form label{display:flex;align-items:center;gap:4px;font-size:12px;color:#5c6b6e;white-space:nowrap;}
.asset-form[hidden]{display:none;}

/* 订单详情五页签 */
.od-tabs{display:flex;align-items:center;gap:2px;border-bottom:1px solid #e6eeee;margin:-2px 0 0;}
.od-tab{position:relative;padding:11px 20px;background:none;border:0;border-bottom:2px solid transparent;color:#5d6c70;font-size:12.5px;cursor:pointer;}
.od-tab:hover{color:#0d8f8b;}
.od-tab.active{color:#009b9b;border-bottom-color:#009b9b;font-weight:600;}
.od-panel{min-height:430px;padding:10px 2px 0;}
.od-kv{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 36px;padding:16px 6px 10px;}
.od-item{font-size:12.5px;line-height:20px;min-width:0;display:flex;gap:2px;}
.od-item .k{color:#68787c;white-space:nowrap;}
.od-item .v{color:#2b3b3f;font-weight:600;word-break:break-all;}
.od-table-wrap{max-height:420px;overflow:auto;border:1px solid #e6ecec;}
.od-table{border:0;font-size:12px;margin:0;}
.od-table th{position:sticky;top:0;z-index:1;background:#f7fafa;color:#526265;font-weight:600;border-bottom:1px solid #e2e9e9;border-right:1px solid #edf2f2;padding:9px 8px;text-align:center;white-space:nowrap;}
.od-table td{border-bottom:1px solid #edf2f2;border-right:1px solid #f1f5f5;padding:9px 8px;color:#3c4b4f;white-space:nowrap;}
.od-table tbody tr:hover{background:#fbfdfd;}
.od-center{text-align:center;}
.od-total td{background:#f7fbfb;font-weight:600;border-top:1px solid #dfe8e8;}
.od-dp-table td:not(:first-child){text-align:left;}
.od-dot{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:6px;vertical-align:1px;}
.od-dot.ok{background:#18b394;}
.od-dot.err{background:#d9534f;}
.od-dot.wait{background:#e6a23c;}
.od-empty{height:360px;display:flex;align-items:center;justify-content:center;color:#9aa7aa;font-size:12.5px;border:1px dashed #e6eeee;border-radius:3px;}
.od-empty-cell{height:220px;display:flex;align-items:center;justify-content:center;color:#9aa7aa;font-size:12.5px;}
.od-count{padding:9px 2px;color:#8b9a9d;font-size:11.5px;}
.od-file-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:10px 2px 2px;color:#6b7a7e;font-size:12px;}
.odf-count{margin-right:6px;color:#8b9a9d;font-size:11.5px;}
.odf-size{height:24px;border:1px solid #dfe6e6;border-radius:2px;background:#fff;color:#5f7073;font-size:11.5px;padding:0 4px;}
@media (max-width:1100px){
  .od-kv{grid-template-columns:repeat(2,minmax(0,1fr));}
}

/* 文件管控 / 追加文件 */
.fm-toolbar{display:flex;align-items:center;padding:2px 0 10px;}
.fm-title{font-size:13px;font-weight:600;color:#2f3f43;}
.fm-grow{flex:1;}
.fm-list{max-height:430px;overflow:auto;border:1px solid #e6ecec;}
.fm2-table th,.fm2-table td{padding:8px 8px;}
.fm2-table td:nth-child(2){max-width:220px;overflow:hidden;text-overflow:ellipsis;}
.fm-link{background:none;border:0;color:#0d8f8b;font-size:12px;padding:0 6px;cursor:pointer;}
.fm-link.danger{color:#d9534f;}
.fm-link:disabled{color:#b9c4c6;cursor:default;}
.fm-tip{margin:9px 0 0;font-size:11.5px;color:#8b9a9d;}
.af-upload-wrap{min-height:390px;}
.af-head{display:flex;align-items:center;gap:8px;margin:0 2px 12px;padding:0 2px 10px;border-bottom:1px solid #e9f0ef;font-size:13px;color:#5b7072;}
.af-head-ico{color:#0faead;font-size:19px;font-weight:600;}
.af-head-title{font-weight:600;color:#2f4649;}
.af-head-state{margin-left:auto;padding:2px 9px;border:1px solid #b7ece8;border-radius:12px;background:#effbfa;color:#0d8f87;font-size:11.5px;white-space:nowrap;}

/* 订单交付 */
.dl-box{border:1px solid #e6ecec;border-radius:3px;padding:10px 14px;margin-bottom:12px;background:#fbfdfd;}
.dl-row{display:grid;grid-template-columns:70px 1fr 70px 1fr;gap:6px 8px;font-size:12.5px;line-height:24px;}
.dl-k{color:#7b8a8d;}
.dl-v{color:#2e3e42;font-weight:600;}
.dl-warn{display:flex;align-items:center;gap:8px;background:#fff8f2;border:1px solid #f6dfcc;color:#b06a35;font-size:12px;padding:8px 12px;border-radius:3px;margin-bottom:16px;}
.dl-warn-icon{display:inline-flex;width:15px;height:15px;border-radius:50%;background:#f0a25c;color:#fff;align-items:center;justify-content:center;font-size:10px;flex:none;}
.dl-form{display:flex;flex-direction:column;gap:14px;padding:2px 4px;}
.dl-line{display:flex;align-items:center;gap:12px;}
.dl-label{width:90px;flex:none;color:#5b6b6e;font-size:12.5px;}
.dl-line select{flex:1;height:32px;border:1px solid #dbe4e4;border-radius:3px;padding:0 8px;font-size:12.5px;color:#34454a;background:#fff;}
.dl-line input[type=datetime-local]{height:32px;border:1px solid #dbe4e4;border-radius:3px;padding:0 8px;font-size:12.5px;}
.dl-prio{display:flex;align-items:center;gap:9px;flex:none;}
.dl-prio span{font-size:12px;color:#7b8a8d;}
.dl-prio input[type=range]{width:180px;accent-color:#0d9c9c;}
.dl-prio b{width:24px;color:#0d8f8b;font-size:13px;}
.dl-note{margin-top:14px;font-size:11.5px;}

/* 交付弹窗窄屏自适应 */
.dl-line select{min-width:0;}
@media (max-width:900px){
  .dl-line{flex-wrap:wrap;}
  .dl-line select{flex:1 1 220px;}
  .dl-prio{width:100%;padding-left:102px;box-sizing:border-box;}
  .dl-prio input[type=range]{width:120px;}
}

/* 线下任务管控 */
.off-table-wrap{max-height:430px;overflow:auto;border:1px solid #e6ecec;}
.off-table{font-size:12px;margin:0;}
.off-table th{position:sticky;top:0;background:#f7fafa;color:#526265;font-weight:600;border-bottom:1px solid #e2e9e9;border-right:1px solid #edf2f2;padding:8px 7px;text-align:center;white-space:nowrap;}
.off-table td{border-bottom:1px solid #edf2f2;border-right:1px solid #f1f5f5;padding:8px 7px;color:#3c4b4f;white-space:nowrap;}
.off-empty{height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#9aa7aa;font-size:12.5px;border:0;}
.off-empty-icon{width:42px;height:32px;border:2px solid #d8e2e0;border-radius:4px;position:relative;color:#d8e2e0;font-size:22px;line-height:26px;text-align:center;}
.off-empty-icon:before{content:"";position:absolute;left:5px;top:-8px;width:16px;height:8px;border:2px solid #d8e2e0;border-bottom:0;border-radius:4px 4px 0 0;background:#fff;}

/* 订单交付（生产样式对齐） */
.dl-wrap{max-width:620px;margin:0 auto;}
.dl-info{background:#eefafa;border:1px solid #b9e5e4;border-radius:3px;padding:12px 14px;margin-bottom:24px;color:#2e5f63;font-size:12.5px;}
.dl-info-head{display:flex;align-items:flex-start;gap:8px;line-height:20px;}
.dl-info-icon{display:inline-flex;width:17px;height:17px;border:1.5px solid #44b7b4;border-radius:50%;color:#18aaa6;align-items:center;justify-content:center;font-size:11px;font-weight:700;flex:none;margin-top:1px;}
.dl-info-sub{margin:6px 0 0 25px;color:#5b7c80;font-size:12px;}
.dl-form{display:flex;flex-direction:column;gap:22px;padding:0 6px;}
.dl-field{display:grid;grid-template-columns:138px minmax(0,1fr);align-items:start;gap:8px;}
.dl-field > label{padding-top:8px;color:#526265;font-size:12.5px;text-align:right;}
.dl-q{display:inline-flex;width:14px;height:14px;border:1px solid #c8d6d6;border-radius:50%;color:#9badad;align-items:center;justify-content:center;font-size:10px;vertical-align:1px;}
.dl-pick{display:flex;align-items:center;gap:8px;min-width:0;}
.dl-pick select{flex:1;min-width:0;height:34px;border:1px solid #dbe4e4;border-radius:3px;padding:0 8px;font-size:12.5px;color:#34454a;background:#fff;}
.dl-choose{flex:none;height:34px;padding:0 12px;border:1px solid #d7e0e0;background:#fff;color:#53666a;border-radius:3px;font-size:12px;}
.dl-choose:hover{border-color:#0d9c9c;color:#0d8f8b;}
.dl-slider{padding-top:6px;}
.dl-slider input[type=range]{width:100%;accent-color:#0d9c9c;margin:0;}
.dl-scale{display:flex;justify-content:space-between;color:#8b9a9d;font-size:11.5px;margin-top:2px;}
.dl-field input[type=datetime-local]{width:230px;height:34px;border:1px solid #dbe4e4;border-radius:3px;padding:0 8px;font-size:12.5px;color:#34454a;}
.dl-req{color:#d9534f;font-style:normal;margin-right:2px;}

/* 订单交付前自检拦截 */
.dl-qa-wrap{max-width:980px;margin:0 auto;}
.dl-qa-head{display:flex;gap:10px;align-items:flex-start;background:#fff4f3;border:1px solid #f3c9c6;border-radius:4px;padding:12px 14px;color:#7b302d;margin-bottom:12px;}
.dl-qa-ico{display:inline-flex;width:22px;height:22px;border-radius:50%;background:#d9534f;color:#fff;align-items:center;justify-content:center;font-size:14px;font-weight:700;flex:none;margin-top:1px;}
.dl-qa-head strong{font-size:13.5px;}
.dl-qa-head p{margin:4px 0 0;font-size:12.5px;line-height:20px;color:#925653;}
.dl-qa-table-wrap{max-height:54vh;overflow:auto;border:1px solid #e3e9e9;border-radius:3px;}
.dl-qa-table{width:100%;border-collapse:collapse;font-size:12.5px;background:#fff;table-layout:fixed;}
.dl-qa-table th{position:sticky;top:0;z-index:1;background:#f3f7f7;color:#5a6c70;font-weight:600;text-align:left;padding:8px 14px 8px 10px;border-bottom:1px solid #dfe7e7;white-space:nowrap;}
.dl-qa-table td{padding:7px 10px;border-bottom:1px solid #edf1f1;color:#34454a;vertical-align:top;}
.dl-qa-table tr:last-child td{border-bottom:none;}
.dl-qa-bid{color:#6b7d81;font-variant-numeric:tabular-nums;white-space:nowrap;}
.dl-qa-msg{word-break:break-word;}
.dl-qa-checker{color:#6b7d81;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.dl-qa-level{display:inline-block;padding:1px 7px;border-radius:9px;font-size:11px;line-height:17px;white-space:nowrap;}
.dl-qa-level.is-error{background:#fde7e6;color:#c0392b;}
.dl-qa-level.is-warn{background:#fff3df;color:#b26a12;}
.dl-qa-src,.dl-qa-tgt{color:#6b7d81;}
.dl-qa-text{max-height:4.2em;overflow:auto;line-height:1.5;white-space:normal;word-break:break-word;overflow-wrap:anywhere;}
.dl-qa-col-grip{position:absolute;top:0;right:-4px;z-index:3;width:8px;height:100%;cursor:col-resize;touch-action:none;}
.dl-qa-col-grip:after{content:"";position:absolute;top:0;bottom:0;left:3px;width:2px;background:transparent;transition:background .12s;}
.dl-qa-col-grip:hover:after,.dl-qa-col-grip.dragging:after{background:#7fb7d6;}
.dl-qa-tip{margin:10px 0 0;font-size:11.5px;color:#7b8a8d;}
body.theme-dark .dl-qa-head{background:#3a2528;border-color:#6b3a3f;color:#ffd8d8;}
body.theme-dark .dl-qa-head p{color:#e5b3b1;}
body.theme-dark .dl-qa-table-wrap{border-color:#34464b;}
body.theme-dark .dl-qa-table{background:#202b30;}
body.theme-dark .dl-qa-table th{background:#26363b;color:#b9ccce;border-color:#34464b;}
body.theme-dark .dl-qa-table td{color:#d6e2e4;border-color:#2f4147;}
body.theme-dark .dl-qa-level.is-error{background:#4a2a2b;color:#ffb3ae;}
body.theme-dark .dl-qa-level.is-warn{background:#43371f;color:#f4c77d;}
body.theme-dark .dl-qa-tip{color:#9fb2b5;}
.dl-note{margin:22px 6px 0 144px;color:#93a1a3;font-size:11.5px;line-height:18px;}
@media (max-width:760px){
  .dl-field{grid-template-columns:1fr;}
  .dl-field > label{text-align:left;padding-top:0;}
  .dl-note{margin-left:6px;}
}

/* 交付选择库窗口 */
.dl-lib-name{flex:1;min-width:0;height:34px;border:1px solid #dbe4e4;border-radius:3px;padding:0 9px;font-size:12.5px;color:#34454a;background:#fff;cursor:pointer;}
.dl-lib-name::placeholder{color:#a0adaf;}
.lp-mask{position:fixed;inset:0;background:rgba(15,30,35,.38);z-index:120;display:flex;align-items:center;justify-content:center;}
.lp-card{width:920px;max-width:94vw;max-height:86vh;background:#fff;border-radius:4px;box-shadow:0 10px 40px rgba(0,0,0,.18);display:flex;flex-direction:column;overflow:hidden;}
.lp-card header{display:flex;align-items:center;padding:13px 18px;border-bottom:1px solid #e8eeee;}
.lp-card header strong{font-size:14px;color:#2e3e42;}
.lp-close{margin-left:auto;border:0;background:none;font-size:20px;line-height:1;color:#8b9a9d;cursor:pointer;padding:0 2px;}
.lp-close:hover{color:#d9534f;}
.lp-toolbar{display:flex;align-items:center;gap:10px;padding:12px 18px;border-bottom:1px solid #eef3f3;}
.lp-toolbar input{flex:1;height:32px;border:1px solid #dbe4e4;border-radius:3px;padding:0 9px;font-size:12.5px;}
.lp-count{color:#8b9a9d;font-size:11.5px;white-space:nowrap;}
.lp-clear{height:32px;font-size:12px;padding:0 10px;}
.lp-list{flex:1;min-height:0;overflow:auto;}
.lp-table{font-size:12px;margin:0;border:0;}
.lp-table th{position:sticky;top:0;z-index:1;background:#f7fafa;color:#526265;font-weight:600;border-bottom:1px solid #e2e9e9;border-right:1px solid #edf2f2;padding:9px 10px;text-align:center;white-space:nowrap;}
.lp-table td{border-bottom:1px solid #edf2f2;border-right:1px solid #f1f5f5;padding:9px 10px;color:#3c4b4f;white-space:nowrap;}
.lp-table tbody tr{cursor:pointer;}
.lp-table tbody tr:hover{background:#f5fbfb;}
.lp-table tbody tr.selected{background:#eafafa;}
.lp-name{font-weight:600;color:#2c3d40;}
.lp-tag{display:inline-block;margin-left:7px;padding:1px 6px;border-radius:9px;background:#eaf7f5;color:#0d8f8b;font-size:10.5px;font-weight:400;}
.lp-empty{height:320px;display:flex;align-items:center;justify-content:center;color:#9aa7aa;font-size:12.5px;}
@media (max-width:720px){
  .lp-card{width:96vw;}
  .lp-toolbar{flex-wrap:wrap;}
}
@media (max-width:760px){
  .lp-table th:nth-child(4),.lp-table td:nth-child(4),.lp-table th:nth-child(6),.lp-table td:nth-child(6){display:none;}
  .lp-table th:last-child,.lp-table td:last-child{width:62px;}
}

/* 文件下载：文件 / 术语 / 语料 */
.fd-wrap{font-size:12.5px;color:#34454a;}
.fd-tabs{display:flex;align-items:flex-end;gap:22px;border-bottom:1px solid #e4ebeb;padding:0 2px;margin:-2px 0 14px;}
.fd-tab{border:0;background:none;padding:0 2px 10px;font-size:12.5px;color:#3c4f53;cursor:pointer;position:relative;}
.fd-tab.active{color:#0e8f8b;font-weight:600;}
.fd-tab.active:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:#11a39f;}
.fd-pane[hidden]{display:none;}
.fd-selbar{display:flex;align-items:center;height:42px;padding:0 14px;border:1px solid #bce5e1;background:#eefaf9;color:#0b8e8a;border-radius:2px;}
.fd-check{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;margin-right:9px;border-radius:50%;background:#159e9a;color:#fff;font-style:normal;font-size:11px;}
.fd-selbar strong{margin:0 3px;font-weight:700;}
.fd-clear{margin-left:auto;border:0;background:none;color:#0e8f8b;cursor:pointer;font-size:12px;}
.fd-clear:hover{text-decoration:underline;}
.fd-list{max-height:450px;overflow:auto;margin-top:12px;border-bottom:1px solid #e5ecec;}
.fd-loading{height:280px;display:flex;align-items:center;justify-content:center;color:#9aa7aa;}
.fd-table{margin:0;border:0;font-size:12px;}
.fd-table th{position:sticky;top:0;z-index:1;background:#fff;border-bottom:1px solid #e1e9e9;border-right:1px solid #edf2f2;padding:9px 8px;color:#516164;font-weight:600;text-align:center;white-space:nowrap;}
.fd-table td{border-bottom:1px solid #edf2f2;border-right:1px solid #f2f6f6;padding:8px 8px;color:#3d4c50;white-space:nowrap;}
.od-table th,.off-table th,.lp-table th,.fd-table th,.dl-qa-table th{border-right-color:#d8e4e2;}
.od-table td,.off-table td,.lp-table td,.fd-table td,.dl-qa-table td{border-right-color:#e2ecea;}
.fd-table tbody tr:hover{background:#f7fbfb;}
.fd-cb{width:38px;text-align:center;}
.fd-cb input{width:14px;height:14px;accent-color:#11a39f;cursor:pointer;}
.fd-name{max-width:260px;overflow:hidden;text-overflow:ellipsis;}
.fd-actions{display:flex;flex-wrap:wrap;gap:8px;padding:12px 0 10px;}
.fd-actions .btn{height:32px;padding:0 12px;font-size:12px;}
.fd-pager{display:flex;align-items:center;justify-content:flex-end;gap:5px;min-height:32px;color:#5c6d70;font-size:11.5px;flex-wrap:wrap;}
.fd-page-info{margin-right:8px;}
.fd-page{min-width:27px;height:27px;border:1px solid #d8e3e3;border-radius:3px;background:#fff;color:#44565a;cursor:pointer;padding:0 6px;}
.fd-page:hover:not(:disabled){border-color:#12a39f;color:#0e8f8b;}
.fd-page.active{border-color:#12a39f;background:#12a39f;color:#fff;}
.fd-page:disabled{opacity:.45;cursor:default;}
.fd-page-size{margin-left:9px;}
.fd-jump input{width:40px;height:27px;margin:0 4px;border:1px solid #d8e3e3;border-radius:3px;text-align:center;font-size:11.5px;}
.fd-simple{display:flex;align-items:center;gap:8px;min-height:42px;}
.fd-format-label{color:#3e5054;}
.fd-format{height:32px;min-width:135px;border:1px solid #cfdede;border-radius:3px;background:#fff;color:#405357;font-size:12px;padding:0 7px;}
.fd-simple .btn{height:32px;padding:0 12px;font-size:12px;}
@media (max-width:820px){
  .fd-table th:nth-child(5),.fd-table td:nth-child(5),.fd-table th:nth-child(8),.fd-table td:nth-child(8){display:none;}
  .fd-name{max-width:220px;}
  .fd-page-info{width:100%;margin-right:0;}
}

/* 通用启用/禁用分段开关 */
.seg-toggle{display:inline-flex;align-items:center;gap:6px;vertical-align:middle;}
.seg-toggle input[type="hidden"]{display:none;}
.seg-toggle button{height:30px;min-width:58px;padding:0 13px;border:1px solid #d6e2e2;border-radius:3px;background:#fff;color:#526568;font-size:12px;cursor:pointer;line-height:1;}
.seg-toggle button:hover{border-color:#12a39f;color:#0e8f8b;}
.seg-toggle button.active{border-color:#10a39f;background:#10a39f;color:#fff;font-weight:600;}
.seg-toggle button.active:hover{color:#fff;}

/* 任务分派字数统计弹层 */
.wc-mask{position:fixed;inset:0;z-index:130;background:rgba(18,32,36,.42);display:flex;align-items:center;justify-content:center;}
.wc-card{width:690px;max-width:92vw;max-height:88vh;background:#fff;border-radius:4px;box-shadow:0 12px 42px rgba(0,0,0,.2);display:flex;flex-direction:column;overflow:hidden;}
.wc-card header{display:flex;align-items:center;padding:13px 18px;border-bottom:1px solid #e8eeee;}
.wc-card header strong{font-size:14px;color:#2f3e42;}
.wc-close{margin-left:auto;border:0;background:none;color:#8b9a9d;font-size:20px;line-height:1;cursor:pointer;padding:0 2px;}
.wc-close:hover{color:#d9534f;}
.wc-body{padding:16px 18px 4px;overflow:auto;}
.wc-body .od-dp-table th,.wc-body .od-dp-table td{padding:10px 8px;}
.wc-sum{display:flex;justify-content:space-between;padding:8px 18px 14px;color:#3c4d51;}
.wc-sum span{flex:1;text-align:center;}
.wc-sum b{font-weight:700;color:#2f3f43;}
.wc-foot{display:flex;justify-content:flex-end;padding:10px 18px;border-top:1px solid #edf2f2;}


/* 窄屏分派布局：信息表 3 列、任务行 2 列 */
@media (max-width:900px){
  .ta-info-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  .ta2-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;}
  .ta2-row>.ta2-person{grid-column:1/-1;}
  .ta2-row>label:nth-child(4){grid-column:1/-1;}
  .ta2-row>.ta2-remain{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;text-align:left;}
}
@media (max-width:520px){
  .ta-info-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .wc-card{width:94vw;}
  .wc-sum{flex-direction:column;gap:6px;}
}

/* ===== 翻译界面主题方案（放在文件末尾，覆盖前面的浅色默认规则） ===== */
body.theme-blue{--bg:#eef4fb;--text:#2b3d52;--line:#d8e4f2;background:#eef4fb;}
body.theme-blue .page.editor{background:#eef4fb;}
body.theme-blue .editor-window-bar{background:#f7faff;border-bottom-color:#d8e4f2;}
body.theme-blue .editor-window-bar .edw-brand{border-right-color:#d8e4f2;}
body.theme-blue .edw-tab{color:#405772;}
body.theme-blue .edw-tab.active{color:#2d548b;border-bottom-color:#2d548b;}
body.theme-blue .editor-top,
body.theme-blue .editor-toolbar,
body.theme-blue .ed-view-toolbar,
body.theme-blue .editor-filter,
body.theme-blue .editor-left,
body.theme-blue .editor-right,
body.theme-blue .preview-pane,
body.theme-blue .preview-head,
body.theme-blue .editor-status,
body.theme-blue .panel-tabs,
body.theme-blue .panel-body,
body.theme-blue .panel-dock{background:#f7faff;border-color:#d8e4f2;color:#405772;}
body.theme-blue .editor-top .proj-name,
body.theme-blue .editor-top .badge{color:#3d5877;}
body.theme-blue .preview-body{background:#f2f8ff;color:#3d5570;}
body.theme-blue table.sentence-grid thead th{background:#e9f2fc;color:#3d5877;}
body.theme-blue .sentence-grid .c-src{color:#20384f;}
body.theme-blue .sentence-grid .c-tgt{background:#f4f9ff;}
body.theme-blue .sentence-grid .c-tgt textarea{color:#173d66;}
body.theme-blue .sentence-grid .c-tgt textarea:focus{background:transparent;box-shadow:none;}
body.theme-blue .sentence-grid tr.sel{--row-sel:#e2efff;--sel-line:#c3d9f0;}
body.theme-blue .sentence-grid tr.sel td{background:var(--row-sel);}

body.theme-eye{--bg:#edf4e9;--text:#35453a;--line:#d9e5d5;background:#edf4e9;}
body.theme-eye .page.editor{background:#edf4e9;}
body.theme-eye .editor-window-bar{background:#f8fcf5;border-bottom-color:#d9e5d5;}
body.theme-eye .editor-window-bar .edw-brand{border-right-color:#d9e5d5;}
body.theme-eye .edw-tab{color:#40543f;}
body.theme-eye .edw-tab.active{color:#356b3e;border-bottom-color:#4f7d58;}
body.theme-eye .editor-top,
body.theme-eye .editor-toolbar,
body.theme-eye .ed-view-toolbar,
body.theme-eye .editor-filter,
body.theme-eye .editor-left,
body.theme-eye .editor-right,
body.theme-eye .preview-pane,
body.theme-eye .preview-head,
body.theme-eye .editor-status,
body.theme-eye .panel-tabs,
body.theme-eye .panel-body,
body.theme-eye .panel-dock{background:#f8fcf5;border-color:#d9e5d5;color:#40543f;}
body.theme-eye .editor-top .proj-name,
body.theme-eye .editor-top .badge{color:#40543f;}
body.theme-eye .preview-body{background:#f2f9ee;color:#43553f;}
body.theme-eye table.sentence-grid thead th{background:#eaf3e4;color:#40543f;}
body.theme-eye .sentence-grid .c-src{color:#2e4231;}
body.theme-eye .sentence-grid .c-tgt{background:#f5faf1;}
body.theme-eye .sentence-grid .c-tgt textarea{color:#2c5138;}
body.theme-eye .sentence-grid .c-tgt textarea:focus{background:transparent;box-shadow:none;}
body.theme-eye .sentence-grid tr.sel{--row-sel:#e2f1d8;--sel-line:#c5dcb5;}
body.theme-eye .sentence-grid tr.sel td{background:var(--row-sel);}

body.theme-dark{--bg:#1b2428;--text:#d6e2e4;--line:#3a4a50;background:#1b2428;}
body.theme-dark .page.editor{background:#1b2428;}
body.theme-dark .editor-top,
body.theme-dark .editor-toolbar,
body.theme-dark .ed-view-toolbar,
body.theme-dark .editor-filter,
body.theme-dark .editor-left,
body.theme-dark .editor-right,
body.theme-dark .preview-pane,
body.theme-dark .preview-head,
body.theme-dark .editor-status,
body.theme-dark .panel-tabs,
body.theme-dark .panel-body,
body.theme-dark .panel-dock{background:#202b30;border-color:#34464b;color:#c7d6d8;}
body.theme-dark .editor-top .proj-name,
body.theme-dark .editor-top .badge{color:#c7d6d8;}
body.theme-dark .preview-body{background:#1c272b;color:#c7d6d8;}
body.theme-dark table.sentence-grid thead th{background:#28383d;color:#c7d6d8;border-color:#34464b;}
body.theme-dark .sentence-grid .c-src{color:#f0f8f8;}
body.theme-dark .sentence-grid .c-no{color:#aebfc1;}
body.theme-dark .sentence-grid .c-tgt{background:#1f2d32;}
body.theme-dark .sentence-grid .c-tgt textarea{color:#f0fbfa;}
body.theme-dark .st-tile{background:transparent;border:0;color:#b7c9cb;}
body.theme-dark .st-tile.ready{color:#72d5cb;}
body.theme-dark .st-tile.qc.ready{color:#c8d8d9;}
body.theme-dark .st-tile.done{color:#8fd7aa;}
body.theme-dark .st-tile.deny{color:#e9a79a;}
body.theme-dark .st-tile.blocked{color:#819396;}
body.theme-dark .st-tile.qa.alert{color:#ff948a;}
body.theme-dark #editor-body .sentence-grid .st-tile.qa.alert,
body.editor-window.theme-dark #editor-body .sentence-grid .st-tile.qa.alert{background:#3a2528!important;}
body.theme-dark .st-tile.qa.alert::after,
body.editor-window.theme-dark .st-tile.qa.alert::after,
body.ui-style-dark .st-tile.qa.alert::after{background:#3a2528;border-color:#6b3a3f;color:#ffb8b1;box-shadow:0 6px 16px rgba(0,0,0,.28);}
body.theme-dark .st-tile.qa.ignored,body.theme-dark .st-tile.qa.normal{color:#819396;}
body.theme-dark .st-tile.qa.idle{color:#8fa3a5;}
body.theme-dark .st-tile.qa.clean{color:#a7b8ba;}
body.theme-dark .row-flag{border-color:#3a4d52;background:#223136;color:#9db0b2;}
body.theme-dark .row-flag.mt{border-color:#724a43;background:#3a2a27;color:#e9a79a;}
body.theme-dark .row-flag.tm{border-color:#3f6a4f;background:#26372c;color:#9ad8b1;}
body.theme-dark .row-flag.dup{border-color:#6b5c37;background:#342f22;color:#e3c27a;}
body.theme-dark .row-flag-model{color:#e0a79a;}
body.theme-dark .st-rate{background:#2c6b44;color:#f1fff7;}
body.theme-dark .st-rate.lo{background:#6d5420;color:#fff4dc;}
body.theme-dark .sentence-grid .c-tgt textarea:focus{background:transparent;box-shadow:none;}
body.theme-dark .sentence-grid tr.sel{--row-sel:#2d4147;--sel-line:#46606a;}
body.theme-dark .sentence-grid tr.sel td{background:var(--row-sel);}
body.theme-dark .sentence-grid tr.dirty .c-tgt{box-shadow:inset 3px 0 0 #ffc400;}
body.theme-dark .tb,
body.theme-dark .view-tool,
body.theme-dark .ef-icon,
body.theme-dark .ef-case,
body.theme-dark .ef-remember,
body.theme-dark .mini,
body.theme-dark .ghost{background:transparent;color:#b9cbcd;border-color:#3c4f55;}
body.theme-dark .ef-remember.return{background:#284045;border-color:#4c6b70;color:#9fe4e0;}
body.theme-dark .tb b,
body.theme-dark .view-tool b{color:#d6e6e6;}
body.theme-dark .tb-ai-btn>b.ai-ico-trans{color:#5ee0d7;}
body.theme-dark .tb-ai-btn>b.ai-ico-retrans{color:#8fb7ea;}
body.theme-dark .tb-ai-btn>b.ai-ico-review{color:#f0b35e;}
body.theme-dark #tb-ai>b.ai-ico-trans{color:#5ee0d7;}
body.theme-dark #tb-ai-retrans>b.ai-ico-retrans{color:#8fb7ea;}
body.theme-dark #tb-ai-review>b.ai-ico-review{color:#f0b35e;}
body.theme-dark .tb:hover,
body.theme-dark .view-tool:hover,
body.theme-dark .mini:hover{background:#2b3d43;color:#8fe0dd;}
body.theme-dark .tb.active{background:#234a4a;color:#8fe0dd;}
body.theme-dark .tb.active b{color:#8fe0dd;}
body.theme-dark .editor-filter input[type=search],
body.theme-dark .editor-filter select,
body.theme-dark .find-replace-bar input[type=search],
body.theme-dark .qf-panel select,
body.theme-dark .qf-panel input,
body.theme-dark .panel-body input,
body.theme-dark .panel-body textarea,
body.theme-dark .panel-body select{background:#26363b;border-color:#41565c;color:#dcebec;}
body.theme-dark .find-replace-bar{background:#202b30;border-color:#34464b;}
body.theme-dark .fr-label,
body.theme-dark .fr-scope{color:#9fb2b5;}
body.theme-dark .fr-btn{background:transparent;border-color:#3c4f55;color:#b9cbcd;}
body.theme-dark .fr-btn.strong{background:#0d9c9c;border-color:#0d9c9c;color:#fff;}
body.theme-dark .fr-close{color:#9fb2b5;}
body.theme-dark .qf-panel{background:#26363b;border-color:#41565c;color:#d4e2e4;}
body.theme-dark .qf-head{background:#26363b;border-color:#3b4c51;}
body.theme-dark .qf-head b{color:#d4e2e4;}
body.theme-dark .qf-row>label,
body.theme-dark .qf-label{color:#aabec0;}
body.theme-dark .qf-checks label{color:#d4e2e4;}
body.theme-dark .qf-jump button{background:#2c4248;border-color:#4c6b70;color:#9fe4e0;}
body.theme-dark .pt{color:#9fb2b5;border-color:#2f4045;}
body.theme-dark .pt.active{background:#202b30;color:#8fdedb;}
body.theme-dark .dock-head,
body.theme-dark .panel-sec{color:#aabec0;border-color:#324348;}
body.theme-dark .dock-body,
body.theme-dark .side-body{background:#1f2b30;color:#c7d6d8;}
body.theme-dark .mt-card,
body.theme-dark .asset-card{border-color:#35474c;}
body.theme-dark .mt-card .src,
body.theme-dark .asset-card .s,
body.theme-dark .remark-item .val,
body.theme-dark .history-item .val{color:#d6e2e4;}
body.theme-dark .mt-card .tgt,
body.theme-dark .asset-card .t{background:#283a40;color:#d8e8e8;}
body.theme-dark .remark-item,
body.theme-dark .history-item,
body.theme-dark .term-row{border-color:#324348;}
body.theme-dark .term-search input,
body.theme-dark .term-form input,
body.theme-dark .remark-add textarea{background:#26363b;border-color:#41565c;color:#dcebec;}
body.theme-dark .tag{background:#2a3a40;border-color:#465b60;color:#c5d4d6;}
body.theme-dark .tag.confirm{background:#213d32;border-color:#2f6a51;color:#8fd7b2;}
body.theme-dark .tag.deny{background:#3d2927;border-color:#70413b;color:#e79b91;}
body.theme-dark .tag.mt{background:#26374d;border-color:#3a5780;color:#9ec2f2;}
body.theme-dark .dock-head{background:#202b30;border-bottom-color:#34464b;}
body.theme-dark .dock-title,
body.theme-dark .dock-count{color:#aabec0;}
body.theme-dark .dock-empty,
body.theme-dark .dock-empty-ico{color:#8fa5a5;}
body.theme-dark .editor-hsplit,
body.theme-dark .preview-resizer,
body.theme-dark .panel-splitter{background:#202b30;}
body.theme-dark .editor-hsplit:before,
body.theme-dark .preview-resizer:before,
body.theme-dark .panel-splitter:before{background:#34464b;}
body.theme-dark .editor-hsplit:after,
body.theme-dark .preview-resizer:after{background:#465b60;}
body.theme-dark .status-order{color:#d3e0e2;}
body.theme-dark .status-center{color:#c1d1d3;}
body.theme-dark .status-words,
body.theme-dark .status-due{color:#aebfc1;}
body.theme-dark .pager-input{background:#26363b;border-color:#41565c;color:#dcebec;}
body.theme-dark .editor-window-bar{background:#202b30;border-bottom-color:#34464b;}
body.theme-dark .edw-brand{border-right-color:#34464b;}
body.theme-dark .edw-brand strong{color:#8fdedb;}
body.theme-dark .edw-tab{color:#b9cbcd;}
body.theme-dark .edw-tab.active{color:#8fe0dd;border-bottom-color:#8fe0dd;}
body.theme-dark .tb-split{background:transparent;}
body.theme-dark .tb-split .tb-caret{border-left-color:#3c4f55;}
body.theme-dark .tb-group{border-right-color:#33464b;}
body.theme-dark .editor-toolbar .view-tool.active{background:#2c4248;color:#9fe4e0;border-color:#4c6b70;}
body.theme-dark .tb-ai-btn>span,
body.theme-dark #tb-ai-retrans>b{color:#c7d6d8;}
body.theme-dark #tb-ai-lock.active{background:#3a3520;}
body.theme-dark #tb-ai-lock svg,
body.theme-dark #tb-ai-lock svg rect{stroke:#d7e2e3;}
body.theme-dark #tb-ai-lock svg rect{fill:#d7b64f;}
body.theme-dark #tb-ai-lock svg circle{fill:#d7e2e3;}
body.theme-dark .editor-filter .ef-field span,
body.theme-dark .editor-filter .inline{color:#9fb2b5;}
body.theme-dark .panel-rail{background:#202b30;border-left-color:#34464b;}
body.theme-dark .rail-btn{color:#9fb2b5;}
body.theme-dark .rail-btn.active{background:#2c3f45;color:#8fe0dd;}

/* 深夜色统一：去掉右侧白卡、浅青悬停和亮黄预览，避免大面积高反差 */
body.theme-dark table.grid thead th,
body.theme-dark .od-table th,
body.theme-dark .off-table th,
body.theme-dark .lp-table th,
body.theme-dark .fd-table th,
body.theme-dark .dl-qa-table th{border-right-color:#33464b;}
body.theme-dark table.grid tbody td,
body.theme-dark table.grid tfoot td,
body.theme-dark .od-table td,
body.theme-dark .off-table td,
body.theme-dark .lp-table td,
body.theme-dark .fd-table td,
body.theme-dark .dl-qa-table td{border-right-color:#2f4147;}
body.theme-dark .perf-delivery-time{color:#c7d6d8;}
body.theme-dark .perf-time-delta.pos{color:#8fdedb;background:#203a34;border-color:#35665a;}
body.theme-dark .perf-time-delta.neg{color:#ffb3b0;background:#3a2528;border-color:#6b3a3f;}
body.theme-dark table.grid tbody tr:hover{background:#26363b;}
body.theme-dark table.grid tbody tr.sel,
body.theme-dark .sentence-grid tbody tr.sel{background:#2d4147;}
body.theme-dark .sentence-grid tbody tr:not(.sel):hover td{background:#26363b;}
body.theme-dark .side-title{background:#202b30;border-color:#34464b;color:#c7d6d8;}
body.theme-dark .review-side-tools{color:#9fb2b5;}
body.theme-dark .review-summary{background:#243238;border-color:#3a5056;}
body.theme-dark .review-sum-text b{color:#d6e2e4;}
body.theme-dark .review-sum-text p{color:#c7d6d8;}
body.theme-dark .review-score{border-color:#41565c;}
body.theme-dark .review-score strong{color:#8fdedb;}
body.theme-dark .review-score span,
body.theme-dark .review-meta{color:#8fa3a6;}
body.theme-dark .review-types span{background:#2c4248;color:#9fd8d3;}
body.theme-dark .review-issue{background:#243238;border-color:#35474c;}
body.theme-dark .review-issue:hover{border-color:#506a70;}
body.theme-dark .review-issue-head b{background:#2c4248;color:#9fc9e8;}
body.theme-dark .review-issue-head span{color:#8fa3a6;}
body.theme-dark .review-issue-source{color:#d6e2e4;}
body.theme-dark .review-issue-target{background:#1f2b30;color:#b7c9cb;}
body.theme-dark .review-issue-problem{color:#e7a79c;}
body.theme-dark .review-issue-sug{background:#26363b;border-color:#41565c;color:#dcebec;}
body.theme-dark .review-issue.applied{background:#213630;border-color:#3f6a5d;}
body.theme-dark .review-applied{background:#2a4a40;color:#9fe0c7;}
body.theme-dark .panel-engine-bar{border-color:#34464b;}
body.theme-dark .panel-engine-bar select,
body.theme-dark .pe-refresh,
body.theme-dark .ai-foot-engine select{background:#26363b;border-color:#41565c;color:#dcebec;}
body.theme-dark .mt-src{background:#1f2b30;border-color:#34464b;}
body.theme-dark .mt-src-label{color:#8fa3a6;}
body.theme-dark .mt-src-text{color:#d6e2e4;}
body.theme-dark .mt-result{background:#243238;border-color:#3a5056;color:#e1eeee;}
body.theme-dark .mt-result:hover{background:#2c3d43;border-color:#4c686e;}
body.theme-dark .mt-error{background:#352724;border-color:#6e443d;color:#e7a79c;}
body.theme-dark .corpus-card{background:#243238;border-color:#35474c;}
body.theme-dark .corpus-card:hover{border-color:#506a70;}
body.theme-dark .cc-no{border-color:#41565c;color:#aebfc1;}
body.theme-dark .cc-rate{background:none;color:#dbe7e8;}
body.theme-dark .cc-temp{background:#26363b;color:#b7c9cb;}
body.theme-dark .cc-lib-temp{border-color:#8f5252;background:#3a2528;color:#ff9d9d;}
body.theme-dark .cc-lib-industry{border-color:#76518a;background:#32243b;color:#d1a3e8;}
body.theme-dark .cc-lib-other{border-color:#3d5c78;background:#22303d;color:#9fc3f2;}
body.theme-dark .cc-who{color:#8fa3a6;}
body.theme-dark .cc-src{color:#c8d7d9;}
body.theme-dark .cc-tgt{background:transparent;color:#e3efef;}
body.theme-dark .cc-tgt:hover{color:#8ff0ea;}
body.theme-dark .cc-diff{background:#4a2528;color:#ff9d9d;}
body.theme-dark .cc-hint{color:#8fa3a6;}
body.theme-dark .panel-fill-btn{background:#20383b;border-color:#3f7777;color:#8ff0ea;}
body.theme-dark .panel-fill-btn:hover{background:#294b4d;border-color:#62a6a2;color:#c5fffb;}
body.theme-dark .ai-prompt{background:#26363b;border-color:#41565c;color:#dcebec;}
body.theme-dark .modal-body .ai-modal-prompt{background:#26363b;border-color:#41565c;color:#dcebec;}
body.theme-dark .ai-modal-reset{color:#8fb7e8;}
body.theme-dark .ai-modal-term{background:#20312b;color:#a9cbb4;border-left-color:#5f9d77;}
body.theme-dark .ai-modal-hint{color:#7f9298;}
body.ui-style-dark .modal-body .ai-modal-prompt{background:#1f2a33;border-color:#33424f;color:#dce9f4;}
body.ui-style-dark .ai-modal-reset{color:#8fb7e8;}
body.ui-style-dark .ai-modal-term{background:#20312b;color:#a9cbb4;border-left-color:#5f9d77;}
body.ui-style-dark .ai-modal-hint{color:#7f9298;}
body.theme-dark .ai-result{background:#243238;border-color:#3a5056;color:#e1eeee;}
body.theme-dark .ai-result-head,
body.theme-dark .ai-tip{color:#9fb2b5;}
body.theme-dark .hist-card,
body.theme-dark .note-card{background:#243238;border-color:#35474c;}
body.theme-dark .hc-val,
body.theme-dark .nc-text{color:#d6e2e4;}
body.theme-dark .hc-meta,
body.theme-dark .nc-meta{color:#8fa3a6;}
body.theme-dark .qa-table,
body.theme-dark .qc-table{background:#243238;border-color:#35474c;}
body.theme-dark .qa-row{border-color:#324348;}
body.theme-dark .qa-head{background:#2a3a40;color:#9fb2b5;}
body.theme-dark .qa-msg{color:#d6e2e4;}
body.theme-dark .qa-row.is-normal .qa-msg{color:#aebfc1;}
body.theme-dark .qa-row.is-ignored .qa-level,
body.theme-dark .qa-level.lv-0{background:#2a3a40;color:#aebfc1;}
body.theme-dark .qa-level.lv-1{background:#3b3220;color:#e2c27a;}
body.theme-dark .qa-level.lv-2{background:#3d2927;color:#e79b91;}
body.theme-dark .qc-status{background:#3b3220;color:#e2c27a;}
body.theme-dark .dict-row.dict-head{background:#202b30;color:#8fa3a6;}
body.theme-dark .dict-row:hover,
body.theme-dark .dock-term:hover{background:#26363b;}
body.theme-dark .dock-term{border-color:#324348;}
body.theme-dark .dt-src,
body.theme-dark .dict-row .ds{color:#aebfc1;}
body.theme-dark .dt-tgt,
body.theme-dark .dict-row .dt{color:#d6e6e6;}
body.theme-dark .preview-body .hl{background:#43391f;color:#f1dca6;}
@media (max-width:560px){
  .theme-grid,.layout-grid{grid-template-columns:1fr;}
  .theme-swatch{width:60px;height:40px;}
  .theme-choice,.layout-choice{gap:10px;padding:9px;}
  .layout-demo{width:76px;height:50px;}
}
@media (max-width:520px){
  #editor-body.stacked table.sentence-grid tbody tr{grid-template-columns:64px minmax(0,1fr);}
  #editor-body.stacked table.sentence-grid .c-no{grid-column:1;grid-row:1;padding:7px 6px;border-right:1px solid #f0f4f4;font-size:11px;}
  #editor-body.stacked table.sentence-grid .c-status{grid-column:1;grid-row:2;padding:6px;border-left:0;border-top:1px solid #f0f4f4;gap:3px;}
  #editor-body.stacked table.sentence-grid .c-status .mini{padding:0 4px;font-size:10.5px;}
  #editor-body.stacked table.sentence-grid .st-flow{flex-direction:row;gap:2px;}
  #editor-body.stacked table.sentence-grid .st-tile{flex:0 0 18px;width:18px;height:18px;}
  #editor-body.stacked table.sentence-grid .st-tile .st-ico svg{width:15px;height:15px;}
  #editor-body.stacked table.sentence-grid .st-rate{min-width:52px;height:20px;font-size:10.5px;padding:0 5px;}
  #editor-body.stacked table.sentence-grid .c-src{grid-column:2;grid-row:1;}
  #editor-body.stacked table.sentence-grid .c-tgt{grid-column:2;grid-row:2;}
}

/* 浅色主题下加深次级文字，避免灰字贴浅底 */
body.editor-window:not(.theme-dark) .tb{color:#405256;}
body.editor-window:not(.theme-dark) .tb b{color:#4d6267;}
body.editor-window:not(.theme-dark) .tb-ai-btn>b.ai-ico-trans{color:#0f8f8a;}
body.editor-window:not(.theme-dark) .tb-ai-btn>b.ai-ico-retrans{color:#2d548b;}
body.editor-window:not(.theme-dark) .tb-ai-btn>b.ai-ico-review{color:#b26a00;}
body.editor-window:not(.theme-dark) .view-tool{color:#405256;}
body.editor-window:not(.theme-dark) .view-tool b{color:#50656a;}
body.editor-window:not(.theme-dark) .editor-filter{color:#4a5e63;}
body.editor-window:not(.theme-dark) .ef-field span{color:#4a5e63;}
body.editor-window:not(.theme-dark) .panel-body .pad,
body.editor-window:not(.theme-dark) .dock-empty,
body.editor-window:not(.theme-dark) .dock-empty-ico{color:#65777b;}
body.editor-window:not(.theme-dark) .status-center{color:#3f5256;}
body.editor-window:not(.theme-dark) .status-words,
body.editor-window:not(.theme-dark) .status-due{color:#52656a;}
body.editor-window:not(.theme-dark) .c-status .mini{color:#4e6267;}

/* 极窄窗口：左右对照改为逐句上下，避免译文列被挤到几十像素 */
@media (max-width:360px){
  #editor-body:not(.stacked) table.sentence-grid{display:block;width:100%;table-layout:auto;}
  #editor-body:not(.stacked) table.sentence-grid thead{display:none;}
  #editor-body:not(.stacked) table.sentence-grid tbody{display:block;}
  #editor-body:not(.stacked) table.sentence-grid tbody td{display:block;min-width:0;border:0;padding:0;}
  #editor-body:not(.stacked) table.sentence-grid tbody tr{
    display:grid;grid-template-columns:48px minmax(0,1fr);
    border-bottom:1px solid #eef2f2;
  }
  #editor-body:not(.stacked) table.sentence-grid .c-no{grid-column:1;grid-row:1;padding:7px 5px;border-right:1px solid #f0f4f4;font-size:10.5px;white-space:normal;}
  #editor-body:not(.stacked) table.sentence-grid .c-src{grid-column:2;grid-row:1;padding:7px 8px;border-bottom:1px dashed #e2eceb;}
  #editor-body:not(.stacked) table.sentence-grid .c-tgt{grid-column:2;grid-row:2;background:#f5faf9;}
  #editor-body:not(.stacked) table.sentence-grid .c-status{grid-column:1;grid-row:2;padding:6px 3px;border-left:0;border-top:1px solid #f0f4f4;display:flex;flex-direction:column;gap:3px;align-items:flex-start;}
  #editor-body:not(.stacked) table.sentence-grid .c-status .mini{padding:0 3px;font-size:10px;}
  #editor-body:not(.stacked) table.sentence-grid .st-flow{flex-direction:row;gap:2px;}
  #editor-body:not(.stacked) table.sentence-grid .st-tile{flex:0 0 18px;width:18px;height:18px;}
  #editor-body:not(.stacked) table.sentence-grid .st-tile .st-ico svg{width:15px;height:15px;}
  #editor-body:not(.stacked) table.sentence-grid .st-rate{min-width:52px;height:20px;font-size:10.5px;padding:0 5px;}
  #editor-body:not(.stacked) table.sentence-grid .c-src::before{content:"原文";display:block;margin-bottom:2px;color:#5c7176;font:10px/1.2 "Microsoft YaHei",sans-serif;}
  #editor-body:not(.stacked) table.sentence-grid .c-tgt::before{content:"译文";display:block;padding:6px 8px 0;color:#54716f;font:10px/1.2 "Microsoft YaHei",sans-serif;}
}



/* ---- 原文修改 ---- */
.sentence-grid .c-src{position:relative;}
.sentence-grid .c-src .src-view{white-space:pre-wrap;overflow-wrap:anywhere;padding-right:22px;}
.sentence-grid .c-src .src-tools{position:absolute;top:2px;right:3px;display:flex;align-items:center;gap:4px;margin:0;opacity:0;pointer-events:none;transition:opacity .12s;}
.sentence-grid tr:hover .c-src .src-tools,
.sentence-grid tr.sel .c-src .src-tools{opacity:1;pointer-events:auto;}
.sentence-grid .c-src .src-btn{height:19px;padding:0 6px;border:1px solid #cfe3e3;border-radius:2px;background:#f7fbfb;color:#4b6a6d;font-size:11px;line-height:17px;cursor:pointer;white-space:nowrap;}
.sentence-grid .c-src .src-btn:hover{border-color:#0d9c9c;color:#0d9c9c;background:#ecfbfb;}
.sentence-grid .c-src .src-fab{width:18px;height:18px;padding:0;border-radius:3px;font-size:11px;line-height:16px;text-align:center;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.12);}
.sentence-grid .c-src .src-fab:hover{background:#e9fbfb;}
.sentence-grid .c-src .src-rev-badge{display:inline-flex;align-items:center;height:16px;margin-left:5px;padding:0 5px;border:1px solid #efc96b;border-radius:2px;background:#fff8e6;color:#946400;font:600 10px/1 "Microsoft YaHei",sans-serif;vertical-align:1px;cursor:pointer;white-space:nowrap;}
.sentence-grid .c-src .src-rev-badge:hover{background:#fff1cf;}
.sentence-grid .c-src.src-edited{box-shadow:inset 3px 0 0 #f0b429;background:#fffdf5;}
.sentence-grid tr.sel .c-src.src-edited{background:#fff9e3 !important;}
.tab-chip{display:inline-block;min-width:22px;padding:0 2px;margin:0 1px;border-radius:2px;background:#eef4f4;color:#0d7c7a;font-size:9px;text-align:center;vertical-align:1px;}

.src-edit{display:flex;flex-direction:column;gap:7px;}
.src-edit-tip{font-size:12px;line-height:1.6;color:#6b7f82;background:#f2fafa;border:1px solid #dcefef;border-radius:3px;padding:7px 9px;}
.src-edit-label{font-size:12px;font-weight:600;color:#33585a;}
.src-edit-prev{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #e2ecec;background:#fafcfc;border-radius:3px;padding:8px 10px;font-size:13px;line-height:1.65;color:#233;max-height:150px;overflow:auto;}
.src-edit-input{width:100%;box-sizing:border-box;border:1px solid #9bcbcb;border-radius:3px;padding:8px 10px;font-size:13px;line-height:1.65;color:#111;resize:vertical;outline:none;font-family:inherit;}
.src-edit-input:focus{border-color:#0d9c9c;box-shadow:0 0 0 2px rgba(13,156,156,.12);}
.src-edit-reason{width:100%;box-sizing:border-box;height:32px;border:1px solid #cfe0e0;border-radius:3px;padding:0 9px;font-size:13px;color:#111;outline:none;}
.src-edit-reason:focus{border-color:#0d9c9c;}
.merge-box{display:flex;flex-direction:column;gap:8px;}
.merge-list{max-height:240px;overflow:auto;border:1px solid #e2ecec;border-radius:3px;background:#fafcfc;}
.merge-pick{display:grid;grid-template-columns:18px 64px minmax(0,1.2fr) minmax(0,1fr);gap:8px;align-items:start;padding:7px 9px;border-bottom:1px solid #edf3f3;font-size:12px;line-height:1.5;cursor:pointer;}
.merge-pick:last-child{border-bottom:0;}
.merge-pick:hover{background:#f0fafa;}
.merge-pick input{margin-top:3px;}
.merge-pick-no{color:#567;font-weight:600;white-space:nowrap;}
.merge-pick-src{color:#233;word-break:break-word;}
.merge-pick-tgt{color:#4b6668;word-break:break-word;}
body.ui-style-dark .merge-list{background:#1b2428;border-color:#33474b;}
body.ui-style-dark .merge-pick{border-bottom-color:#2d3b3f;}
body.ui-style-dark .merge-pick:hover{background:#26363b;}
body.ui-style-dark .merge-pick-no{color:#9fb7bb;}
body.ui-style-dark .merge-pick-src{color:#dce9eb;}
body.ui-style-dark .merge-pick-tgt{color:#a9c0c3;}
body.theme-dark .merge-list{background:#1b2428;border-color:#33474b;}
body.theme-dark .merge-pick{border-bottom-color:#2d3b3f;}
body.theme-dark .merge-pick:hover{background:#26363b;}
body.theme-dark .merge-pick-src{color:#dce9eb;}
body.theme-dark .merge-pick-tgt{color:#a9c0c3;}

.split-box{display:flex;flex-direction:column;gap:8px;}
.split-origin{background:#f7fbfb;caret-color:#0d9c9c;cursor:text;}
.split-cursor-hint{font-size:11px;color:#0d7c7a;white-space:nowrap;}
.ref-panel{display:flex;flex-direction:column;min-height:0;height:100%;padding:10px;gap:8px;}
.ref-tools{display:flex;flex-direction:column;gap:6px;}
.ref-file{width:100%;}
.ref-search-row{display:flex;gap:6px;}
.ref-upload-row{display:flex;align-items:center;gap:7px;min-width:0;}
.ref-upload-status{font-size:11px;color:#66787c;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ref-upload-status.ok{color:#3f8b51;}
.ref-upload-status.err{color:#c0504d;}
.ref-kw{flex:1;min-width:0;}
.ref-meta{font-size:11px;color:#66787c;}
.ref-list{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:8px;}
.ref-hit{border:1px solid #dbe5e7;border-radius:8px;background:#fff;padding:8px;font-size:12px;line-height:1.55;}
.ref-hit-title{display:flex;justify-content:space-between;gap:8px;color:#60757a;font-size:11px;margin-bottom:4px;}
.ref-hit-block b{display:inline-block;min-width:28px;color:#0d7c7a;font-weight:600;margin-right:4px;}
.ref-hit-block>div{display:inline;white-space:pre-wrap;word-break:break-word;}
.ref-hit-block.tgt{margin-top:4px;padding-top:4px;border-top:1px dashed #e3ecee;}
.ref-hit-actions{text-align:right;margin-top:5px;}
.ref-empty{padding:16px 8px;text-align:center;color:#7b8d91;font-size:12px;}
body.theme-dark .ref-hit{background:#1b2428;border-color:#314046;}
body.theme-dark .ref-meta,body.theme-dark .ref-empty,body.theme-dark .ref-upload-status{color:#8fa3a8;}
body.ui-style-dark .ref-hit{background:#1b2428;border-color:#314046;}
body.ui-style-dark .ref-meta,body.ui-style-dark .ref-empty,body.ui-style-dark .ref-upload-status{color:#8fa3a8;}
.split-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.split-actions .btn{height:28px;padding:0 10px;font-size:12px;}
.split-order-hint{font-size:11px;color:#7a8f92;line-height:1.5;}
.split-parts{display:flex;flex-direction:column;gap:8px;max-height:340px;overflow:auto;padding-right:2px;}
.split-part{border:1px solid #e2ecec;border-radius:4px;background:#fafcfc;padding:8px;display:flex;flex-direction:column;gap:6px;}
.split-part-head{display:flex;align-items:center;gap:8px;font-size:12px;color:#567;}
.split-part-head b{color:#0d7c7a;font-size:12px;}
.split-part-head span{color:#8a9b9e;font-size:11px;}
.split-remove{margin-left:auto;border:1px solid #e0b4b4;background:#fff7f7;color:#b04a4a;border-radius:3px;height:23px;padding:0 7px;font-size:11px;cursor:pointer;}
.split-remove:hover{background:#ffeded;}
.split-part .split-src{background:#fff;}
.split-part .split-tgt{background:#fff;}
body.ui-style-dark .split-origin{background:#1b2428;caret-color:#7fe1da;}
body.ui-style-dark .split-cursor-hint{color:#7fe1da;}
body.ui-style-dark .split-part{background:#1b2428;border-color:#33474b;}
body.ui-style-dark .split-part-head b{color:#7fe1da;}
body.ui-style-dark .split-part-head span,body.ui-style-dark .split-order-hint{color:#91a8ac;}
body.ui-style-dark .split-remove{background:#3a2326;border-color:#7b4549;color:#ef9b9b;}
body.theme-dark .split-origin{background:#1b2428;caret-color:#7fe1da;}
body.theme-dark .split-cursor-hint{color:#7fe1da;}
body.theme-dark .split-part{background:#1b2428;border-color:#33474b;}
body.theme-dark .split-part-head span,body.theme-dark .split-order-hint{color:#91a8ac;}

.src-rev-sum{font-size:12px;color:#6b7f82;margin-bottom:8px;}
.src-rev-item{border:1px solid #e4eded;border-radius:4px;margin-bottom:9px;background:#fff;}
.src-rev-meta{display:flex;align-items:center;gap:10px;padding:7px 10px;background:#f7fafb;border-bottom:1px solid #eef4f4;font-size:12px;color:#526569;}
.src-rev-idx{display:inline-block;min-width:24px;text-align:center;border-radius:2px;background:#e8f5f4;color:#0d7c7a;font-weight:600;padding:0 3px;}
.src-rev-reason{color:#8a5b00;}
.src-rev-pair{display:grid;grid-template-columns:1fr 22px 1fr;gap:6px;padding:9px 10px;}
.src-rev-col label{display:block;font-size:11px;color:#849599;margin-bottom:3px;}
.src-rev-text{white-space:pre-wrap;overflow-wrap:anywhere;background:#fbfcfc;border:1px solid #edf2f2;border-radius:3px;padding:6px 8px;font-size:12px;line-height:1.6;color:#233;max-height:130px;overflow:auto;}
.src-rev-target{margin:0 10px 9px;}
.src-rev-target label{display:block;font-size:11px;color:#849599;margin-bottom:3px;}
.src-rev-empty{color:#9aa8ab;font-style:italic;}
.src-rev-state{display:inline-flex;align-items:center;height:18px;padding:0 6px;border-radius:2px;background:#eef3f4;color:#75888b;font-size:11px;white-space:nowrap;}
.src-rev-item.is-reverted{opacity:.82;}
.src-rev-actions{display:flex;align-items:center;gap:9px;padding:0 10px 10px;}
.src-rev-actions .btn{height:27px;padding:0 10px;font-size:12px;}
.src-rev-actions span{font-size:11px;color:#82969a;}
.src-rev-arrow{display:flex;align-items:center;justify-content:center;color:#9aacae;font-size:15px;}

body.ui-style-dark .sentence-grid .c-src.src-edited{background:#2a2616 !important;box-shadow:inset 3px 0 0 #d9a531;}
body.ui-style-dark .sentence-grid tr.sel .c-src.src-edited{background:#3a3320 !important;}
body.ui-style-dark .sentence-grid .c-src .src-rev-badge{background:#3a3020;border-color:#8f6b2a;color:#efc06a;}
body.ui-style-dark .sentence-grid .c-src .src-btn{background:#22363c;border-color:#446168;color:#c9e9e6;}
body.ui-style-dark .sentence-grid .c-src .src-btn:hover{background:#2b464c;border-color:#6fd6d0;color:#8ff0ea;}
body.ui-style-dark .sentence-grid .c-src .src-fab{background:#35565d;border-color:#7fb3b8;color:#eafffc;box-shadow:0 1px 3px rgba(0,0,0,.35);}
body.ui-style-dark .src-edit-tip{background:#1e2a2e;border-color:#34484c;color:#9fb7bb;}
body.ui-style-dark .src-edit-label{color:#b7cdd0;}
body.ui-style-dark .src-edit-prev{background:#1b2428;border-color:#33474b;color:#dce9eb;}
body.ui-style-dark .src-edit-input,body.ui-style-dark .src-edit-reason{background:#1a2327;border-color:#3c565b;color:#e2edef;}
body.ui-style-dark .src-rev-item{background:#1b2428;border-color:#33474b;}
body.ui-style-dark .src-rev-meta{background:#202b30;border-color:#33474b;color:#9fb7bb;}
body.ui-style-dark .src-rev-text{background:#182226;border-color:#33474b;color:#dce9eb;}
body.ui-style-dark .src-rev-target label{color:#91a8ac;}
body.ui-style-dark .src-rev-state{background:#2b383c;color:#aebfc2;}
body.ui-style-dark .src-rev-empty,body.ui-style-dark .src-rev-actions span{color:#8fa3a7;}

/* ----- 语料搜索浮窗（Alt+Q） ----- */
.corpus-search-mask{position:fixed;inset:0;z-index:99999;background:rgba(12,25,30,.28);display:flex;align-items:flex-start;justify-content:flex-end;padding:72px 56px 30px 30px;}
.corpus-search-pop{width:560px;max-width:calc(100vw - 60px);max-height:calc(100vh - 110px);display:flex;flex-direction:column;background:#fff;border:1px solid #d7e2e3;border-radius:6px;box-shadow:0 14px 40px rgba(14,44,52,.22);overflow:hidden;}
.cs-head{display:flex;align-items:center;gap:8px;height:40px;padding:0 12px;background:#f4f8f9;border-bottom:1px solid #e3ecee;color:#1d3a40;font-size:13px;cursor:move;user-select:none;touch-action:none;}
.cs-head b{font-size:13px;}
.cs-hint{margin-left:auto;font-size:11px;color:#8a9b9f;border:1px solid #d5e0e2;border-radius:3px;padding:1px 5px;background:#fff;}
.cs-x{width:24px;height:24px;border:0;background:transparent;color:#6b7f84;font-size:18px;line-height:22px;cursor:pointer;border-radius:3px;}
.cs-x:hover{background:#e5eff0;color:#1d3a40;}
.cs-bar{display:flex;gap:7px;padding:10px 12px 8px;align-items:center;border-bottom:1px solid #eef4f5;}
.cs-mode{height:30px;border:1px solid #cddcde;border-radius:3px;background:#fff;color:#2b444a;font-size:12px;padding:0 6px;}
.cs-kw{flex:1;min-width:0;height:30px;border:1px solid #cddcde;border-radius:3px;padding:0 8px;font-size:12px;color:#223;}
.cs-kw:focus{outline:none;border-color:#2fa7a2;box-shadow:0 0 0 2px rgba(47,167,162,.12);}
.cs-meta{padding:7px 12px;font-size:11px;color:#71868a;background:#fbfcfc;border-bottom:1px solid #f0f5f5;}
.cs-list{flex:1;overflow:auto;padding:8px 10px 12px;background:#f7fafb;}
.cs-empty{padding:28px 10px;text-align:center;color:#93a4a8;font-size:12px;}
.cs-card{background:#fff;border:1px solid #e2ecec;border-radius:4px;padding:8px 10px;margin-bottom:8px;}
.cs-card-top{display:flex;align-items:center;gap:8px;margin-bottom:5px;}
.cs-from{font-size:11px;color:#0d7c7a;background:#e8f5f4;border-radius:2px;padding:1px 5px;}
.cs-rate{font-size:11px;color:#8a5b00;margin-left:auto;font-weight:600;}
.cs-src{font-size:12px;line-height:1.55;color:#334a50;overflow-wrap:anywhere;}
.cs-tgt{font-size:12px;line-height:1.55;color:#0d5f5c;margin-top:4px;padding-top:4px;border-top:1px dashed #e7efef;overflow-wrap:anywhere;}
.cs-actions{display:flex;justify-content:flex-end;margin-top:5px;}
.cs-actions .btn{height:24px;padding:0 9px;font-size:11px;}
body.ui-style-dark .corpus-search-pop,body.theme-dark .corpus-search-pop{background:#182327;border-color:#34484c;}
body.ui-style-dark .cs-head,body.theme-dark .cs-head{background:#1e2a2e;border-color:#34484c;color:#dce9eb;}
body.ui-style-dark .cs-hint,body.theme-dark .cs-hint{background:#223136;border-color:#3b5055;color:#9fb7bb;}
body.ui-style-dark .cs-x,body.theme-dark .cs-x{color:#9fb7bb;}
body.ui-style-dark .cs-x:hover,body.theme-dark .cs-x:hover{background:#2b3b40;color:#fff;}
body.ui-style-dark .cs-bar,body.theme-dark .cs-bar{border-color:#2b3b40;}
body.ui-style-dark .cs-mode,body.theme-dark .cs-mode,body.ui-style-dark .cs-kw,body.theme-dark .cs-kw{background:#1b262a;border-color:#3b5055;color:#dce9eb;}
body.ui-style-dark .cs-meta,body.theme-dark .cs-meta{background:#1c282c;border-color:#2b3b40;color:#8fa3a7;}
body.ui-style-dark .cs-list,body.theme-dark .cs-list{background:#141d21;}
body.ui-style-dark .cs-card,body.theme-dark .cs-card{background:#1b262a;border-color:#304247;}
body.ui-style-dark .cs-src,body.theme-dark .cs-src{color:#c8d8db;}
body.ui-style-dark .cs-tgt,body.theme-dark .cs-tgt{color:#8ce0da;border-color:#304247;}

.ref-upload-mode{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:11px;color:#66787c;margin-bottom:6px;}
.ref-upload-mode select{height:24px;border:1px solid #cddcde;border-radius:3px;background:#fff;color:#2b444a;font-size:11px;padding:0 4px;max-width:185px;}
.ref-upload-mode span{color:#93a4a8;}
body.ui-style-dark .ref-upload-mode,body.theme-dark .ref-upload-mode{color:#8fa3a8;}
body.ui-style-dark .ref-upload-mode select,body.theme-dark .ref-upload-mode select{background:#1b262a;border-color:#3b5055;color:#dce9eb;}

/* ---------- s312 CAT 工具栏与筛选栏字号 ---------- */
body.editor-window .editor-window-bar{height:46px;padding:0 16px;}
.edw-brand strong{font-size:14.5px;}
.edw-brand .brand-logo .hd-logo{font-size:19px;}
.edw-tab{font-size:15px;padding:0 14px;}
.edw-labels{width:32px;height:30px;font-size:12.5px;}
.edw-user{height:32px;font-size:14px;padding:0 7px;}
.edw-ico{width:30px;height:32px;}
.edw-ico svg{width:21px;height:21px;}
.edw-menu{top:35px;font-size:13.5px;}
.edw-menu-title{font-size:12px;}
.edw-menu button,.edw-task-item{font-size:13.5px;}
body.editor-window .tb{height:40px;min-width:42px;font-size:13.5px;padding:2px 6px;}
body.editor-window .tb b{font-size:18px;}
body.show-tool-labels #ed-tool-home .tb,
body.show-tool-labels #ed-tool-view .view-tool{
  height:34px;padding:0 3px;gap:2px;font-size:13px;
}
body.show-tool-labels #ed-tool-home .tb b,
body.show-tool-labels #ed-tool-view .view-tool b{font-size:17px;}
body.editor-window #ed-tool-home .tb-group{padding-right:6px;}
#ed-tool-view .view-tool{height:34px;padding:0 9px;gap:4px;font-size:13.5px;}
#ed-tool-view .view-tool b{font-size:16px;}
.tb-more-item{height:33px;font-size:13.5px;}
.tb-more-group{font-size:12px;}
.tb-select{font-size:12.5px;}
#dirty-hint{font-size:13px;}
.editor-filter .inline{font-size:13.5px;}
.ef-field span{font-size:13px;}
.editor-filter input[type=search]{height:31px;font-size:13.5px;}
.editor-filter select{height:31px;font-size:13px;}
.ef-case{height:31px;min-width:32px;font-size:13.5px;}
.ef-icon{width:31px;height:31px;}
.ef-remember{height:31px;padding:0 9px;font-size:13px;}
.find-replace-bar input[type=search]{height:31px;font-size:13.5px;}
.fr-label,.fr-scope{font-size:13px;}
.fr-btn{height:31px;font-size:13px;padding:0 11px;}
@media (max-width:1280px){
  body.show-tool-labels #ed-tool-home .tb{font-size:13px;padding:0 5px;}
  .editor-filter .inline,.ef-field span{font-size:12.5px;}
}


/* s314 CAT 句段讨论与协作 */
.collab-dot{
  position:relative;display:inline-flex;align-items:center;justify-content:center;
  width:17px;height:17px;padding:0;border:0;border-radius:5px;cursor:pointer;
  background:transparent;color:#94a3b8;font-size:9px;line-height:1;opacity:.55;
}
.sentence-grid tr:hover .collab-dot{opacity:1;}
.collab-dot:hover{background:#e2e8f0;color:#334155;opacity:1;}
.collab-dot.has{background:#fff4d6;color:#b45309;opacity:1;box-shadow:0 0 0 1px #f5c451 inset;}
.collab-dot b{
  position:absolute;top:-6px;right:-6px;min-width:13px;height:13px;padding:0 3px;
  border-radius:7px;background:#d97706;color:#fff;font-size:9px;line-height:13px;
  text-align:center;font-weight:700;
}
body.theme-dark .collab-dot{color:#8095a0;}
body.theme-dark .collab-dot:hover{background:#23343a;color:#d7e5e7;}
body.theme-dark .collab-dot.has{background:#3d2f12;color:#fbbf24;box-shadow:0 0 0 1px #8a6414 inset;}

.collab-side{display:flex;flex-direction:column;gap:9px;padding:10px 11px 14px;min-height:100%;box-sizing:border-box;}
.collab-sent-meta{font-size:11.5px;color:#64748b;line-height:1.5;}
.collab-sent-meta b{color:#0f172a;font-size:12px;}
.collab-sent-meta span{display:block;color:#94a3b8;font-size:11px;margin-top:1px;}
.collab-compose{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:8px;}
.collab-compose textarea,.collab-reply textarea{
  width:100%;box-sizing:border-box;border:1px solid #d8e1e5;border-radius:6px;background:#fff;
  color:#1e293b;font:12.5px/1.55 Tahoma,"Microsoft YaHei",sans-serif;padding:6px 8px;resize:vertical;
}
.collab-compose input,.collab-reply input{
  width:100%;box-sizing:border-box;margin-top:6px;border:1px solid #d8e1e5;border-radius:6px;
  background:#fff;color:#1e293b;font:12px/1.5 Tahoma,"Microsoft YaHei",sans-serif;padding:5px 8px;
}
.collab-compose textarea:focus,.collab-compose input:focus,.collab-reply textarea:focus,.collab-reply input:focus{
  outline:none;border-color:#0d9488;box-shadow:0 0 0 2px rgba(13,148,136,.12);
}
.collab-compose-foot,.collab-reply-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px;}
.collab-compose-foot span{font-size:10.5px;color:#94a3b8;}
.collab-thread{border:1px solid #e2e8f0;border-radius:8px;background:#fff;padding:8px 9px;margin-top:8px;}
.collab-thread.open{border-left:3px solid #d97706;}
.collab-thread.resolved{border-left:3px solid #94a3b8;background:#f8fafc;}
.collab-thread-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:6px;}
.collab-state{font-size:10.5px;font-weight:700;padding:1px 6px;border-radius:9px;background:#fff4d6;color:#b45309;}
.collab-thread.resolved .collab-state{background:#e8eef0;color:#64748b;}
.collab-author{font-size:10.5px;color:#94a3b8;flex:1;min-width:90px;}
.collab-mini{border:0;background:transparent;color:#0d9488;font-size:11px;cursor:pointer;padding:2px 3px;}
.collab-mini:hover{text-decoration:underline;}
.collab-msgs{display:flex;flex-direction:column;gap:7px;}
.collab-msg{border-top:1px dashed #edf2f4;padding-top:6px;}
.collab-msg:first-child{border-top:0;padding-top:0;}
.collab-msg-head{display:flex;justify-content:space-between;gap:8px;font-size:10.5px;color:#94a3b8;}
.collab-msg-head b{color:#334155;font-size:11.5px;}
.collab-msg-text{font-size:12.5px;line-height:1.6;color:#1e293b;white-space:pre-wrap;word-break:break-word;margin-top:2px;}
.collab-mentions{font-size:10.5px;color:#0d9488;margin-top:2px;}
.collab-suggest{margin-top:5px;padding:6px 7px;border-radius:6px;background:#f0fdfa;border:1px solid #ccfbf1;}
.collab-suggest>span{font-size:10px;color:#0f766e;font-weight:700;}
.collab-suggest>div{font-size:12.5px;line-height:1.55;color:#134e4a;white-space:pre-wrap;word-break:break-word;margin:2px 0 5px;}
.collab-reply{margin-top:8px;padding-top:7px;border-top:1px solid #eef2f4;}
.collab-reply textarea{font-size:12px;}
.collab-reply-foot{justify-content:flex-end;}
body.theme-dark .collab-sent-meta{color:#92a6ad;}
body.theme-dark .collab-sent-meta b{color:#e6f0f1;}
body.theme-dark .collab-compose{background:#16262b;border-color:#2a3c42;}
body.theme-dark .collab-compose textarea,body.theme-dark .collab-compose input,
body.theme-dark .collab-reply textarea,body.theme-dark .collab-reply input{background:#101d21;border-color:#31464c;color:#e6f0f1;}
body.theme-dark .collab-thread{background:#16262b;border-color:#2a3c42;}
body.theme-dark .collab-thread.resolved{background:#122025;}
body.theme-dark .collab-msg-text{color:#e6f0f1;}
body.theme-dark .collab-msg-head b{color:#d7e5e7;}
body.theme-dark .collab-suggest{background:#102c29;border-color:#1f4f49;}
body.theme-dark .collab-suggest>div{color:#ccfbf1;}
.c-src textarea.peer-locked,.c-tgt textarea.peer-locked{background:#fff8e6!important;box-shadow:inset 0 0 0 1px #f5c451;cursor:not-allowed;}
body.theme-dark .c-tgt textarea.peer-locked{background:#3a2d10!important;box-shadow:inset 0 0 0 1px #8a6414;}

/* s314 追加文件去重预翻 */
.append-pt{font-size:13px;color:#334155;}
.append-pt-lead{margin:0 0 6px;line-height:1.7;}
.append-pt-note{font-size:12px;color:#64748b;background:#f8fafc;border:1px solid #e2e8f0;border-radius:7px;padding:7px 9px;line-height:1.6;}
.append-pt-files{max-height:260px;overflow:auto;margin:10px 0 6px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;}
.append-pt-file{display:flex;align-items:center;gap:8px;padding:7px 9px;border-top:1px solid #eef2f4;cursor:pointer;}
.append-pt-file:first-child{border-top:0;}
.append-pt-file:hover{background:#f8fbfb;}
.append-pt-file input{accent-color:#0d9488;}
.append-pt-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:#1e293b;}
.append-pt-meta{font-size:11.5px;color:#94a3b8;white-space:nowrap;}
.append-pt-ai{display:flex;align-items:flex-start;gap:7px;margin:9px 0 4px;padding:8px 9px;border:1px solid #fde68a;background:#fffbeb;border-radius:7px;font-size:12px;line-height:1.6;color:#92400e;cursor:pointer;}
.append-pt-ai input{margin-top:2px;accent-color:#d97706;}
.append-pt-ai b{color:#b45309;}
body.theme-dark .append-pt{color:#d7e5e7;}
body.theme-dark .append-pt-note{background:#16262b;border-color:#2a3c42;color:#92a6ad;}
body.theme-dark .append-pt-files{background:#16262b;border-color:#2a3c42;}
body.theme-dark .append-pt-file{border-color:#25363b;}
body.theme-dark .append-pt-file:hover{background:#1b2d32;}
body.theme-dark .append-pt-name{color:#e6f0f1;}
body.theme-dark .append-pt-ai{background:#3a2d10;border-color:#8a6414;color:#fcd34d;}
body.theme-dark .append-pt-ai b{color:#fbbf24;}

/* s315 句段讨论增强：筛选、@成员、未读 */
.collab-filters{display:flex;gap:5px;margin:2px 0 2px;}
.collab-filter{border:1px solid #dbe4e8;background:#fff;color:#64748b;border-radius:14px;font:11.5px/1 Tahoma,"Microsoft YaHei",sans-serif;padding:5px 9px;cursor:pointer;}
.collab-filter:hover{border-color:#99c7c2;color:#0f766e;}
.collab-filter.active{background:#0d9488;border-color:#0d9488;color:#fff;font-weight:700;}
.collab-atme{font-size:10px;font-weight:700;color:#b45309;background:#fff4d6;border-radius:9px;padding:1px 6px;}
.collab-new{font-size:10px;font-weight:700;color:#fff;background:#d97706;border-radius:9px;padding:1px 5px;}
.collab-thread.unread{box-shadow:0 0 0 1px #f5c451 inset;}
.collab-thread.mention{border-left-color:#d97706;}
.collab-thread-ref{margin:-2px 0 6px;}
.collab-here{font-size:10.5px;color:#0f766e;background:#f0fdfa;border-radius:4px;padding:1px 5px;}
.collab-ref-jump{border:0;background:transparent;color:#0d9488;font:10.5px/1.4 Tahoma,"Microsoft YaHei",sans-serif;padding:1px 2px;cursor:pointer;}
.collab-ref-jump:hover{text-decoration:underline;}
.collab-mention-menu{position:fixed;z-index:9999;width:240px;max-height:240px;overflow:auto;background:#fff;border:1px solid #dbe4e8;border-radius:8px;box-shadow:0 10px 26px rgba(15,23,42,.16);padding:3px;}
.collab-mention-note{position:sticky;top:0;z-index:1;background:#f8fafc;border-bottom:1px solid #eef2f4;color:#0f766e;font:10.5px/1.45 Tahoma,"Microsoft YaHei",sans-serif;padding:5px 7px 4px;margin:-3px -3px 3px;}
.collab-mention-menu button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;border:0;background:transparent;border-radius:6px;padding:6px 8px;cursor:pointer;text-align:left;}
.collab-mention-menu button:hover{background:#f0fdfa;}
.collab-mention-menu b{font:12px/1.4 Tahoma,"Microsoft YaHei",sans-serif;color:#1e293b;}
.collab-mention-menu span{font-size:10.5px;color:#94a3b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.theme-dark .collab-filter{background:#16262b;border-color:#2a3c42;color:#92a6ad;}
body.theme-dark .collab-filter.active{background:#0f766e;border-color:#0f766e;color:#fff;}
body.theme-dark .collab-atme{background:#3d2f12;color:#fbbf24;}
body.theme-dark .collab-thread.unread{box-shadow:0 0 0 1px #8a6414 inset;}
body.theme-dark .collab-here{background:#12332f;color:#5eead4;}
body.theme-dark .collab-mention-menu{background:#16262b;border-color:#2a3c42;}
body.theme-dark .collab-mention-note{background:#1b2d32;border-bottom-color:#2a3c42;color:#5eead4;}
body.theme-dark .collab-mention-menu button:hover{background:#1b2d32;}
body.theme-dark .collab-mention-menu b{color:#e6f0f1;}

/* s318 项目级术语讨论：跨任务共享，不跳转、不覆盖译文 */
.collab-term-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:2px 2px 7px;}
.collab-group-side{height:100%;min-height:0;padding:0;gap:0;}
.collab-group-head{flex:none;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:8px 11px 7px;border-bottom:1px solid #eef2f4;background:#fbfcfc;}
.collab-group-head>div{min-width:0;}
.collab-group-head b{display:block;font:13px/1.3 Tahoma,"Microsoft YaHei",sans-serif;color:#0f172a;}
.collab-group-head span{display:block;margin-top:2px;font-size:10px;color:#94a3b8;}
.collab-group-head .collab-group-count{flex:none;margin:0;padding:2px 6px;border-radius:999px;background:#eef6f5;color:#0f766e;font-size:10px;white-space:nowrap;}
.collab-group-members{flex:none;display:flex;flex-wrap:wrap;gap:4px;max-height:86px;overflow:auto;padding:7px 11px 8px;border-bottom:1px solid #eef2f4;background:#fff;}
.collab-group-member{display:inline-flex;align-items:center;gap:3px;max-width:100%;padding:2px 6px 2px 3px;border:1px solid #e2e8f0;border-radius:999px;background:#f8fafc;color:#334155;font:10px/1.5 Tahoma,"Microsoft YaHei",sans-serif;}
.collab-group-member i{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:#dff3ef;color:#0f766e;font-style:normal;font-size:9px;flex:none;}
.collab-group-member span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.collab-group-member em{margin-left:1px;padding:0 3px;border-radius:3px;background:#0f766e;color:#fff;font-style:normal;font-size:8.5px;line-height:1.4;}
.collab-group-member.me{border-color:#99d6c9;background:#f0fdfa;}
.collab-group-member-empty{font-size:10.5px;color:#94a3b8;padding:2px 0;}
.collab-group-tip{flex:none;padding:6px 11px;background:#f0fdfa;border-bottom:1px solid #ccfbf1;color:#47756f;font-size:10px;line-height:1.55;}
.collab-group-list{flex:1;min-height:110px;overflow:auto;padding:10px 11px;background:#fbfcfc;}
.collab-chat{display:flex;flex-direction:column;gap:10px;}
.collab-chat-row{display:flex;align-items:flex-start;gap:7px;}
.collab-chat-row.mine{flex-direction:row-reverse;}
.collab-chat-avatar{width:25px;height:25px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;background:#e0f2f1;color:#0f766e;font:11px/1 Tahoma,"Microsoft YaHei",sans-serif;}
.collab-chat-main{min-width:0;max-width:84%;}
.collab-chat-meta{display:flex;align-items:baseline;gap:5px;margin-bottom:2px;color:#94a3b8;font-size:9.5px;}
.collab-chat-row.mine .collab-chat-meta{justify-content:flex-end;}
.collab-chat-meta b{color:#475569;font-size:10.5px;font-weight:600;}
.collab-chat-bubble{display:inline-block;max-width:100%;padding:7px 9px;border:1px solid #e2e8f0;border-radius:9px;border-top-left-radius:3px;background:#fff;color:#1e293b;font-size:12px;line-height:1.6;text-align:left;white-space:normal;word-break:break-word;box-shadow:0 1px 2px rgba(15,23,42,.03);}
.collab-chat-row.mine .collab-chat-bubble{border-color:#bfe5dc;border-top-left-radius:9px;border-top-right-radius:3px;background:#e8f7f3;}
.collab-group-compose{flex:none;margin:0 11px 11px;padding:7px;border:1px solid #d6ebe7;border-radius:8px;background:#f7fbfa;}
.collab-group-compose textarea{display:block;width:100%;box-sizing:border-box;resize:vertical;min-height:52px;max-height:150px;padding:6px 7px;border:1px solid #cfe6e1;border-radius:6px;background:#fff;color:#1e293b;font:12px/1.55 Tahoma,"Microsoft YaHei",sans-serif;outline:none;}
.collab-group-compose textarea:focus{border-color:#0d9488;box-shadow:0 0 0 2px rgba(13,148,136,.12);}
.collab-group-compose-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px;}
.collab-group-compose-foot span{font-size:9.5px;color:#94a3b8;}
body.theme-dark .collab-group-head{background:#202b30;border-bottom-color:#34464b;}
body.theme-dark .collab-group-head b{color:#e6f0f1;}
body.theme-dark .collab-group-head span{color:#92a6ad;}
body.theme-dark .collab-group-head .collab-group-count{background:#173b37;color:#7dd3c7;}
body.theme-dark .collab-group-members{background:#16262b;border-bottom-color:#2a3c42;}
body.theme-dark .collab-group-member{background:#1b2c31;border-color:#34464b;color:#c7d6d8;}
body.theme-dark .collab-group-member i{background:#173b37;color:#7dd3c7;}
body.theme-dark .collab-group-member.me{background:#123530;border-color:#1f665b;}
body.theme-dark .collab-group-tip{background:#102c29;border-bottom-color:#1f4f49;color:#9fc7c0;}
body.theme-dark .collab-group-list{background:#1f2b30;}
body.theme-dark .collab-chat-meta b{color:#b6c8cd;}
body.theme-dark .collab-chat-bubble{background:#16262b;border-color:#2a3c42;color:#e6f0f1;}
body.theme-dark .collab-chat-row.mine .collab-chat-bubble{background:#123530;border-color:#1f665b;}
body.theme-dark .collab-group-compose{background:#14252a;border-color:#2a3c42;}
body.theme-dark .collab-group-compose textarea{background:#16262b;border-color:#34464b;color:#e6f0f1;}

.collab-term-head b{font:13px/1.3 Tahoma,"Microsoft YaHei",sans-serif;color:#0f172a;}
.collab-term-head span{font-size:10px;color:#94a3b8;white-space:nowrap;}
.collab-alert{position:fixed;right:18px;top:76px;z-index:10020;width:340px;background:#fff;border:1px solid #f2c46d;border-left:4px solid #d97706;border-radius:10px;box-shadow:0 14px 34px rgba(15,23,42,.22);padding:10px 12px 11px;animation:collab-alert-in .22s ease-out;}
@keyframes collab-alert-in{from{opacity:0;transform:translateY(-6px);}to{opacity:1;transform:none;}}
.collab-alert-top{display:flex;align-items:center;gap:7px;margin-bottom:4px;}
.collab-alert-top b{font:12.5px/1.3 Tahoma,"Microsoft YaHei",sans-serif;color:#78350f;flex:1;}
.collab-alert-badge{display:inline-block;background:#d97706;color:#fff;border-radius:5px;padding:1px 5px;font:10px/1.4 Tahoma,"Microsoft YaHei",sans-serif;}
.collab-alert-close{border:0;background:transparent;color:#94a3b8;font:18px/1 Tahoma,sans-serif;cursor:pointer;padding:0 2px;}
.collab-alert-term{font:13px/1.45 Tahoma,"Microsoft YaHei",sans-serif;font-weight:700;color:#0f172a;margin:2px 0 4px;word-break:break-word;}
.collab-alert-body{font:11.5px/1.55 Tahoma,"Microsoft YaHei",sans-serif;color:#475569;word-break:break-word;}
.collab-alert-body b{color:#0f766e;}
.collab-alert-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;padding-top:7px;border-top:1px solid #f1f5f9;}
.collab-alert-foot span:first-child{font-size:9.5px;color:#94a3b8;}
.collab-alert-foot span:last-child{display:flex;gap:5px;}
body.theme-dark .collab-alert{background:#16262b;border-color:#8a6414;border-left-color:#d97706;}
body.theme-dark .collab-alert-top b{color:#fbbf24;}
body.theme-dark .collab-alert-term{color:#e6f0f1;}
body.theme-dark .collab-alert-body{color:#b6c8cd;}
body.theme-dark .collab-alert-foot{border-top-color:#2a3c42;}
.collab-mode-tabs{display:flex;gap:4px;background:#eef4f5;border-radius:9px;padding:3px;}
.collab-mode-tab{flex:1;border:0;background:transparent;color:#64748b;font:11.5px/1.2 Tahoma,"Microsoft YaHei",sans-serif;padding:6px 5px;border-radius:7px;cursor:pointer;white-space:nowrap;}
.collab-mode-tab:hover{color:#0f766e;}
.collab-mode-tab.active{background:#fff;color:#0f766e;font-weight:700;box-shadow:0 1px 3px rgba(15,23,42,.1);}
.collab-mode-count{display:inline-block;min-width:14px;height:14px;line-height:14px;margin-left:3px;padding:0 4px;border-radius:8px;background:#d97706;color:#fff;font-size:9.5px;text-align:center;vertical-align:1px;}
.collab-mode-count[hidden]{display:none;}
.collab-term-tip{background:#f0fdfa;border:1px solid #ccfbf1;border-radius:7px;padding:6px 8px;}
.collab-term-compose{background:#f7fbfa;border-color:#d6ebe7;}
.collab-linkbtn{border:0;background:transparent;color:#0d9488;font:10.5px/1.2 Tahoma,"Microsoft YaHei",sans-serif;padding:0;margin-right:7px;cursor:pointer;}
.collab-linkbtn:hover{text-decoration:underline;}
.collab-thread.collab-term-thread{border-left:3px solid #0d9488;}
.collab-thread.collab-term-thread.open{border-left-color:#0d9488;}
.collab-thread.collab-term-thread.resolved{border-left-color:#94a3b8;}
.collab-term-name{font-size:13px;font-weight:700;color:#0f172a;line-height:1.45;word-break:break-word;margin:1px 0 2px;}
.collab-term-meta{font-size:10.5px;color:#94a3b8;margin-bottom:5px;}
.collab-term-context{background:#f8fafc;border:1px solid #eef2f4;border-radius:6px;padding:5px 7px;margin:4px 0 6px;}
.collab-term-context span{font-size:10px;font-weight:700;color:#64748b;}
.collab-term-context p{margin:2px 0 0;font-size:11.5px;line-height:1.55;color:#475569;white-space:pre-wrap;word-break:break-word;max-height:120px;overflow:auto;}
body.theme-dark .collab-mode-tabs{background:#122025;}
body.theme-dark .collab-mode-tab{color:#92a6ad;}
body.theme-dark .collab-mode-tab:hover{color:#5eead4;}
body.theme-dark .collab-mode-tab.active{background:#1b2d32;color:#5eead4;box-shadow:0 1px 3px rgba(0,0,0,.35);}
body.theme-dark .collab-term-tip{background:#102c29;border-color:#1f4f49;}
body.theme-dark .collab-term-compose{background:#14252a;border-color:#2a3c42;}
body.theme-dark .collab-term-name{color:#e6f0f1;}
body.theme-dark .collab-term-context{background:#122025;border-color:#25363b;}
body.theme-dark .collab-term-context span{color:#92a6ad;}
body.theme-dark .collab-term-context p{color:#c7d8dc;}
body.theme-dark .collab-linkbtn{color:#5eead4;}

/* ========== 管理中心（项目 / 员工 / 客户框架） ========== */
.mgmt-title-actions{display:flex;align-items:center;gap:10px;}
.mgmt-tag{display:inline-flex;align-items:center;height:24px;padding:0 9px;border:1px solid #b9d4e8;background:#eef7fc;color:#2d548b;font-size:11px;letter-spacing:.4px;}
.mgmt-tabs{display:flex;align-items:center;gap:2px;margin:0 0 14px;border-bottom:1px solid var(--line);}
.mgmt-tab{position:relative;height:38px;padding:0 20px;border:0;background:transparent;color:#5b6b70;font-size:13px;}
.mgmt-tab:hover{color:#2d548b;}
.mgmt-tab.active{color:#2d548b;font-weight:600;}
.mgmt-tab.active:after{content:'';position:absolute;left:18px;right:18px;bottom:-1px;height:2px;background:#2d548b;}
.mgmt-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px;}
.mgmt-kpi{display:flex;align-items:center;justify-content:space-between;min-height:64px;padding:12px 16px;border:1px solid #e2eaee;background:linear-gradient(180deg,#fbfdfe,#f6fafc);}
.mgmt-kpi span{color:#728187;font-size:12px;}
.mgmt-kpi b{color:#213b55;font-size:22px;font-weight:600;letter-spacing:.3px;}
.mgmt-card{overflow:hidden;}
.mgmt-table-wrap{max-height:calc(100vh - 390px);min-height:280px;overflow:auto;}
.mgmt-table-wrap table{min-width:980px;}
.mgmt-foot-note{color:#8b979b;font-size:11px;}
.mgmt-form .form-sec{margin-top:6px;}
.mgmt-form label{min-width:0;}
.mgmt-form textarea{resize:vertical;height:auto;min-height:68px;padding:7px 10px;}.mgmt-detail-group{padding:2px 0 8px;border-bottom:1px dashed #e2eaee;}
.mgmt-detail-group:last-child{border-bottom:0;}
.mgmt-detail-group h4{margin:12px 0 8px;color:#2d548b;font-size:13px;font-weight:600;}
.mgmt-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#e7eef1;border:1px solid #e7eef1;}
.mgmt-detail-grid>div{min-height:52px;padding:8px 10px;background:#fff;}
.mgmt-detail-grid>div.full{grid-column:1/-1;}
.mgmt-detail-grid span{display:block;color:#8b979b;font-size:11px;margin-bottom:3px;}
.mgmt-detail-grid b{display:block;color:#23343b;font-size:12px;font-weight:500;word-break:break-all;white-space:pre-wrap;}
.mgmt-schema-sum{margin:0 0 12px;color:#5b6b70;}
.mgmt-schema-group{border-top:1px solid #e7eef1;padding:10px 0 4px;}
.mgmt-schema-group h4{margin:0 0 8px;color:#2d548b;font-size:13px;}
.mgmt-schema-group h4 em{margin-left:8px;color:#8b979b;font-size:11px;font-style:normal;font-weight:400;}
.mgmt-schema-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;}
.mgmt-schema-fields span{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px;background:#f7fafb;border:1px solid #edf2f4;}
.mgmt-schema-fields b{font-size:12px;font-weight:500;color:#33454d;}
.mgmt-schema-fields i{font-style:normal;font-size:10px;color:#9aa8ad;font-family:Consolas,monospace;}
@media (max-width:1100px){
  .mgmt-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}
  .mgmt-detail-grid,.mgmt-schema-fields{grid-template-columns:repeat(2,minmax(0,1fr));}
}
body.theme-dark .mgmt-tabs{border-bottom-color:#2a3c42;}
body.theme-dark .mgmt-tab{color:#9fb1b6;}
body.theme-dark .mgmt-tab.active{color:#7dd3c7;}
body.theme-dark .mgmt-tab.active:after{background:#5eead4;}
body.theme-dark .mgmt-kpi{background:#1b2c31;border-color:#2f444a;}
body.theme-dark .mgmt-kpi span{color:#92a6ad;}
body.theme-dark .mgmt-kpi b{color:#e6f0f1;}
body.theme-dark .mgmt-tag{background:#173b37;border-color:#2a5a54;color:#7dd3c7;}
body.theme-dark .mgmt-detail-group{border-bottom-color:#2a3c42;}
body.theme-dark .mgmt-detail-group h4{color:#7dd3c7;}
body.theme-dark .mgmt-detail-grid{background:#2a3c42;border-color:#2a3c42;}
body.theme-dark .mgmt-detail-grid>div{background:#16262b;}
body.theme-dark .mgmt-detail-grid span{color:#92a6ad;}
body.theme-dark .mgmt-detail-grid b{color:#e6f0f1;}
body.theme-dark .mgmt-schema-group{border-top-color:#2a3c42;}
body.theme-dark .mgmt-schema-group h4{color:#7dd3c7;}
body.theme-dark .mgmt-schema-fields span{background:#1b2c31;border-color:#2f444a;}
body.theme-dark .mgmt-schema-fields b{color:#d7e3e5;}
body.theme-dark .mgmt-schema-fields i{color:#7c9298;}

/* ========== 项目管理 / 员工管理（综合软件框架） ========== */
.fb-badge{display:inline-flex;align-items:center;height:24px;padding:0 9px;border:1px dashed #c9d6dc;background:#f7f9fa;color:#7d8b90;font-size:11px;letter-spacing:.3px;white-space:nowrap;}
.pm-title-actions{display:flex;align-items:center;gap:9px;}
.pm-tabs{display:flex;align-items:center;gap:2px;margin:0 0 12px;border-bottom:1px solid var(--line);}
.pm-tab{position:relative;height:38px;padding:0 22px;border:0;background:transparent;color:#5b6b70;font-size:13px;}
.pm-tab:hover{color:#2d548b;}
.pm-tab.active{color:#2d548b;font-weight:600;}
.pm-tab.active:after{content:'';position:absolute;left:20px;right:20px;bottom:-1px;height:2px;background:#2d548b;}
.pm-tab-note{margin-left:auto;color:#9aa7aa;font-size:11px;padding-right:2px;}
.pm-card{overflow:hidden;}
.pm-actions{align-items:center;}
.pm-source{margin-left:auto;color:#9aa7aa;font-size:11px;white-space:nowrap;}
.pm-filter select,.pm-filter input{background:#f7f9fa;color:#99a5a8;}
.pm-summary-strip{display:flex;align-items:center;gap:12px;min-height:36px;margin:0 0 8px;padding:0 12px;border:1px solid #dceee8;background:#f3fbf7;color:#2f7d5d;font-size:12px;}
.pm-summary-strip b{font-size:13px;font-weight:600;}
.pm-summary-strip i{width:1px;height:14px;background:#cbe5da;}
.pm-summary-strip em{margin-left:auto;color:#8aa79a;font-size:10.5px;font-style:normal;}
.pm-meta-strip{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:0 0 10px;padding:7px 10px;border:1px solid #e8eef0;background:#fafcfc;color:#6b7a7e;font-size:11.5px;}
.pm-meta-strip label{display:inline-flex;align-items:center;gap:4px;color:#8b979b;}
.pm-meta-strip input[type=checkbox]{opacity:.45;}
.pm-mini{width:78px;height:24px;padding:0 6px;border:1px solid #e1e8ea;background:#f4f6f7;color:#9aa7aa;font-size:11px;}
.pm-mini-wide{width:130px;}
.pm-table-wrap{max-height:calc(100vh - 470px);min-height:300px;overflow:auto;}
.pm-table{min-width:1330px;table-layout:fixed;}
.pm-table th{position:sticky;top:0;z-index:1;height:34px;background:#f7fafb;color:#65767b;font-weight:500;font-size:11.5px;border-bottom:1px solid #e5ecee;white-space:nowrap;}
.pm-table td{height:33px;padding:0 8px;border-bottom:1px solid #edf2f3;color:#33454d;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pm-table tbody tr:hover td{background:#f6fbfb;}
.pm-table .pm-sn{color:#9aa7aa;text-align:center;}
.pm-table .pm-no{color:#2d548b;font-family:Consolas,"Microsoft YaHei",monospace;}
.pm-table .pm-name{font-weight:500;}
.pm-table .pm-grey{color:#a2adb0;}
.pm-status{display:inline-flex;align-items:center;height:20px;padding:0 7px;border:1px solid #d9e4e7;background:#f7f9fa;color:#7d8b90;font-size:10.5px;}
.pm-status.done{border-color:#cfe7db;background:#f3fbf7;color:#2f7d5d;}
.pm-status.run{border-color:#cbdff0;background:#f3f8fd;color:#2d548b;}
.pm-status.wait{border-color:#f0e2c8;background:#fdf9f0;color:#a46b16;}
.pm-foot-note{margin:8px 0 0;color:#9aa7aa;font-size:10.5px;}
.pm-report-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px;}
.pm-report-kpi{min-height:78px;padding:13px 16px;border:1px solid #e2eaee;background:linear-gradient(180deg,#fbfdfe,#f6fafc);}
.pm-report-kpi span{display:block;color:#728187;font-size:12px;}
.pm-report-kpi b{display:block;margin-top:5px;color:#213b55;font-size:23px;font-weight:600;}
.pm-report-kpi em{display:block;margin-top:2px;color:#a0adb1;font-size:10.5px;font-style:normal;}
.pm-report-panel{min-height:330px;border:1px solid #e5ecee;background:#fff;display:flex;align-items:center;justify-content:center;}
.pm-report-placeholder{text-align:center;color:#8b979b;max-width:520px;padding:30px;}
.pm-report-placeholder b{display:block;color:#41565e;font-size:15px;margin-bottom:8px;}
.pm-report-placeholder span{font-size:12px;line-height:1.8;}

.staff-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 13px;}
.staff-kpi{min-height:66px;padding:11px 16px;border:1px solid #e2eaee;background:linear-gradient(180deg,#fbfdfe,#f6fafc);}
.staff-kpi span{display:block;color:#728187;font-size:12px;}
.staff-kpi b{display:block;margin-top:4px;color:#213b55;font-size:22px;font-weight:600;letter-spacing:.3px;}
.staff-kpi em{display:block;color:#a0adb1;font-size:10.5px;font-style:normal;}
.staff-kpi.warn b{color:#b26a00;}
.staff-layout{display:grid;grid-template-columns:218px minmax(0,1fr);gap:12px;align-items:start;}
.staff-tree{border:1px solid #e3eaec;background:#fbfcfc;padding:0 0 10px;}
.staff-tree-head{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid #e8eef0;color:#2d548b;font-size:12.5px;font-weight:600;}
.staff-tree-head em{font-style:normal;color:#a0adb1;font-size:10px;font-weight:400;}
.staff-tree-group{padding:8px 8px 4px;}
.staff-tree-label{display:flex;align-items:center;justify-content:space-between;padding:5px 7px;color:#40555e;font-size:11.5px;font-weight:600;}
.staff-tree-label b{color:#9aa7aa;font-size:10.5px;font-weight:500;}
.staff-tree-item{display:flex;align-items:center;justify-content:space-between;width:100%;height:31px;padding:0 8px 0 16px;border:0;background:transparent;color:#5b6b70;font-size:12px;text-align:left;}
.staff-tree-item em{font-style:normal;color:#a7b1b4;font-size:10.5px;}
.staff-tree-item:hover{background:#f0f7f8;color:#2d548b;}
.staff-tree-item.active{background:#eaf4f5;color:#146f73;font-weight:600;box-shadow:inset 2px 0 0 #14b8b8;}
.staff-tree-item.active em{color:#6aa9aa;}
.staff-tree-foot{margin:10px 10px 0;padding:8px;border-top:1px dashed #e2eaec;color:#a0adb1;font-size:10.5px;line-height:1.65;}
.staff-main{min-width:0;border:1px solid #e3eaec;background:#fff;}
.staff-main-head{display:flex;align-items:center;justify-content:space-between;padding:11px 14px;border-bottom:1px solid #e8eef0;}
.staff-main-head b{color:#23343b;font-size:14px;font-weight:600;}
.staff-main-head span{display:block;margin-top:2px;color:#9aa7aa;font-size:10.5px;}
.staff-main-badge{display:inline-flex;height:22px;align-items:center;padding:0 8px;border:1px dashed #cdd9dd;color:#8b979b;font-size:10.5px;white-space:nowrap;}
.staff-tabs{display:flex;flex-wrap:wrap;gap:1px;padding:8px 10px 0;border-bottom:1px solid #e8eef0;background:#fbfcfc;}
.staff-tab{position:relative;height:32px;padding:0 12px;border:0;background:transparent;color:#68787d;font-size:11.5px;}
.staff-tab:hover{color:#2d548b;}
.staff-tab.active{color:#2d548b;font-weight:600;background:#fff;}
.staff-tab.active:after{content:'';position:absolute;left:8px;right:8px;bottom:-1px;height:2px;background:#2d548b;}
.staff-filter{padding:10px 12px 8px;border-bottom:1px solid #edf2f3;background:#fcfdfd;}
.staff-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px 12px;}
.staff-filter-grid label{display:flex;align-items:center;gap:6px;color:#7d8b90;font-size:11px;white-space:nowrap;}
.staff-filter-grid input,.staff-filter-grid select{flex:1;min-width:0;height:26px;padding:0 7px;border:1px solid #e3eaec;background:#f6f8f9;color:#9aa7aa;font-size:11px;}
.staff-filter-actions{display:flex;align-items:center;gap:7px;margin-top:8px;}
.staff-filter-actions .muted{font-size:10.5px;}
.staff-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:9px 12px;border-bottom:1px solid #edf2f3;}
.staff-actions .btn{height:27px;padding:0 10px;font-size:11.5px;}
.staff-action-note{margin-left:auto;color:#a0adb1;font-size:10.5px;}
.staff-table-wrap{max-height:calc(100vh - 520px);min-height:270px;border:0;border-radius:0;overflow:auto;}
.staff-table{min-width:1010px;table-layout:fixed;}
.staff-table th{position:sticky;top:0;z-index:1;height:33px;background:#f7fafb;color:#65767b;font-size:11px;font-weight:500;border-bottom:1px solid #e5ecee;white-space:nowrap;}
.staff-table td{height:33px;padding:0 8px;border-bottom:1px solid #edf2f3;color:#33454d;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.staff-table tbody tr:hover td{background:#f6fbfb;}
.staff-table .staff-sn{text-align:center;color:#9aa7aa;}
.staff-table .staff-name{font-weight:500;}
.staff-table .staff-no{color:#2d548b;font-family:Consolas,monospace;}
.staff-table .staff-grey{color:#a2adb0;}
.staff-type{display:inline-flex;align-items:center;height:19px;padding:0 6px;border:1px solid #dbe6e8;background:#f6f9fa;color:#6e8085;font-size:10px;}
.staff-type.full{border-color:#cbdff0;background:#f3f8fd;color:#2d548b;}
.staff-state{color:#2f7d5d;font-size:11px;}
.staff-placeholder{min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:30px;text-align:center;color:#8b979b;background:#fcfdfd;}
.staff-placeholder b{color:#40555e;font-size:15px;}
.staff-placeholder span{max-width:480px;font-size:12px;line-height:1.8;}
.staff-placeholder .btn{margin-top:6px;}
.staff-foot-note{padding:7px 12px 0;color:#a0adb1;font-size:10.5px;}
@media (max-width:1100px){
  .pm-report-kpis,.staff-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}
  .staff-layout{grid-template-columns:190px minmax(0,1fr);}
  .staff-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
body.theme-dark .pm-tabs,body.theme-dark .staff-tabs{border-bottom-color:#2a3c42;}
body.theme-dark .pm-tab,body.theme-dark .staff-tab{color:#9fb1b6;}
body.theme-dark .pm-tab.active,body.theme-dark .staff-tab.active{color:#7dd3c7;background:transparent;}
body.theme-dark .pm-tab.active:after,body.theme-dark .staff-tab.active:after{background:#5eead4;}
body.theme-dark .pm-summary-strip{background:#15302a;border-color:#295249;color:#83d3b6;}
body.theme-dark .pm-meta-strip,body.theme-dark .staff-filter{background:#16262b;border-color:#2a3c42;}
body.theme-dark .pm-table th,body.theme-dark .staff-table th{background:#1b2c31;color:#9fb1b6;border-bottom-color:#2a3c42;}
body.theme-dark .pm-table td,body.theme-dark .staff-table td{color:#d7e3e5;border-bottom-color:#24353b;}
body.theme-dark .pm-status{background:#1b2c31;border-color:#33464c;color:#a5b6ba;}
body.theme-dark .pm-report-kpi,body.theme-dark .staff-kpi{background:#1b2c31;border-color:#2f444a;}
body.theme-dark .pm-report-kpi span,body.theme-dark .staff-kpi span{color:#92a6ad;}
body.theme-dark .pm-report-kpi b,body.theme-dark .staff-kpi b{color:#e6f0f1;}
body.theme-dark .staff-tree,body.theme-dark .staff-main{background:#16262b;border-color:#2a3c42;}
body.theme-dark .staff-tree-head,body.theme-dark .staff-main-head{border-bottom-color:#2a3c42;color:#7dd3c7;}
body.theme-dark .staff-tree-item{color:#b8c9cc;}
body.theme-dark .staff-tree-item:hover{background:#1d343a;}
body.theme-dark .staff-tree-item.active{background:#173b37;color:#7dd3c7;box-shadow:inset 2px 0 0 #5eead4;}
body.theme-dark .staff-main-head b{color:#e6f0f1;}
body.theme-dark .staff-filter-grid input,body.theme-dark .staff-filter-grid select{background:#1b2c31;border-color:#33464c;color:#a5b6ba;}
body.theme-dark .staff-placeholder{background:#16262b;color:#92a6ad;}
body.theme-dark .staff-placeholder b{color:#e6f0f1;}
/* s328 staff module overrides */
.staff-kpis{gap:8px;margin:0 0 8px;}
.staff-kpi{min-height:44px;padding:6px 12px;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;border-color:#e1e9ed;background:linear-gradient(180deg,#fbfdfe,#f5f9fa);}
.staff-kpi span{display:inline;font-size:11px;color:#708086;}
.staff-kpi b{display:inline;margin:0;font-size:20px;line-height:1;color:#1f3c55;}
.staff-kpi em{display:inline;margin-left:auto;font-size:10px;color:#9aa7aa;white-space:nowrap;}
.staff-kpi.warn b{color:#b26a00;}
.staff-layout{grid-template-columns:206px minmax(0,1fr);gap:10px;}
.staff-tree{padding-bottom:8px;}
.staff-tree-head{padding:8px 11px;font-size:12px;}
.staff-tree-group{padding:5px 7px 1px;}
.staff-tree-label{width:100%;display:flex;align-items:center;gap:2px;padding:2px 6px;border-radius:3px;}
.staff-tree-label:hover{background:#f0f7f8;}
.staff-tree-chev{flex:0 0 18px;height:28px;padding:0;border:0;background:transparent;color:#8fa0a5;font-size:11px;cursor:pointer;}
.staff-tree-chev .chev{display:inline-block;width:14px;}
.staff-tree-all{display:flex;align-items:center;justify-content:space-between;flex:1;min-width:0;height:28px;padding:0 2px;border:0;background:transparent;color:#40555e;font-size:11.5px;font-weight:600;text-align:left;cursor:pointer;}
.staff-tree-all b{color:#98a6aa;font-size:10.5px;font-weight:500;}
.staff-tree-all.active{color:#116d70;}
.staff-tree-items.collapsed{display:none;}
.staff-tree-subhead{padding:7px 7px 3px 27px;color:#9aa7aa;font-size:10px;}
.staff-person-state.leaving{color:#b26a12;}
.staff-person-state.resigned{color:#9a6a75;}
.staff-tree-item{height:30px;padding:0 7px 0 27px;font-size:11.5px;}
.staff-tree-item.active{background:#e8f4f4;color:#116d70;box-shadow:inset 2px 0 0 #14b8b8;}
.staff-tree-foot{margin:8px 9px 0;padding:7px 8px;font-size:10px;line-height:1.6;}
.staff-main-head{padding:9px 12px;}
.staff-main-head b{font-size:13.5px;}
.staff-main-badge{height:20px;padding:0 7px;font-size:10px;color:#56828a;border-color:#c7dde1;background:#f5fbfb;}
.staff-tabs{padding:6px 9px 0;}
.staff-tab{height:30px;padding:0 11px;font-size:11.5px;}
.staff-filter{padding:8px 10px 7px;}
.staff-filter-grid{grid-template-columns:1.5fr 1fr 1fr .9fr;gap:6px 9px;}
.staff-filter-grid label{font-size:10.5px;color:#78878c;}
.staff-filter-grid input,.staff-filter-grid select{height:26px;font-size:11px;color:#33454d;background:#fff;}
.staff-filter-actions{margin-top:6px;}
.staff-filter-actions .btn,.staff-filter-actions .ghost{height:27px;padding:0 11px;font-size:11px;}
.staff-actions{padding:7px 10px;gap:5px;}
.staff-actions .btn,.staff-actions .ghost{height:26px;padding:0 10px;font-size:11px;}
.staff-action-note{font-size:10px;}
.staff-table-wrap{max-height:calc(100vh - 452px);min-height:300px;}
.staff-table{min-width:1480px;}
.staff-table th{height:32px;font-size:10.5px;padding:0 7px;}
.staff-table td{height:34px;padding:0 7px;font-size:11px;}
.staff-row{cursor:pointer;}
.staff-row.selected td{background:#eef8f7!important;}
.staff-row.selected td:first-child{box-shadow:inset 2px 0 0 #14b8b8;}
.staff-avatar{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;margin-right:6px;border-radius:50%;background:#e8f2f4;color:#2b7378;font-size:10px;font-weight:600;vertical-align:-6px;}
.staff-avatar.full{background:#eaf1fb;color:#2d548b;}
.staff-name b{font-weight:600;color:#2a3e47;}
.staff-type{height:18px;padding:0 5px;font-size:9.5px;}
.staff-role{display:inline-flex;align-items:center;height:18px;margin-right:3px;padding:0 5px;border:1px solid #d7e7ea;background:#f4fafb;color:#39757c;font-size:9.5px;white-space:nowrap;}
.staff-role.more{border-style:dashed;color:#8a999d;background:#fafcfc;}
.staff-role-cell{line-height:18px;}
.staff-account-code{font-family:Consolas,Monaco,monospace;color:#34536b;font-size:10.5px;}
.staff-acc-state{display:inline-flex;align-items:center;height:18px;padding:0 6px;border:1px solid #e3d6d2;background:#fbf6f4;color:#a86a55;font-size:9.5px;}
.staff-acc-state.on{border-color:#cfe6d8;background:#f3fbf6;color:#2f7d5d;}
.staff-person-state{color:#2f7d5d;font-size:10.5px;}
.staff-cert-link{height:20px;padding:0 6px;border:1px solid #cfe3e8;background:#f5fbfc;color:#22777c;font-size:9.5px;cursor:pointer;}
.staff-cert-link:hover{border-color:#90c5c9;background:#eaf7f6;}
.staff-muted{color:#aab5b8;font-size:10.5px;}
.staff-date,.staff-mono{font-family:Consolas,Monaco,monospace;font-size:10px;color:#697c83;}
.staff-project{color:#6d7f85;font-size:10.5px;}
.staff-num{text-align:right;font-size:10.5px;color:#56686f;}
.staff-money{text-align:right;font-family:Consolas,Monaco,monospace;color:#2b5c73;font-size:10.5px;}
.staff-foot-note{padding:6px 10px 0;font-size:10px;}
.staff-filter-line{display:flex;align-items:center;gap:10px;padding:8px 10px 7px;}
.staff-filter-line .staff-filter-grid{flex:1;min-width:0;}
.staff-filter-line .staff-filter-actions{flex:none;margin-top:0;flex-wrap:nowrap;}
.staff-page-head{padding-top:8px!important;padding-bottom:8px!important;}
.staff-page-head .staff-page-title h2{font-size:24px!important;}
.staff-role-dialog .emp-role-grid{max-height:240px;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px 10px;font-size:12px;color:#45565a;}
.staff-table-wrap{max-height:calc(100vh - 400px);min-height:340px;}
@media(max-width:1500px){
  .staff-filter-line{flex-wrap:wrap;}
  .staff-filter-line .staff-filter-grid{flex-basis:100%;}
  .staff-filter-line .staff-filter-actions{margin-left:0;}
}
.staff-empty{min-height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:26px;text-align:center;color:#8d9a9e;background:#fcfdfd;}
.staff-empty b{color:#40555e;font-size:14px;}
.staff-empty span{max-width:560px;font-size:11.5px;line-height:1.8;}
.staff-empty.loading b{color:#2d7378;}
.staff-empty.small{min-height:120px;}
.staff-detail-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 14px;border-bottom:1px solid #edf2f3;background:#fcfdfd;}
.staff-detail-head b{display:block;color:#28414d;font-size:13px;}
.staff-detail-head span{display:block;margin-top:2px;color:#96a4a8;font-size:10.5px;}
.staff-detail-badge{height:20px;padding:0 8px;border:1px solid #d6e3e7;background:#f6fafb;color:#71868c;font-size:9.5px;display:inline-flex;align-items:center;white-space:nowrap;}
.staff-detail-table{margin:10px 12px 0;max-height:calc(100vh - 520px);}
.staff-detail-table table{min-width:1000px;}
.staff-detail-table th{height:31px;font-size:10.5px;}
.staff-detail-table td{height:33px;font-size:10.8px;}
.staff-detail-table td:nth-child(2){max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.staff-file-state{display:inline-flex;align-items:center;height:18px;padding:0 6px;border:1px solid #e7dfcf;background:#fdfaf3;color:#9b7a33;font-size:9.5px;}
.staff-file-state.ok{border-color:#cfe6d8;background:#f3fbf6;color:#2f7d5d;}
.staff-tip{margin:9px 12px 0;padding:7px 9px;border:1px dashed #e3eaec;background:#fcfdfd;color:#97a4a8;font-size:10px;line-height:1.7;}
.staff-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px 12px 0;}
.staff-summary-grid>div{position:relative;min-height:68px;padding:9px 11px;border:1px solid #e4ecef;background:#fbfdfe;}
.staff-summary-grid span{display:block;color:#8b9a9e;font-size:10.5px;}
.staff-summary-grid b{display:block;margin-top:5px;color:#24465a;font-size:20px;line-height:1.1;font-weight:600;}
.staff-summary-grid b.small{font-size:11px;line-height:1.5;font-family:Consolas,Monaco,monospace;}
.staff-summary-grid em{margin-left:2px;font-style:normal;color:#9aa7aa;font-size:10px;}
.staff-chart{margin:10px 12px 0;padding:11px 12px 13px;border:1px solid #e4ecef;background:#fcfdfd;}
.staff-chart-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;color:#3f5a67;font-size:11.5px;font-weight:600;}
.staff-chart-title em{font-style:normal;color:#9aa7aa;font-size:10px;font-weight:400;}
.staff-bar-row{display:grid;grid-template-columns:130px minmax(0,1fr) 42px;align-items:center;gap:9px;height:26px;font-size:10.5px;color:#61757c;}
.staff-bar-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.staff-bar-row>div{height:7px;background:#edf3f5;overflow:hidden;}
.staff-bar-row i{display:block;height:7px;background:linear-gradient(90deg,#2f8a8f,#65c4c4);}
.staff-bar-row b{text-align:right;font-weight:500;color:#557078;}
body.theme-dark .staff-kpi{background:#1b2c31;border-color:#2f444a;}
body.theme-dark .staff-tree-label:hover{background:#1d343a;}
body.theme-dark .staff-tree-all{color:#c7d8db;}
body.theme-dark .staff-tree-all.active{color:#7dd3c7;}
body.theme-dark .staff-tree-subhead{color:#7f949a;}
body.theme-dark .staff-row.selected td{background:#173b37!important;}
body.theme-dark .staff-empty,body.theme-dark .staff-detail-head,body.theme-dark .staff-summary-grid>div,body.theme-dark .staff-chart,body.theme-dark .staff-tip{background:#16262b;border-color:#2a3c42;color:#92a6ad;}
body.theme-dark .staff-empty b,body.theme-dark .staff-detail-head b,body.theme-dark .staff-summary-grid b,body.theme-dark .staff-name b{color:#e6f0f1;}
body.theme-dark .staff-role{background:#1b2c31;border-color:#33464c;color:#8fd0ca;}
body.theme-dark .staff-account-code{color:#a9c8d8;}
body.theme-dark .staff-filter-grid input,body.theme-dark .staff-filter-grid select{color:#c6d5d8;}
body.theme-dark .staff-file-state{background:#2b2718;border-color:#4a3f21;color:#c9a85b;}
body.theme-dark .staff-file-state.ok{background:#173b37;border-color:#295249;color:#7dd3c7;}
body.theme-dark .staff-detail-table th{background:#1b2c31;color:#9fb1b6;}
body.theme-dark .staff-detail-table td{color:#d7e3e5;border-bottom-color:#24353b;}
/* 员工管理各页签内容：沿用业务表格字号与现有文字层级，避免明细区字号过小、颜色过浅。 */
.staff-main-head span{font-size:11.5px;color:#7d8b90;}
.staff-tab{height:32px;font-size:12.5px;}
/* 16 列宽表不再挤入排序箭头，点击表头仍可排序，标题提示保留。 */
.staff-table th.qff-sortable .qff-sort-ind{display:none;}
.staff-table th{font-size:12px;color:#5f7278;}
.staff-table td{font-size:12.5px;color:#33454d;}
.staff-table .staff-sn{font-size:11.5px;}
.staff-table .staff-grey{color:#7d8b90;}
.staff-type,.staff-role,.staff-acc-state,.staff-cert-link{font-size:10.5px;}
.staff-account-code,.staff-person-state,.staff-muted,.staff-project,.staff-num{font-size:12px;}
.staff-date,.staff-mono{font-size:11.5px;color:#5d7178;}
.staff-money{font-size:12px;color:#1f5771;}
.staff-detail-head b{font-size:14px;}
.staff-detail-head span{font-size:11.5px;color:#6f8085;}
.staff-detail-badge{font-size:10.5px;color:#60757b;}
.staff-detail-table th{height:34px;font-size:12px;color:#5f7278;}
.staff-detail-table td{height:36px;font-size:12.5px;color:#33454d;}
.staff-file-state{font-size:10.5px;}
.staff-tip{font-size:11.5px;color:#6f8085;}
.staff-summary-grid span{font-size:12px;color:#6f8085;}
.staff-summary-grid b{font-size:22px;}
.staff-summary-grid b.small{font-size:12px;}
.staff-summary-grid em{font-size:11px;}
.staff-chart-title{font-size:12.5px;color:#33454d;}
.staff-chart-title em{font-size:11px;color:#7d8b90;}
.staff-bar-row{font-size:12px;color:#52666d;}
.staff-bar-row b{color:#3f5a67;}
.staff-empty b{font-size:15px;}
.staff-empty span{font-size:12px;}
.staff-foot-note{font-size:11.5px;color:#849398;}
.staff-filter-grid label{font-size:11.5px;}
.staff-filter-grid input,.staff-filter-grid select{font-size:12px;color:#33454d;}
.staff-actions .btn,.staff-actions .ghost{font-size:12px;}
body.theme-dark .staff-main-head span,body.theme-dark .staff-detail-head span{color:#92a6ad;}
body.theme-dark .staff-table .staff-grey,body.theme-dark .staff-date,body.theme-dark .staff-mono{color:#a9bcc2;}
body.theme-dark .staff-summary-grid span,body.theme-dark .staff-chart-title,body.theme-dark .staff-bar-row{color:#a9bcc2;}
body.theme-dark .staff-chart-title em,body.theme-dark .staff-bar-row b{color:#7dd3c7;}
@media (max-width:1180px){
  .staff-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}
  .staff-layout{grid-template-columns:190px minmax(0,1fr);}
  .staff-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .staff-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}


/* ---------- 语言资产 · 新增/编辑条目弹窗 ---------- */
.arf-wrap{display:flex;flex-direction:column;gap:14px;}
.arf-head{display:flex;align-items:center;gap:8px;min-width:0;padding:10px 12px;background:#f4faf9;border:1px solid #dceceb;border-radius:4px;}
.arf-badge{flex:none;padding:2px 8px;border-radius:10px;background:#e3f5f3;color:#0b807c;font-size:11px;line-height:18px;}
.arf-head b{font-size:13.5px;color:#22383e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.arf-head-meta{margin-left:auto;color:#7a898c;font-size:12px;white-space:nowrap;}
.arf-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;}
.arf-box{display:flex;flex-direction:column;border:1px solid #d7e3e2;border-radius:4px;background:#fff;overflow:hidden;transition:border-color .15s,box-shadow .15s;}
.arf-box:focus-within{border-color:#39b3ae;box-shadow:0 0 0 3px rgba(20,184,184,.10);}
.arf-box-head{display:flex;align-items:center;justify-content:space-between;padding:8px 11px;background:#f8fbfb;border-bottom:1px solid #eaf1f1;color:#40565c;font-size:12.5px;font-weight:600;}
.arf-box-head em{font-style:normal;font-weight:400;color:#93a2a5;font-size:11px;}
.arf-box textarea{width:100%;min-height:170px;padding:10px 11px;border:0;outline:none;resize:vertical;background:#fff;color:#22383e;font:13px/1.75 "Noto Sans SC","Microsoft YaHei",sans-serif;}
.arf-box textarea::placeholder{color:#b3c0c2;}
.arf-foot{display:flex;align-items:center;gap:16px;padding:11px 12px;background:#f8fbfb;border:1px solid #e3eded;border-radius:4px;}
.arf-priority{display:flex;align-items:center;gap:7px;font-size:12.5px;color:#40565c;white-space:nowrap;}
.arf-priority span{font-weight:600;}
.arf-priority select{height:30px;min-width:82px;padding:0 8px;border:1px solid #cfdbda;border-radius:3px;background:#fff;color:#22383e;font:12.5px/1 "Noto Sans SC","Microsoft YaHei",sans-serif;}
.arf-priority em{font-style:normal;color:#93a2a5;font-size:11.5px;}
.arf-note{margin:0 0 0 auto;color:#7d8c8f;font-size:11.5px;line-height:1.6;text-align:right;}
@media (max-width:760px){.arf-grid{grid-template-columns:1fr;}.arf-foot{flex-direction:column;align-items:flex-start;}.arf-note{margin-left:0;text-align:left;}}

/* ---------- 语言资产 · 重复译文确认 ---------- */
.acf-wrap{display:flex;flex-direction:column;gap:10px;}
.acf-text{margin:0;color:#40565c;font-size:13px;line-height:1.7;}
.acf-list{max-height:220px;overflow:auto;margin-top:10px;border:1px solid #e6eeee;border-radius:3px;background:#fbfdfd;}
.acf-item{display:flex;gap:8px;padding:8px 10px;border-bottom:1px solid #eef3f3;font-size:12.5px;color:#2b3b3f;}
.acf-item:last-child{border-bottom:0;}
.acf-item b{flex:none;color:#0d8f8b;font-weight:600;}
.acf-item span{word-break:break-word;}

/* ---------- 语言资产 · 分页页码 ---------- */
.pager-total b{color:#0d8f8b;font-weight:600;}

/* ---------- CAT 同原文多译文：保留一条 ---------- */
.panel-keep-btn{display:inline-block;margin-left:6px;padding:2px 8px;border:1px solid #e5c9a8;border-radius:10px;background:#fff8ef;color:#9a6a2f;font:11px/16px "Noto Sans SC","Microsoft YaHei",sans-serif;cursor:pointer;vertical-align:middle;}
.panel-keep-btn:hover{background:#ffefdc;border-color:#d5a76e;color:#7d5220;}
.panel-keep-btn:disabled{opacity:.55;cursor:default;}
.panel-variant-tip{margin:0 0 8px;padding:7px 9px;border:1px solid #f0dfc6;border-radius:3px;background:#fffbf3;color:#8a6938;font-size:11.5px;line-height:1.5;}
.dock-term-dup{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:8px;background:#fff3e2;color:#a06a28;font-style:normal;font-size:10.5px;font-weight:400;}
body.theme-dark .panel-keep-btn{background:#3a2d1d;border-color:#7a5b35;color:#f0c98e;}
body.theme-dark .panel-variant-tip{background:#2b2419;border-color:#5b4a30;color:#d9bb8d;}

/* ---------- s333 员工筛选单行与底部留白 ---------- */
.staff-filter-line{padding:8px 10px 7px;}
.staff-filter-line .staff-filter-grid{grid-template-columns:minmax(150px,1.5fr) minmax(140px,1.1fr) minmax(110px,.9fr) minmax(90px,.8fr);gap:6px 9px;}
.staff-filter-line .staff-filter-actions{display:flex;gap:6px;}
.staff-filter-line .staff-filter-actions .btn,.staff-filter-line .staff-filter-actions .ghost{height:27px;padding:0 12px;font-size:11.5px;}
.staff-actions{padding:6px 10px;background:#fbfdfd;border-bottom:1px solid #edf2f3;}
.staff-actions .btn,.staff-actions .ghost{height:26px;padding:0 10px;font-size:11px;}
.staff-table-wrap{max-height:calc(100vh - 390px);min-height:220px;}
.staff-foot-note{padding-bottom:2px;}
@media (min-width:1101px){
  .staff-filter-line{flex-wrap:nowrap;}
  .staff-filter-line .staff-filter-grid{flex:1 1 auto;grid-template-columns:minmax(150px,1.5fr) minmax(140px,1.1fr) minmax(110px,.9fr) minmax(90px,.8fr);}
  .staff-filter-line .staff-filter-actions{flex:0 0 auto;margin:0;}
}
body.theme-dark .staff-actions{background:#16262b;border-color:#2a3c42;}

/* s334: M 标记必须能看出译文来源模型 */
.sentence-grid .row-flag-model{max-width:70px;font-size:9.5px;line-height:1.15;color:#9a5c51;letter-spacing:0;}
.sentence-grid .row-flag-model.legacy{color:#8c8c8c;}
body.theme-dark .sentence-grid .row-flag-model{color:#e0a79a;}
body.theme-dark .sentence-grid .row-flag-model.legacy{color:#9aa0a2;}


/* ===== CRM 客户经营 ===== */
.crm-kpis{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin:0 0 10px;}
.crm-kpi{position:relative;background:#fff;border:1px solid #e3ecec;border-radius:6px;padding:10px 12px 9px;min-height:70px;overflow:hidden;}
.crm-kpi:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#14b8b8;opacity:.75;}
.crm-kpi.warn:before{background:#e08a2e;}
.crm-kpi.danger:before{background:#d9534f;}
.crm-kpi .k{font-size:11.5px;color:#7f9296;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.crm-kpi .v{font-size:21px;line-height:1.25;font-weight:700;color:#17313b;font-variant-numeric:tabular-nums;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.crm-kpi .s{font-size:10.5px;color:#9aa9ac;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.crm-tabbar{display:flex;align-items:center;gap:2px;border-bottom:1px solid #dfe8e8;margin:0 0 10px;}
.crm-tab{border:0;background:none;color:#61777c;padding:9px 14px 8px;font-size:13px;border-bottom:2px solid transparent;margin-bottom:-1px;}
.crm-tab:hover{color:#0f8f8f;}
.crm-tab.on{color:#0b7f7f;font-weight:600;border-bottom-color:#14b8b8;}
.crm-tab-sum{font-size:11.5px;color:#93a3a6;padding-right:2px;}
.crm-pane{min-height:0;}
.crm-pane-head{display:flex;align-items:center;gap:8px;padding:2px 0 10px;}
.crm-pane-head h3{margin:0;font-size:15px;color:#23383e;}
.crm-pane-head .sub{font-size:11.5px;color:#93a3a6;}
.crm-card{background:#fff;border:1px solid #e3ecec;border-radius:6px;padding:12px;}
.crm-opp-board{display:grid;grid-template-columns:repeat(6,minmax(150px,1fr));gap:9px;align-items:start;overflow:auto;padding-bottom:4px;}
.crm-opp-col{background:#f7faf9;border:1px solid #e4edec;border-radius:6px;min-height:180px;}
.crm-opp-col h4{margin:0;padding:8px 10px;font-size:12px;color:#415b60;border-bottom:1px solid #e4edec;display:flex;align-items:center;gap:6px;}
.crm-opp-col h4 .n{margin-left:auto;font-size:10.5px;color:#8fa1a3;font-weight:400;}
.crm-opp-list{padding:7px;display:flex;flex-direction:column;gap:7px;min-height:130px;}
.crm-opp-card{background:#fff;border:1px solid #e1eaea;border-left:3px solid #14b8b8;border-radius:4px;padding:7px 8px;cursor:pointer;}
.crm-opp-card:hover{border-color:#9fdada;box-shadow:0 2px 8px rgba(20,120,120,.08);}
.crm-opp-card b{display:block;font-size:12px;color:#253b42;line-height:1.35;max-height:32px;overflow:hidden;}
.crm-opp-card .co{font-size:10.5px;color:#84979a;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.crm-opp-card .amt{font-size:13px;color:#0e8b8b;font-weight:700;margin-top:5px;font-variant-numeric:tabular-nums;}
.crm-opp-card .meta{display:flex;justify-content:space-between;gap:6px;font-size:10px;color:#9aa9ac;margin-top:4px;}
.crm-opp-empty{font-size:11px;color:#a7b3b5;text-align:center;padding:26px 6px;}
.crm-grid{width:100%;border-collapse:collapse;background:#fff;}
.crm-grid th{font-size:11.5px;color:#7d9094;text-align:left;font-weight:500;background:#f6faf9;border-bottom:1px solid #e4ecec;padding:7px 8px;white-space:nowrap;}
.crm-grid td{font-size:12px;color:#2d4248;border-bottom:1px solid #eef3f2;padding:7px 8px;vertical-align:middle;}
.crm-grid tr:hover td{background:#f8fcfc;}
.crm-grid .num{text-align:right;font-variant-numeric:tabular-nums;}
.crm-grid .op{white-space:nowrap;}.crm-grid .op button{border:0;background:none;color:#138d8d;padding:2px 4px;font-size:11.5px;}
.crm-grid .op button.del{color:#c85a56;}
#crm-pane-invoice .crm-grid .num{text-align:center;}
.crm-invoice-stats{overflow-x:auto;}
.crm-invoice-stats-grid{min-width:1080px;table-layout:fixed;}
.crm-invoice-stats-grid .crm-period{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.crm-pill{display:inline-block;padding:1px 6px;border-radius:9px;font-size:10.5px;line-height:1.6;background:#eef7f6;color:#287b7b;white-space:nowrap;}
.crm-pill.warn{background:#fff5e6;color:#b07422;}
.crm-pill.danger{background:#fdeeee;color:#b64b47;}
.crm-pill.gray{background:#f1f4f4;color:#7b8c90;}
.crm-empty{padding:42px 10px;text-align:center;color:#9aabad;font-size:12px;}
.crm-subhead{display:flex;align-items:center;gap:8px;margin:12px 0 7px;}
.crm-subhead:first-child{margin-top:0;}
.crm-subhead b{font-size:13px;color:#30474d;}
.crm-subhead .muted{font-size:11px;}
.crm-two{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.crm-drawer{position:fixed;inset:0;z-index:80;}
.crm-drawer-mask{position:absolute;inset:0;background:rgba(16,35,43,.28);}
.crm-drawer-panel{position:absolute;right:0;top:84px;bottom:0;width:780px;max-width:94vw;background:#f7faf9;box-shadow:-6px 0 24px rgba(16,40,45,.16);display:flex;flex-direction:column;}
.crm-drawer-head{padding:16px 18px 12px;background:#fff;border-bottom:1px solid #e2eceb;}
.crm-drawer-head .top{display:flex;align-items:flex-start;gap:10px;}
.crm-drawer-head h3{margin:0;font-size:17px;color:#1d343b;line-height:1.3;}
.crm-drawer-head .sub{font-size:11.5px;color:#8b9da0;margin-top:4px;}
.crm-drawer-head .x{margin-left:auto;border:0;background:none;font-size:20px;color:#9aabad;line-height:1;padding:0 2px;}
.crm-360-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:10px;}
.crm-360-kpis div{background:#f7fbfb;border:1px solid #e6efee;border-radius:4px;padding:6px 8px;}
.crm-360-kpis b{display:block;font-size:15px;color:#173c44;line-height:1.2;}
.crm-360-kpis span{font-size:10.5px;color:#8fa1a3;}
.crm-drawer-tabs{display:flex;gap:2px;padding:0 18px;background:#fff;border-bottom:1px solid #e2eceb;}
.crm-drawer-tabs button{border:0;background:none;padding:9px 11px 8px;font-size:12.5px;color:#667c80;border-bottom:2px solid transparent;margin-bottom:-1px;}
.crm-drawer-tabs button.on{color:#0c8080;font-weight:600;border-bottom-color:#14b8b8;}
.crm-drawer-body{flex:1;min-height:0;overflow:auto;padding:14px 18px 28px;}
.crm-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px;background:#fff;border:1px solid #e4edec;border-radius:6px;padding:4px 12px;}
.crm-field{display:flex;gap:10px;padding:7px 0;border-bottom:1px dashed #edf2f1;font-size:12px;line-height:1.5;}
.crm-field:nth-last-child(-n+2){border-bottom:0;}
.crm-field .l{width:82px;color:#8b9da0;flex:none;}
.crm-field .v{color:#2b4248;min-width:0;word-break:break-all;}
.crm-mini-list{display:flex;flex-direction:column;gap:7px;}
.crm-mini-row{background:#fff;border:1px solid #e4edec;border-radius:5px;padding:9px 11px;}
.crm-mini-row .t{font-size:12.5px;color:#274048;font-weight:600;}
.crm-mini-row .m{font-size:11px;color:#8b9da0;margin-top:3px;}
.crm-timeline{position:relative;padding-left:14px;}
.crm-timeline:before{content:"";position:absolute;left:4px;top:4px;bottom:4px;width:1px;background:#dce8e7;}
.crm-tl-item{position:relative;margin:0 0 10px;}
.crm-tl-item:before{content:"";position:absolute;left:-13px;top:5px;width:7px;height:7px;border-radius:50%;background:#14b8b8;box-shadow:0 0 0 2px #e8f7f6;}
.crm-tl-item .h{display:flex;align-items:center;gap:6px;font-size:12.5px;color:#274048;font-weight:600;}
.crm-tl-item .d{font-size:10.5px;color:#96a7a9;margin-left:auto;font-weight:400;}
.crm-tl-item .c{font-size:11.5px;color:#6f8387;margin-top:3px;line-height:1.6;}
.crm-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px;}
@media (max-width:1400px){.crm-kpis{grid-template-columns:repeat(3,minmax(0,1fr));}.crm-opp-board{grid-template-columns:repeat(3,minmax(160px,1fr));}}

/* CRM 容器适配原客户页 flex 布局 */
#customers-view > .crm-kpis,#customers-view > .crm-tabbar{flex:none;}
#crm-pane-archive{flex:1;min-height:0;display:flex;flex-direction:column;}
#crm-pane-archive > .orders-card{flex:1;min-height:0;display:flex;flex-direction:column;}
#crm-pane-archive .table-wrap{flex:1;min-height:0;overflow:auto;}
#crm-pane-opportunity,#crm-pane-followup,#crm-pane-contract{flex:1;min-height:0;overflow:auto;padding-bottom:4px;}
.btn.small{height:26px;padding:0 9px;font-size:11.5px;}
.crm-form{display:grid;grid-template-columns:1fr 1fr;gap:11px 14px;}
.crm-form label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#6b7e82;}
.crm-form label.crm-form-full{grid-column:1/-1;}
.crm-form input,.crm-form select,.crm-form textarea{border:1px solid #dfe7e6;border-radius:3px;padding:7px 9px;font-size:12.5px;color:#263d44;background:#fff;font-family:inherit;}
.crm-form input,.crm-form select{height:32px;}
.crm-form textarea{resize:vertical;min-height:74px;line-height:1.55;}
.crm-form input:focus,.crm-form select:focus,.crm-form textarea:focus{outline:none;border-color:#14b8b8;box-shadow:0 0 0 2px rgba(20,184,184,.10);}
.crm-feedback-form2{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:start;}
.crm-ff-col{display:flex;flex-direction:column;gap:11px;min-width:0;}
.crm-ff-col .crm-form-full{grid-column:auto;}
.crm-ff-pair{display:grid;grid-template-columns:1fr 1fr;gap:11px 14px;}
@media (max-width:900px){.crm-form{grid-template-columns:1fr;}}

/* CRM 客户分类 / 反馈投诉 / 通知 */
.crm-tab{position:relative;}
.crm-tab-badge{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;margin-left:5px;border-radius:9px;background:#e5483f;color:#fff;font-size:10px;line-height:1;}
.crm-notice-btn{position:relative;}
.crm-notice-badge{position:absolute;top:0;right:0;min-width:15px;height:15px;padding:0 3px;border-radius:8px;background:#e5483f;color:#fff;font-size:9.5px;line-height:15px;text-align:center;box-shadow:0 0 0 1px #fff;}
.crm-stage-bar{display:flex;flex-wrap:wrap;gap:6px;padding:0 0 9px;}
.crm-stage-chip{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border:1px solid #e1e9e8;border-radius:14px;background:#fff;color:#5e7276;font-size:11.5px;}
.crm-stage-chip b{font-weight:600;color:#334b52;font-variant-numeric:tabular-nums;}
.crm-stage-chip.on{border-color:#14b8b8;background:#eaf8f7;color:#0b7373;}
.crm-stage-chip.on b{color:#0b7373;}
.crm-stage-pill{display:inline-block;padding:2px 7px;border-radius:10px;font-size:11px;line-height:16px;white-space:nowrap;background:#eef3f3;color:#62777b;}
.crm-stage-pill.new{background:#e8f1fb;color:#2b5f97;}
.crm-stage-pill.warn{background:#fff3df;color:#a5680e;}
.crm-stage-pill.done{background:#e5f6ee;color:#167a4e;}
.crm-stage-pill.intent{background:#f1ebfb;color:#6743a3;}
.crm-stage-pill.opp{background:#fdeceb;color:#a6403b;}
.crm-importance{font-size:11px;color:#6a7d80;}
.crm-importance.hot{color:#bd4c22;font-weight:600;}
.crm-stage-editor{display:flex;align-items:center;gap:9px;margin-bottom:12px;padding:9px 11px;background:#f3f8f7;border:1px solid #e2ecea;border-radius:3px;}
.crm-stage-editor .l{font-size:11.5px;color:#6c8083;margin-right:7px;}
.crm-stage-editor select{height:28px;border:1px solid #dce6e4;border-radius:3px;background:#fff;color:#2d464d;font-size:12px;padding:0 7px;}
.crm-text-block{padding:9px 11px;margin-bottom:12px;border-left:3px solid #14b8b8;background:#f7fbfa;color:#425a60;font-size:12px;line-height:1.7;white-space:pre-wrap;}
.crm-notice-card{margin-bottom:12px;border:1px solid #f1d9c4;background:#fffaf3;border-radius:3px;overflow:hidden;}
.crm-notice-head{display:flex;align-items:center;gap:9px;padding:9px 12px;border-bottom:1px solid #f4e5d4;font-size:12px;color:#7a5b35;}
.crm-notice-head b{color:#5e4221;font-size:12.5px;}
.crm-notice-list{max-height:230px;overflow:auto;}
.crm-notice-item{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:2px 10px;width:100%;padding:8px 12px;border:0;border-bottom:1px solid #f7ecdf;background:transparent;text-align:left;color:#4f5f62;}
.crm-notice-item:last-child{border-bottom:0;}
.crm-notice-item:hover{background:#fff3e4;}
.crm-notice-item b{font-size:12px;color:#3c4e52;grid-column:1;}
.crm-notice-item span{font-size:11px;color:#8a9a9c;grid-column:1;}
.crm-notice-item em{grid-column:2;grid-row:1/3;align-self:center;font-style:normal;font-size:10.5px;color:#9aa8aa;}
.crm-notice-item.unread{background:#fff6e8;}
.crm-notice-item.unread b{color:#9a4d18;}
.crm-notice-item.unread em{color:#d2691e;}
.crm-feedback-filter{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:9px;}
.crm-chip{display:inline-flex;align-items:center;gap:5px;height:25px;padding:0 9px;border:1px solid #e1e9e8;border-radius:13px;background:#fff;color:#657a7e;font-size:11.5px;}
.crm-chip b{font-weight:600;color:#2f484e;}
.crm-chip.on{border-color:#14b8b8;background:#eaf8f7;color:#0b7373;}
.crm-feedback-grid th,.crm-feedback-grid td{vertical-align:top;}
.crm-feedback-content{margin-top:3px;max-width:360px;color:#7b8d90;font-size:11px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.crm-feedback-grid tbody tr{cursor:pointer;}
.crm-feedback-grid tbody tr:hover{background:#f7fbfa;}
.crm-notify-box{border:1px solid #e3ecea;border-radius:4px;padding:10px 12px;background:#f8fbfa;}
.crm-notify-title{display:flex;align-items:baseline;gap:8px;margin-bottom:7px;}
.crm-notify-title b{font-size:12px;color:#365057;}
.crm-notify-search{height:28px!important;margin-bottom:6px;font-size:12px!important;}
.crm-notify-list{max-height:150px;overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:3px 12px;padding:6px 8px;background:#fff;border:1px solid #e4eceb;border-radius:3px;}
.crm-notify-opt{display:flex!important;flex-direction:row!important;align-items:center;gap:6px;font-size:12px;color:#4c6166;padding:2px 0;}
.crm-notify-opt input{width:14px;height:14px;margin:0;}
.crm-notify-dept{font-style:normal;font-size:10.5px;color:#8a9aa0;margin-left:4px;}
.crm-notify-switch{display:flex!important;flex-direction:row!important;align-items:center;gap:6px;margin-top:7px;font-size:11.5px;color:#7d5a2f;}
.crm-notify-switch input{width:14px;height:14px;margin:0;}
@media (max-width:900px){
  .crm-notify-list{grid-template-columns:1fr;}
  .crm-feedback-content{max-width:220px;}
  .crm-stage-editor{flex-wrap:wrap;}
}

/* ===== s359: CRM / 员工 / 个人中心补丁 ===== */
.crm-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px;}
.crm-toolbar .orders-actions{flex:0 1 auto;margin:0;padding:0;border:0;background:transparent;min-width:0;}
.crm-toolbar .crm-stage-bar{flex:1 1 auto;padding:0;margin:0;justify-content:flex-end;}
.crm-toolbar .orders-filter{flex:1 1 100%;margin:0;}
#crm-pane-feedback{flex:1;min-height:0;overflow:auto;padding-bottom:4px;display:flex;flex-direction:column;}
#crm-pane-feedback .crm-card{flex:none;}
.crm-copyright{position:sticky;bottom:0;z-index:2;margin-top:14px;padding:12px 0 6px;border-top:1px dashed #e2eaea;text-align:center;line-height:1.7;font-size:10.5px;color:#a2b0b3;background:#fff;}
.crm-pending-pop{padding:2px 0;}
.crm-pending-head b{display:block;font-size:15px;color:#263f46;margin-bottom:4px;}
.crm-pending-head span{font-size:12px;color:#85979b;}
.crm-pending-list{margin-top:12px;display:flex;flex-direction:column;gap:7px;max-height:320px;overflow:auto;}
.crm-pending-item{display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid #e6eeee;border-radius:5px;background:#fbfdfd;}
.crm-pending-item>div{flex:1;min-width:0;}
.crm-pending-item b{display:block;font-size:12.5px;color:#294148;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.crm-pending-item span{display:block;font-size:11px;color:#8b9b9e;margin-top:2px;}
.crm-pending-item em{font-style:normal;font-size:10.5px;color:#a3b1b4;flex:none;}
.crm-notify-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 10px;max-height:196px;overflow:auto;padding:7px 8px;border:1px solid #e5eded;border-radius:4px;background:#fbfdfd;}
.crm-notify-opt{display:flex;align-items:center;gap:6px;min-width:0;padding:3px 4px;border-radius:3px;}
.crm-notify-opt:hover{background:#f0f8f8;}
.crm-notify-opt span{display:flex;align-items:center;gap:5px;min-width:0;font-size:11.5px;color:#31484f;}
.crm-notify-opt span b{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.crm-notify-dept{font-style:normal;color:#92a2a5;font-size:10px;flex:none;}
.crm-notify-search{width:100%;height:28px;margin:6px 0;border:1px solid #e0e9e8;border-radius:3px;padding:0 8px;font-size:11.5px;}
.crm-notify-switch{display:flex;align-items:center;gap:6px;font-size:11px;color:#667b80;margin-top:6px;}
.qff-col-grip{position:absolute;top:0;right:-3px;width:7px;height:100%;cursor:col-resize;z-index:3;}
.qff-col-grip:after{content:"";position:absolute;top:22%;left:2px;width:1px;height:56%;background:#d5e2e1;}
th:hover>.qff-col-grip:after{background:#14b8b8;}
body.qff-col-dragging,body.qff-col-dragging *{cursor:col-resize!important;user-select:none!important;}
th.is-col-dragging{background:rgba(20,184,184,.06);}
table.is-col-resizing{cursor:col-resize;user-select:none;}
#crm-pane-archive .table-wrap{overflow:auto;}

/* 员工左侧分类字体加大加深 */
.staff-tree-label{font-size:12.5px;color:#213a42;}
.staff-tree-all{font-size:12.5px;color:#213a42;font-weight:600;}
.staff-tree-item{font-size:12.5px;color:#3c5259;}
.staff-tree-subhead{font-size:10.5px;color:#87999d;}
.staff-tree-all b,.staff-tree-label b{font-size:11px;color:#86979a;}

/* 价格 / 证书 / 记事本 */
.staff-cert-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;padding:12px 14px 4px;}
.staff-cert-toolbar label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:#718387;}
.staff-cert-toolbar input,.staff-cert-toolbar select{height:30px;min-width:150px;border:1px solid #dfe9e8;border-radius:3px;padding:0 8px;font-size:12px;background:#fff;}
.staff-cert-toolbar .btn,.staff-cert-toolbar .ghost{height:30px;}
.staff-cert-card,.staff-price-card{padding-bottom:0;}
.staff-cert-wrap,.staff-price-wrap{margin:0 14px;overflow:auto;}
.staff-cert-table,.staff-price-table{min-width:900px;}
.staff-cert-table tbody tr[data-cert-row]{cursor:pointer;}
.staff-cert-table tbody tr.selected td{background:#eef8f7!important;}
.staff-cert-table tbody tr.selected td:first-child{box-shadow:inset 2px 0 0 #14b8b8;}
.staff-cert-sub{font-size:10.5px;color:#92a2a5;margin-top:2px;}
.staff-price-type{display:inline-block;padding:2px 7px;border-radius:10px;background:#eef6f6;color:#147a7a;font-size:11px;}
.staff-price-type.interpret{background:#fff3e6;color:#b06a16;}
.staff-price-type.qc{background:#f0effa;color:#5a4f9a;}
.staff-price-num{font-weight:600;color:#1c5459;font-variant-numeric:tabular-nums;}
.staff-cert-form,.staff-price-form{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;}
.staff-cert-form label,.staff-price-form label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#61777c;}
.staff-cert-form label.wide,.staff-price-form label.wide{grid-column:1/-1;}
.staff-cert-form input,.staff-cert-form select,.staff-price-form input,.staff-price-form select{height:33px;border:1px solid #dfe7e6;border-radius:3px;padding:0 9px;font-size:12.5px;background:#fff;}
.staff-cert-wan{padding:20px;text-align:center;}
.staff-cert-wan b{display:block;font-size:16px;color:#b06a16;margin-bottom:8px;}
.staff-cert-wan p{font-size:12.5px;color:#5f747a;line-height:1.8;margin:0;}
.staff-cert-preview{height:64vh;display:flex;align-items:center;justify-content:center;background:#f5f8f8;}
.staff-cert-preview img{max-width:100%;max-height:100%;object-fit:contain;}
.staff-cert-preview iframe{width:100%;height:100%;border:0;background:#fff;}

.personal-settings-card.personal-nav-collapsed{grid-template-columns:1fr;}
.personal-settings-card.personal-nav-collapsed .personal-settings-nav{display:none;}
.personal-note-card{padding:14px 16px;}
.personal-note-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;}
.personal-note-toolbar b{display:block;font-size:14px;color:#23383e;}
.personal-note-toolbar span{display:block;font-size:11px;color:#8c9da1;margin-top:2px;}
.personal-note-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:12px;min-height:380px;}
.personal-note-list{border:1px solid #e4ecec;border-radius:5px;background:#fbfdfd;overflow:auto;max-height:56vh;}
.personal-note-item{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #edf3f2;background:transparent;padding:9px 10px;cursor:pointer;}
.personal-note-item:hover{background:#f1f8f7;}
.personal-note-item.active{background:#e9f6f5;box-shadow:inset 2px 0 0 #14b8b8;}
.personal-note-item b{display:block;font-size:12.5px;color:#2b444b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.personal-note-item b em{font-style:normal;font-size:9.5px;color:#b47715;background:#fff4df;border-radius:8px;padding:1px 4px;margin-right:4px;}
.personal-note-item span{display:block;font-size:10.5px;color:#8fa0a3;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.personal-note-item i{display:block;font-style:normal;font-size:9.5px;color:#b0bcbe;margin-top:3px;}
.personal-note-empty{padding:26px 12px;text-align:center;}
.personal-note-empty b{display:block;font-size:12.5px;color:#61777c;}
.personal-note-empty span{font-size:10.5px;color:#9aabad;}
.personal-note-editor{display:flex;flex-direction:column;gap:8px;min-width:0;}
.note-title-input{height:36px;border:1px solid #e0e9e8;border-radius:4px;padding:0 11px;font-size:14px;font-weight:600;color:#233b42;}
.note-content-input{flex:1;min-height:280px;border:1px solid #e0e9e8;border-radius:4px;padding:10px 11px;font-size:12.5px;line-height:1.75;color:#2e454c;resize:vertical;font-family:inherit;}
.personal-note-foot{display:flex;align-items:center;gap:10px;font-size:11px;}
.note-pin{display:flex;align-items:center;gap:5px;color:#6c8085;}
@media(max-width:760px){.personal-note-layout{grid-template-columns:1fr;}.personal-note-list{max-height:180px;}.crm-notify-list{grid-template-columns:1fr;}.crm-toolbar .orders-actions{flex-wrap:wrap;}}

/* ===== s364: 证书页签 / 客户投诉汇总与图片 / 资产管理 ===== */
.staff-cert-tabbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px 8px;border-bottom:1px solid #e8efee;background:#fbfdfd;}
.staff-cert-tabtitle{display:flex;align-items:baseline;gap:9px;min-width:0;}
.staff-cert-tabtitle b{font-size:14px;color:#213a42;flex:none;}
.staff-cert-tabtitle span{font-size:11px;color:#8a9a9d;line-height:1.5;}
.staff-cert-kpis{padding:10px 14px 0;}
.staff-cert-kpis .staff-kpi{min-width:0;}

.crm-fb-summary{margin:0 0 12px;padding:10px 12px;border:1px solid #e3eceb;border-radius:5px;background:#fbfdfd;}
.crm-fb-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:10px;}
.crm-fb-kpi{padding:9px 11px;border:1px solid #e5eeee;border-radius:4px;background:#fff;}
.crm-fb-kpi span{display:block;font-size:10.5px;color:#7c9094;}
.crm-fb-kpi b{display:block;margin-top:3px;font-size:21px;line-height:1.15;color:#1f4950;font-variant-numeric:tabular-nums;}
.crm-fb-kpi em{display:block;margin-top:2px;font-style:normal;font-size:10px;color:#9aabad;}
.crm-fb-kpi.danger b{color:#b84537;}
.crm-fb-kpi.ok b{color:#167a4e;}
.crm-fb-summary-panels{display:grid;grid-template-columns:1.1fr 1fr;gap:10px;}
.crm-fb-panel{padding:8px 10px;border:1px solid #e7efee;border-radius:4px;background:#fff;min-width:0;}
.crm-fb-panel-title{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:7px;font-size:11.5px;color:#39565c;font-weight:600;}
.crm-fb-panel-title em{font-style:normal;font-size:10px;color:#9aabad;font-weight:400;}
.crm-fb-bar-row{display:grid;grid-template-columns:112px minmax(40px,1fr) 24px;align-items:center;gap:6px;height:22px;font-size:10.5px;color:#5d7378;}
.crm-fb-bar-row>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.crm-fb-bar{height:7px;border-radius:5px;background:#eef4f3;overflow:hidden;}
.crm-fb-bar i{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,#14b8b8,#2d548b);}
.crm-fb-bar-row b{text-align:right;font-weight:600;color:#315058;font-variant-numeric:tabular-nums;}
.crm-fb-months{display:flex;align-items:flex-end;gap:5px;height:102px;padding-top:4px;}
.crm-fb-month{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:2px;height:100%;min-width:0;color:#8a9a9d;}
.crm-fb-month i{display:block;width:70%;max-width:18px;border-radius:3px 3px 0 0;background:linear-gradient(180deg,#5ac8c5,#2d548b);}
.crm-fb-month span{font-size:9px;white-space:nowrap;}
.crm-fb-month b{font-size:9.5px;color:#4e666c;font-weight:600;}
.crm-empty.small{padding:16px 0;font-size:11px;}
.crm-att-btn{height:22px;padding:0 7px;border:1px solid #cfe3e8;border-radius:3px;background:#f5fbfc;color:#22777c;font-size:10.5px;cursor:pointer;}
.crm-att-btn:hover{border-color:#90c5c9;background:#eaf7f6;}
.crm-project-no{display:inline-block;padding:1px 6px;border-radius:10px;background:#f2f6f6;color:#2d548b;font-size:11px;font-family:Consolas,monospace;}
.crm-f-upload-box{padding:9px 10px;border:1px dashed #d9e6e5;border-radius:4px;background:#fbfdfd;}
.crm-upload-btn{display:inline-flex!important;align-items:center;justify-content:center;height:28px;padding:0 10px;margin:2px 0 7px;border:1px solid #cfe1e5;border-radius:3px;background:#fff;color:#2d548b;font-size:11.5px;cursor:pointer;}
.crm-upload-btn:hover{background:#f2f9f9;border-color:#9fc9cd;}
.crm-upload-btn input{display:none;}
.crm-thumb-grid{display:flex;flex-wrap:wrap;gap:7px;min-height:34px;}
.crm-thumb{position:relative;width:72px;height:54px;border:1px solid #e0e9e8;border-radius:3px;background:#fff;overflow:hidden;}
.crm-thumb img{width:100%;height:100%;object-fit:cover;cursor:zoom-in;display:block;}
.crm-thumb-del{position:absolute;top:1px;right:1px;width:16px;height:16px;padding:0;border:0;border-radius:50%;background:rgba(30,45,50,.65);color:#fff;font-size:12px;line-height:16px;cursor:pointer;}
.crm-thumb-empty{font-size:10.5px;color:#9aabad;padding:7px 0;}
.crm-image-preview{display:flex;align-items:center;justify-content:center;max-height:72vh;overflow:auto;background:#f4f7f7;padding:8px;}
.crm-image-preview img{max-width:100%;max-height:68vh;object-fit:contain;box-shadow:0 2px 12px rgba(20,40,45,.15);}

.asset-topbar{display:flex;align-items:center;gap:8px;margin-bottom:9px;}
.asset-topbar .spacer{flex:1;}
.asset-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:10px;}
.asset-kpi{padding:10px 12px;border:1px solid #e5eded;border-radius:5px;background:#fff;}
.asset-kpi span{display:block;font-size:10.5px;color:#7c9094;}
.asset-kpi b{display:block;margin-top:3px;font-size:21px;line-height:1.15;color:#1f4950;font-variant-numeric:tabular-nums;}
.asset-kpi em{display:block;margin-top:2px;font-style:normal;font-size:10px;color:#9aabad;}
.asset-card{border:1px solid #e3eceb;border-radius:5px;background:#fff;overflow:hidden;}
.asset-toolbar{padding:10px 12px 8px;border-bottom:1px solid #edf3f2;background:#fbfdfd;}
.asset-chips{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:7px;}
.asset-chip{height:25px;padding:0 9px;border:1px solid #e1e9e8;border-radius:13px;background:#fff;color:#657a7e;font-size:11px;cursor:pointer;}
.asset-chip b{margin-left:4px;font-weight:600;color:#2f484e;}
.asset-chip.on{border-color:#14b8b8;background:#eaf8f7;color:#0b7373;}
.asset-search{display:flex;flex-wrap:wrap;align-items:center;gap:7px;}
.asset-search input{flex:1 1 260px;max-width:380px;height:30px;border:1px solid #dfe9e8;border-radius:3px;padding:0 9px;font-size:12px;}
.asset-search select{height:30px;min-width:110px;border:1px solid #dfe9e8;border-radius:3px;padding:0 7px;background:#fff;font-size:12px;color:#405a60;}
.asset-search .btn,.asset-search .ghost{height:30px;}
.asset-table-wrap{max-height:calc(100vh - 410px);min-height:300px;overflow:auto;}
.asset-table{min-width:1180px;table-layout:fixed;}
.asset-table th{position:sticky;top:0;z-index:1;height:31px;background:#f7fafb;color:#65767b;font-size:10.5px;font-weight:500;border-bottom:1px solid #e5ecee;white-space:nowrap;}
.asset-table td{height:41px;padding:4px 7px;border-bottom:1px solid #edf2f3;color:#33454d;font-size:11.5px;vertical-align:middle;}
.asset-table tbody tr:hover td{background:#f6fbfb;}
.asset-table th:nth-child(1){width:88px;}
.asset-table th:nth-child(2){width:70px;}
.asset-table th:nth-child(3){width:210px;}
.asset-table th:nth-child(4){width:160px;}
.asset-table th:nth-child(6){width:64px;}
.asset-table th:nth-child(7){width:76px;}
.asset-table th:nth-child(9){width:116px;}
.asset-table td:nth-child(9){white-space:nowrap;overflow:visible;}
.asset-tag{display:inline-block;padding:1px 6px;border-radius:10px;background:#eef6f6;color:#147a7a;font-size:10px;white-space:nowrap;}
.asset-sub{margin-top:1px;font-size:10px;color:#92a2a5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.asset-status{display:inline-block;padding:1px 6px;border-radius:10px;background:#f1f6f5;color:#3f666b;font-size:10px;white-space:nowrap;}
.asset-thumb{width:42px;height:32px;object-fit:cover;border:1px solid #dfe9e8;border-radius:2px;cursor:zoom-in;display:block;background:#f7fafb;}
.asset-form{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;}
.asset-form label{display:flex;flex-direction:column;gap:4px;font-size:11.5px;color:#61777c;}
.asset-form label.wide{grid-column:1/-1;}
.asset-form input,.asset-form select,.asset-form textarea{width:100%;box-sizing:border-box;border:1px solid #dfe7e6;border-radius:3px;padding:0 8px;font-size:12.5px;background:#fff;}
.asset-form input,.asset-form select{height:32px;}
.asset-form textarea{padding:7px 8px;line-height:1.6;resize:vertical;}
.asset-dialog-imgbox{margin-top:5px;min-height:40px;}
.asset-dialog-img{max-width:180px;max-height:110px;object-fit:contain;border:1px solid #e0e9e8;border-radius:3px;background:#f7fafb;}
body.theme-dark .staff-cert-tabbar,body.theme-dark .asset-toolbar{background:#1b2c31;border-bottom-color:#2a3c42;}
body.theme-dark .staff-cert-tabtitle b,body.theme-dark .asset-kpi b,body.theme-dark .crm-fb-kpi b{color:#d7e3e5;}
body.theme-dark .staff-cert-tabtitle span,body.theme-dark .asset-kpi span,body.theme-dark .crm-fb-kpi span,
body.theme-dark .crm-fb-kpi em,body.theme-dark .asset-kpi em{color:#9fb1b6;}
body.theme-dark .asset-kpi,body.theme-dark .asset-card,body.theme-dark .crm-fb-summary,body.theme-dark .crm-fb-kpi,body.theme-dark .crm-fb-panel{background:#16262b;border-color:#2a3c42;}
body.theme-dark .asset-chip,body.theme-dark .asset-search input,body.theme-dark .asset-search select{background:#1b2c31;border-color:#2f444b;color:#c3d2d5;}
body.theme-dark .asset-table th{background:#1b2c31;color:#9fb1b6;border-bottom-color:#2a3c42;}
body.theme-dark .asset-table td{color:#d7e3e5;border-bottom-color:#24353b;}
body.theme-dark .asset-table tbody tr:hover td{background:#1e3238;}
body.theme-dark .asset-tag,body.theme-dark .asset-status{background:#22383e;color:#8ddbd2;}
body.theme-dark .asset-form input,body.theme-dark .asset-form select,body.theme-dark .asset-form textarea,
body.theme-dark .crm-upload-btn{background:#1b2c31;border-color:#2f444b;color:#d7e3e5;}
body.theme-dark .crm-f-upload-box{background:#16262b;border-color:#2f444b;}
body.theme-dark .crm-thumb{border-color:#2f444b;background:#1b2c31;}
body.theme-dark .crm-fb-panel-title{color:#c3d2d5;}
body.theme-dark .crm-fb-bar-row{color:#a9bcc2;}
body.theme-dark .crm-fb-bar{background:#24353b;}
@media(max-width:1100px){.crm-fb-summary-panels{grid-template-columns:1fr;}.asset-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:760px){.crm-fb-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}.asset-form{grid-template-columns:1fr;}.asset-form label.wide{grid-column:auto;}.asset-kpis{grid-template-columns:1fr 1fr;}.staff-cert-tabbar{align-items:flex-start;flex-direction:column;}}

/* 新建/编辑页统一字体与颜色（沿用现有纸页蓝界面） */
.modal-body label{color:#52666b;font-size:13px;line-height:1.5;}
.modal-body input,.modal-body textarea,.modal-body select{font-size:13.5px;color:#22383f;font-family:inherit;}
.modal-body input::placeholder,.modal-body textarea::placeholder{color:#96a5a7;}
.form-grid label{color:#52666b;font-size:13px;}
.form-grid .form-sec{font-size:13px;color:#2d548b;}
.crm-form label{color:#52666b;font-size:13px;}
.crm-form input,.crm-form select,.crm-form textarea{font-size:13px;color:#22383f;}
.crm-form input,.crm-form select{height:34px;}
.crm-stage-editor .l,.crm-field .l{font-size:12.5px;color:#5b7075;}
.crm-field .v{font-size:13px;color:#263d44;}
.crm-subhead b{font-size:13px;}
.crm-pane-head .sub{font-size:12.5px;color:#6b7f83;}
.home-todo-btn{position:relative;}
.home-todo-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px;}
.home-todo-summary>div{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border:1px solid #e3edec;border-radius:6px;background:#f8fbfb;color:#52666b;font-size:13px;}
.home-todo-summary b{font-size:22px;color:#1f5f68;font-variant-numeric:tabular-nums;}
.home-todo-cols{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.home-todo-cols section{min-width:0;border:1px solid #e7efee;border-radius:6px;background:#fff;padding:10px 12px;}
.home-todo-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;}
.home-todo-head h4{margin:0;font-size:13px;color:#23464c;}
.home-todo-item{display:flex;align-items:center;gap:10px;width:100%;padding:9px 8px;border:0;border-bottom:1px solid #eef4f3;background:transparent;text-align:left;cursor:pointer;}
.home-todo-item:last-child{border-bottom:0;}
.home-todo-item:hover{background:#f5fbfa;}
.home-todo-item-main{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1;}
.home-todo-item-main b{font-size:12.5px;color:#29474d;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.home-todo-item-main em{font-style:normal;font-size:11.5px;color:#7a8e91;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.home-todo-item-time{font-size:11.5px;color:#b06a35;white-space:nowrap;}
@media(max-width:760px){.home-todo-summary,.home-todo-cols{grid-template-columns:1fr;}}

/* s491 项目文件：操作列与改名/移动弹窗 */
.pm-file-ops{white-space:nowrap}
.pm-file-ops .mini{margin-right:4px}
.pm-file-edit .ent-form-row > div{flex:1;min-width:0}
.pm-file-edit .ent-form-row input[type=text]{width:420px;max-width:100%}
.pm-file-edit-path{font-size:12.5px;color:#5b6d70;padding-top:7px;word-break:break-all;line-height:1.6}
.pm-trash-rel{max-width:340px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#5b6d70}

/* s493 项目文件：目标文件夹选择、上传进度与重试 */
.pm-file-edit select{width:420px;max-width:100%;height:34px;border:1px solid #cfdedd;border-radius:4px;background:#fff;color:#29474d;padding:0 8px;font-size:13px}
.pm-upload-panel{margin:10px 0 6px;border:1px solid #dcebe9;border-radius:6px;background:#f8fcfb;padding:10px 12px}
.pm-upload-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;color:#29474d;font-size:12.5px}
.pm-upload-head span{color:#6f8689;font-size:12px}
.pm-upload-list{display:flex;flex-direction:column;gap:7px;max-height:190px;overflow:auto}
.pm-upload-item{display:grid;grid-template-columns:minmax(170px,1.4fr) minmax(120px,2fr) 150px 54px;align-items:center;gap:10px}
.pm-upload-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#29474d;font-size:12.5px}
.pm-upload-name em{font-style:normal;color:#8a9b9e;font-size:11.5px;margin-left:6px}
.pm-upload-bar{height:8px;border-radius:5px;background:#e3eeed;overflow:hidden}
.pm-upload-bar i{display:block;height:100%;width:0;background:#2d8f83;border-radius:5px;transition:width .18s ease}
.pm-upload-status{font-size:12px;color:#6f8689;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pm-upload-status.ok{color:#237b6f}
.pm-upload-status.bad,.pm-upload-status.failed{color:#b5523a}
.pm-upload-status.converting{color:#2563eb}
.pm-upload-retry{justify-self:end}
@media(max-width:900px){.pm-upload-item{grid-template-columns:minmax(150px,1.2fr) minmax(80px,1.5fr) 120px 50px;gap:7px}}
