/* ==========================================================================
   客户管理系统 — 设计系统
   浅色专业后台 / 主色蓝 / 三类客户各有识别色
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eef4ff;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #fafbfd;
  --border: #e4e8f0;
  --border-strong: #d3d9e5;
  --text: #16203a;
  --text-2: #5a667c;
  --text-3: #8c99ae;
  --success: #0f9960;
  --success-soft: #e8f7f0;
  --warning: #d97706;
  --warning-soft: #fef6e7;
  --danger: #dc2626;
  --danger-soft: #fdeeee;
  --info: #0891b2;
  --info-soft: #e6f7fb;
  --dy: #fe2c55;
  --ks: #ff5000;
  --sph: #07c160;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow-sm: 0 1px 2px rgba(22, 32, 58, .06);
  --shadow: 0 2px 8px rgba(22, 32, 58, .07);
  --shadow-lg: 0 12px 32px rgba(22, 32, 58, .13);
  --sidebar-w: 216px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c8d0de; border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #aab5c8; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 布局 ---------------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--border);
}
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #4f8ef7);
  color: #fff; font-weight: 700; font-size: 15px;
  display: grid; place-items: center;
  box-shadow: 0 3px 8px rgba(37, 99, 235, .28);
  letter-spacing: -.5px;
}
.brand-text { line-height: 1.2; }
.brand-title { font-weight: 650; font-size: 14.5px; letter-spacing: .2px; }
.brand-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }

.nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.nav-label {
  font-size: 11px; color: var(--text-3); font-weight: 600;
  padding: 10px 10px 6px; letter-spacing: .6px; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 8px;
  color: var(--text-2); font-size: 13.5px; cursor: pointer;
  margin-bottom: 2px; transition: background .14s, color .14s;
  user-select: none;
}
.nav-item:hover { background: #f2f5fa; color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-item .dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; }
.nav-item .count {
  margin-left: auto; font-size: 11px; color: var(--text-3);
  background: #f1f4f9; border-radius: 20px; padding: 1px 7px; font-variant-numeric: tabular-nums;
}
.nav-item.active .count { background: #dce7ff; color: var(--primary); }

.sidebar-foot { border-top: 1px solid var(--border); padding: 12px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 6px; border-radius: 8px; }
.user-chip:hover { background: var(--surface-2); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: #e8edf7; color: var(--primary); font-weight: 600; font-size: 12px;
  display: grid; place-items: center; flex: 0 0 30px;
}
.user-meta { min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--text-3); }

.main {
  margin-left: var(--sidebar-w);
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}

.topbar {
  height: 58px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px;
  position: sticky; top: 0; z-index: 30;
}
.page-title { font-size: 15.5px; font-weight: 650; letter-spacing: .1px; }
.page-sub { font-size: 12px; color: var(--text-3); }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.content { padding: 20px 22px 40px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 13px;
  border-radius: 8px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-2);
  font-size: 13px; font-weight: 550; cursor: pointer;
  transition: all .14s; white-space: nowrap;
}
.btn:hover { background: #f7f9fc; border-color: #c3cbda; color: var(--text); }
.btn:active { transform: translateY(.5px); }
.btn-primary {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, .3);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-danger { color: var(--danger); border-color: #f3c9c9; background: #fff; }
.btn-danger:hover { background: var(--danger-soft); border-color: #eba5a5; color: var(--danger); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: #f0f3f9; border-color: transparent; }
.btn-sm { height: 29px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.card-title { font-size: 14px; font-weight: 650; }
.card-body { padding: 18px; }

/* ---------------- 统计卡 ---------------- */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px; margin-bottom: 16px;
}
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat-label { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.stat-value {
  font-size: 26px; font-weight: 680; letter-spacing: -.6px; margin-top: 6px;
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.stat-value small { font-size: 13px; font-weight: 500; color: var(--text-3); margin-left: 4px; }
.stat-foot { font-size: 11.5px; color: var(--text-3); margin-top: 6px; }
.stat-accent { position: absolute; right: 0; top: 0; height: 3px; width: 100%; }
.stat.warn .stat-value { color: var(--warning); }
.stat.danger .stat-value { color: var(--danger); }

/* ---------------- 类型切换 ---------------- */
.type-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.type-tab {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); font-size: 13px; font-weight: 550; cursor: pointer;
  transition: all .15s;
}
.type-tab:hover { border-color: var(--border-strong); color: var(--text); }
.type-tab.active {
  border-color: currentColor; font-weight: 650;
  box-shadow: 0 1px 4px rgba(22, 32, 58, .08);
}
.type-tab .badge-dot { width: 8px; height: 8px; border-radius: 50%; }
.type-tab[data-type="douyin"].active { color: var(--dy); background: #fff5f7; }
.type-tab[data-type="kuaishou"].active { color: var(--ks); background: #fff7f2; }
.type-tab[data-type="shipinhao"].active { color: var(--sph); background: #f2fdf7; }
.type-tab[data-type="all"].active { color: var(--primary); background: var(--primary-soft); }

/* ---------------- 工具条 ---------------- */
.toolbar {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.search {
  position: relative; flex: 1; min-width: 200px; max-width: 340px;
}
.search input {
  width: 100%; height: 34px; padding: 0 30px 0 32px;
  border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--surface); color: var(--text); font-size: 13px; outline: none;
  transition: border-color .14s, box-shadow .14s;
}
.search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search .clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: none; background: none; cursor: pointer; color: var(--text-3);
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 14px;
}
.search .clear:hover { background: #eef1f6; color: var(--text); }

.field-inline { display: flex; align-items: center; gap: 6px; }
.field-inline label { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
select.ctl, input.ctl {
  height: 34px; padding: 0 9px; border: 1px solid var(--border-strong);
  border-radius: 8px; background: var(--surface); color: var(--text); font-size: 13px; outline: none;
}
select.ctl:focus, input.ctl:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.spacer { flex: 1; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow: auto; max-height: calc(100vh - 250px); border-radius: 0 0 var(--radius) var(--radius); }
table.grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.grid thead th {
  position: sticky; top: 0; z-index: 3;
  background: #f8fafc; color: var(--text-2);
  font-size: 12px; font-weight: 600; text-align: left;
  padding: 9px 12px; white-space: nowrap;
  border-bottom: 1px solid var(--border);
  cursor: pointer; user-select: none;
}
table.grid thead th:hover { background: #f1f5fa; color: var(--text); }
table.grid thead th .sort { color: var(--primary); margin-left: 3px; font-size: 10px; }
table.grid tbody td {
  padding: 9px 12px; border-bottom: 1px solid #f0f3f8;
  vertical-align: middle; white-space: nowrap; color: var(--text);
}
table.grid tbody tr:hover td { background: #f9fbff; }
table.grid tbody tr:last-child td { border-bottom: none; }
.col-sticky {
  position: sticky; left: 0; z-index: 2; background: var(--surface);
  box-shadow: 1px 0 0 var(--border);
}
table.grid thead th.col-sticky { z-index: 4; background: #f8fafc; }
table.grid tbody tr:hover .col-sticky { background: #f9fbff; }
/* 操作列固定在右侧，横向滚动时始终可点 */
table.grid thead th.col-actions {
  position: sticky; right: 0; z-index: 4; background: #f8fafc;
  box-shadow: -1px 0 0 var(--border); text-align: right;
}
table.grid tbody td.col-actions {
  position: sticky; right: 0; z-index: 2; background: var(--surface);
  box-shadow: -1px 0 0 var(--border);
}
table.grid tbody tr:hover td.col-actions { background: #f9fbff; }
.cell-name { font-weight: 600; color: var(--text); }
.cell-name a { color: inherit; }
.cell-name a:hover { color: var(--primary); }
.cell-sub { font-size: 11.5px; color: var(--text-3); font-weight: 400; margin-top: 1px; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.money { font-variant-numeric: tabular-nums; font-weight: 600; }
.money.pos { color: var(--success); }
.money.neg { color: var(--danger); }
.ellipsis { max-width: 240px; overflow: hidden; text-overflow: ellipsis; display: block; }

/* 徽章 */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 21px; padding: 0 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  flex-shrink: 0; max-width: none;
}
.badge-gray { background: #f1f4f9; color: var(--text-2); }
.badge-blue { background: var(--primary-soft); color: var(--primary); }
.badge-green { background: var(--success-soft); color: var(--success); }
.badge-orange { background: var(--warning-soft); color: var(--warning); }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-dy { background: #fff0f3; color: var(--dy); }
.badge-ks { background: #fff2ea; color: var(--ks); }
.badge-sph { background: #eafaf1; color: var(--sph); }

/* 分页 */
.pager {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-2); flex-wrap: wrap;
}
.pager .pages { display: flex; gap: 4px; margin-left: auto; }
.pager button {
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 7px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  font-size: 12.5px; cursor: pointer; font-variant-numeric: tabular-nums;
}
.pager button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pager button.current { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------------- 空状态 / 加载 ---------------- */
.empty { padding: 56px 20px; text-align: center; color: var(--text-3); }
.empty .icon { font-size: 30px; opacity: .5; margin-bottom: 8px; }
.empty h4 { margin: 0 0 4px; font-size: 14px; color: var(--text-2); font-weight: 600; }
.empty p { margin: 0 0 14px; font-size: 12.5px; }

.skeleton { padding: 16px; }
.skeleton .line { height: 12px; background: linear-gradient(90deg, #eef1f6 25%, #f6f8fc 50%, #eef1f6 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 5px; margin-bottom: 12px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------------- 表单 ---------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label.lbl {
  display: block; font-size: 12.5px; color: var(--text-2);
  margin-bottom: 5px; font-weight: 550;
}
.field label.lbl .req { color: var(--danger); margin-left: 2px; }
.field .hint { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.input, textarea.input, select.input {
  width: 100%; height: 36px; padding: 0 11px;
  border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--surface); color: var(--text); font-size: 13.5px; outline: none;
  transition: border-color .14s, box-shadow .14s;
}
.input:hover { border-color: #c2cad9; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.input[readonly] { background: #f7f9fc; color: var(--text-2); cursor: default; }
.input[disabled] { background: #f4f6fa; color: var(--text-3); }
textarea.input { height: auto; min-height: 76px; padding: 9px 11px; resize: vertical; line-height: 1.55; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238c99ae' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }

.form-section { margin-bottom: 20px; }
.form-section-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.form-section-head h3 { margin: 0; font-size: 13.5px; font-weight: 650; }
.form-section-head .idx {
  width: 20px; height: 20px; border-radius: 6px; background: var(--primary-soft);
  color: var(--primary); font-size: 11px; font-weight: 700; display: grid; place-items: center;
}

.secret-wrap { position: relative; }
.secret-wrap .toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: none; background: none; cursor: pointer; color: var(--text-3); font-size: 11.5px;
  padding: 3px 6px; border-radius: 5px;
}
.secret-wrap .toggle:hover { background: #eef1f6; color: var(--primary); }

/* 列表内联标记（门店情况） */
.dot-red {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--danger); margin-left: 5px; vertical-align: middle;
}
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

.inline-select {
  height: 26px; padding: 0 20px 0 7px; max-width: 108px;
  font-size: 12.5px; font-family: inherit;
  border: 1px solid transparent; border-radius: 6px;
  background-color: transparent; color: var(--text-2);
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238c99ae' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center;
  transition: all .14s;
}
.inline-select:hover { border-color: var(--border-strong); background-color: #fff; color: var(--text); }
.inline-select:focus { outline: none; border-color: var(--primary); background-color: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.inline-select:disabled { opacity: .5; }

/* 表单内的横向组合（营业时间） */
.field .row > .input { flex: 1; min-width: 0; }

/* ---------------- 详情 ---------------- */
.detail-head {
  display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap;
  padding: 18px; border-bottom: 1px solid var(--border);
}
.detail-title { font-size: 19px; font-weight: 680; letter-spacing: -.2px; }
.detail-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: var(--text-2); }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px 22px; }
.kv .k { font-size: 12px; color: var(--text-3); margin-bottom: 3px; }
.kv .v { font-size: 13.5px; color: var(--text); word-break: break-all; }
.kv .v.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.kv .v.muted { color: var(--text-3); }

/* ---------------- 模态 ---------------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(22, 32, 58, .38);
  display: flex; align-items: center; justify-content: center; z-index: 100;
  padding: 20px; animation: fade .15s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 440px; overflow: hidden; animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.97) translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { padding: 16px 18px 0; font-size: 15px; font-weight: 650; }
.modal-body { padding: 12px 18px 4px; color: var(--text-2); font-size: 13.5px; }
.modal-foot { padding: 16px 18px; display: flex; gap: 8px; justify-content: flex-end; }

/* ---------------- Toast ---------------- */
#toasts { position: fixed; top: 68px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  min-width: 220px; max-width: 380px;
  background: #16203a; color: #fff;
  padding: 11px 15px; border-radius: 9px; font-size: 13px;
  box-shadow: var(--shadow-lg); animation: slidein .2s ease;
  display: flex; gap: 8px; align-items: flex-start;
}
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.ok { background: #0d7a4d; }
.toast.err { background: #b91c1c; }
.toast .close { margin-left: auto; cursor: pointer; opacity: .6; }

/* ---------------- 登录 ---------------- */
.auth-wrap {
  min-height: 100vh; display: grid; place-items: center;
  background:
    radial-gradient(1100px 520px at 12% -8%, #e3edff 0%, transparent 62%),
    radial-gradient(900px 460px at 100% 0%, #eaf3ff 0%, transparent 58%),
    var(--bg);
  padding: 24px;
}
.auth-card {
  width: 100%; max-width: 388px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(22, 32, 58, .12);
  padding: 30px 30px 26px;
}
.auth-logo {
  width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 14px;
  background: linear-gradient(135deg, #2563eb, #4f8ef7); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 18px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .3);
}
.auth-title { text-align: center; font-size: 18px; font-weight: 680; letter-spacing: -.2px; }
.auth-sub { text-align: center; font-size: 12.5px; color: var(--text-3); margin: 4px 0 22px; }
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 5px; font-weight: 550; }
.auth-field input {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border-strong);
  border-radius: 9px; font-size: 14px; outline: none; transition: all .14s;
}
.auth-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.auth-btn {
  width: 100%; height: 41px; margin-top: 6px; border: none; border-radius: 9px;
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .14s;
}
.auth-btn:hover { background: var(--primary-dark); }
.auth-btn:disabled { opacity: .65; cursor: not-allowed; }
.auth-err { color: var(--danger); font-size: 12.5px; min-height: 18px; margin-top: 10px; text-align: center; }
.auth-foot { text-align: center; font-size: 11.5px; color: var(--text-3); margin-top: 18px; }

/* ---------------- 其他 ---------------- */
.list-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-bottom: 1px solid #f0f3f8; font-size: 13px;
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: #f9fbff; }
.list-main { min-width: 0; flex: 1; }
.list-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-sub { font-size: 11.5px; color: var(--text-3); }

.split-2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; }
.mb-16 { margin-bottom: 16px; }
.mt-8 { margin-top: 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.text-3 { color: var(--text-3); }
.text-2 { color: var(--text-2); }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.bold { font-weight: 650; }
.nowrap { white-space: nowrap; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }

.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: middle; }

.bar-track { height: 8px; border-radius: 6px; background: #eef1f7; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; }

@media (max-width: 1180px) {
  .split-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --sidebar-w: 64px; }
  .brand-text, .nav-label, .nav-item span.t, .user-meta, .nav-item .count { display: none; }
  .brand { justify-content: center; padding: 16px 8px; }
  .nav-item { justify-content: center; padding: 11px 0; }
  .sidebar-foot { padding: 8px; }
  .content { padding: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .topbar { padding: 0 14px; }
}
