:root {
  --bg: #f3f5f8;
  --panel: #fff;
  --text: #182230;
  --muted: #697586;
  --line: #e1e7ef;
  --soft-line: #edf1f5;
  --accent: #d92d4b;
  --accent-dark: #ad1f38;
  --good: #047857;
  --bad: #b42318;
  --blue: #2563eb;
  --sidebar: #101828;
  --sidebar-2: #172033;
  --shadow: 0 12px 32px rgba(15, 23, 42, .08);
  --soft-shadow: 0 6px 18px rgba(15, 23, 42, .05);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--text); background: linear-gradient(180deg, #f7f9fc 0%, var(--bg) 260px); }
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 25px; letter-spacing: 0; }
h2 { font-size: 20px; }
h3 { font-size: 15px; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.7; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(145deg, #101828 0%, #202939 58%, #3b1822 100%); }
.login-box { width: min(100%, 420px); background: rgba(255,255,255,.98); border: 1px solid rgba(255,255,255,.62); border-radius: 12px; padding: 30px; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.brand { display: flex; gap: 10px; align-items: center; margin-bottom: 22px; }
.logo { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, var(--accent), #f0526e); box-shadow: 0 8px 18px rgba(217,45,75,.32); font-weight: 800; }
.form-grid { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: #364152; font-size: 13px; font-weight: 800; }
input, select, textarea { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; outline: none; background: #fff; color: var(--text); transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
textarea { min-height: 76px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45,91,255,.12); }
input.field-invalid, select.field-invalid, textarea.field-invalid { border-color: #d92d4b; background: #fff7f8; box-shadow: 0 0 0 3px rgba(217,45,75,.14); }
.btn { min-height: 40px; padding: 9px 14px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: #fff; background: linear-gradient(180deg, #e63b5a, var(--accent)); box-shadow: 0 8px 18px rgba(217,45,75,.2); font-weight: 800; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(217,45,75,.26); }
.btn.secondary { background: #26313f; }
.btn.ghost { color: var(--text); background: #f7f9fc; border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: #edf2f7; box-shadow: none; }
.btn.small { min-height: 30px; padding: 5px 9px; font-size: 12px; }
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, var(--sidebar) 0%, #121a2b 100%); color: #fff; padding: 22px 16px; display: flex; flex-direction: column; gap: 24px; box-shadow: 12px 0 32px rgba(15,23,42,.12); }
.sidebar .hint { color: #aeb9c9; }
.nav { display: grid; gap: 8px; }
.nav button { width: 100%; color: #d7dee8; background: transparent; border-radius: 9px; min-height: 42px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; text-align: left; font-weight: 800; position: relative; transition: background .16s ease, color .16s ease; }
.nav button::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: #4b5565; flex: 0 0 auto; }
.nav button.active, .nav button:hover { background: var(--sidebar-2); color: #fff; }
.nav button.active::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(217,45,75,.14); }
.sidebar-bottom { margin-top: auto; display: grid; gap: 10px; }
.main { min-width: 0; display: grid; grid-template-rows: auto 1fr; }
.topbar { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 26px; background: rgba(255,255,255,.86); border-bottom: 1px solid var(--soft-line); backdrop-filter: blur(10px); }
.content { padding: 24px 26px; display: grid; gap: 18px; align-content: start; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; justify-content: space-between; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.filters label { min-width: 150px; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(140px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--soft-line); border-radius: 12px; box-shadow: var(--soft-shadow); overflow: hidden; }
.kpi { padding: 18px; display: grid; gap: 10px; position: relative; text-align: left; border: 1px solid var(--soft-line); }
.kpi-button { text-align: left; cursor: pointer; }
.kpi-button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi.clickable { cursor: pointer; appearance: none; font: inherit; color: inherit; }
.kpi.clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--accent), #2563eb); opacity: .84; }
.kpi span { color: var(--muted); font-size: 13px; font-weight: 700; }
.kpi strong { font-size: 30px; line-height: 1; color: #111827; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--soft-line); background: linear-gradient(180deg, #fff, #fbfcfe); }
.panel-body { padding: 18px; }
.table-wrap { overflow: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; min-width: 1120px; font-size: 13px; background: #fff; }
th, td { padding: 12px 12px; border-bottom: 1px solid var(--soft-line); text-align: left; vertical-align: top; }
tbody tr:hover { background: #fbfcfe; }
tr.editable-row { cursor: pointer; }
tr.editable-row:hover { background: #fff7f8; }
.editable-cell { cursor: pointer; border-radius: 6px; }
.editable-cell:hover { background: #fff1f3; color: var(--accent-dark); }
.inline-editor { min-height: 30px; padding: 4px 8px; border-radius: 6px; font-size: 13px; }
th { color: #4b5565; background: #f8fafc; font-size: 12px; position: sticky; top: 0; z-index: 1; font-weight: 900; }
.sort-btn { margin-left: 5px; width: 22px; height: 22px; min-height: 22px; padding: 0; border-radius: 6px; background: #eef2f7; color: #667085; font-size: 11px; font-weight: 900; vertical-align: middle; }
.sort-btn.active { background: #dbeafe; color: #1d4ed8; }
.tag { display: inline-flex; border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 800; background: #eef2f6; color: #344054; white-space: nowrap; }
.tag.good { background: #dcfce7; color: var(--good); }
.tag.bad { background: #fee4e2; color: var(--bad); }
.tag.blue { background: #dbeafe; color: var(--blue); }
.tag-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-btn { min-height: 26px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 900; border: 1px solid transparent; background: #f1f5f9; color: #475467; box-shadow: none; }
.tag-btn.active.tag-发布 { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
.tag-btn.active.tag-评论 { background: #dcfce7; color: #047857; border-color: #86efac; }
.tag-btn.active.tag-群主 { background: #fef3c7; color: #b45309; border-color: #fcd34d; }
.tag-btn:disabled { opacity: .5; }
.usage-summary { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--soft-line); border-radius: 10px; background: #fbfcfe; }
.role-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.check-card { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }
.check-card input { width: 18px; min-height: 18px; accent-color: var(--accent); }
.check-card span { font-size: 14px; font-weight: 900; }
.check-card.tag-发布:has(input:checked) { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.check-card.tag-评论:has(input:checked) { background: #f0fdf4; border-color: #86efac; color: #047857; }
.check-card.tag-群主:has(input:checked) { background: #fffbeb; border-color: #fcd34d; color: #b45309; }
.modal { position: fixed; inset: 0; background: rgba(12,18,28,.52); display: none; align-items: center; justify-content: center; padding: 18px; z-index: 10; backdrop-filter: blur(3px); }
.modal.show { display: flex; }
.modal-box { width: min(100%, 880px); max-height: 92vh; overflow: auto; background: #fff; border-radius: 14px; box-shadow: 0 28px 70px rgba(15,23,42,.24); }
.dialog-box { width: min(100%, 390px); padding: 24px; text-align: center; display: grid; gap: 14px; }
.dialog-box h3 { font-size: 18px; }
.dialog-box p { color: #475467; line-height: 1.7; white-space: pre-line; }
.dialog-icon { width: 42px; height: 42px; margin: 0 auto; display: grid; place-items: center; border-radius: 999px; background: #dbeafe; color: #1d4ed8; font-weight: 900; }
.dialog-icon.warn { background: #fee4e2; color: #b42318; }
.dialog-actions { display: flex; gap: 10px; justify-content: center; }
.dialog-actions .btn { min-width: 96px; }
.form-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.span-3 { grid-column: 1 / -1; }
.compact-textarea { min-height: 46px; }
.shutiao-combo { align-content: start; }
.shutiao-combo textarea { margin-top: 7px; }
.toast { position: fixed; right: 18px; bottom: 18px; background: #111827; color: #fff; border-radius: 9px; padding: 11px 14px; display: none; z-index: 20; box-shadow: var(--shadow); }
.toast.show { display: block; }
.empty { color: var(--muted); text-align: center; padding: 38px 12px; }
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 5; flex-direction: row; align-items: center; gap: 12px; overflow-x: auto; padding: 12px; box-shadow: 0 8px 22px rgba(17,24,39,.18); }
  .sidebar .brand { min-width: 190px; margin: 0; }
  .sidebar .brand h3 { font-size: 14px; }
  .sidebar .hint { font-size: 11px; line-height: 1.4; }
  .logo { width: 34px; height: 34px; border-radius: 7px; }
  .nav { display: flex; min-width: max-content; gap: 6px; }
  .nav button { width: auto; min-height: 36px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.08); }
  .nav button::before { display: none; }
  .sidebar-bottom { margin: 0 0 0 auto; min-width: 82px; display: flex; gap: 6px; }
  .sidebar-bottom .btn { min-height: 34px; padding: 7px 10px; }
  .topbar { min-height: auto; padding: 14px 16px; align-items: flex-start; flex-direction: column; gap: 4px; }
  .topbar h1 { font-size: 20px; }
  .content { padding: 16px; gap: 14px; }
  .toolbar { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .toolbar > .btn { width: 100%; }
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .filters label { min-width: 0; }
  .kpis { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .form-cols { grid-template-columns: 1fr; }
  .role-options { grid-template-columns: 1fr; }
  .span-3 { grid-column: auto; }
  input, select, textarea, .btn { min-height: 42px; }
  .btn.small { min-height: 34px; }
  .modal { align-items: flex-end; padding: 10px; }
  .modal-box { width: 100%; max-height: 94vh; border-radius: 10px; }
  .panel-head { padding: 12px; }
  .panel-body { padding: 12px; }
}
@media (max-width: 640px) {
  body { background: #eef2f6; }
  .login-page { padding: 14px; align-items: end; }
  .login-box { padding: 22px; border-radius: 14px; }
  .app { min-height: 100svh; }
  .sidebar { display: grid; grid-template-columns: 1fr auto; padding: 12px 12px 10px; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.08); }
  .sidebar .brand { min-width: 0; }
  .nav { grid-column: 1 / -1; overflow-x: auto; padding-bottom: 2px; }
  .nav button { flex: 0 0 auto; border-radius: 999px; background: #1b2431; }
  .nav button.active { background: #fff; color: #101828; }
  .sidebar-bottom { grid-column: 2; grid-row: 1; min-width: 76px; display: grid; grid-template-columns: 1fr; gap: 5px; }
  .sidebar-bottom .btn { min-height: 30px; font-size: 12px; padding: 5px 8px; }
  .topbar { background: #fff; border-bottom: 1px solid var(--soft-line); }
  .topbar .hint { font-size: 12px; }
  .content { padding: 12px; }
  .filters { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px; }
  .kpi::after { width: 3px; }
  .kpi strong { font-size: 24px; }
  .card { border-radius: 12px; box-shadow: 0 8px 20px rgba(28,35,43,.05); }
  .table-wrap { overflow: visible; }
  table { min-width: 0; border-collapse: separate; border-spacing: 0 10px; }
  thead { display: none; }
  tbody, tr, td { display: block; width: 100%; }
  tbody tr:hover { background: #fff; }
  tr { background: #fff; border: 1px solid var(--soft-line); border-radius: 12px; padding: 10px 12px; box-shadow: 0 6px 16px rgba(28,35,43,.04); }
  td { min-height: 34px; border: 0; padding: 7px 0 7px 42%; position: relative; font-size: 13px; word-break: break-word; }
  td::before { position: absolute; left: 0; top: 7px; width: 38%; color: var(--muted); font-size: 12px; font-weight: 800; content: ""; }
  td:last-child { padding-bottom: 2px; }
  td .btn { width: auto; margin: 2px 4px 2px 0; }
  .records-table td:nth-child(1)::before { content: "记录时间"; }
  .records-table td:nth-child(2)::before { content: "员工"; }
  .records-table td:nth-child(3)::before { content: "手机编号"; }
  .records-table td:nth-child(4)::before { content: "发布账号"; }
  .records-table td:nth-child(5)::before { content: "状态"; }
  .records-table td:nth-child(6)::before { content: "封号时间"; }
  .records-table td:nth-child(7)::before { content: "封号备注"; }
  .records-table td:nth-child(8)::before { content: "内容类型"; }
  .records-table td:nth-child(9)::before { content: "发布次数"; }
  .records-table td:nth-child(10)::before { content: "是否过推"; }
  .records-table td:nth-child(11)::before { content: "浏览量"; }
  .records-table td:nth-child(12)::before { content: "点赞数"; }
  .records-table td:nth-child(13)::before { content: "是否薯条"; }
  .records-table td:nth-child(14)::before { content: "薯条详情"; }
  .records-table td:nth-child(15)::before { content: "发布商品"; }
  .records-table td:nth-child(16)::before { content: "备注"; }
  .records-table td:nth-child(17)::before { content: "操作"; }
  .assets-table td:nth-child(1)::before { content: "员工"; }
  .assets-table td:nth-child(2)::before { content: "手机编号"; }
  .assets-table td:nth-child(3)::before { content: "小红书账号"; }
  .assets-table td:nth-child(4)::before { content: "状态"; }
  .assets-table td:nth-child(5)::before { content: "登录日期"; }
  .assets-table td:nth-child(6)::before { content: "养号天数"; }
  .assets-table td:nth-child(7)::before { content: "账号用途"; }
  .assets-table td:nth-child(8)::before { content: "操作"; }
  .accounts-table td:nth-child(1)::before { content: "员工"; }
  .accounts-table td:nth-child(2)::before { content: "手机编号"; }
  .accounts-table td:nth-child(3)::before { content: "账号"; }
  .accounts-table td:nth-child(4)::before { content: "账号用途"; }
  .accounts-table td:nth-child(5)::before { content: "状态"; }
  .accounts-table td:nth-child(6)::before { content: "封号时间"; }
  .accounts-table td:nth-child(7)::before { content: "封号备注"; }
  .accounts-table td:nth-child(8)::before { content: "登录日期"; }
  .accounts-table td:nth-child(9)::before { content: "养号天数"; }
  .accounts-table td:nth-child(10)::before { content: "启用时间"; }
  .accounts-table td:nth-child(11)::before { content: "操作"; }
  .dashboard-accounts-table td:nth-child(1)::before { content: "员工"; }
  .dashboard-accounts-table td:nth-child(2)::before { content: "手机编号"; }
  .dashboard-accounts-table td:nth-child(3)::before { content: "发布账号"; }
  .dashboard-accounts-table td:nth-child(4)::before { content: "状态"; }
  .dashboard-accounts-table td:nth-child(5)::before { content: "封号时间"; }
  .dashboard-accounts-table td:nth-child(6)::before { content: "封号备注"; }
  .employees-table td:nth-child(1)::before { content: "ID"; }
  .employees-table td:nth-child(2)::before { content: "登录账号"; }
  .employees-table td:nth-child(3)::before { content: "姓名"; }
  .employees-table td:nth-child(4)::before { content: "角色"; }
  .employees-table td:nth-child(5)::before { content: "状态"; }
  .employees-table td:nth-child(6)::before { content: "创建时间"; }
  .employees-table td:nth-child(7)::before { content: "操作"; }
  .modal { padding: 0; }
  .modal-box { border-radius: 14px 14px 0 0; max-height: 92svh; }
  .modal .panel-head:last-child { position: sticky; bottom: 0; background: #fff; box-shadow: 0 -6px 18px rgba(28,35,43,.08); }
  .modal .panel-head:last-child .btn { flex: 1; }
  .toast { left: 12px; right: 12px; bottom: 12px; text-align: center; }
}
@media (max-width: 380px) {
  .kpis { grid-template-columns: 1fr; }
  td { padding-left: 0; padding-top: 25px; }
  td::before { width: auto; top: 5px; }
}

/* Premium interface theme */
:root {
  --bg: #f7f9fd;
  --panel: #fff;
  --text: #101828;
  --muted: #667085;
  --line: #d8dee8;
  --soft-line: #edf1f6;
  --accent: #d92d4b;
  --accent-dark: #b91c34;
  --accent-soft: #fff0f3;
  --gold: #d4af37;
  --good: #047857;
  --bad: #b42318;
  --blue: #2563eb;
  --sidebar: #101828;
  --sidebar-2: #1d2939;
  --shadow: 0 20px 50px rgba(16, 24, 40, .12);
  --soft-shadow: 0 12px 30px rgba(16, 24, 40, .07);
}

body {
  background:
    radial-gradient(circle at 10% 0%, rgba(217,45,75,.11), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(37,99,235,.10), transparent 30%),
    linear-gradient(135deg, #fff7f8 0%, #f8fafc 42%, #eef6ff 100%);
}

.login-page {
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.16), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(217,45,75,.34), transparent 30%),
    linear-gradient(135deg, #0b1019 0%, #111827 54%, #7f1d32 100%);
}

.login-box {
  width: min(100%, 460px);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 28px 80px rgba(2, 6, 23, .34);
}

.login-box .brand {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--soft-line);
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(135deg, #ff647b, var(--accent));
  box-shadow: 0 14px 30px rgba(217,45,75,.28);
}

input, select, textarea {
  min-height: 44px;
  border-color: #d8dee8;
  border-radius: 12px;
  background: #fbfcff;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(217,45,75,.11);
  background: #fff;
}

.btn {
  min-height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff647b, var(--accent));
  box-shadow: 0 12px 24px rgba(217,45,75,.22);
}

.btn.secondary {
  background: linear-gradient(135deg, #1f2937, #101828);
  box-shadow: 0 12px 24px rgba(16,24,40,.18);
}

.btn.ghost {
  color: #344054;
  background: rgba(255,255,255,.82);
  border: 1px solid #e5eaf1;
}

.btn.ghost:hover {
  color: var(--accent-dark);
  background: #fff0f3;
}

.app {
  grid-template-columns: 282px minmax(0, 1fr);
  min-height: 100vh;
  padding: 28px;
  gap: 24px;
}

.sidebar {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  padding: 28px 20px;
  background:
    radial-gradient(circle at 90% 0%, rgba(217,45,75,.22), transparent 34%),
    linear-gradient(180deg, #182230 0%, #101828 52%, #080d15 100%);
  box-shadow: 0 24px 52px rgba(16,24,40,.18);
}

.sidebar .brand {
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar .brand h3 {
  font-size: 18px;
  letter-spacing: .2px;
}

.sidebar .hint {
  color: #aeb9c9;
}

.nav {
  gap: 10px;
}

.nav button {
  min-height: 46px;
  border-radius: 15px;
  padding: 11px 14px;
  color: #cbd5e1;
}

.nav button::before {
  width: 7px;
  height: 7px;
  background: #667085;
}

.nav button.active,
.nav button:hover {
  background: rgba(255,255,255,.10);
  color: #fff;
}

.nav button.active {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}

.nav button.active::before {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(212,175,55,.12);
}

.sidebar-bottom .btn.ghost {
  color: #fff;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.10);
}

.sidebar-bottom .btn.ghost:hover {
  background: #fff;
  color: #101828;
}

.main {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 30px;
  background: rgba(248,250,252,.86);
  box-shadow: 0 24px 60px rgba(16,24,40,.10);
  overflow: hidden;
}

.topbar {
  min-height: 92px;
  padding: 24px 32px;
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid #edf1f6;
}

.topbar h1 {
  font-size: 31px;
  font-weight: 900;
  color: #101828;
}

.topbar .hint {
  max-width: 680px;
  text-align: right;
}

.content {
  padding: 28px 32px 34px;
  gap: 22px;
}

.toolbar {
  padding: 16px;
  border: 1px solid #edf1f6;
  border-radius: 20px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 26px rgba(16,24,40,.05);
}

.filters {
  gap: 12px;
}

.filters label {
  min-width: 176px;
}

.kpis {
  gap: 16px;
}

.card {
  border-color: #e8edf4;
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
}

.kpi {
  min-height: 132px;
  padding: 22px;
  gap: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,255,255,.88)),
    radial-gradient(circle at 88% 16%, rgba(217,45,75,.10), transparent 30%);
}

.kpi::after {
  top: auto;
  left: 22px;
  right: auto;
  bottom: 18px;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.kpi span {
  color: #667085;
  font-size: 14px;
  font-weight: 800;
}

.kpi strong {
  font-size: 38px;
  letter-spacing: -.6px;
}

.kpi.clickable,
.kpi-button {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.kpi.clickable:hover,
.kpi-button:hover {
  border-color: rgba(217,45,75,.24);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.panel-head {
  padding: 18px 22px;
  background: linear-gradient(180deg, #fff, #fbfcff);
}

.panel-head h3 {
  font-size: 18px;
  font-weight: 900;
}

.panel-body {
  padding: 22px;
}

.table-wrap {
  background: #fff;
}

table {
  font-size: 13px;
}

th {
  padding: 14px 14px;
  color: #667085;
  background: #f8fafc;
  letter-spacing: .2px;
}

td {
  padding: 14px;
  color: #344054;
}

tbody tr {
  transition: background .15s ease;
}

tbody tr:hover {
  background: #fff8fa;
}

.tag {
  padding: 4px 10px;
  font-weight: 900;
}

.tag.good {
  background: #dcfce7;
}

.tag.bad {
  background: #fee2e2;
}

.sort-btn {
  border-radius: 8px;
  background: #eef2f7;
}

.modal {
  background: rgba(16,24,40,.58);
  backdrop-filter: blur(8px);
}

.modal-box {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.70);
  box-shadow: 0 32px 90px rgba(16,24,40,.28);
}

.dialog-box {
  border-radius: 24px;
}

.toast {
  right: 24px;
  bottom: 24px;
  border-radius: 14px;
  background: #101828;
  box-shadow: 0 18px 44px rgba(16,24,40,.22);
}

.mobile-tabbar,
.mobile-fab {
  display: none;
}

.app-employee.view-records .topbar,
.app-employee.view-dashboard .topbar {
  background:
    radial-gradient(circle at 88% 0%, rgba(217,45,75,.22), transparent 32%),
    linear-gradient(135deg, #101828 0%, #1f2937 58%, #8a1f35 100%);
}

.app-employee.view-records .topbar h1,
.app-employee.view-dashboard .topbar h1,
.app-employee.view-records .topbar .hint,
.app-employee.view-dashboard .topbar .hint {
  color: #fff;
}

@media (max-width: 1180px) {
  .app {
    grid-template-columns: 250px minmax(0, 1fr);
    padding: 18px;
    gap: 18px;
  }

  .kpis {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}

@media (max-width: 980px) {
  .app {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
  }

  .sidebar,
  .main {
    border-radius: 0;
  }

  .sidebar {
    position: sticky;
    top: 0;
    padding: 14px;
  }

  .topbar {
    padding: 18px;
  }

  .topbar .hint {
    text-align: left;
  }

  .content {
    padding: 16px;
  }

  .toolbar {
    padding: 14px;
  }

  .kpis {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    background: #f3f6fa;
  }

  .login-box {
    padding: 24px;
    border-radius: 22px;
  }

  .topbar h1 {
    font-size: 24px;
  }

  .kpi {
    min-height: 112px;
    padding: 16px;
  }

  .kpi strong {
    font-size: 28px;
  }

  .card {
    border-radius: 18px;
  }

  .panel-head,
  .panel-body {
    padding: 14px;
  }

  .modal-box {
    border-radius: 22px 22px 0 0;
  }
}

/* Mobile premium polish */
@media (max-width: 980px) {
  html {
    background: #f4f7fb;
  }

  body {
    min-width: 320px;
    background:
      radial-gradient(circle at 12% 0%, rgba(217,45,75,.10), transparent 32%),
      linear-gradient(180deg, #fff7f8 0%, #f4f7fb 240px, #eef2f6 100%);
  }

  .app {
    min-height: 100svh;
    background: transparent;
  }

  .sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    overflow: hidden;
    border: 0;
    border-radius: 0 0 24px 24px;
    background:
      radial-gradient(circle at 88% 0%, rgba(217,45,75,.28), transparent 34%),
      linear-gradient(135deg, #101828 0%, #182230 60%, #7f1d32 100%);
    box-shadow: 0 14px 34px rgba(16,24,40,.22);
  }

  .sidebar .brand {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
  }

  .sidebar .brand > div:last-child {
    min-width: 0;
  }

  .sidebar .brand h3 {
    overflow: hidden;
    font-size: 16px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .sidebar .brand .hint {
    overflow: hidden;
    max-width: 56vw;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    flex: 0 0 auto;
  }

  .nav {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    min-width: 0;
    padding: 2px 2px 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #d7dee8;
    font-size: 13px;
  }

  .nav button::before {
    display: none;
  }

  .nav button.active {
    background: #fff;
    color: #101828;
    box-shadow: 0 10px 20px rgba(2,6,23,.18);
  }

  .sidebar-bottom {
    grid-column: 2;
    grid-row: 1;
    min-width: 74px;
    display: grid;
    gap: 6px;
    margin: 0;
  }

  .sidebar-bottom .btn {
    min-height: 30px;
    padding: 5px 8px;
    border-radius: 10px;
    font-size: 12px;
    box-shadow: none;
  }

  .main {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .topbar {
    min-height: auto;
    margin: 12px 12px 0;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.74);
    border-radius: 22px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 12px 28px rgba(16,24,40,.08);
  }

  .topbar h1 {
    font-size: clamp(22px, 6vw, 28px);
    line-height: 1.12;
  }

  .topbar .hint {
    max-width: none;
    font-size: 12px;
    line-height: 1.55;
  }

  .app-employee.view-records .topbar,
  .app-employee.view-dashboard .topbar {
    border: 0;
    background:
      radial-gradient(circle at 90% 0%, rgba(255,255,255,.16), transparent 36%),
      linear-gradient(135deg, #101828 0%, #1f2937 58%, #8a1f35 100%);
  }

  .content {
    padding: 12px;
    gap: 14px;
  }

  .toolbar {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.9);
  }

  .toolbar > .btn {
    width: 100%;
  }

  .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .filters label {
    min-width: 0;
    font-size: 12px;
  }

  input, select, textarea,
  .btn {
    min-height: 44px;
  }

  .btn.small {
    min-height: 34px;
  }

  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .kpi {
    min-height: 104px;
    padding: 14px;
    border-radius: 18px;
  }

  .kpi span {
    font-size: 12px;
  }

  .kpi strong {
    font-size: clamp(24px, 8vw, 32px);
  }

  .kpi::after {
    left: 14px;
    bottom: 12px;
    width: 34px;
    height: 3px;
  }

  .card {
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(16,24,40,.07);
  }

  .panel-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px;
    padding: 14px;
  }

  .panel-head h3 {
    font-size: 16px;
  }

  .panel-body {
    padding: 14px;
  }

  .form-cols {
    grid-template-columns: 1fr;
  }

  .role-options {
    grid-template-columns: 1fr;
  }

  .span-3 {
    grid-column: auto;
  }

  .modal {
    align-items: flex-end;
    padding: 0;
  }

  .modal-box {
    width: 100%;
    max-height: 92svh;
    border-radius: 24px 24px 0 0;
  }

  .modal .panel-head:last-child {
    position: sticky;
    bottom: 0;
    display: flex;
    background: rgba(255,255,255,.96);
    box-shadow: 0 -10px 24px rgba(16,24,40,.10);
  }

  .modal .panel-head:last-child .btn {
    flex: 1;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    text-align: center;
  }
}

@media (max-width: 720px) {
  body {
    background:
      radial-gradient(circle at 8% 0%, rgba(217,45,75,.12), transparent 34%),
      linear-gradient(180deg, #fff8fa 0%, #f4f7fb 210px, #eef2f7 100%);
  }

  .app {
    display: block;
    padding: 0 0 calc(82px + env(safe-area-inset-bottom));
  }

  .sidebar {
    display: none;
  }

  .main {
    display: block;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 6;
    margin: 0;
    padding: max(18px, env(safe-area-inset-top)) 16px 16px;
    border: 0;
    border-radius: 0 0 24px 24px;
    background:
      radial-gradient(circle at 94% 0%, rgba(217,45,75,.16), transparent 34%),
      rgba(255,255,255,.94);
    box-shadow: 0 10px 28px rgba(16,24,40,.10);
    backdrop-filter: blur(14px);
  }

  .topbar h1 {
    font-size: 24px;
  }

  .topbar .hint {
    margin-top: 4px;
    color: #667085;
  }

  .app-employee.view-records .topbar,
  .app-employee.view-dashboard .topbar {
    background:
      radial-gradient(circle at 90% 0%, rgba(255,255,255,.16), transparent 36%),
      linear-gradient(135deg, #101828 0%, #1f2937 58%, #8a1f35 100%);
  }

  .content {
    padding: 14px 12px 18px;
  }

  .mobile-tabbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 8;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.74);
    border-radius: 22px;
    background: rgba(16,24,40,.92);
    box-shadow: 0 18px 44px rgba(16,24,40,.30);
    backdrop-filter: blur(16px);
  }

  .mobile-tabbar button {
    min-width: 0;
    min-height: 44px;
    padding: 7px 4px;
    border-radius: 15px;
    background: transparent;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-tabbar button.active {
    background: #fff;
    color: #101828;
  }

  .mobile-tabbar span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .mobile-fab {
    position: fixed;
    right: 18px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    z-index: 9;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #ff647b, var(--accent));
    box-shadow: 0 18px 32px rgba(217,45,75,.34);
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
  }

  .view-assets .mobile-fab,
  .view-accounts .mobile-fab,
  .view-comment_accounts .mobile-fab,
  .view-group_accounts .mobile-fab,
  .view-employees .mobile-fab {
    display: none;
  }

  .mobile-hero {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
    color: #fff;
    background:
      radial-gradient(circle at 90% 8%, rgba(255,255,255,.16), transparent 30%),
      linear-gradient(135deg, #101828 0%, #202939 58%, #8a1f35 100%);
    box-shadow: 0 18px 42px rgba(16,24,40,.18);
  }

  .mobile-hero span {
    color: #f8cdd5;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-hero h2 {
    margin-top: 8px;
    font-size: 26px;
    color: #fff;
  }

  .mobile-hero p {
    margin-top: 6px;
    color: #d7dee8;
    line-height: 1.6;
  }

  .mobile-hero .btn {
    width: 100%;
    background: #fff;
    color: #101828;
    box-shadow: none;
  }

  .mobile-filter-card,
  .mobile-section,
  .mobile-segment {
    border: 1px solid #e8edf4;
    border-radius: 22px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 10px 26px rgba(16,24,40,.06);
  }

  .mobile-filter-card {
    padding: 14px;
  }

  .mobile-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-metric {
    min-height: 102px;
    padding: 16px;
    border: 1px solid #e8edf4;
    border-radius: 20px;
    background:
      radial-gradient(circle at 88% 12%, rgba(217,45,75,.10), transparent 34%),
      #fff;
    box-shadow: 0 10px 24px rgba(16,24,40,.06);
    text-align: left;
  }

  .mobile-metric span {
    color: #667085;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-metric strong {
    display: block;
    margin-top: 12px;
    color: #101828;
    font-size: 28px;
    line-height: 1;
  }

  .mobile-metric.danger {
    background:
      radial-gradient(circle at 88% 12%, rgba(217,45,75,.13), transparent 34%),
      #fff;
  }

  .mobile-section {
    padding: 14px;
  }

  .mobile-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
  }

  .mobile-section-head h3 {
    font-size: 17px;
    color: #101828;
  }

  .mobile-section-head span,
  .mobile-section-head .hint {
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
  }

  .mobile-list {
    display: grid;
    gap: 8px;
  }

  .mobile-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 15px;
    background: #f8fafc;
  }

  .mobile-row span {
    color: #667085;
    font-weight: 800;
  }

  .mobile-row strong {
    color: #101828;
  }

  .mobile-row.danger strong {
    color: var(--accent-dark);
  }

  .mobile-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-quick-actions button,
  .mobile-segment button {
    min-height: 44px;
    border-radius: 15px;
    background: #fff;
    color: #344054;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(16,24,40,.05);
  }

  .mobile-segment {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 6px;
  }

  .mobile-segment button {
    box-shadow: none;
    background: transparent;
  }

  .mobile-segment button.active {
    background: #101828;
    color: #fff;
  }

  .mobile-card-list {
    display: grid;
    gap: 12px;
  }

  .mobile-data-card {
    padding: 14px;
    border: 1px solid #e8edf4;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(16,24,40,.06);
  }

  .mobile-data-card.is-danger {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fff, #fff7f8);
  }

  .mobile-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-card-top strong {
    display: block;
    color: #101828;
    font-size: 16px;
    line-height: 1.3;
    word-break: break-word;
  }

  .mobile-card-top span:not(.tag) {
    display: block;
    margin-top: 4px;
    color: #667085;
    font-size: 12px;
  }

  .mobile-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
  }

  .mobile-card-stats div {
    padding: 10px;
    border-radius: 14px;
    background: #f8fafc;
  }

  .mobile-card-stats span {
    display: block;
    color: #667085;
    font-size: 11px;
    font-weight: 900;
  }

  .mobile-card-stats strong {
    display: block;
    margin-top: 5px;
    color: #101828;
    font-size: 17px;
  }

  .mobile-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    color: #667085;
    font-size: 12px;
  }

  .mobile-card-meta span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f2f4f7;
  }

  .mobile-tags {
    margin-top: 12px;
  }

  .mobile-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
  }

  .mobile-card-actions .btn {
    min-height: 36px;
  }

  .mobile-empty {
    border-radius: 18px;
    background: #f8fafc;
  }
}

@media (max-width: 380px) {
  .mobile-metric-grid {
    grid-template-columns: 1fr;
  }

  .mobile-card-stats {
    grid-template-columns: 1fr;
  }

  .mobile-tabbar {
    left: 6px;
    right: 6px;
    padding: 6px;
  }

  .mobile-tabbar button {
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .login-page {
    align-items: end;
    padding: 14px;
  }

  .login-box {
    width: 100%;
    padding: 24px;
    border-radius: 24px;
  }

  .login-box .brand {
    align-items: flex-start;
  }

  .login-box h2 {
    font-size: 20px;
  }

  .sidebar {
    padding: max(12px, env(safe-area-inset-top)) 12px 10px;
  }

  .content {
    padding: 10px;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .kpis {
    gap: 9px;
  }

  .kpi {
    min-height: 98px;
    padding: 12px;
  }

  .table-wrap {
    overflow: visible;
    background: transparent;
  }

  table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
    background: transparent;
  }

  thead {
    display: none;
  }

  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  tr {
    padding: 12px;
    border: 1px solid #e8edf4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(16,24,40,.06);
  }

  td {
    display: grid;
    grid-template-columns: minmax(88px, 36%) minmax(0, 1fr);
    gap: 10px;
    min-height: 32px;
    padding: 8px 0;
    border: 0;
    color: #101828;
    word-break: break-word;
  }

  td::before {
    position: static;
    width: auto;
    color: #667085;
    font-size: 12px;
    font-weight: 900;
    content: "";
  }

  td:last-child {
    padding-bottom: 0;
  }

  td .btn {
    width: auto;
    min-height: 34px;
    margin: 2px 4px 2px 0;
  }

  .tag-buttons {
    align-items: center;
  }

  .dialog-box {
    width: calc(100vw - 24px);
    margin: 0 12px 12px;
  }
}

@media (max-width: 420px) {
  .sidebar .brand h3 {
    font-size: 15px;
  }

  .sidebar .brand .hint {
    max-width: 48vw;
    font-size: 11px;
  }

  .sidebar-bottom {
    min-width: 68px;
  }

  .sidebar-bottom .btn {
    padding: 4px 6px;
    font-size: 11px;
  }

  .topbar {
    margin: 10px 10px 0;
    padding: 16px;
    border-radius: 20px;
  }

  .content {
    padding: 8px;
  }

  .kpis {
    grid-template-columns: 1fr;
  }

  .kpi {
    min-height: 88px;
  }

  .panel-head,
  .panel-body {
    padding: 12px;
  }

  td {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 8px 0;
  }

  td::before {
    font-size: 11px;
  }

  .modal .panel-head:last-child {
    gap: 8px;
  }
}

/* Cohesive mobile refinement */
@media (max-width: 720px) {
  :root {
    --mobile-radius: 18px;
    --mobile-shadow: 0 8px 22px rgba(16,24,40,.06);
  }

  body {
    background:
      radial-gradient(circle at 8% -4%, rgba(217,45,75,.12), transparent 30%),
      radial-gradient(circle at 100% 6%, rgba(37,99,235,.08), transparent 28%),
      linear-gradient(180deg, #fff8fa 0%, #f7f9fc 190px, #f1f4f8 100%);
  }

  .topbar {
    display: block;
    padding: max(16px, env(safe-area-inset-top)) 16px 14px;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid rgba(232,237,244,.92);
    border-radius: 0 0 22px 22px;
    box-shadow: 0 8px 24px rgba(16,24,40,.08);
  }

  .topbar h1 {
    font-size: 23px;
    letter-spacing: 0;
  }

  .topbar .hint {
    display: block;
    max-width: 100%;
    margin-top: 6px;
    overflow: hidden;
    color: #667085;
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .app-employee.view-records .topbar,
  .app-employee.view-dashboard .topbar {
    background:
      radial-gradient(circle at 92% 0%, rgba(255,255,255,.18), transparent 34%),
      linear-gradient(135deg, #121826 0%, #202939 58%, #8b1e35 100%);
    box-shadow: 0 10px 26px rgba(16,24,40,.18);
  }

  .content {
    gap: 12px;
    padding: 12px 10px 18px;
  }

  .mobile-hero,
  .mobile-filter-card,
  .mobile-section,
  .mobile-segment,
  .toolbar,
  .card,
  .mobile-metric,
  .mobile-data-card {
    border-radius: var(--mobile-radius);
    box-shadow: var(--mobile-shadow);
  }

  .mobile-hero {
    gap: 14px;
    padding: 18px;
    background:
      radial-gradient(circle at 92% 8%, rgba(255,255,255,.14), transparent 28%),
      linear-gradient(135deg, #121826 0%, #202939 58%, #8b1e35 100%);
  }

  .mobile-hero h2 {
    margin-top: 6px;
    font-size: 24px;
    line-height: 1.18;
  }

  .mobile-hero p {
    font-size: 13px;
  }

  .mobile-metric-grid {
    gap: 9px;
  }

  .mobile-metric {
    min-height: 92px;
    padding: 14px;
    border-color: #edf1f6;
    background: #fff;
  }

  .mobile-metric strong {
    margin-top: 10px;
    font-size: 26px;
  }

  .mobile-section {
    padding: 13px;
    border-color: #edf1f6;
    background: #fff;
  }

  .mobile-section-head {
    margin-bottom: 10px;
  }

  .mobile-row,
  .mobile-card-stats div,
  .mobile-card-meta span {
    background: #f7f9fc;
  }

  .mobile-data-card {
    padding: 13px;
    border-color: #edf1f6;
  }

  .mobile-card-top {
    align-items: flex-start;
  }

  .mobile-card-stats {
    gap: 7px;
    margin-top: 12px;
  }

  .mobile-card-actions {
    margin-top: 12px;
  }

  .toolbar {
    padding: 12px;
    border-color: #edf1f6;
    background: #fff;
  }

  .mobile-segment {
    padding: 5px;
    background: #fff;
  }

  .mobile-segment button {
    min-height: 40px;
    border-radius: 13px;
  }

  .mobile-tabbar {
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    gap: 5px;
    padding: 7px;
    border: 1px solid rgba(232,237,244,.95);
    border-radius: 22px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 16px 42px rgba(16,24,40,.16);
  }

  .mobile-tabbar button {
    min-height: 43px;
    color: #667085;
    border-radius: 15px;
    background: transparent;
  }

  .mobile-tabbar button.active {
    color: #fff;
    background: linear-gradient(135deg, #151b2a, #2a3447);
    box-shadow: 0 8px 18px rgba(16,24,40,.18);
  }

  .mobile-fab {
    right: 18px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
    font-size: 28px;
    box-shadow: 0 16px 30px rgba(217,45,75,.28);
  }

  .modal-box {
    border-radius: 22px 22px 0 0;
  }
}

@media (max-width: 420px) {
  .mobile-tabbar {
    left: 8px;
    right: 8px;
    padding: 6px;
  }

  .mobile-tabbar button {
    min-height: 41px;
    font-size: 11px;
  }

  .mobile-hero h2 {
    font-size: 22px;
  }

  .mobile-metric strong {
    font-size: 24px;
  }
}

/* Admin dashboard and logs */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr);
  gap: 18px;
}

.trend-list {
  display: grid;
  gap: 14px;
}

.trend-row {
  display: grid;
  grid-template-columns: 92px minmax(120px, 1fr) 72px 110px;
  gap: 12px;
  align-items: center;
  color: #667085;
  font-size: 13px;
}

.trend-row strong {
  color: #101828;
  text-align: right;
}

.trend-row em {
  color: #98a2b3;
  font-style: normal;
  text-align: right;
}

.trend-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.trend-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff647b, var(--accent));
}

@media (max-width: 720px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .trend-row {
    grid-template-columns: 78px minmax(0, 1fr) 58px;
    gap: 9px;
  }

  .trend-row em {
    grid-column: 2 / -1;
    text-align: left;
  }

  .performance-table td:nth-child(1)::before { content: "员工"; }
  .performance-table td:nth-child(2)::before { content: "填报数"; }
  .performance-table td:nth-child(3)::before { content: "发布账号"; }
  .performance-table td:nth-child(4)::before { content: "浏览量"; }
  .performance-table td:nth-child(5)::before { content: "点赞数"; }
  .performance-table td:nth-child(6)::before { content: "封号数"; }
  .logs-table td:nth-child(1)::before { content: "时间"; }
  .logs-table td:nth-child(2)::before { content: "操作人"; }
  .logs-table td:nth-child(3)::before { content: "动作"; }
  .logs-table td:nth-child(4)::before { content: "对象"; }
  .logs-table td:nth-child(5)::before { content: "详情"; }
  .logs-table td:nth-child(6)::before { content: "IP"; }
}
