/* ── Design tokens ───────────────────────────────────────────────── */
:root {
  --ink:        #0f0f0f;
  --ink-mid:    #444;
  --ink-light:  #888;
  --paper:      #F7FAFA;
  --cream:      #EBF2F3;
  --rule:       #D3E0E2;
  --accent:     #14505C;
  --accent-lt:  #E3EFF1;
  --accent-mid: #2A7584;
  --gold:       #C9A23F;
  --red:        #c0392b;
  --red-lt:     #fdecea;
  --green:      #27ae60;
  --green-lt:   #e8f8ef;
  --radius:     8px;
  --radius-sm:  4px;
  --shadow:     0 1px 4px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.12);
  --mono:       'DM Mono', monospace;
  --serif:      'DM Serif Display', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
  --nav-width:  240px;
  --header-h:   56px;
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Shell layout ────────────────────────────────────────────────── */
.shell {
  display: grid;
  grid-template-columns: var(--nav-width) 1fr;
  grid-template-rows: var(--header-h) 1fr;
  min-height: 100vh;
}

/* ── Header ──────────────────────────────────────────────────────── */
.tm-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 16px;
}
.tm-logo {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--accent);
  text-decoration: none;
}
.tm-logo span { color: var(--gold); }
.tm-logo-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent-mid);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-left: 10px;
}
.tm-header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.tm-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ink-mid);
  font-size: 20px;
}

/* ── Left nav ────────────────────────────────────────────────────── */
.tm-nav {
  border-right: 1px solid var(--rule);
  background: var(--cream);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  height: calc(100dvh - var(--header-h));
  position: sticky;
  top: var(--header-h);
}
.tm-nav-greeting {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  margin-bottom: 8px;
  color: var(--ink);
}
.tm-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-mid);
  text-decoration: none;
  font-size: 14px;
  transition: all .12s;
}
.tm-nav-link:hover { background: var(--accent-lt); color: var(--accent); }
.tm-nav-link.active { background: var(--accent-lt); color: var(--accent); font-weight: 500; }
.tm-nav-link .icon { font-size: 16px; width: 20px; text-align: center; }
.tm-nav-divider { height: 1px; background: var(--rule); margin: 12px 0; }
.tm-nav-status {
  font-size: 12px;
  color: var(--ink-light);
  padding: 8px 12px;
  line-height: 1.6;
}

/* ── Main content ────────────────────────────────────────────────── */
.tm-main { padding: 32px 40px; max-width: 100%; }
.tm-page-title { font-family: var(--serif); font-size: 24px; color: var(--accent); margin-bottom: 4px; }
.tm-page-subtitle { font-size: 13px; color: var(--ink-light); margin-bottom: 24px; }

/* ── Cards ───────────────────────────────────────────────────────── */
.tm-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  margin-bottom: 16px;
  padding: 28px 24px;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
  background: #fff;

}
.tm-card-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--ink);
}

/* ── Stat cards ──────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-value {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-family: var(--mono);
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all .12s;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-mid); }
.btn-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent-lt); }
.btn-ghost { background: transparent; color: var(--ink-mid); }
.btn-ghost:hover { background: var(--cream); color: var(--ink); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { opacity: .9; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Form elements ───────────────────────────────────────────────── */
.tm-field { margin-bottom: 16px; }
.tm-label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-mid); margin-bottom: 5px; }
.tm-input, .tm-textarea, .tm-select {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
}
.tm-input:focus, .tm-textarea:focus, .tm-select:focus { border-color: var(--accent-mid); }
.tm-textarea { resize: vertical; min-height: 120px; }

/* ── Toast ───────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  z-index: 999;
  transform: translateY(120%);
  transition: transform .25s ease;
  max-width: 400px;
  box-shadow: var(--shadow-md);
}
.toast.show { transform: translateY(0); }
.toast.ok { background: var(--green); color: #fff; }
.toast.err { background: var(--red); color: #fff; }

/* ── Table ───────────────────────────────────────────────────────── */
.tm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tm-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-light);
  border-bottom: 2px solid var(--rule);
}
.tm-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.tm-table tr:hover { background: var(--accent-lt); }
.tm-table tr { cursor: pointer; transition: background .1s; }

/* ── Badge ───────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--mono);
}
.badge-green { background: var(--green-lt); color: var(--green); }
.badge-gray  { background: var(--cream); color: var(--ink-light); }
.badge-blue  { background: var(--accent-lt); color: var(--accent-mid); }

/* ── Spinner ─────────────────────────────────────────────────────── */
.tm-spinner {
  width: 24px; height: 24px;
  border: 2px solid var(--rule);
  border-top-color: var(--accent-mid);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty state ─────────────────────────────────────────────────── */
.tm-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-light);
}
.tm-empty-icon { font-size: 40px; margin-bottom: 12px; }
.tm-empty-title { font-size: 16px; font-weight: 500; color: var(--ink-mid); margin-bottom: 6px; }
.tm-empty-body  { font-size: 14px; margin-bottom: 20px; }

/* ── Modal ───────────────────────────────────────────────────────── */
.tm-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.tm-modal-overlay.open { display: flex; }
.tm-modal {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
  width: min(700px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}
/* The candidate panel (applicants / match) has tabs and side-by-side readings — give it room */
#detail-content.tm-modal { width: min(900px, 94vw); }
.tm-modal-title { font-size: 17px; font-weight: 500; margin-bottom: 10px; }
.tm-modal-body  { font-size: 14px; color: var(--ink-mid); margin-bottom: 22px; line-height: 1.6; }
.tm-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ── Tabs ────────────────────────────────────────────────────────── */
.tm-tabs {
  display: flex;
  border-bottom: 2px solid var(--rule);
  margin-bottom: 20px;
  gap: 0;
}
.tm-tab {
  padding: 10px 18px;
  font-size: 14px;
  color: var(--ink-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .15s;
}
.tm-tab:hover { color: var(--ink); }
.tm-tab.active { color: var(--accent); border-bottom-color: var(--accent-mid); font-weight: 500; }

/* ── Progress bar ────────────────────────────────────────────────── */
.progress-bar {
  height: 6px;
  background: var(--rule);
  border-radius: 3px;
  overflow: hidden;
  margin: 8px 0;
}
.progress-fill {
  height: 100%;
  background: var(--accent-mid);
  border-radius: 3px;
  transition: width .3s ease;
}

/* ── Drop zone ───────────────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--rule);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: #fff;
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--accent-mid);
  background: var(--accent-lt);
}
.drop-zone-icon { font-size: 36px; margin-bottom: 8px; }
.drop-zone-text { font-size: 14px; color: var(--ink-mid); }
.drop-zone-hint { font-size: 12px; color: var(--ink-light); margin-top: 4px; }

/* ── Profile rendering (shared between candidates + match) ───────── */
.profile-summary-block {
  background: var(--accent-lt);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}
.profile-summary-label {
  font-size: 11px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent-mid);
  margin-bottom: 8px;
}
.profile-section-title {
  font-size: 11px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-light);
  margin: 16px 0 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule);
}
.profile-table {
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
}
.profile-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.profile-row:last-child { border-bottom: none; }
.profile-row-label {
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-light);
  background: var(--cream);
}
.profile-row-value {
  padding: 8px 12px;
  color: var(--ink-mid);
  line-height: 1.5;
}

/* Section blocks (used in modals) */
.section-block {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.6;
}
.section-block-label {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--accent-mid);
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: var(--header-h) 1fr;
  }
  .tm-hamburger { display: block; }
  .tm-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    width: var(--nav-width);
    z-index: 100;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: var(--shadow-md);
    height: calc(100dvh - var(--header-h));
  }
  .tm-nav.open { transform: translateX(0); }
  .tm-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--header-h);
    background: rgba(0,0,0,.3);
    z-index: 99;
  }
  .tm-nav-backdrop.open { display: block; }
  .tm-main { padding: 20px 16px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.sortable:hover {
  background: var(--surface-hover, rgba(0,0,0,0.04));
}
.sort-icon {
  margin-left: 4px;
  opacity: 0.35;
  font-size: 11px;
}
.sort-icon.active {
  opacity: 1;
  color: var(--accent, #7c3aed);
}

.pipeline-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 12px;
}
.banner-icon { font-size: 16px; flex-shrink: 0; }
.banner-warn { background: #fefce8; border: 1px solid #fde68a; color: #92400e; }
.banner-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.banner-ok   { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }


/* ── Shell modal ── */
.shell-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;        /* higher than tm-modal-overlay */
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.shell-modal {
  background: #fff;    /* explicit white, not var(--surface) which may be transparent */
  border-radius: var(--radius);
  padding: 28px;
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative; /* ensures it stacks above the overlay */
}
.shell-modal-overlay.open { opacity: 1; pointer-events: all; }
.shell-field { margin-bottom: 16px; }
.shell-field label {
  display: block; font-size: 12px;
  font-family: var(--mono); text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-light); margin-bottom: 6px;
}
.shell-field input, .shell-field textarea, .shell-field select {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--rule); border-radius: var(--radius-sm);
  font-size: 13px; font-family: var(--sans); color: var(--ink);
  background: #fff; box-sizing: border-box;
}
.shell-field textarea { min-height: 72px; resize: vertical; }
.shell-checkbox-group { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px 20px; }
.shell-checkbox-group label {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-family: var(--sans);
  text-transform: none; letter-spacing: 0; color: var(--ink); cursor: pointer;
  white-space: nowrap;
}
.shell-checkbox-group input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0;
  accent-color: var(--accent); cursor: pointer;
}

/* ── Notes timeline ── */
.note-entry {
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 10px;
  background: #fff;
}
.note-entry-meta {
  font-size: 11px; font-family: var(--mono);
  color: var(--ink-light); margin-bottom: 6px;
  display: flex; justify-content: space-between;
}
.note-entry-text {
  width: 100%;
  min-height: 80px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-family: var(--sans);
  font-size: 13px;
  resize: vertical;
}

.note-delete-btn {
  background: none; border: none; cursor: pointer;
  color: var(--ink-light); font-size: 12px; padding: 0;
}
.note-delete-btn:hover { color: #dc2626; }

/* ── Icons (lucide) + nav extras, as in the organisation portal ───── */
.btn svg, .tm-nav-link .icon svg, .tm-hamburger svg { width: 16px; height: 16px; }
.btn svg { width: 15px; height: 15px; vertical-align: -3px; }
.tm-nav-link .icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; }
.sidebar-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 12px;
  text-decoration: underline;
  color: var(--ink-light);
}
.auth-error {
  background: var(--red-lt); border: 1px solid #f5c6c6; border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 13px; color: var(--red); margin-bottom: 12px;
}

/* ── How these notes are understood (candidate panel) ───────────── */
.badge-amber { background: #fff7e6; color: #b45309; }
.badge-red   { background: var(--red-lt); color: var(--red); }

/* ── Linked candidate's own answers + city picker ─────────────────── */
.cand-owned { font-size: 11px; color: var(--accent-mid); font-family: var(--mono); text-transform: none; margin-top: 2px; }
.shell-field label .cand-owned { display: inline-block; margin-left: 8px; }
.city-picker { position: relative; }
.city-picker-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 38px; padding: 5px 8px;
                   border: 1px solid var(--rule); border-radius: var(--radius-sm); background: #fff; cursor: text; }
.city-picker.locked .city-picker-box { cursor: default; }   /* same background as the other locked fields */
.city-picker-input { flex: 1; min-width: 140px; border: 0 !important; outline: none; padding: 4px !important;
                     font-size: 13px; background: transparent; box-shadow: none !important; }
.city-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 20px;
             background: var(--accent-lt); color: var(--accent-mid); font-size: 12px; white-space: nowrap; }
.city-chip button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; font-size: 14px; line-height: 1; }
.city-picker.locked .city-chip button { display: none; }
.city-picker.locked .city-picker-input { display: none; }
.city-picker-list { position: absolute; left: 0; right: 0; top: 100%; margin-top: 2px; z-index: 20; background: #fff;
                    border: 1px solid var(--rule); border-radius: var(--radius-sm); box-shadow: 0 6px 20px rgba(0,0,0,.08);
                    max-height: 240px; overflow-y: auto; }
.city-picker-row { padding: 8px 12px; font-size: 13px; cursor: pointer; border-bottom: 1px solid var(--rule); }
.city-picker-row:last-child { border-bottom: 0; }
.city-picker-row.on, .city-picker-row:hover { background: var(--accent-lt); }

/* ── CV + profile checks (candidate panel) ───────────────────────── */
.chk-panel { border: 1px solid var(--rule); border-radius: var(--radius-sm); background: #fff;
             padding: 12px 14px; margin: 0 0 16px; font-size: 13px; color: var(--ink-mid); text-align: left; }
.chk-panel.chk-blocked { border-color: #f5c6c6; background: var(--red-lt); }
.chk-panel.chk-flagged { border-color: #f3dcae; background: #fff7e6; }
.chk-actions { margin-top: 10px; }
.chk-notes { margin-top: 10px; color: var(--ink-mid); }
.chk-panel > .chk-notes:first-child { margin-top: 0; }
.chk-notes-title { font-weight: 500; color: var(--ink); font-size: 13px; }
.chk-notes .chk-list { margin-top: 4px; }
/* DEV ONLY — SHOW_ALL_CV_FLAGS */
.chk-panel.chk-dev { border-style: dashed; background: #fafafa; }
.chk-dev-list { list-style: none; margin: 8px 0 0; padding: 0; }
.chk-dev-row { padding: 8px 0; border-top: 1px solid var(--rule); line-height: 1.5; }
.chk-dev-row:first-child { border-top: 0; }
.chk-dev-row.is-hidden { color: var(--ink-light); }
.chk-dev-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 2px; }
.chk-dev-src, .chk-dev-vis { font-size: 12px; color: var(--ink-light); }
.chk-dev-vis { margin-left: auto; }
.chk-dev-ev { font-size: 12px; font-style: italic; }
.chk-sev { font-size: 11px; font-weight: 600; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: var(--cream); }
.chk-sev-medium { background: #fff7e6; color: #b45309; }
.chk-sev-high, .chk-sev-critical { background: var(--red-lt); color: var(--red); }
.chk-reviewed .chk-list { color: var(--ink-light); }
.chk-title { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.chk-title svg { width: 15px; height: 15px; flex-shrink: 0; }
.chk-blocked .chk-title { color: var(--red); }
.chk-flagged .chk-title { color: #b45309; }
.chk-body { line-height: 1.5; }
.chk-list { margin: 8px 0 0; padding-left: 18px; line-height: 1.5; }
.chk-list li { margin-bottom: 4px; }
.chk-age { margin-top: 8px; font-size: 12px; color: var(--ink-light); }
.chk-panel > .chk-age:first-child { margin-top: 0; }
.nr-panel { border: 1px solid var(--rule); border-radius: var(--radius-sm); background: #fff;
            padding: 14px 16px; margin: 4px 0 18px; text-align: left; font-size: 13px; color: var(--ink-mid); }
.nr-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.nr-title { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); font-size: 14px; }
.nr-title svg, .nr-item-head svg { width: 15px; height: 15px; flex-shrink: 0; }
.nr-summary { background: var(--accent-lt); border-radius: var(--radius-sm); padding: 10px 12px;
              color: var(--ink); line-height: 1.55; margin-bottom: 10px; }
.nr-list { list-style: none; margin: 0; padding: 0; }
.nr-list > li { display: flex; gap: 12px; padding: 2px 0; }
.nr-list .nr-k { flex: 0 0 170px; color: var(--ink-mid); }
.nr-list ul { margin: 0; padding-left: 18px; }
.nr-more summary { cursor: pointer; color: var(--accent-mid); font-size: 13px; padding-left: 18px; }
.nr-list.nr-soft { border-top: 1px solid var(--rule); margin-top: 6px; padding-top: 6px; }
@media (max-width: 600px) { .nr-list > li { flex-direction: column; gap: 0; } .nr-list .nr-k { flex: none; font-size: 12px; } }
.nr-item { border-radius: var(--radius-sm); padding: 9px 12px; margin-bottom: 8px; line-height: 1.5; }
.nr-item-head { display: flex; align-items: center; gap: 6px; font-weight: 500; margin-bottom: 3px; }
.nr-unlawful   { background: var(--red-lt); color: #8a1f14; border-left: 3px solid var(--red); }
.nr-borderline { background: #fff7e6; color: #7a4a06; border-left: 3px solid #f59e0b; }
.nr-ambiguity  { background: var(--cream); border-left: 3px solid var(--accent-mid); }
.nr-quote { font-style: italic; margin-bottom: 3px; }
.nr-ref { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--ink-light); margin-left: auto; }
.nr-muted { color: var(--ink-light); font-size: 12px; }
.nr-subtitle { font-weight: 500; color: var(--ink); margin: 12px 0 6px; }
.nr-assessment { margin: 0 0 4px 18px; padding: 0; line-height: 1.6; }
.nr-assessment .nr-ref { margin-left: 6px; }
.nr-kind { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--accent-mid); margin-right: 4px; }
.nr-foot { border-top: 1px solid var(--rule); margin-top: 10px; padding-top: 10px; font-size: 12px; line-height: 1.6; }
.nr-foot a { color: var(--accent-mid); }
.nr-spin { display: inline-block; width: 10px; height: 10px; border-width: 2px; margin-right: 6px; vertical-align: -1px; }

/* Linked candidate: "Also from the candidate" */
.lp-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.lp-table th { text-align: left; font-weight: 500; color: var(--ink); padding: 3px 12px 3px 0; white-space: nowrap; vertical-align: top; width: 1%; }
.lp-table td { padding: 3px 12px 3px 0; color: var(--ink-mid); vertical-align: top; }
