/* Hallmark · design-system: NRAC (institutional editorial) · app chrome
 * Tokens lifted verbatim from the NRAC design system bundle (tokens/{colors,typography,spacing}.css).
 * No emoji, no pure white, hairlines before shadows, quiet motion, sentence case.
 */

/* ============================================================
   Tokens
   ============================================================ */
:root {
  /* Surfaces (warm paper, never #fff) */
  --paper:        oklch(0.974 0.008 85);
  --paper-2:      oklch(0.945 0.012 84);
  --card:         oklch(0.992 0.006 85);

  /* Ink */
  --ink:          oklch(0.255 0.014 35);
  --ink-soft:     oklch(0.43 0.014 35);
  --ink-ondk:     oklch(0.86 0.02 85);

  /* Brand */
  --seal-red:       oklch(0.505 0.17 27);
  --seal-red-deep:  oklch(0.41 0.155 28);
  --charcoal:       oklch(0.205 0.013 33);
  --charcoal-2:     oklch(0.20 0.03 258);
  --brass:        oklch(0.63 0.082 74);
  --brass-deep:   oklch(0.50 0.075 70);

  /* Hairlines */
  --line:         oklch(0.86 0.014 80);
  --line-strong:  oklch(0.78 0.018 80);

  /* Semantic */
  --alert:        oklch(0.52 0.16 25);
  --green:        oklch(0.72 0.14 150);

  /* Recall-class severity */
  --class-1-bg:   oklch(0.93 0.05 25);
  --class-1-fg:   oklch(0.45 0.17 25);
  --class-1-line: oklch(0.8 0.09 25);
  --class-2-bg:   oklch(0.94 0.04 75);
  --class-2-fg:   oklch(0.5 0.1 65);

  /* Aliases (prefer these) */
  --bg:            var(--paper);
  --bg-sunken:     var(--paper-2);
  --surface-card:  var(--card);
  --text-body:     var(--ink);
  --text-muted:    var(--ink-soft);
  --text-on-dark:  var(--ink-ondk);
  --brand:         var(--seal-red);
  --brand-hover:   var(--seal-red-deep);
  --accent:        var(--brass);
  --accent-deep:   var(--brass-deep);
  --border:        var(--line);
  --border-strong: var(--line-strong);
  --danger:        var(--alert);
  --success:       var(--green);
  --surface-dark:  var(--charcoal);

  /* Type */
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans:  "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:  ui-monospace, monospace;
  --text-h1:       clamp(26px, 3.4vw, 34px);
  --text-h2:       clamp(22px, 2.8vw, 26px);
  --text-h3:       19px;
  --text-lede:     17px;
  --text-base:     15px;
  --text-ui:       14.5px;
  --text-sm:       13px;
  --text-xs:       11.5px;
  --text-eyebrow:  12px;
  --lh-tight:   1.12;
  --lh-body:    1.6;
  --ls-heading: -0.01em;
  --ls-eyebrow:  0.18em;
  --ls-label:    0.06em;

  /* Space */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px;
  --wrap:        1180px;
  --wrap-pad:    32px;
  --wrap-pad-sm: 20px;

  /* Shape */
  --radius-xs:   3px;
  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   8px;
  --radius-pill: 30px;
  --radius-full: 50%;

  /* Elevation */
  --shadow-card:  0 26px 50px -30px oklch(0.505 0.17 27 / 0.5);
  --shadow-modal: 0 50px 100px -30px oklch(0 0 0 / 0.55);
  --shadow-focus: 0 0 0 3px oklch(0.505 0.17 27 / 0.15);
  --shadow-menu:  0 18px 40px -24px oklch(0.205 0.013 33 / 0.55);

  /* Motion */
  --ease-out:  cubic-bezier(0.25, 0, 0, 1);
  --dur-fast:  0.15s;
  --dur-base:  0.2s;
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
button { font: inherit; color: inherit; }
strong { font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-xs);
}

::selection { background: oklch(0.505 0.17 27 / 0.16); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--wrap-pad); padding-right: var(--wrap-pad); }
@media (max-width: 640px) {
  .wrap { padding-left: var(--wrap-pad-sm); padding-right: var(--wrap-pad-sm); }
}

.icon { width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.125em; }

/* ============================================================
   Type
   ============================================================ */
.serif { font-family: var(--font-serif); font-weight: 500; letter-spacing: var(--ls-heading); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--accent-deep);
}
.eyebrow--ondark { color: var(--accent); }

.page-title { font-family: var(--font-serif); font-weight: 500; font-size: var(--text-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-heading); }

.section-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-3);
}

.muted { color: var(--text-muted); }
.small { font-size: var(--text-sm); }
.num { font-variant-numeric: tabular-nums; }

/* ============================================================
   Masthead (shared app chrome)
   ============================================================ */
.masthead { background: var(--surface-dark); color: var(--text-on-dark); }
.masthead__bar {
  display: flex; align-items: center; gap: var(--space-4);
  padding-top: var(--space-4); padding-bottom: var(--space-4);
  flex-wrap: wrap;
}
.masthead__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; margin-right: auto; }
.masthead__seal { width: 38px; height: 38px; border-radius: var(--radius-full); background: var(--card); padding: 3px; display: block; }
.masthead__name { font-family: var(--font-serif); font-weight: 600; font-size: 16px; color: #FBFAF6; line-height: 1.2; }
.masthead__tag { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); }
.masthead__nav { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.masthead__link {
  display: inline-flex; align-items: center; gap: 7px;
  appearance: none; background: transparent; cursor: pointer;
  font-family: inherit; line-height: inherit;
  color: var(--text-on-dark); text-decoration: none;
  font-size: var(--text-ui); font-weight: 500;
  padding: 7px 12px; border-radius: var(--radius-xs);
  border: 0; border-bottom: 2px solid transparent;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.masthead__link:hover { background: oklch(1 0 0 / 0.07); color: #fffdf7; }
.masthead__link[aria-current="page"] { color: #FBFAF6; border-bottom-color: var(--accent); border-radius: var(--radius-xs) var(--radius-xs) 0 0; }
.masthead__sub { padding-bottom: var(--space-5); }
.omnibox {
  display: flex; align-items: center; gap: 8px;
  background: oklch(1 0 0 / 0.08); border: 1px solid oklch(1 0 0 / 0.16);
  border-radius: var(--radius-pill); padding: 6px 14px;
  color: var(--text-on-dark); min-width: 200px; max-width: 360px; flex: 1;
}
.omnibox:focus-within { border-color: var(--accent); background: oklch(1 0 0 / 0.12); }
.omnibox input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  color: #fffdf7; font: inherit; font-size: var(--text-sm);
}
.omnibox input::placeholder { color: var(--text-on-dark); opacity: 0.8; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: var(--text-ui); font-weight: 600; font-family: var(--font-sans);
  padding: 10px 20px; border-radius: var(--radius-xs);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.btn:disabled { opacity: 0.55; cursor: default; }
.btn:active:not(:disabled) { transform: translateY(0); }

.btn--primary { background: var(--brand); color: #FBFAF6; }
.btn--primary:hover:not(:disabled) { background: var(--brand-hover); transform: translateY(-1px); box-shadow: var(--shadow-card); }

.btn--quiet { background: transparent; color: var(--text-body); border-color: var(--border-strong); }
.btn--quiet:hover:not(:disabled) { border-color: var(--text-muted); background: var(--surface-card); }

.btn--ondark { background: transparent; color: var(--text-on-dark); border-color: oklch(1 0 0 / 0.25); }
.btn--ondark:hover:not(:disabled) { border-color: var(--accent); color: #fffdf7; }

.btn--sm { padding: 6px 12px; font-size: var(--text-sm); }

/* ============================================================
   Forms
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-size: var(--text-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: var(--ls-label); color: var(--text-muted);
}
.input {
  font-family: var(--font-sans); font-size: var(--text-ui); color: var(--text-body);
  background: var(--surface-card);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 9px 12px; width: 100%;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.input::placeholder { color: oklch(0.62 0.012 60); }
.input:hover { border-color: var(--text-muted); }
.input:focus-visible { outline: none; border-color: var(--brand); box-shadow: var(--shadow-focus); }

/* Native <select>: match the .input look and replace the UA arrow with an
   on-brand chevron. Bare selects (worklist, watchlist, admin) get the full
   treatment; `.input` is included so class-styled selects (events/search) also
   drop the native chrome and pick up the chevron. */
select {
  font-family: var(--font-sans); font-size: var(--text-ui); color: var(--text-body);
  background-color: var(--surface-card);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
select, select.input {
  appearance: none; -webkit-appearance: none;
  padding: 9px 32px 9px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f635a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 11px;
}
select:hover { border-color: var(--text-muted); }
select:focus-visible { outline: none; border-color: var(--brand); box-shadow: var(--shadow-focus); }

.form-error { font-size: var(--text-sm); color: var(--danger); min-height: 20px; }

/* Hero search bar: the ring lives on the bar so the inner input can stay chromeless */
.searchbar { display: flex; background: var(--surface-card); border-radius: var(--radius-md); overflow: hidden; max-width: 760px; }
.searchbar:focus-within { box-shadow: var(--shadow-focus), 0 0 0 2px var(--brand); }
.searchbar input {
  flex: 1; min-width: 0; border: none; outline: none;
  padding: 13px 16px; font-family: inherit; font-size: var(--text-base);
  background: transparent; color: var(--text-body);
}
.searchbar input::placeholder { color: oklch(0.62 0.012 60); }

/* ============================================================
   Chips, badges, tags
   ============================================================ */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-xs); font-weight: 500; font-family: var(--font-sans);
  padding: 5px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: transparent; color: var(--text-muted);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.chip:hover { border-color: var(--text-muted); color: var(--text-body); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #FBFAF6; }

.badge-serious {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--class-1-bg); border: 1px solid var(--class-1-line); color: var(--class-1-fg);
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: var(--radius-xs); white-space: nowrap;
}

.badge-processing {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--class-2-bg); color: var(--class-2-fg); border: 1px solid var(--border);
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: var(--radius-xs); white-space: nowrap;
}

.tag {
  display: inline-flex; align-items: center;
  font-size: var(--text-xs); color: var(--text-muted);
  background: var(--bg-sunken); border: 1px solid var(--border);
  border-radius: var(--radius-xs); padding: 2px 8px;
  text-decoration: none;
}
a.tag:hover { color: var(--brand); border-color: var(--class-1-line); }

.provenance {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); background: var(--bg-sunken);
  border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 3px 8px;
}

.chip__count { opacity: 0.65; font-variant-numeric: tabular-nums; }
.chip--more { border-style: dashed; }

/* Filter flyout */
.flyout {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 20;
  background: var(--surface-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); padding: var(--space-4);
  box-shadow: var(--shadow-menu);
  width: min(440px, calc(100vw - 2 * var(--wrap-pad-sm)));
}
.flyout__group { margin-bottom: var(--space-4); }
.flyout__group:last-of-type { margin-bottom: 0; }
.flyout__label {
  font-size: var(--text-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: var(--ls-label); color: var(--text-muted); margin-bottom: var(--space-2);
}
.flyout__chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* Active-filter summary chips in the bar */
.active-filter { background: var(--bg-sunken); border-color: var(--border-strong); color: var(--text-body); }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.card--link {
  display: block; text-decoration: none; color: inherit;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.card--link:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: 0 18px 36px -28px oklch(0.505 0.17 27 / 0.45); }

.alert-card { padding: 18px 20px; margin-bottom: var(--space-3); }
.alert-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-2); }
.alert-card__drug { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); font-weight: 600; }
.alert-card__title { font-family: var(--font-serif); font-size: 17px; font-weight: 500; line-height: 1.3; margin-bottom: var(--space-2); }
.alert-card__summary { font-size: var(--text-sm); color: var(--text-muted); }
.alert-card__tags { margin-top: var(--space-3); display: flex; gap: 6px; flex-wrap: wrap; }

/* Recall worklist — severity-ordered ledger (Class I first). Hairline rows,
   seal-red / brass severity accent on the left edge; one surface, no nested cards. */
.worklist { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-card); overflow: hidden; }
.wl-row { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; border-top: 1px solid var(--border); text-decoration: none; color: inherit; transition: background var(--dur-fast) var(--ease-out); }
.worklist .wl-row:first-child { border-top: none; }
.wl-row:hover { background: var(--bg-sunken); }
.wl-accent { background: transparent; }
.wl-row--c1 .wl-accent { background: var(--brand); }
.wl-row--c2 .wl-accent { background: var(--class-2-fg); }
.wl-body { padding: 14px 18px; min-width: 0; }
.wl-head { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; flex-wrap: wrap; }
.wl-firm { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); font-weight: 600; }
.wl-title { font-family: var(--font-serif); font-size: 17px; font-weight: 500; line-height: 1.3; }
.wl-row:hover .wl-title { color: var(--brand-hover); }
.wl-sub { font-size: var(--text-sm); color: var(--text-muted); margin-top: 3px; }
.wl-lots { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
/* Some recalls store the whole lot list as one blob — cap each tag so it can't balloon. */
.wl-lots .tag { display: inline-block; max-width: min(100%, 44ch); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-meta { padding: 14px 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; white-space: nowrap; border-left: 1px solid var(--border); }
.wl-status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); color: var(--text-muted); }
.wl-status__dot { width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--border-strong); }
.wl-status__dot--ongoing { background: var(--brand); }
.wl-status__dot--completed { background: var(--success); }
@media (max-width: 640px) {
  .wl-row { grid-template-columns: 4px minmax(0, 1fr); }
  .wl-meta { grid-column: 2; border-left: none; border-top: 1px solid var(--border); align-items: flex-start; text-align: left; flex-direction: row; gap: 14px; }
}

.callout {
  border-left: 3px solid var(--accent);
  background: var(--bg-sunken);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-size: var(--text-sm); line-height: 1.65; color: var(--text-muted);
}

.narrative {
  font-size: 13.5px; line-height: 1.75; color: var(--text-muted); font-style: italic;
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--border-strong);
  background: var(--bg-sunken);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ============================================================
   Stat cells (ledger grid)
   ============================================================ */
.stat-grid {
  display: grid; grid-template-columns: repeat(var(--stat-cols, 4), minmax(0, 1fr));
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface-card); overflow: hidden;
}
.stat-cell__value--serious { color: var(--brand); }
.stat-cell { padding: var(--space-4) var(--space-5); border-left: 1px solid var(--border); }
.stat-cell:first-child { border-left: none; }
.stat-cell__label { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 4px; }
.stat-cell__value { font-family: var(--font-serif); font-size: 30px; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-cell__hint { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
@media (max-width: 768px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(odd) { border-left: none; }
  .stat-cell:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ============================================================
   Trend bars (pure CSS chart)
   ============================================================ */
.trend { display: flex; align-items: flex-end; gap: 6px; height: 96px; }
.trend__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-width: 0; }
.trend__bar { background: var(--line-strong); border-radius: 2px 2px 0 0; min-height: 2px; }
.trend__bar--serious { background: var(--brand); }
.trend__label { font-size: 10px; color: var(--text-muted); text-align: center; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   Data table
   ============================================================ */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-card); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; padding: 9px 12px;
  font-size: 11px; text-transform: uppercase; letter-spacing: var(--ls-label);
  color: var(--text-muted); border-bottom: 1px solid var(--border-strong);
  white-space: nowrap; background: var(--surface-card);
}
.data-table th button {
  background: none; border: none; cursor: pointer; color: inherit;
  font: inherit; text-transform: inherit; letter-spacing: inherit;
  display: inline-flex; align-items: center; gap: 4px; padding: 0;
}
.data-table th button:hover { color: var(--text-body); }
.data-table td { padding: 9px 12px; font-size: var(--text-sm); border-bottom: 1px solid var(--border); vertical-align: top; font-variant-numeric: tabular-nums; }
.data-table tbody tr { transition: background var(--dur-fast) var(--ease-out); }
.data-table tbody tr:hover { background: var(--bg-sunken); }
/* Selected row (e.g. the search result open in the slide-over): a persistent
   seal-red left bar so it stays distinguishable from the hover background. */
.data-table tbody tr[aria-selected="true"] { background: var(--bg-sunken); box-shadow: inset 3px 0 0 var(--brand); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .row-link { color: inherit; text-decoration: none; display: block; margin: -9px -12px; padding: 9px 12px; }

/* ============================================================
   Menus / popovers
   ============================================================ */
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 10;
  background: var(--surface-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); padding: var(--space-2);
  box-shadow: var(--shadow-menu); min-width: 200px;
}
.menu label {
  display: flex; gap: 8px; align-items: center;
  padding: 5px 8px; font-size: var(--text-sm); border-radius: var(--radius-xs); cursor: pointer;
}
.menu label:hover { background: var(--bg-sunken); }
.menu label.is-disabled { opacity: 0.5; cursor: default; }

/* Column-header filter button + searchable menu */
.col-filter {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit;
  padding: 0;
}
.col-filter:hover { color: var(--text-body); }
.col-filter--active { color: var(--brand); }
.col-filter__label { white-space: nowrap; }
.col-filter__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

.menu--filter { left: 0; right: auto; width: 260px; padding: var(--space-2); }
.menu__search { display: flex; align-items: center; gap: 6px; padding: 4px 8px; color: var(--text-muted); }
.menu__search input {
  flex: 1; min-width: 0; border: none; background: none; outline: none;
  font: inherit; font-size: var(--text-sm); color: var(--text-body);
  text-transform: none; letter-spacing: normal;
}
.menu__clear {
  display: flex; align-items: center; gap: 6px; width: 100%;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 5px 8px; font-size: var(--text-xs); color: var(--text-muted);
  text-transform: none; letter-spacing: normal; border-radius: var(--radius-xs);
}
.menu__clear:hover { background: var(--bg-sunken); color: var(--text-body); }
.menu__options { max-height: 280px; overflow-y: auto; margin-top: 4px; border-top: 1px solid var(--border); padding-top: 4px; }
.menu__option {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 6px 8px; font-size: var(--text-sm); color: var(--text-body);
  text-transform: none; letter-spacing: normal; border-radius: var(--radius-xs);
}
.menu__option:hover { background: var(--bg-sunken); }
.menu__option.is-selected { background: var(--brand); color: #FBFAF6; }
.menu__option.is-selected .chip__count { color: #FBFAF6; }
.menu__option-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu__check { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; flex: 0 0 auto; color: var(--brand); }
.menu__option.is-selected .menu__check { color: #FBFAF6; }
.menu__empty { padding: 8px; font-size: var(--text-sm); color: var(--text-muted); }

/* ============================================================
   Related list / meter
   ============================================================ */
.related { overflow: hidden; }
.related__head {
  background: var(--surface-dark); color: #FBFAF6;
  padding: 10px 16px; font-size: var(--text-eyebrow); font-weight: 600; letter-spacing: var(--ls-label);
}
.related__item { display: block; padding: var(--space-3) 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.related__item:last-child { border-bottom: none; }
.related__item:hover .related__title { color: var(--brand-hover); }
.related__title { font-size: var(--text-sm); color: var(--brand); font-weight: 500; line-height: 1.35; transition: color var(--dur-fast) var(--ease-out); }

.meter { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: 2px; }

/* ============================================================
   Pager, skeletons, empty states
   ============================================================ */
.pager { display: flex; gap: var(--space-3); align-items: center; justify-content: flex-end; margin-top: var(--space-3); }

.skel {
  background: linear-gradient(90deg, var(--bg-sunken) 25%, var(--border) 50%, var(--bg-sunken) 75%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes skel-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.empty {
  text-align: center; padding: var(--space-12) var(--space-6);
  border: 1px dashed var(--border-strong); border-radius: var(--radius-md);
  color: var(--text-muted); font-size: var(--text-ui);
}
.empty .serif { font-size: var(--text-h3); color: var(--text-body); display: block; margin-bottom: var(--space-2); }

/* ============================================================
   Login
   ============================================================ */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: var(--space-6); }
.login-card { width: 400px; max-width: 100%; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-10) var(--space-8); }
.login-card__seal { width: 72px; height: 72px; display: block; margin: 0 auto var(--space-4); }
.login-card__name { font-family: var(--font-serif); font-size: 21px; font-weight: 600; color: var(--brand); text-align: center; }
.login-card__tag { font-size: var(--text-xs); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--accent-deep); font-weight: 600; text-align: center; margin-top: 4px; margin-bottom: var(--space-8); }
.login-card__foot { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--border); font-size: var(--text-xs); color: var(--text-muted); text-align: center; line-height: 1.7; }

/* ============================================================
   Layout helpers
   ============================================================ */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-8); align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }

.filter-bar {
  background: var(--surface-card); border-bottom: 1px solid var(--border);
  padding-top: var(--space-3); padding-bottom: var(--space-3);
  display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap;
}

.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
@media (max-width: 640px) { .kv-grid { grid-template-columns: minmax(0, 1fr); } }
.kv { background: var(--bg-sunken); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; }
.kv--wide { grid-column: 1 / -1; }
.kv__label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.kv__value { font-size: var(--text-sm); font-weight: 500; }

.meta-row { display: flex; gap: var(--space-5); font-size: var(--text-sm); color: var(--text-muted); flex-wrap: wrap; align-items: center; }
.meta-row > span { display: inline-flex; align-items: center; gap: 6px; }
.meta-row .icon { color: var(--accent-deep); }

.live-dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--success); display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: live-pulse 2.4s var(--ease-out) infinite; }
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.72 0.14 150 / 0.45); }
  50% { box-shadow: 0 0 0 5px oklch(0.72 0.14 150 / 0); }
}

/* ============================================================
   Recall detail enrichment (captured announcement, contact, provenance)
   ============================================================ */
.snapshot { border: 1px solid var(--class-1-line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface-card); }
.snapshot__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; background: oklch(0.93 0.05 25 / 0.4); border-bottom: 1px solid var(--border);
  font-size: var(--text-sm); font-weight: 600;
}
.snapshot__body { padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.snapshot__obj { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.snapshot__err { font-size: var(--text-xs); color: var(--danger); }

.contact-card { padding: 14px 18px; }
.contact-row { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; font-size: var(--text-sm); }
.contact-row .k { color: var(--text-muted); width: 84px; flex-shrink: 0; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px; background: var(--border-strong); }
.tl-item { position: relative; padding: 4px 0 14px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -18px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface-card); }
.tl-src { font-size: var(--text-sm); font-weight: 600; }
.tl-meta { font-size: var(--text-xs); color: var(--text-muted); }

/* Slide-over preview drawer (search results). Fixed right panel + scrim; full-screen ≤640px. */
.slideover__scrim { position: fixed; inset: 0; z-index: 40; background: oklch(0.205 0.013 33 / 0.18); }
.slideover {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41;
  width: min(480px, 92vw); background: var(--surface-card);
  border-left: 1px solid var(--border-strong); box-shadow: var(--shadow-modal);
  display: flex; flex-direction: column; overflow-y: auto;
}
.slideover__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface-card);
  font-size: var(--text-eyebrow); font-weight: 600; letter-spacing: var(--ls-label);
  text-transform: uppercase; color: var(--text-muted);
}
.slideover__close {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  color: var(--text-muted); padding: 4px; border-radius: var(--radius-xs); line-height: 0;
}
.slideover__close:hover { color: var(--text-body); background: var(--bg-sunken); }
.slideover__body { padding: 18px; }
.slideover__firm { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); font-weight: 600; }
.slideover__title { font-family: var(--font-serif); font-size: var(--text-h3); font-weight: 500; line-height: 1.3; margin: 5px 0 12px; }
.slideover__row { font-size: var(--text-sm); color: var(--text-muted); margin: 6px 0; }
.slideover__row b { color: var(--text-body); font-weight: 600; }
.slideover__lots { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.slideover__cta { margin-top: 18px; }
@media (max-width: 640px) { .slideover { width: 100vw; border-left: none; } }
.chip-group { display: inline-flex; gap: 4px; }

/* Type-ahead suggestions dropdown (omnibox + /search). Anchored under the input. */
.suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60; padding: 4px; box-shadow: var(--shadow-menu); max-height: 360px; overflow-y: auto; }
.suggest__row, .suggest__all {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  appearance: none; background: transparent; border: 0; cursor: pointer;
  padding: 8px 10px; border-radius: var(--radius-xs); color: var(--text-body); font: inherit;
}
.suggest__row.is-active, .suggest__all.is-active, .suggest__row:hover, .suggest__all:hover { background: var(--bg-sunken); }
.suggest__icon { color: var(--accent-deep); line-height: 0; flex: 0 0 auto; }
.suggest__text { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.suggest__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest__sub { font-size: var(--text-xs); color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest__meta { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.suggest__date { font-size: var(--text-xs); color: var(--text-muted); white-space: nowrap; }
.suggest__all { font-size: var(--text-sm); color: var(--text-muted); border-top: 1px solid var(--border); margin-top: 4px; padding-top: 10px; border-radius: 0; }

/* Per-product table on the recall detail page (nrac-3dj) */
.ptable-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-card); }
.ptable { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.ptable thead th { text-align: left; padding: 9px 12px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--bg-sunken); }
.ptable td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.ptable tbody tr:last-child td { border-bottom: none; }
.ptable .pname { font-weight: 600; }
.ptable .pname .pdesc { display: block; font-weight: 400; color: var(--text-muted); font-size: 12.5px; margin-top: 2px; }
.ptable .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }
.ptable .muted { color: var(--text-muted); }
.ptable .prod-subrow td { background: var(--bg-sunken); padding-top: 6px; padding-bottom: 12px; }
.ptable .lotline { margin-bottom: 8px; }
.ptable .lotline .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-right: 8px; }
.ptable .thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.ptable .thumb { display: block; width: 64px; height: 64px; border-radius: 6px; border: 1px solid var(--border); overflow: hidden; }
.ptable .thumb img { width: 100%; height: 100%; object-fit: cover; }
