/* LinkCheck admin — shared design system. Page-specific styles live in their templates. */
:root {
  --bg: #0a0f15;
  --bg-elev: #0e151e;
  --surface: #111a25;
  --surface-2: #16212e;
  --surface-3: #1c2939;
  --border: #1f2d3c;
  --border-strong: #2b3e52;
  --text: #e6edf3;
  --text-2: #b3c2d1;
  --muted: #8396a9;
  --dim: #5d7185;
  --accent: #3fd9b0;
  --accent-strong: #22c39a;
  --accent-soft: rgba(63, 217, 176, .12);
  --accent-line: rgba(63, 217, 176, .32);
  --green: #4ade80;
  --red: #f87171;
  --yellow: #fbbf24;
  --orange: #fb923c;
  --blue: #60a5fa;
  --purple: #a78bfa;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px -12px rgba(0,0,0,.6);
  --sidebar-w: 236px;
  --topbar-h: 58px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', 'Consolas', monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text-2); font-family: var(--font); font-size: 14px; line-height: 1.5; font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: var(--font-mono); font-size: .92em; background: var(--surface-3); padding: 1px 6px; border-radius: 5px; color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(63, 217, 176, .3); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #223245; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2d4259; }

/* ---------- Layout ---------- */
.layout { display: flex; min-height: 100vh; }
.main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; min-width: 0; }
.page-content { flex: 1; padding: 24px 28px 48px; min-width: 0; }

/* ---------- Sidebar ---------- */
.sidebar { width: var(--sidebar-w); flex-shrink: 0; background: var(--bg-elev); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 50; transition: transform .22s ease; }
.sidebar-logo { height: var(--topbar-h); display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, rgba(63,217,176,.28), rgba(96,165,250,.18)); border: 1px solid var(--accent-line); border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 17px; flex-shrink: 0; }
.logo-img { width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; }
.logo-text-main { font-weight: 700; font-size: 14px; color: #fff; line-height: 1.15; letter-spacing: -.01em; }
.logo-text-sub { font-size: 11px; color: var(--muted); }
.sidebar-nav { flex: 1; padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; }
.nav-section-title { margin: 16px 10px 6px; color: var(--dim); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.nav-section-title:first-child { margin-top: 4px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm); color: var(--muted); font-size: 13.5px; font-weight: 500; transition: background .12s, color .12s; }
.nav-link:hover { background: rgba(255,255,255,.04); color: var(--text); }
.nav-link.active { background: var(--accent-soft); color: var(--text); }
.nav-link.active::before { content: ''; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav-link.active i { color: var(--accent); }
.nav-link i { font-size: 18px; width: 20px; flex-shrink: 0; text-align: center; }
.nav-link .nav-badge { margin-left: auto; }
.nav-link .ti-external-link { font-size: 13px; margin-left: auto; opacity: .5; width: auto; }
.sidebar-bottom { padding: 10px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 4px 6px; }
.sidebar-user-name { color: var(--text); font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-role { color: var(--dim); font-size: 11px; }
.nav-link-logout { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--radius-sm); color: var(--muted); transition: all .12s; }
.nav-link-logout:hover { background: rgba(248,113,113,.1); color: var(--red); }
.nav-link-logout i { font-size: 18px; }
.sidebar-backdrop { display: none; }

/* ---------- Topbar ---------- */
.topbar { height: var(--topbar-h); display: flex; align-items: center; gap: 12px; padding: 0 28px; background: rgba(10, 15, 21, .78); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; flex-shrink: 0; }
.topbar .topbar-burger { display: none; }
.topbar-crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--dim); font-size: 13px; }
.topbar-crumbs i { font-size: 16px; color: var(--muted); }
.topbar-title { font-weight: 600; font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-trigger { display: flex; align-items: center; gap: 8px; height: 34px; min-width: 220px; padding: 0 8px 0 11px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--dim); cursor: pointer; font-size: 13px; transition: border-color .12s, color .12s; }
.search-trigger:hover { border-color: var(--border-strong); color: var(--muted); }
.search-trigger .kbd { margin-left: auto; }
.kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--muted); font-size: 11px; font-family: var(--font-mono); }
.avatar { width: 32px; height: 32px; background: linear-gradient(135deg, rgba(63,217,176,.25), rgba(167,139,250,.2)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text); font-size: 12px; font-weight: 700; flex-shrink: 0; }
.refresh-pill, .live-state { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 20px; padding: 3px 10px; color: var(--accent); font-size: 12px; font-weight: 500; }

/* ---------- Page header ---------- */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-header h1 { font-size: 22px; font-weight: 650; letter-spacing: -.02em; color: var(--text); line-height: 1.25; }
.page-header p { color: var(--muted); font-size: 13px; margin-top: 4px; max-width: 720px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Cards ---------- */
.card, .card-padded { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-padded { padding: 20px; }
.card-header { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-title { font-weight: 600; font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.card-body { padding: 20px; }

/* ---------- Stat cards ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; transition: border-color .15s, transform .15s; }
.stat-card:hover { border-color: var(--border-strong); }
.stat-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.stat-value { font-size: 28px; font-weight: 650; color: var(--text); line-height: 1; margin-top: 14px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 5px; }
.stat-sub { font-size: 11.5px; margin-top: 6px; color: var(--dim); }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; padding: 1px 8px; font-size: 11.5px; font-weight: 600; line-height: 1.7; white-space: nowrap; border: 1px solid transparent; }
.badge-green { background: rgba(74,222,128,.1); color: var(--green); border-color: rgba(74,222,128,.22); }
.badge-red { background: rgba(248,113,113,.1); color: var(--red); border-color: rgba(248,113,113,.22); }
.badge-yellow { background: rgba(251,191,36,.1); color: var(--yellow); border-color: rgba(251,191,36,.22); }
.badge-orange { background: rgba(251,146,60,.1); color: var(--orange); border-color: rgba(251,146,60,.22); }
.badge-blue { background: rgba(96,165,250,.1); color: var(--blue); border-color: rgba(96,165,250,.22); }
.badge-purple { background: rgba(167,139,250,.1); color: var(--purple); border-color: rgba(167,139,250,.22); }
.badge-teal { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.badge-gray { background: rgba(148,163,184,.08); color: var(--muted); border-color: rgba(148,163,184,.18); }
.badge-pill { border-radius: 20px; padding: 1px 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: all .12s; white-space: nowrap; }
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active, .chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.chip .count { color: var(--dim); font-variant-numeric: tabular-nums; }
.chip.active .count { color: inherit; opacity: .8; }

/* ---------- Tables ---------- */
/* The wrapper is the scroll box: bounded height keeps the sticky header visible,
   horizontal overflow scrolls inside it. */
.table-wrap { position: relative; overflow: auto; max-height: calc(100vh - var(--topbar-h) - 96px); overscroll-behavior-x: contain; scrollbar-gutter: stable; }
.table-wrap.table-wrap-free { max-height: none; }
table { width: 100%; min-width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
table[data-fixed] { table-layout: fixed; }
thead th { position: sticky; top: 0; z-index: 3; background: #0c131c; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 11px 14px; border-bottom: 1px solid var(--border-strong); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
th a { color: inherit; }
th a:hover { color: var(--text); }
th .sort-active, th a.active { color: var(--accent); }
.resize-handle { position: absolute; top: 6px; right: 0; bottom: 6px; width: 7px; cursor: col-resize; user-select: none; z-index: 4; border-right: 1px solid transparent; }
th:hover .resize-handle { border-right-color: var(--border-strong); }
.resize-handle:hover, .resize-handle.resizing { border-right: 2px solid var(--accent); }
body.col-resizing, body.col-resizing * { cursor: col-resize !important; user-select: none !important; }
td { padding: 10px 14px; border-bottom: 1px solid rgba(31,45,60,.75); font-size: 13px; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); background: var(--surface); }
tbody tr:nth-child(even) td { background: #121c28; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #172331; }
tbody tr:has(.row-select:checked) td { background: #12272a; }
table[data-density="compact"] td { padding: 5px 12px; font-size: 12.5px; }
table[data-density="compact"] thead th { padding: 8px 12px; }
table[data-density="comfortable"] td { padding: 14px 16px; }
td.wrap, th.wrap { white-space: normal; overflow-wrap: anywhere; }
td.num, th.num { text-align: right; }
td.actions, th.actions { text-align: right; }
/* Selection column stays visible during horizontal scroll. */
table.has-select > thead > tr > th:first-child, table.has-select > tbody > tr > td:first-child { position: sticky; left: 0; z-index: 2; width: 44px; min-width: 44px; max-width: 44px; padding-left: 14px; padding-right: 6px; }
table.has-select > thead > tr > th:first-child { z-index: 4; }
.table-wrap.scrolled-x table.has-select > * > tr > :first-child { box-shadow: 6px 0 10px -6px rgba(0,0,0,.6); }
.url-cell { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-cell { text-align: center; color: var(--dim); padding: 36px 16px !important; white-space: normal; }
/* Table tools (density / columns), injected by base.html. */
.table-tools { position: relative; display: inline-flex; gap: 6px; align-items: center; }
.table-tools-bar { display: flex; justify-content: flex-end; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.table-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; min-width: 230px; max-height: 60vh; overflow-y: auto; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 10px; padding: 6px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.75); display: none; }
.table-menu.open { display: block; }
.table-menu-title { padding: 6px 10px 4px; color: var(--dim); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.table-menu label, .table-menu button.menu-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 10px; border-radius: 7px; color: var(--text-2); font-size: 13px; cursor: pointer; background: none; border: 0; text-align: left; }
.table-menu label:hover, .table-menu button.menu-item:hover { background: var(--surface-3); color: var(--text); }
.table-menu button.menu-item[aria-pressed="true"] { color: var(--accent); }
.table-menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.table-count { color: var(--dim); font-size: 12px; margin-right: auto; align-self: center; }
input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 550; cursor: pointer; border: 1px solid transparent; transition: background .14s, border-color .14s, color .14s, transform .06s; white-space: nowrap; line-height: 1; background: var(--surface-2); color: var(--text-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn i { font-size: 16px; }
.btn-primary { background: var(--accent); color: #04130e; font-weight: 650; box-shadow: 0 0 0 1px rgba(63,217,176,.4), 0 6px 18px -8px rgba(63,217,176,.6); }
.btn-primary:hover { background: #5ce4bf; }
.btn-ghost, .btn-secondary { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover, .btn-secondary:hover { background: var(--surface-3); border-color: var(--border-strong); color: var(--text); }
.btn-danger-soft { background: rgba(248,113,113,.08); color: var(--red); border-color: rgba(248,113,113,.2); }
.btn-danger-soft:hover { background: rgba(248,113,113,.16); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn-sm i { font-size: 14px; }
.btn-icon { width: 30px; padding: 0; }
.btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ---------- Forms ---------- */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.input, select.input, textarea.input { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; min-height: 36px; color: var(--text); font-size: 13px; outline: none; transition: border-color .14s, box-shadow .14s; width: 100%; font-family: inherit; }
.input:hover { border-color: var(--border-strong); }
.input:focus, select.input:focus, textarea.input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px rgba(63,217,176,.12); }
.input::placeholder { color: var(--dim); }
select.input { cursor: pointer; }
textarea.input { resize: vertical; min-height: 80px; line-height: 1.5; }
.form-hint { font-size: 12px; color: var(--dim); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }

/* ---------- Status dot ---------- */
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 0 currentColor; } 50% { box-shadow: 0 0 0 3px transparent; } }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-green { background: var(--green); color: rgba(74,222,128,.45); animation: pulse-dot 2s infinite; }
.dot-red { background: var(--red); }
.dot-yellow { background: var(--yellow); color: rgba(251,191,36,.45); animation: pulse-dot 2s infinite; }
.dot-gray { background: var(--dim); }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 56px 24px; color: var(--dim); }
.empty-icon { font-size: 44px; display: block; margin-bottom: 12px; color: var(--surface-3); }
.empty-title { font-size: 14px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }

/* ---------- Progress ---------- */
.progress-bar { height: 5px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; background: var(--accent); transition: width .3s; }

/* ---------- Utilities ---------- */
.mono { font-family: var(--font-mono); font-size: .95em; }
.text-muted { color: var(--muted); }
.text-dim { color: var(--dim); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--text); }
.text-red, .text-red-400 { color: var(--red); }
.text-green { color: var(--green); }
.text-yellow { color: var(--yellow); }
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.row { display: flex; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin, .spin { display: inline-block; animation: spin 1s linear infinite; }

/* ---------- Copy field ---------- */
.copy-btn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; border: 1px solid transparent; background: transparent; color: var(--dim); cursor: pointer; transition: all .12s; flex-shrink: 0; }
.copy-btn:hover { color: var(--text); background: var(--surface-3); border-color: var(--border); }
.copy-btn.copied { color: var(--accent); }
.copy-btn i { font-size: 14px; }

/* ---------- Bulk action bar ---------- */
.bulk-action-bar { position: fixed; bottom: 24px; left: calc(50% + var(--sidebar-w) / 2); transform: translateX(-50%) translateY(120px); background: rgba(17, 26, 37, .96); border: 1px solid var(--accent-line); border-radius: 14px; padding: 10px 12px 10px 18px; display: flex; align-items: center; gap: 16px; z-index: 60; box-shadow: 0 16px 40px -12px rgba(0,0,0,.7), 0 0 24px rgba(63,217,176,.12); backdrop-filter: blur(10px); transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .25s; opacity: 0; pointer-events: none; }
.bulk-action-bar.show { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.bulk-count { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }

/* ---------- Toasts ---------- */
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 420px; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); padding: 11px 14px; border-radius: 10px; box-shadow: 0 12px 32px -10px rgba(0,0,0,.7); font-size: 13px; opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: none; }
.toast i { font-size: 18px; flex-shrink: 0; }
.toast-ok i { color: var(--accent); }
.toast-err i { color: var(--red); }

/* ---------- Command palette ---------- */
.cmdk { position: fixed; inset: 0; z-index: 200; display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: rgba(4, 8, 12, .6); backdrop-filter: blur(4px); }
.cmdk.open { display: flex; }
.cmdk-panel { width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: 0 24px 60px -16px rgba(0,0,0,.8); overflow: hidden; }
.cmdk-input { width: 100%; border: 0; border-bottom: 1px solid var(--border); background: transparent; padding: 16px 18px; color: var(--text); font-size: 15px; outline: none; }
.cmdk-list { max-height: 50vh; overflow-y: auto; padding: 6px; }
.cmdk-group { padding: 8px 12px 4px; color: var(--dim); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.cmdk-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--text-2); cursor: pointer; font-size: 13.5px; }
.cmdk-item i { font-size: 17px; color: var(--muted); width: 20px; text-align: center; }
.cmdk-item.selected { background: var(--accent-soft); color: var(--text); }
.cmdk-item.selected i { color: var(--accent); }
.cmdk-item .hint { margin-left: auto; color: var(--dim); font-size: 12px; }
.cmdk-empty { padding: 20px; text-align: center; color: var(--dim); font-size: 13px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .search-trigger { min-width: 0; }
  .search-trigger .search-label, .search-trigger .kbd { display: none; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); box-shadow: 0 0 40px rgba(0,0,0,.6); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.5); }
  .main { margin-left: 0; }
  .topbar { padding: 0 14px; }
  .topbar .topbar-burger { display: inline-flex; }
  .page-content { padding: 16px 14px 40px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .bulk-action-bar { left: 50%; max-width: calc(100vw - 24px); flex-wrap: wrap; }
  .topbar-right .badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
