:root {
  color-scheme: light;
  --ink: #132039;
  --muted: #667085;
  --line: #e7eaf0;
  --paper: #ffffff;
  --canvas: #f4f6f9;
  --navy: #0b1736;
  --blue: #155eef;
  --blue-soft: #eaf0ff;
  --cyan: #16b8c8;
  --green: #12a66a;
  --amber: #d98212;
  --red: #d92d20;
  --shadow: 0 18px 50px rgba(17, 29, 55, .08);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 16px; }
body { overflow-x: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.login-shell {
  min-height: 100vh; display: grid; place-items: center; padding: 32px;
  background:
    radial-gradient(circle at 15% 18%, rgba(31, 104, 255, .18), transparent 28%),
    radial-gradient(circle at 85% 82%, rgba(22, 184, 200, .16), transparent 30%),
    var(--navy);
  position: relative; overflow: hidden;
}
.login-shell::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 42px 42px; mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.login-brand { position: absolute; top: 30px; left: 34px; display: flex; align-items: center; gap: 11px; color: white; font-weight: 750; font-size: 1.1rem; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: end; justify-content: center; gap: 3px; padding: 9px; background: var(--blue); box-shadow: 0 8px 24px rgba(21,94,239,.32); }
.brand-mark i { display: block; width: 3px; border-radius: 3px; background: white; }
.brand-mark i:nth-child(1) { height: 7px; opacity: .7; }
.brand-mark i:nth-child(2) { height: 12px; }
.brand-mark i:nth-child(3) { height: 17px; }
.login-card { position: relative; z-index: 1; width: min(100%, 430px); padding: 42px; background: rgba(255,255,255,.98); border: 1px solid rgba(255,255,255,.55); border-radius: 24px; box-shadow: 0 34px 100px rgba(0,0,0,.3); }
.login-kicker, .dialog-kicker, .page-kicker { margin: 0 0 7px; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.login-card h1 { margin: 0; font-size: 2rem; letter-spacing: -.035em; }
.login-card > p { margin: 12px 0 30px; color: var(--muted); line-height: 1.65; }
label { display: grid; gap: 8px; color: #344054; font-size: .9rem; font-weight: 650; }
.login-card label + label, .stack-form label + label { margin-top: 18px; }
input, select { min-height: 44px; border: 1px solid #d9dee8; border-radius: 10px; color: var(--ink); background: white; outline: none; transition: border-color .18s, box-shadow .18s; }
input { padding: 0 13px; }
select { padding: 0 36px 0 13px; }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,94,239,.12); }
.form-error { min-height: 20px; color: var(--red); font-size: .86rem; margin: 12px 0 4px; }

.button { min-height: 42px; border: 0; border-radius: 10px; padding: 0 16px; font-weight: 730; transition: transform .15s, background .15s, border-color .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.button.primary { color: white; background: var(--blue); box-shadow: 0 8px 20px rgba(21,94,239,.2); }
.button.primary:hover { background: #0d4ed8; }
.button.ghost { color: #344054; background: white; border: 1px solid #d9dee8; box-shadow: none; }
.button.danger { color: white; background: var(--red); box-shadow: 0 7px 18px rgba(217,45,32,.18); }
.button.danger:hover { background: #b42318; }
.button.danger-link { color: var(--red); border-color: transparent; background: transparent; }
.button.danger-link:hover { border-color: #fecdca; background: #fff5f4; }
.button.primary-link { color: var(--blue); border-color: #c9d8ff; background: #f5f8ff; }
.button.small { min-height: 36px; padding: 0 12px; font-size: .86rem; }
.button.wide { width: 100%; margin-top: 8px; }
.text-button { color: #98a2b3; border: 0; background: transparent; padding: 8px 0; text-align: left; }
.text-button:hover { color: white; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 25px 17px 20px; background: var(--navy); color: white; z-index: 20; }
.sidebar-backdrop { display: none; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 28px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.02rem; }
.brand small { color: #98a9cb; font-size: .76rem; margin-top: 3px; }
nav { display: grid; gap: 7px; }
.nav-item { display: flex; gap: 12px; align-items: center; width: 100%; min-height: 46px; padding: 0 14px; color: #aab6cf; background: transparent; border: 1px solid transparent; border-radius: 11px; text-align: left; font-weight: 650; }
.nav-item span { width: 20px; text-align: center; font-size: 1.2rem; }
.nav-item:hover { color: white; background: rgba(255,255,255,.06); }
.nav-item.active { color: white; border-color: rgba(116,156,255,.22); background: linear-gradient(90deg, rgba(21,94,239,.37), rgba(21,94,239,.12)); box-shadow: inset 3px 0 var(--blue); }
.sidebar-foot { margin-top: auto; padding: 0 10px; }
.security-note { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; padding: 13px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.045); border-radius: 12px; }
.security-note > span { color: #56d8e5; font-size: .65rem; margin-top: 4px; }
.security-note p { margin: 0; color: #94a4c3; font-size: .75rem; line-height: 1.45; }
.security-note strong { color: #e8edf8; font-size: .8rem; }

.workspace { min-width: 0; padding: 0 34px 42px; }
.topbar { position: sticky; top: 0; z-index: 12; min-height: 92px; display: flex; align-items: center; gap: 16px; background: rgba(244,246,249,.9); backdrop-filter: blur(14px); }
.topbar h1 { margin: 0; font-size: 1.65rem; letter-spacing: -.03em; }
.topbar .page-kicker { margin-bottom: 2px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.refresh-status { color: var(--muted); font-size: .82rem; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; color: #475467; background: white; font-size: 1.15rem; }
.icon-button:hover { border-color: #b8c3d6; color: var(--blue); }
.menu-button { display: none; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; margin-left: 4px; border-radius: 12px; color: #dbe7ff; background: #183160; font-weight: 750; }

.view { max-width: 1540px; margin: 0 auto; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { min-height: 142px; position: relative; overflow: hidden; padding: 23px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 8px 30px rgba(17,29,55,.035); }
.stat-card > span { color: var(--muted); font-size: .86rem; font-weight: 680; }
.stat-card strong { display: block; margin: 12px 0 8px; font-size: 2rem; letter-spacing: -.04em; }
.stat-card strong b { font: inherit; }
.stat-card strong em { color: #98a2b3; font-size: 1.15rem; font-style: normal; font-weight: 650; }
.stat-card small { color: #98a2b3; font-size: .76rem; }
.signal-card { color: white; border-color: transparent; background: linear-gradient(125deg, #1248ca, #1769ef 62%, #178fdd); }
.signal-card::after { content: ""; position: absolute; width: 170px; height: 170px; right: -50px; top: -70px; border: 28px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 25px rgba(255,255,255,.045); }
.signal-card > span, .signal-card small { color: #ccdcff; }

.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 14px 42px rgba(17,29,55,.055); }
.panel-toolbar { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search-box { flex: 1; max-width: 520px; position: relative; }
.search-box span { position: absolute; left: 14px; top: 8px; color: #98a2b3; font-size: 1.5rem; line-height: 1; }
.search-box input { width: 100%; padding-left: 42px; background: #f9fafb; }
.panel-toolbar select { min-width: 156px; }
.filter-row { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.device-toolbar .search-box { max-width: 580px; }
.device-toolbar > select { margin-left: auto; min-width: 190px; }
.selection-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 10px 18px; color: #23427d; background: #edf3ff; border-bottom: 1px solid #d4e0ff; font-size: .88rem; }
.selection-bar div { display: flex; gap: 8px; }
.selection-bar strong { color: var(--blue); font-size: 1rem; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { position: sticky; top: 0; z-index: 2; padding: 13px 18px; color: #697386; background: #fafbfc; border-bottom: 1px solid var(--line); font-size: .76rem; font-weight: 750; letter-spacing: .025em; text-align: left; white-space: nowrap; }
.data-table td { padding: 16px 18px; border-bottom: 1px solid #eef0f4; color: #475467; font-size: .9rem; vertical-align: middle; }
.data-table tbody tr { transition: background .14s; }
.message-table tbody tr { cursor: pointer; }
.data-table tbody tr:hover { background: #f7f9fd; }
.data-table tbody tr.selected { background: #f0f5ff; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.check-column { width: 46px; padding-right: 4px !important; text-align: center !important; }
.check-column input { width: 17px; height: 17px; min-height: 0; padding: 0; accent-color: var(--blue); cursor: pointer; }
.sender { color: var(--ink); font-weight: 760; white-space: nowrap; }
.preview { display: block; max-width: 620px; color: #475467; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 8px; color: #33538d; background: #eff4ff; font-size: .78rem; font-weight: 690; white-space: nowrap; }
.device-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #6693e8; }
.phone-value { display: inline-flex; min-height: 28px; align-items: center; padding: 3px 9px; border: 1px solid #dce4f2; border-radius: 8px; color: #344054; background: #f8fafc; font-variant-numeric: tabular-nums; white-space: nowrap; }
.phone-value.missing { color: #98a2b3; border-style: dashed; background: transparent; }
.time-cell { color: #667085; white-space: nowrap; }
.count-value { color: var(--ink); font-weight: 760; font-variant-numeric: tabular-nums; }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 13px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.pagination div { display: flex; gap: 8px; }
.empty-state, .loading-state { padding: 72px 24px; text-align: center; color: var(--muted); }
.empty-state h2 { margin: 12px 0 7px; color: var(--ink); font-size: 1.08rem; }
.empty-state p { margin: 0; font-size: .88rem; }
.empty-icon { width: 50px; height: 50px; display: grid; place-items: center; margin: 0 auto; border-radius: 15px; color: var(--blue); background: var(--blue-soft); font-size: 1.4rem; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin: 5px 0 22px; }
.section-heading h2 { margin: 0; font-size: 1.65rem; letter-spacing: -.03em; }
.section-heading p:last-child { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.device-name { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 730; }
.phone-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: var(--blue-soft); }
.device-name-copy { display: grid; gap: 3px; }
.device-name-copy strong { font-size: .9rem; }
.device-name-copy small { color: #98a2b3; font-size: .72rem; font-weight: 500; }
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 690; font-size: .82rem; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.online { color: var(--green); }
.status.offline { color: #98a2b3; }
.status.disabled { color: var(--amber); }
.right { text-align: right !important; }
.row-actions { display: flex; justify-content: flex-end; gap: 8px; }
.row-action-cell { width: 82px; }
.row-action-cell .button { padding-inline: 8px; white-space: nowrap; }

.dialog { width: min(calc(100% - 32px), 520px); padding: 30px; border: 0; border-radius: 20px; color: var(--ink); box-shadow: 0 28px 90px rgba(9,18,41,.28); }
.dialog::backdrop { background: rgba(7,15,35,.58); backdrop-filter: blur(3px); }
.dialog h2 { margin: 0 0 10px; font-size: 1.45rem; }
.dialog > p:not(.dialog-kicker) { color: var(--muted); line-height: 1.6; }
.dialog-close { position: absolute; right: 18px; top: 16px; width: 36px; height: 36px; border: 0; border-radius: 10px; color: #667085; background: #f3f5f8; font-size: 1.35rem; }
.stack-form { margin-top: 24px; }
.form-hint { margin: 10px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.token-box { display: flex; align-items: center; gap: 10px; margin: 22px 0; padding: 12px; border: 1px solid #cbd7ee; border-radius: 12px; background: #f5f8ff; }
.token-box code { min-width: 0; flex: 1; overflow-wrap: anywhere; color: #1d3972; font-size: .82rem; }
.detail-dialog { width: min(calc(100% - 32px), 620px); }
.message-body { min-height: 120px; margin: 22px 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; }
.detail-meta div { padding: 12px; border-radius: 10px; background: #f6f8fb; }
.detail-meta dt { color: var(--muted); font-size: .72rem; }
.detail-meta dd { margin: 5px 0 0; font-size: .86rem; font-weight: 680; overflow-wrap: anywhere; }
.confirm-dialog { width: min(calc(100% - 32px), 430px); text-align: center; }
.confirm-dialog .dialog-actions { justify-content: center; }
.danger-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 2px auto 16px; border-radius: 15px; color: var(--red); background: #feeceb; font-size: 1.3rem; font-weight: 850; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: 380px; padding: 13px 17px; border-radius: 11px; color: white; background: #17294e; box-shadow: 0 16px 45px rgba(0,0,0,.22); transform: translateY(22px); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 1000px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; transform: translateX(-102%); width: 244px; transition: transform .2s ease; box-shadow: 20px 0 60px rgba(0,0,0,.25); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 19; border: 0; padding: 0; background: rgba(7,15,35,.48); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .sidebar.open + .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  body.sidebar-open { overflow: hidden; }
  .menu-button { display: block; }
  .workspace { padding-inline: 22px; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  input, select { min-height: 48px; font-size: 16px; }
  .button { min-height: 44px; }
  .login-shell { padding: calc(76px + env(safe-area-inset-top)) 18px calc(22px + env(safe-area-inset-bottom)); align-items: start; }
  .login-brand { top: calc(20px + env(safe-area-inset-top)); left: 22px; }
  .login-card { padding: 30px 24px; border-radius: 18px; }
  .login-card h1 { font-size: 1.75rem; }
  .login-card > p { margin-bottom: 24px; }
  .sidebar { inset: auto 0 0; width: 100%; height: auto; min-height: calc(66px + env(safe-area-inset-bottom)); transform: none; padding: 6px 10px env(safe-area-inset-bottom); border-top: 1px solid rgba(255,255,255,.12); box-shadow: 0 -10px 35px rgba(7,15,35,.22); transition: none; }
  .sidebar .brand, .sidebar .sidebar-foot { display: none; }
  .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .sidebar .nav-item { min-height: 54px; justify-content: center; flex-direction: column; gap: 2px; padding: 5px 8px; border-radius: 10px; font-size: .72rem; }
  .sidebar .nav-item span { height: 21px; font-size: 1.15rem; line-height: 1; }
  .sidebar .nav-item.active { box-shadow: inset 0 3px var(--blue); background: rgba(21,94,239,.28); }
  .sidebar-backdrop { display: none; }
  body.sidebar-open { overflow: auto; }
  .menu-button { display: none; }
  .workspace { padding: 0 12px calc(92px + env(safe-area-inset-bottom)); }
  .topbar { min-height: calc(72px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
  .topbar h1 { font-size: 1.35rem; }
  .topbar .page-kicker { font-size: .7rem; }
  .top-actions { gap: 7px; }
  .icon-button, .avatar { width: 42px; height: 42px; }
  .refresh-status { display: none; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { min-height: 112px; padding: 16px; border-radius: 14px; }
  .stat-card:first-child { grid-column: span 2; }
  .stat-card strong { margin: 9px 0 5px; font-size: 1.65rem; }
  .panel { border-radius: 14px; box-shadow: 0 8px 26px rgba(17,29,55,.05); }
  .panel-toolbar { align-items: stretch; flex-direction: column; gap: 10px; padding: 12px; }
  .search-box { max-width: none; }
  .search-box span { top: 10px; }
  .panel-toolbar select { width: 100%; margin: 0; }
  .filter-row { width: 100%; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .filter-row select:first-child { grid-column: span 2; }
  .selection-bar { position: sticky; top: calc(72px + env(safe-area-inset-top)); z-index: 7; align-items: flex-start; flex-direction: column; gap: 9px; padding: 11px 14px; }
  .selection-bar div, .selection-bar .button { width: 100%; }
  .selection-bar .button { flex: 1; }
  .section-heading { align-items: flex-start; flex-direction: column; margin: 4px 2px 16px; }
  .section-heading h2 { font-size: 1.4rem; }
  .section-heading .button { width: 100%; }
  .table-wrap { overflow: visible; }
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tbody { display: grid; gap: 10px; padding: 10px; background: #f6f8fb; }
  .data-table tr { position: relative; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 4px 14px rgba(17,29,55,.035); }
  .data-table tbody tr:last-child { border-bottom: 1px solid var(--line); }
  .data-table tbody tr:hover { background: white; }
  .data-table tbody tr.selected { border-color: #b9ccff; background: #f2f6ff; }
  .data-table td { padding: 4px 0; border: 0; }
  .message-table td:nth-child(1) { position: absolute; right: 14px; top: 14px; width: auto; padding: 0; }
  .message-table td:nth-child(1) input { width: 22px; height: 22px; }
  .message-table td:nth-child(2) { padding-right: 40px; font-size: 1rem; }
  .message-table td:nth-child(3) { margin: 8px 0 10px; color: #344054; line-height: 1.55; }
  .message-table td:nth-child(4)::before, .message-table td:nth-child(5)::before, .message-table td:nth-child(6)::before { display: inline-block; width: 64px; color: #98a2b3; font-size: .72rem; }
  .message-table td:nth-child(4)::before { content: "本机号码"; }
  .message-table td:nth-child(5)::before { content: "接收设备"; }
  .message-table td:nth-child(6)::before { content: "接收时间"; }
  .message-table td:nth-child(7) { margin-top: 8px; text-align: left !important; }
  .message-table td:nth-child(7) .button { width: 100%; min-height: 42px; }
  .preview { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .time-cell { font-size: .76rem !important; }
  .device-table td::before { display: block; color: #98a2b3; font-size: .7rem; margin: 8px 0 3px; }
  .device-table td:first-child { padding-bottom: 5px; }
  .device-table td:nth-child(2)::before { content: "本机号码"; }
  .device-table td:nth-child(3)::before { content: "连接状态"; }
  .device-table td:nth-child(4)::before { content: "短信数量"; }
  .device-table td:nth-child(5)::before { content: "最近上报"; }
  .device-table td.right::before { content: "设备操作"; text-align: left; }
  .row-actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 6px; }
  .row-actions .button { width: 100%; min-height: 42px; }
  .pagination { align-items: stretch; flex-direction: column; gap: 10px; padding: 12px; }
  .pagination div { display: grid; grid-template-columns: 1fr 1fr; }
  .pagination .button { width: 100%; }
  .detail-meta { grid-template-columns: 1fr; }
  .dialog { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; padding: 28px 18px calc(20px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; overflow-y: auto; }
  .dialog h2 { padding-right: 38px; overflow-wrap: anywhere; }
  .dialog-close { right: 14px; top: 14px; width: 40px; height: 40px; }
  .message-body { min-height: 96px; margin: 16px 0; padding: 16px; }
  .detail-meta { gap: 8px; }
  .dialog-actions { display: grid; grid-template-columns: 1fr 1fr; position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); margin: 20px -18px calc(-20px - env(safe-area-inset-bottom)); padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
  .dialog-actions .button { width: 100%; min-height: 46px; }
  .stack-form .dialog-actions { margin-top: 22px; }
  .confirm-dialog { padding-top: 30px; }
  .toast { right: 12px; bottom: calc(82px + env(safe-area-inset-bottom)); left: 12px; max-width: none; text-align: center; }
}

@media (max-width: 500px) {
  .workspace { padding-inline: 9px; }
  .stats-grid { gap: 8px; }
  .stat-card { min-height: 104px; padding: 14px; }
  .stat-card strong { font-size: 1.5rem; }
  .stat-card small { font-size: .7rem; }
  .filter-row { grid-template-columns: 1fr; }
  .filter-row select:first-child { grid-column: auto; }
  .data-table tbody { padding: 8px; }
  .data-table tr { padding: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
