/* ===== 基础 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
/* hidden 属性必须压过组件自身的 display（如 .field 的 flex），否则表单联动显隐失效 */
[hidden] { display: none !important; }
:root{
  --bg:#F4F6FB;
  --card:#FFFFFF;
  --ink:#0F172A;
  --ink2:#334155;
  --muted:#6B7A90;
  --line:#E6EAF2;
  --primary:#2563EB;
  --primary-2:#1D4ED8;
  --primary-soft:#EDF3FF;
  --sidebar:#0E1729;
  --sidebar-2:#151F35;
  --green:#0E9F6E;
  --green-soft:#E7F7F1;
  --amber:#D97706;
  --amber-soft:#FEF3E2;
  --red:#DC2626;
  --red-soft:#FEECEC;
  --violet:#7C3AED;
  --violet-soft:#F3EEFF;
  --radius:14px;
  --shadow:0 1px 2px rgba(16,24,40,.04), 0 8px 24px -12px rgba(16,24,40,.14);
  --shadow-lg:0 24px 60px -20px rgba(16,24,40,.28);
}
html,body{ height:100%; }
body{
  background:var(--bg); color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",Segoe UI,sans-serif;
  font-size:14px; line-height:1.6; -webkit-font-smoothing:antialiased;
}
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
input,select,textarea{ font-family:inherit; font-size:14px; color:var(--ink); }
::selection{ background:#C9DAFF; }

/* ===== 通用控件 ===== */
.btn{
  display:inline-flex; align-items:center; gap:6px; justify-content:center;
  height:38px; padding:0 16px; border-radius:10px; font-size:14px; font-weight:500;
  border:1px solid transparent; transition:.16s; white-space:nowrap;
}
.btn-primary{ background:var(--primary); color:#fff; box-shadow:0 6px 16px -8px rgba(37,99,235,.9); }
.btn-primary:hover{ background:var(--primary-2); }
.btn-ghost{ background:#fff; border-color:var(--line); color:var(--ink2); }
.btn-ghost:hover{ border-color:#C9D3E4; background:#FBFCFE; }
.btn-soft{ background:var(--primary-soft); color:var(--primary); }
.btn-soft:hover{ background:#E2EBFF; }
.btn-danger{ background:var(--red-soft); color:var(--red); }
.btn-sm{ height:30px; padding:0 11px; font-size:13px; border-radius:8px; }
.btn:disabled{ opacity:.5; cursor:not-allowed; }

.field{ display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.field label{ font-size:13px; color:var(--ink2); font-weight:500; }
.field label .req{ color:var(--red); }
.input, .select, .textarea{
  width:100%; height:40px; padding:0 12px; border:1px solid var(--line); border-radius:10px;
  background:#fff; outline:none; transition:.16s;
}
.textarea{ height:auto; min-height:88px; padding:10px 12px; resize:vertical; line-height:1.6; }
.input:focus,.select:focus,.textarea:focus{ border-color:var(--primary); box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.hint{ font-size:12px; color:var(--muted); }
/* 表单校验标红：只在点提交时命中字段才出现，切换/输入时自动消失 */
.field.has-err label{ color:var(--red); }
.field.has-err .input,
.field.has-err .select,
.field.has-err .textarea{ border-color:var(--red); background:var(--red-soft); }
.field.has-err .input:focus,
.field.has-err .select:focus,
.field.has-err .textarea:focus{ box-shadow:0 0 0 3px rgba(220,38,38,.12); }
.field.has-err .hint{ color:var(--red); }
/* 明细行等无 .field 包裹的输入框：直接在元素上标红 */
.input.has-err, .select.has-err, .textarea.has-err{ border-color:var(--red) !important; background:var(--red-soft) !important; }

.tag{ display:inline-flex; align-items:center; gap:4px; height:22px; padding:0 8px; border-radius:6px; font-size:12px; font-weight:500; }
.tag-blue{ background:var(--primary-soft); color:var(--primary); }
.tag-green{ background:var(--green-soft); color:var(--green); }
.tag-amber{ background:var(--amber-soft); color:var(--amber); }
.tag-red{ background:var(--red-soft); color:var(--red); }
.tag-violet{ background:var(--violet-soft); color:var(--violet); }
.tag-cyan{ background:#E0F2FE; color:#0369A1; }
.tag-gray{ background:#F1F4F9; color:var(--muted); }

/* 图标库选择器（总后台维护 + 新建自定义流程共用） */
.ib-pick{ display:flex; flex-direction:column; gap:10px; }
.ib-cur{ display:flex; align-items:center; gap:10px; }
.ib-cur .hint{ margin:0; }
.ib-grp b{ display:block; font-size:12px; color:var(--muted); margin-bottom:6px; font-weight:600; }
.ib-grp + .ib-grp{ border-top:1px dashed var(--line); padding-top:10px; }
.ib-grid{ display:flex; flex-wrap:wrap; gap:6px; }
.ib-grid .ic{ width:38px; height:38px; display:grid; place-items:center; font-size:19px; border:1px solid var(--line); border-radius:9px; background:#fff; cursor:pointer; transition:.15s; padding:0; }
.ib-grid .ic:hover{ border-color:#93C5FD; background:#F5F9FF; transform:translateY(-1px); }
.ib-grid .ic.on{ border-color:var(--primary); background:var(--primary-soft,#EAF1FF); box-shadow:0 0 0 2px rgba(37,99,235,.18); }
.ib-grid .ib-cell{ width:38px; height:38px; position:relative; display:grid; place-items:center; font-size:19px; border:1px solid var(--line); border-radius:9px; background:#fff; cursor:pointer; transition:.15s; }
.ib-grid .ib-cell i{ position:absolute; top:-5px; right:-5px; width:14px; height:14px; border-radius:50%; background:#DC2626; color:#fff; font-size:9px; font-style:normal; display:none; place-items:center; line-height:1; }
.ib-grid .ib-cell:hover{ border-color:#FCA5A5; background:#FFF5F5; }
.ib-grid .ib-cell:hover i{ display:grid; }
.ib-grid .ib-cell.ib-empty{ border-style:dashed; color:var(--muted); font-size:14px; cursor:default; background:#FAFBFE; }
.ib-grid .ib-cell.ib-empty:hover{ border-color:var(--line); background:#FAFBFE; }

.avatar{
  width:36px; height:36px; border-radius:10px; display:grid; place-items:center;
  color:#fff; font-size:13px; font-weight:600; flex:0 0 auto; letter-spacing:.5px;
}
.avatar.sm{ width:28px; height:28px; border-radius:8px; font-size:12px; }
.avatar.lg{ width:52px; height:52px; border-radius:14px; font-size:18px; }
.avatar img{ width:100%; height:100%; object-fit:cover; border-radius:inherit; display:block; }
.av-big{ width:76px; height:76px; border-radius:20px; font-size:26px; }

.card{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.card-hd{ display:flex; align-items:center; justify-content:space-between; padding:16px 18px; border-bottom:1px solid var(--line); }
.card-hd h3{ font-size:15px; font-weight:600; }
.card-bd{ padding:18px; }

.empty{ padding:48px 20px; text-align:center; color:var(--muted); }
.empty .ico{ font-size:28px; opacity:.5; margin-bottom:8px; }

/* ===== 登录页 ===== */
.auth-wrap{ min-height:100vh; display:grid; grid-template-columns:1.05fr .95fr; background:#fff; }
.auth-left{
  position:relative; overflow:hidden; padding:56px 56px 40px; color:#fff;
  background:radial-gradient(120% 120% at 0% 0%, #1E3A8A 0%, #0B1120 55%, #070B14 100%);
}
.auth-left::after{
  content:""; position:absolute; inset:auto -20% -35% -10%; height:520px;
  background:radial-gradient(closest-side, rgba(37,99,235,.45), transparent 70%);
}
.auth-brand{ display:flex; align-items:center; gap:10px; font-size:17px; font-weight:600; letter-spacing:.4px; }
.logo-mark{
  width:34px; height:34px; border-radius:10px; display:grid; place-items:center; font-weight:800; font-size:15px; overflow:hidden;
  background:linear-gradient(135deg,#3B82F6,#1D4ED8); box-shadow:0 8px 22px -8px rgba(59,130,246,.9);
}
.logo-mark img{ display:block; width:100%; height:100%; object-fit:cover; }
.auth-hero{ position:relative; z-index:2; margin-top:64px; max-width:520px; }
.auth-hero h1{ font-size:36px; line-height:1.28; font-weight:700; letter-spacing:-.5px; }
.auth-hero h1 span{ color:#7EA6FF; }
.auth-hero p{ margin-top:16px; color:#A9B7CE; font-size:15px; line-height:1.8; }
.auth-points{ margin-top:36px; display:grid; gap:16px; }
.auth-point{ display:flex; gap:12px; align-items:flex-start; }
.auth-point .dot{
  width:26px; height:26px; border-radius:8px; flex:0 0 auto; display:grid; place-items:center;
  background:rgba(126,166,255,.14); border:1px solid rgba(126,166,255,.28); font-size:13px;
}
.auth-point b{ display:block; font-size:14px; font-weight:600; }
.auth-point span{ font-size:13px; color:#93A4BF; }
.auth-foot{ position:absolute; left:56px; bottom:32px; font-size:12px; color:#5B6B85; z-index:2; }

.auth-right{ display:flex; align-items:center; justify-content:center; padding:40px 32px; background:#fff; }
.auth-card{ width:100%; max-width:400px; }
.auth-card > h2{ font-size:23px; font-weight:700; letter-spacing:-.3px; }
.auth-card > .sub{ color:var(--muted); font-size:13px; margin:6px 0 24px; }
.tabs{ display:flex; gap:4px; padding:4px; background:#F3F6FB; border-radius:10px; margin-bottom:22px; }
.tabs button{ flex:1; height:34px; border-radius:7px; font-size:13px; font-weight:500; color:var(--muted); transition:.16s; }
.tabs button.on{ background:#fff; color:var(--ink); box-shadow:0 1px 3px rgba(16,24,40,.1); }
.demo-list{ display:grid; gap:8px; max-height:330px; overflow:auto; padding-right:2px; }
.demo-item{
  display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--line);
  border-radius:11px; text-align:left; width:100%; transition:.16s; background:#fff;
}
.demo-item:hover{ border-color:#BFD3FF; background:#FAFCFF; transform:translateY(-1px); box-shadow:var(--shadow); }
.demo-item .who{ min-width:0; flex:1; }
.demo-item .who b{ display:block; font-size:13.5px; font-weight:600; }
.demo-item .who span{ font-size:12px; color:var(--muted); }
.auth-switch{ margin-top:18px; font-size:13px; color:var(--muted); text-align:center; }
.auth-switch a{ color:var(--primary); font-weight:500; }
.form-2col{ display:grid; grid-template-columns:1fr 1fr; gap:0 12px; }
.steps{ display:flex; gap:8px; margin-bottom:20px; }
.step{ flex:1; height:4px; border-radius:2px; background:#EAEEF6; }
.step.on{ background:var(--primary); }

/* ===== 应用框架 ===== */
.layout{ display:grid; grid-template-columns:236px 1fr; min-height:100vh; }
.sidebar{ background:var(--sidebar); color:#A9B7CE; display:flex; flex-direction:column; position:sticky; top:0; height:100vh; }
.sb-brand{ display:flex; align-items:center; gap:10px; padding:18px 18px 14px; color:#fff; }
.sb-brand .name{ font-size:14.5px; font-weight:600; line-height:1.2; }
.sb-brand .sub{ font-size:11px; color:#6B7C99; margin-top:2px; }
.sb-tenant{
  margin:6px 12px 12px; padding:10px 12px; border-radius:11px; background:var(--sidebar-2);
  border:1px solid rgba(255,255,255,.06); display:flex; align-items:center; gap:9px; cursor:pointer;
}
.sb-tenant:hover{ background:#1B2740; }
.sb-tenant .t-name{ font-size:13px; color:#E8EEF9; font-weight:600; }
.sb-tenant .t-plan{ font-size:11px; color:#7C8DA8; }
.sb-nav{ flex:1; overflow:auto; padding:4px 10px 18px; }
.sb-group{ font-size:11px; color:#5D6E8A; padding:14px 10px 6px; letter-spacing:.6px; }
.nav-item{
  display:flex; align-items:center; gap:10px; height:38px; padding:0 11px; border-radius:9px;
  color:#A9B7CE; font-size:13.5px; transition:.14s; position:relative; cursor:pointer;
}
.nav-item:hover{ background:rgba(255,255,255,.05); color:#E4EBF7; }
.nav-item.on{ background:rgba(37,99,235,.22); color:#fff; font-weight:500; }
.nav-item.on::before{ content:""; position:absolute; left:-10px; top:9px; bottom:9px; width:3px; border-radius:2px; background:#5B8CFF; }
.nav-item .ico{ width:17px; text-align:center; font-size:14px; opacity:.9; }
.nav-item .badge{ margin-left:auto; background:#2563EB; color:#fff; font-size:11px; height:18px; min-width:18px; padding:0 5px; border-radius:9px; display:grid; place-items:center; }
.sb-foot{ padding:12px; border-top:1px solid rgba(255,255,255,.06); }

.main{ min-width:0; display:flex; flex-direction:column; }
.topbar{
  height:62px; background:rgba(255,255,255,.86); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line); display:flex; align-items:center; gap:14px;
  padding:0 22px; position:sticky; top:0; z-index:30;
}
.crumb{ font-size:13px; color:var(--muted); }
.crumb b{ color:var(--ink); font-weight:600; font-size:15px; }
/* 当前登录企业标识（logo + 名称），点开可看企业详情 */
.tbar-id{ display:flex; align-items:center; gap:9px; padding:4px 7px 4px 4px; border-radius:10px; cursor:pointer; min-width:0; }
.tbar-id:hover{ background:#F1F4F9; }
.t-logo{ border-radius:8px; background:linear-gradient(135deg,#2563EB,#4F46E5); color:#fff; display:grid; place-items:center; font-weight:700; overflow:hidden; flex:none; box-shadow:0 1px 2px rgba(15,23,42,.12); }
.t-logo img{ width:100%; height:100%; object-fit:cover; display:block; }
.t-co{ font-size:13.5px; font-weight:600; color:var(--ink); max-width:170px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.t-div{ width:1px; height:16px; background:var(--line); flex:none; }
.topbar .grow{ flex:1; }
.icon-btn{ width:34px; height:34px; border-radius:9px; display:grid; place-items:center; color:var(--ink2); position:relative; }
.icon-btn:hover{ background:#F1F4F9; }
.icon-btn .dot{ position:absolute; top:7px; right:8px; width:6px; height:6px; border-radius:50%; background:var(--red); }
/* 顶栏功能图标：搜索 / 通知 / 待办审批，48px 大按钮，emoji 24px 更清楚好点 */
.topbar .icon-btn{ width:48px; height:48px; border-radius:13px; font-size:24px; line-height:1; }
.topbar .icon-btn:hover{ background:#EFF3F9; }
.topbar .icon-btn .dot{ top:11px; right:12px; width:8px; height:8px; }
.topbar .icon-btn .cnt{
  position:absolute; top:1px; right:1px; min-width:19px; height:19px; padding:0 5px;
  border-radius:10px; background:var(--red); color:#fff; font-size:11.5px; font-weight:700;
  line-height:19px; text-align:center; box-shadow:0 0 0 2px #fff; font-family:ui-sans-serif,system-ui;
}
/* 图标悬停提示：data-tip 秒出气泡，指向元素下方 */
.topbar .icon-btn[data-tip]{ position:relative; }
.topbar .icon-btn[data-tip]::after{
  content:attr(data-tip); position:absolute; top:calc(100% + 9px); right:-4px;
  padding:6px 10px; border-radius:8px; background:#1F2937; color:#fff;
  font-size:12px; font-weight:400; line-height:1.3; letter-spacing:.2px;
  white-space:nowrap; pointer-events:none; opacity:0; transform:translateY(-4px);
  transition:opacity .13s ease, transform .13s ease; z-index:60;
  box-shadow:0 4px 14px rgba(15,23,42,.16);
}
.topbar .icon-btn[data-tip]::before{
  content:''; position:absolute; top:calc(100% + 4px); right:14px;
  width:8px; height:8px; background:#1F2937; transform:rotate(45deg) scale(.9);
  border-radius:1px; opacity:0; transition:opacity .13s ease; pointer-events:none; z-index:61;
}
.topbar .icon-btn[data-tip]:hover::after,
.topbar .icon-btn[data-tip]:focus-visible::after{ opacity:1; transform:translateY(0); }
.topbar .icon-btn[data-tip]:hover::before,
.topbar .icon-btn[data-tip]:focus-visible::before{ opacity:1; }
.user-chip{ display:flex; align-items:center; gap:9px; padding:5px 10px 5px 5px; border-radius:11px; }
.user-chip:hover{ background:#F1F4F9; }
.user-chip .nm{ font-size:13px; font-weight:600; line-height:1.2; }
.user-chip .rl{ font-size:11px; color:var(--muted); }

.page{ padding:22px; max-width:1420px; width:100%; }
.page-hd{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:18px; }
.page-hd h2{ font-size:20px; font-weight:700; letter-spacing:-.2px; }
.page-hd p{ color:var(--muted); font-size:13px; margin-top:3px; }
.page-hd .actions{ display:flex; gap:9px; }

.grid{ display:grid; gap:16px; }
.g-4{ grid-template-columns:repeat(4,minmax(0,1fr)); }
.g-3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.g-2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.g-2-1{ grid-template-columns:1.7fr 1fr; }
@media (max-width:1180px){ .g-4{ grid-template-columns:repeat(2,1fr); } .g-3,.g-2-1{ grid-template-columns:1fr; } }

.stat{ padding:16px 18px; }
.stat .k{ font-size:12.5px; color:var(--muted); display:flex; align-items:center; justify-content:space-between; }
.stat .v{ font-size:28px; font-weight:700; letter-spacing:-.6px; margin-top:6px; line-height:1.2; }
.stat .d{ font-size:12px; margin-top:6px; color:var(--muted); }
.stat .d b{ font-weight:600; }
.up{ color:var(--green); } .down{ color:var(--red); }

.list{ display:flex; flex-direction:column; }
.list-row{ display:flex; align-items:center; gap:12px; padding:13px 18px; border-bottom:1px solid var(--line); }
.list-row:last-child{ border-bottom:none; }
.list-row:hover{ background:#FAFBFE; }
.list-row .grow{ flex:1; min-width:0; }
.list-row .t{ font-size:13.5px; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.list-row .s{ font-size:12px; color:var(--muted); margin-top:1px; }

.table{ width:100%; border-collapse:collapse; }
.table th{
  text-align:left; font-size:12px; font-weight:600; color:var(--muted);
  padding:11px 16px; background:#FAFBFE; border-bottom:1px solid var(--line); white-space:nowrap;
}
.table td{ padding:13px 16px; border-bottom:1px solid var(--line); font-size:13.5px; vertical-align:middle; }
.table tr:last-child td{ border-bottom:none; }
.table tbody tr:hover{ background:#FAFBFE; }
/* 花名册整行可点开档案：给手型，避免用户以为只有右侧小按钮能点 */
.table tbody tr.emp-row{ cursor:pointer; }
.table tbody tr.emp-row:hover{ background:#F5F9FF; }

.mini-tabs{ display:flex; gap:2px; border-bottom:1px solid var(--line); padding:0 18px; }
.mini-tabs button{ height:44px; padding:0 14px; font-size:13.5px; color:var(--muted); border-bottom:2px solid transparent; margin-bottom:-1px; }
.mini-tabs button.on{ color:var(--primary); border-color:var(--primary); font-weight:600; }

/* 分段切换器（如花名册「按部门 / 平铺」） */
.seg{ display:inline-flex; gap:2px; padding:2px; background:#F2F5FA; border-radius:9px; }
.seg button{ height:26px; padding:0 10px; border-radius:7px; font-size:12.5px; color:var(--muted); white-space:nowrap; }
.seg button.on{ background:#fff; color:var(--ink); font-weight:600; box-shadow:0 1px 3px rgba(16,24,40,.09); }

/* 花名册按部门分组：分组头（整行可点，点击折叠） */
.table tr.emp-grp{ cursor:pointer; }
.table tr.emp-grp td{ padding:9px 16px; background:#F7F9FC; border-bottom:1px solid var(--line); }
.table tr.emp-grp:hover td{ background:#EFF4FB; }
.emp-grp-cell{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; font-size:12.5px; }
.emp-grp-cell .chev{ display:inline-block; color:var(--muted); font-size:11px; transition:transform .15s ease; }
.table tr.emp-grp.fold .chev{ transform:rotate(-90deg); }
.emp-grp-cell .gn{ font-size:13px; font-weight:600; color:var(--ink); }
.emp-grp-cell .gc{ color:var(--muted); }
.emp-grp-cell .gprev{ display:inline-flex; flex-wrap:wrap; gap:4px; }

/* 审批流时间线 */
.flow{ display:flex; flex-direction:column; }
.flow-node{ display:flex; gap:12px; position:relative; padding-bottom:18px; }
.flow-node:last-child{ padding-bottom:0; }
.flow-node::before{
  content:""; position:absolute; left:13px; top:28px; bottom:0; width:2px; background:#E9EDF5;
}
.flow-node:last-child::before{ display:none; }
.flow-node .mk{
  width:28px; height:28px; border-radius:50%; display:grid; place-items:center; font-size:12px;
  background:#F1F4F9; color:var(--muted); flex:0 0 auto; z-index:1; border:2px solid #fff;
}
.flow-node.ok .mk{ background:var(--green-soft); color:var(--green); }
.flow-node.now .mk{ background:var(--primary); color:#fff; box-shadow:0 0 0 4px rgba(37,99,235,.15); }
.flow-node.no .mk{ background:var(--red-soft); color:var(--red); }
.flow-node .c b{ font-size:13.5px; font-weight:600; }
.flow-node .c .s{ font-size:12px; color:var(--muted); }
.flow-node .c .cm{ font-size:12.5px; color:var(--ink2); background:#F7F9FD; border-radius:8px; padding:6px 10px; margin-top:6px; }

/* 看板 */
.kanban{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; align-items:start; }
@media (max-width:1000px){ .kanban{ grid-template-columns:1fr; } }
.kcol{ background:#EEF2F9; border:1px solid var(--line); border-radius:12px; padding:12px; min-height:180px; }
.kcol-hd{ display:flex; align-items:center; justify-content:space-between; font-size:13px; font-weight:600; margin-bottom:10px; padding:0 4px; cursor:pointer; user-select:none; }
.kcol-hd .kcol-name{ display:flex; align-items:center; gap:8px; }
.kcol-hd .cnt{ font-size:12px; color:var(--muted); background:#fff; border-radius:20px; padding:1px 8px; }
.kcol-hd .kfold-ico{ font-size:11px; color:var(--muted); }
.kcol-desc{ font-size:11.5px; color:var(--muted); line-height:1.6; padding:0 4px; margin:-4px 0 10px; }
.kcol.kfold .kcol-desc{ margin-bottom:4px; opacity:.75; }
.kcol.kfold{ min-height:0; }
.kcol-more{ width:100%; margin-top:2px; font-size:12px; }
.kcard{ background:#fff; border:1px solid var(--line); border-radius:10px; padding:11px 12px; margin-bottom:9px; box-shadow:0 1px 2px rgba(16,24,40,.05); }
.kcard .kt{ font-size:13.5px; font-weight:500; line-height:1.45; }
.kcard .km{ display:flex; align-items:center; gap:8px; margin-top:9px; }
.kcard .km .due{ font-size:11.5px; color:var(--muted); margin-left:auto; }
.kcard .kact{ display:flex; gap:6px; margin-top:9px; }

/* 组织树 */
.tree{ font-size:13.5px; }
.tree-node{ padding:7px 0; }
.tree-row{ display:flex; align-items:center; gap:8px; padding:6px 8px; border-radius:8px; cursor:pointer; }
.tree-row:hover{ background:#F5F8FD; }
.tree-row.on{ background:var(--primary-soft); color:var(--primary); font-weight:600; }
.tree-children{ margin-left:16px; border-left:1px dashed #DEE5F0; padding-left:8px; }

/* 模态 */
.mask{
  position:fixed; inset:0; background:rgba(15,23,42,.42); backdrop-filter:blur(2px);
  display:flex; align-items:center; justify-content:center;
  z-index:600; padding:24px; animation:fade .16s;
  /* 内容高于视口时可整页滚动，顶部不会被裁掉 */
  overflow-y:auto; overscroll-behavior:contain;
  padding-top:max(24px, env(safe-area-inset-top));
  padding-bottom:max(24px, env(safe-area-inset-bottom));
}
.modal{
  background:#fff; border-radius:16px; width:100%; max-width:520px;
  max-height:calc(100vh - 48px); max-height:calc(100dvh - 48px);
  display:flex; flex-direction:column; box-shadow:var(--shadow-lg);
  animation:pop .18s; margin:auto; flex:0 0 auto;
}
.modal.wide{ max-width:760px; }
.modal-hd{ display:flex; align-items:center; justify-content:space-between; padding:18px 20px; border-bottom:1px solid var(--line); flex:0 0 auto; }
/* 弹窗下钻返回按钮：出现在标题栏最左侧，带一层「返回上一层」提示 */
.modal-hd .modal-back-btn{ flex:0 0 auto; margin-right:8px; font-size:16px; font-weight:600; color:var(--ink); }
.modal-hd .modal-back-btn:hover{ background:#E8EDF5; }
.modal-hd h3{ font-size:16px; font-weight:600; }
/* min-height:0 是关键：否则 flex 子项不会收缩，内容会把底部按钮顶出屏幕 */
.modal-bd{ padding:20px; overflow:auto; flex:1 1 auto; min-height:0; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; }
.modal-ft{ padding:14px 20px; border-top:1px solid var(--line); display:flex; justify-content:flex-end; gap:9px; flex:0 0 auto; background:#fff; border-radius:0 0 16px 16px; }
/* 表单型弹窗：form 包住 modal-bd + modal-ft，自身也要成为受约束的弹性列，
   否则长表单（如配置权限）会溢出 .modal 白色圆角容器、底部按钮被顶出视口 */
.modal > form{ display:flex; flex-direction:column; flex:1 1 auto; min-height:0; }
.modal > form > .modal-bd{ flex:1 1 auto; min-height:0; }
.modal > form > .modal-ft{ flex:0 0 auto; }
@keyframes fade{ from{opacity:0} to{opacity:1} }
@keyframes pop{ from{opacity:0; transform:translateY(8px) scale(.99)} to{opacity:1; transform:none} }

/* 审批凭证附件 */
.ap-files{ display:flex; flex-wrap:wrap; gap:9px; margin-top:10px; }
.ap-file{ position:relative; width:78px; height:78px; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#F5F7FB; display:flex; align-items:center; justify-content:center; }
.ap-file img{ width:100%; height:100%; object-fit:cover; display:block; }
.ap-file-x{ position:absolute; top:3px; right:3px; width:19px; height:19px; border:none; border-radius:50%; background:rgba(15,23,42,.62); color:#fff; font-size:10px; line-height:19px; padding:0; cursor:pointer; }
.ap-file-doc{ width:auto; max-width:100%; height:34px; padding:0 12px; font-size:12.5px; color:var(--ink2); gap:6px; }
.ap-file-doc i{ font-style:normal; color:var(--muted); font-size:11.5px; }

/* 审批中心 · 类别筛选 + 排序 */
.ap-bar{ display:flex; flex-direction:column; gap:9px; padding:12px 16px 10px; border-bottom:1px solid var(--line); background:linear-gradient(180deg,#FCFDFF,#F7FAFF); }
.ap-bar-row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.ap-bar-lbl{ flex:0 0 auto; font-size:12.5px; color:var(--muted); }
.ap-bar .chip-row{ flex:1 1 auto; min-width:0; }
.ap-bar .chip{ display:inline-flex; align-items:center; gap:6px; font:inherit; font-size:12.5px; line-height:1.25; cursor:pointer; transition:.15s; }
.ap-bar .chip:hover:not(:disabled){ border-color:#BFD3FF; }
.ap-bar .chip b{ min-width:18px; padding:1px 6px; border-radius:999px; background:#F1F5F9; color:var(--muted); font-size:11px; font-weight:600; text-align:center; font-variant-numeric:tabular-nums; }
.ap-bar .chip.on b{ background:#fff; color:var(--primary); }
.ap-bar .chip:disabled{ opacity:.42; cursor:not-allowed; }
.ap-bar-foot{ padding-top:9px; border-top:1px dashed var(--line); }
.ap-bar-sum{ font-size:12.5px; color:var(--muted); }
.ap-bar-sum b{ color:var(--ink); font-weight:600; font-variant-numeric:tabular-nums; }
.ap-sort{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:var(--muted); }
.ap-sort .select{ height:30px; width:auto; padding:0 8px; font-size:12.5px; }
@media (max-width:560px){
  .ap-bar{ padding:10px 12px; }
  .ap-bar-lbl{ width:100%; }
  .ap-sort{ width:100%; }
  .ap-sort .select{ flex:1 1 auto; }
}

/* 附件来源工具条：从文件管理选取 / 上传本机文件 */
.ap-src-bar{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.ap-up-input{ position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; clip:rect(0 0 0 0); pointer-events:none; }

/* 附件卡片（表单内与详情页共用） */
.ap-att{
  position:relative; display:flex; align-items:center; gap:9px;
  height:46px; padding:0 10px 0 8px; max-width:100%;
  border:1px solid var(--line); border-radius:10px; background:#fff;
  cursor:pointer; transition:border-color .14s, background .14s;
}
.ap-att:hover{ border-color:#C3D4F5; background:var(--primary-soft); }
.ap-att-ico{
  width:30px; height:30px; flex:0 0 auto; border-radius:8px; background:#F1F4FA;
  display:flex; align-items:center; justify-content:center; font-size:15px; overflow:hidden;
}
.ap-att-ico img{ width:100%; height:100%; object-fit:cover; display:block; }
.ap-att-info{ min-width:0; display:flex; flex-direction:column; gap:1px; }
.ap-att-info b{ font-size:12.5px; font-weight:500; color:var(--ink); max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ap-att-info span{ font-size:11px; color:var(--muted); white-space:nowrap; }
.ap-att .ap-att-info{ padding-right:14px; }
.ap-att-x{
  position:absolute; top:50%; right:6px; transform:translateY(-50%);
  width:18px; height:18px; border:none; border-radius:50%; background:#E8EDF6; color:#64748B;
  font-size:10px; line-height:18px; padding:0; cursor:pointer;
}
.ap-att-x:hover{ background:var(--red); color:#fff; }

/* 审批附件浮层：层级高于 .mask(600)，低于 toast(9999) */
.ap-layer{
  position:fixed; inset:0; z-index:820; background:rgba(15,23,42,.46);
  -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px);
  display:flex; align-items:center; justify-content:center; padding:24px;
  overflow-y:auto; overscroll-behavior:contain; animation:fade .16s;
}
.ap-layer-box{
  background:#fff; border-radius:16px; width:100%; max-width:560px;
  max-height:calc(100dvh - 48px); display:flex; flex-direction:column;
  box-shadow:var(--shadow-lg); animation:pop .18s; overflow:hidden; margin:auto;
}
.ap-pick{ max-width:640px; }
.ap-pick-hd{ display:flex; align-items:center; justify-content:space-between; padding:16px 18px; border-bottom:1px solid var(--line); flex:0 0 auto; }
.ap-pick-hd h3{ font-size:15px; font-weight:600; }
.ap-pick-tools{ display:flex; gap:8px; padding:12px 16px 6px; flex:0 0 auto; }
.ap-pick-tools .input{ flex:1 1 auto; min-width:0; }
.ap-pick-tools .select{ width:148px; flex:0 0 auto; }
.ap-pick-list{ flex:1 1 auto; min-height:0; overflow:auto; padding:2px 10px 10px; }
.ap-pick-row{ display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:10px; cursor:pointer; }
.ap-pick-row:hover{ background:#F5F8FD; }
.ap-pick-row.on{ background:var(--primary-soft); }
.ap-pick-row.dis{ opacity:.55; cursor:not-allowed; }
.ap-pick-row input{ flex:0 0 auto; width:15px; height:15px; accent-color:var(--primary); }
.ap-pick-ico{ width:28px; height:28px; flex:0 0 auto; display:flex; align-items:center; justify-content:center; background:#F1F4FA; border-radius:7px; font-size:15px; }
.ap-pick-main{ min-width:0; flex:1 1 auto; display:flex; flex-direction:column; gap:2px; }
.ap-pick-main b{ font-size:12.8px; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ap-pick-main span{ font-size:11.5px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ap-pick-ft{ display:flex; align-items:center; gap:9px; padding:12px 16px; border-top:1px solid var(--line); flex:0 0 auto; background:#fff; }
.ap-pick-empty{ padding:28px 0; text-align:center; color:var(--muted); font-size:13px; }
.ap-peek{ max-width:840px; }
.ap-peek-hd{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:14px 18px; border-bottom:1px solid var(--line); flex:0 0 auto; }
.ap-peek-hd h3{ font-size:14.5px; font-weight:600; word-break:break-all; line-height:1.5; }
.ap-peek-hd p{ font-size:11.5px; color:var(--muted); margin-top:3px; }
.ap-peek-bd{ flex:1 1 auto; min-height:0; overflow:auto; display:flex; flex-direction:column; padding:0; }
.ap-peek-bd > *{ flex:0 0 auto; }
.ap-peek-bd .fp-empty{ padding:34px 20px; }
.ap-peek-bd .fp-loading{ padding:34px 0; text-align:center; color:var(--muted); font-size:13px; }
.ap-peek-bd .fp-img{ max-width:100%; height:auto; display:block; margin:0 auto; }
.ap-peek-bd .fp-frame{ width:100%; height:66vh; border:0; display:block; }
.ap-peek-bd .oa-img-stage{ max-height:64vh; }
@media (max-width:760px){
  .ap-layer{ padding:12px; }
  .ap-layer-box{ max-height:calc(100dvh - 24px); }
  .ap-pick-tools{ flex-wrap:wrap; }
  .ap-pick-tools .select{ width:100%; }
  .ap-peek-bd .fp-frame{ height:58vh; }
  .ap-att-info b{ max-width:150px; }
}

/* 提示：层级必须高于模态、搜索层、移动端登录层与底部导航 */
.toast-wrap{ position:fixed; top:18px; top:max(18px, env(safe-area-inset-top)); left:50%; transform:translateX(-50%); z-index:9999; display:flex; flex-direction:column; gap:8px; align-items:center; max-width:calc(100vw - 32px); pointer-events:none; }.toast{
  background:#0F172A; color:#fff; font-size:13px; padding:10px 16px; border-radius:10px;
  box-shadow:var(--shadow-lg); animation:pop .18s; display:flex; align-items:center; gap:8px;
}
.toast.ok{ background:#0E9F6E; }
.toast.err{ background:#DC2626; }

/* 进度条 */
.bar{ height:6px; border-radius:3px; background:#EDF1F7; overflow:hidden; }
.bar > i{ display:block; height:100%; border-radius:3px; background:var(--primary); }
.bars{ display:flex; align-items:flex-end; gap:10px; height:120px; padding-top:10px; }
.bars .b{ flex:1; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:6px; height:100%; }
.bars .b i{ width:100%; max-width:34px; border-radius:6px 6px 0 0; background:linear-gradient(180deg,#5B8CFF,#2563EB); transition:.3s; }
.bars .b span{ font-size:11px; color:var(--muted); }

.switch{ width:38px; height:22px; border-radius:11px; background:#DDE3EE; position:relative; transition:.18s; flex:0 0 auto; }
.switch.on{ background:var(--primary); }
.switch::after{ content:""; position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:#fff; transition:.18s; box-shadow:0 1px 3px rgba(0,0,0,.2); }
.switch.on::after{ left:19px; }

.chip-row{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{ padding:6px 12px; border-radius:20px; border:1px solid var(--line); font-size:12.5px; color:var(--ink2); background:#fff; }
.chip.on{ background:var(--primary-soft); border-color:#BFD3FF; color:var(--primary); font-weight:500; }

.dl{ display:grid; grid-template-columns:96px 1fr; gap:10px 14px; font-size:13.5px; }
.dl dt{ color:var(--muted); }
.dl dd{ color:var(--ink); }

.perm-grid{ display:grid; grid-template-columns:1fr 1fr; gap:8px 16px; }
.perm-item{ display:flex; align-items:center; gap:9px; padding:8px 10px; border:1px solid var(--line); border-radius:9px; font-size:13px; cursor:pointer; }
.perm-item input{ width:15px; height:15px; accent-color:var(--primary); }

.section-title{ font-size:13px; font-weight:600; color:var(--ink); margin:20px 0 10px; }
.section-title:first-child{ margin-top:0; }

/* ---- 即时消息：会话列表可折叠 ---- */
.chat-grid{ display:grid; grid-template-columns:250px 1fr; gap:14px; align-items:stretch; }
.chat-grid.folded{ grid-template-columns:64px 1fr; }
.chat-list-card{ padding:8px; max-height:70vh; overflow:auto; }
.chat-list-card.is-folded{ padding:6px 4px; overflow-x:hidden; }
.chat-list-card.is-folded .chat-list-hd{ justify-content:center; padding-bottom:4px; }
.chat-list-hd{ display:flex; align-items:center; justify-content:space-between; gap:6px; padding:2px 6px 6px; font-size:12px; font-weight:600; color:var(--muted); }
.chat-fold-btn{ border:0; background:transparent; color:var(--muted); cursor:pointer; font-size:12px; line-height:1; padding:4px 7px; border-radius:6px; }
.chat-fold-btn:hover{ background:var(--bg-soft,#F1F5F9); color:var(--ink); }
.chat-search-wrap{ padding:0 6px 6px; }
.chat-search{ width:100%; font-size:12px; padding:7px 10px; background:var(--bg-soft,#F1F5F9); border-color:transparent; }
.chat-search:focus{ background:#fff; }
#chat-peer-rows.mini-mode{ display:flex; flex-direction:column; align-items:center; gap:8px; padding:4px 0; }
.chat-mini{ position:relative; cursor:pointer; border-radius:10px; padding:3px; display:flex; }
.chat-mini:hover{ background:var(--bg-soft,#F1F5F9); }
.chat-mini.on{ background:var(--primary-soft); }
.chat-mini-badge{ position:absolute; top:-4px; right:-4px; min-width:16px; height:16px; padding:0 4px; border-radius:9px;
  background:var(--red); color:#fff; font-size:10px; font-style:normal; font-weight:600; line-height:16px; text-align:center; }
.chat-thread-hd{ padding:12px 16px; border-bottom:1px solid var(--line); display:flex; gap:8px; align-items:center; }
.chat-thread-hd b{ font-size:13.5px; }

/* ---- 群聊：会话分区 / 群头像 / 气泡 / 建群与群设置 ---- */
.grp-av{ color:#fff; font-size:15px; display:flex; align-items:center; justify-content:center; }
.grp-av.sm{ width:32px; height:32px; font-size:14px; }
.grp-av.lg{ width:48px; height:48px; font-size:20px; }
.chat-sec{ display:flex; align-items:center; justify-content:space-between; gap:6px; padding:10px 8px 4px; font-size:11.5px; color:var(--muted); font-weight:600; letter-spacing:.3px; }
.chat-sec b{ color:var(--ink); font-weight:600; margin-left:2px; }
.chat-sec:first-child{ padding-top:2px; }
.chat-sec-btn{ border:0; background:transparent; color:var(--primary); cursor:pointer; font-size:11.5px; font-weight:600; padding:3px 6px; border-radius:6px; }
.chat-sec-btn:hover{ background:var(--primary-soft); }
.chat-sec-empty{ padding:6px 10px 10px; font-size:11.5px; color:var(--muted); line-height:1.6; }
.chat-ellipsis{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chat-tag{ margin-left:4px; font-size:10px; padding:0 5px; line-height:15px; vertical-align:1px; }
.chat-list-tip{ padding:4px 10px 8px; font-size:11.5px; line-height:1.6; }
.chat-grp-row .t{ display:flex; align-items:center; gap:2px; }

.chat-thread-body{ flex:1; overflow:auto; padding:14px 16px; display:flex; flex-direction:column; gap:10px; }
.chat-input-row{ display:flex; gap:8px; padding:10px 12px; border-top:1px solid var(--line); }
.chat-hd-title{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.chat-hd-sub{ font-size:11.5px; color:var(--muted); font-weight:400; }
.chat-hd-title .tag{ font-size:10px; padding:0 5px; line-height:16px; }
.chat-stack{ display:flex; align-items:center; margin-right:4px; }
.chat-stack .avatar{ margin-left:-7px; border:2px solid #fff; }
.chat-stack .avatar:first-child{ margin-left:0; }
.chat-stack-more{ font-size:11px; color:var(--muted); margin-left:4px; }
.chat-notice{ font-size:12px; color:#92400E; background:#FEF3C7; border:1px solid #FDE68A; border-radius:9px; padding:8px 10px; line-height:1.6; }

.chat-day{ text-align:center; margin:6px 0 2px; }
.chat-day span{ display:inline-block; font-size:11px; color:var(--muted); background:rgba(148,163,184,.13); padding:2px 10px; border-radius:10px; }
.chat-sys{ text-align:center; font-size:11.5px; color:var(--muted); line-height:1.6; }
.chat-sys span{ opacity:.7; margin-left:4px; }
.chat-msg{ display:flex; gap:8px; align-items:flex-start; }
.chat-msg.mine{ flex-direction:row-reverse; }
.chat-msg-main{ max-width:70%; display:flex; flex-direction:column; }
.chat-msg.mine .chat-msg-main{ align-items:flex-end; }
.chat-who{ font-size:11px; color:var(--muted); margin:0 0 3px 2px; }
.chat-bubble{ background:var(--bg-soft,#F1F5F9); padding:8px 12px; border-radius:12px; font-size:13.5px; line-height:1.65; white-space:pre-wrap; word-break:break-word; }
.chat-msg.mine .chat-bubble{ background:var(--primary); color:#fff; }
.chat-at-time{ font-size:10.5px; color:var(--muted); margin-top:3px; }
.chat-at{ color:var(--primary); font-weight:600; }
.chat-msg.mine .chat-at{ color:#DBEAFE; }

/* 建群 / 群设置 */
.grp-kind{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.grp-kind-opt{ position:relative; border:1.5px solid var(--line); border-radius:12px; padding:12px 12px 12px 40px; cursor:pointer; display:block; transition:.15s; }
.grp-kind-opt:hover{ border-color:#CBD5E1; }
.grp-kind-opt.on{ border-color:var(--primary); background:var(--primary-soft); }
.grp-kind-opt input{ position:absolute; left:14px; top:14px; accent-color:var(--primary); }
.grp-kind-opt b{ display:block; font-size:13px; margin-bottom:2px; }
.grp-kind-opt > span:last-child{ font-size:11.5px; color:var(--muted); line-height:1.5; }
.grp-kind-ico{ font-size:15px; margin-right:4px; }
.grp-chk{ display:flex; align-items:center; gap:7px; font-size:12.5px; color:var(--ink); margin:-4px 0 12px; cursor:pointer; }
.grp-chk input{ accent-color:var(--primary); }
.grp-pick{ border:1px solid var(--line); border-radius:12px; max-height:230px; overflow:auto; margin-top:8px; padding:6px; background:#fff; }
.grp-pick-sm{ max-height:180px; }
.grp-pick.grp-dim{ opacity:.75; }
.grp-pick-dept{ font-size:11px; color:var(--muted); font-weight:600; padding:7px 8px 3px; display:flex; justify-content:space-between; }
.grp-pick-row{ display:flex; align-items:center; gap:8px; padding:6px 8px; border-radius:9px; cursor:pointer; }
.grp-pick-row:hover{ background:var(--bg-soft,#F1F5F9); }
.grp-pick-row input{ accent-color:var(--primary); }
.grp-pick-main{ display:flex; flex-direction:column; min-width:0; }
.grp-pick-main b{ font-size:12.5px; font-weight:600; }
.grp-pick-main span{ font-size:11px; color:var(--muted); }
.grp-sum{ display:flex; gap:12px; align-items:center; padding:12px 14px; background:var(--bg-soft,#F8FAFC); border-radius:12px; margin-bottom:14px; }
.grp-mem{ border:1px solid var(--line); border-radius:12px; max-height:200px; overflow:auto; padding:4px; }
.grp-mem-row{ display:flex; align-items:center; gap:8px; padding:6px 8px; border-radius:8px; }
.grp-mem-row:hover{ background:var(--bg-soft,#F8FAFC); }
.grp-mem-row .t{ font-size:12.5px; font-weight:600; display:flex; align-items:center; gap:4px; }
.grp-mem-row .s{ font-size:11px; color:var(--muted); }
.grp-mem-del{ opacity:0; transition:.15s; }
.grp-mem-row:hover .grp-mem-del{ opacity:1; }
@media (max-width:760px){
  .grp-kind{ grid-template-columns:1fr; }
  .grp-mem-del{ opacity:1; }
  .chat-msg-main{ max-width:82%; }
}

/* ---- 事项跟踪：循环事项 ---- */
.trk-ico{ font-size:11px; margin-right:3px; }
.trk-cyc-box{ margin-top:14px; border:1px solid var(--line); border-radius:12px; padding:12px 14px; background:var(--violet-soft); }
.trk-cyc-hd{ font-size:12.5px; font-weight:600; color:var(--violet); margin-bottom:10px; }
.trk-cyc-main{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px 12px; font-size:12.5px; }
.trk-cyc-main span{ display:block; color:var(--muted); font-size:11.5px; margin-bottom:2px; }
.trk-cyc-main b{ font-weight:600; }
.trk-cyc-next{ margin-top:10px; font-size:12px; color:var(--muted); display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.trk-dot{ background:#fff; border:1px solid var(--line); border-radius:20px; padding:1px 8px; font-size:11.5px; color:var(--ink2); }
.trk-cyc-hist{ margin-top:10px; padding-top:8px; border-top:1px dashed #DDD3F5; font-size:11.5px; color:var(--muted); display:grid; gap:3px; }
.trk-task-link{ margin-top:12px; display:flex; gap:12px; align-items:center; justify-content:space-between;
  border:1px solid var(--line); border-radius:12px; padding:10px 14px; font-size:12.5px; }
.trk-task-link.warn{ background:var(--amber-soft); border-color:#F6E0BB; }
.trk-task-sub{ color:var(--muted); font-size:11.5px; margin-top:3px; line-height:1.5; }
.trk-repeat-box{ border:1px solid var(--line); border-radius:12px; padding:12px 14px; margin:14px 0; background:#FAFBFE; }
.trk-repeat-hd{ font-size:12.5px; font-weight:600; margin-bottom:10px; }
.trk-repeat-hd span{ font-weight:400; color:var(--muted); font-size:11.5px; margin-left:6px; }
.trk-tip{ background:var(--primary-soft); border-radius:10px; padding:9px 12px; font-size:12px; color:var(--ink2); line-height:1.6; margin:10px 0; }

/* ---------- 修改密码：强度条 ---------- */
.pwd-meter{ display:flex; gap:4px; margin-top:8px; }
.pwd-meter i{ flex:1; height:5px; border-radius:3px; background:#E7ECF4; transition:.18s; }
.pwd-meter.lv1 i.on{ background:#EF4444; }
.pwd-meter.lv2 i.on{ background:#F59E0B; }
.pwd-meter.lv3 i.on{ background:#3B82F6; }
.pwd-meter.lv4 i.on{ background:#16A34A; }
#pwd-strength{ margin-top:5px; font-size:11.5px; }

@media (max-width:820px){
  .auth-wrap{ grid-template-columns:1fr; }
  .auth-left{ display:none; }
  .layout{ grid-template-columns:1fr; }
  .sidebar{ position:fixed; z-index:50; width:236px; transform:translateX(-100%); transition:.2s; }
  .sidebar.open{ transform:none; }
  .form-2col{ grid-template-columns:1fr; }
  .g-4,.g-2{ grid-template-columns:1fr; }
}
