/* ==========================================================================
   观大实业 · 固定资产管理系统
   视觉语言：账簿 / 文书（纸底、墨蓝、印章红、细线、衬线数字）
   ========================================================================== */

:root {
  /* 墨与纸 */
  --ink: #16222e;
  --ink-2: #2b3b4c;
  --navy: #101b26;
  --navy-2: #17293a;
  --paper: #f7f5f0;
  --paper-2: #fbf9f4;
  --card: #ffffff;
  --line: #e5e0d5;
  --line-2: #efebe2;

  /* 主色与强调 */
  --blue: #24506f;
  --blue-2: #2e6389;
  --blue-soft: #edf2f6;
  --red: #e60012;
  --red-deep: #b3000e;

  /* 语义色（取自印刷色谱） */
  --moss: #3f6b4a;
  --ochre: #9a6516;
  --plum: #6a4a6e;
  --slate: #56646f;
  --brick: #a03a2e;
  --warn: #a03a2e;

  --s1: var(--moss);
  --s2: var(--blue);
  --s3: var(--ochre);
  --s4: var(--plum);
  --s5: var(--slate);
  --s6: var(--brick);
  --s7: #93a0a9;

  --text: var(--ink);
  --muted: #6f7c89;

  --sans: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Hiragino Sans GB", system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --mono: Consolas, "SF Mono", "Courier New", monospace;

  --r: 8px;
  --shadow: 0 1px 2px rgba(22, 34, 46, .04);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(230, 0, 18, .14); }

/* 数字统一使用等宽数字，避免跳动 */
.num, .mono, .stat .value, .kpi-strip strong, .hero-stats strong, .legend .lg-val, .legend .lg-pct,
table.tbl .num, .money, .donut-center strong {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.app { display: flex; min-height: 100vh; }

/* ============================== 侧栏 ============================== */
.sidebar {
  width: 244px;
  flex: 0 0 244px;
  background: var(--navy);
  color: #c3d0dc;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid #0a141d;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 20px 18px;
  position: relative;
}
.brand::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--red) 0, var(--red) 38px, rgba(255, 255, 255, .09) 38px);
}
.brand-logo { width: 124px; height: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.45; gap: 3px; }
.brand-text strong {
  color: #f2f5f8;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 204px;
}
.brand-text span {
  font-size: 10px;
  color: #7d8fa0;
  letter-spacing: .14em;
}

.nav { padding: 14px 12px 12px; display: flex; flex-direction: column; gap: 1px; flex: 1; overflow: auto; }
.nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px 9px 12px;
  border-radius: 4px;
  color: #b9c7d4;
  text-decoration: none;
  font-size: 13px;
  position: relative;
  transition: background .14s, color .14s;
}
.nav a i {
  font-style: normal;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .72;
  color: currentColor;
}
.nav a i svg { width: 15px; height: 15px; display: block; }
.nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav a.active { background: rgba(255, 255, 255, .07); color: #fff; font-weight: 600; }
.nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--red);
  border-radius: 2px;
}
.nav a.active i { opacity: 1; }
.nav .dot {
  margin-left: auto;
  background: rgba(230, 0, 18, .9);
  color: #fff;
  border-radius: 9px;
  font-size: 10px;
  padding: 1px 6px;
  font-style: normal;
  line-height: 15px;
}
.nav .dot[hidden] { display: none; }

.nav-group {
  font-size: 9.5px;
  letter-spacing: .2em;
  color: #63788b;
  padding: 14px 12px 5px;
}

.sidebar-foot {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.mode-chip {
  display: inline-block;
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .07);
  color: #a9bac8;
  letter-spacing: .04em;
}
.sidebar-foot p { font-size: 10.5px; color: #63788b; line-height: 1.7; margin: 9px 0 0; }

/* ============================== 主区 ============================== */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 66px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 26px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.menu-btn { display: none; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--text); }
.page-head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.page-head .eyebrow {
  font-size: 9.5px;
  letter-spacing: .18em;
  color: #98a3ae;
  text-transform: uppercase;
}
.page-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .01em;
  line-height: 1.2;
}
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.bell { position: relative; cursor: pointer; font-size: 15px; line-height: 1; padding: 6px; border-radius: 4px; color: var(--ink-2); }
.bell:hover { background: var(--paper); }
.bell em {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--red);
  color: #fff;
  font-style: normal;
  font-size: 9.5px;
  border-radius: 9px;
  padding: 0 5px;
  line-height: 14px;
}
.identity { display: flex; align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
.identity label { font-size: 12px; color: var(--muted); }
.identity select {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 13px;
  background: #fff;
  color: var(--text);
  max-width: 230px;
}

.content { padding: 22px 26px 48px; width: 100%; max-width: 1560px; margin: 0 auto; }

/* 页面进入动效 */
.content > * { animation: rise .32s cubic-bezier(.22, .61, .36, 1) both; }
.content > *:nth-child(2) { animation-delay: .03s; }
.content > *:nth-child(3) { animation-delay: .06s; }
.content > *:nth-child(4) { animation-delay: .09s; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .content > * { animation: none; } }

/* ============================== 通用组件 ============================== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.card-head h3 {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: .01em;
}
.card-head h3::before {
  content: "";
  width: 12px;
  height: 2px;
  background: var(--red);
  opacity: .85;
  flex: 0 0 12px;
}
.card-head .sub { font-size: 11.5px; color: var(--muted); font-weight: 400; letter-spacing: .02em; }

.grid { display: grid; gap: 14px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.stat .label { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.stat .value {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  color: var(--ink);
  margin-top: 7px;
  line-height: 1.05;
  letter-spacing: -.01em;
}
.stat .value small { font-family: var(--sans); font-size: 11.5px; color: var(--muted); margin-left: 5px; }
.stat .foot { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.stat.accent { border-top: 2px solid var(--blue); }
.stat.warn { border-top: 2px solid var(--brick); }

/* 表格 */
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left;
  font-weight: 600;
  color: #7d8894;
  background: transparent;
  padding: 8px 10px;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: .09em;
}
table.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.tbl tbody tr { transition: background .12s; }
table.tbl tbody tr:hover td { background: #fbf8f2; }
table.tbl tr.clickable { cursor: pointer; }
table.tbl .num { text-align: right; }
.tbl tbody tr:hover { background: #fbf8f2; }
.tbl thead th { background: transparent; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: -.01em; }

/* 状态徽标：细边框 + 圆点 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  padding: 2px 8px 2px 7px;
  border-radius: 3px;
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: .02em;
  line-height: 17px;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.S0 { color: var(--slate); background: #f1f4f6; border-color: #e2e8ec; }
.badge.S1 { color: var(--moss); background: #eff5f0; border-color: #d9e6dc; }
.badge.S2 { color: var(--blue); background: #eef4f8; border-color: #d8e4ed; }
.badge.S3 { color: var(--ochre); background: #faf3e6; border-color: #eddfc4; }
.badge.S4 { color: var(--plum); background: #f5eff5; border-color: #e5d8e5; }
.badge.S5 { color: var(--slate); background: #f1f4f6; border-color: #e2e8ec; }
.badge.S6 { color: var(--brick); background: #faeeec; border-color: #efd6d1; }
.badge.S7 { color: #8b96a0; background: #f4f5f6; border-color: #e6e8ea; }
.badge.lock { color: var(--ochre); background: #faf3e6; border-color: #eddfc4; }
.badge.lock::before { border-radius: 1px; }
.badge.doc { color: var(--ink-2); background: #f3f5f7; border-color: #e2e7eb; }
.badge.ok { color: var(--moss); background: #eff5f0; border-color: #d9e6dc; }
.badge.ng { color: var(--brick); background: #faeeec; border-color: #efd6d1; }
.badge.wait { color: var(--ochre); background: #faf3e6; border-color: #eddfc4; }
.badge.warn { color: var(--ochre); background: #faf3e6; border-color: #eddfc4; }

/* 按钮 */
.btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  border-radius: 4px;
  padding: 7px 13px;
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: .01em;
  transition: border-color .14s, background .14s, color .14s;
  line-height: 1.5;
}
.btn:hover { border-color: #b9b1a1; color: var(--ink); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #0d1822; border-color: #0d1822; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--brick); border-color: #e7c9c3; background: #fff; }
.btn.danger:hover { background: #fbf1ef; border-color: #d9a99f; }
.btn.sm { padding: 4px 9px; font-size: 11.5px; border-radius: 3px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn[disabled]:hover { border-color: var(--line); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar input[type=text], .toolbar select, .field input, .field select, .field textarea {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .14s, box-shadow .14s;
}
.toolbar input[type=text]:focus, .field input:focus, .field select:focus, .field textarea:focus,
.toolbar select:focus {
  border-color: var(--blue-2);
  box-shadow: 0 0 0 3px rgba(36, 80, 111, .1);
}
.toolbar input[type=text] { width: 220px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.field label { font-size: 11.5px; color: var(--muted); letter-spacing: .03em; }
.field label b { color: var(--red); font-weight: 400; margin-left: 2px; }
.field textarea { resize: vertical; min-height: 62px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button {
  border: 0;
  background: none;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  margin-bottom: -1px;
  transition: color .14s;
}
.tabs button:hover { color: var(--ink); }
.tabs button.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

.pick-list { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
.pick-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
  transition: background .12s;
}
.pick-row:last-child { border-bottom: 0; }
.pick-row:hover { background: var(--paper-2); }
.pick-row input { accent-color: var(--ink); }
.pick-row .t { flex: 1; min-width: 0; }
.pick-row .t strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pick-row .t span { font-size: 11.5px; color: var(--muted); }
.pick-row .price { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pick-row .price .money { color: var(--ink-2); }

.empty { padding: 38px 12px; text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.9; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.75; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }

.kv { display: grid; grid-template-columns: 92px 1fr; gap: 9px 14px; font-size: 13px; }
.kv dt { color: var(--muted); font-size: 12px; padding-top: 1px; }
.kv dd { margin: 0; word-break: break-all; }

/* 状态分布条 */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 78px 1fr 48px; align-items: center; gap: 10px; font-size: 12px; }
.bar-label { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 6px; background: #f0ece4; border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 2px; }

/* 时间线 */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 17px 22px; border-left: 1px solid var(--line); margin-left: 5px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #b6c0c9;
  box-sizing: border-box;
}
.timeline li.done::before { background: var(--moss); border-color: var(--moss); }
.timeline li.ng::before { background: var(--brick); border-color: var(--brick); }
.timeline li.wait::before { background: var(--ochre); border-color: var(--ochre); }
.timeline .t { font-size: 13px; color: var(--ink); }
.timeline .m { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.65; }

/* 抽屉 */
.drawer-mask { position: fixed; inset: 0; background: rgba(14, 24, 34, .36); z-index: 60; display: flex; justify-content: flex-end; }
.drawer { width: min(580px, 96vw); background: #fff; height: 100%; display: flex; flex-direction: column; animation: slideIn .22s ease; }
@keyframes slideIn { from { transform: translateX(14px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-head h3 { margin: 0; font-size: 15px; color: var(--ink); font-weight: 600; letter-spacing: .01em; }
.drawer-body { padding: 20px; overflow: auto; flex: 1; }
.icon-btn { border: 0; background: none; font-size: 15px; cursor: pointer; color: var(--muted); padding: 4px; }
.icon-btn:hover { color: var(--ink); }

/* 提示 */
.toast-wrap { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 12.5px;
  max-width: 88vw;
  box-shadow: 0 8px 24px rgba(14, 24, 34, .22);
}
.toast.err { background: var(--brick); }
.toast.ok { background: #2f5540; }

/* ============================== 端口切换 / 员工端 ============================== */
.portal-switch { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.portal-switch button {
  border: 0;
  background: transparent;
  color: #5b6b7a;
  font-size: 11.5px;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background .14s, color .14s;
}
.portal-switch button.active { background: var(--ink); color: #fff; }
.portal-switch button[hidden] { display: none; }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.quick-4 { grid-template-columns: repeat(4, 1fr); }
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: border-color .14s, background .14s, transform .14s;
  font-family: inherit;
  min-height: 64px;
  justify-content: center;
}
.quick-item:hover { border-color: var(--ink-2); background: var(--paper-2); transform: translateY(-1px); }
.quick-item strong { font-size: 13px; color: var(--ink); font-weight: 600; letter-spacing: .02em; }
.quick-item span { font-size: 11px; color: var(--muted); }

.hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background:
    linear-gradient(112deg, #101b26 0%, #17293a 58%, #1e3547 100%);
  color: #fff;
  border-radius: var(--r);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: 0;
  width: 56px;
  height: 2px;
  background: var(--red);
}
.hero::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 0 0 40px rgba(255, 255, 255, .02);
  pointer-events: none;
}
.hero-main { position: relative; z-index: 1; }
.hero-name { font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 9px; letter-spacing: .02em; }
.hero-name .pill { background: rgba(255, 255, 255, .13); color: #fff; border-color: rgba(255, 255, 255, .18); }
.hero-sub { font-size: 11.5px; color: #a9bccb; margin-top: 7px; letter-spacing: .03em; }
.hero-stats { display: flex; gap: 34px; position: relative; z-index: 1; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.1; }
.hero-stats span { font-size: 10.5px; color: #a9bccb; margin-top: 4px; white-space: nowrap; letter-spacing: .05em; }

.pill {
  display: inline-block;
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 3px;
  background: #f2f4f6;
  color: #4d5c6b;
  border: 1px solid #e5e9ec;
  white-space: nowrap;
  letter-spacing: .02em;
}
.pill.danger { background: #faeeec; color: var(--brick); border-color: #efd6d1; }
.pill.warn { background: #faf3e6; color: var(--ochre); border-color: #eddfc4; }
.pill.ok { background: #eff5f0; color: var(--moss); border-color: #d9e6dc; }

.act-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.btn.ghost { background: #fff; }
.scan-box { display: flex; gap: 10px; }
.scan-box input {
  flex: 1;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background: var(--paper-2);
}
.scan-box input:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(36, 80, 111, .1); background: #fff; }
.scan-card { border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; background: var(--paper-2); }
.scan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }

.tabbar { display: none; }

/* ============================== 首页仪表盘 ============================== */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash-card { display: flex; flex-direction: column; }
.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.seg button {
  border: 0;
  background: transparent;
  font-size: 11px;
  color: #5b6b7a;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background .14s, color .14s;
}
.seg button.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(22, 34, 46, .1); }

.donut-wrap { position: relative; width: 134px; margin: 4px auto 12px; }
.donut { display: block; }
.empty-donut { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #f3f0e9; color: var(--muted); font-size: 12px; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.donut-center strong { font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--ink); line-height: 1.1; }
.donut-center span { font-size: 10px; color: var(--muted); margin-top: 2px; letter-spacing: .04em; }

.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.legend i { width: 8px; height: 8px; border-radius: 1px; flex: 0 0 8px; }
.lg-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.lg-pct { color: var(--muted); width: 52px; text-align: right; font-variant-numeric: tabular-nums; }
.lg-val { width: 72px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }

.monthly { width: 100%; height: 150px; display: block; }
.chart-foot { display: flex; gap: 24px; font-size: 11.5px; color: var(--muted); margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line); }
.chart-foot strong { color: var(--ink); font-family: var(--serif); font-size: 14px; font-weight: 400; }

.kpi-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 16px; }
.kpi-strip > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 94px;
  justify-content: center;
  position: relative;
}
.kpi-strip > div::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  width: 22px;
  height: 2px;
  background: var(--line);
}
.kpi-strip > div:hover::before { background: var(--red); }
.kpi-strip span { font-size: 10.5px; color: var(--muted); letter-spacing: .08em; }
.kpi-strip strong { font-family: var(--serif); font-size: 23px; font-weight: 400; color: var(--ink); line-height: 1.15; }
.kpi-strip em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.kpi-act { position: relative; }
.kpi-act .btn { margin-top: 6px; align-self: flex-start; }

/* ============================== 页签页 / 设置 ============================== */
.page-tabs { display: flex; gap: 2px; overflow-x: auto; padding: 0 0 2px; }
.page-tabs-card { padding: 6px 10px; }
.page-tabs button {
  border: 0;
  background: transparent;
  font-size: 12.5px;
  color: var(--muted);
  padding: 9px 13px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background .14s, color .14s;
}
.page-tabs button:hover { background: var(--paper); color: var(--ink); }
.page-tabs button.active { background: var(--ink); color: #fff; font-weight: 500; }

.org-layout { display: grid; grid-template-columns: 268px 1fr; gap: 16px; align-items: start; }
.org-panel { border: 1px solid var(--line); border-radius: 6px; padding: 10px 8px; max-height: 480px; overflow: auto; background: var(--paper-2); }
.org-tree { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.org-tree li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 6px; border-radius: 3px; }
.org-tree li:hover { background: #f2ede3; }
.org-tree li.lv1 { padding-left: 16px; }
.org-tree li.lv2 { padding-left: 30px; color: #43566d; }
.org-tree .ot-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-tree em { font-style: normal; color: var(--muted); font-size: 10.5px; }
.org-main { min-width: 0; }

.print-list { max-height: 440px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
.print-row {
  display: grid;
  grid-template-columns: 24px 150px 1fr 260px;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-2);
  font-size: 12.5px;
  cursor: pointer;
}
.print-row:last-child { border-bottom: 0; }
.print-row:hover { background: var(--paper-2); }

.pick-side { display: flex; align-items: center; gap: 10px; }
.inline-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }

.mini-input { width: 148px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; }
.mini-input:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(36, 80, 111, .1); }

.link { color: var(--blue); font-size: 11.5px; text-decoration: none; margin-left: 6px; font-weight: 400; border-bottom: 1px solid rgba(36, 80, 111, .3); }
.link:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ============================== 登录与账号 ============================== */
.login-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  background:
    radial-gradient(1200px 600px at 12% 8%, rgba(230, 0, 18, .10), transparent 60%),
    linear-gradient(122deg, #0b151e 0%, #101f2c 45%, #16293a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-mask::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(900px 520px at 30% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.login-shell {
  position: relative;
  display: grid;
  grid-template-columns: 380px 400px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(5, 12, 18, .45);
  max-width: 100%;
}
.login-aside {
  background: #101b26;
  color: #fff;
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.login-aside::after {
  content: "";
  position: absolute;
  left: 34px;
  bottom: 34px;
  width: 46px;
  height: 2px;
  background: var(--red);
}
.login-aside .la-logo { width: 138px; display: block; }
.login-aside h2 { font-size: 21px; line-height: 1.5; margin: 34px 0 10px; font-weight: 600; letter-spacing: .02em; }
.login-aside p { font-size: 12px; color: #94a8b8; line-height: 1.9; margin: 0; max-width: 260px; }
.login-aside .la-meta { font-size: 10.5px; color: #63788b; letter-spacing: .12em; margin-top: 28px; }
.login-card {
  width: 100%;
  background: #fff;
  padding: 40px 38px 30px;
  display: flex;
  flex-direction: column;
}
.login-card h1 { font-size: 17px; margin: 0 0 6px; color: var(--ink); font-weight: 600; letter-spacing: .02em; }
.login-sub { font-size: 11.5px; color: var(--muted); margin: 0 0 24px; line-height: 1.7; }
.login-btn { width: 100%; margin-top: 8px; padding: 11px; font-size: 13px; letter-spacing: .06em; }
.login-msg { font-size: 12px; color: var(--brick); min-height: 18px; margin-top: 10px; }
.login-card .field { margin-bottom: 14px; }
.login-card input { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 4px; font-family: inherit; font-size: 13.5px; background: var(--paper-2); }
.login-card input:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(22, 34, 46, .08); background: #fff; }
.login-foot { margin-top: auto; padding-top: 22px; font-size: 10.5px; color: #9aa5b0; letter-spacing: .04em; }
.login-brand { display: none; }
.login-logo { width: 132px; display: block; }

.me-chip { display: flex; flex-direction: column; line-height: 1.3; text-align: right; }
.me-chip strong { font-size: 12px; color: var(--ink); font-weight: 600; }
.me-chip span { font-size: 10px; color: var(--muted); }
.identity .btn.sm { padding: 4px 9px; font-size: 11px; }
body:not(.portal-staff) .identity { align-items: center; }

/* ============================== 资产库 ============================== */
.lib-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: #53616e;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11.5px;
  cursor: pointer;
  font-family: inherit;
  transition: all .14s;
}
.chip:hover { border-color: #c3bbab; color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }
.lib-search {
  flex: 1;
  min-width: 220px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  background: var(--paper-2);
}
.lib-search:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(36, 80, 111, .1); background: #fff; }
.link-btn { border: 0; background: none; color: var(--blue); font-size: 12px; cursor: pointer; font-family: inherit; padding: 4px 2px; }
.link-btn:hover { color: var(--ink); text-decoration: underline; }
.lib-actions { display: flex; gap: 8px; margin-left: auto; }
.lib-more { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 12px 0 14px; border-top: 1px dashed var(--line); margin-bottom: 10px; }
.lib-more select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; font-family: inherit; font-size: 12.5px; max-width: 220px; background: #fff; }
.tbl-wrap { overflow-x: auto; }
.lib-tbl { min-width: 1080px; }
.lib-tbl th { white-space: nowrap; }
.lib-tbl td { vertical-align: middle; }
.row-act { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.row-act a { color: var(--blue); font-size: 12px; text-decoration: none; }
.row-act a:hover { text-decoration: underline; color: var(--ink); }
.bulk-area {
  width: 100%;
  min-height: 180px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.8;
  resize: vertical;
  background: var(--paper-2);
}
.bulk-area:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(36, 80, 111, .1); background: #fff; }

/* ============================== 组织下拉与折叠树 ============================== */
.org-filter { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; flex-wrap: wrap; }
.org-filter label { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.org-filter select {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  min-width: 280px;
  max-width: 100%;
  font-family: inherit;
  font-size: 12.5px;
  background: #fff;
}
.org-tree ul { list-style: none; margin: 0; padding-left: 14px; }
.org-tree li { padding: 0; display: block; }
.org-tree details { margin: 0; }
.org-tree summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 3px;
  font-size: 12.5px;
}
.org-tree summary::-webkit-details-marker { display: none; }
.org-tree summary::before { content: "▸"; color: #98a3ae; margin-right: 5px; font-size: 9px; }
.org-tree details[open] > summary::before { content: "▾"; }
.org-tree summary:hover, .org-tree .ot-leaf:hover { background: #f2ede3; }
.org-tree .ot-leaf { display: flex; justify-content: space-between; gap: 8px; padding: 4px 6px 4px 20px; border-radius: 3px; font-size: 12.5px; }
.org-tree .ot-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-tree em { font-style: normal; color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.org-tree li.leaf { display: block; }

.imp-preview {
  margin: 12px 0 0;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 13px;
  min-height: 100px;
  max-height: 230px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  color: var(--ink-2);
}
.org-filter .lib-search { min-width: 180px; }

/* ============================== 体验优化 ============================== */
.depr-bar { height: 5px; border-radius: 2px; background: #f0ece4; overflow: hidden; margin: 7px 0 5px; }
.depr-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--blue-2)); }

.skeleton { padding: 18px; }
.sk-line {
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, #f0ece4 25%, #faf7f0 37%, #f0ece4 63%);
  background-size: 400% 100%;
  animation: sk 1.3s ease infinite;
  margin-bottom: 10px;
}
.sk-card {
  height: 92px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0ece4 25%, #faf7f0 37%, #f0ece4 63%);
  background-size: 400% 100%;
  animation: sk 1.3s ease infinite;
}
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.hero-link { color: #cbd9e4; font-size: 11.5px; text-decoration: none; margin-left: 6px; border-bottom: 1px solid rgba(203, 217, 228, .35); }
.hero-link:hover { color: #fff; border-bottom-color: #fff; }

.ot-edit { color: var(--blue); font-size: 10.5px; margin-left: 5px; text-decoration: none; opacity: .9; }
.ot-edit:hover { text-decoration: underline; }

.scan-panel { border: 1px dashed #d7d0c1; background: var(--paper-2); border-radius: 6px; padding: 14px 16px; margin-bottom: 16px; }
.scan-status { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.scan-queue { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; min-height: 24px; }
.q-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 11px;
  font-family: var(--mono);
}
.q-chip a { color: var(--brick); text-decoration: none; font-size: 12px; line-height: 1; }
.q-anom { font-style: normal; font-size: 10px; color: var(--ochre); background: #faf3e6; border-radius: 2px; padding: 0 4px; margin-left: 2px; }
.toolbar .btn + .btn { margin-left: 6px; }

/* 新版本提示条 */
.update-bar {
  position: fixed;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  padding: 9px 14px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(10, 20, 30, .3);
  max-width: calc(100vw - 24px);
}
.update-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.update-bar .btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.update-bar .btn:hover { background: rgba(255, 255, 255, .12); }

/* ============================== 帮助 / 操作手册 ============================== */
.help-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(112deg, #101b26, #1c3244);
  color: #fff;
  border-radius: var(--r);
  padding: 22px 24px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.help-hero::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: 0;
  width: 46px;
  height: 2px;
  background: var(--red);
}
.help-hero h2 { margin: 0 0 7px; font-size: 19px; font-weight: 600; letter-spacing: .03em; }
.help-hero p { margin: 0; font-size: 12px; opacity: .8; letter-spacing: .03em; }
.help-hero .btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .32); color: #fff; }
.help-hero .btn:hover { background: rgba(255, 255, 255, .2); }
.help-layout { display: grid; grid-template-columns: 214px minmax(0, 1fr); gap: 16px; align-items: start; }
.help-side { position: sticky; top: 84px; padding: 14px 12px; }
.help-side-t { font-size: 9.5px; color: var(--muted); letter-spacing: .18em; margin: 2px 8px 9px; }
.help-nav a { display: block; padding: 7px 9px; border-radius: 3px; font-size: 12.5px; color: #3e4d5c; text-decoration: none; border-left: 2px solid transparent; }
.help-nav a:hover { background: var(--paper-2); color: var(--ink); border-left-color: var(--red); }
.help-main { min-width: 0; }
.help-sec { margin-bottom: 14px; scroll-margin-top: 84px; }
.help-sec h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 15px; color: var(--ink); font-weight: 600; }
.help-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font-family: var(--serif);
  font-size: 12px;
}
.help-h4 { margin: 16px 0 6px; font-size: 12.5px; color: var(--ink); letter-spacing: .04em; }
.help-p { margin: 6px 0; font-size: 12.6px; line-height: 1.85; color: #3b4a59; }
.help-list { margin: 6px 0; padding-left: 18px; font-size: 12.6px; line-height: 1.9; color: #3b4a59; }
.help-steps { margin: 6px 0; padding-left: 20px; font-size: 12.6px; line-height: 1.9; color: #3b4a59; }
.help-steps li { margin: 3px 0; }
.help-note {
  margin: 12px 0;
  padding: 10px 13px;
  border-left: 2px solid var(--red);
  background: #fbf7f0;
  border-radius: 0 4px 4px 0;
  font-size: 12.2px;
  line-height: 1.8;
  color: #4a3a30;
}
.help-tbl th { white-space: nowrap; }
.help-faq { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 12.6px; color: var(--ink-2); }
.help-faq:last-child { border-bottom: 0; }
.help-faq > div { margin-top: 4px; color: var(--muted); font-size: 12.2px; line-height: 1.75; }

body.print-help { background: #fff; padding: 24px 28px; font-family: var(--sans); color: #222; }
body.print-help h1 { font-size: 20px; margin: 0 0 16px; }
body.print-help .help-hero, body.print-help .help-side, body.print-help .btn { display: none !important; }
body.print-help .help-layout { display: block; }
body.print-help .card { border: 0; box-shadow: none; padding: 0 0 14px; break-inside: avoid; }

/* ============================== 资产性质 / 制度提示 ============================== */
.nature {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 2px;
  border: 1px solid;
  letter-spacing: .04em;
  white-space: nowrap;
}
.nature.fa { color: var(--blue); border-color: #cfdde8; background: #f2f7fa; }
.nature.lv { color: var(--ochre); border-color: #eadcc0; background: #fbf5e9; }
.nature.ex { color: var(--slate); border-color: #dfe5ea; background: #f5f7f8; }

.policy-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--red);
  border-radius: 0 4px 4px 0;
  background: #fdfbf7;
  font-size: 12px;
  line-height: 1.75;
  color: #4e5a66;
  margin: 0 0 14px;
}
.policy-note b { color: var(--ink); font-weight: 600; }
.policy-note .pn-tag {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--red-deep);
  border: 1px solid #efc9c5;
  background: #fdf2f1;
  border-radius: 2px;
  padding: 1px 5px;
  margin-top: 1px;
}

/* ============================== 响应式 ============================== */
@media (max-width: 1180px) {
  .kpi-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: 1fr; }
  .grid.cols-2 { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .org-layout { grid-template-columns: 1fr; }
  .print-row { grid-template-columns: 24px 1fr; }
  .print-row span:nth-child(3), .print-row span:nth-child(4) { grid-column: 2; }
  .help-layout { grid-template-columns: 1fr; }
  .help-side { position: static; }
  .help-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .help-nav a { background: var(--paper-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .login-shell { grid-template-columns: 1fr; max-width: 420px; }
  .login-aside { display: none; }
  .login-card { padding: 32px 26px 24px; }
}

@media (max-width: 780px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform .2s ease;
    width: 244px;
    box-shadow: 0 0 40px rgba(0, 0, 0, .3);
  }
  .sidebar.open { transform: translateX(0); }
  .menu-btn { display: block; padding: 0 4px; }
  .topbar { padding: 0 12px; height: 58px; gap: 8px; }
  .page-head .eyebrow { display: none; }
  .page-title { font-size: 15.5px; }
  .content { padding: 14px 12px 40px; }
  .identity { gap: 6px; padding-left: 8px; }
  .identity label { display: none; }
  .identity select { max-width: 132px; }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat .value { font-size: 22px; }
  .toolbar input[type=text] { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  table.tbl { font-size: 12.5px; }
  .hide-sm { display: none; }
  .portal-switch { display: none; }
  .hero { padding: 18px 16px 20px; }
  .hero-name { font-size: 17px; }
  .hero-stats { gap: 8px; width: 100%; justify-content: space-between; margin-top: 14px; }
  .hero-stats div { flex: 1; }
  .hero-stats strong { font-size: 19px; }
  .hero-stats span { font-size: 10px; }
  .quick, .quick-4 { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 15px 14px; }
  .card-head { margin-bottom: 12px; }
  .dash-grid { gap: 12px; }
  .kpi-strip { gap: 8px; }
  .kpi-strip > div { padding: 10px 12px; min-height: 84px; }
  .kpi-strip strong { font-size: 19px; }
  .kpi-strip span { font-size: 10px; }
  .legend li { font-size: 11px; }
  .lg-pct { width: 46px; }
  .lg-val { width: 62px; }
  .page-tabs button { padding: 8px 11px; font-size: 12px; }
  .me-chip { display: none; }
  .identity .btn.sm { padding: 4px 7px; }
  .brand-logo { width: 104px; }
  .brand-text strong { font-size: 12px; max-width: 190px; }
  .lib-search { min-width: 100%; order: 3; }
  .lib-actions { margin-left: 0; width: 100%; }
  .lib-actions .btn { flex: 1; }
  .org-filter select { min-width: 100%; }
  .me-assets th:nth-child(3), .me-assets td:nth-child(3) { display: none; }
  body.portal-staff .content { padding-bottom: 82px; }
  body.portal-staff .tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--line);
    z-index: 30;
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
    backdrop-filter: blur(8px);
  }
  .tabbar a {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    font-size: 10px;
    color: #66727e;
    white-space: nowrap;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px 0;
    position: relative;
    letter-spacing: .02em;
  }
  .tabbar a span { font-size: 16px; line-height: 1; }
  .tabbar a.active { color: var(--ink); font-weight: 600; }
  .tabbar a.active span { color: var(--red); }
  body.portal-admin .content { padding-bottom: 78px; }
  body.portal-admin .tabbar-admin {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--line);
    z-index: 30;
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
    backdrop-filter: blur(8px);
  }
  body.portal-admin .tabbar-admin a { flex: 1 1 0; min-width: 0; font-size: 10px; padding: 4px 0; }
  body.portal-admin .tabbar-admin a span { font-size: 14px; }
  .update-bar { left: 12px; right: 12px; transform: none; justify-content: space-between; }
  .update-bar span { white-space: normal; }
  .login-card { padding: 28px 22px 22px; }
}

@media print {
  .sidebar, .topbar, .tabbar, .tabbar-admin, .update-bar, .toast-wrap { display: none !important; }
  .content { padding: 0; }
  .card { border: 0; box-shadow: none; }
}
/* ====================== 制度对齐新增组件（V31） ====================== */

/* 快捷入口：图标 + 文案两段式 */
.quick { grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); }
.quick-item {
  flex-direction: row;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  padding: 12px 13px;
}
.quick-item .qi {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: background .14s, color .14s, border-color .14s;
}
.quick-item .qi svg { width: 16px; height: 16px; }
.quick-item > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.quick-item:hover .qi { background: var(--ink); border-color: var(--ink); color: #fff; }
.quick-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* 组织统计：横向条形 */
.bar-list { display: flex; flex-direction: column; gap: 9px; margin: 2px 0 4px; }
.bar-row { display: flex; flex-direction: column; gap: 4px; }
.br-head { display: flex; align-items: baseline; gap: 8px; font-size: 11.5px; color: var(--ink-2); }
.br-head span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-head b { font-family: var(--serif); font-size: 13px; font-variant-numeric: tabular-nums; }
.br-head em { font-style: normal; font-size: 10.5px; color: var(--muted); width: 38px; text-align: right; }
.br-track { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.br-track i { display: block; height: 100%; border-radius: 3px; transition: width .5s cubic-bezier(.2, .8, .3, 1); }

/* 申购预估条 */
.est-band {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  background: var(--paper-2);
  border-radius: 4px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.est-band .eb-label { font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.est-band .eb-amount { font-family: var(--serif); font-size: 22px; margin-left: 8px; font-variant-numeric: tabular-nums; }
.est-band .eb-flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; color: var(--ink-2); }
.est-band .eb-flow span { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 2px 7px; }
.est-band .eb-flow i { color: var(--muted); font-style: normal; }

/* 赔偿测算 */
.calc-box { border: 1px dashed var(--line); border-radius: 4px; padding: 10px; font-size: 11.5px; color: var(--muted); background: var(--paper-2); }
.calc-row { display: grid; grid-template-columns: 1fr; gap: 1px; padding: 5px 0; border-bottom: 1px dotted var(--line-2); color: var(--ink-2); }
.calc-row b { font-family: var(--serif); color: var(--ink); }
.calc-total { margin-top: 7px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.calc-total b { font-family: var(--serif); font-size: 15px; }

/* 勾选行 */
.check-line { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; color: var(--ink-2); padding: 5px 0; cursor: pointer; }
.check-line input { margin-top: 2px; accent-color: var(--blue); }

/* 由申购单转入库 */
.from-doc {
  margin-bottom: 12px;
  padding: 9px 12px;
  background: #f3f7fb;
  border: 1px solid #d5e2ec;
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  font-size: 12px;
  color: var(--ink-2);
}
.from-doc .link { margin-left: 8px; }

/* 侧栏连接状态 */
.dot-live { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #4caf7d; margin-right: 6px; vertical-align: 1px; }
.dot-live.off { background: var(--ochre); }

/* 侧栏分组更清晰 */
.nav-group { margin-top: 14px; }
.nav-group[data-scope="admin"] { margin-top: 18px; }


/* 图例层级：名称弱、占比弱、数值强 */
.legend .lg-name { flex: 1; min-width: 0; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend .lg-pct { color: var(--muted); font-size: 10px; width: 40px; text-align: right; }
.legend .lg-val { font-family: var(--serif); font-size: 12px; color: var(--ink); width: 52px; text-align: right; }
.donut-center span { max-width: 82px; text-align: center; line-height: 1.2; }

/* 操作说明链接改为次级按钮样式 */
#opsHelp.buttonish, a.buttonish {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 4px; padding: 4px 9px; font-size: 11.5px; text-decoration: none;
}
a.buttonish:hover { border-color: var(--ink-2); background: var(--paper-2); }

.ops-help-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: -6px 0 12px; }

/* 资产性质构成条 */
.nature-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.ns-item { background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--ink); border-radius: 6px; padding: 12px 14px; }
.ns-item .nature { margin-bottom: 6px; }
.ns-item strong { font-family: var(--serif); font-size: 24px; font-weight: 400; font-variant-numeric: tabular-nums; }
.ns-item em { font-style: normal; font-size: 11.5px; color: var(--muted); margin-left: 6px; }
.ns-item p { margin: 6px 0 0; font-size: 11px; color: var(--muted); line-height: 1.5; }
@media (max-width: 1100px) { .nature-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .nature-strip { grid-template-columns: 1fr; } }

/* ====================== 移动端溢出修复（V31） ====================== */
.app, .main, .content { min-width: 0; }
.content { overflow-x: hidden; }

@media (max-width: 780px) {
  body { overflow-x: hidden; }
  .topbar { gap: 6px; padding: 0 10px; }
  .top-right { gap: 4px; flex-wrap: nowrap; }
  .top-right #btnRefresh, .top-right #btnPwd { display: none; }  /* 移动端收进「我的」页 */
  .top-right .identity { padding-left: 4px; gap: 4px; }
  .top-right .identity .btn.sm { padding: 4px 6px; font-size: 10.5px; }
  .page-title { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
  .bell { padding: 4px; font-size: 14px; }

  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: 0 0 auto; padding: 9px 11px; font-size: 12.5px; }

  .policy-note { align-items: flex-start; }
  .policy-note > div { min-width: 0; word-break: break-word; overflow-wrap: anywhere; }
  .ops-help-row { justify-content: space-between; flex-wrap: wrap; margin: -2px 0 10px; }
  .ops-help-row .hint { font-size: 10.5px; }

  .est-band { gap: 10px; }
  .est-band .eb-amount { font-size: 19px; }
  .est-band .eb-flow { font-size: 10.5px; }
  .est-band .eb-flow span { padding: 2px 5px; }

  .page-tabs { overflow-x: auto; scrollbar-width: none; }
  .page-tabs::-webkit-scrollbar { display: none; }

  .lib-toolbar { gap: 8px; }
  .chips { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; padding-bottom: 2px; }
  .chip { flex: 0 0 auto; }

  .legend .lg-val { width: 48px; }
  .legend .lg-pct { width: 38px; }

  .ns-item strong { font-size: 21px; }
  .card-head .seg { transform: scale(.95); transform-origin: right center; }
}

@media (max-width: 480px) {
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-item { gap: 8px; padding: 10px; min-height: 58px; }
  .quick-item .qi { flex-basis: 26px; width: 26px; height: 26px; }
  .quick-item strong { font-size: 12.5px; }
  .quick-item span { font-size: 10px; }
  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  /* 长文本制度说明在窄屏完整换行 */
  .policy-note { font-size: 11.5px; line-height: 1.7; padding: 9px 10px; }
  .policy-note > div { width: 100%; }
  /* 资产选择行：金额换行到下一行，避免被右边缘裁切 */
  .pick-row { flex-wrap: wrap; }
  .pick-row .t { flex: 1 1 100%; min-width: 0; }
  .pick-side { margin-left: 26px; }
  .pick-side .price { font-size: 11.5px; }
  .calc-row { grid-template-columns: 1fr; }
}

/* ====================== HOME TYPOGRAPHY / ALIGNMENT (V32) ====================== */
.home { font-size: 14px; }
.home .card-head { margin-bottom: 15px; }
.home .card-head h3 { font-size: 15.5px; gap: 10px; }
.home .card-head .sub { font-size: 12.5px; }
.home .seg button { font-size: 12px; padding: 4px 11px; }

.home .donut-center strong { font-size: 25px; }
.home .donut-center span { font-size: 11px; letter-spacing: .02em; }

.home .legend { gap: 10px; }
.home .legend li { font-size: 13px; gap: 9px; }
.home .legend i { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 2px; }
.home .lg-pct { width: 56px; font-size: 12px; }
.home .lg-val { width: 66px; font-size: 13px; }

.home .bar-list { gap: 13px; }
.home .br-head { font-size: 13px; gap: 10px; }
.home .br-head b { width: 52px; text-align: right; font-size: 14.5px; white-space: nowrap; }
.home .br-head em { width: 50px; font-size: 12px; }
.home .br-track { height: 7px; }

.home .chart-foot { font-size: 12.5px; gap: 28px; margin-top: 10px; padding-top: 11px; }
.home .chart-foot strong { font-size: 15.5px; }

.home .kpi-strip > div { min-height: 100px; padding: 14px 16px; gap: 5px; }
.home .kpi-strip span { font-size: 12px; letter-spacing: .04em; }
.home .kpi-strip strong { font-size: 26px; }
.home .kpi-strip em { font-size: 12px; }
.home .kpi-num { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; min-width: 0; }
.home .kpi-num strong { white-space: nowrap; line-height: 1.1; }
.home .kpi-act .btn { margin-top: 8px; }

.home .quick { gap: 12px; margin-top: 18px; }
.home .quick-item { gap: 12px; padding: 14px 15px; min-height: 70px; }
.home .quick-item .qi { flex-basis: 32px; width: 32px; height: 32px; }
.home .quick-item .qi svg { width: 17px; height: 17px; }
.home .quick-item strong { font-size: 14px; }
.home .quick-item span { font-size: 12px; }

.home table.tbl { font-size: 13.5px; }
.home table.tbl th { font-size: 12px; letter-spacing: .06em; padding: 9px 10px; }
.home table.tbl td { padding: 12px 10px; }
.home table.tbl .mono { font-size: 12.5px; }
.home .hint { font-size: 12.5px; }
.home .empty { font-size: 13px; }

@media (max-width: 780px) {
  .home .card-head h3 { font-size: 14.5px; }
  .home .card-head .sub { font-size: 11.5px; }
  .home .seg button { font-size: 11.5px; padding: 3px 9px; }
  .home .legend li { font-size: 12px; }
  .home .lg-pct { width: 48px; font-size: 11.5px; }
  .home .lg-val { width: 54px; font-size: 12px; }
  .home .br-head { font-size: 12px; }
  .home .br-head b { width: 44px; font-size: 13px; }
  .home .br-head em { width: 42px; font-size: 11px; }
  .home .kpi-strip > div { min-height: 88px; padding: 11px 12px; }
  .home .kpi-strip span { font-size: 11px; }
  .home .kpi-strip strong { font-size: 21px; }
  .home .kpi-strip em { font-size: 11px; }
  .home .quick-item { min-height: 62px; padding: 11px 12px; gap: 9px; }
  .home .quick-item .qi { flex-basis: 28px; width: 28px; height: 28px; }
  .home .quick-item strong { font-size: 13px; }
  .home .quick-item span { font-size: 11px; }
  .home .chart-foot { font-size: 11.5px; gap: 18px; }
  .home table.tbl { font-size: 12.5px; }
  .home table.tbl th { font-size: 11.5px; }
}

/* home bottom cards: pack to content instead of stretching to the taller one */
.home .grid.cols-2 { align-items: start; }
.home .empty { padding: 30px 12px; }

/* ==========================================================================
   V34 可读性与对齐微调（在既有视觉语言内做微调，不改变版式）
   ========================================================================== */

/* 数字统一等宽，表格/图例/指标纵向对齐更稳 */
table.tbl, .legend, .chart-foot, .kpi-strip, .stat, .kv, .timeline, .badge, .pill {
  font-variant-numeric: tabular-nums;
}
table.tbl th.num { text-align: right; }

/* 表格：表头与数字列对齐，行高略收紧以提升一屏信息量 */
table.tbl th { padding: 9px 10px; }
table.tbl td { padding: 10px; }
table.tbl tbody tr:last-child td { border-bottom: 0; }

/* 状态标签定宽，操作列视觉更整齐 */
.badge { display: inline-block; min-width: 46px; text-align: center; }

/* 增量图按 viewBox 比例铺满卡片，避免图表下方大片空白 */
.monthly { width: 100%; height: auto; }

@media (min-width: 900px) {
  table.tbl { font-size: 13.5px; }
  table.tbl th { font-size: 11.5px; letter-spacing: .07em; }
  .nav a { font-size: 13.5px; }
  .nav-group { font-size: 10px; }
  .card-head .sub { font-size: 12px; }
  .stat .label, .stat .foot, .stat .value small { font-size: 12px; }
  .btn { font-size: 13px; }
  .btn.sm { font-size: 12px; }
  .field label { font-size: 12px; }
  .field { margin-bottom: 14px; }
  .tabs button { font-size: 13.5px; padding: 10px 15px; }
  .tabs button.active { background: var(--blue-soft); border-radius: 4px 4px 0 0; }
  .legend li { font-size: 12px; }
  .kv { font-size: 13.5px; }
  .kv dt { font-size: 12.5px; }
  .hint { font-size: 12.5px; }
  .policy-note { font-size: 12.5px; line-height: 1.85; }
  .org-tree, .org-tree .ot-leaf, .org-tree summary { font-size: 13px; }
  .sidebar-foot p { font-size: 11px; }
  .top-right { gap: 14px; }
  .row-act { gap: 8px; }
  .drawer-head h3 { font-size: 16px; }
}

/* 表单输入统一高度与基线，避免同一行高低不齐 */
input[type="text"], input[type="number"], input[type="date"], input[type="password"], select, textarea {
  line-height: 1.45;
}
.toolbar { align-items: center; }
.toolbar > * { flex-shrink: 0; }

/* 键盘可达性：统一焦点环，替代默认 outline */
a:focus-visible, button:focus-visible, select:focus-visible,
input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid rgba(36, 80, 111, .45);
  outline-offset: 2px;
  border-radius: 3px;
}

/* 首页卡片在网格内不应继承「卡片间 16px 上间距」，否则同一行卡片顶部错位 */
.dash-grid > .card + .card { margin-top: 0; }

/* 组织统计三列定宽，数值与占比右对齐成一条竖线 */
.home .br-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px 54px;
  align-items: baseline;
  gap: 8px;
}
.home .br-head span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home .br-head b, .home .br-head em { width: auto; text-align: right; }

/* 状态标签统一宽度，操作列不再参差 */
.badge { min-width: 56px; }

/* 组织统计行铺满容器，保证三列在整行内对齐（父级为 flex 列时默认按内容收缩） */
.home .bar-row { align-items: stretch; }
.home .br-head { width: 100%; }

/* 表单控件按容器宽度收缩：长选项的 select 不再撑破移动端卡片 */
.field, .field-row, .grid > *, .card, .dash-card { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; max-width: 100%; }
.field textarea { min-height: 64px; }

/* 手机端：快捷入口说明、表单提示等最小字号提高到可读区间 */
@media (max-width: 780px) {
  .quick-item strong, .home .quick-item strong { font-size: 13.5px; }
  .quick-item span, .home .quick-item span { font-size: 11.5px; line-height: 1.45; }
  .me-chip span { font-size: 11px; }
  .hint { font-size: 12px; }
  .policy-note { font-size: 12px; line-height: 1.8; }
  .tabbar a { font-size: 10.5px; }
  .badge { min-width: 52px; }
}

/* 侧栏底部说明与图表页脚的可读性微调 */
.sidebar-foot p { font-size: 11.5px; color: #7f93a6; line-height: 1.75; }
.home .chart-foot { margin-top: 14px; }

/* 资产选择：搜索条 */
.pick-filter { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pick-filter input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; font-family: inherit; font-size: 13px; background: #fff; }
.pick-filter .hint { flex: 0 0 auto; white-space: nowrap; }

/* 首页卡片右上角的“全部/进入”链接 */
.card-link { margin-left: auto; font-size: 12px; color: var(--blue); text-decoration: none; white-space: nowrap; }
.card-link:hover { text-decoration: underline; color: var(--ink); }
@media (max-width: 780px) {
  .card-link { font-size: 12px; }
}

/* ===== 首页增强：看板工具条、年份选择、可点击图例、价值趋势 ===== */
.home-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.home-tools .hint { margin: 0; }
.mini-select { margin-left: auto; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px;
  font-family: inherit; font-size: 12px; color: var(--ink-2); background: #fff; }
.legend li.clickable, .bar-row.clickable { cursor: pointer; }
.legend li.clickable:hover { background: #fbf8f2; }
.bar-row.clickable:hover .br-head span { color: var(--blue); }
.legend-inline { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.legend-inline i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-left: 10px; }
.trend-card { margin-top: 16px; }
.remind-btn { margin-left: 6px; padding: 2px 8px; font-size: 11.5px; }
@media (max-width: 780px) {
  .home-tools { flex-wrap: wrap; }
  .legend-inline { font-size: 11.5px; }
}

/* ===== 标签模板设置：左右布局 + 实时预览 ===== */
.print-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.print-side { position: sticky; top: 14px; }
.print-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ps-group { margin-bottom: 16px; }
.ps-group > label { display: block; font-size: 12px; color: var(--muted); letter-spacing: .03em; margin-bottom: 6px; }
.ps-group .seg { width: 100%; }
.ps-group .seg button { flex: 1; }
.ps-group input[type="text"], .ps-group select { width: 100%; margin-top: 6px; padding: 7px 9px;
  border: 1px solid var(--line); border-radius: 4px; font-family: inherit; font-size: 12.5px; background: #fff; }
.ps-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.ps-fields .check-line { padding: 3px 0; font-size: 12.5px; }
.label-preview { display: flex; justify-content: center; padding: 20px; background: #fbf9f4;
  border: 1px dashed var(--line); border-radius: 8px; overflow: auto; }

/* 预览用标签（尺寸按比例，字号用 px） */
.label.preview { position: relative; box-sizing: border-box; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #b9c2c9; border-radius: 8px; padding: 12px; overflow: hidden; }
.label.preview .l-bar { position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: #b3261e; }
.label.preview.corp .l-bar { width: 5px; height: 100%; }
.label.preview .l-main { padding-top: 8px; padding-right: 74px; }
.label.preview .l-brandline { font-size: 9px; color: #b3261e; letter-spacing: .08em; margin: 4px 0 2px; }
.label.preview .l-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.label.preview .l-title strong { font-size: 14px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.label.preview .l-title .l-cat { font-size: 10px; color: #777; white-space: nowrap; }
.label.preview .l-code { font-family: Consolas, monospace; font-size: 15px; font-weight: 700; margin-top: 6px; letter-spacing: .04em; }
.label.preview .l-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; color: #666; line-height: 1.4; margin-top: 3px; }
.label.preview .l-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.label.preview .l-qr { position: absolute; right: 9px; bottom: 9px; width: 62px; height: 62px; padding: 3px;
  background: #fff; border: 1px solid #e2e6ea; border-radius: 4px; }
.label.preview .l-qr img { width: 100%; height: 100%; display: block; }
.label.preview .l-foot { position: absolute; left: 12px; bottom: 10px; font-size: 9px; color: #8a949c; }
.label.preview.compact .l-meta { display: none; }
.label.preview.compact .l-main { padding-top: 10px; }
@media (max-width: 980px) {
  .print-layout { grid-template-columns: 1fr; }
  .print-side { position: static; }
  .print-row { grid-template-columns: 24px 1fr; }
  .print-row .hint { display: none; }
}

/* 打印设置：窄屏时设置面板与下拉框不得撑破卡片 */
.print-layout > * { min-width: 0; }
.print-side { min-width: 0; }
.print-side select, .print-side input[type="text"] { max-width: 100%; }
@media (max-width: 980px) {
  .print-layout { grid-template-columns: minmax(0, 1fr); }
}

/* 工具栏下拉/输入在窄屏不撑破卡片 */
.toolbar { min-width: 0; }
.toolbar select, .toolbar input[type="text"] { max-width: 100%; min-width: 0; }
