﻿/* ==========================================================================
   云简 · 设计系统
   企业轻管理平台  |  Desktop-first + Mobile responsive
   ========================================================================== */

:root {
  /* 品牌 */
  --brand: #2b59ff;
  --brand-deep: #1b3bc0;
  --brand-soft: #eef2ff;
  --brand-line: #d9e1ff;

  --ok: #0aa981;
  --ok-soft: #e8f8f2;
  --warn: #e2952a;
  --warn-soft: #fdf3e4;
  --danger: #e5484d;
  --danger-soft: #fdeeee;
  --info: #1a86be;
  --info-soft: #e9f4fb;
  --purple: #7558f5;
  --purple-soft: #f0edfe;

  /* 中性 */
  --ink: #0d1728;
  --ink-2: #253349;
  --ink-3: #5c6b86;
  --ink-4: #8b98b0;
  --bg: #f3f6fc;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --line: #e6ebf5;
  --line-strong: #d8e0ee;

  /* 尺寸 */
  --sidebar-w: 252px;
  --topbar-h: 66px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 9px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .05);
  --shadow-md: 0 18px 40px -20px rgba(16, 24, 40, .28), 0 2px 8px rgba(16, 24, 40, .04);
  --shadow-lg: 0 32px 80px -28px rgba(9, 18, 38, .38);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", "SF Pro Text", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
.ic { width: 18px; height: 18px; flex: 0 0 auto; }

::selection { background: rgba(43, 89, 255, .16); }

/* 滚动条 */
* { scrollbar-width: thin; scrollbar-color: #cfd8e6 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #cfd8e6; border-radius: 8px; }

/* ============================ 布局骨架 ============================ */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background:
    radial-gradient(120% 60% at 12% 0%, rgba(43, 89, 255, .26) 0%, rgba(43, 89, 255, 0) 62%),
    linear-gradient(180deg, #08101f 0%, #0c1730 55%, #0e1b38 100%);
  color: #dbe4f5;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
  border-right: 1px solid rgba(255, 255, 255, .05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px 20px 16px;
}

.brand-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #3f6dff 0%, #2b59ff 45%, #8b5cf6 100%);
  display: grid; place-items: center;
  box-shadow: 0 8px 20px -8px rgba(43, 89, 255, .9);
  color: #fff;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 19px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.brand-name em { font-style: normal; font-weight: 500; color: #7f92b8; font-size: 12.5px; letter-spacing: .12em; margin-left: 4px; }
.brand-sub { font-size: 12.5px; color: #7f92b8; letter-spacing: .08em; }

.tenant-brand {
  position: relative;
  margin: 18px 14px 12px;
  padding: 16px 16px 14px;
  border-radius: 14px;
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(74, 116, 255, .22) 0%, rgba(43, 89, 255, 0) 62%),
    linear-gradient(155deg, rgba(43, 89, 255, .16) 0%, rgba(255, 255, 255, .045) 50%, rgba(255, 255, 255, .025) 100%);
  border: 1px solid rgba(122, 154, 255, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 12px 28px -22px rgba(0, 0, 0, .9);
  overflow: hidden;
}
.tenant-brand::after {
  content: "";
  position: absolute;
  right: -26px; top: -32px;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: rgba(139, 92, 246, .12);
  pointer-events: none;
}
.tb-logo {
  position: relative;
  width: 100%; height: 46px;
  border-radius: 12px;
  padding: 0 11px;
  display: flex; align-items: center; gap: 9px;
  background:
    radial-gradient(90% 140% at 0% 50%, rgba(116, 151, 255, .3) 0%, rgba(43, 89, 255, 0) 60%),
    linear-gradient(100deg, #3563f4 0%, #2b59ff 48%, #7250e8 100%);
  box-shadow: 0 12px 24px -14px rgba(43, 89, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .22);
  color: #fff;
  overflow: hidden;
  margin-bottom: 13px;
}
.tb-logo::before {
  content: "";
  position: absolute;
  right: -14px; top: -30px;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  pointer-events: none;
}
.tb-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid; place-items: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  position: relative; z-index: 1;
}
.tb-code {
  margin-left: auto;
  max-width: calc(100% - 48px);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  color: rgba(227, 235, 255, .78);
  position: relative; z-index: 1;
}
.tb-logo.has-image { padding: 0; background: #0c1730; }
.tb-logo.has-image img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.logo-setting {
  display: flex; align-items: center; gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.logo-preview {
  width: 180px; height: 60px;
  flex: 0 0 auto;
  display: flex; align-items: center;
  border-radius: 10px;
  border: 1px solid rgba(122, 154, 255, .2);
  background:
    radial-gradient(90% 140% at 0% 50%, rgba(116, 151, 255, .3) 0%, rgba(43, 89, 255, 0) 60%),
    linear-gradient(100deg, #3563f4 0%, #2b59ff 48%, #7250e8 100%);
  overflow: hidden;
}
.logo-preview img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-preview-mark {
  width: 30px; height: 30px;
  margin-left: 11px;
  border-radius: 8px;
  display: grid; place-items: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 15.5px; font-weight: 700;
}
.logo-preview-code {
  margin-left: auto; margin-right: 11px;
  max-width: calc(100% - 60px);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  color: rgba(227, 235, 255, .78);
  font-size: 11px; font-weight: 600; letter-spacing: .16em;
}
.logo-setting-main { flex: 1; min-width: 0; }
.logo-upload-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.logo-file { display: none; }
.logo-file-name { font-size: 13.5px; color: var(--ink-4); }
.logo-req {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--ink-4);
  line-height: 1.65;
}
.logo-req b { color: var(--ink-2); font-weight: 600; }
.logo-remove {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-3);
  cursor: pointer;
}
.logo-remove input { width: 14px; height: 14px; accent-color: var(--brand); }
@media (max-width: 760px) {
  .logo-setting { flex-direction: column; align-items: stretch; }
  .logo-preview { width: 100%; height: 86px; }
}
.tb-name {
  font-size: 17.5px;
  line-height: 1.35;
  font-weight: 650;
  color: #f3f7ff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  position: relative; z-index: 1;
}
.tb-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
  margin-top: 6px;
  font-size: 12.5px;
  color: #8da2c6;
  position: relative; z-index: 1;
}
.tb-plan {
  display: inline-flex; align-items: center;
  height: 19px; padding: 0 6px;
  border-radius: 5px;
  background: rgba(43, 89, 255, .2);
  border: 1px solid rgba(122, 154, 255, .26);
  color: #c3d0ff;
  font-weight: 600;
}
.tb-dot { color: #5f7398; }

.nav {
  flex: 1;
  overflow-y: auto;
  padding: 4px 12px 16px;
}
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); }

.nav-group { margin-bottom: 14px; }
.nav-label {
  font-size: 12px;
  letter-spacing: .16em;
  color: #6d7f9f;
  text-transform: uppercase;
  padding: 0 10px 8px;
  font-weight: 600;
}
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px;
  margin-bottom: 2px;
  border-radius: 10px;
  color: #a9b8d3;
  font-size: 14.5px;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav-item .ic { width: 17px; height: 17px; opacity: .85; }
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #eef3fc; }
.nav-item.is-active {
  background: linear-gradient(90deg, rgba(43, 89, 255, .32), rgba(43, 89, 255, .10));
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(110, 150, 255, .22);
}
.nav-item.is-active::before {
  content: "";
  position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0;
  background: #6d93ff;
  box-shadow: 0 0 12px rgba(109, 147, 255, .9);
}
.nav-item .nav-badge {
  margin-left: auto;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px;
  background: rgba(229, 72, 77, .9);
  color: #fff; font-size: 12.5px; font-weight: 600;
  display: grid; place-items: center;
  font-variant-numeric: tabular-nums;
}
.nav-item .nav-count {
  margin-left: auto; font-size: 12.5px; color: #6d7f9f;
}
.nav-item.is-active .nav-count { color: #a9c0ff; }

.sidebar-foot {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  background: rgba(0, 0, 0, .18);
}
.user-card { display: flex; align-items: center; gap: 10px; }
.user-card .uc-main { min-width: 0; flex: 1; }
.uc-name { font-size: 14px; color: #eef3fc; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-role { font-size: 12.5px; color: #7f92b8; }
.logout-btn {
  border: 0; background: rgba(255, 255, 255, .07);
  color: #a9b8d3; width: 30px; height: 30px;
  border-radius: 8px; display: grid; place-items: center;
  cursor: pointer; transition: .18s;
}
.logout-btn:hover { background: rgba(229, 72, 77, .18); color: #ff9ea2; }

/* 主区 */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: var(--topbar-h);
  flex: 0 0 var(--topbar-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  gap: 14px;
  padding: 0 26px;
  position: sticky; top: 0; z-index: 30;
}
.tb-burger {
  display: none;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  place-items: center; cursor: pointer;
}
.tb-crumb { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-4); }
.tb-crumb strong { color: var(--ink); font-size: 16px; font-weight: 600; }
.tb-crumb .ic { width: 14px; height: 14px; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.tb-search {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-4);
  transition: .2s var(--ease);
}
.tb-search:focus-within { border-color: var(--brand-line); box-shadow: 0 0 0 4px rgba(43, 89, 255, .08); }
.tb-search input {
  border: 0; outline: 0; background: transparent;
  width: 100%; font-size: 14.5px; color: var(--ink);
}
.tb-search input::placeholder { color: var(--ink-4); }
.tb-kbd {
  font-size: 12.5px; color: var(--ink-4);
  border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 5px; background: var(--surface-2);
}

.tb-icon {
  position: relative;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-3);
  display: grid; place-items: center; cursor: pointer;
  transition: .18s;
}
.tb-icon:hover { border-color: var(--brand-line); color: var(--brand); }
.tb-icon .dot {
  position: absolute; top: 7px; right: 7px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--danger); box-shadow: 0 0 0 2px #fff;
}

.content {
  padding: 26px 26px 48px;
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
}

/* ============================ 页头 ============================ */

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; margin-bottom: 20px;
  flex-wrap: wrap;
}
.eyebrow {
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); font-weight: 600;
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 8px;
}
.eyebrow::before {
  content: ""; width: 14px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), #8b5cf6);
}
.page-head h1 { font-size: 29px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
.page-head p { color: var(--ink-3); font-size: 15px; margin-top: 7px; max-width: 720px; }
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ============================ 按钮 ============================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 15px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: .18s var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn .ic { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(135deg, #3a6bff 0%, #2b59ff 55%, #1f47e8 100%);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(43, 89, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn--primary:hover { filter: brightness(1.06); box-shadow: 0 14px 28px -12px rgba(43, 89, 255, .95); }

.btn--dark {
  background: var(--ink); color: #fff;
  box-shadow: 0 10px 20px -14px rgba(13, 23, 40, .8);
}
.btn--dark:hover { background: #1a2740; }

.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn--ghost:hover { border-color: var(--brand-line); color: var(--brand); }

.btn--soft { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
.btn--soft:hover { background: #e4ebff; }

.btn--danger { background: var(--danger-soft); color: var(--danger); border-color: #f7d4d5; }
.btn--danger:hover { background: #fbe2e3; }

.btn--ok { background: var(--ok-soft); color: var(--ok); border-color: #cdefe2; }

.btn--sm { height: 32px; padding: 0 11px; font-size: 14px; border-radius: 8px; }
.btn--xs { height: 27px; padding: 0 9px; font-size: 13.5px; border-radius: 7px; }
.btn--block { width: 100%; }

.icon-btn {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-3);
  display: inline-grid; place-items: center; cursor: pointer;
  transition: .18s;
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand-line); background: var(--brand-soft); }
.icon-btn .ic { width: 15px; height: 15px; }
.icon-btn.is-prev { transform: rotate(180deg); }
.icon-btn.is-disabled { opacity: .35; pointer-events: none; }

/* ============================ 表单 ============================ */

.field { margin-bottom: 14px; }
.label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  margin-bottom: 6px;
}
.label .req { color: var(--danger); font-weight: 500; margin-left: 3px; }
.hint { font-size: 13px; color: var(--ink-4); margin-top: 5px; }

.input, .select, .textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  font-size: 15px;
  transition: .18s var(--ease);
  outline: 0;
}
.textarea { height: auto; min-height: 92px; padding: 10px 12px; line-height: 1.6; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  border-color: #a9c0ff;
  box-shadow: 0 0 0 4px rgba(43, 89, 255, .09);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b98b0' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 14px; }

.switch {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14.5px; color: var(--ink-2); cursor: pointer;
}
.switch input { display: none; }
.switch .track {
  width: 40px; height: 22px; border-radius: 999px;
  background: #dbe3f0; position: relative; transition: .22s var(--ease);
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: .22s var(--ease);
}
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(18px); }

/* ============================ 卡片 ============================ */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card + .card { margin-top: 18px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.card-title { font-size: 16.5px; font-weight: 650; display: flex; align-items: center; gap: 9px; }
.card-title .tip { font-size: 13px; color: var(--ink-4); font-weight: 400; }
.card-sub { font-size: 14px; color: var(--ink-4); margin-top: 3px; }
.card-body { padding: 20px; }

.section-title {
  display: flex; align-items: baseline; gap: 10px;
  margin: 26px 0 12px;
}
.section-title h2 { font-size: 17.5px; font-weight: 650; letter-spacing: -.01em; }
.section-title span { font-size: 14px; color: var(--ink-4); }
.section-title .link { margin-left: auto; font-size: 14px; color: var(--brand); display: flex; align-items: center; gap: 4px; }

/* ============================ 指标卡 ============================ */

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat {
  position: relative;
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: .2s var(--ease);
}
.stat:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat--link { cursor: pointer; }
.stat--link:hover { border-color: rgba(43, 89, 255, .22); }
.stat--link:hover .stat-label { color: var(--tone, var(--brand)); }
.stat--link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.stat-go {
  width: 22px; height: 22px;
  margin-left: auto;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2);
  color: var(--ink-4);
  flex: 0 0 auto;
  transition: .2s var(--ease);
}
.stat-go .ic { width: 14px; height: 14px; }
.stat--link:hover .stat-go {
  color: var(--tone, var(--brand));
  background: var(--tint, var(--brand-soft));
  transform: translateX(2px);
}
.stat::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, var(--tint, rgba(43, 89, 255, .07)), transparent 70%);
}
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-label { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.stat-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--tint, var(--brand-soft));
  color: var(--tone, var(--brand));
}
.stat-icon .ic { width: 17px; height: 17px; }
.stat-value { font-size: 33px; font-weight: 700; letter-spacing: -.03em; margin-top: 10px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-value small { font-size: 14.5px; font-weight: 500; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.stat-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13.5px; color: var(--ink-4); }
.stat-meta .up { color: var(--ok); font-weight: 600; }
.stat-meta .down { color: var(--danger); font-weight: 600; }
.stat-meta .warn { color: var(--warn); font-weight: 600; }

/* ============================ 标签 / 头像 ============================ */

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 23px; padding: 0 9px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
}
.pill-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .9; }
.pill--ok { background: var(--ok-soft); color: #087a5d; }
.pill--warn { background: var(--warn-soft); color: #a8691a; }
.pill--danger { background: var(--danger-soft); color: #c03136; }
.pill--info { background: var(--info-soft); color: #16688f; }
.pill--muted { background: #f0f3f9; color: #64748b; }
.pill--brand { background: var(--brand-soft); color: var(--brand); }
.pill--purple { background: var(--purple-soft); color: #5b3fd6; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 14px;
  cursor: pointer; transition: .16s;
}
.chip:hover { border-color: var(--brand-line); }
.chip.is-active { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); font-weight: 600; }

.avatar {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  color: #fff; font-size: 13.5px; font-weight: 600;
  flex: 0 0 auto;
  letter-spacing: .02em;
}
.avatar--sm { width: 24px; height: 24px; font-size: 12px; }
.avatar--lg { width: 44px; height: 44px; font-size: 16.5px; border-radius: 13px; }

.avatar-stack { display: flex; }
.avatar-stack .avatar + .avatar { margin-left: -8px; box-shadow: 0 0 0 2px #fff; }

.user-inline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.user-inline span { font-size: 14.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================ 表格 ============================ */

.toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  flex-wrap: wrap;
}
.toolbar .search {
  display: flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 11px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 9px; min-width: 220px;
  color: var(--ink-4);
}
.toolbar .search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 14.5px; }
.toolbar .search .ic { width: 15px; height: 15px; }
.toolbar .spacer { margin-left: auto; }
.toolbar .count { font-size: 13.5px; color: var(--ink-4); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table thead th {
  text-align: left;
  font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 600;
  padding: 11px 16px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid #f0f3f9;
  font-size: 14.5px;
  color: var(--ink-2);
  vertical-align: middle;
}
.table tbody tr { transition: background .14s; }
.table tbody tr:hover { background: #f8faff; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .t-title { font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.table .t-sub { font-size: 13px; color: var(--ink-4); margin-top: 2px; }
.table .num { font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table a.row-link { display: block; }

.pager {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-4);
}
.pager .pages { display: flex; gap: 5px; }
.pager .pg {
  min-width: 30px; height: 30px; padding: 0 8px;
  border-radius: 8px; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; color: var(--ink-3); font-size: 14px;
}
.pager .pg.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager .pg:hover:not(.is-active) { border-color: var(--brand-line); color: var(--brand); }

/* 移动端表格卡化 */
@media (max-width: 760px) {
  .table thead { display: none; }
  .table, .table tbody { display: block; }
  .table tbody tr {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }
  .table tbody tr:last-child { border-bottom: 0; }
  .table tbody td {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; padding: 4px 0; border: 0;
  }
  .table tbody td::before {
    content: attr(data-label);
    font-size: 13px; color: var(--ink-4);
    flex: 0 0 auto; padding-top: 1px;
  }
  .table tbody td.actions { justify-content: flex-end; padding-top: 8px; }
  .table tbody td.actions::before { content: none; }
  .table tbody td:first-child { padding-bottom: 8px; }
  .table tbody td:first-child::before { content: none; }
}

/* ============================ 抽屉 ============================ */

.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10, 18, 34, .42);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .26s var(--ease);
}
.overlay.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: 480px; max-width: 92vw;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(102%);
  transition: transform .3s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 12px;
}
.drawer-head h3 { font-size: 19px; font-weight: 650; }
.drawer-head p { font-size: 14px; color: var(--ink-4); margin-top: 3px; }
.drawer-head .close { margin-left: auto; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px; }
.drawer-foot {
  padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  display: flex; gap: 10px; justify-content: flex-end;
}

/* ============================ 提示 / 空态 ============================ */

.toast-stack {
  position: fixed; top: 18px; right: 22px; z-index: 90;
  display: flex; flex-direction: column; gap: 9px;
  max-width: calc(100vw - 40px);
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 15px;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ok);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  font-size: 14.5px; color: var(--ink-2);
  animation: toast-in .28s var(--ease) both;
}
.toast.is-error { border-left-color: var(--danger); }
.toast .ic { color: var(--ok); width: 17px; height: 17px; }
.toast.is-error .ic { color: var(--danger); }
.toast .close { margin-left: auto; color: var(--ink-4); background: none; border: 0; cursor: pointer; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }

.empty {
  padding: 52px 20px; text-align: center;
}
.empty .icon-wrap {
  width: 58px; height: 58px; margin: 0 auto 14px;
  border-radius: 16px; background: var(--surface-2); border: 1px dashed var(--line-strong);
  display: grid; place-items: center; color: var(--ink-4);
}
.empty h4 { font-size: 16px; font-weight: 600; }
.empty p { font-size: 14.5px; color: var(--ink-4); margin: 6px auto 16px; max-width: 360px; }

/* ============================ Tabs ============================ */

.tabs {
  display: inline-flex; padding: 4px;
  background: #f1f4fb;
  border: 1px solid #e4eaf5;
  border-radius: 11px;
  gap: 2px;
}
.tab {
  padding: 7px 14px; border-radius: 8px;
  font-size: 14.5px; color: var(--ink-3); font-weight: 500;
  cursor: pointer; border: 0; background: transparent;
  display: inline-flex; align-items: center; gap: 6px;
  transition: .16s;
}
.tab.is-active { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 2px 6px -2px rgba(15, 32, 74, .18), 0 0 0 1px rgba(43, 89, 255, .10); }
.tab .n { font-size: 12.5px; color: var(--ink-4); font-weight: 500; }

/* ============================ 进度 ============================ */

.progress { height: 6px; background: #edf1f8; border-radius: 999px; overflow: hidden; }
.progress > i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #6d8bff);
  transition: width .6s var(--ease);
}
.progress.is-warn > i { background: linear-gradient(90deg, #f0a73a, #f5c168); }
.progress.is-ok > i { background: linear-gradient(90deg, #0aa981, #34c79f); }
.progress.is-danger > i { background: linear-gradient(90deg, #e05a5f, #ef8b8f); }

/* ============================ 模块快捷卡 ============================ */

.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.module-card {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: .2s var(--ease);
  overflow: hidden;
}
.module-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--brand-line); }
.module-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--mc, var(--brand));
  opacity: .8;
}
.mc-top { display: flex; align-items: center; gap: 10px; }
.mc-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--mc, #2b59ff) 10%, #fff);
  color: var(--mc, var(--brand));
}
.mc-icon .ic { width: 18px; height: 18px; }
.mc-name { font-size: 15.5px; font-weight: 650; }
.mc-tag { font-size: 13px; color: var(--ink-4); margin-top: 1px; }
.mc-metric { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.mc-metric b { font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.mc-metric span { font-size: 13.5px; color: var(--ink-4); }
.mc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; font-size: 13.5px; color: var(--ink-4); }
.mc-foot .go { color: var(--brand); display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.mc-foot .go .ic { width: 13px; height: 13px; }

/* ============================ 提醒列表 ============================ */

.reminder-list { display: flex; flex-direction: column; }
.reminder-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid #f0f3f9;
  transition: background .14s;
}
.reminder-row:hover { background: #f8faff; }
.reminder-row:last-child { border-bottom: 0; }
.reminder-row .rm-icon {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--tint, var(--brand-soft)); color: var(--tone, var(--brand));
}
.reminder-row .rm-main { min-width: 0; flex: 1; }
.reminder-row .rm-title { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.reminder-row .rm-sub { font-size: 13px; color: var(--ink-4); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reminder-row .rm-meta { text-align: right; flex: 0 0 auto; }
.reminder-row .rm-date { font-size: 13px; color: var(--ink-4); }

/* 迷你柱状图 */
.bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; height: 96px; padding: 4px 2px 0; }
.bar {
  flex: 0 0 auto; width: 38px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  height: 100%; justify-content: flex-end;
}
.bar i {
  width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, rgba(43, 89, 255, .95), rgba(43, 89, 255, .35));
  animation: bar-grow .6s var(--ease) both;
}
.bar span { font-size: 12px; color: var(--ink-4); }
.bar b { font-size: 12.5px; color: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
@keyframes bar-grow { from { height: 0 !important; opacity: .4; } }

/* 时间线 */
.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 4px; bottom: 4px;
  width: 1px; background: var(--line);
}
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -21px; top: 3px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand-line);
}
.tl-dot.is-brand { border-color: var(--brand); background: var(--brand-soft); }
.tl-text { font-size: 14.5px; color: var(--ink-2); }
.tl-text b { font-weight: 600; color: var(--ink); }
.tl-time { font-size: 12.5px; color: var(--ink-4); margin-top: 2px; }

/* 键值 */
.kv { display: grid; grid-template-columns: 108px 1fr; gap: 12px 14px; font-size: 14.5px; }
.kv dt { color: var(--ink-4); }
.kv dd { margin: 0; color: var(--ink-2); }

/* ============================ 登录 ============================ */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  background: #fff;
}
.auth-visual {
  position: relative;
  padding: 54px 58px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 18% 8%, rgba(43, 89, 255, .45) 0%, rgba(43, 89, 255, 0) 60%),
    radial-gradient(60% 55% at 92% 92%, rgba(117, 88, 245, .30) 0%, rgba(117, 88, 245, 0) 62%),
    linear-gradient(155deg, #070e1c 0%, #0a1730 48%, #0d1f42 100%);
  display: flex; flex-direction: column;
}
.auth-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 78%);
  pointer-events: none;
}
.auth-visual > * { position: relative; z-index: 1; }
.auth-brand { display: flex; align-items: center; gap: 11px; }
.auth-brand .brand-mark { width: 42px; height: 42px; }
.auth-brand .brand-name { font-size: 22px; }
.auth-headline { font-size: 47px; line-height: 1.18; font-weight: 700; letter-spacing: -.03em; margin-top: 52px; }
.auth-headline em { font-style: normal; color: #8cb0ff; }
.auth-desc { color: #a9bcdd; font-size: 16px; margin-top: 16px; max-width: 460px; line-height: 1.75; }
.auth-points { margin-top: 34px; display: flex; flex-direction: column; gap: 13px; max-width: 430px; }
.auth-point { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: #c8d6ee; }
.auth-point .tick {
  width: 22px; height: 22px; border-radius: 7px; flex: 0 0 auto;
  background: rgba(10, 169, 129, .18); color: #45d8b1;
  display: grid; place-items: center;
}
.auth-point .tick .ic { width: 13px; height: 13px; }
.auth-foot {
  margin-top: auto; padding-top: 40px;
  display: flex; align-items: center; gap: 22px;
  font-size: 13.5px; color: #6d84a8;
}
.auth-foot b { color: #bfd0ea; font-weight: 600; }

.auth-preview {
  margin-top: 34px; max-width: 458px; padding: 14px 16px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .8);
  backdrop-filter: blur(8px);
}
.auth-preview .ap-head {
  display: flex; align-items: center; gap: 8px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: #dbe6f8;
}
.auth-preview .ap-head b { font-size: 19px; color: #fff; font-variant-numeric: tabular-nums; }
.auth-preview .ap-dot { width: 7px; height: 7px; border-radius: 50%; background: #45d8b1; box-shadow: 0 0 0 4px rgba(69, 216, 177, .16); }
.auth-preview .ap-pill {
  margin-left: auto; font-size: 12px; color: #ffd9a0; background: rgba(226, 149, 42, .18);
  padding: 3px 8px; border-radius: 999px;
}
.auth-preview .ap-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.auth-preview .ap-row:last-child { border-bottom: 0; }
.auth-preview .ap-ico {
  width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto;
  display: grid; place-items: center;
}
.auth-preview .ap-ico .ic { width: 14px; height: 14px; }
.auth-preview .ap-ico--warn { background: rgba(226, 149, 42, .16); color: #ffc670; }
.auth-preview .ap-ico--brand { background: rgba(43, 89, 255, .22); color: #9db8ff; }
.auth-preview .ap-ico--ok { background: rgba(10, 169, 129, .18); color: #5ee0bb; }
.auth-preview .ap-main { flex: 1; min-width: 0; font-size: 14px; color: #e6eefc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-preview .ap-main em { font-style: normal; color: #8fa6c9; font-size: 13px; margin-left: 6px; }
.auth-preview .ap-tag { font-size: 12px; color: #b9caea; background: rgba(255, 255, 255, .09); padding: 3px 8px; border-radius: 999px; flex: 0 0 auto; }
.auth-preview .ap-tag--warn { color: #ffd9a0; background: rgba(226, 149, 42, .2); }

.auth-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 32px;
  background:
    radial-gradient(120% 80% at 100% 0%, #f4f7ff 0%, #ffffff 55%);
}
.auth-card { width: 100%; max-width: 386px; }
.auth-card .eyebrow { color: var(--brand); }
.auth-card h2 { font-size: 27px; font-weight: 700; letter-spacing: -.02em; }
.auth-card p.lead { font-size: 15px; color: var(--ink-3); margin: 8px 0 24px; }
.auth-form .btn--primary { height: 44px; margin-top: 6px; font-size: 15.5px; }

.demo-accounts {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
}
.demo-accounts .cap { font-size: 13px; color: var(--ink-4); margin-bottom: 9px; display: flex; align-items: center; gap: 6px; }
.demo-acc {
  width: 100%; text-align: left;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; margin-bottom: 7px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer;
  transition: .16s;
}
.demo-acc:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.demo-acc .da-main { flex: 1; min-width: 0; }
.demo-acc .da-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.demo-acc .da-mail { font-size: 12.5px; color: var(--ink-4); }
.demo-acc .pill { flex: 0 0 auto; }

/* ============================ 锁定页 ============================ */

.locked {
  max-width: 560px; margin: 8vh auto;
  text-align: center;
}
.locked .lock-icon {
  width: 68px; height: 68px; margin: 0 auto 18px;
  border-radius: 20px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
  box-shadow: 0 16px 40px -20px rgba(43, 89, 255, .6);
}
.locked h1 { font-size: 27px; margin-bottom: 8px; }
.locked p { color: var(--ink-3); font-size: 15px; margin-bottom: 20px; }

/* ============================ 响应式 ============================ */

.sidebar-mask {
  display: none;
  position: fixed; inset: 0; z-index: 39;
  background: rgba(8, 16, 31, .5);
  opacity: 0; transition: opacity .24s;
}

@media (max-width: 1180px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content { padding: 24px 20px 44px; }
}

@media (max-width: 980px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    transform: translateX(-104%);
    transition: transform .28s var(--ease);
    width: 272px; flex-basis: 272px;
  }
  .sidebar.is-open { transform: none; }
  .sidebar-mask { display: block; pointer-events: none; }
  .sidebar-mask.is-open { opacity: 1; pointer-events: auto; }
  .tb-burger { display: grid; }
  .tb-search { min-width: 0; width: 180px; }
  .tb-kbd { display: none; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px 60px; }
  .page-head h1 { font-size: 25px; }
}

@media (max-width: 760px) {
  .tb-crumb .crumb-root, .tb-crumb .ic { display: none; }
  .tb-search { display: none; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; border-radius: 14px; }
  .stat-value { font-size: 27px; margin-top: 8px; }
  .quick-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card { border-radius: 14px; }
  .card-head { padding: 14px 16px; }
  .toolbar { padding: 12px 16px; }
  .toolbar .search { min-width: 0; flex: 1; }
  .drawer { width: 100%; max-width: 100%; border-radius: 0; }
  .drawer-foot { position: sticky; bottom: 0; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .toast-stack { left: 14px; right: 14px; top: 12px; }
  .toast { min-width: 0; }
  .auth { grid-template-columns: 1fr; }
  .auth-visual { padding: 34px 24px 30px; }
  .auth-headline { font-size: 33px; margin-top: 26px; }
  .auth-desc { font-size: 15px; }
  .auth-points { display: none; }
  .auth-preview { display: none; }
  .auth-foot { display: none; }
  .auth-panel { padding: 26px 20px 40px; }
  .auth-card h2 { font-size: 22px; }
  .reminder-row { padding: 12px 14px; }
  .reminder-row .rm-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
  .reminder-row .rm-date { display: none; }
  .module-card { padding: 15px; }
  .bars { height: 78px; }
}

@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr; }
  .mc-metric b { font-size: 20px; }
}

/* 动画 */
.reveal { animation: reveal-up .42s var(--ease) both; }
.reveal:nth-child(2) { animation-delay: .03s; }
.reveal:nth-child(3) { animation-delay: .06s; }
.reveal:nth-child(4) { animation-delay: .09s; }
@keyframes reveal-up { from { transform: translateY(7px); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* 打印 */
@media print {
  .sidebar, .topbar, .page-actions, .toolbar { display: none !important; }
}

/* ============================ 印章卡片 ============================ */
.seal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.seal-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px;
  transition: .2s var(--ease);
}
.seal-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.seal-top { display: flex; align-items: center; justify-content: space-between; }
.seal-icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, rgba(232,98,45,.14), rgba(232,98,45,.05));
  color: #e8622d; display: grid; place-items: center;
}
.seal-icon .ic { width: 20px; height: 20px; }
.seal-name { font-size: 17.5px; font-weight: 700; letter-spacing: -.01em; }
.seal-cat { font-size: 13px; color: var(--ink-4); margin-top: -4px; }
.seal-info { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--ink-4); }
.seal-warn {
  font-size: 13px; color: #a8691a; background: var(--warn-soft);
  border-radius: 8px; padding: 8px 10px; line-height: 1.6;
}
.seal-warn b { display: block; margin-top: 2px; }

/* ============================ 巡检点 ============================ */
.point-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.point-card {
  display: flex; gap: 14px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: .2s var(--ease);
}
.point-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.qr-box {
  width: 104px; height: 104px; flex: 0 0 104px;
  display: grid; grid-template-columns: repeat(21, 1fr); grid-template-rows: repeat(21, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px;
}
.qr-box i { display: block; }
.qr-box i.on { background: #0d1728; border-radius: 1px; }
.qr-box.is-qr-ready, .scan-qr.is-qr-ready { display: block; }
.qr-box.is-qr-ready svg, .scan-qr.is-qr-ready svg { width: 100%; height: 100%; display: block; }
.point-info { flex: 1; min-width: 0; }
.point-name { font-size: 16px; font-weight: 650; margin-top: 4px; }
.point-area { font-size: 13px; color: var(--ink-4); }
.point-last { font-size: 13px; color: var(--ink-3); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.point-items {
  font-size: 12.5px; color: var(--ink-4); margin-top: 6px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============================ 扫码巡检移动页 ============================ */
.mobile-scan { max-width: 720px; margin: 0 auto; padding: 20px 0 10px; }
.scan-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.scan-back {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  display: grid; place-items: center; transform: rotate(180deg);
}
.scan-code { font-size: 12.5px; letter-spacing: .1em; color: var(--ink-4); text-transform: uppercase; }
.scan-head h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.scan-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.scan-card-title { font-size: 14.5px; font-weight: 650; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.scan-qr {
  width: 190px; height: 190px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(21, 1fr); grid-template-rows: repeat(21, 1fr);
  background: #fff; padding: 10px; border: 1px solid var(--line); border-radius: 12px;
}
.scan-qr i { display: block; }
.scan-qr i.on { background: #0d1728; border-radius: 1px; }
.scan-qr-label { text-align: center; font-size: 12.5px; color: var(--ink-4); margin-top: 10px; letter-spacing: .04em; }
.result-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.result-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border: 1px solid var(--line-strong); border-radius: 12px;
  cursor: pointer; transition: .18s;
}
.result-opt input { display: none; }
.ro-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-4); }
.ro-text b { display: block; font-size: 15px; }
.ro-text i { font-style: normal; font-size: 12.5px; color: var(--ink-4); }
.result-opt.is-ok:has(input:checked) { border-color: #9fe0cb; background: var(--ok-soft); }
.result-opt.is-ok:has(input:checked) .ro-icon { background: #d7f4ea; color: var(--ok); }
.result-opt.is-bad:has(input:checked) { border-color: #f6c9cb; background: var(--danger-soft); }
.result-opt.is-bad:has(input:checked) .ro-icon { background: #fbdcdd; color: var(--danger); }
.checklist { display: flex; flex-direction: column; gap: 6px; }
.check-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px;
  background: var(--surface-2); cursor: pointer;
}
.check-item input { display: none; }
.check-item .cbx {
  width: 20px; height: 20px; border-radius: 6px; background: #fff;
  border: 1px solid var(--line-strong); display: grid; place-items: center; color: transparent;
}
.check-item .cbx .ic { width: 12px; height: 12px; }
.check-item input:checked + .cbx { background: var(--ok); border-color: var(--ok); color: #fff; }
.scan-photo {
  margin-top: 14px; border: 1px dashed var(--line-strong); border-radius: 12px;
  padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--ink-3); font-size: 14px; background: var(--surface-2);
}
.scan-photo i { font-style: normal; font-size: 12.5px; color: var(--ink-4); }
.scan-submit { height: 48px; font-size: 16.5px; margin: 4px 0 14px; }

/* ============================ 模块市场 ============================ */
.plan-hero .card-body { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.usage-ring {
  position: relative; width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), #eef1f8 0);
}
.usage-ring::after {
  content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff;
}
.usage-ring b, .usage-ring small { position: relative; z-index: 1; }
.usage-ring b { font-size: 24px; font-weight: 700; }
.usage-ring small { font-size: 12.5px; color: var(--ink-4); }

.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.store-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm);
  overflow: hidden; transition: .2s var(--ease);
}
.store-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--brand-line); }
.store-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--mc, var(--brand)); opacity: .85; }
.store-card.is-soon { opacity: .78; }
.sc-top { display: flex; align-items: center; gap: 10px; }
.sc-title { flex: 1; min-width: 0; }
.sc-desc { font-size: 14.5px; color: var(--ink-2); }
.sc-features { font-size: 13px; color: var(--ink-4); line-height: 1.75; flex: 1; }
.sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: auto; }
.sc-price b { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.sc-price span { font-size: 13px; color: var(--ink-4); margin-left: 2px; }
.sc-price { font-size: 13.5px; }

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 8px;
}
.plan-card.is-current { border-color: var(--brand-line); background: linear-gradient(180deg, #f6f8ff, #fff); }
.plan-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 12.5px; color: var(--brand); background: var(--brand-soft);
  border-radius: 999px; padding: 3px 9px; font-weight: 600;
}
.plan-name { font-size: 16.5px; font-weight: 650; }
.plan-price b { font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.plan-price span { font-size: 13.5px; color: var(--ink-4); margin-left: 3px; }
.plan-limit { font-size: 13.5px; color: var(--ink-3); }
.plan-list { list-style: none; padding: 0; margin: 8px 0 14px; display: flex; flex-direction: column; gap: 7px; }
.plan-list li { display: flex; align-items: flex-start; gap: 7px; font-size: 13.5px; color: var(--ink-3); line-height: 1.6; }
.plan-list .ic { width: 14px; height: 14px; color: var(--ok); margin-top: 2px; }

/* ============================ 任务看板 ============================ */
.task-list { display: flex; flex-direction: column; }
.task-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid #f0f3f9;
}
.task-row:last-child { border-bottom: 0; }
.task-check {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 26px;
  border: 1px solid var(--line-strong); background: #fff;
  display: grid; place-items: center; color: transparent; cursor: pointer;
  transition: .16s;
}
.task-check .ic { width: 13px; height: 13px; }
.task-check:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.task-check.is-on { background: var(--ok); border-color: var(--ok); color: #fff; }
.task-main { flex: 1; min-width: 0; }
.task-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.task-row.is-done .task-title { color: var(--ink-4); text-decoration: line-through; }
.task-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; font-size: 13px; color: var(--ink-4); }

/* ============================ 提醒预览 ============================ */
.remind-preview {
  margin: 6px 0 16px; padding: 16px;
  background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: 14px;
}
.rp-title { font-size: 14.5px; font-weight: 650; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.rp-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rp-items b { display: block; font-size: 14px; margin-bottom: 3px; }
.rp-items span { font-size: 13px; color: var(--ink-4); line-height: 1.6; }

/* 响应式补充 */
@media (max-width: 1180px) {
  .seal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .point-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-grid, .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-items { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .seal-grid, .point-grid, .store-grid, .plan-grid { grid-template-columns: 1fr; }
  .qr-box { width: 74px; height: 74px; flex-basis: 74px; }
  .mobile-scan { padding: 4px 0 0; }
  .scan-head h1 { font-size: 21px; }
  .scan-card { padding: 14px; border-radius: 14px; }
  .task-row { padding: 12px 14px; }
  .result-opt { padding: 10px; gap: 8px; }
  .ro-icon { width: 30px; height: 30px; }
  .sc-top { align-items: flex-start; }
}

.dash-grid { display: grid; grid-template-columns: 1.55fr .95fr; gap: 18px; align-items: start; }
@media (max-width: 1180px) { .dash-grid { grid-template-columns: 1fr; } }

/* ============================ 会议室预定 ============================ */
.mtg-card { padding: 0; overflow: hidden; }
.mtg-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.mtg-date-nav { display: flex; align-items: center; gap: 12px; }
.mtg-date-main { min-width: 130px; }
.mtg-date-main b { font-size: 17.5px; letter-spacing: -.01em; }
.mtg-date-main span { display: block; font-size: 13px; color: var(--ink-4); margin-top: 2px; }
.mtg-date-nav .is-prev { transform: rotate(180deg); }
.mtg-date-nav .is-next { transform: none; }
.mtg-legend { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.mtg-legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.mtg-legend .lg--free { background: #fff; border: 1px dashed #b9c5de; }
.mtg-legend .lg--mine { background: var(--brand); }
.mtg-legend .lg--busy { background: #9aa8c6; }

.mtg-scroll { overflow-x: auto; }
.mtg-grid { min-width: 860px; padding: 10px 20px 18px; }
.mtg-axis { display: flex; align-items: flex-end; }
.mtg-axis-spacer { width: 196px; flex: 0 0 196px; }
.mtg-axis-hours { flex: 1; display: grid; grid-template-columns: repeat(12, 1fr); font-size: 12px; color: var(--ink-4); padding-bottom: 6px; }
.mtg-row { display: flex; align-items: center; padding: 5px 0; }
.mtg-room { width: 196px; flex: 0 0 196px; display: flex; align-items: center; gap: 9px; padding-right: 14px; }
.mtg-room-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.mtg-room-name { font-size: 14.5px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtg-room-meta { font-size: 12.5px; color: var(--ink-4); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtg-track {
  position: relative; flex: 1; height: 54px;
  display: grid; grid-template-columns: repeat(12, 1fr);
  background: #fbfcff; border: 1px solid #eef2f9; border-radius: 10px; overflow: hidden;
}
.mtg-slot { border: 0; border-right: 1px dashed #edf1f8; background: transparent; padding: 0; cursor: pointer; transition: background .12s; }
.mtg-slot:last-child { border-right: 0; }
.mtg-slot:hover { background: rgba(43, 89, 255, .06); }
.mtg-bar {
  position: absolute; top: 5px; bottom: 5px; border-radius: 8px;
  padding: 6px 8px; overflow: hidden; color: #fff; pointer-events: none;
  background: var(--bar, var(--brand));
  box-shadow: 0 6px 14px -8px rgba(13, 26, 56, .5);
}
.mtg-bar.is-mine { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(43, 89, 255, .35); }
.mtg-bar b { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtg-bar span { display: block; font-size: 11.5px; opacity: .88; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mtg-mobile { display: none; }
.mtg-m-room { padding: 12px 0; border-bottom: 1px solid #f0f3f9; }
.mtg-m-room:last-child { border-bottom: 0; }
.mtg-m-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mtg-m-slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.mtg-chip { font-size: 13px; color: var(--ink-2); background: #f5f7fd; border: 1px solid #eef2f9; padding: 5px 8px; border-radius: 8px; }
.mtg-chip b { color: var(--brand); margin-right: 5px; font-weight: 600; }
.mtg-chip.is-mine { background: var(--brand-soft); border-color: var(--brand-line); }
.mtg-m-free { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ok); margin-top: 8px; }

.rm-strong { font-size: 14px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .mtg-scroll { display: none; }
  .mtg-mobile { display: block; padding: 6px 14px 10px; }
  .mtg-head { padding: 14px; }
  .mtg-legend { gap: 12px; }
  .mtg-date-main { min-width: 0; }
}
.mtg-bar.is-narrow { padding: 6px; }
.mtg-bar.is-narrow span { display: none; }
.mtg-bar.is-narrow b { font-size: 12px; }

/* ============================ 全局搜索 ============================ */
.search-hero { padding: 20px; }
.search-big {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 8px 8px 8px 16px; transition: .18s var(--ease);
}
.search-big:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(43, 89, 255, .09); }
.search-big .ic { width: 18px; height: 18px; color: var(--ink-4); flex: 0 0 auto; }
.search-big input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 16.5px; background: transparent; color: var(--ink); height: 38px; }
.search-big .btn { height: 40px; padding: 0 22px; flex: 0 0 auto; }
.search-tips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 13.5px; color: var(--ink-4); }
.search-tip { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-3); transition: .15s; }
.search-tip:hover { color: var(--brand); border-color: var(--brand-line); background: var(--brand-soft); }

.search-sum { margin: 18px 2px 12px; font-size: 14px; color: var(--ink-3); }
.search-sum b { color: var(--brand); font-size: 15.5px; }
.search-groups { display: flex; flex-direction: column; gap: 14px; }
.search-group .card-head { padding: 14px 18px; }
.sg-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-3); }
.sg-icon .ic { width: 15px; height: 15px; }
.search-rows { display: flex; flex-direction: column; }
.search-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  border-top: 1px solid #f2f5fa; color: inherit; transition: background .14s;
}
.search-row:hover { background: #f8faff; }
.sr-icon {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--tone) 10%, #fff);
  color: var(--tone);
}
.sr-icon .ic { width: 16px; height: 16px; }
.sr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sr-title { font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-sub { font-size: 13px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-go { width: 14px; height: 14px; color: var(--ink-4); flex: 0 0 auto; }

@media (max-width: 760px) {
  .search-hero { padding: 14px; }
  .search-big { padding: 6px 6px 6px 12px; }
  .search-big input { font-size: 15.5px; }
  .search-big .btn { padding: 0 14px; }
  .search-group .card-head { padding: 12px 14px; }
  .search-row { padding: 11px 14px; gap: 10px; }
  .search-row .pill { display: none; }
  .search-tips { display: none; }
}
@media (max-width: 760px) {
  .page-actions .mtg-quick { display: none; }
}

/* ============================ 考勤与请假 ============================ */
.hr-punch {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 248px;
  gap: 20px; align-items: center;
  padding: 20px 22px;
  background: linear-gradient(120deg, #f7fbff 0%, #ffffff 44%, #f2f8ff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hr-punch-date { font-size: 13.5px; color: var(--ink-4); margin-bottom: 6px; }
.hr-clock {
  font-size: 37px; font-weight: 700; letter-spacing: .5px; line-height: 1.05;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.hr-rules { font-size: 13px; color: var(--ink-4); margin-top: 8px; }
.hr-punch-state {
  display: flex; flex-direction: column; gap: 7px; min-width: 156px;
  padding-left: 20px; border-left: 1px dashed var(--line-strong);
}
.hr-state-row { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--ink-4); }
.hr-state-row strong { font-size: 16.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.hr-punch-actions { display: flex; flex-direction: column; gap: 9px; }
.hr-btn { height: 44px; font-size: 15.5px; border-radius: 12px; }

.hr-recs { display: flex; flex-direction: column; }
.hr-rec {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 18px; border-top: 1px solid #f2f5fa;
}
.hr-rec-date { width: 58px; display: flex; flex-direction: column; gap: 1px; }
.hr-rec-date b { font-size: 15px; font-variant-numeric: tabular-nums; }
.hr-rec-date span { font-size: 12.5px; color: var(--ink-4); }
.hr-rec-times { flex: 1; min-width: 0; display: flex; gap: 18px; font-size: 14px; color: var(--ink-2); }
.hr-rec-times span { display: flex; align-items: center; gap: 6px; }
.hr-rec-times i { font-style: normal; font-size: 12.5px; color: var(--ink-4); }
.hr-rec-hours { width: 54px; text-align: right; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.hr-team { display: flex; flex-direction: column; padding: 4px 0 8px; }
.hr-member { display: flex; align-items: center; gap: 10px; padding: 9px 18px; }
.hr-member-main { flex: 1; min-width: 0; }
.hr-member-name { font-size: 14.5px; font-weight: 600; }
.hr-member-dept { font-weight: 400; font-size: 12.5px; color: var(--ink-4); margin-left: 6px; }
.hr-member-sub { font-size: 13px; color: var(--ink-4); }

.hr-leaves { display: flex; flex-direction: column; }
.hr-leave {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; border-top: 1px solid #f2f5fa;
}
.hr-leave-main { flex: 1; min-width: 0; }
.hr-leave-title { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hr-leave-days {
  font-weight: 500; font-size: 12.5px; color: var(--brand);
  background: var(--brand-soft); padding: 1px 7px; border-radius: 999px;
}
.hr-leave-sub {
  font-size: 13px; color: var(--ink-4); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hr-leave-by { margin-left: 8px; color: var(--ink-3); }
.hr-leave-actions { display: flex; gap: 6px; flex: 0 0 auto; }

@media (max-width: 760px) {
  .hr-punch { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .hr-clock { font-size: 33px; }
  .hr-punch-state { flex-direction: row; flex-wrap: wrap; gap: 10px 18px; padding: 12px 0 0; border-left: 0; border-top: 1px dashed var(--line-strong); }
  .hr-punch-actions { flex-direction: row; }
  .hr-punch-actions form { flex: 1; }
  .hr-rec { gap: 10px; padding: 11px 14px; }
  .hr-rec-times { gap: 12px; }
  .hr-rec-hours { width: 42px; }
  .hr-leave { flex-wrap: wrap; padding: 12px 14px; }
  .hr-leave-actions { width: 100%; justify-content: flex-end; }
  .hr-member { padding: 9px 14px; }
}

/* 禁用态按钮 */
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }

/* 团队卡内：今日请假 */
.hr-team-leave { border-top: 1px dashed var(--line); margin-top: 2px; padding: 10px 18px 4px; }
.hr-team-leave-title { font-size: 13px; color: var(--ink-4); margin-bottom: 2px; }
.hr-team-empty { font-size: 13.5px; color: var(--ink-4); padding: 8px 0 6px; }

/* ============================ 台账批量导入 ============================ */
.import-steps { display: flex; gap: 12px; margin-bottom: 16px; }
.import-step {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  opacity: .7; transition: .18s;
}
.import-step.is-active { opacity: 1; border-color: rgba(43,89,255,.35); background: rgba(43,89,255,.03); }
.import-step.is-done { opacity: 1; }
.import-step-no {
  width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13.5px; font-weight: 600;
  background: #eef2fa; color: var(--ink-3);
}
.import-step.is-done .import-step-no { background: #0aa981; color: #fff; }
.import-step.is-active .import-step-no { background: var(--brand); color: #fff; }
.import-step b { display: block; font-size: 14.5px; }
.import-step small { display: block; font-size: 13px; color: var(--ink-4); }

.import-upload { padding: 18px 20px 20px; }
.import-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  height: 190px; border: 1.5px dashed #c8d4ea; border-radius: 14px;
  background: #fbfdff; cursor: pointer; transition: .18s;
}
.import-drop:hover, .import-drop.is-over { border-color: var(--brand); background: rgba(43,89,255,.04); }
.import-drop-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 4px;
}
.import-drop b { font-size: 15.5px; }
.import-drop small { font-size: 13.5px; color: var(--ink-4); }
.import-drop input[type=file] { display: none; }
.import-tips { margin-top: 16px; padding: 14px 16px; background: #f8fafc; border-radius: 12px; font-size: 14px; color: var(--ink-3); }
.import-tips ul { margin: 6px 0 0; padding-left: 18px; }
.import-tips li { margin: 3px 0; }
.import-tips code { background: #fff; border: 1px solid var(--line); padding: 0 4px; border-radius: 4px; font-size: 13px; }
.import-actions { display: flex; justify-content: flex-end; margin-top: 16px; }

.import-sum { display: flex; gap: 8px; flex-wrap: wrap; }
.import-table-wrap { max-height: 540px; overflow: auto; }
.import-table td { padding: 9px 12px; font-size: 14px; }
.import-table tr.is-bad { background: #fff8f8; }
.import-line { color: var(--ink-4); font-variant-numeric: tabular-nums; }
.import-summary { font-weight: 500; }
.import-note .is-err { color: #c03136; }
.import-note .is-warn { color: #a8691a; display: block; margin-top: 2px; }
.import-note .is-ok { color: var(--ink-4); }
.import-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid #f2f5fa; }

@media (max-width: 760px) {
  .import-steps { flex-direction: column; gap: 8px; }
  .import-step { padding: 10px 14px; }
  .import-drop { height: 150px; }
  .import-upload { padding: 14px; }
  .import-foot { flex-direction: column-reverse; align-items: stretch; }
  .import-foot form { display: flex; }
  .import-foot .btn { flex: 1; }
  .import-table-wrap { -webkit-overflow-scrolling: touch; }
  .import-table { min-width: 560px; }
}

@media (max-width: 760px) {
  .import-cols { display: none; }
  .import-actions .btn { width: 100%; justify-content: center; }
  .import-table { min-width: 0; width: 100%; }
  .table.import-table thead { display: none; }
  .table.import-table tbody tr { display: block; padding: 12px 14px; border-bottom: 1px solid #f2f5fa; }
  .table.import-table tbody tr.is-bad { background: #fff8f8; }
  .table.import-table tbody td {
    display: block; padding: 0; border: 0; text-align: left;
  }
  .table.import-table tbody td::before { content: none; }
  .table.import-table tbody td.import-line { font-size: 12.5px; color: var(--ink-4); }
  .table.import-table tbody td.import-summary { font-size: 15px; font-weight: 600; margin: 2px 0 6px; }
  .table.import-table tbody td:nth-child(3) { display: inline-block; margin-right: 8px; vertical-align: middle; }
  .table.import-table tbody td.import-note { display: inline-block; font-size: 13.5px; vertical-align: middle; }
  .import-table-wrap { max-height: none; }
}

/* ============================ 考勤月报 ============================ */

.month-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; margin-bottom: 16px; flex-wrap: wrap; }
.month-nav { display: flex; align-items: center; gap: 14px; }
.month-nav .is-next { transform: none; }
.month-title b { display: block; font-size: 17px; }
.month-title small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-4); }
.month-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.rate-cell { display: flex; align-items: center; gap: 8px; }
.rate-cell .progress { flex: 1; min-width: 56px; }
.rate-cell .num { width: 38px; text-align: right; font-size: 13.5px; color: var(--ink-3); }
.hr-report-note { margin-top: 16px; padding: 14px 16px; background: #f8fafc; border-radius: 12px; font-size: 14px; color: var(--ink-3); }
.hr-report-note ul { margin: 6px 0 0; padding-left: 18px; }
.hr-report-note li { margin: 3px 0; }
.hr-report-table tbody td .t-sub { font-weight: 400; }
.bars.is-dense { gap: 4px; height: 112px; overflow-x: auto; justify-content: flex-start; padding-bottom: 2px; }
.bars.is-dense .bar { width: 22px; }
.bars.is-dense .bar i { max-width: 18px; }
.bars.is-dense .bar span { font-size: 11.5px; }
.bars.is-dense .bar.is-today i { background: linear-gradient(180deg, #0f9e8a, #86dccd); }
.bars.is-dense .bar.is-today b { color: var(--ink); }
.hr-report-empty { padding: 48px 16px !important; text-align: center !important; color: var(--ink-4); }
.hr-report-empty .ic { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; }

@media (max-width: 760px) {
  .month-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .month-nav { justify-content: space-between; }
  .month-title { flex: 1; text-align: center; }
  .hr-report-table .rate-cell { justify-content: flex-end; }
  .hr-report-table .rate-cell .progress { max-width: 120px; }
}

/* 角色权限矩阵 */
.role-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px 20px 4px; }
.role-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fff; }
.role-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.role-card p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--ink-3); }
.role-card-foot { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink-4); }
.role-lock { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ok, #0f9e8a); }
.role-lock .ic { width: 14px; height: 14px; }
.role-tip { font-size: 13px; color: var(--ink-4); }
.perm-table th.center, .perm-table td.center { text-align: center; }
.perm-table td.center .switch { justify-content: center; }
.perm-group td { background: #f8fafc; font-size: 13.5px; font-weight: 700; letter-spacing: .04em; color: var(--ink-3); padding: 8px 16px !important; }
.perm-name { font-weight: 600; font-size: 15px; }
.perm-desc { margin-top: 3px; font-size: 13px; line-height: 1.6; color: var(--ink-4); max-width: 460px; }
.perm-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.switch { display: inline-flex; align-items: center; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track { position: relative; width: 38px; height: 21px; border-radius: 21px; background: #dfe3ea; transition: background .18s ease; display: inline-block; }
.switch-dot { position: absolute; top: 2.5px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.18); transition: transform .18s ease; }
.switch input:checked + .switch-track { background: var(--brand, #2f6bff); }
.switch input:checked + .switch-track .switch-dot { transform: translateX(16px); }
.switch.is-locked { cursor: not-allowed; opacity: .75; }
.switch.is-locked .switch-track { background: #b9c2d1; }
@media (max-width: 900px) {
  .role-cards { grid-template-columns: 1fr; padding: 14px 14px 0; }
  .perm-table td[data-label] { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .perm-table td.center { display: flex; justify-content: space-between; }
  .perm-foot { flex-direction: column; align-items: stretch; }
  .perm-foot .btn { width: 100%; }
}

/* 数据范围提示 */
.scope-note { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 10px 14px; border: 1px solid #dbe5ff; background: #f4f7ff; border-radius: 11px; font-size: 14px; line-height: 1.6; color: #3b4a6b; }
.scope-note .ic { width: 15px; height: 15px; flex: none; color: #2f6bff; }
.scope-note b { color: #22305a; }

/* 登录页：按角色体验 */
.demo-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.demo-role { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; background: #fff; transition: border-color .16s ease, transform .16s ease; }
.demo-role:hover { border-color: var(--brand); transform: translateY(-1px); }
.demo-role span b { display: block; font-size: 14px; }
.demo-role span small { display: block; font-size: 12px; color: var(--ink-4); margin-top: 1px; }

/* 权限矩阵移动端修正 */
@media (max-width: 900px) {
  .perm-table td[data-label="权限项"] { display: block !important; }
  .perm-table .perm-desc { max-width: none; }
}
@media (max-width: 520px) {
  .tabs { display: flex; width: 100%; padding: 3px; gap: 0; box-sizing: border-box; }
  .tabs .tab { flex: 1; justify-content: center; padding: 8px 2px; font-size: 12px; gap: 2px; }
  .tabs .tab .n { display: none; }
  .tabs .tab .n { font-size: 11px; }
}

.label .req { margin-right: auto; }

/* 报表中心 */
.rp-range { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.rp-range .hint { font-size: 13px; color: var(--ink-4); }
.rp-trend { margin-top: 16px; }
.rp-trend-sum { font-size: 13.5px; color: var(--ink-3); margin-left: auto; }
.rp-trend-sum b { color: var(--brand); font-size: 15.5px; }
.tr-bars { display: flex; align-items: flex-end; gap: 6px; height: 132px; padding: 6px 2px 0; }
.tr-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.tr-n { font-size: 12px; color: var(--ink-3); font-weight: 600; height: 12px; }
.tr-bar { width: 100%; max-width: 30px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #6d8bff, #2b59ff); opacity: .88; }
.tr-x { font-size: 12px; color: var(--ink-4); white-space: nowrap; }
.rp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.rp-card { display: flex; flex-direction: column; }
.rp-card .card-body { padding: 16px 20px 18px; }
.rp-sub { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink-4); margin-bottom: 8px; }
.rp-empty { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 26px 10px; font-size: 14px; color: var(--ink-4); text-align: center; line-height: 1.7; }
.rp-empty .ic { width: 15px; height: 15px; flex: none; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }

.funnel-row { margin-bottom: 14px; }
.funnel-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.funnel-meta b { font-size: 14.5px; }
.funnel-meta span { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.funnel-track { height: 10px; border-radius: 10px; background: #eff2f7; overflow: hidden; }
.funnel-bar { height: 10px; border-radius: 10px; transition: width .3s ease; }
.funnel-note { margin-top: 4px; font-size: 12.5px; color: var(--ink-4); }

.rp-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 18px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }

.h-bar { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-bottom: 9px; }
.hb-label { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-track { height: 8px; border-radius: 8px; background: #eff2f7; overflow: hidden; }
.hb-track i { display: block; height: 8px; border-radius: 8px; background: linear-gradient(90deg, #2b59ff, #7f9bff); }
.hb-num { font-size: 13px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }

.proj-row { margin-bottom: 13px; }
.pr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pr-name { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-budget { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.pr-bar { height: 6px; border-radius: 6px; background: #eff2f7; overflow: hidden; margin: 6px 0 4px; }
.pr-bar i { display: block; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #0aa981, #7cd9c0); }
.pr-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-4); }

.seg-bar { display: flex; height: 12px; border-radius: 12px; overflow: hidden; background: #eff2f7; }
.seg-bar span { height: 12px; }
.seg-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.seg-legend span { display: inline-flex; align-items: center; gap: 5px; }
.seg-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.seg-legend b { color: var(--ink); }

.mini-list { display: flex; flex-direction: column; }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.mini-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.mr-main { font-size: 14px; overflow: hidden; }
.mr-main small { display: block; font-size: 12px; color: var(--ink-4); margin-top: 2px; }

.mini-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; }
.mini-kpis b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.mini-kpis span { font-size: 12px; color: var(--ink-4); }

.rp-note { margin-top: 18px; padding: 14px 18px; background: #f8fafc; border-radius: 12px; font-size: 13.5px; color: var(--ink-3); line-height: 1.8; }
.rp-note b { display: block; margin-bottom: 4px; color: var(--ink-2); }
.rp-note ul { margin: 6px 0 0; padding-left: 18px; }
.rp-note li { margin: 2px 0; }

@media (max-width: 1100px) {
  .rp-grid { grid-template-columns: 1fr; }
  .rp-split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .rp-card .card-body { padding: 14px 14px 16px; }
  .h-bar { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 8px; }
  .mini-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-note { padding: 12px 14px; }
}

@media (max-width: 760px) { .page-actions .chip { width: auto; flex: 0 0 auto; } }

.rp-grid { align-items: start; }

.rp-grid { align-items: stretch; }


@media (max-width: 760px) { .page-actions .chip { width: max-content; max-width: 100%; align-self: flex-start; } }

/* ============================ 会议室审批流 ============================ */
.mtg-legend .lg--pending { background: #fdf6ea; border: 1px dashed #d9a24a; }
.mtg-bar.is-pending {
  background: rgba(255, 255, 255, .92);
  border: 1px dashed var(--bar, var(--brand));
  color: var(--ink-2);
  box-shadow: none;
}
.mtg-bar.is-pending b { color: var(--ink); }
.mtg-bar.is-pending span { color: var(--ink-3); opacity: 1; }
.mtg-bar.is-pending::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(226, 149, 42, .10) 0 6px, transparent 6px 12px);
  pointer-events: none;
}
.mtg-chip.is-pending { background: #fdf6ea; border-color: #f0dab4; color: #a8691a; }

.appr-card { margin-top: 20px; }
.appr-list { display: flex; flex-direction: column; gap: 10px; padding: 4px 20px 18px; }
.appr-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcff;
}
.appr-main { flex: 1; min-width: 0; }
.appr-title { font-weight: 600; color: var(--ink); }
.appr-sub { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.appr-who { font-size: 13px; color: var(--ink-4); margin-top: 3px; }
.appr-act { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.appr-reject .input { height: 32px; font-size: 13.5px; width: 168px; }

.rule-card { margin-top: 4px; }
.rule-list { padding: 4px 20px; }
.rule-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f0f3f9; }
.rule-row:last-child { border-bottom: 0; }
.rule-main { flex: 1; min-width: 0; }
.rule-name { font-weight: 600; color: var(--ink); }
.rule-meta { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.rule-state { font-size: 13.5px; color: var(--ink-3); white-space: nowrap; }
.rule-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; border-top: 1px solid var(--line); }
.rule-foot .hint { max-width: 660px; }

@media (max-width: 900px) {
  .appr-row { flex-wrap: wrap; }
  .appr-reject { width: 100%; }
  .appr-reject .input { flex: 1; width: auto; }
}
@media (max-width: 760px) {
  .appr-list { padding: 2px 14px 14px; }
  .appr-row { padding: 12px; }
  .rule-list { padding: 2px 14px; }
  .rule-row { flex-wrap: wrap; }
  .rule-state { width: 100%; order: 3; }
  .rule-foot { flex-direction: column; align-items: stretch; padding: 14px; }
}
.bal-card { margin-top: 16px; }
.bal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 4px 20px 18px; }
.bal { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fbfcff; }
.bal-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bal-type { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.bal-value { font-size: 28px; font-weight: 700; color: var(--ink); margin-top: 6px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.bal-value small { font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.bal-bar { height: 6px; border-radius: 99px; background: #eef2f9; margin: 9px 0 6px; overflow: hidden; }
.bal-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2b59ff, #6a4cf0); }
.bal-sub { font-size: 13px; color: var(--ink-3); }
.mk-sec { padding: 4px 0 8px; }
.mk-sec-title { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 6px 20px 2px; display: flex; align-items: center; gap: 8px; }
@media (max-width: 900px) { .bal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .bal-grid { padding: 2px 14px 14px; gap: 10px; }
  .mk-sec-title { padding: 6px 14px 2px; }
}
/* v20 read-only account */
.tb-readonly { display:inline-flex; align-items:center; gap:4px; height:26px; padding:0 9px; border-radius:999px; background:#f0f3f9; color:#64748b; font-size: 13.5px; font-weight:600; letter-spacing:.02em; }
.tb-readonly svg { width:13px; height:13px; }
.cell-muted { color:var(--ink-4); }
.mtg-slot.is-locked { pointer-events:none; cursor:default; }
@media (max-width:640px) { .tb-readonly { padding:0 8px; font-size: 12.5px; } }
/* v21 meeting upcoming strip */
.mtg-soon { display:flex; align-items:center; gap:12px; padding:12px 16px; border:1px solid #dbe4ff; background:linear-gradient(90deg,#f3f6ff,#fff); border-radius:12px; margin-bottom:20px; }
.mtg-soon.is-urgent { border-color:#ffe0b8; background:linear-gradient(90deg,#fff7ec,#fff); }
.mtg-soon-icon { width:32px; height:32px; border-radius:10px; background:#e8eeff; color:#2f6bff; display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.mtg-soon.is-urgent .mtg-soon-icon { background:#fff0da; color:#d0811f; }
.mtg-soon-main { display:flex; flex-direction:column; line-height:1.35; min-width:0; }
.mtg-soon-main b { font-size: 15.5px; color:var(--ink); }
.mtg-soon-main span { font-size: 13.5px; color:var(--ink-4); }
.mtg-soon-when { margin-left:auto; font-size: 14.5px; font-weight:600; color:#2f6bff; white-space:nowrap; }
.mtg-soon.is-urgent .mtg-soon-when { color:#d0811f; }
@media (max-width:640px) {
  .mtg-soon { flex-wrap:wrap; gap:10px; padding:12px; margin-bottom:14px; }
  .mtg-soon-main { flex:1 1 60%; }
  .mtg-soon-when { margin-left:0; order:3; }
  .mtg-soon .btn { order:4; margin-left:auto; }
}
/* v23 meeting week view */
.mtg-view-switch{display:inline-flex;align-items:center;gap:2px;background:#eef1f7;border-radius:10px;padding:3px;margin-right:2px}
.mtg-vs{padding:6px 12px;border-radius:8px;font-size: 14.5px;font-weight:600;color:var(--ink-3);text-decoration:none;line-height:1.2;transition:background .18s ease,color .18s ease}
.mtg-vs:hover{color:var(--ink)}
.mtg-vs.is-on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(16,24,40,.1)}

.wk-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;padding:16px 18px 20px}
.wk-col{position:relative;display:flex;flex-direction:column;min-height:232px;padding:10px;border:1px solid var(--line);border-radius:14px;background:#fbfcfe}
.wk-col.is-today{border-color:rgba(106,76,240,.38);background:#f7f5ff}
.wk-head{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:2px 4px 8px;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}
.wk-week{font-size: 13px;color:var(--ink-3)}
.wk-head b{font-size: 21px;line-height:1.15;font-variant-numeric:tabular-nums}
.wk-month{font-size: 12.5px;color:var(--ink-3)}
.wk-body{display:flex;flex-direction:column;gap:6px;flex:1;padding-top:8px}
.wk-ev{padding:6px 8px;border-left:3px solid var(--ev);border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.05)}
.wk-ev.is-mine{background:#f4f1ff}
.wk-ev.is-pending{border-left-style:dashed;opacity:.86}
.wk-ev-time{font-size: 12.5px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.wk-ev-title{display:block;margin:1px 0 2px;font-size: 14px;line-height:1.35}
.wk-ev-meta{font-size: 12.5px;color:var(--ink-3)}
.wk-empty{padding:18px 0;text-align:center;font-size: 13.5px;color:var(--ink-3)}
.wk-count{position:absolute;top:8px;right:10px;padding:1px 7px;border:1px solid var(--line);border-radius:99px;background:#fff;font-size: 12px;color:var(--ink-3)}

@media (max-width: 900px){
  .wk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 640px){
  .page-actions{flex-wrap:wrap;gap:8px}
  .wk-grid{grid-template-columns:1fr;gap:10px;padding:14px}
  .wk-col{min-height:0}
  .wk-body{flex-direction:row;flex-wrap:wrap}
  .wk-ev{flex:1 1 46%}
}
@media (max-width: 640px){
  .page-actions .mtg-view-switch{flex:1 1 100%;justify-content:center;margin:0}
  .wk-col{padding:12px}
  .wk-empty{padding:10px 0}
}
/* v23b week filter + detail */
.wk-filter{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:0 18px 4px}
.wk-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border:1px solid var(--line);border-radius:99px;background:#fff;font-size: 14px;color:var(--ink-2);text-decoration:none;transition:all .16s ease}
.wk-chip:hover{border-color:rgba(106,76,240,.35);color:var(--ink)}
.wk-chip.is-on{border-color:transparent;background:rgba(106,76,240,.1);color:#5a3fd6;font-weight:600}
.wk-chip i{width:7px;height:7px;border-radius:50%;display:inline-block}
.wk-filter-hint{margin-left:auto;font-size: 13px;color:var(--ink-3)}
.wk-ev.is-click{cursor:pointer;transition:box-shadow .16s ease,transform .16s ease}
.wk-ev.is-click:hover{box-shadow:0 4px 12px rgba(16,24,40,.12);transform:translateY(-1px)}
.wk-detail{display:flex;flex-direction:column;gap:12px;padding-bottom:18px}
.wk-d-row{display:flex;align-items:flex-start;gap:14px;font-size: 15px}
.wk-d-row>span:first-child{flex:0 0 70px;color:var(--ink-3);font-size: 14px}
.wk-d-row>b{font-weight:600;color:var(--ink);line-height:1.5}
@media (max-width:640px){
  .wk-filter{padding:0 14px 4px}
  .wk-filter-hint{margin-left:0;flex:1 1 100%}
}
#wkEvent .drawer-body{display:flex;flex-direction:column}
#wkEvent .wk-detail{flex:1}
#wkEvent .wk-d-row{padding:2px 0}
#wkEvent .wk-d-row>b{font-size: 15px}
/* v25 week detail actions */
.wk-act{display:flex;flex-direction:column;gap:8px;padding:14px 20px;border-top:1px solid var(--line);background:var(--bg-soft)}
.wk-act form{margin:0}
.wk-act .btn{width:100%;justify-content:center}
.wk-act-reject{display:flex;gap:8px}
.wk-act-reject .input{flex:1;min-width:0}
.wk-act-reject .btn{width:auto;flex:0 0 auto}
.wk-act-tip{font-size: 14px;color:var(--muted)}
#wkEvCancelRow{background:transparent;border-top:0;padding:6px 20px 12px}
.wk-act[hidden]{display:none}
/* v26 week quick book */
.wk-empty-add{width:100%;border:1px dashed var(--line);background:transparent;color:var(--muted);border-radius:8px;padding:8px 0;font-size: 14px;cursor:pointer;transition:.15s}
.wk-empty-add:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-50,rgba(37,99,235,.06))}
.wk-add{display:block;width:100%;margin-top:8px;border:0;background:transparent;color:var(--muted);font-size: 13.5px;line-height:20px;cursor:pointer;border-radius:6px;transition:.15s}
.wk-add:hover{background:var(--primary-50,rgba(37,99,235,.08));color:var(--primary)}
/* v27 quick book (30/60/90) */
.qk-slot{padding:10px 12px;border-radius:10px;border:1px solid rgba(37,99,235,.18);background:linear-gradient(90deg,rgba(37,99,235,.09),rgba(37,99,235,.02));font-size: 14.5px;color:var(--ink-2)}
.qk-dur{display:flex;gap:8px}
.qk-dur label{flex:1;position:relative}
.qk-dur input{position:absolute;opacity:0;pointer-events:none}
.qk-dur span{display:block;padding:8px 0;text-align:center;border:1px solid var(--line);border-radius:8px;font-size: 14.5px;color:var(--ink-2);cursor:pointer;transition:.15s}
.qk-dur span:hover{border-color:rgba(37,99,235,.35)}
.qk-dur input:checked + span{border-color:var(--primary);background:rgba(37,99,235,.08);color:var(--primary);font-weight:600}
.qk-dur input:checked + span{background:#eef2ff;border-color:#2f6bff;color:#1d4ed8;box-shadow:0 0 0 3px rgba(47,107,255,.10)}
.qk-dur input:focus-visible + span{outline:2px solid rgba(47,107,255,.45);outline-offset:2px}

/* v28 quick book 补全信息 */
.wk-ev-fill{display:inline-block;margin-left:4px;padding:1px 5px;border-radius:6px;background:#fff4e5;color:#b45309;font-style:normal;font-size: 11.5px;line-height:15px;vertical-align:1px;white-space:nowrap}
.wk-fill .wk-act-tip{margin-bottom:10px}
.wk-fill form{display:flex;flex-direction:column;gap:6px}
.wk-f-label{font-size: 13.5px;color:var(--muted,#6b7280);margin-top:2px}
.wk-f-two{display:grid;grid-template-columns:110px 1fr;gap:10px}
.wk-fill .btn{align-self:flex-start;margin-top:6px}
@media (max-width:640px){.wk-f-two{grid-template-columns:1fr}}

/* v28 修正 */
.wk-d-row[hidden]{display:none!important}
.wk-fill .btn{width:auto!important;padding-left:16px;padding-right:16px}
.wk-fill .wk-f-label{display:block;margin:8px 0 4px}
.wk-fill .wk-act-tip{color:#b45309}

/* v30 快速占位记住上次 */
.qk-two{display:grid;grid-template-columns:1fr 96px;gap:10px;align-items:end}
@media (max-width:640px){.qk-two{grid-template-columns:1fr 84px}}

.qk-two{align-items:start}

/* v36 全站字号提升配套：阅读留白、触控尺寸与移动端节奏 */
:root { --sidebar-w: 264px; --topbar-h: 70px; }
body { line-height: 1.65; }
.tenant-brand { padding: 17px 16px 15px; }
.nav-item { padding: 10px 12px; margin-bottom: 3px; }
.tb-search { height: 40px; min-width: 272px; }
.tb-search input { height: 100%; }
.tb-icon, .tb-burger { width: 40px; height: 40px; }
.btn { height: 40px; padding: 0 16px; }
.btn--sm { height: 34px; padding: 0 12px; }
.btn--xs { height: 29px; padding: 0 10px; }
.input, .select { height: 42px; padding: 0 13px; }
.textarea { padding: 11px 13px; }
.card-body { padding: 22px; }
.table thead th { padding: 12px 16px; }
.table tbody td { padding: 14px 16px; }
.pager { padding: 15px 20px; }
.auth-card { max-width: 410px; }
.auth-desc { max-width: 490px; }
.auth-form .btn--primary { height: 46px; }
.auth-panel { padding: 42px 34px; }

@media (max-width: 980px) {
  .sidebar { width: 288px; flex-basis: 288px; }
  .topbar { padding: 0 14px; }
  .content { padding: 22px 16px 60px; }
}

@media (max-width: 760px) {
  :root { --topbar-h: 64px; }
  .content { padding: 20px 14px 56px; }
  .table tbody tr { padding: 15px 16px; }
  .table tbody td { padding: 5px 0; gap: 14px; }
  .table tbody td.actions { padding-top: 9px; }
  .table tbody td:first-child { padding-bottom: 9px; }
  .auth-visual { padding: 28px 20px 24px; }
  .auth-panel { padding: 24px 18px 40px; }
  .auth-headline { margin-top: 22px; }
  .demo-acc { padding: 10px 12px; }
  .card-body { padding: 18px 16px; }
  .pager { padding: 14px 16px; }
}

@media (max-width: 420px) {
  .auth-panel { padding: 22px 14px 36px; }
  .table tbody tr { padding: 14px; }
}

/* v31 会议室设置 + 详情编辑 */
.rule-form{display:grid;grid-template-columns:repeat(5,1fr) auto;gap:12px;align-items:end;padding:16px 20px 20px}
.rule-form .field{margin:0}
.rule-submit{display:flex;flex-direction:column;justify-content:flex-end}
.rule-row.is-off{opacity:.6}
.rule-row form{margin:0}
@media (max-width:900px){.rule-form{grid-template-columns:repeat(2,1fr)}.rule-submit{grid-column:1/-1}}
@media (max-width:560px){.rule-form{grid-template-columns:1fr}}
#wkEvent .wk-fill{max-height:none}

/* 帮助台 v1 */
.kb-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:20px}
.kb-card{display:flex;flex-direction:column;gap:10px;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow-sm);transition:transform .16s ease,box-shadow .16s ease;min-height:172px}
.kb-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.kb-card-top,.kb-card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}
.kb-card h3{font-size:16.5px;line-height:1.5;margin:0;color:var(--ink)}
.kb-card p{font-size:13.5px;line-height:1.7;color:var(--ink-3);margin:0;flex:1}
.kb-card-foot{font-size:12.5px;color:var(--ink-4);border-top:1px solid var(--line);padding-top:10px}
.hd-thread{display:grid;gap:14px}
.hd-msg{border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:var(--surface-2)}
.hd-msg.is-agent{background:#f5f8ff;border-color:#dfe7fb}
.hd-msg.is-requester{background:#fff;border-color:var(--line)}
.hd-msg.is-internal{background:#fff8ea;border-color:#f2dfb8;border-style:dashed}
.hd-msg-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.hd-msg-head b{font-size:13.5px;color:var(--ink)}
.hd-msg-head .pill{height:22px;padding:0 8px;font-size:11.5px}
.hd-time{margin-left:auto;font-size:12px;color:var(--ink-4);white-space:nowrap}
.hd-msg-body{font-size:14.5px;line-height:1.75;color:var(--ink-2);word-break:break-word}
.hd-files{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.hd-files .pill{gap:5px;max-width:100%;overflow:hidden}
.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 20px}
.detail-grid label{display:block;font-size:11.5px;letter-spacing:.04em;color:var(--ink-4);text-transform:uppercase;margin-bottom:4px}
.detail-grid>div{font-size:14px;color:var(--ink-2);min-width:0;overflow-wrap:anywhere}
.filter-bar .field{min-width:140px;margin:0}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;color:var(--ink-3)}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}
@media (max-width:1020px){.kb-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.kb-grid{grid-template-columns:1fr;gap:14px}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid{grid-template-columns:1fr}.hd-msg{padding:12px}.hd-time{width:100%;margin-left:0}.grid-2{gap:0}.filter-bar .field{min-width:100%;flex:1 1 100%}}
