/* Admin console — readable, theme-aware layout built on the shared Luotu tokens. */
:root {
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --rail-width: 248px;
  --radius: 16px;
  --radius-sm: 10px;
  --warn: #b45309;
  --warn-soft: #fff4e5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.3; font-weight: 800; letter-spacing: 0.01em; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }
p { color: var(--muted); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
input:not([type=checkbox]), select, textarea {
  min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--input); color: var(--text); transition: border-color 0.15s, box-shadow 0.15s;
}
input:not([type=checkbox]):focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; cursor: pointer; }

/* Buttons */
.primary, .outline, .secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px;
  padding: 8px 16px; border-radius: 12px; font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: transform 0.12s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px var(--shadow); }
.primary:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
.outline, .secondary { border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.outline:hover:not(:disabled), .secondary:hover:not(:disabled) { border-color: var(--strong-line); background: var(--hover); }
.small { min-height: 34px; padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.text-button { color: var(--accent); font-size: 14px; font-weight: 600; }
.text-button:hover { text-decoration: underline; }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--muted); font-size: 17px; }
.icon-button:hover { background: var(--hover); color: var(--text); }
.error { min-height: 1.4em; color: var(--danger); font-size: 13px; }

/* Badges & chips */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--raised); color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.status-badge.good { background: color-mix(in srgb, var(--success) 12%, var(--panel)); color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, var(--panel)); }
.status-badge.off { background: color-mix(in srgb, var(--danger) 10%, var(--panel)); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, var(--panel)); }
.status-badge.warn { background: var(--warn-soft); color: var(--warn); border-color: #f5d0a0; }
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 13px; font-weight: 600; }
.chip:hover { border-color: var(--strong-line); color: var(--text); }
.chip.active { background: var(--accent-soft); border-color: var(--strong-line); color: var(--accent); }

/* Sign in */
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px; background: radial-gradient(ellipse at 20% 15%, var(--accent-soft), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 420px; padding: 40px; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--pop-shadow); }
.auth-card .brand { margin-bottom: 36px; }
.auth-card h1 { font-size: 26px; margin-bottom: 8px; }
.auth-card > p { margin-bottom: 24px; font-size: 14px; }
.auth-card form { display: grid; gap: 16px; }
.auth-card label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.auth-card .primary { width: 100%; min-height: 46px; }
.auth-back { display: inline-block; margin-top: 20px; font-size: 14px; color: var(--muted); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; white-space: nowrap; }
.brand small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0.06em; }
.brand-z img { display: block; width: 36px; height: 36px; border-radius: 10px; }

/* Shell */
.admin-rail {
  position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--rail-width); display: flex; flex-direction: column;
  padding: 22px 14px 14px; background: var(--sidebar); border-right: 1px solid var(--soft-line); overflow-y: auto;
}
.admin-rail nav { display: grid; gap: 2px; margin-top: 22px; }
.rail-group { margin: 16px 12px 6px; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.12em; }
.rail-group:first-child { margin-top: 0; }
.rail-link {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px;
  color: var(--muted); font-size: 14px; font-weight: 600; transition: background 0.15s, color 0.15s;
}
.rail-link:hover { background: var(--hover); color: var(--text); }
.rail-link.active { background: var(--accent-soft); color: var(--accent); }
.nav-icon { width: 20px; text-align: center; font-size: 16px; }
.rail-count { margin-left: auto; min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; line-height: 20px; text-align: center; }
.rail-count.warn { background: var(--pop); color: #fff; }
.rail-studio-switch { margin: auto 0 12px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; font-weight: 600; text-align: center; }
.rail-studio-switch:hover { color: var(--accent); border-color: var(--strong-line); }
.rail-bottom { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--soft-line); }
.avatar { display: inline-grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 14px; }
.avatar.large { width: 52px; height: 52px; font-size: 20px; }
.identity { display: grid; flex: 1; min-width: 0; }
.identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.identity small { font-size: 12px; color: var(--muted); }
.rail-scrim { position: fixed; inset: 0; z-index: 25; background: var(--overlay); }

.admin-main { margin-left: var(--rail-width); min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 32px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--soft-line);
}
.menu-toggle { display: none; }
.topbar-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.topbar-overline { font-size: 13px; color: var(--muted); }
.topbar-title strong { font-size: 16px; }
.topbar-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.connection { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.connection::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.connection.online::before { background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 18%, transparent); }

.admin-view { width: 100%; max-width: 1360px; margin: 0 auto; padding: 32px; animation: admin-enter 0.18s ease-out; }
@keyframes admin-enter { from { opacity: 0; transform: translateY(4px); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading p { margin-top: 6px; font-size: 14px; max-width: 640px; }

/* Panels & metrics */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--card-shadow); }
.panel.wide { grid-column: 1 / -1; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-note { margin-top: 14px; font-size: 13px; line-height: 1.7; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.metric { padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); }
.metric > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.metric strong { display: block; margin: 6px 0 2px; font-size: 32px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.metric small { font-size: 12px; color: var(--muted); }
.metric.accent { background: var(--accent-soft); border-color: var(--strong-line); }
.metric.accent strong { color: var(--accent); }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.check-list, .queue-list, .activity-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--soft-line); font-size: 14px; }
.check-list li:last-child, .queue-list li:last-child, .activity-list li:last-child { border-bottom: 0; }
.check-list li > span { display: inline-grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 800; }
.check-list li.ok > span { background: color-mix(in srgb, var(--success) 15%, var(--panel)); color: var(--success); }
.check-list li.warn > span { background: var(--warn-soft); color: var(--warn); }
.queue-list li, .activity-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--soft-line); font-size: 14px; }
.activity-list time { flex-shrink: 0; font-size: 12px; color: var(--muted); }
.queue-user { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.memory-reading { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 12px; }
.memory-reading strong { font-size: 28px; font-weight: 800; }
.memory-reading span { font-size: 13px; color: var(--muted); }
progress { width: 100%; height: 8px; border: 0; border-radius: 999px; overflow: hidden; appearance: none; background: var(--raised); }
progress::-webkit-progress-bar { background: var(--raised); }
progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--accent); }
.resource-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 0; }
.resource-details dt { font-size: 12px; color: var(--muted); }
.resource-details dd { margin: 2px 0 0; font-weight: 700; font-size: 14px; }

/* Tables */
.table-panel { padding: 0; overflow: hidden; }
.table-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--soft-line); }
.search input { width: 260px; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { padding: 11px 18px; background: var(--raised); color: var(--muted); font-size: 12px; font-weight: 700; text-align: left; letter-spacing: 0.04em; white-space: nowrap; }
.data-table td { padding: 14px 18px; border-bottom: 1px solid var(--soft-line); vertical-align: middle; }
.data-table tbody tr { transition: background 0.12s; }
.data-table tbody tr:hover { background: var(--hover); }
.data-table.compact td { padding: 10px 18px; font-size: 13px; }
.data-table td small { display: block; margin-top: 4px; font-size: 12px; }
.row-warn td { background: color-mix(in srgb, var(--warn-soft) 70%, transparent); }
.actions-heading { text-align: right !important; }
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.table-empty { padding: 40px !important; text-align: center; color: var(--muted); }
.user-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.user-cell strong { display: block; overflow-wrap: anywhere; }
.user-cell small { display: block; font-size: 12px; color: var(--muted); }
.quota-value { font-weight: 800; font-variant-numeric: tabular-nums; }
.quota-value small { display: inline; font-weight: 500; color: var(--muted); }
.quota-bar { display: block; width: 120px; height: 6px; margin-top: 6px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.quota-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 14px; color: var(--muted); font-size: 13px; }
.audit-detail { margin-top: 3px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.audit-table td:first-child { white-space: nowrap; color: var(--muted); font-size: 13px; }
.filter-note { padding: 10px 18px; background: var(--accent-soft); color: var(--text); font-size: 13px; }
.filter-note a { color: var(--accent); font-weight: 700; }

/* Library */
.select-field select { min-width: 240px; }
.empty-panel { padding: 56px 24px; text-align: center; background: var(--panel); border: 1px dashed var(--strong-line); border-radius: var(--radius); }
.empty-panel h2 { font-size: 19px; }
.empty-panel p { max-width: 460px; margin: 10px auto 20px; font-size: 14px; line-height: 1.8; }
.empty-icon { display: block; margin-bottom: 12px; font-size: 30px; color: var(--accent); }
.library-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tab-list { display: flex; gap: 4px; padding: 4px; max-width: 100%; overflow-x: auto; border-radius: 14px; background: var(--raised); }
.tab-list button { flex: none; padding: 7px 14px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 600; }
.tab-list button.active { background: var(--panel); color: var(--accent); box-shadow: var(--card-shadow); }
.voice-review-tabs { display: flex; gap: 6px; margin: -6px 0 16px; }
.voice-review-tabs button { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.voice-review-tabs button.active { background: var(--accent-soft); color: var(--accent); border-color: var(--strong-line); }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.asset-grid > .empty-panel, .asset-grid > p { grid-column: 1 / -1; }
.asset-card { min-width: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.15s, box-shadow 0.15s; }
.asset-card:hover { transform: translateY(-2px); box-shadow: var(--pop-shadow); }
.asset-preview { position: relative; display: grid; place-items: center; width: 100%; height: 180px; background: var(--stage); color: var(--muted); }
.asset-preview img, .asset-preview video { width: 100%; height: 100%; object-fit: cover; }
.asset-preview > span { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: var(--glass); color: var(--image-ink); font-size: 12px; backdrop-filter: blur(6px); }
.asset-copy { padding: 12px 14px; }
.asset-copy > strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.asset-copy > p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px; color: var(--text); font-size: 14px; line-height: 1.6; }
.asset-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.asset-meta button { color: var(--accent); font-weight: 600; }
.voice-preview { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: linear-gradient(145deg, var(--accent-soft), var(--stage)); }
.voice-preview > span.voice-art { position: static; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--panel); color: var(--accent); font-size: 24px; }
.voice-preview audio { width: min(100%, 260px); height: 36px; }
.voice-state { font-size: 13px; }

/* Dialogs & drawer */
dialog { padding: 28px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow: auto; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--pop-shadow); }
dialog::backdrop { background: var(--overlay); backdrop-filter: blur(3px); }
dialog[open] { animation: dialog-in 0.18s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
dialog h2 { font-size: 21px; padding-right: 32px; }
.small-dialog { width: 480px; }
.dialog-description { margin-top: 8px; font-size: 14px; line-height: 1.7; }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--raised); color: var(--muted); font-size: 20px; line-height: 1; }
.dialog-close:hover { color: var(--text); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.field { display: grid; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 600; }
.field textarea { resize: vertical; }
.invite-token { display: block; margin: 18px 0 10px; padding: 14px; border: 1px dashed var(--strong-line); border-radius: 12px; background: var(--raised); color: var(--accent); font: 600 15px/1.7 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
.help { margin-top: 8px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(480px, 100vw); height: 100vh; max-height: 100vh; max-width: 100vw; padding: 0; border-radius: 22px 0 0 22px; border-right: 0; }
.drawer[open] { animation: drawer-in 0.22s ease-out; }
@keyframes drawer-in { from { transform: translateX(32px); opacity: 0; } }
.drawer-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 14px; padding: 22px 24px; background: var(--panel); border-bottom: 1px solid var(--soft-line); }
.drawer-head h2 { padding-right: 36px; overflow-wrap: anywhere; }
.drawer-head p { font-size: 13px; }
.drawer-body { padding: 4px 24px 24px; }
.drawer-section { padding: 18px 0; border-bottom: 1px solid var(--soft-line); }
.drawer-section h3 { margin-bottom: 10px; }
.danger-zone { border-bottom: 0; }
.danger-zone strong { color: var(--danger); }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.number-field { display: flex; align-items: center; gap: 8px; }
.number-field input { width: 110px; font-size: 16px; font-weight: 700; }
.number-field span, .check-label { font-size: 14px; color: var(--muted); }
.check-label { display: inline-flex; align-items: center; gap: 6px; }
.grant-box .button-row, .button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.toggle-row strong { display: block; font-size: 15px; }
.toggle-row small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.toggle-row input { appearance: none; position: relative; flex-shrink: 0; width: 44px; height: 26px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); transition: background 0.15s; }
.toggle-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--panel); box-shadow: 0 1px 3px #0003; transition: transform 0.15s; }
.toggle-row input:checked { background: var(--accent); border-color: var(--accent); }
.toggle-row input:checked::after { transform: translateX(18px); }
.danger-zone .toggle-row input:checked { background: var(--danger); border-color: var(--danger); }
.toggle-row input:disabled { opacity: 0.45; cursor: not-allowed; }
.drawer-sessions { display: grid; gap: 4px; }
.session-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--raised); font-size: 13px; }
.session-line time { color: var(--muted); }
.media-dialog { width: 920px; }
.media-dialog video, .media-dialog img { display: block; width: 100%; max-height: 64vh; margin-top: 12px; object-fit: contain; border-radius: 12px; background: var(--stage); }
.media-dialog audio { display: block; width: 100%; margin-top: 14px; }
.media-dialog p { margin-top: 14px; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; color: var(--text); }
.prewrap { white-space: pre-wrap; }
.preview-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translateX(-50%); max-width: 90vw; padding: 12px 20px; border-radius: 14px; background: var(--text); color: var(--panel); font-size: 14px; font-weight: 600; box-shadow: var(--pop-shadow); text-align: center; animation: dialog-in 0.18s ease-out; }
footer { display: flex; justify-content: space-between; gap: 16px; width: 100%; max-width: 1360px; margin: auto auto 0; padding: 20px 32px; border-top: 1px solid var(--soft-line); font-size: 12px; color: var(--muted); }

/* Responsive */
@media (max-width: 1180px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .admin-rail { transform: translateX(-100%); transition: transform 0.2s ease-out; box-shadow: var(--pop-shadow); }
  .admin-rail.open { transform: none; }
  .admin-main { margin-left: 0; }
  .menu-toggle { display: inline-grid; }
  .admin-topbar { padding: 10px 16px; }
  .admin-view { padding: 22px 16px; }
  .topbar-overline { display: none; }
  .page-heading { flex-direction: column; align-items: stretch; }
  .search input, .select-field select { width: 100%; }
  .user-table thead { display: none; }
  .user-table, .user-table tbody, .user-table tr, .user-table td { display: block; }
  .user-table tr { padding: 14px 16px; border-bottom: 1px solid var(--soft-line); }
  .user-table td { padding: 4px 0; border: 0; }
  .user-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); }
  .user-table .row-actions { justify-content: flex-start; margin-top: 8px; }
  footer { padding: 18px 16px; }
}
@media (max-width: 560px) {
  .metrics { gap: 10px; }
  .metric strong { font-size: 26px; }
  .topbar-actions .connection { display: none; }
  .drawer { width: 100vw; border-radius: 0; }
  .auth-card { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
