/* Inter (variable) 5.3.0, self-hosted from @fontsource-variable/inter. SIL Open Font License 1.1. */
/* inter-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* inter-cyrillic-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* inter-greek-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-greek-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+1F00-1FFF;
}

/* inter-greek-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-greek-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* inter-vietnamese-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-vietnamese-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* inter-latin-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* inter-latin-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* inter-cyrillic-ext-wght-italic */
@font-face {
  font-family: 'Inter Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-cyrillic-ext-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* inter-cyrillic-wght-italic */
@font-face {
  font-family: 'Inter Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-cyrillic-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* inter-greek-ext-wght-italic */
@font-face {
  font-family: 'Inter Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-greek-ext-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+1F00-1FFF;
}

/* inter-greek-wght-italic */
@font-face {
  font-family: 'Inter Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-greek-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* inter-vietnamese-wght-italic */
@font-face {
  font-family: 'Inter Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-vietnamese-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* inter-latin-ext-wght-italic */
@font-face {
  font-family: 'Inter Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-ext-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* inter-latin-wght-italic */
@font-face {
  font-family: 'Inter Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* =====================================================================
   Longmark Relationship Search: design system ("Option A, clean & airy")
   ---------------------------------------------------------------------
   The ONE stylesheet. `npm run build` writes dist/public/app.css = the
   self-hosted Inter @font-face rules + this file (scripts/build-assets.ts);
   it is served at /static/app.css?v=<content hash>.

   Sections: tokens, base, top bar, layout, forms & buttons, callouts,
   badges & avatars, tables, search screen, multi-select, pager, detail
   pages, admin pages, graph, status pages, responsive, reduced motion.

   Palette: owner colours are slots --o1..--o6; they MUST match OWNER_COLORS in
   src/shared/ownerColor.ts (a test checks). Owner id -> slot is decided there.
   ===================================================================== */

:root {
  /* colour */
  --bg: #f7f8fc;
  --bg-grad: radial-gradient(1200px 400px at 10% -10%, #eef0ff 0%, transparent 60%), radial-gradient(900px 360px at 95% -20%, #e6fbf7 0%, transparent 55%);
  --surface: #ffffff;
  --surface-2: #f9fafc;
  --border: #e6e8f0;
  --border-strong: #d3d7e3;
  --text: #121528;
  --text-2: #424a63;
  --muted: #5f6782;
  --faint: #676d85; /* placeholders and hints: >= 4.5:1 on white and --surface-2 */
  --accent: #5b4bf0;
  --accent-2: #8b3df5;
  --accent-grad: linear-gradient(135deg, #5b4bf0 0%, #8b3df5 100%);
  --accent-ink: #3f2fd1;
  --accent-soft: #f0eeff;
  --teal: #0f8f83;
  --teal-soft: #e3f7f4;
  --danger: #b42318; --danger-soft: #fef3f2; --danger-border: #f6c6c0;
  --success: #116b3c; --success-soft: #ecfdf3; --success-border: #b7ebcd;
  --warning: #8a4b08; --warning-soft: #fffaeb; --warning-border: #fbe3a1;
  --info: #3f2fd1; --info-soft: #f0eeff; --info-border: #d9d3ff;
  /* graph: hub = ink, companies = muted (see src/client/graphModel.ts) */
  --hub: #121528; --company: #5f6782;
  /* owner palette slots (src/shared/ownerColor.ts) */
  --o1: #5b4bf0;
  --o2: #0f8f83;
  --o3: #d9480f;
  --o4: #c2255c;
  --o5: #1c6dd0;
  --o6: #a16207;
  /* shape */
  --radius-sm: 8px; --radius: 12px; --radius-lg: 16px; --pill: 999px;
  --shadow-1: 0 1px 2px rgba(18, 21, 40, .04), 0 1px 3px rgba(18, 21, 40, .06);
  --shadow-2: 0 1px 2px rgba(18, 21, 40, .04), 0 4px 12px rgba(18, 21, 40, .06), 0 12px 32px -8px rgba(18, 21, 40, .08);
  --shadow-pop: 0 4px 8px rgba(18, 21, 40, .06), 0 20px 48px -8px rgba(40, 30, 120, .22);
  --ring: 0 0 0 4px rgba(91, 75, 240, .18);
  /* spacing */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  /* type */
  --font: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 12px; --fs-sm: 13px; --fs: 14px; --fs-md: 15px; --fs-h1: 30px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg-grad), var(--bg); background-attachment: fixed; color: var(--text); font: 400 var(--fs)/1.55 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1 { margin: 0 0 6px; font-size: var(--fs-h1); line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
h2 { margin: var(--s6) 0 var(--s3); font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
h3 { margin: var(--s5) 0 var(--s2); font-size: var(--fs-md); line-height: 1.35; font-weight: 600; }
p { margin: 0 0 var(--s4); }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong { font-weight: 600; }
code { font: 500 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; color: var(--text-2); }
pre { font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
ul { padding-left: var(--s5); margin: 0 0 var(--s4); }
li { margin: 4px 0; }
section { margin: 0 0 var(--s5); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s4); top: -100px; z-index: 50; padding: 8px 14px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-pop); font-weight: 600; }
.skip-link:focus { top: var(--s3); }
.muted { color: var(--muted); }
.nil { color: var(--faint); }
.nowrap { white-space: nowrap; }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }

/* ---- Top bar ---- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .72); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(18, 21, 40, .07); }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 var(--s6); min-height: 64px; display: flex; align-items: center; gap: var(--s6); }
body:has(.container-wide) .topbar-inner { max-width: 1600px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent-grad); color: #fff; box-shadow: 0 4px 12px -2px rgba(91, 75, 240, .45); }
.brand-mark .ic { width: 18px; height: 18px; }
.main-nav { display: flex; flex: 1; align-items: center; gap: var(--s4); min-width: 0; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-links > a, .nav-admin summary { color: var(--text-2); padding: 7px 12px; border-radius: var(--pill); font-weight: 500; transition: background .15s, color .15s; white-space: nowrap; }
.nav-links > a:hover, .nav-admin summary:hover { background: rgba(18, 21, 40, .05); color: var(--text); text-decoration: none; }
.nav-links > a[aria-current="page"], .nav-admin.active summary { background: var(--accent-soft); color: var(--accent-ink); }
.nav-admin { position: relative; }
.nav-admin summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.nav-admin summary::-webkit-details-marker { display: none; }
.nav-admin summary .ic { width: 14px; height: 14px; color: var(--muted); transition: transform .2s var(--ease); }
.nav-admin[open] summary .ic { transform: rotate(180deg); }
.nav-admin.active summary .ic { color: var(--accent-ink); }
.nav-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; min-width: 220px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-pop); animation: pop .18s var(--ease); }
.nav-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text-2); white-space: nowrap; }
.nav-menu a:hover { background: var(--accent-soft); color: var(--accent-ink); text-decoration: none; }
.nav-menu a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.nav-menu .ic { color: var(--muted); }
.nav-menu a:hover .ic, .nav-menu a[aria-current="page"] .ic { color: var(--accent-ink); }
.nav-user { display: flex; align-items: center; gap: var(--s3); margin-left: auto; }
.nav-user form { margin: 0; display: block; }
.who { color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; }

/* ---- Layout ---- */
.container { max-width: 1280px; margin: 0 auto; padding: var(--s6) var(--s6) var(--s7); }
.container-wide { max-width: 1600px; }
.page-head { margin-bottom: var(--s5); }
.page-head .lead { max-width: 820px; }
.eyebrow { margin: 0 0 6px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 0 0 var(--s4); color: var(--muted); font-size: var(--fs-md); }
.page-head .lead:last-child { margin-bottom: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 var(--s4); font-size: var(--fs-sm); font-weight: 500; }
.back a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.back a:hover { color: var(--accent-ink); text-decoration: none; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
.card-body, .panel { padding: var(--s5); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); margin: 0 0 var(--s5); }
.panel > h2:first-child, .panel > h3:first-child, .panel > .panel-head:first-child h2 { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s3); }
.panel-head h2 { margin: 0; }
.panel .table-wrap { box-shadow: none; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--s5); margin-bottom: var(--s5); }
.grid-2 > .panel { margin-bottom: 0; }
.section-title { display: flex; align-items: center; gap: var(--s2); }
.count { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: var(--pill); background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-size: var(--fs-xs); font-weight: 600; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; vertical-align: 2px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px var(--s5); margin: 0; }
.facts dt { color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }
.facts dd { margin: 0; color: var(--text); }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list > li { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: 10px 0; margin: 0; border-bottom: 1px solid var(--border); }
.plain-list > li:first-child { padding-top: 0; }
.plain-list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.chips li { margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--pill); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: var(--fs-sm); }
.empty-state { text-align: center; color: var(--muted); padding: var(--s6) var(--s4); }
.empty-state .ic { width: 28px; height: 28px; color: var(--faint); display: block; margin: 0 auto var(--s2); }
.empty-state p { margin: 0; }

/* ---- Forms & buttons ---- */
form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: 0 0 var(--s4); }
form.stack { display: block; }
td form, li form { margin: 0; }
input[type=text], input[type=search], input[type=number], input[type=date], input[type=email], input[type=file], select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 6px 10px; min-height: 36px; transition: border-color .15s, box-shadow .15s; }
select { padding-right: 30px; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
input[type=file] { padding: 5px 8px; background: var(--surface-2); cursor: pointer; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; margin-right: 10px; padding: 5px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); cursor: pointer; }
textarea { min-width: 260px; line-height: 1.45; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: #b9bfd2; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
input[type=checkbox]:focus, input[type=radio]:focus { box-shadow: none; }
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
label.check { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 500; white-space: nowrap; cursor: pointer; }
label.check.wrap { white-space: normal; align-items: flex-start; }
label.check.wrap input { margin-top: 3px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
.field.grow { flex: 1 1 220px; }
.field-label { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.form-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s3); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s4); }
.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; line-height: 1.2; min-height: 40px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s, background .15s, border-color .15s; white-space: nowrap; text-decoration: none; }
.btn:hover, button:hover { text-decoration: none; background: var(--surface-2); color: var(--text); }
.btn-primary { background: var(--accent-grad); border-color: transparent; color: #fff; box-shadow: 0 1px 2px rgba(18, 21, 40, .1), 0 6px 16px -6px rgba(91, 75, 240, .6); }
.btn-primary:hover { background: var(--accent-grad); color: #fff; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(18, 21, 40, .1), 0 10px 22px -8px rgba(91, 75, 240, .7); }
.btn-secondary { box-shadow: var(--shadow-1); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(18, 21, 40, .05); }
.btn-danger { background: var(--surface); border-color: var(--danger-border); color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); border-color: #eea59c; }
.btn-danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; box-shadow: 0 6px 16px -8px rgba(180, 35, 24, .7); }
.btn-danger-solid:hover { background: #9b1d14; border-color: #9b1d14; color: #fff; }
.btn-sm { min-height: 32px; padding: 6px 12px; font-size: var(--fs-sm); border-radius: var(--radius-sm); }
.btn-link { background: none; border: 0; min-height: 0; padding: 4px 6px; color: var(--muted); font-weight: 500; font-size: var(--fs-sm); box-shadow: none; }
.btn-link:hover { background: none; color: var(--accent-ink); text-decoration: none; }
.btn[aria-disabled="true"], button:disabled { color: #9aa0b6; background: var(--surface-2); border-color: var(--border); cursor: not-allowed; box-shadow: none; transform: none; }
.btn-primary:disabled { background: #c9c3fb; color: #fff; border-color: transparent; }

/* ---- Callouts (info / success / warning / error) ---- */
.callout, .error, .notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: var(--radius); border: 1px solid; font-weight: 500; margin: 0 0 var(--s4); }
.callout > .ic, .error > .ic, .notice > .ic { margin-top: 2px; }
.notice, .callout.info { background: var(--info-soft); border-color: var(--info-border); color: var(--info); }
.notice.success, .callout.success { background: var(--success-soft); border-color: var(--success-border); color: var(--success); }
.callout.warning { background: var(--warning-soft); border-color: var(--warning-border); color: var(--warning); }
.error, .callout.error { background: var(--danger-soft); border-color: var(--danger-border); color: var(--danger); }
.callout a, .error a, .notice a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.error[hidden] { display: none; }

/* ---- Badges, avatars, owner dots ---- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--pill); font-size: var(--fs-xs); font-weight: 600; line-height: 1.4; white-space: nowrap; background: var(--surface-2); color: var(--text-2); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
/* All text/background pairs meet WCAG AA (4.5:1) at 12px. */
.strength-strong { background: #dcfce7; color: #166534; box-shadow: inset 0 0 0 1px #bbf0cf; }
.strength-medium { background: #fef3c7; color: #8a4b08; box-shadow: inset 0 0 0 1px #fbe3a1; }
.strength-weak { background: #f1f2f6; color: #4b5168; box-shadow: inset 0 0 0 1px #e2e4ec; }
.source-linkedin { background: #e5efff; color: #1d4ed8; }
.source-email { background: #f1ebff; color: #6d28d9; }
.source-both { background: var(--teal-soft); color: #0b6b62; }
.outcome-ok { background: #dcfce7; color: #166534; box-shadow: inset 0 0 0 1px #bbf0cf; }
.outcome-denied { background: #fef3c7; color: #8a4b08; box-shadow: inset 0 0 0 1px #fbe3a1; }
.outcome-error { background: #fde4e1; color: #b42318; box-shadow: inset 0 0 0 1px #f6c6c0; }
.status-active { background: #dcfce7; color: #166534; }
.status-inactive { background: #f1f2f6; color: #4b5168; }
.status-review { background: #fef3c7; color: #8a4b08; }
.status-reserved { background: #f1f2f6; color: #4b5168; }
.role-admin { background: var(--accent-soft); color: var(--accent-ink); }
.role-bd { background: var(--teal-soft); color: #0b6b62; }
.tag-former { display: block; color: var(--muted); font-style: italic; font-weight: 400; font-size: var(--fs-xs); line-height: 1.2; }
.tag-inline { display: inline; margin-left: 4px; }
.avatar { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; font-size: 11px; font-weight: 700; color: #fff; letter-spacing: .02em; font-style: normal; background: var(--accent-grad); }
/* Avatar gradients: both ends >= 4.5:1 against the white initials (a test checks). */
.avatar.o1 { background: linear-gradient(135deg, #6d5ef5, #7c4dd6); }
.avatar.o2 { background: linear-gradient(135deg, #0d7f8f, #0f766e); }
.avatar.o3 { background: linear-gradient(135deg, #c2410c, #a8380a); }
.avatar.o4 { background: linear-gradient(135deg, #c2255c, #b01f52); }
.avatar.o5 { background: linear-gradient(135deg, #1c6dd0, #1a64c2); }
.avatar.o6 { background: linear-gradient(135deg, #a16207, #854d0e); }
.avatar.me { background: var(--accent-grad); width: 32px; height: 32px; }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.owner { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; white-space: nowrap; }
.owner-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* Owner columns in the relationship tables: one line; very long names are cut (full name in the title). */
td.owner-cell { white-space: nowrap; }
td.owner-cell .owner { max-width: 240px; }
td.owner-cell .person-cell { min-width: 0; }
.odot { --c: var(--o1); width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.o1 { --c: var(--o1); } .o2 { --c: var(--o2); } .o3 { --c: var(--o3); }
.o4 { --c: var(--o4); } .o5 { --c: var(--o5); } .o6 { --c: var(--o6); }
.o1 .odot, .odot.o1 { --c: var(--o1); } .o2 .odot, .odot.o2 { --c: var(--o2); } .o3 .odot, .odot.o3 { --c: var(--o3); }
.o4 .odot, .odot.o4 { --c: var(--o4); } .o5 .odot, .odot.o5 { --c: var(--o5); } .o6 .odot, .odot.o6 { --c: var(--o6); }

/* ---- Tables ---- */
.table-wrap { overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); margin: 0 0 var(--s4); }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { padding: 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
th { background: var(--surface); color: var(--muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding-top: 14px; padding-bottom: 10px; white-space: nowrap; }
thead tr:last-child th { border-bottom-color: var(--border-strong); }
th a { color: inherit; display: inline-flex; align-items: center; gap: 4px; }
th a:hover { color: var(--text); text-decoration: none; }
tbody td { color: var(--text-2); transition: background .15s; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f7f6ff; }
tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
td a { font-weight: 500; }
td.strong-cell, td.strong-cell a { color: var(--text); font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
th.num a { flex-direction: row; }
td.date, td.when { font-variant-numeric: tabular-nums; white-space: nowrap; }
.end { text-align: right; }
.sort-ic { width: 13px; height: 13px; display: none; }
th:hover .sort-ic { display: inline; opacity: .6; }
th.sorted { color: var(--accent-ink); }
th.sorted .sort-ic { display: inline; opacity: 1; }
td.actions { white-space: nowrap; }
td.actions form, td .inline-forms form { display: inline-flex; margin: 0 4px 0 0; }
.inline-forms { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.inline-forms form { margin: 0; }
tr.empty td, td.empty { text-align: center; color: var(--muted); padding: var(--s6) var(--s4); white-space: normal; }
tr.empty:hover td { background: transparent; box-shadow: none; }
.person-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person-cell a { color: var(--text); font-weight: 600; }
.person-cell a:hover { color: var(--accent-ink); }

/* ---- Search screen ---- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); padding: var(--s5); margin: 0 0 var(--s5); }
.search-field { position: relative; flex: 1 1 420px; }
.search-field input { width: 100%; min-height: 48px; padding: 0 44px; font-size: var(--fs-md); border-radius: var(--radius); background: var(--surface-2); }
.search-field input:focus { background: var(--surface); }
.search-field input::-webkit-search-cancel-button { margin-right: 22px; }
.field-ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 500 11px/1 var(--font); color: var(--muted); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px; padding: 4px 7px; background: var(--surface); pointer-events: none; }
.toolbar-actions { display: flex; gap: var(--s2); }
.help, .toolbar > p.muted { flex-basis: 100%; margin: calc(var(--s2) * -1) 0 0; color: var(--muted); font-size: var(--fs-sm); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; margin: 0 0 var(--s3); }
.results-bar p { margin: 0; color: var(--muted); }
.results-bar strong { color: var(--text); font-weight: 600; }
.results-bar .actions { display: flex; gap: var(--s2); }
/* The export link is styled as a secondary button (plain <a href> in the markup). */
.results-bar .actions a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 600; line-height: 1.2; box-shadow: var(--shadow-1); white-space: nowrap; transition: background .15s; }
.results-bar .actions a:hover { background: var(--surface-2); text-decoration: none; }
.results { margin: 0; }
.results:has(details[open]) { min-height: 22rem; }
/* Fixed layout: all ten columns fit from 1180px of table width; narrower, the wrapper scrolls. */
.results table { table-layout: fixed; min-width: 1180px; }
.results th, .results td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.results thead th { position: sticky; top: 0; z-index: 2; }
.results col.c-name { width: 15%; } .results col.c-title { width: 11.5%; } .results col.c-company { width: 9.5%; } .results col.c-email { width: 13%; }
.results col.c-owner { width: 10%; } .results col.c-source { width: 7.5%; } .results col.c-sent { width: 5.5%; } .results col.c-received { width: 6.5%; }
.results col.c-last { width: 12.5%; } .results col.c-strength { width: 9%; }
.results td.name { color: var(--text); }
.name-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.name-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.results td.name a { color: var(--text); font-weight: 600; }
.results td.name a:hover { color: var(--accent-ink); }
a.co { color: var(--text-2); font-weight: 500; }
a.co:hover { color: var(--accent-ink); }
.results td.email { color: var(--muted); font-size: var(--fs-sm); }
.results td.date { font-variant-numeric: tabular-nums; }
tr.former td.name a { color: var(--text-2); }

/* Filter row: every control starts 12px in, like the header text and the row content. */
.results tr.filters td { background: var(--surface-2); padding: 8px 0 8px 12px; overflow: visible; border-bottom: 1px solid var(--border-strong); }
.results tr.filters td:last-child { padding-right: 12px; }
.results tr.filters:hover td { background: var(--surface-2); box-shadow: none; }
.results tr.filters input[type=text], .results tr.filters input[type=number] { width: 100%; min-width: 0; min-height: 32px; padding: 4px 8px; font-size: var(--fs-sm); border-color: var(--border); }
/* Strength is the last column: heading, badges and filter end together 12px from the table border. */
.results th.end, .results td.end { text-align: right; }
.results th.end a { justify-content: flex-end; }

/* ---- Multi-select (<details>, no JavaScript) ---- */
details.multi { position: relative; min-width: 0; text-align: left; }
details.multi summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 32px; padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size: var(--fs-sm); color: var(--text-2); text-transform: none; letter-spacing: 0; font-weight: 500; white-space: nowrap; transition: border-color .15s, box-shadow .15s; }
details.multi summary:hover { border-color: #b9bfd2; }
details.multi summary::-webkit-details-marker { display: none; }
details.multi summary .ic { width: 14px; height: 14px; color: var(--muted); transition: transform .2s var(--ease); }
details.multi summary .ms-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
details.multi[open] summary { border-color: var(--accent); box-shadow: var(--ring); }
details.multi[open] summary .ic { transform: rotate(180deg); }
details.multi.set summary { color: var(--accent-ink); border-color: #c9c2fb; background: #faf9ff; }
.multi-panel { position: absolute; z-index: 10; left: 0; top: calc(100% + 8px); width: 250px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-pop); animation: pop .18s var(--ease); white-space: normal; }
details.multi.right .multi-panel { left: auto; right: 0; }
.mp-head { margin: 4px 8px 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mp-list { max-height: 260px; overflow-y: auto; }
.multi-panel .opt { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-sm); cursor: pointer; font-size: var(--fs); font-weight: 400; color: var(--text); white-space: nowrap; text-transform: none; letter-spacing: 0; }
.multi-panel .opt:hover { background: var(--accent-soft); }
.opt-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.opt-count { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; background: var(--surface-2); border: 1px solid var(--border); padding: 0 6px; border-radius: var(--pill); }
.mp-empty { margin: 0; padding: 6px 8px; color: var(--muted); font-size: var(--fs-sm); }
.mp-note { margin: 2px 8px 0; color: var(--muted); font-size: var(--fs-xs); }
.mp-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; padding: 8px 4px 2px; border-top: 1px solid var(--border); }
.mp-dates { display: grid; gap: 8px; padding: 4px 8px 6px; }
.mp-dates label { display: grid; gap: 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; }
.mp-dates input[type=date] { width: 100%; min-height: 34px; font-size: var(--fs-sm); }
/* The Last contact filter looks like two inputs ("From" / "To") and opens a date panel. */
details.multi.dates summary { padding: 0; border: 0; background: none; box-shadow: none; display: flex; gap: 4px; }
details.multi.dates summary .ms-box { flex: 1 1 0; min-width: 0; min-height: 32px; padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--faint); font-weight: 400; display: flex; align-items: center; overflow: hidden; text-overflow: ellipsis; transition: border-color .15s, box-shadow .15s; }
details.multi.dates summary .ms-box.has { color: var(--text-2); font-weight: 500; }
details.multi.dates summary:hover .ms-box { border-color: #b9bfd2; }
details.multi.dates[open] summary .ms-box { border-color: var(--accent); box-shadow: var(--ring); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---- Pager ---- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin-top: var(--s4); }
.pager.center { justify-content: center; }
.page-info { color: var(--muted); }
.page-info strong { color: var(--text); font-weight: 600; }

/* ---- Detail pages (company, person) ---- */
.detail-head { display: flex; align-items: center; gap: var(--s4); }
.detail-head .ent-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.detail-head .ent-mark .ic { width: 22px; height: 22px; }
.detail-head h1 { margin: 0 0 4px; }
.detail-head .lead { margin: 0; }
.people-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s3); }
.people-list > li { margin: 0; padding: var(--s4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.people-list h3 { margin: 0 0 6px; font-size: var(--fs); }
.people-list ul { margin: 0; padding: 0; list-style: none; color: var(--text-2); font-size: var(--fs-sm); }
.people-list ul li { margin: 2px 0; }
.owner-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }

/* ---- Admin pages ---- */
.admin-filters { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: flex-end; padding: var(--s4) var(--s5); margin: 0 0 var(--s5); }
.admin-filters input[type=text] { width: 190px; }
.admin-filters .field { min-width: 0; }
.admin-filters .spacer { flex: 1; }
.audit td { vertical-align: top; }
.audit .audit-when, .audit .audit-ip { white-space: nowrap; font-variant-numeric: tabular-nums; }
.audit .audit-who { word-break: break-word; }
.audit details { margin-top: 4px; }
.audit details summary { cursor: pointer; color: var(--muted); font-size: var(--fs-xs); font-weight: 500; }
.audit details summary:hover { color: var(--accent-ink); }
.audit pre { white-space: pre-wrap; word-break: break-word; margin: var(--s2) 0 0; padding: var(--s2) var(--s3); font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.sortable th.pick, .sortable td.pick { width: 48px; text-align: center; }
.sortable td.pick label { display: inline-flex; align-items: center; }
.merge-bar { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin: 0 0 var(--s5); }
.merge-bar .muted { font-size: var(--fs-sm); }
.leader-form { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(180px, 1.3fr) minmax(200px, 1.6fr) auto; gap: var(--s2); align-items: center; margin: 0; }
.leader-form textarea { min-width: 0; min-height: 36px; height: 38px; }
.leader-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s2); color: var(--muted); font-size: var(--fs-sm); }
.leader-meta form { margin: 0 0 0 auto; }
.leader-row td { padding-top: var(--s4); padding-bottom: var(--s4); }
.rule-list { list-style: none; padding: 0; margin: 0 0 var(--s4); display: flex; flex-wrap: wrap; gap: var(--s2); }
.rule-list li { margin: 0; }
.rule-list form { margin: 0; display: inline-flex; align-items: center; gap: 2px; padding: 2px 2px 2px 4px; border: 1px solid var(--border); border-radius: var(--pill); background: var(--surface-2); }
.rule-list code { border: 0; background: none; padding: 0 4px; }
.rule-list button { min-height: 24px; padding: 2px 6px; border-radius: var(--pill); border: 0; background: none; color: var(--muted); }
.rule-list button:hover { background: var(--danger-soft); color: var(--danger); }
.rule-list button .ic { width: 14px; height: 14px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 var(--s5); }
.toc li { margin: 0; }
.toc a { display: inline-block; padding: 5px 12px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; }
.toc a:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }
.suggestion h2 { margin: 0 0 4px; }
.suggestion .reason { color: var(--muted); font-size: var(--fs-sm); margin: 0 0 var(--s3); }
.suggestion .table-wrap { margin-bottom: var(--s3); }
.merge-summary h2 { margin-top: 0; }

/* ---- Graph ---- */
.graph-controls { align-items: flex-end; gap: var(--s3) var(--s4); }
.graph-controls .field { min-width: 150px; }
.graph-controls select, .graph-controls input[type=number], .graph-controls input[type=search] { width: 100%; }
.graph-controls details.multi summary { min-height: 36px; padding: 6px 10px; border-color: var(--border-strong); font-size: var(--fs); }
.graph-controls label.check { min-height: 36px; }
.graph-controls .help { margin-top: 0; }
.graph-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; margin: 0 0 var(--s3); }
.graph-bar p { margin: 0; color: var(--muted); }
.graph-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.graph-wrap { position: relative; margin-bottom: var(--s5); }
.graph-canvas { height: 70vh; min-height: 520px; padding: 0; overflow: hidden; background: var(--surface); }
.graph-tip { position: absolute; z-index: 10; max-width: 360px; padding: 8px 10px; background: var(--text); color: #fff; border-radius: var(--radius-sm); font-size: var(--fs-sm); line-height: 1.4; pointer-events: none; box-shadow: var(--shadow-pop); }
.graph-tip[hidden], #graphError[hidden], .graph-canvas[hidden] { display: none; }
.graph-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px var(--s4); margin: var(--s3) 0 0; padding: 0; font-size: var(--fs-sm); color: var(--text-2); }
.graph-legend li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.graph-legend .swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: var(--c, var(--company)); }
.graph-legend .swatch.round { border-radius: 50%; }
.graph-legend .swatch.small { width: 11px; height: 11px; }
.graph-legend .swatch.hub { --c: var(--hub); box-shadow: 0 0 0 2px var(--accent); }
.graph-legend .swatch.company { --c: var(--company); }
.graph-legend .swatch.ring { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--hub); margin: 0 3px; }
.graph-legend .swatch.match { box-shadow: 0 0 0 3px #d92d20; margin: 0 3px; }
.graph-legend .swatch.line { width: 28px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #cbd2e1, var(--text-2)); }
.graph-empty { text-align: center; color: var(--muted); padding: var(--s6) var(--s4); }

/* ---- Status pages (denied, not found, bad request, sign-in error) ---- */
.card.status { max-width: 520px; margin: var(--s7) auto; padding: var(--s6); text-align: center; }
.card.status .status-ic { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto var(--s4); border-radius: 16px; background: var(--accent-soft); color: var(--accent-ink); }
.card.status .status-ic.danger { background: var(--danger-soft); color: var(--danger); }
.card.status .status-ic .ic { width: 24px; height: 24px; }
.card.status h1 { font-size: 24px; margin-bottom: var(--s2); }
.card.status p { color: var(--text-2); }
.card.status p:last-child { margin-bottom: 0; }
.card.status .form-actions { justify-content: center; }
.card.status form { justify-content: center; margin: var(--s5) 0 0; }

/* ---- Upload ---- */
.upload-card { max-width: 720px; }
.upload-card form { gap: var(--s3); margin: 0; }
.upload-card input[type=file] { flex: 1 1 280px; }

/* ---- Responsive ---- */
@media (max-width: 1240px) {
  .who { display: none; }
  .topbar-inner, .container { padding-left: var(--s5); padding-right: var(--s5); }
  .topbar-inner { gap: var(--s4); }
}
/* Narrower screens: the fixed-width results headings tighten so "Received" and "Last contact" fit. */
@media (max-width: 1400px) {
  .results thead th { font-size: 11px; letter-spacing: .02em; }
  .results col.c-sent { width: 5%; } .results col.c-received { width: 7%; }
}
@media (max-width: 900px) {
  .leader-form { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn-primary:hover { transform: none; }
}

/* Pager arrows: drawn by CSS (a mask of the Lucide chevrons), so the pager markup stays plain text.
   The link before .page-info is "Previous", the one after it is "Next". */
.pager > a:not(.btn) { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 600; line-height: 1.2; }
.pager > a:not(.btn):hover { background: var(--surface-2); text-decoration: none; }
.pager > :is(a, .btn):has(+ .page-info)::before, .pager > .page-info + :is(a, .btn)::after {
  content: ""; width: 16px; height: 16px; flex: none; background: currentColor;
  -webkit-mask: var(--chev) center / 16px 16px no-repeat; mask: var(--chev) center / 16px 16px no-repeat; }
.pager > :is(a, .btn):has(+ .page-info) { --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E"); }
.pager > .page-info + :is(a, .btn) { --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E"); }

/* Filter bars: controls share one height; long option lists do not stretch the select. */
.admin-filters input, .admin-filters select { height: 38px; min-height: 38px; }
.admin-filters select { max-width: 240px; }
.audit .audit-target { white-space: nowrap; }
.table-wrap + .grid-2 { margin-top: var(--s5); }
.results tr.filters input[type=number] { padding: 4px 6px; -moz-appearance: textfield; appearance: textfield; }
.results tr.filters input[type=number]::-webkit-inner-spin-button, .results tr.filters input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
details.multi.dates summary .ms-box { display: block; white-space: nowrap; line-height: 22px; }
details.multi.dates summary .ms-box.has { padding: 4px 6px; font-size: var(--fs-xs); }
