:root {
  color-scheme: light dark;
  --bg: #f3f5f9; --panel: #ffffff; --panel-2: #f8f9fc; --text: #0f172a; --muted: #64748b; --faint: #94a3b8;
  --line: #e5e8ef; --line-strong: #d5dae4;
  --accent: #4f46e5; --accent-hover: #4338ca; --accent-soft: #eef0ff; --accent-text: #4338ca;
  --hover: #f6f7fb; --chip: #eef1f6; --danger: #dc2626; --ok: #059669;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-lg: 0 20px 50px -12px rgba(15, 23, 42, .25);
  --ring: 0 0 0 3px rgba(79, 70, 229, .18);
  --skel: #edf0f5; --skel-2: #f6f7fa;
  --radius: 12px;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 14px; line-height: 1.45; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
/* theme: "Auto" follows Windows; the theme switch sets data-theme="light" / "dark" on <html> (theme.js) */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f17; --panel: #131925; --panel-2: #171e2c; --text: #e6e9f0; --muted: #94a0b5; --faint: #6b778c;
  --line: #232b3a; --line-strong: #2f394b;
  --accent: #818cf8; --accent-hover: #a5b4fc; --accent-soft: #1f2547; --accent-text: #a5b4fc;
  --hover: #1a2130; --chip: #212938; --danger: #f87171; --ok: #34d399;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 3px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .7);
  --ring: 0 0 0 3px rgba(129, 140, 248, .25);
  --skel: #1c2331; --skel-2: #232b3b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f17; --panel: #131925; --panel-2: #171e2c; --text: #e6e9f0; --muted: #94a0b5; --faint: #6b778c;
    --line: #232b3a; --line-strong: #2f394b;
    --accent: #818cf8; --accent-hover: #a5b4fc; --accent-soft: #1f2547; --accent-text: #a5b4fc;
    --hover: #1a2130; --chip: #212938; --danger: #f87171; --ok: #34d399;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 3px rgba(0, 0, 0, .45);
    --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .7);
    --ring: 0 0 0 3px rgba(129, 140, 248, .25);
    --skel: #1c2331; --skel-2: #232b3b;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--ring); }
svg { flex-shrink: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-strong); background: var(--panel);
  border-radius: 8px; padding: 6px 12px; cursor: pointer; font-weight: 500; box-shadow: var(--shadow-sm);
  transition: background .12s, border-color .12s, color .12s; white-space: nowrap; }
.btn:hover { background: var(--hover); }
.btn svg { color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.link { border: 0; background: none; color: var(--accent-text); padding: 4px 2px; box-shadow: none; }
.btn.link:hover { text-decoration: underline; background: none; }
.btn:disabled { opacity: .45; cursor: default; }
.btn:disabled:hover { background: var(--panel); }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid transparent;
  background: none; color: var(--muted); cursor: pointer; transition: background .12s, color .12s; }
.icon-btn:hover { background: var(--hover); color: var(--text); border-color: var(--line); }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; gap: 20px; align-items: center; height: 62px;
  padding: 0 24px; background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: saturate(1.5) blur(10px);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #fff;
  background: linear-gradient(135deg, #6366f1, #4f46e5 55%, #7c3aed); box-shadow: 0 4px 12px -2px rgba(79, 70, 229, .45); }
.brand-text { font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.search { flex: 1; max-width: 680px; position: relative; margin: 0 auto; }
.search input { width: 100%; height: 40px; padding: 0 40px 0 40px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel-2); outline: none; transition: border-color .12s, box-shadow .12s, background .12s; }
.search input::placeholder { color: var(--faint); }
.search input:focus { border-color: var(--accent); background: var(--panel); box-shadow: var(--ring); }
.search .search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 11px/1 ui-monospace, Consolas, monospace;
  color: var(--muted); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px;
  background: var(--panel); pointer-events: none; }
.search input:focus ~ .kbd, .search input:not(:placeholder-shown) ~ .kbd { display: none; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.user { display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.theme-switch { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); }
.theme-switch button { display: grid; place-items: center; width: 28px; height: 26px; border: 0; border-radius: 6px; background: none;
  color: var(--muted); cursor: pointer; }
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-pressed="true"] { background: var(--panel); color: var(--accent-text); box-shadow: var(--shadow); }
.me { display: flex; align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid var(--line); font-weight: 500; }

/* avatars */
.avatar { --h: 230; display: inline-grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  font-weight: 600; font-size: 12.5px; letter-spacing: .02em; color: hsl(var(--h) 55% 38%); background: hsl(var(--h) 75% 93%); }
.avatar.org { border-radius: 9px; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; color: #fff; background: linear-gradient(135deg, #6366f1, #7c3aed); }
.avatar.lg { width: 52px; height: 52px; font-size: 18px; }
:root[data-theme="dark"] .avatar:not(.sm) { color: hsl(var(--h) 80% 80%); background: hsl(var(--h) 35% 22%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .avatar:not(.sm) { color: hsl(var(--h) 80% 80%); background: hsl(var(--h) 35% 22%); }
}

/* tabs */
.tabs { display: flex; gap: 6px; padding: 10px 24px; background: var(--panel); border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; background: none; padding: 7px 13px;
  border-radius: 999px; cursor: pointer; color: var(--muted); white-space: nowrap; font-weight: 500; transition: background .12s, color .12s; }
.tab:hover { color: var(--text); background: var(--hover); }
.tab.active { color: var(--accent-text); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, transparent); font-weight: 600; }
.tab .n { font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--chip); color: var(--muted);
  font-variant-numeric: tabular-nums; }
.tab.active .n { background: var(--accent); color: #fff; }

/* layout */
.layout { padding: 18px 24px 24px; max-width: 100%; }
.layout > main { min-width: 0; }

/* result toolbar */
.resultbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; min-height: 34px; }
.count { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.count .muted { color: var(--muted); font-weight: 400; font-size: 13px; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--accent-soft); color: var(--accent-text); border-radius: 999px; padding: 3px 6px 3px 11px; font-size: 12.5px;
  font-weight: 500; display: inline-flex; gap: 4px; align-items: center; }
.chip button { display: grid; place-items: center; width: 18px; height: 18px; border: 0; border-radius: 50%; background: none;
  cursor: pointer; color: inherit; padding: 0; line-height: 1; font-size: 14px; opacity: .7; }
.chip button:hover { opacity: 1; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.fcount { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
.fcount:empty { display: none; }
#filtersToggle[aria-expanded="true"], #colsBtn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
#filtersToggle[aria-expanded="true"] svg, #colsBtn[aria-expanded="true"] svg { color: var(--accent-text); }
.search-hint { font-size: 12.5px; color: var(--muted); margin: -4px 0 10px; }
.search-hint:empty { display: none; }
.search-hint::before { content: "ⓘ  "; color: var(--accent-text); }

/* filters: a panel above the table, opened with the Filters button, so the table keeps the full width */
.filters { display: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; margin-bottom: 14px; grid-template-columns: repeat(4, minmax(160px, 1fr)) auto; gap: 12px 16px; align-items: end; }
.filters.open { display: grid; animation: drop .16s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }
.filters .field { margin: 0; }
.filters .checks { display: flex; gap: 8px 18px; align-items: center; flex-wrap: wrap; min-height: 36px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input[type=text], .field input[type=password], .field input:not([type]), .field select {
  width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); outline: none;
  transition: border-color .12s, box-shadow .12s; }
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: var(--ring); }
/* switch-style checkboxes */
.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; font-weight: 500; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle span { position: relative; width: 32px; height: 18px; border-radius: 999px; background: var(--line-strong); transition: background .15s; }
.toggle span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.toggle input:checked + span { background: var(--accent); }
.toggle input:checked + span::after { transform: translateX(14px); }
.toggle input:focus-visible + span { box-shadow: var(--ring); }
.check { display: flex; align-items: center; gap: 8px; margin: 2px 0; padding: 5px 6px; border-radius: 6px; cursor: pointer; }
.check:hover { background: var(--hover); }
.check input { accent-color: var(--accent); }

/* results card + table */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table-wrap { overflow: auto; max-height: calc(100vh - 268px); min-height: 200px; }
.table-wrap:has(tbody:empty) { min-height: 0; }
table.results { min-width: 100%; width: max-content; border-collapse: separate; border-spacing: 0; }
.results th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 11px 14px; text-transform: uppercase;
  letter-spacing: .04em; border-bottom: 1px solid var(--line); background: var(--panel-2); white-space: nowrap;
  position: sticky; top: 0; z-index: 2; }
.results td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; background: var(--panel);
  transition: background .08s; }
.results tbody tr:last-child td { border-bottom: 0; }
.results th:first-child, .results td:first-child { position: sticky; left: 0; z-index: 1; min-width: 240px; max-width: 320px;
  box-shadow: 1px 0 0 var(--line); }
.results th:first-child { z-index: 3; }
.results tbody tr { cursor: pointer; }
.results tbody tr:hover td { background: var(--hover); }
.results tbody tr.selected td { background: var(--accent-soft); }
.results tbody tr.selected td:first-child { box-shadow: inset 3px 0 0 var(--accent), 1px 0 0 var(--line); }
.cell { max-width: 220px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere; }
.cell.wide { max-width: 300px; }
.cell.mono { font-variant-numeric: tabular-nums; }
.who { display: flex; gap: 11px; align-items: flex-start; }
.who .avatar { margin-top: 1px; }
.who > div { min-width: 0; }
.name { font-weight: 600; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.who .sub { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nowrap { white-space: nowrap; }
.badge { display: inline-flex; align-items: center; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent-text); font-weight: 600; }
.badge.gray { background: var(--chip); color: var(--muted); }
.ds { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--chip); color: var(--muted);
  margin: 0 4px 4px 0; white-space: nowrap; }

/* column menu */
.resultbar .colpick { margin-left: auto; position: relative; }
.colmenu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 25; width: 300px; max-height: 62vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px;
  animation: drop .14s ease-out; }
.colmenu .check { justify-content: space-between; }
.colmenu .check span { flex: 1; }
.colmenu .check .sub { flex: 0 0 auto; margin: 0; font-variant-numeric: tabular-nums; }
.colmenu .actions { display: flex; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); padding: 4px 6px 8px; margin-bottom: 4px; }
.colmenu .actions b { margin-right: auto; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* pager */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px;
  border-top: 1px solid var(--line); background: var(--panel-2); flex-wrap: wrap; }
.pager .page-info { color: var(--muted); font-variant-numeric: tabular-nums; }
.pager .page-info b { color: var(--text); font-weight: 600; }
.pager-btns { display: flex; gap: 6px; }

/* states */
.empty, .error { padding: 56px 24px; text-align: center; color: var(--muted); }
.empty .ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--chip);
  color: var(--faint); margin-bottom: 12px; }
.empty h3 { margin: 0 0 4px; color: var(--text); font-size: 16px; }
.empty p { margin: 0 0 14px; }
.error { color: var(--danger); }
.loading tbody { opacity: .5; transition: opacity .15s; }
.skel { display: block; height: 11px; border-radius: 6px; background: linear-gradient(90deg, var(--skel) 25%, var(--skel-2) 50%, var(--skel) 75%);
  background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
.skel.circle { width: 34px; height: 34px; border-radius: 50%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.results tr.skel-row td { cursor: default; }
.results tr.skel-row:hover td { background: var(--panel); }

/* detail drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100%); background: var(--bg);
  box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); z-index: 40;
  display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.drawer.open { transform: none; }
.drawer header { padding: 20px 22px; background: var(--panel); border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; }
.drawer .dhead { min-width: 0; flex: 1; }
.drawer header h2 { margin: 2px 0 0; font-size: 19px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.drawer .close { margin-left: auto; margin-top: -4px; }
.dactions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.dactions:empty { display: none; }
.dactions .btn { font-size: 13px; padding: 5px 11px; }
.drawer .body { overflow-y: auto; padding: 18px 22px 40px; }
.section { margin-bottom: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow-sm); }
.section.plain { background: none; border: 0; padding: 0; box-shadow: none; }
.section h4 { margin: 0 0 12px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 9px 14px; margin: 0; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.copy { cursor: pointer; border-bottom: 1px dashed var(--faint); }
.copy:hover { color: var(--accent-text); border-bottom-color: var(--accent); }
.cats { display: flex; flex-wrap: wrap; gap: 6px; }
.record { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.record > summary { padding: 12px 14px; cursor: pointer; font-weight: 600; list-style: none; display: flex; gap: 10px; align-items: flex-start; }
.record > summary::-webkit-details-marker { display: none; }
.record > summary::before { content: "›"; color: var(--faint); font-size: 18px; line-height: 1; transition: transform .15s; margin-top: -1px; }
.record[open] > summary::before { transform: rotate(90deg); }
.record[open] > summary { border-bottom: 1px solid var(--line); }
.record .inner { padding: 12px 14px 14px; }
.record .src { font-size: 12px; color: var(--muted); font-weight: 400; display: block; margin-top: 2px; }
.record details.orig { margin-top: 12px; }
.record details.orig summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
.backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .4); backdrop-filter: blur(2px); z-index: 30; opacity: 0;
  pointer-events: none; transition: opacity .2s; }
.backdrop.show { opacity: 1; pointer-events: auto; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 8px); background: var(--text); color: var(--bg);
  padding: 9px 16px; border-radius: 10px; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0;
  transition: opacity .2s, transform .2s; z-index: 60; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* login */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.login-hero { position: relative; overflow: hidden; color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .16), transparent 40%),
              radial-gradient(circle at 85% 90%, rgba(124, 58, 237, .55), transparent 45%),
              linear-gradient(140deg, #312e81, #4f46e5 55%, #6d28d9); }
.login-hero::after { content: ""; position: absolute; inset: 0; opacity: .1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .6) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .6) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: linear-gradient(180deg, transparent, #000 60%); }
.login-hero .brand .logo { background: rgba(255, 255, 255, .16); box-shadow: none; border: 1px solid rgba(255, 255, 255, .25); }
.login-hero .brand-text small { color: rgba(255, 255, 255, .7); }
.login-hero h2 { font-size: 32px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 14px; max-width: 440px; }
.login-hero p { margin: 0; color: rgba(255, 255, 255, .8); max-width: 420px; font-size: 15px; }
.stats { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; position: relative; z-index: 1; }
.stat { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 12px 16px; min-width: 120px; }
.stat b { display: block; font-size: 20px; }
.stat span { font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.login-hero footer { font-size: 12.5px; color: rgba(255, 255, 255, .65); position: relative; z-index: 1; }
.login-side { display: grid; place-items: center; padding: 32px 20px; position: relative; }
.login-theme { position: absolute; top: 18px; right: 20px; }
.login { width: min(380px, 100%); }
.login .brand.mobile { display: none; margin-bottom: 28px; }
.login h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.02em; }
.login > p { margin: 0 0 28px; color: var(--muted); }
.login-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.login .btn.primary { width: 100%; justify-content: center; height: 40px; }
.login .note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin-top: 18px; }
.google-btn { display: flex; justify-content: center; min-height: 44px; }
.login .error { padding: 10px 12px; margin-top: 12px; text-align: left; border-radius: 8px; font-size: 13px;
  background: color-mix(in srgb, var(--danger) 10%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }
.login .error:empty { display: none; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 16px 0 10px; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.login #showPw { width: 100%; justify-content: center; }
.login form { margin-top: 6px; }

/* medium screens */
@media (max-width: 1100px) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .checks { grid-column: 1 / -1; }
  .brand-text small { display: none; }
  .me-name { display: none; }
  .me { padding-left: 0; border-left: 0; }
}
/* small screens */
@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .login .brand.mobile { display: flex; }
  .topbar { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 10px 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .kbd { display: none; }
  .user { margin-left: auto; }
  .tabs { padding: 8px 16px; }
  .layout { padding: 12px 16px; }
  .filters { grid-template-columns: 1fr; }
  .results thead { display: none; }
  .results tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table-wrap { max-height: none; }
  .results td { display: block; border: 0; padding: 2px 0 2px 45px; background: none; }
  .results td:first-child { position: static; box-shadow: none; max-width: none; min-width: 0; padding: 0 0 6px; }
  .results td.blank { display: none; }
  .results td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 12px; }
  .results tbody tr:hover td, .results tbody tr.selected td { background: none; }
  .results tbody tr.selected { background: var(--accent-soft); }
  .results tbody tr.selected td:first-child { box-shadow: none; }
  table.results { width: 100%; }
  .cell, .cell.wide { max-width: none; }
  .pager { justify-content: center; }
  .kv { grid-template-columns: 110px 1fr; }
}
