/* ==========================================================================
   第四宅瑜伽 · 后台管理 SPA
   纯静态、零依赖。设计基调：米色纸感底 + 墨绿侧栏 + 宋体标题 + 高密度表格。
   ========================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
  --brand: #49553D;
  --brand-deep: #242B1F;
  --brand-soft: #5F6D54;
  --brand-tint: #E8EBDF;
  --cream: #F6F2E9;
  --cream-deep: #EFE9DB;
  --surface: #FFFFFF;
  --surface-2: #FBF8F1;
  --surface-3: #FAF6EE;
  --line: #E3DCCD;
  --line-strong: #D2C7B3;
  --ink: #1B1D19;
  --ink-2: #454A41;
  --ink-3: #646A5D;
  --ink-4: #8C9185;
  --gold: #83602B;
  --gold-soft: #D8C9A3;
  --danger: #A6402F;
  --danger-bg: #F7E7E3;
  --success: #46663A;
  --success-bg: #E7EEDF;
  --warning: #8A5C14;
  --warning-bg: #F7EDD9;
  --info: #35596B;
  --info-bg: #E4EDF1;
  --neutral: #646A5D;
  --neutral-bg: #F2EFE7;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --sidebar-w: 240px;
  --topbar-h: 64px;
  --serif: 'Songti SC', 'Noto Serif SC', 'STSong', 'SimSun', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --mono: 'SFMono-Regular', 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;
  --shadow-1: 0 1px 2px rgba(35, 43, 30, 0.04);
  --shadow-2: 0 12px 28px rgba(35, 43, 30, 0.10);
  --shadow-3: 0 24px 60px rgba(35, 43, 30, 0.18);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --navy: #242B1F;
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  min-width: 1280px;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, dl, dd, dt { margin: 0; }
img { display: block; max-width: 100%; }
::selection { background: rgba(62, 74, 53, 0.16); }
:focus-visible { outline: 2px solid rgba(62, 74, 53, 0.45); outline-offset: 1px; }

/* 数字统一等宽 */
.num, .kpi-value, .money, .dt td, .pager, .kv-value, .mono { font-variant-numeric: tabular-nums; }
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: -0.2px; }
.nowrap { white-space: nowrap; }
.muted { color: var(--ink-3); }
.faint { color: var(--ink-4); }
.ink2 { color: var(--ink-2); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-brand { color: var(--brand); }
.fw-600 { font-weight: 600; }
.t-12 { font-size: 12px; }
.t-13 { font-size: 13px; }
.t-16 { font-size: 16px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-14 { margin-bottom: 14px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none !important; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(100, 106, 93, 0.28); border-radius: 8px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 启动占位 ---------- */
.boot {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--cream);
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.boot.done { opacity: 0; visibility: hidden; }
.boot-mark { position: relative; width: 64px; height: 64px; margin-bottom: 22px; }
.boot-square {
  position: absolute; left: 0; top: 6px; width: 44px; height: 44px;
  border: 2px solid var(--brand); border-radius: 14px; transform: rotate(-8deg);
}
.boot-circle {
  position: absolute; right: 0; bottom: 0; width: 26px; height: 26px;
  background: var(--gold-soft); border-radius: 50%; mix-blend-mode: multiply;
}
.boot-title { font-family: var(--serif); font-size: 22px; letter-spacing: 4px; color: var(--brand); }
.boot-sub { margin-top: 6px; font-size: 12px; letter-spacing: 1px; color: var(--ink-4); }
.boot-line { margin-top: 26px; width: 132px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.boot-line span { display: block; width: 44px; height: 100%; background: var(--brand); border-radius: 2px; animation: boot-slide 1.1s var(--ease) infinite; }
@keyframes boot-slide { 0% { transform: translateX(-44px); } 100% { transform: translateX(132px); } }

/* ---------- 登录页 ---------- */
.login-root { position: fixed; inset: 0; z-index: 100; display: flex; background: var(--cream); }
.login-aside {
  position: relative; width: 46%; max-width: 720px; min-width: 520px;
  background: radial-gradient(120% 90% at 12% 8%, #3A4631 0%, #242B1F 58%, #1C2217 100%);
  color: #F6F2E9; padding: 46px 52px 40px; display: flex; flex-direction: column; overflow: hidden;
}
.login-aside::after {
  content: ''; position: absolute; right: -140px; bottom: -180px; width: 460px; height: 460px;
  border: 1px solid rgba(216, 201, 163, 0.22); border-radius: 50%;
}
.login-aside::before {
  content: ''; position: absolute; left: 52px; top: 168px; width: 96px; height: 96px;
  border: 1px solid rgba(246, 242, 233, 0.16); border-radius: 26px; transform: rotate(-10deg);
}
.login-brand { display: flex; align-items: center; gap: 13px; position: relative; z-index: 1; }
.login-mark { width: 40px; height: 40px; position: relative; flex: none; }
.login-mark i {
  position: absolute; inset: 2px 8px 10px 2px; border: 1.6px solid rgba(246, 242, 233, 0.85);
  border-radius: 11px; transform: rotate(-8deg);
}
.login-mark b {
  position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-soft); mix-blend-mode: screen;
}
.login-brand-name { font-family: var(--serif); font-size: 19px; letter-spacing: 3px; }
.login-brand-sub { margin-top: 2px; font-size: 10px; letter-spacing: 2.4px; color: rgba(246, 242, 233, 0.46); }
.login-aside-mid { margin-top: auto; margin-bottom: auto; position: relative; z-index: 1; padding-top: 60px; }
.login-kicker { font-size: 11px; letter-spacing: 2.6px; color: rgba(246, 242, 233, 0.48); }
.login-quote {
  margin-top: 18px; font-family: var(--serif); font-size: 34px; line-height: 1.5;
  letter-spacing: 1px; color: #F6F2E9; max-width: 430px;
}
.login-quote em { font-style: normal; color: var(--gold-soft); }
.login-desc { margin-top: 20px; max-width: 400px; font-size: 13px; line-height: 1.9; color: rgba(246, 242, 233, 0.56); }
.login-stats { display: flex; gap: 36px; margin-top: 36px; position: relative; z-index: 1; }
.login-stat b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; color: #F6F2E9; }
.login-stat span { display: block; margin-top: 3px; font-size: 11px; letter-spacing: 1.2px; color: rgba(246, 242, 233, 0.42); }
.login-aside-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 1px; color: rgba(246, 242, 233, 0.34); }

.login-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px; position: relative; }
.login-panel { width: 388px; animation: rise 0.5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.login-welcome { font-size: 11px; letter-spacing: 2.4px; color: var(--ink-4); text-transform: uppercase; }
.login-title { margin-top: 10px; font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: 1px; color: var(--ink); }
.login-subtitle { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.login-form { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.login-field { display: flex; flex-direction: column; gap: 7px; }
.login-label { font-size: 12px; font-weight: 600; letter-spacing: 0.4px; color: var(--ink-2); }
.login-input {
  height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: rgba(255, 255, 255, 0.72); color: var(--ink); font-size: 14px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.login-input::placeholder { color: var(--ink-4); }
.login-input:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(62, 74, 53, 0.10); }
.login-code { letter-spacing: 12px; font-size: 20px; text-align: center; font-family: var(--mono); padding-left: 16px; }
.login-btn {
  height: 46px; border: none; border-radius: 10px; background: var(--brand); color: #F6F2E9;
  font-size: 14px; font-weight: 600; letter-spacing: 1px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s, transform 0.12s;
}
.login-btn:hover { background: #4A5740; }
.login-btn:active { transform: translateY(1px); }
.login-btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.login-error {
  display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 9px;
  background: var(--danger-bg); border: 1px solid rgba(166, 64, 47, 0.22); color: var(--danger);
  font-size: 12px; line-height: 1.55; animation: shake 0.34s var(--ease);
}
.login-error svg { flex: none; margin-top: 1px; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 60% { transform: translateX(4px); } 85% { transform: translateX(-2px); } }
.login-mfa-head { display: flex; align-items: center; gap: 10px; }
.login-back { border: none; background: none; color: var(--ink-3); font-size: 12px; padding: 0; display: inline-flex; align-items: center; gap: 4px; }
.login-back:hover { color: var(--brand); }
.login-demo {
  margin-top: 26px; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: 12px;
  background: rgba(255, 255, 255, 0.5); font-size: 12px; color: var(--ink-3); line-height: 1.9;
}
.login-demo b { color: var(--ink-2); font-weight: 600; }
.login-demo code { font-family: var(--mono); background: var(--cream-deep); padding: 1px 6px; border-radius: 5px; color: var(--ink-2); font-size: 12px; }
.login-foot { margin-top: 30px; font-size: 11px; color: var(--ink-4); letter-spacing: 0.4px; }
.login-help { margin-top: 34px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--ink-4); }
.login-mfa-steps { display: flex; gap: 6px; margin-top: 4px; }
.login-mfa-steps i { width: 22px; height: 3px; border-radius: 2px; background: var(--line); }
.login-mfa-steps i.on { background: var(--brand); }
.login-mfa-steps i.done { background: var(--gold-soft); }

/* ---------- 主框架 ---------- */
.shell { display: block; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 40;
  background: var(--brand-deep); color: rgba(246, 242, 233, 0.72);
  display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden;
}
.sidebar::-webkit-scrollbar-thumb { background: rgba(246, 242, 233, 0.18); border: 3px solid transparent; background-clip: content-box; }
.brand { display: flex; align-items: center; gap: 11px; padding: 24px 18px 20px 22px; flex: none; }
.brand-mark { width: 32px; height: 32px; position: relative; flex: none; }
.brand-mark i { position: absolute; inset: 2px 7px 8px 2px; border: 1.4px solid rgba(246, 242, 233, 0.9); border-radius: 9px; transform: rotate(-8deg); }
.brand-mark b { position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold-soft); opacity: 0.9; }
.brand-name { font-family: var(--serif); font-size: 16px; letter-spacing: 2.4px; color: #F6F2E9; white-space: nowrap; }
.brand-sub { margin-top: 1px; font-size: 9px; letter-spacing: 1.8px; color: rgba(246, 242, 233, 0.36); white-space: nowrap; }
.nav { flex: 1; padding: 4px 0 20px; }
.nav-group { margin-top: 18px; }
.nav-group:first-child { margin-top: 0; }
.nav-group-title {
  padding: 0 22px 8px; font-size: 11px; font-weight: 500; letter-spacing: 1px;
  color: rgba(246, 242, 233, 0.42); white-space: nowrap;
}
.nav-item {
  position: relative; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 20px 0 22px;
  font-size: 13px; color: rgba(246, 242, 233, 0.72); cursor: pointer; transition: background 0.16s, color 0.16s;
  white-space: nowrap; border: none; background: none; width: 100%; text-align: left;
}
.nav-item svg { flex: none; opacity: 0.66; transition: opacity 0.16s; }
.nav-item:hover { background: rgba(246, 242, 233, 0.05); color: rgba(246, 242, 233, 0.92); }
.nav-item:hover svg { opacity: 0.9; }
.nav-item.active { background: rgba(246, 242, 233, 0.09); color: #F6F2E9; font-weight: 600; }
.nav-item.active svg { opacity: 1; }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px;
  background: var(--gold-soft); border-radius: 0 3px 3px 0;
}
.nav-badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 600; display: inline-flex;
  align-items: center; justify-content: center;
}
.sidebar-foot { flex: none; padding: 16px 18px 18px; border-top: 1px solid rgba(246, 242, 233, 0.08); margin-top: 12px; }
.side-admin { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 10px; cursor: pointer; transition: background 0.16s; background: none; border: none; width: 100%; text-align: left; color: inherit; }
.side-admin:hover { background: rgba(246, 242, 233, 0.05); }
.side-avatar, .avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(216, 201, 163, 0.24); color: var(--gold-soft); font-family: var(--serif); font-size: 13px;
}
.side-admin-name { font-size: 12px; color: rgba(246, 242, 233, 0.9); font-weight: 600; }
.side-admin-role { font-size: 10px; color: rgba(246, 242, 233, 0.4); margin-top: 1px; }
.side-version { margin-top: 12px; padding-left: 10px; font-size: 10px; color: rgba(246, 242, 233, 0.26); letter-spacing: 0.6px; display: flex; justify-content: space-between; }
.side-status { display: inline-flex; align-items: center; gap: 5px; color: rgba(134, 168, 112, 0.8); }
.side-status i { width: 5px; height: 5px; border-radius: 50%; background: #86A870; }

.main { margin-left: var(--sidebar-w); min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar-h);
  display: flex; align-items: center; gap: 20px; padding: 0 28px;
  background: rgba(246, 242, 233, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.crumb { display: flex; align-items: center; gap: 8px; min-width: 0; }
.crumb-group { font-size: 12px; color: var(--ink-4); white-space: nowrap; }
.crumb-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); flex: none; }
.crumb-cur { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.top-spacer { flex: 1; }
.top-search { position: relative; width: 292px; flex: none; }
.search-box { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); border-radius: 9px; transition: border-color 0.16s, background 0.16s, box-shadow 0.16s; }
.search-box:focus-within { border-color: var(--brand-soft); background: #fff; box-shadow: 0 0 0 3px rgba(62, 74, 53, 0.08); }
.search-box svg { color: var(--ink-4); flex: none; }
.search-box input { flex: 1; border: none; background: none; outline: none; font-size: 12px; color: var(--ink); min-width: 0; }
.search-box input::placeholder { color: var(--ink-4); }
.kbd { font-family: var(--mono); font-size: 10px; color: var(--ink-4); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; line-height: 15px; background: var(--surface); }
.search-pop {
  position: absolute; top: 42px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-2); padding: 6px; max-height: 380px; overflow-y: auto; z-index: 35;
}
.search-pop[hidden] { display: none; }
.search-sec { padding: 8px 10px 5px; font-size: 10px; letter-spacing: 1px; color: var(--ink-4); }
.search-it { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 12px; color: var(--ink-2); border: none; background: none; width: 100%; text-align: left; }
.search-it:hover, .search-it.on { background: var(--surface-2); color: var(--ink); }
.search-it small { margin-left: auto; color: var(--ink-4); font-size: 10px; }
.search-it .kbd { margin-left: auto; }
.search-empty { padding: 18px 12px; text-align: center; font-size: 12px; color: var(--ink-4); }
.admin-btn { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 10px 0 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.6); border-radius: 9px; transition: background 0.16s; position: relative; }
.admin-btn:hover { background: #fff; }
.admin-btn .avatar { width: 26px; height: 26px; font-size: 12px; background: var(--brand-tint); color: var(--brand); }
.admin-btn-name { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.chev { width: 6px; height: 6px; border-right: 1.5px solid var(--ink-4); border-bottom: 1.5px solid var(--ink-4); transform: rotate(45deg) translateY(-1px); margin-left: 2px; }
.admin-pop {
  position: absolute; right: 0; top: 46px; width: 208px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-2); padding: 6px; z-index: 35;
}
.admin-pop[hidden] { display: none; }
.pop-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.pop-head b { display: block; font-size: 12px; color: var(--ink); }
.pop-head span { display: block; margin-top: 2px; font-size: 10px; color: var(--ink-4); }
.pop-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 11px; border: none; background: none; border-radius: 7px; font-size: 12px; color: var(--ink-2); text-align: left; }
.pop-item:hover { background: var(--surface-2); }
.pop-item.danger { color: var(--danger); }
.pop-item.danger:hover { background: var(--danger-bg); }
.pop-sep { height: 1px; background: var(--line); margin: 5px 4px; }

.page { padding: 26px 28px 64px; max-width: 1680px; animation: page-in 0.28s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.page-kicker { font-size: 11px; font-weight: 600; letter-spacing: 1.6px; color: var(--ink-4); text-transform: uppercase; }
.page-title { margin-top: 7px; font-family: var(--serif); font-size: 27px; font-weight: 500; letter-spacing: 1px; color: var(--ink); line-height: 1.25; }
.page-sub { margin-top: 7px; font-size: 12px; color: var(--ink-3); max-width: 720px; }
.page-actions { display: flex; align-items: center; gap: 9px; flex: none; padding-bottom: 2px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.2px; white-space: nowrap;
  transition: background 0.16s, border-color 0.16s, color 0.16s, transform 0.1s, box-shadow 0.16s;
  background: transparent;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--brand); color: #F6F2E9; }
.btn-primary:hover { background: #4A5740; box-shadow: 0 4px 12px rgba(62, 74, 53, 0.18); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--brand-soft); color: var(--brand); background: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8F3527; }
.btn-danger-ghost { background: var(--surface); border-color: rgba(166, 64, 47, 0.35); color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-bg); }
.btn-text { height: 26px; padding: 0 7px; color: var(--brand); font-weight: 600; border: none; background: none; border-radius: 6px; }
.btn-text:hover { background: var(--brand-tint); }
.btn-text.danger { color: var(--danger); }
.btn-text.danger:hover { background: var(--danger-bg); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn-lg { height: 42px; padding: 0 20px; font-size: 13px; }
.btn-icon { width: 32px; padding: 0; }
.btn svg { flex: none; }
.btn.is-loading { pointer-events: none; position: relative; }
.btn.is-loading::before {
  content: ''; width: 12px; height: 12px; border-radius: 50%;
  border: 1.6px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite;
}
.btn.is-loading::after { content: attr(data-loading-text); }
.btn.is-loading > * { display: none; }
.login-btn.is-loading::before { border-color: rgba(246, 242, 233, 0.9); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 1.8px solid rgba(62, 74, 53, 0.25); border-right-color: var(--brand); animation: spin 0.7s linear infinite; display: inline-block; }
.link-btn { border: none; background: none; padding: 0; color: var(--brand); font-weight: 600; font-size: 12px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-btn.danger { color: var(--danger); }
.btn-group { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-group .btn-text + .btn-text { border-left: 1px solid var(--line); border-radius: 0; padding-left: 9px; }

/* ---------- 卡片 ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.card.hoverable { transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.card.hoverable:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-title { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.card-title .tag-dot { width: 3px; height: 14px; background: var(--gold-soft); border-radius: 2px; }
.card-sub { font-size: 11px; color: var(--ink-4); }
.card-body { padding: 18px 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.span-2 { grid-column: span 2; }
.span-full { grid-column: 1 / -1; }

/* ---------- KPI ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { position: relative; padding: 16px 18px 15px; overflow: hidden; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-label { font-size: 12px; color: var(--ink-3); font-weight: 500; letter-spacing: 0.2px; }
.kpi-icon { width: 26px; height: 26px; border-radius: 8px; background: var(--surface-3); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.kpi-icon.warn { background: var(--warning-bg); color: var(--warning); }
.kpi-icon.danger { background: var(--danger-bg); color: var(--danger); }
.kpi-icon.gold { background: #F5EDDD; color: var(--gold); }
.kpi-value { margin-top: 9px; font-family: var(--sans); font-size: 25px; font-weight: 600; letter-spacing: -0.4px; color: var(--ink); line-height: 1.2; }
.kpi-value .unit { font-size: 12px; font-weight: 500; color: var(--ink-4); margin-left: 4px; letter-spacing: 0; }
.kpi-value.small { font-size: 21px; }
.kpi-sub { margin-top: 7px; font-size: 11px; color: var(--ink-4); display: flex; align-items: center; gap: 5px; }
.kpi-sub b { color: var(--ink-3); font-weight: 600; }
.kpi .kpi-arrow { position: absolute; right: 14px; bottom: 12px; color: var(--line-strong); opacity: 0; transition: opacity 0.16s, transform 0.16s; }
.kpi:hover .kpi-arrow { opacity: 1; transform: translateX(2px); }
.kpi.kpi-link { cursor: pointer; }

/* ---------- 表格 ---------- */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
.table-scroll { overflow-x: auto; }
.dt { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.dt th {
  position: sticky; top: 0; z-index: 2; background: var(--surface-3); color: var(--ink-3);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.3px; text-align: left; white-space: nowrap;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.dt td { padding: 11px 14px; border-bottom: 1px solid #F0EADA; vertical-align: middle; color: var(--ink-2); }
.dt tbody tr:last-child td { border-bottom: none; }
.dt tbody tr { transition: background 0.12s; }
.dt tbody tr:hover { background: #FCF9F2; }
.dt tbody tr.clickable { cursor: pointer; }
.dt .t-right { text-align: right; }
.dt .t-center { text-align: center; }
.dt .row-warn { background: #FBF2E4; }
.dt .row-warn:hover { background: #F9EDD9; }
.dt .row-danger { background: #FBF0ED; }
.dt .row-danger:hover { background: #F8E7E2; }
.dt .cell-main { color: var(--ink); font-weight: 600; display: block; line-height: 1.35; }
.dt .cell-sub { color: var(--ink-4); font-size: 11px; display: block; margin-top: 2px; line-height: 1.35; }
.dt .cell-strong { color: var(--ink); font-weight: 600; }
.dt .cell-money { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.dt .table-actions { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.dt .thumb { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); background: var(--cream-deep); }
.sort-btn { display: inline-flex; align-items: center; gap: 4px; border: none; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; letter-spacing: inherit; }
.sort-btn:hover { color: var(--brand); }
.sort-mark { display: inline-flex; flex-direction: column; gap: 2px; }
.sort-mark i { width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; }
.sort-mark i.up { border-bottom: 5px solid var(--line-strong); }
.sort-mark i.down { border-top: 5px solid var(--line-strong); }
.sort-btn.asc .sort-mark i.up { border-bottom-color: var(--brand); }
.sort-btn.desc .sort-mark i.down { border-top-color: var(--brand); }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.table-foot .foot-info { font-size: 12px; color: var(--ink-4); }
.table-empty { padding: 10px 0; }

/* ---------- 状态徽标 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px;
  border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.2px; white-space: nowrap;
  border: 1px solid transparent;
}
.badge .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.badge-warning { color: var(--warning); background: var(--warning-bg); border-color: rgba(150, 103, 28, 0.13); }
.badge-success { color: var(--success); background: var(--success-bg); border-color: rgba(70, 102, 58, 0.13); }
.badge-danger { color: var(--danger); background: var(--danger-bg); border-color: rgba(166, 64, 47, 0.13); }
.badge-info { color: var(--info); background: var(--info-bg); border-color: rgba(53, 89, 107, 0.13); }
.badge-neutral { color: var(--neutral); background: var(--neutral-bg); border-color: rgba(100, 106, 93, 0.12); }
.badge-gold { color: #7E5E24; background: #F5EDDD; border-color: rgba(150, 112, 47, 0.16); }
.badge-outline { color: var(--ink-3); background: transparent; border-color: var(--line-strong); }
.badge-sm { height: 19px; padding: 0 7px; font-size: 10.5px; }

/* ---------- 筛选栏 / 表单 ---------- */
.filter-bar {
  display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px;
  padding: 13px 15px; margin-bottom: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1);
}
.ff { display: flex; flex-direction: column; gap: 5px; }
.ff-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.4px; color: var(--ink-4); padding-left: 1px; }
.ff-search { width: 236px; }
.ff-grow { flex: 1; min-width: 180px; }
.input, .select, .textarea {
  height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); color: var(--ink); font-size: 12.5px; outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
  max-width: 100%;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand-soft); box-shadow: 0 0 0 3px rgba(62, 74, 53, 0.09); }
.input[type="date"] { padding: 0 8px; }
.select { padding-right: 26px; appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238C9185' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.textarea { height: auto; min-height: 84px; padding: 9px 11px; line-height: 1.7; resize: vertical; }
.search-input-wrap { position: relative; display: flex; align-items: center; }
.search-input-wrap svg { position: absolute; left: 10px; color: var(--ink-4); pointer-events: none; }
.search-input-wrap .input { padding-left: 31px; width: 100%; }
.filter-spacer { flex: 1; }
.filter-actions { display: flex; align-items: center; gap: 8px; }
.date-range { display: flex; align-items: center; gap: 6px; }
.date-range .input { width: 136px; }
.date-range .sep { color: var(--ink-4); font-size: 11px; }
.filter-note { font-size: 11px; color: var(--ink-4); padding-bottom: 9px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.wide { grid-column: 1 / -1; }
.form-label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.form-label em { color: var(--danger); font-style: normal; margin-left: 2px; }
.form-hint { font-size: 11px; color: var(--ink-4); line-height: 1.5; }
.form-error { font-size: 11.5px; color: var(--danger); }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding-top: 4px; }
.form-section { margin-bottom: 18px; }
.form-section-title { font-size: 11px; font-weight: 600; letter-spacing: 1px; color: var(--ink-4); text-transform: uppercase; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.check-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.check-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 7px; font-size: 12px; color: var(--ink-2); cursor: pointer; user-select: none; background: var(--surface); transition: all 0.14s; }
.check-chip input { accent-color: var(--brand); margin: 0; width: 13px; height: 13px; }
.check-chip:has(input:checked) { border-color: var(--brand-soft); background: var(--brand-tint); color: var(--brand); }
.switch-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 13px 0; border-bottom: 1px solid #F0EADA; }
.switch-row:last-child { border-bottom: none; }
.switch-info b { display: block; font-size: 13px; color: var(--ink); font-weight: 600; }
.switch-info span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-4); max-width: 560px; line-height: 1.6; }
.switch { position: relative; display: inline-flex; align-items: center; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track { width: 38px; height: 22px; border-radius: 999px; background: #D9D3C5; transition: background 0.18s; position: relative; }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.18); transition: transform 0.18s var(--ease); }
.switch input:checked + .switch-track { background: var(--brand); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { outline: 2px solid rgba(62, 74, 53, 0.4); outline-offset: 2px; }
.switch input:disabled + .switch-track { opacity: 0.55; cursor: not-allowed; }
.mini-table { width: 100%; border-collapse: collapse; }
.mini-table th { font-size: 11px; color: var(--ink-4); text-align: left; font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.mini-table td { padding: 7px 8px; border-bottom: 1px solid #F0EADA; font-size: 12px; }
.mini-table tr:last-child td { border-bottom: none; }

/* ---------- Tabs ---------- */
.tabs { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border: none; background: none; font-size: 13px; font-weight: 500; color: var(--ink-3); transition: color 0.16s; }
.tab::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: transparent; transition: background 0.16s; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--brand); font-weight: 600; }
.tab.active::after { background: var(--brand); }
.tab-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--neutral-bg); color: var(--ink-3); font-size: 10.5px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.tab.active .tab-count { background: var(--brand-tint); color: var(--brand); }
.seg { display: inline-flex; padding: 3px; background: var(--surface-3); border: 1px solid var(--line); border-radius: 9px; gap: 2px; }
.seg-btn { height: 27px; padding: 0 12px; border: none; background: none; border-radius: 6px; font-size: 12px; color: var(--ink-3); }
.seg-btn.active { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1); }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 4px 2px; font-size: 12px; color: var(--ink-4); }
.pager-info b { color: var(--ink-2); font-weight: 600; }
.pager-btns { display: flex; align-items: center; gap: 5px; }
.pg-btn {
  min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 7px; font-size: 12px; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.14s;
}
.pg-btn:hover:not([disabled]) { border-color: var(--brand-soft); color: var(--brand); }
.pg-btn.active { background: var(--brand); border-color: var(--brand); color: #F6F2E9; font-weight: 600; }
.pg-btn[disabled] { opacity: 0.38; cursor: not-allowed; }
.pg-ellipsis { color: var(--ink-4); padding: 0 3px; }
.pg-size { display: flex; align-items: center; gap: 6px; }
.pg-size .select { height: 30px; font-size: 12px; }

/* ---------- 空态 / 骨架 ---------- */
.state-box { padding: 48px 20px; text-align: center; }
.state-title { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.state-hint { margin-top: 6px; font-size: 12px; color: var(--ink-4); line-height: 1.7; }
.state-action { margin-top: 16px; display: flex; justify-content: center; gap: 8px; }
.empty-art { width: 92px; height: 84px; position: relative; margin: 0 auto; }
.empty-art .ea-sq { position: absolute; left: 6px; top: 8px; width: 54px; height: 54px; border: 1.6px solid var(--line-strong); border-radius: 15px; transform: rotate(-9deg); background: var(--surface); }
.empty-art .ea-ci { position: absolute; right: 4px; bottom: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-tint); border: 1.6px solid #C9D3BC; }
.empty-art .ea-ln { position: absolute; left: 22px; bottom: 12px; width: 46px; height: 2px; background: var(--line-strong); border-radius: 2px; transform: rotate(-9deg); }
.empty-art .ea-dot { position: absolute; left: 18px; top: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-soft); }
.skeleton { position: relative; overflow: hidden; background: #F1EBDD; border-radius: 6px; }
.skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent); animation: shimmer 1.5s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.sk-row { display: flex; gap: 16px; padding: 13px 16px; border-bottom: 1px solid #F0EADA; align-items: center; }
.sk-row .skeleton { height: 12px; }
.sk-card { padding: 18px; }
.sk-line { height: 12px; margin-bottom: 9px; }
.error-box { padding: 36px 20px; text-align: center; }
.error-title { font-size: 14px; font-weight: 600; color: var(--danger); }
.error-msg { margin-top: 7px; font-size: 12px; color: var(--ink-3); line-height: 1.7; }
.error-actions { margin-top: 15px; display: flex; justify-content: center; gap: 8px; }

/* ---------- 图表 ---------- */
.chart-card { padding: 16px 20px 10px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.chart-legend { display: flex; align-items: center; gap: 16px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); }
.legend-swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--brand); }
.legend-swatch.line { width: 14px; height: 2.5px; border-radius: 2px; background: var(--gold); }
.legend-swatch.bar { background: rgba(62, 74, 53, 0.24); }
.legend-swatch.gold { background: var(--gold-soft); }
.chart-body { position: relative; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-svg text { font-family: var(--sans); font-size: 10px; fill: var(--ink-4); font-variant-numeric: tabular-nums; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; background: var(--brand-deep); color: #F6F2E9;
  padding: 8px 11px; border-radius: 8px; font-size: 11px; line-height: 1.7; box-shadow: var(--shadow-2);
  transform: translate(-50%, -110%); white-space: nowrap; transition: opacity 0.12s; opacity: 0;
}
.chart-tip.show { opacity: 1; }
.chart-tip b { color: var(--gold-soft); font-weight: 600; }
.chart-tip .tip-date { color: rgba(246, 242, 233, 0.55); display: block; margin-bottom: 2px; }
.hbar-list { display: flex; flex-direction: column; gap: 15px; padding: 4px 0; }
.hbar-row { display: flex; flex-direction: column; gap: 6px; }
.hbar-top { display: flex; align-items: baseline; justify-content: space-between; font-size: 12px; color: var(--ink-2); }
.hbar-top b { font-variant-numeric: tabular-nums; color: var(--ink); }
.hbar-track { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--brand-soft), var(--brand)); transition: width 0.6s var(--ease); }
.hbar-fill.gold { background: linear-gradient(90deg, #C7A96D, #96702F); }
.hbar-row:nth-child(2) .hbar-fill { background: linear-gradient(90deg, #7C8B6D, #5C6B50); }
.hbar-row:nth-child(3) .hbar-fill { background: linear-gradient(90deg, #B6A277, #96702F); }
.hbar-row:nth-child(4) .hbar-fill { background: linear-gradient(90deg, #9AAE8E, #6E825F); }
.chart-empty { padding: 40px 0; text-align: center; color: var(--ink-4); font-size: 12px; }

/* ---------- 抽屉 ---------- */
.layer-mask { position: fixed; inset: 0; background: rgba(35, 43, 30, 0.34); backdrop-filter: blur(1px); z-index: 60; opacity: 0; transition: opacity 0.24s var(--ease); }
.layer-mask.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 560px; max-width: 92vw; z-index: 62;
  background: var(--surface-2); display: flex; flex-direction: column;
  box-shadow: var(--shadow-3); transform: translateX(102%); transition: transform 0.3s var(--ease);
}
.drawer.wide { width: 720px; }
.drawer.show { transform: translateX(0); }
.drawer-head { flex: none; display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.drawer-head-main { flex: 1; min-width: 0; }
.drawer-kicker { font-size: 10.5px; letter-spacing: 1.4px; color: var(--ink-4); font-weight: 600; text-transform: uppercase; }
.drawer-title { margin-top: 5px; font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: 0.5px; color: var(--ink); display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.drawer-sub { margin-top: 5px; font-size: 11.5px; color: var(--ink-4); }
.drawer-close { flex: none; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; line-height: 1; transition: all 0.14s; }
.drawer-close:hover { background: var(--surface-3); color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px; }
.drawer-foot { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 13px 22px; border-top: 1px solid var(--line); background: var(--surface); }
.drawer-foot .foot-hint { margin-right: auto; font-size: 11px; color: var(--ink-4); }

.detail-section { margin-bottom: 22px; }
.detail-section:last-child { margin-bottom: 0; }
.detail-title { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; font-size: 11px; font-weight: 600; letter-spacing: 1px; color: var(--ink-4); text-transform: uppercase; }
.detail-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.kv { background: var(--surface); padding: 10px 13px; min-width: 0; }
.kv-label { font-size: 10.5px; color: var(--ink-4); }
.kv-value { margin-top: 3px; font-size: 12.5px; color: var(--ink); font-weight: 500; word-break: break-all; }
.kv.wide { grid-column: 1 / -1; }
.item-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.item-row { display: flex; align-items: center; gap: 12px; padding: 10px 13px; border-bottom: 1px solid #F0EADA; }
.item-row:last-child { border-bottom: none; }
.item-main { flex: 1; min-width: 0; }
.item-name { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.item-sub { font-size: 11px; color: var(--ink-4); margin-top: 2px; }
.item-amount { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.item-total { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; background: var(--surface-3); font-size: 12px; color: var(--ink-3); }
.item-total b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 15px 6px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -18px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); border: 2px solid var(--surface-2); box-sizing: content-box; }
.tl-item.on .tl-dot { background: var(--brand); }
.tl-time { font-size: 10.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.tl-text { margin-top: 2px; font-size: 12px; color: var(--ink-2); }
.tl-text b { color: var(--ink); font-weight: 600; }
.note-block { padding: 11px 13px; border-radius: 9px; background: var(--surface-3); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.banner { display: flex; gap: 9px; align-items: flex-start; padding: 11px 13px; border-radius: 10px; font-size: 12px; line-height: 1.65; border: 1px solid transparent; }
.banner-warn { background: var(--warning-bg); border-color: rgba(150, 103, 28, 0.2); color: var(--warning); }
.banner-info { background: var(--info-bg); border-color: rgba(53, 89, 107, 0.18); color: var(--info); }
.banner-danger { background: var(--danger-bg); border-color: rgba(166, 64, 47, 0.2); color: var(--danger); }
.banner svg { flex: none; margin-top: 1px; }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; z-index: 70; background: rgba(35, 43, 30, 0.36); backdrop-filter: blur(1.5px); display: flex; align-items: center; justify-content: center; padding: 40px; opacity: 0; transition: opacity 0.2s var(--ease); }
.modal-mask.show { opacity: 1; }
.modal { width: 460px; max-width: 100%; max-height: 88vh; display: flex; flex-direction: column; background: var(--surface-2); border-radius: 18px; box-shadow: var(--shadow-3); border: 1px solid var(--line); transform: translateY(12px) scale(0.99); transition: transform 0.24s var(--ease); overflow: hidden; }
.modal-mask.show .modal { transform: translateY(0) scale(1); }
.modal.wide { width: 620px; }
.modal-head { display: flex; align-items: flex-start; gap: 13px; padding: 22px 24px 0; }
.modal-icon { flex: none; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--info-bg); color: var(--info); }
.modal-icon.danger { background: var(--danger-bg); color: var(--danger); }
.modal-icon.warn { background: var(--warning-bg); color: var(--warning); }
.modal-head-text { flex: 1; min-width: 0; }
.modal-title { font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: 0.4px; color: var(--ink); line-height: 1.35; }
.modal-sub { margin-top: 6px; font-size: 12px; color: var(--ink-3); line-height: 1.7; }
.modal-body { padding: 18px 24px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 0 24px 22px; }
.modal-foot .foot-hint { margin-right: auto; font-size: 11px; color: var(--ink-4); }
.modal-note-label { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.modal-note-label span { font-weight: 400; color: var(--ink-4); font-size: 11px; }
.modal .textarea { width: 100%; background: var(--surface); }
.danger-text-block { padding: 11px 13px; border-radius: 9px; background: var(--danger-bg); color: var(--danger); font-size: 12px; line-height: 1.7; margin-top: 12px; }
.confirm-target { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); margin-top: 12px; font-size: 12px; }
.confirm-target b { font-weight: 600; color: var(--ink); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 9px; min-width: 200px; max-width: 480px;
  padding: 10px 15px; border-radius: 10px; background: #2A2F26; color: #F6F2E9;
  box-shadow: var(--shadow-2); font-size: 12.5px; line-height: 1.5;
  animation: toast-in 0.26s var(--ease); pointer-events: auto;
}
.toast.out { animation: toast-out 0.22s var(--ease) forwards; }
.toast .toast-bar { width: 3px; align-self: stretch; border-radius: 2px; background: var(--gold-soft); flex: none; }
.toast-success .toast-bar { background: #8FB37A; }
.toast-error .toast-bar { background: #D9776A; }
.toast-warn .toast-bar { background: #D8B368; }
.toast-info .toast-bar { background: #7FA2B4; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }

/* ---------- 工作台 ---------- */
.todo-card { display: flex; flex-direction: column; }
.todo-list { display: flex; flex-direction: column; }
.todo-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid #F0EADA;
  cursor: pointer; background: none; border-left: none; border-right: none; border-top: none; width: 100%; text-align: left;
  transition: background 0.14s;
}
.todo-item:last-child { border-bottom: none; }
.todo-item:hover { background: var(--surface-3); }
.todo-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--warning-bg); color: var(--warning); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.todo-mark.zero { background: var(--success-bg); color: var(--success); }
.todo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.todo-label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; display: block; }
.todo-hint { font-size: 10.5px; color: var(--ink-4); margin-top: 1px; display: block; }
.todo-count { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.todo-count.zero { color: var(--ink-4); font-weight: 500; }
.todo-go { color: var(--ink-4); margin-left: 4px; display: inline-flex; }
.dash-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
.dash-grid-2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; margin-top: 16px; }
.mini-order { display: flex; align-items: center; gap: 10px; }
.mini-order .cover { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; background: var(--cream-deep); border: 1px solid var(--line); }
.recent-orders .dt td { padding: 9px 12px; }
.recent-orders .dt th { padding: 9px 12px; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); display: inline-block; margin-right: 6px; }

/* ---------- 排期日历 ---------- */
.cal-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 16px; }
.cal-day {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 72px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: all 0.16s; position: relative;
}
.cal-day:hover { border-color: var(--brand-soft); transform: translateY(-1px); }
.cal-day.active { background: var(--brand); border-color: var(--brand); color: #F6F2E9; box-shadow: 0 6px 16px rgba(62, 74, 53, 0.2); }
.cal-weekday { font-size: 10.5px; color: var(--ink-4); }
.cal-day.active .cal-weekday { color: rgba(246, 242, 233, 0.62); }
.cal-date { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1.1; }
.cal-day.active .cal-date { color: #F6F2E9; }
.cal-count { font-size: 10px; color: var(--ink-4); }
.cal-day.active .cal-count { color: var(--gold-soft); }
.cal-day.today::after { content: ''; position: absolute; top: 7px; right: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.cal-day.active.today::after { background: var(--gold-soft); }
.cal-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal-nav { display: flex; align-items: center; gap: 7px; }
.cal-nav .date-label { font-size: 13px; font-weight: 600; color: var(--ink); padding: 0 4px; }
.capacity-bar { width: 80px; height: 5px; border-radius: 3px; background: var(--neutral-bg); overflow: hidden; display: inline-block; vertical-align: middle; }
.capacity-bar i { display: block; height: 100%; border-radius: 3px; background: var(--brand-soft); }
.capacity-bar.high i { background: var(--warning); }
.capacity-text { font-size: 11px; color: var(--ink-3); margin-left: 6px; font-variant-numeric: tabular-nums; }

/* ---------- 门店 / 相册 / 图片 ---------- */
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.store-card { overflow: hidden; display: flex; flex-direction: column; }
.store-cover { height: 148px; background: var(--cream-deep) center/cover no-repeat; position: relative; }
.store-cover .store-status { position: absolute; top: 12px; right: 12px; }
.store-body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.store-name { font-family: var(--serif); font-size: 18px; letter-spacing: 0.4px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.store-code { font-family: var(--mono); font-size: 10px; color: var(--ink-4); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.store-meta { margin-top: 9px; display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: var(--ink-3); }
.store-meta span { display: flex; gap: 7px; align-items: baseline; }
.store-meta em { font-style: normal; color: var(--ink-4); flex: none; width: 36px; font-size: 10.5px; }
.store-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 13px; border-top: 1px solid #F0EADA; }
.album-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.album-card { overflow: hidden; }
.album-cover { height: 132px; background: var(--cream-deep) center/cover no-repeat; }
.album-body { padding: 13px 15px 15px; }
.album-title { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.album-meta { margin-top: 5px; font-size: 11px; color: var(--ink-4); display: flex; gap: 10px; flex-wrap: wrap; }
.album-actions { margin-top: 10px; display: flex; align-items: center; gap: 4px; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.photo-cell { position: relative; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); background: var(--cream-deep); aspect-ratio: 1 / 1; }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; }
.photo-cell .photo-x { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 6px; background: rgba(27, 29, 25, 0.55); color: #fff; border: none; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; opacity: 0; transition: opacity 0.15s; }
.photo-cell:hover .photo-x { opacity: 1; }
.photo-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 7px; font-size: 10px; color: #fff; background: linear-gradient(transparent, rgba(27, 29, 25, 0.6)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.img-fallback { display: flex; align-items: center; justify-content: center; color: var(--ink-4); font-size: 10px; background: repeating-linear-gradient(135deg, #EFE9DB, #EFE9DB 8px, #F6F2E9 8px, #F6F2E9 16px); width: 100%; height: 100%; }

.progress-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.progress-card { overflow: hidden; }
.pg-thumb { position: relative; height: 190px; background: var(--cream-deep); overflow: hidden; }
.pg-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s var(--ease); }
.progress-card:hover .pg-thumb img { transform: scale(1.03); }
.pg-stage { position: absolute; top: 10px; left: 10px; }
.pg-auth { position: absolute; top: 10px; right: 10px; }
.pg-lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; background: rgba(35, 43, 30, 0.5); color: #F6F2E9; font-size: 11px; }
.pg-lock .lock-box { width: 28px; height: 24px; border: 1.6px solid rgba(246, 242, 233, 0.8); border-radius: 6px; position: relative; }
.pg-lock .lock-box::before { content: ''; position: absolute; left: 6px; top: -9px; width: 12px; height: 10px; border: 1.6px solid rgba(246, 242, 233, 0.8); border-bottom: none; border-radius: 7px 7px 0 0; }
.pg-body { padding: 12px 14px 14px; }
.pg-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--ink-4); }
.pg-note { margin-top: 6px; font-size: 11.5px; color: var(--ink-2); line-height: 1.55; min-height: 18px; }
.pg-actions { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #F0EADA; }

/* ---------- 审计 / 设置 / 对账 / 备份 ---------- */
.settings-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; align-items: start; }
.settings-card { padding: 4px 20px 18px; }
.settings-card .detail-title { margin-top: 16px; }
.tpl-list { display: flex; flex-direction: column; }
.tpl-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid #F0EADA; }
.tpl-row:last-child { border-bottom: none; }
.tpl-scene { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.tpl-scene small { display: block; font-size: 10px; color: var(--ink-4); font-weight: 400; margin-top: 1px; }
.tpl-row .input { width: 100%; font-family: var(--mono); font-size: 12px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.summary-cell { padding: 14px 16px; }
.summary-label { font-size: 11px; color: var(--ink-4); }
.summary-value { margin-top: 6px; font-size: 20px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.summary-value.small { font-size: 15px; }
.summary-hint { margin-top: 4px; font-size: 10.5px; color: var(--ink-4); }
.diff-badge { font-family: var(--mono); font-size: 11.5px; font-weight: 600; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0 12px; }
.section-title-row h3 { font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: 0.5px; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.section-title-row .sub { font-size: 11px; color: var(--ink-4); }
.dl-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.dl-item { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed #EDE6D6; font-size: 12px; }
.dl-item dt { color: var(--ink-4); flex: none; }
.dl-item dd { color: var(--ink); font-weight: 500; text-align: right; word-break: break-all; }
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.action-tile { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; transition: all 0.16s; }
.action-tile:hover { border-color: var(--brand-soft); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.action-tile b { display: block; font-size: 13px; color: var(--ink); font-weight: 600; }
.action-tile span { display: block; margin-top: 5px; font-size: 11.5px; color: var(--ink-4); line-height: 1.6; }
.backup-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.backup-meta b { color: var(--ink); font-variant-numeric: tabular-nums; }
.file-icon { width: 30px; height: 34px; border: 1.5px solid var(--line-strong); border-radius: 5px; position: relative; background: var(--surface-3); flex: none; }
.file-icon::after { content: ''; position: absolute; right: -1.5px; top: -1.5px; border-width: 0 0 8px 8px; border-style: solid; border-color: transparent transparent var(--line-strong) transparent; }
.row-controls { display: flex; align-items: center; gap: 8px; }
.actor-cell { display: flex; align-items: center; gap: 8px; }
.actor-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 600; flex: none; }
.action-text { color: var(--ink); font-weight: 500; }
.tag-mini { display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border-radius: 5px; font-size: 10.5px; color: var(--ink-3); background: var(--neutral-bg); }
.audit-detail { font-size: 11.5px; color: var(--ink-3); max-width: 420px; }
.audit-detail.clamp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 通用工具 */
.stack-8 > * + * { margin-top: 8px; }
.stack-12 > * + * { margin-top: 12px; }
.stack-16 > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 8px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.hint-line { font-size: 11px; color: var(--ink-4); line-height: 1.6; }
.count-pill { font-size: 11px; color: var(--ink-3); background: var(--surface-3); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.avatar-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--cream-deep); border: 1px solid var(--line); flex: none; }
.member-cell { display: flex; align-items: center; gap: 9px; }
.member-name { font-size: 12.5px; color: var(--ink); font-weight: 600; }
.member-no { font-size: 10.5px; color: var(--ink-4); font-family: var(--mono); }
.sub-line { margin-top: 2px; font-size: 11px; color: var(--ink-4); }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

@media (max-width: 1440px) {
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  .album-grid, .progress-grid { grid-template-columns: repeat(3, 1fr); }
  .summary-grid { grid-template-columns: repeat(4, 1fr); }
  .store-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1350px) {
  .page { padding: 22px 22px 56px; }
  .top-search { width: 240px; }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  .dash-grid, .dash-grid-2 { grid-template-columns: 1.45fr 1fr; }
  .album-grid, .progress-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 品牌 logo（透明 PNG，深色侧栏用米白版） */
.brand-mark-img { width: 23px; height: 34px; object-fit: contain; flex: none; display: block; }
.login-mark-img { width: 30px; height: 44px; object-fit: contain; flex: none; display: block; }
.boot-logo { display: block; width: 40px; height: 60px; object-fit: contain; margin: 0 auto 14px; }

/* ==================== 多图上传 / 地址选择（门店表单） ==================== */
.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
  margin-top: 2px;
}
.image-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-3);
}
.image-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-item__remove {
  position: absolute; top: 5px; right: 5px;
  width: 22px; height: 22px; padding: 0;
  border: none; border-radius: 50%;
  background: rgba(27, 29, 25, 0.62); color: #fff;
  font-size: 14px; line-height: 22px; cursor: pointer;
  opacity: 0; transition: opacity 0.15s var(--ease), background 0.15s var(--ease);
}
.image-item:hover .image-item__remove { opacity: 1; }
.image-item__remove:hover { background: rgba(166, 64, 47, 0.92); }
.images-empty {
  grid-column: 1 / -1;
  padding: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
}
.region-row { display: flex; gap: 8px; }
.region-row > * { flex: 1; min-width: 0; }
.region-row > [hidden] { flex: 0; }
.region-row [hidden] { display: none !important; }
.advanced-box {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.advanced-box summary { cursor: pointer; font-size: 12.5px; color: var(--ink-3); }
.advanced-box summary:hover { color: var(--ink-2); }

/* ==================== 首页头图（轮播管理） ==================== */
.banner-list { display: flex; flex-direction: column; gap: 12px; }
.banner-item { display: flex; align-items: stretch; gap: 16px; padding: 12px; }
.banner-item__img {
  width: 150px; min-height: 100px; border-radius: 10px; flex: none;
  background: var(--surface-3) center/cover no-repeat;
  border: 1px solid var(--line);
}
.banner-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.banner-item__kicker { font-size: 11px; letter-spacing: 1.6px; color: var(--ink-3); text-transform: uppercase; }
.banner-item__title { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.banner-item__sub { font-size: 12px; color: var(--ink-3); }
.banner-item__actions { display: flex; flex-direction: column; gap: 6px; justify-content: center; }

/* ==================== 分项清理（备份导出页） ==================== */
.scope-group { margin-top: 14px; }
.scope-group__title { font-size: 11px; letter-spacing: 2px; color: var(--ink-3); margin-bottom: 4px; }
.scope-row { display: flex; align-items: center; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.scope-row__main { flex: 1; min-width: 0; }
.scope-row__label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.scope-row__count { font-size: 11px; font-weight: 500; color: var(--ink-3); background: var(--surface-3); border-radius: 999px; padding: 2px 8px; }
.scope-row__count.is-empty { color: var(--ink-4); background: transparent; border: 1px dashed var(--line-strong); }
.scope-row__desc { font-size: 11px; color: var(--ink-3); margin-top: 3px; line-height: 1.6; }

/* ==================== 员工账号（4 角色） ==================== */
.role-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.role-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-1); }
.role-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.role-card__count { font-size: 13px; color: var(--ink-2); }
.role-card__desc { font-size: 11px; line-height: 1.65; color: var(--ink-3); }
@media (max-width: 1100px) { .role-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
