/* ==========================================================================
   学员交付中台 · 设计系统 v2
   原则：信息密度优先、数字等宽、颜色只表达状态；无外部字体/CDN（内网离线可用）
   目录：Tokens / Base / Shell(侧栏·顶栏) / Page / Card / KPI / Table / Badge /
        Button / Form / Tabs / Notice / 业务组件 / Login / Utilities / Responsive / Print
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --surface-2: #F9FAFB;
  --surface-3: #F2F4F7;
  --border: #E6E8EC;
  --border-strong: #D5D9E0;

  --text: #101828;
  --text-2: #475467;
  --text-3: #8A94A6;

  /* 品牌色（珠峰学苑 Logo）：深蓝 #2E62AD · 天蓝 #61C5E4 · 橙 #F7B165 */
  --accent: #2E62AD;
  --accent-hover: #244F8E;
  --accent-soft: #EDF3FB;
  --accent-border: #CCDCF0;
  --brand-sky: #61C5E4;
  --brand-orange: #F7B165;

  --green: #067A57;  --green-soft: #E8F6F0; --green-border: #BFE6D5;
  --amber: #B54708;  --amber-soft: #FFF5E8; --amber-border: #FBD9A8;
  --red: #C4320A;    --red-soft: #FEF1EC;   --red-border: #F9CBB8;
  --blue: #1E5BD8;   --blue-soft: #EDF3FF;  --blue-border: #CADBFB;
  --purple: #6941C6; --purple-soft: #F4F0FF;

  --side-bg: #0B1630;
  --side-hover: rgba(255, 255, 255, 0.06);
  --side-active: rgba(255, 255, 255, 0.10);
  --side-text: rgba(255, 255, 255, 0.70);
  --side-dim: rgba(255, 255, 255, 0.38);
  --side-width: 232px;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 16px 40px -8px rgba(16, 24, 40, 0.18), 0 4px 10px -4px rgba(16, 24, 40, 0.08);
  --ring: 0 0 0 3px rgba(46, 98, 173, 0.16);
  --t: 140ms cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 14px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" 0;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
table { border-collapse: collapse; border-spacing: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(46, 98, 173, 0.16); }
svg.ico { width: 16px; height: 16px; flex: 0 0 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Shell ---------- */
.app { display: flex; min-height: 100vh; }
.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.content { width: 100%; max-width: 1440px; margin: 0 auto; padding: 24px 28px 48px; }

.sidebar {
  position: sticky; top: 0; height: 100vh; flex: 0 0 var(--side-width); width: var(--side-width);
  display: flex; flex-direction: column; padding: 14px 10px 12px; overflow-y: auto;
  background: var(--side-bg); color: var(--side-text);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; }
.brand-logo { display: block; flex: 0 0 auto; }
.brand-wordmark { display: block; height: 26px; width: auto; }
.brand-app { margin-top: 8px; color: rgba(255,255,255,.86); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.brand-stack { display: block; padding: 8px 10px 20px; }
.brand-title { color: #fff; font-size: 14.5px; font-weight: 650; line-height: 1.3; letter-spacing: .01em; }
.brand-sub { margin-top: 2px; color: var(--side-dim); font-size: 11px; }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav-group { padding: 14px 12px 6px; color: var(--side-dim); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px;
  border-radius: 8px; color: var(--side-text); font-size: 13.5px; font-weight: 500;
  transition: background var(--t), color var(--t);
}
.nav-item:hover { background: var(--side-hover); color: #fff; }
.nav-item.active { background: var(--side-active); color: #fff; }
.nav-item.active::before {
  content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #61C5E4;
}
.nav-item .ico { opacity: .85; }
.nav-item .nav-count { margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: #F04438; color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.sidebar-foot { margin-top: auto; padding: 12px 8px 2px; border-top: 1px solid rgba(255,255,255,.08); }
.me-card { display: flex; align-items: center; gap: 10px; padding: 6px 4px; }
.avatar { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: #253050; color: #DDE3FF; font-size: 13px; font-weight: 600; }
.me-name { color: #fff; font-size: 13px; font-weight: 600; line-height: 1.3; }
.me-role { color: var(--side-dim); font-size: 11.5px; }
.me-links { display: flex; gap: 4px; margin-top: 6px; }
.me-links a { flex: 1; padding: 5px 0; border-radius: 6px; color: var(--side-text); font-size: 12px; text-align: center; background: rgba(255,255,255,.04); }
.me-links a:hover { background: var(--side-hover); color: #fff; }

.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 28px;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.crumb { color: var(--text-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb b { color: var(--text); font-weight: 600; }
.top-search { position: relative; margin-left: auto; width: min(340px, 40vw); }
.top-search input {
  width: 100%; height: 34px; padding: 0 12px 0 34px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface-2); font-size: 13px; transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.top-search input:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: var(--ring); }
.top-search .ico { position: absolute; left: 11px; top: 9px; color: var(--text-3); }
.top-search kbd { position: absolute; right: 8px; top: 7px; padding: 1px 6px; border: 1px solid var(--border); border-radius: 5px; color: var(--text-3); font: 11px var(--font-mono); background: #fff; }
.top-actions { position: relative; display: flex; align-items: center; gap: 10px; }
.top-date { color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.icon-btn {
  position: relative; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--border);
  border-radius: 9px; background: #fff; color: var(--text-2); cursor: pointer; transition: background var(--t), color var(--t);
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.nav-toggle { display: none; }
.notify-badge {
  position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid #fff;
  border-radius: 9px; background: #F04438; color: #fff; font-size: 10px; font-weight: 700; line-height: 13px; text-align: center;
}
.notify-panel {
  position: absolute; top: 44px; right: 0; z-index: 50; width: 360px; max-height: 480px; overflow: auto;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.notify-panel-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: #fff; border-bottom: 1px solid var(--border); }
.notify-list { padding: 6px; }
.notify-item { display: block; padding: 10px; border-radius: 8px; color: var(--text); }
.notify-item:hover { background: var(--surface-2); }
.notify-item.unread .notify-title::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.notify-title { font-size: 13px; font-weight: 600; }
.notify-body { margin-top: 2px; color: var(--text-2); font-size: 12px; }
.notify-time { margin-top: 2px; color: var(--text-3); font-size: 11.5px; }
.scrim { display: none; }

/* ---------- Page ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-title { color: var(--text); font-size: 22px; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
.page-desc { margin-top: 4px; color: var(--text-2); font-size: 13.5px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; color: var(--text-3); font-size: 13px; }
.back-link:hover { color: var(--text); }
.section-title { margin: 24px 0 12px; color: var(--text); font-size: 15px; font-weight: 650; }

/* ---------- Card ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-xs); min-width: 0; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-title { color: var(--text); font-size: 14.5px; font-weight: 650; line-height: 1.4; }
.card-subtitle { margin: 4px 0 8px; color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.card-body { padding: 16px 18px; }
.card-body > .table-wrap:only-child { margin: -16px -18px; width: calc(100% + 36px); }
.card-head + .card-body > .table-wrap:first-child { margin-top: -16px; }
.card > .table-wrap { border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- KPI ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi {
  position: relative; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-xs); overflow: hidden;
}
.kpi-label { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.kpi-value { margin: 6px 0 2px; color: var(--text); font-size: 26px; font-weight: 650; line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-sub { color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: transparent; }
.kpi.blue::after { background: var(--accent); }
.kpi.warn::after { background: #F79009; }
.kpi.danger::after { background: #F04438; }
.kpi.green::after { background: #12B76A; }
.kpi.warn .kpi-value { color: var(--amber); }
.kpi.danger .kpi-value { color: var(--red); }
a.kpi { display: block; color: inherit; transition: border-color var(--t), box-shadow var(--t), transform var(--t); }
a.kpi:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }

/* ---------- Table ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; min-width: 640px; font-size: 13px; line-height: 1.45; }
.table th {
  position: sticky; top: 0; z-index: 1; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border);
  color: var(--text-3); font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap;
}
.table td { padding: 11px 14px; border-bottom: 1px solid #EEF0F3; color: var(--text); vertical-align: middle; }
.table tbody tr { transition: background var(--t); }
.table tbody tr:hover { background: #FAFBFC; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table td b { font-weight: 600; }
.table td a:not(.btn) { color: var(--text); font-weight: 600; }
.table td a:not(.btn):hover { color: var(--accent); }
.row-me { background: var(--accent-soft) !important; }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 12.5px; }
.pager { display: flex; gap: 4px; }
.pager a, .pager span { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid var(--border); border-radius: 7px; color: var(--text-2); font-size: 12.5px; background: #fff; }
.pager a:hover { border-color: var(--border-strong); color: var(--text); }
.pager .cur { border-color: var(--accent); color: var(--accent); font-weight: 600; background: var(--accent-soft); }
.pager .dis { color: var(--text-3); background: var(--surface-2); }
.empty { padding: 40px 16px; color: var(--text-3); font-size: 13px; text-align: center; }
.empty::before { content: ""; display: block; width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 12px; background: var(--surface-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A94A6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E") center/20px no-repeat; }

/* ---------- Badge / Dot ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; vertical-align: middle;
  color: var(--text-2); background: var(--surface-3); border: 1px solid transparent;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge-gray { color: #475467; background: #F2F4F7; }
.badge-blue { color: var(--blue); background: var(--blue-soft); }
.badge-green, .badge-a { color: var(--green); background: var(--green-soft); }
.badge-orange, .badge-b { color: var(--amber); background: var(--amber-soft); }
.badge-red, .badge-c { color: var(--red); background: var(--red-soft); }
.badge-purple { color: var(--purple); background: var(--purple-soft); }
.badge-plain::before { display: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.dot-a { background: #12B76A; } .dot-b { background: #F79009; } .dot-c { background: #F04438; }
.integration-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: #12B76A; }

/* ---------- Button ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px;
  border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 550; line-height: 1;
  white-space: nowrap; cursor: pointer; user-select: none; text-decoration: none;
  transition: background var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
}
.btn:hover { text-decoration: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.12), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--border); color: var(--text); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.btn-danger { background: #fff; border-color: var(--red-border); color: var(--red); }
.btn-danger:hover { background: var(--red-soft); color: var(--red); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn-block { width: 100%; height: 40px; font-size: 14px; }
.btn.is-loading { pointer-events: none; opacity: .7; }
.btn.is-loading::after { content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--accent); font-weight: 500; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; min-width: 0; }
.field.full, .form-actions.full { grid-column: 1 / -1; }
.field label, .field > span:first-child { margin-bottom: 6px; color: var(--text); font-size: 12.5px; font-weight: 600; }
.field input, .field select, .field textarea, .input, .filters select, .inline-form select, .inline-form input:not([type=checkbox]):not([type=radio]),
.mb-grid input, .mb-grid select, .lv-row input:not([type=checkbox]), .lv-row select, .mb-sort {
  width: 100%; height: 36px; padding: 0 11px; border: 1px solid var(--border-strong); border-radius: 8px;
  background: #fff; color: var(--text); font-size: 13.5px; box-shadow: var(--shadow-xs);
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { height: auto; min-height: 84px; padding: 9px 11px; line-height: 1.6; resize: vertical; }
.field select, .filters select, .inline-form select, .mb-grid select, .lv-row select, .mb-sort {
  appearance: none; -webkit-appearance: none; padding-right: 30px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A94A6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 9px center/14px no-repeat;
}
.field input::placeholder, .field textarea::placeholder, .input::placeholder { color: #A3ABBA; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus, .filters select:focus, .inline-form select:focus, .inline-form input:focus,
.mb-grid input:focus, .mb-grid select:focus, .lv-row input:focus, .lv-row select:focus {
  outline: none; border-color: var(--accent); box-shadow: var(--ring);
}
.field input:disabled, .field select:disabled, .field textarea:disabled { background: var(--surface-3); color: var(--text-3); cursor: not-allowed; }
.field input[type="checkbox"], .field input[type="radio"] { width: 16px; height: 16px; box-shadow: none; accent-color: var(--accent); }
.field .hint, .hint { margin-top: 5px; color: var(--text-3); font-size: 12px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.form-section { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.form-section + .form-section { margin-top: 14px; }
.form-section-title { margin-bottom: 12px; color: var(--text); font-size: 13.5px; font-weight: 650; }
.stack-form .field { margin-bottom: 12px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.inline-form select, .inline-form input:not([type=checkbox]):not([type=radio]) { width: auto; height: 28px; padding: 0 8px; font-size: 12.5px; border-radius: 7px; }
.inline-form select { padding-right: 26px; background-position: right 6px center; }
.inline-form input[name="note"], .inline-form input[name="reason"] { width: 150px; }
.inline-form input[name="amount"] { width: 96px; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--accent); }
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filters .input { flex: 1 1 220px; max-width: 300px; }
.filters select { width: auto; min-width: 140px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  color: var(--text-2); font-size: 13.5px; font-weight: 500; white-space: nowrap; cursor: pointer; border: 0; background: none;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); font-weight: 600; }
.tab.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.tab .count { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--surface-3); color: var(--text-2); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.tab.active .count { background: var(--accent-soft); color: var(--accent); }
.card .tabs { margin: 0; padding: 0 10px; }
.segmented { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--surface-3); gap: 2px; }
.segmented a { height: 28px; padding: 0 12px; border-radius: 7px; color: var(--text-2); font-size: 12.5px; font-weight: 550; line-height: 28px; }
.segmented a:hover { color: var(--text); }
.segmented a.on { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
[data-tab-panel][hidden] { display: none !important; }

/* ---------- Notice ---------- */
.notice {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; margin-bottom: 14px; border: 1px solid var(--notice-border, var(--border));
  border-radius: 10px; background: var(--notice-bg, var(--surface-2)); color: var(--notice-fg, var(--text-2)); font-size: 13px; line-height: 1.6;
}
.notice a { color: inherit; font-weight: 600; text-decoration: underline; }
.notice-info { --notice-fg: #1D4ED8; --notice-bg: var(--blue-soft); --notice-border: var(--blue-border); }
.notice-warn { --notice-fg: var(--amber); --notice-bg: var(--amber-soft); --notice-border: var(--amber-border); }
.notice-danger { --notice-fg: var(--red); --notice-bg: var(--red-soft); --notice-border: var(--red-border); }
.notice-success { --notice-fg: var(--green); --notice-bg: var(--green-soft); --notice-border: var(--green-border); }
.notice .ico { margin-top: 2px; }
.notice-close { margin-left: auto; border: 0; background: none; color: inherit; opacity: .6; cursor: pointer; font-size: 16px; line-height: 1; }

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.split > .card + .card, .grid-2 > .card + .card, .grid-3 > .card + .card, .chart-grid > .card + .card { margin-top: 0; }
.side-col > .card + .card { margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.flex { display: flex; align-items: center; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-8 { margin-bottom: 8px; }
.muted { color: var(--text-3); }
.mono { font-family: var(--font-mono); font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
.wide { min-width: 380px; }
.danger-text { color: var(--red); }
.code-block { padding: 12px 14px; border-radius: 10px; background: #0C111D; color: #E4E7EC; font: 12.5px/1.7 var(--font-mono); white-space: pre-wrap; word-break: break-all; overflow-x: auto; }

/* ---------- Charts ---------- */
.chart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.chart-card { display: flex; flex-direction: column; }
.chart-card.span2 { grid-column: span 2; }
.chart-card.span3 { grid-column: 1 / -1; }
.chart { width: 100%; height: 280px; padding: 8px 10px 4px; }
.chart-lg { height: 320px; }

/* ---------- 列表 / 进度 / 统计块 ---------- */
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #EEF0F3; }
.list-item:first-child { padding-top: 0; }
.list-item:last-child { padding-bottom: 0; border-bottom: 0; }
.progress { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.progress.warn > span { background: #F79009; } .progress.danger > span { background: #F04438; }
.stat-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.stat { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: 12px; }
.stat b { display: block; margin-top: 3px; color: var(--text); font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---------- Timeline ---------- */
.timeline { position: relative; }
.timeline-item { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 0 0 16px 22px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: -2px; width: 2px; background: #EEF0F3; }
.timeline-item:last-child::before { display: none; }
.timeline-dot { position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.timeline-dot.green, .timeline-dot.a { background: #12B76A; box-shadow: 0 0 0 3px var(--green-soft); }
.timeline-dot.orange, .timeline-dot.b, .timeline-dot.warn { background: #F79009; box-shadow: 0 0 0 3px var(--amber-soft); }
.timeline-dot.red, .timeline-dot.c, .timeline-dot.danger { background: #F04438; box-shadow: 0 0 0 3px var(--red-soft); }
.timeline-dot.gray { background: var(--text-3); box-shadow: 0 0 0 3px var(--surface-3); }
.timeline-title { color: var(--text); font-size: 13.5px; font-weight: 600; }
.timeline-body .muted { font-size: 12.5px; }
.timeline-time { color: var(--text-3); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- 学员 360 ---------- */
.profile { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 22px; flex-wrap: wrap; }
.profile-main { display: flex; gap: 16px; min-width: 0; }
.profile-avatar { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(140deg, #EEF1FD, #DCE3FB); color: var(--accent); font-size: 20px; font-weight: 700; }
.profile-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--text); font-size: 20px; font-weight: 650; line-height: 1.3; }
.profile-meta { margin-top: 4px; color: var(--text-2); font-size: 13px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; color: var(--text-2); font-size: 12.5px; }
.profile-tags b { color: var(--text); font-weight: 600; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border-top: 1px solid var(--border); }
.profile-strip > div { padding: 12px 22px; border-right: 1px solid var(--border); }
.profile-strip > div:last-child { border-right: 0; }
.profile-strip span { display: block; color: var(--text-3); font-size: 12px; }
.profile-strip b { display: block; margin-top: 2px; color: var(--text); font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---------- 退费 ---------- */
.refund-card { padding: 14px 16px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-xs); }
.refund-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
.refund-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr .8fr 1.2fr; gap: 12px; padding-top: 10px; font-size: 12.5px; color: var(--text-2); }
.refund-grid b { color: var(--text); font-size: 13px; }
.refund-item { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.rate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.rate-block { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.rate-line { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 12.5px; color: var(--text-2); }
.rate-track { position: relative; flex: 1; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.rate-track > span { display: block; height: 100%; border-radius: inherit; background: #12B76A; }
.rate-track > span.warn { background: #F79009; } .rate-track > span.danger { background: #F04438; }
.rate-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); font-size: 12px; font-weight: 600; }

/* ---------- 营期 / 组织 / 素材 / 字典 ---------- */
.term-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.term-card { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.term-card .card-head { min-height: 0; padding: 0; border: 0; margin-bottom: 10px; }
.term-stats { display: flex; gap: 16px; margin-bottom: 8px; color: var(--text-3); font-size: 12px; }
.term-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.org-tree { padding: 4px 0; }
.org-node { margin: 8px 0; }
.org-node .org-node { margin-left: 28px; position: relative; }
.org-box { display: inline-flex; align-items: center; gap: 10px; min-width: 220px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.material-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.material-card { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.dict-card { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.dict-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.dict-title { font-weight: 650; } .dict-count { color: var(--text-3); font-size: 12px; } .dict-hint { color: var(--text-3); font-size: 12px; }
.dict-body { padding: 14px 16px; }
.dict-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.dict-chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 4px 0 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); font-size: 12.5px; }
.dict-chip.off { opacity: .5; text-decoration: line-through; }
.dict-chip-x { border: 0; background: none; color: var(--text-3); cursor: pointer; padding: 0 6px; }
.dict-add { display: flex; gap: 6px; }
.qr-box { display: grid; place-items: center; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }

/* ---------- 上传 ---------- */
.upload-zone {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px dashed var(--border-strong); border-radius: 10px;
  background: var(--surface-2); cursor: pointer; transition: border-color var(--t), background var(--t);
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.upload-zone.uploading { opacity: .6; pointer-events: none; }
.upload-hint { color: var(--text-2); font-size: 13px; font-weight: 500; }
.upload-file { margin-left: auto; font-size: 12px; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 10px; background: #101828; color: #fff; font-size: 13px;
  box-shadow: var(--shadow-lg); animation: toast-in .2s ease;
}
.toast-ok::before { content: "✓"; color: #32D583; font-weight: 700; }
.toast-err { background: #B42318; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- Login（左品牌 · 右表单）---------- */
.lg { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(440px, .92fr); background: #fff; }
.lg-brand {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 44px 56px 36px; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(46,98,173,.55), transparent 62%),
    radial-gradient(700px 520px at 100% 100%, rgba(97,197,228,.16), transparent 60%),
    #0B1630;
}
.lg-brand::before { /* 细点阵，增加质感但不抢内容 */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%); mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}
.lg-logo { position: relative; z-index: 1; align-self: flex-start; width: auto; height: 32px; }
.lg-copy { position: relative; z-index: 1; max-width: 540px; }
.lg-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.78); font-size: 12.5px; letter-spacing: .04em; }
.lg-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-orange); box-shadow: 0 0 0 3px rgba(247,177,101,.18); }
.lg-copy h1 { margin: 22px 0 0; font-size: clamp(30px, 3.1vw, 42px); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.lg-copy h1 span { background: linear-gradient(90deg, #61C5E4, #A5DDF0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-copy p { margin: 16px 0 0; max-width: 470px; color: rgba(255,255,255,.62); font-size: 15px; line-height: 1.8; }
.lg-flow { position: relative; display: flex; justify-content: space-between; max-width: 500px; margin: 40px 0 0; padding: 0; list-style: none; }
.lg-flow::before { content: ""; position: absolute; left: 6px; right: 6px; top: 5px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #2E62AD, #61C5E4 60%, #F7B165); opacity: .75; }
.lg-flow li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12.5px; color: rgba(255,255,255,.72); }
.lg-flow i { width: 12px; height: 12px; border-radius: 50%; background: #0B1630; border: 2px solid #61C5E4; }
.lg-flow li:first-child i { border-color: #4E86D9; } .lg-flow li:last-child i { border-color: #F7B165; background: #F7B165; }
.lg-legal { position: relative; z-index: 1; color: rgba(255,255,255,.38); font-size: 12px; }
.lg-mark { position: absolute; right: -60px; bottom: -36px; width: 520px; height: auto; opacity: .2; pointer-events: none; }

.lg-main { display: grid; place-items: center; padding: 40px 24px; background: #fff; }
.lg-card { width: 100%; max-width: 384px; }
.lg-logo-m { display: none; height: 26px; width: auto; margin-bottom: 28px; }
.lg-card h2 { margin: 0; color: var(--text); font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.lg-sub { margin: 8px 0 0; color: var(--text-2); font-size: 14px; }
.lg-error { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding: 10px 12px; border: 1px solid var(--red-border); border-radius: 10px; background: var(--red-soft); color: var(--red); font-size: 13.5px; animation: lg-shake .32s ease; }
.lg-error svg { flex: 0 0 16px; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@keyframes lg-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.lg-form { display: grid; gap: 16px; margin-top: 26px; }
.lg-field { display: grid; gap: 7px; }
.lg-field > span { color: var(--text); font-size: 13px; font-weight: 600; }
.lg-input { position: relative; display: flex; align-items: center; height: 46px; border: 1px solid var(--border-strong); border-radius: 11px; background: #fff; transition: border-color var(--t), box-shadow var(--t); }
.lg-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(46,98,173,.12); }
.lg-input.is-error { border-color: #F04438; box-shadow: 0 0 0 4px rgba(240,68,56,.10); }
.lg-input > svg { flex: 0 0 18px; width: 18px; height: 18px; margin-left: 13px; fill: none; stroke: var(--text-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lg-input:focus-within > svg { stroke: var(--accent); }
.lg-input input { flex: 1; min-width: 0; height: 100%; padding: 0 12px 0 10px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; }
.lg-input input::placeholder { color: #A9B1BF; }
.lg-eye { display: grid; place-items: center; width: 40px; height: 40px; margin-right: 3px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.lg-eye svg { width: 18px; height: 18px; fill: none; stroke: var(--text-3); stroke-width: 1.8; }
.lg-eye:hover { background: var(--surface-3); } .lg-eye.on svg { stroke: var(--accent); }
.lg-caps { color: var(--amber); font-size: 12px; font-style: normal; }
.lg-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: -2px; font-size: 13px; }
.lg-check { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); cursor: pointer; }
.lg-check input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.lg-forgot { position: relative; text-align: right; }
.lg-forgot summary { list-style: none; color: var(--accent); cursor: pointer; }
.lg-forgot summary::-webkit-details-marker { display: none; }
.lg-forgot div { position: absolute; right: 0; top: 24px; z-index: 5; width: 240px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: var(--shadow-lg); color: var(--text-2); text-align: left; line-height: 1.6; }
.lg-submit {
  position: relative; height: 48px; margin-top: 4px; border: 0; border-radius: 12px; cursor: pointer; color: #fff; font: inherit; font-size: 15.5px; font-weight: 650; letter-spacing: .1em;
  background: linear-gradient(180deg, #3A70BF, #2E62AD); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 8px 20px -8px rgba(46,98,173,.75);
  transition: transform var(--t), box-shadow var(--t), filter var(--t);
}
.lg-submit:hover { filter: brightness(1.06); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 12px 24px -10px rgba(46,98,173,.85); }
.lg-submit:active { transform: translateY(1px); }
.lg-submit:focus-visible { outline: 3px solid rgba(46,98,173,.35); outline-offset: 2px; }
.lg-submit.loading { cursor: progress; filter: saturate(.8); }
.lg-submit.loading span::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: lg-spin .7s linear infinite; }
@keyframes lg-spin { to { transform: rotate(360deg); } }
.lg-secure { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--text-3); font-size: 12px; }
.lg-secure svg { width: 14px; height: 14px; fill: none; stroke: #12B76A; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lg-demo { margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--border); }
.lg-demo-title { margin-bottom: 10px; color: var(--text-3); font-size: 12px; font-weight: 600; }
.lg-demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.demo-account { padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px; background: #fff; text-align: left; cursor: pointer; transition: border-color var(--t), background var(--t); }
.demo-account:hover { border-color: var(--accent-border); background: var(--accent-soft); }
.demo-account b { display: block; color: var(--text); font-size: 12.5px; font-weight: 600; }
.demo-account span { display: block; color: var(--text-3); font-size: 11.5px; }
@media (max-width: 1024px) {
  .lg { grid-template-columns: minmax(0, 1fr); }
  .lg-brand { display: none; }
  .lg-main { align-items: start; padding: 56px 20px 32px; background: linear-gradient(180deg, #F3F7FC, #fff 260px); }
  .lg-logo-m { display: block; }
}

/* ---------- Status page ---------- */
.status-card { max-width: 520px; margin: 8vh auto; padding: 36px; text-align: center; }
.status-card .status-ico { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; background: var(--surface-3); color: var(--text-2); }
.status-card .status-ico svg.ico { width: 26px; height: 26px; }
.status-card h2 { font-size: 18px; font-weight: 650; }
.status-card p { margin: 8px 0 20px; color: var(--text-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-card.span2 { grid-column: 1 / -1; }
  .split { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 1024px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(12,17,29,.4); }
  .nav-toggle { display: grid; }
  .topbar { padding: 0 16px; }
  .content { padding: 18px 16px 40px; }
  .split, .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .refund-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .top-search { width: auto; flex: 1; }
  .top-search kbd, .top-date, .crumb { display: none; }
  .page-title { font-size: 19px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi-value { font-size: 20px; }
  .chart-grid { grid-template-columns: minmax(0, 1fr); }
  .chart-card.span2 { grid-column: auto; }
  .form-grid, .form-grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .card-head, .card-body { padding-left: 14px; padding-right: 14px; }
  .card-body > .table-wrap:only-child { margin: -16px -14px; width: calc(100% + 28px); }
  .profile { padding: 16px; }
  .profile-strip > div { padding: 10px 16px; }
  .stat-row, .refund-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notify-panel { position: fixed; top: 60px; left: 12px; right: 12px; width: auto; }
  .wide { min-width: 0; }
}

@media print {
  .sidebar, .topbar, .page-actions, .btn, form { display: none !important; }
  .content { padding: 0; max-width: none; }
  .card { box-shadow: none; break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- 学员 360 侧栏操作（手风琴） ---------- */
.side-title { margin: 2px 2px 10px; color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.action-card { overflow: hidden; }
.side-col > .action-card + .action-card { margin-top: 8px; }
.action-card > summary {
  display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 16px; cursor: pointer; list-style: none;
  color: var(--text); font-size: 13.5px; font-weight: 600; user-select: none;
}
.action-card > summary::-webkit-details-marker { display: none; }
.action-card > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.8px solid var(--text-3); border-bottom: 1.8px solid var(--text-3); transform: rotate(45deg) translateY(-2px); transition: transform var(--t); }
.action-card[open] > summary { border-bottom: 1px solid var(--border); }
.action-card[open] > summary::after { transform: rotate(-135deg) translate(-2px, 0); }
.action-card > summary:hover { background: var(--surface-2); }
section[data-tab-panel] > .card + .card { margin-top: 16px; }
@media (min-width: 1025px) {
  /* 侧栏背景铺满整页高度（长页面滚动时左侧不露底） */
  .app { background: linear-gradient(to right, var(--side-bg) var(--side-width), var(--bg) var(--side-width)); }
}
@media (min-width: 681px) { .kpi-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }
.table th, .table td.nowrap, .table td.num { white-space: nowrap; }
.table.wide-table { min-width: 1180px; }
.table.wide-table td { white-space: nowrap; }
.table.wide-table td.wide { white-space: normal; min-width: 360px; }

/* 提示条：带图标时左右排布，纯文字时按普通段落排版（避免 <b> 被当成独立列） */
.notice { display: block; }
.notice:has(> .ico) { display: flex; }
.notice-close { float: right; }
.notice:has(> .ico) .notice-close { float: none; }

/* ---------- 经营日报 ---------- */
.report-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.report-stat {
  position: relative; overflow: hidden; padding: 26px 28px 24px; border-radius: 16px; color: #fff;
  background: radial-gradient(600px 240px at 0% 0%, rgba(74,125,194,.7), transparent 60%), #0B1630;
  box-shadow: var(--shadow-sm);
}
.report-stat.refund { background: radial-gradient(600px 240px at 0% 0%, rgba(249,112,102,.42), transparent 60%), #160F12; }
.report-stat .label { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.72); font-size: 14px; font-weight: 500; }
.report-stat .label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #32D583; }
.report-stat.refund .label::before { background: #F97066; }
.report-stat .value { margin: 10px 0 8px; font-size: 44px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.report-stat.refund .value { color: #FDA29B; }
.report-stat .meta { color: rgba(255,255,255,.62); font-size: 13px; }
.report-stat .muted { color: rgba(255,255,255,.5); }
.delta { font-weight: 600; } .delta.good { color: #6CE9A6; } .delta.bad { color: #FDA29B; }
.report-canvas-wrap { display: grid; place-items: center; background: var(--surface-2); }
.report-canvas-wrap canvas { width: 100%; max-width: 460px; height: auto; border-radius: 14px; box-shadow: var(--shadow-lg); }
.mix-row + .mix-row { margin-top: 14px; }
.report-month { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.report-month span { display: block; color: var(--text-3); font-size: 12px; }
.report-month b { display: block; margin-top: 2px; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.action-card > summary .badge { margin-left: 8px; margin-right: auto; }
.report-side { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.report-side > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.report-side span { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12px; }
.report-side em { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 999px; background: var(--surface-2); color: var(--text-3); }
.report-side b { display: block; margin: 4px 0 2px; font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.report-side small { display: block; color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1024px) { .report-side { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .report-hero, .report-month { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .report-hero { grid-template-columns: minmax(0, 1fr); } .report-stat .value { font-size: 36px; } }

/* ---------- 字典编辑 / 设置页 ---------- */
.dict-table { min-width: 0; }
.dict-table td { padding-top: 9px; padding-bottom: 9px; }
.row-off td { color: var(--text-3); }
.dict-ops { display: inline-flex; align-items: center; gap: 4px; }
.dict-ops form { margin: 0; }
.icon-mini { width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text-2); cursor: pointer; font-size: 13px; line-height: 1; }
.icon-mini:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.icon-mini:disabled { opacity: .35; cursor: default; }
.dict-off { border-top: 1px solid var(--border); }
.dict-off > summary { padding: 10px 18px; color: var(--text-3); font-size: 12.5px; cursor: pointer; }
.dict-add { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.dict-add .input { flex: 1; height: 32px; }
.settings-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #EEF0F3; }
.setting-row:last-child { border-bottom: 0; }
.setting-row .t { font-weight: 600; } .setting-row .d { margin-top: 2px; color: var(--text-3); font-size: 12.5px; }
.switch { position: relative; width: 40px; height: 22px; flex: 0 0 40px; border: 0; border-radius: 11px; background: #D0D5DD; cursor: pointer; transition: background var(--t); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--t); }
.switch.on { background: var(--accent); } .switch.on::after { transform: translateX(18px); }
.chip-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-filter a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text-2); font-size: 12.5px; }
.chip-filter a b { color: var(--text); font-variant-numeric: tabular-nums; }
.chip-filter a.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
@media (max-width: 1024px) { .settings-cols { grid-template-columns: minmax(0, 1fr); } }
.settings-cols > .card + .card { margin-top: 0; }

/* ---------- 表单中心 / 线下课 ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tpl-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 14px 42px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: border-color var(--t), background var(--t); }
.tpl-card input { position: absolute; left: 16px; top: 17px; accent-color: var(--accent); }
.tpl-card span { color: var(--text-2); font-size: 12.5px; } .tpl-card em { color: var(--text-3); font-size: 12px; font-style: normal; }
.tpl-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.tpl-actions { grid-column: 1 / -1; display: flex; gap: 8px; } .tpl-actions .input { flex: 1; }
.field-list { display: grid; gap: 8px; }
.fb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.fb-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .fb-main .fb-label { flex: 1 1 220px; height: 34px; }
.fb-main select { width: 110px; height: 34px; } .fb-opts { grid-column: 1 / 2; height: auto !important; padding: 8px 11px !important; }
.fb-ops { display: flex; gap: 4px; grid-row: 1; grid-column: 2; }
.cell-clip { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.course-card { display: block; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--text); box-shadow: var(--shadow-xs); transition: border-color var(--t), box-shadow var(--t), transform var(--t); }
.course-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); color: var(--text); }
.course-funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
.course-funnel span { display: block; color: var(--text-3); font-size: 11.5px; } .course-funnel b { font-size: 19px; font-variant-numeric: tabular-nums; }
.course-funnel b.ok { color: var(--green); } .course-funnel b.bad { color: var(--red); } .course-funnel b.warn { color: var(--amber); }
.bulk-bar { position: sticky; top: 56px; z-index: 5; background: #fff; }
.row-warn { background: #FFFBF3; }
@media (max-width: 860px) { .tpl-grid { grid-template-columns: minmax(0, 1fr); } }
.resp { border: 1px solid var(--border); border-radius: 10px; }
.resp + .resp { margin-top: 8px; }
.resp > summary { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; cursor: pointer; list-style: none; }
.resp-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; padding: 4px 14px 14px; font-size: 13px; }
.resp-body .muted { font-size: 12px; }
.fb-main select.input { width: 110px; padding-right: 26px; appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%238A94A6%27 stroke-width=%272%27%3E%3Cpath d=%27m6 9 6 6 6-6%27/%3E%3C/svg%3E") right 8px center/14px no-repeat; }
@media (min-width: 1025px) { .kpi-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 学员会员库 ---------- */
.lv { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; border: 1px solid transparent; }
.lv-blue { background: #EDF3FB; color: #2E62AD; border-color: #CCDCF0; }
.lv-purple { background: #F4F0FF; color: #6941C6; border-color: #DDD2FE; }
.lv-orange { background: #FFF4E5; color: #B54708; border-color: #FBD9A8; }
.lv-red { background: linear-gradient(90deg, #FFF1EC, #FFF4E5); color: #C4320A; border-color: #F9CBB8; }
.lv-green { background: #E8F6F0; color: #067A57; border-color: #BFE6D5; }
.lv-gray { background: var(--surface-3); color: var(--text-3); }
.mb-levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.mb-level { position: relative; display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color var(--t), box-shadow var(--t); overflow: hidden; }
.mb-level::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--border-strong); }
.mb-level span { color: var(--text-2); font-size: 12.5px; }
.mb-level b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mb-level small { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.mb-level:hover { border-color: var(--accent-border); }
.mb-level.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,98,173,.12); }
.lvc-blue::before { background: #2E62AD; } .lvc-purple::before { background: #7A5AF8; } .lvc-orange::before { background: #F79009; }
.lvc-red::before { background: linear-gradient(#F04438, #F7B165); } .lvc-green::before { background: #12B76A; } .lvc-all::before { background: linear-gradient(#2E62AD, #61C5E4, #F7B165); }
.mb-level-set { display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--text-3); font-size: 12.5px; text-decoration: none; }
.mb-level-set:hover { color: var(--accent); border-color: var(--accent-border); }
.mb-level-set svg { width: 15px; height: 15px; }

.mb-ask { padding: 16px 18px; background: linear-gradient(135deg, #F5F9FF 0%, #FFFFFF 55%, #FFF9F1 100%); border-color: #DCE7F5; }
.mb-ask-row { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 6px 0 14px; border: 1px solid #C9D9EF; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px -12px rgba(46,98,173,.45); transition: border-color var(--t), box-shadow var(--t); }
.mb-ask-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(46,98,173,.12); }
.mb-spark { font-size: 18px; background: linear-gradient(135deg, #2E62AD, #61C5E4 55%, #F7B165); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mb-ask-row input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--text); }
.mb-ask-row .btn { height: 38px; padding: 0 18px; border-radius: 10px; }
.mb-examples { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 10px; color: var(--text-3); font-size: 12.5px; }
.mb-examples a { padding: 2px 10px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text-2); text-decoration: none; }
.mb-examples a:hover { border-color: var(--accent-border); color: var(--accent); }
.mb-understood { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); font-size: 13px; }
.mb-engine { color: var(--text-2); font-weight: 600; } .mb-engine.on { color: var(--accent); }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; }
.chip-sm { height: 20px; padding: 0 7px; margin: 1px 4px 1px 0; background: var(--surface-3); color: var(--text-2); font-size: 11.5px; }
.mb-hint { margin-top: 10px; font-size: 12px; }

.mb-filter > summary { display: flex; align-items: center; gap: 8px; padding: 13px 18px; cursor: pointer; list-style: none; font-weight: 600; }
.mb-filter > summary::-webkit-details-marker { display: none; }
.mb-filter > summary svg { width: 16px; height: 16px; }
.mb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; padding: 4px 18px 18px; }
.mb-grid label { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 10px; }
.mb-grid label > span { color: var(--text-2); font-size: 13px; text-align: right; }
.mb-grid input, .mb-grid select { width: 100%; min-width: 0; }
.mb-range, .mb-pair { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mb-range em, .mb-range i { flex: 0 0 auto; color: var(--text-3); font-style: normal; font-size: 12px; }
.mb-pair select { flex: 0 0 98px; }
.mb-actions { grid-column: 1 / -1; display: flex; gap: 8px; padding-left: 86px; }
.mb-bar { flex-wrap: wrap; gap: 10px; }
.mb-sum { color: var(--text-2); } .mb-sum b { color: var(--text); font-variant-numeric: tabular-nums; }
.mb-tagform { margin-left: auto; }
.mb-who { display: flex; align-items: center; gap: 10px; }
.mb-ava { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; padding: 0; border-radius: 50%; font-size: 13px; }
.mb-tags { display: flex; flex-wrap: wrap; gap: 4px; max-width: 220px; }
.tag { display: inline-flex; align-items: center; gap: 2px; height: 22px; padding: 0 8px; border-radius: 6px; background: #FFF4E5; color: #93370D; font-size: 12px; white-space: nowrap; }
.tag-x { border: 0; background: none; color: inherit; opacity: .55; cursor: pointer; padding: 0 0 0 2px; font-size: 13px; line-height: 1; }
.tag-x:hover { opacity: 1; }
.tag-add input { width: 92px; height: 22px; padding: 0 8px; border: 1px dashed var(--border-strong); border-radius: 6px; font-size: 12px; background: transparent; }
.profile .mb-tags { max-width: none; }
.lv-list { display: grid; gap: 10px; }
.lv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.lv-row input[name=name] { width: 180px; }
.lv-stages { display: flex; gap: 12px; padding: 0 4px; }
.lv-stages .checkbox { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; white-space: nowrap; }
.lv-stages input { accent-color: var(--accent); }
.lv-row select { width: auto; }
.lv-new .lv-row { border-style: dashed; background: var(--surface-2); }
@media (max-width: 1280px) { .mb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .mb-grid { grid-template-columns: minmax(0, 1fr); }
  .mb-grid label { grid-template-columns: minmax(0, 1fr); gap: 4px; } .mb-grid label > span { text-align: left; }
  .mb-actions { padding-left: 0; }
  .mb-ask-row .btn { padding: 0 12px; }
  .mb-tagform { margin-left: 0; }
}
.mb-sort { height: 30px; padding: 0 28px 0 10px; border: 1px solid var(--border-strong); border-radius: 8px; background-color: #fff; font: inherit; font-size: 13px; color: var(--text); }
.mb-sort { width: auto; height: 30px; }

/* ---------- 高客单学员 ---------- */
.tab .count.count-warn { background: #FEF0C7; color: #B54708; }
a.kpi { color: inherit; text-decoration: none; transition: border-color var(--t), box-shadow var(--t); }
a.kpi:hover { border-color: var(--accent-border); box-shadow: var(--shadow-sm); }
.ht-period { display: grid; gap: 4px; min-width: 150px; }
.ht-period small { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.ht-period.wide { max-width: 420px; }
.ht-ava { background: linear-gradient(140deg, #FFF4E5, #FDE3C2); color: #B54708; }
.ht-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ht-grid > div { display: grid; gap: 16px; }
.ht-grid .card { margin: 0; }
.ht-service-form, .ht-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.ht-service-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ht-f { display: grid; gap: 6px; min-width: 0; }
.ht-f.full { grid-column: 1 / -1; }
.ht-f > span { color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.ht-f b { font-weight: 500; color: var(--text); white-space: pre-wrap; }
.ht-f input, .ht-f select, .ht-f textarea, .ht-metric-form input, .ht-benefit-edit input {
  width: 100%; min-width: 0; height: 36px; padding: 0 11px; border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; font: inherit; font-size: 13.5px; color: var(--text); }
.ht-f textarea { height: auto; padding: 8px 11px; line-height: 1.6; resize: vertical; }
.ht-f input:focus, .ht-f select:focus, .ht-f textarea:focus, .ht-metric-form input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,98,173,.12); }
.ht-over { align-self: end; display: flex; align-items: center; gap: 6px; height: 36px; font-size: 12.5px; color: var(--text-2); }
.ht-service-form > .ht-f:last-child { align-self: end; }
.ht-timeline { position: relative; display: grid; gap: 16px; padding-left: 18px; }
.ht-timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.ht-item { position: relative; }
.ht-dot { position: absolute; left: -18px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.ht-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; }
.ht-item-body { margin-top: 6px; color: var(--text); font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; }
.ht-next { margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; }
.link-btn { border: 0; background: none; color: var(--text-3); font-size: 12px; cursor: pointer; padding: 0; }
.link-btn:hover { color: var(--red); }
.ht-benefits { display: grid; gap: 14px; font-size: 13.5px; }
.ht-benefit-edit { display: grid; gap: 6px; }
.ht-benefit-edit > div { display: flex; gap: 6px; }
.ht-metric { display: grid; gap: 6px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.ht-metric .muted { font-size: 12px; }
.ht-spark { width: 100%; height: 56px; }
.ht-metric-form { display: flex; flex-wrap: wrap; gap: 6px; }
.ht-metric-form input { width: auto; flex: 1 1 110px; }
.ht-praise { display: grid; gap: 8px; font-size: 13px; }
.ok-text { color: var(--green); }
@media (max-width: 1100px) { .ht-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) { .ht-service-form, .ht-two { grid-template-columns: minmax(0, 1fr); } }
.ht-f > .btn { justify-self: start; }
.ht-f select { appearance: none; -webkit-appearance: none; padding-right: 30px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A94A6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 9px center/14px no-repeat; }
.row-on td { background: var(--accent-soft); }
.ad-people { flex-wrap: wrap; }
.ad-people .segmented { flex-wrap: wrap; height: auto; }
.ad-owner { color: var(--text-2); font-weight: 600; }
.ta-sum { font-size: 13px; color: var(--text-2); line-height: 1.7; border-bottom: 1px solid var(--border); }
.ta-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rf-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; }
.rf-arrow { color: var(--text-3); }
.rf-node { padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); }
.rf-pending { border-color: #FBD9A8; background: #FFF5E8; color: #B54708; font-weight: 600; }
.rf-approved { border-color: var(--green-border); background: var(--green-soft); color: var(--green); }
.rf-rejected { border-color: var(--red-border); background: var(--red-soft); color: var(--red); }

/* ---------- 目标看板（月度营收监控） ---------- */
.gl-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid #BFD0E8; background: #fff; box-shadow: var(--shadow-sm); }
.gl-table { width: 100%; min-width: 1200px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.gl-table th, .gl-table td { padding: 9px 10px; border: 1px solid #D5E0EF; text-align: center; white-space: nowrap; }
.gl-table thead th { background: #2E62AD; color: #fff; font-weight: 600; }
.gl-table thead .gl-title { background: #24508F; font-size: 16px; padding: 12px; letter-spacing: .04em; }
.gl-table tbody tr:nth-child(odd) td { background: #F6F9FD; }
.gl-table tbody td.gl-hl { background: #EAF4E4; }
.gl-table tbody td.gl-green { background: #EEF6EA; }
.gl-table thead th.gl-hl, .gl-table thead th.gl-green { background: #24508F; }
.gl-table td.gl-wt { color: var(--text-3); }
.gl-name { font-weight: 600; text-align: left !important; }
.gl-auto { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 500; vertical-align: 1px; }
.gl-rate { min-width: 110px; }
.gl-rate b { position: relative; font-weight: 600; }
.gl-bar { position: relative; height: 6px; margin-bottom: 3px; border-radius: 999px; background: #E4EAF3; overflow: hidden; }
.gl-bar span { display: block; height: 100%; border-radius: inherit; }
.gl-bar.ok span { background: #12B76A; } .gl-bar.mid span { background: #2E62AD; } .gl-bar.bad span { background: #F04438; }
.gl-table tfoot td { background: #2E62AD; color: #fff; font-weight: 700; }
.gl-edit input:not([type=checkbox]), .gl-edit select { height: 30px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: 6px; font: inherit; font-size: 12.5px; }
.gl-edit td { vertical-align: top; }
.gl-edit td input + input { margin-top: 4px; display: block; }
.gl-small { font-size: 11px; }
.gl-param { margin-top: 4px; }

/* ---------- 例子日报 ---------- */
.sg-bar { flex-wrap: wrap; }
.sg-bar input[type=date] { height: 30px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: 8px; font: inherit; font-size: 13px; }
.sg-sum { padding: 13px 18px; cursor: pointer; font-weight: 600; }
.sg-text { width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 8px; font: 13px/1.6 var(--font-sans); resize: vertical; }
.row-dim td { color: var(--text-3); }
.md { font-size: 14px; line-height: 1.75; }
.md p { margin: 0 0 8px; } .md ul, .md ol { margin: 0 0 10px; padding-left: 22px; }
.md .md-h { margin: 14px 0 6px; font-weight: 700; } .md .md-h1, .md .md-h2 { font-size: 16px; } .md .md-h3, .md .md-h4 { font-size: 14.5px; }
.md .table-wrap { margin: 6px 0 12px; }
.sg-person { border-color: var(--accent-border); box-shadow: 0 0 0 3px rgba(46,98,173,.08); margin-bottom: 16px; }
.sg-lead { font-size: 14.5px; line-height: 1.9; }
.sg-ai { margin-top: 12px; padding: 14px 16px; border-radius: 10px; background: var(--accent-soft); }
.sg-notes { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.8; }
.card-subtitle { font-weight: 600; margin-bottom: 8px; }
.row-cur { background: #F2F7FF; }
.camp-table input { height: 32px; padding: 0 8px; font-size: 13px; }
.camp-table input[type=datetime-local] { width: 190px; }
.camp-table td, .camp-table th { padding-left: 8px; padding-right: 8px; }
.sg-na-intro { background: #F7F9FC; border-bottom: 1px solid var(--line, #E6EBF2); font-size: 13.5px; }
.sg-na-group + .sg-na-group { border-top: 1px solid var(--line, #E6EBF2); }
.sg-na-head { padding: 12px 16px 8px; font-size: 13.5px; }
.sg-na-head .muted { margin-top: 4px; font-size: 12.5px; }

/* ===== 交付学员库三视角 ===== */
.mb-16 { margin-bottom: 16px; }
.quick-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text-1); font-size: 13px; text-decoration: none; }
.chip:hover { border-color: #B9C6D8; background: #F7FAFD; }
.chip.active { background: var(--brand-700, #1F3A5F); border-color: var(--brand-700, #1F3A5F); color: #fff; }
.att-mini { display: flex; align-items: flex-end; gap: 3px; height: 42px; padding: 4px; background: #F6F8FB; border-radius: 6px; }
.att-mini span { flex: 1; min-width: 3px; background: #2E5C8A; border-radius: 2px 2px 0 0; opacity: .82; }
.att-mini span:hover { opacity: 1; }
.rank-medal { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; font-size: 12px; font-weight: 700; color: #fff; background: #98A2B3; }
.rank-medal.rank-1 { background: #D4A017; }
.rank-medal.rank-2 { background: #8A94A6; }
.rank-medal.rank-3 { background: #B06A3B; }
.metric-strong { font-weight: 700; color: var(--brand-700, #1F3A5F); font-size: 15px; }

.filter-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; width: 100%; padding-top: 8px; margin-top: 2px; border-top: 1px dashed var(--border); }
.filter-label { font-size: 12px; color: var(--text-2); font-weight: 600; margin-right: 2px; }
/* 交付库筛选行宽度约束 */
.filters .input { flex: 0 0 auto; }
.filters .input[name="q"] { width: 180px; }
.filters select { flex: 0 0 auto; }
.filter-group input[type="number"], .filter-group .input { width: 64px; }
.filters input[type="date"] { width: 130px; }

.sg-remark { background:#F6F8FB; border-radius:6px; padding:6px 8px; font-size:13px; line-height:1.5; }

.grid-4 { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:10px; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
