/* ============================================================
   军团考勤系统 · 未来简约主题
   浅色干净底 + 单一蓝色强调 + 柔和圆角 + 轻阴影 + 大量留白
   ============================================================ */
:root {
  --bg: #f4f6fb;
  --bg-2: #eef1f8;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --panel-2: #f5f7fc;
  --line: #e6eaf3;
  --line-strong: #d4dbea;
  --primary: #4f6ef7;
  --primary-2: #6b85ff;
  --primary-soft: rgba(79, 110, 247, 0.10);
  --neon: #4f6ef7;   /* 兼容旧引用 */
  --cyan: #4f6ef7;   /* 兼容旧引用 */
  --accent: #4f6ef7;
  --text: #1f2533;
  --text-dim: #5b6478;
  --text-mute: #98a1b5;
  --green: #12a150;
  --red: #e5484d;
  --amber: #f59e0b;
  --blue: #3b82f6;
  --shadow: 0 12px 32px rgba(23, 35, 64, 0.10);
  --shadow-sm: 0 1px 2px rgba(23, 35, 64, 0.06), 0 4px 14px rgba(23, 35, 64, 0.06);
  --glow: none;
  --radius: 16px;
  --radius-sm: 10px;
  /* 简约风不使用切角 */
  --chamfer: none;
  --chamfer-sm: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* 简约风：无扫描线 / 无网格纹理 */
body::before, body::after { content: none; }

/* ---------- 背景层（星空隐藏，改为纯净浅底） ---------- */
.starfield { position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(79,110,247,.08), transparent 60%),
    radial-gradient(760px 520px at -6% 108%, rgba(59,130,246,.07), transparent 55%),
    var(--bg);
}
.stars, .nebula { display: none; }

/* ---------- 登录 ---------- */
.auth-screen { position: relative; z-index: 3; min-height: 100vh; display: flex;
  align-items: center; justify-content: center; padding: 28px 16px; }
.auth-card { position: relative; width: 420px; max-width: 100%; background: var(--panel);
  border: 1px solid var(--line); border-radius: 20px; padding: 36px 32px 28px;
  box-shadow: var(--shadow); }
.auth-card::before { content: none; }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.brand-logo { width: 52px; height: 52px; flex: none; border-radius: 15px; display: grid; place-items: center;
  font-weight: 800; font-size: 22px; color: #fff; letter-spacing: 1px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 20px rgba(79,110,247,.28); }
.brand-logo.sm { width: 40px; height: 40px; font-size: 16px; border-radius: 12px; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.brand-title { font-size: 22px; letter-spacing: 1px; color: var(--text); font-weight: 700; }
.brand-sub { font-size: 10px; color: var(--text-mute); letter-spacing: 3px; margin-top: 4px;
  font-family: ui-monospace, "Consolas", monospace; text-transform: uppercase; }
.auth-tabs { display: flex; gap: 4px; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.auth-tab { flex: 1; padding: 9px; border: 0; background: transparent; color: var(--text-dim);
  border-radius: 9px; font-size: 14px; letter-spacing: 2px; transition: .2s; }
.auth-tab.active { background: #fff; color: var(--primary); font-weight: 600;
  box-shadow: 0 2px 8px rgba(23,35,64,.10); }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 7px; letter-spacing: .5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; background: #fff; border: 1px solid var(--line-strong);
  border-radius: 10px; color: var(--text); font-size: 14px; outline: none; transition: .18s; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.code-row { display: flex; gap: 9px; }
.code-row input { flex: 1; }
.code-btn { white-space: nowrap; padding: 0 14px; font-size: 13px; }
.code-btn:disabled { opacity: .5; cursor: not-allowed; }
.hint { font-size: 12px; color: var(--primary); margin-top: 7px; min-height: 16px; }
.auth-foot { text-align: center; font-size: 12px; color: var(--text-mute); margin-top: 18px; line-height: 1.7; }

/* ---------- 按钮 ---------- */
.btn { border: 1px solid transparent; border-radius: 10px; padding: 10px 16px;
  font-size: 14px; color: var(--text); background: var(--panel-2); transition: .18s; display: inline-flex;
  align-items: center; justify-content: center; gap: 7px; letter-spacing: .5px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; font-weight: 600;
  box-shadow: 0 6px 16px rgba(79,110,247,.28); }
.btn-primary:hover { background: var(--primary-2); box-shadow: 0 8px 22px rgba(79,110,247,.36); }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); border-color: var(--primary); }
.btn-danger { background: rgba(229,72,77,.08); border-color: rgba(229,72,77,.30); color: var(--red); }
.btn-danger:hover { background: rgba(229,72,77,.14); }
.btn-success { background: rgba(18,161,80,.08); border-color: rgba(18,161,80,.30); color: var(--green); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 9px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- 应用布局 ---------- */
.app-shell { position: relative; z-index: 3; display: flex; min-height: 100vh; }
.sidebar { width: 232px; flex: none; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 18px 18px 16px;
  border-bottom: 1px solid var(--line); }
.side-brand::after { content: none; }
.side-brand-text { flex: 1; min-width: 0; }
.side-brand-text strong { display: block; font-size: 15px; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text); }
.side-brand-text span { font-size: 9px; color: var(--text-mute); letter-spacing: 2px;
  font-family: ui-monospace, "Consolas", monospace; }
.brand-settings { flex: none; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text-dim); font-size: 14px; cursor: pointer; transition: .18s; }
.brand-settings:hover { background: var(--primary-soft); color: var(--primary); transform: rotate(30deg); }

/* 军团图标上传 */
.icon-uploader { display: flex; align-items: center; gap: 14px; }
.icon-preview { width: 64px; height: 64px; flex: none; border-radius: 16px; overflow: hidden;
  display: grid; place-items: center; font-weight: 800; font-size: 26px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 20px rgba(79,110,247,.24); }
.icon-preview img { width: 100%; height: 100%; object-fit: cover; }
.icon-uploader .up-actions { display: flex; flex-direction: column; gap: 7px; }
.side-nav { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 10px;
  color: var(--text-dim); font-size: 14px; border: 1px solid transparent; background: transparent;
  text-align: left; width: 100%; transition: .16s; letter-spacing: .5px; position: relative; }
.nav-item .ico { width: 20px; text-align: center; font-size: 15px; }
.nav-item:hover { background: var(--panel-2); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px;
  border-radius: 3px; background: var(--primary); }
.nav-item .badge-dot { margin-left: auto; background: var(--red); color: #fff; font-size: 11px;
  min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.side-foot { padding: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.side-ver { font-size: 10px; color: var(--text-mute); letter-spacing: .5px; text-align: center; opacity: .8; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center;
  font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); font-size: 14px; }
.user-chip .u-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--text); }
.user-chip .u-role { font-size: 11px; color: var(--primary); }
.user-chip .u-info { min-width: 0; }
.user-chip .u-info > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 16px 26px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 20; }
.topbar::after { content: none; }
.topbar h2 { font-size: 18px; letter-spacing: .5px; color: var(--text); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: #fff; border: 1px solid var(--line-strong); color: var(--text);
  width: 38px; height: 38px; border-radius: 10px; font-size: 17px; }
.view { padding: 26px 26px 60px; max-width: 1280px; width: 100%; margin: 0 auto; }

/* ---------- 通用组件 ---------- */
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); }
.card::before { content: none; }
.card + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h3 { font-size: 15.5px; letter-spacing: .5px; color: var(--text); position: relative; padding-left: 12px; }
.card-head h3::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 16px; border-radius: 3px; background: var(--primary); }
.card-head .spacer { flex: 1; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
/* 星系容量/税率卡片：自适应紧凑网格，星系多时自动多列、不占大面积 */
.gal-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.mt { margin-top: 18px; }

.kpi { padding: 18px 18px 16px; }
.kpi::after { content: none; }
.kpi .k-label { font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 7px; }
.kpi .k-value { font-size: 30px; font-weight: 800; margin-top: 8px; color: var(--text); }
.kpi .k-sub { font-size: 12px; color: var(--text-mute); margin-top: 4px; }
.kpi.purple .k-value { color: var(--primary); }
.kpi.cyan .k-value { color: var(--blue); }
.kpi.amber .k-value { color: var(--amber); }
.kpi.green .k-value { color: var(--green); }
.kpi.red .k-value { color: var(--red); }
.kpi .kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi .kpi-label { font-size: 13px; color: var(--text-dim); }
.kpi .kpi-ico { font-size: 18px; opacity: .8; }
.kpi .kpi-num { font-size: 30px; font-weight: 800; margin-top: 10px; color: var(--text); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.badge-super { background: rgba(245,158,11,.12); color: #b45309; border-color: rgba(245,158,11,.30); }
.badge-gadmin { background: rgba(139,92,246,.12); color: #6d28d9; border-color: rgba(139,92,246,.30); }
.badge-admin { background: rgba(59,130,246,.12); color: #1d4ed8; border-color: rgba(59,130,246,.28); }
.badge-att { background: rgba(18,161,80,.10); color: var(--green); border-color: rgba(18,161,80,.28); }
.badge-member { background: rgba(100,116,139,.12); color: #475569; border-color: rgba(100,116,139,.26); }
.badge-active { background: rgba(18,161,80,.10); color: var(--green); border-color: rgba(18,161,80,.28); }
.badge-left { background: rgba(229,72,77,.10); color: var(--red); border-color: rgba(229,72,77,.26); }
.badge-pending { background: rgba(245,158,11,.12); color: #b45309; border-color: rgba(245,158,11,.30); }
.badge-approved { background: rgba(18,161,80,.10); color: var(--green); border-color: rgba(18,161,80,.28); }
.badge-rejected { background: rgba(229,72,77,.10); color: var(--red); border-color: rgba(229,72,77,.26); }
.badge-running { background: rgba(18,161,80,.10); color: var(--green); border-color: rgba(18,161,80,.28); }
.badge-expired { background: rgba(100,116,139,.12); color: #64748b; border-color: rgba(100,116,139,.26); }
.badge-disabled { background: rgba(229,72,77,.10); color: var(--red); border-color: rgba(229,72,77,.26); }
.badge.muted { background: rgba(100,116,139,.10); color: var(--text-mute); border-color: rgba(100,116,139,.22); }

/* 表格 */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th { background: var(--panel-2); color: var(--text-dim);
  font-weight: 600; text-align: left; padding: 12px 14px; white-space: nowrap; font-size: 12.5px;
  letter-spacing: .5px; border-bottom: 1px solid var(--line); }
tbody td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: middle; color: var(--text); }
tbody tr:hover { background: var(--panel-2); }
td .cell-sub { font-size: 12px; color: var(--text-mute); margin-top: 2px; }
.td-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.empty { text-align: center; padding: 46px 20px; color: var(--text-mute); font-size: 14px; }
.empty .e-ico { font-size: 40px; display: block; margin-bottom: 12px; opacity: .55; }

/* 工具条 / 筛选 */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { padding: 9px 12px; background: #fff; border: 1px solid var(--line-strong);
  border-radius: 10px; color: var(--text); font-size: 13.5px; outline: none; }
.toolbar input:focus, .toolbar select:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.search-box { position: relative; }
.search-box input { padding-left: 32px; min-width: 200px; }
.search-box::before { content: "◎"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--text-mute); }

/* 弹窗 */
.modal-root { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-mask { position: absolute; inset: 0; background: rgba(23,31,50,.42); backdrop-filter: blur(3px); }
.modal { position: relative; width: 560px; max-width: calc(100vw - 40px); max-height: 88vh; overflow-y: auto;
  background: var(--panel-solid); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(23,35,64,.22); }
.modal::before { content: none; }
.modal.modal-lg { width: 760px; }
.modal-head { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: #fff; z-index: 2; border-radius: 18px 18px 0 0; }
.modal-head h3 { font-size: 16px; letter-spacing: .5px; color: var(--text); }
.modal-close { margin-left: auto; background: transparent; border: 1px solid var(--line); color: var(--text-dim);
  font-size: 22px; line-height: 1; width: 34px; height: 34px; border-radius: 9px; }
.modal-close:hover { background: var(--panel-2); color: var(--text); }
.modal-body { padding: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
textarea { resize: vertical; min-height: 74px; }

/* 截图上传 */
.uploader { border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 20px; text-align: center;
  color: var(--text-dim); cursor: pointer; transition: .2s; background: var(--panel-2); }
.uploader:hover { border-color: var(--primary); background: var(--primary-soft); }
.shot-preview { margin-top: 12px; position: relative; display: inline-block; }
.shot-preview img { max-width: 100%; max-height: 260px; border-radius: 12px; border: 1px solid var(--line); }
.shot-previews { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.shot-prev { position: relative; }
.shot-prev img.shot-thumb { width: 72px; height: 72px; }
.shot-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; }
.shot-large { max-width: 100%; max-height: 60vh; border-radius: 12px; }

/* 角色卡片（游戏角色） */
.char-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.char-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px;
  transition: .2s; position: relative; box-shadow: var(--shadow-sm); }
.char-card:hover { border-color: var(--line-strong); box-shadow: 0 10px 26px rgba(23,35,64,.10); transform: translateY(-2px); }
.char-card .cc-name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--primary); }
.char-card .cc-row { font-size: 12.5px; color: var(--text-dim); margin-top: 7px; display: flex; gap: 7px; }
.char-card .cc-row b { color: var(--text-mute); font-weight: 500; flex: none; }
.char-card .cc-actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.icon-btn { background: var(--primary-soft); border: 1px solid transparent; color: var(--primary);
  width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
.icon-btn.danger { color: var(--red); background: rgba(229,72,77,.10); }
.icon-btn:hover { filter: brightness(.97); transform: translateY(-1px); }

/* 图表 */
.chart-box { position: relative; width: 100%; }
.chart-box canvas { width: 100%; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 12.5px; color: var(--text-dim); }
.legend .lg-item { display: flex; align-items: center; gap: 6px; }
.legend .lg-dot { width: 11px; height: 11px; border-radius: 3px; }

/* 排行榜 */
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line); }
.rank-no { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center;
  font-weight: 800; background: var(--primary-soft); color: var(--primary); }
.rank-no.top1 { background: linear-gradient(135deg,#ffd666,#f5b800); color: #5a3d00; }
.rank-no.top2 { background: linear-gradient(135deg,#d7dee9,#aab6c6); color: #2a3340; }
.rank-no.top3 { background: linear-gradient(135deg,#ffb066,#f07d1a); color: #4a2400; }
.rank-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.rank-bar > i { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.rank-val { font-size: 13px; font-weight: 700; min-width: 96px; text-align: right; color: var(--primary); }

/* Toast */
.toast-root { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { padding: 11px 20px; border-radius: 12px; font-size: 14px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow); animation: toastIn .25s ease; color: var(--text); }
.toast.ok { border-color: rgba(18,161,80,.4); color: var(--green); }
.toast.err { border-color: rgba(229,72,77,.4); color: var(--red); }
.toast.info { border-color: rgba(79,110,247,.4); color: var(--primary); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* 同步/本地写入失败持久提示：顶部横幅 + 侧边栏「未同步」标记 */
.sync-banner { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 400;
  align-items: center; justify-content: center; gap: 12px; padding: 10px 16px;
  background: #fff7e6; color: #9a5b00; border-bottom: 1px solid #f0d9a8;
  font-size: 13px; font-weight: 600; box-shadow: 0 4px 14px rgba(23,35,64,.08); }
.sync-banner.show { display: flex; }
.sync-banner span { max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sync-mark { color: var(--red); font-weight: 700; }

/* 任务卡 */
.task-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.task-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 17px;
  display: flex; flex-direction: column; gap: 10px; transition: .2s; position: relative; box-shadow: var(--shadow-sm); }
.task-card::before { content: none; }
.task-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(23,35,64,.12); }
.task-card .tc-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 9px; color: var(--text); }
.task-card .tc-desc { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.task-card .tc-meta { font-size: 12.5px; color: var(--text-mute); display: grid; grid-template-columns: auto 1fr;
  gap: 5px 9px; margin-top: 2px; }
.task-card .tc-meta b { color: var(--primary); font-weight: 500; }
.task-card .tc-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; gap: 9px; align-items: center; }
.task-card .tc-foot .spacer { flex: 1; }

.section-title { font-size: 14px; color: var(--text-dim); margin: 4px 0 12px; display: flex; align-items: center; gap: 9px;
  letter-spacing: .5px; }
.section-title::before { content: "▸"; color: var(--primary); }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.muted { color: var(--text-mute); }
.small { font-size: 12.5px; }
.text-center { text-align: center; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: 7px; }
.mt-sm { margin-top: 10px; }
.w-full { width: 100%; }

/* 响应式 */
@media (max-width: 1024px) {
  .grid-4, .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; transform: translateX(-100%);
    transition: transform .25s; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .menu-toggle { display: grid; place-items: center; }
  .grid-4, .kpi-grid, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .view { padding: 18px 14px 50px; }
  .topbar { padding: 13px 16px; }
}

/* 可搜索持有人选择（个堡台账登记/编辑） */
.ow-pick { position: relative; }
.ow-list { max-height: 190px; overflow: auto; border: 1px solid var(--line, #e6eaf3); border-top: none; border-radius: 0 0 var(--radius-sm, 10px) var(--radius-sm, 10px); background: var(--panel, #fff); box-shadow: var(--shadow-sm, none); }
.ow-item { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--line, #e6eaf3); display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--text, #1f2533); }
.ow-item:last-child { border-bottom: none; }
.ow-item:hover { background: var(--primary-soft, rgba(79, 110, 247, 0.10)); }
.ow-phone { color: var(--text-mute, #98a1b5); font-size: 12px; }
.ow-empty { padding: 9px 12px; color: var(--text-mute, #98a1b5); font-size: 13px; }
