:root {
  color-scheme: light;
  --bg: #f4f6f3;
  --bg-grad-1: #f7f9f5;
  --bg-grad-2: #eef2ec;
  --surface: #ffffff;
  --surface-2: #fafbf9;
  --surface-strong: #eef1ec;
  --ink: #0f1310;
  --ink-soft: #2c322d;
  --muted: #5a6359;
  --muted-2: #8a9189;
  --line: #dfe3dc;
  --line-strong: #c9cfc4;
  --green: #0f766e;
  --green-2: #14857c;
  --green-dark: #084842;
  --green-soft: rgba(15, 118, 110, 0.08);
  --green-soft-2: rgba(15, 118, 110, 0.16);
  --amber: #b45309;
  --amber-soft: rgba(180, 83, 9, 0.16);
  --rose: #be123c;
  --rose-soft: rgba(190, 18, 60, 0.1);
  --shadow-sm: 0 1px 2px rgba(15, 19, 16, 0.04), 0 2px 6px rgba(15, 19, 16, 0.04);
  --shadow-md: 0 6px 16px rgba(15, 19, 16, 0.06), 0 2px 4px rgba(15, 19, 16, 0.04);
  --shadow-lg: 0 18px 38px rgba(15, 19, 16, 0.1), 0 4px 10px rgba(15, 19, 16, 0.05);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --motion-fast: 140ms;
  --motion: 220ms;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(15, 118, 110, 0.07), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, rgba(180, 83, 9, 0.05), transparent 60%),
    linear-gradient(180deg, var(--bg-grad-1), var(--bg-grad-2));
  background-attachment: fixed;
  color: var(--ink);
  font-family:
    "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

::selection {
  background: var(--green-soft-2);
  color: var(--green-dark);
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

/* ─── Topbar ─────────────────────────────────────────────────── */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 18px;
}

.brand {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 6px;
  font-family: "Fraunces", "Inter", serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.title-accent {
  background: linear-gradient(120deg, var(--green) 0%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.meta .dot {
  color: var(--muted-2);
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ─── Buttons ────────────────────────────────────────────────── */

.button {
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 0 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--surface);
  color: var(--ink-soft);
  transition: border-color var(--motion-fast) var(--ease),
    background var(--motion-fast) var(--ease),
    transform var(--motion-fast) var(--ease),
    box-shadow var(--motion-fast) var(--ease);
}

.button:hover {
  border-color: var(--green);
  color: var(--green-dark);
  box-shadow: var(--shadow-sm);
}

.button:active {
  transform: translateY(1px);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
}

.button.primary {
  border-color: var(--green-dark);
  background: linear-gradient(180deg, var(--green-2), var(--green));
  color: white;
  box-shadow: var(--shadow-sm);
}

.button.primary:hover {
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  color: white;
}

.button-icon {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* ─── Company Tabs ───────────────────────────────────────────── */

.company-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 20px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  width: fit-content;
}

.company-tab {
  min-width: 160px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 500;
  transition: all var(--motion-fast) var(--ease);
}

.company-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.company-tab strong {
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.9rem;
}

.company-tab.active {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.company-tab.active strong {
  color: var(--green);
}

/* ─── Toolbar ────────────────────────────────────────────────── */

.toolbar {
  position: sticky;
  top: 8px;
  z-index: 10;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  padding: 14px;
  margin-bottom: 18px;
}

.toolbar-primary {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1.4fr) auto;
  gap: 10px;
}

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease);
}

.field:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.field-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted);
}

.field-icon-text {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--muted);
}

.field input,
.field select {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
  padding: 0;
  font-size: 0.95rem;
}

.field input::placeholder {
  color: var(--muted-2);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m6 9 6 6 6-6' fill='none' stroke='%235a6359' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 18px 18px;
  padding-right: 22px;
}

.field-location {
  position: relative;
}

.multi-select {
  flex: 1;
  min-width: 0;
  height: 100%;
}

.multi-select-toggle {
  width: 100%;
  height: 100%;
  min-height: 42px;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0 22px 0 0;
  text-align: left;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m6 9 6 6 6-6' fill='none' stroke='%235a6359' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 18px 18px;
}

.multi-select-toggle:empty,
.multi-select-toggle:placeholder-shown {
  color: var(--muted-2);
}

.multi-select-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  width: min(380px, calc(100vw - 48px));
  max-height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.multi-select-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.multi-select-head button {
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}

.multi-select-options {
  max-height: 280px;
  overflow: auto;
  padding: 6px;
}

.multi-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.multi-option:hover {
  background: var(--surface-strong);
}

.multi-option input {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  accent-color: var(--green);
}

.multi-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.field-salary {
  gap: 6px;
}

.field-salary input {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.field-divider {
  color: var(--muted-2);
  font-weight: 500;
}

.more-filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--motion-fast) var(--ease);
}

.more-filters svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.more-filters:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.more-filters[aria-expanded="true"] {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
}

.more-filters[aria-expanded="true"] svg {
  color: var(--green);
}

.badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

/* ─── Drawer ─────────────────────────────────────────────────── */

.toolbar-drawer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  animation: drawerSlide var(--motion) var(--ease);
}

@keyframes drawerSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.toolbar-drawer .control {
  min-width: 0;
}

.toolbar-drawer label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toolbar-drawer input,
.toolbar-drawer select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0 10px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease);
}

.toolbar-drawer input:focus,
.toolbar-drawer select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.toolbar-drawer select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m6 9 6 6 6-6' fill='none' stroke='%235a6359' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px 16px;
  padding-right: 28px;
  cursor: pointer;
}

/* ─── Status row (chips + sort) ───────────────────────────────── */

.toolbar-status {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-height: 32px;
  flex: 1;
  min-width: 0;
}

.chips-empty {
  color: var(--muted-2);
  font-size: 0.86rem;
  font-style: italic;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 4px 0 10px;
  border-radius: var(--radius-pill);
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.84rem;
  font-weight: 500;
  border: 1px solid transparent;
  animation: chipIn 180ms var(--ease);
}

@keyframes chipIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.chip strong {
  color: var(--green-dark);
  font-weight: 600;
}

.chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 0;
  color: var(--green-dark);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  transition: background var(--motion-fast) var(--ease);
}

.chip-remove:hover {
  background: var(--green-soft-2);
}

.sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sort label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.sort select {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0 28px 0 10px;
  font-size: 0.88rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m6 9 6 6 6-6' fill='none' stroke='%235a6359' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px 16px;
}

/* ─── Quickbar ───────────────────────────────────────────────── */

.quickbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.quickbar button {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.84rem;
  cursor: pointer;
  transition: all var(--motion-fast) var(--ease);
}

.quickbar button:hover {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
}

/* ─── Insight strip ──────────────────────────────────────────── */

.insight-strip {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.6fr);
  gap: 14px;
  margin-bottom: 18px;
}

.insight-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.metric strong {
  display: block;
  font-family: "Fraunces", "Inter", serif;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.metric span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.insight-histogram {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.histogram-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.histogram-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.histogram-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.histogram {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 4px;
  height: 80px;
}

.histogram-bar {
  background: linear-gradient(180deg, var(--green-2), var(--green));
  border-radius: 4px 4px 2px 2px;
  min-height: 2px;
  position: relative;
  transition: transform var(--motion-fast) var(--ease), opacity var(--motion-fast) var(--ease);
  cursor: default;
}

.histogram-bar:hover {
  transform: scaleY(1.04);
  filter: brightness(1.1);
}

.histogram-bar[data-empty="true"] {
  background: var(--surface-strong);
}

.histogram-bar::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  font-size: 0.74rem;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-fast) var(--ease);
}

.histogram-bar:hover::after {
  opacity: 1;
}

.histogram-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

/* ─── Results ────────────────────────────────────────────────── */

.results-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.results-head-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

.results-head h2 {
  margin: 0;
  font-family: "Fraunces", "Inter", serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.results-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.results {
  display: grid;
}

.job-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background var(--motion-fast) var(--ease);
}

.job-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background var(--motion-fast) var(--ease);
}

.job-card:hover {
  background: var(--surface-2);
}

.job-card:hover::before {
  background: linear-gradient(180deg, var(--green), var(--amber));
}

.job-card:last-child {
  border-bottom: 0;
}

.job-title {
  margin: 0 0 8px;
  font-family: "Fraunces", "Inter", serif;
  font-size: 1.18rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.job-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease);
}

.job-title a:hover {
  color: var(--green-dark);
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  align-items: center;
}

.meta-piece {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-piece + .meta-piece::before {
  content: "·";
  color: var(--muted-2);
  margin-right: 6px;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  color: var(--muted);
  padding: 2px 9px;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
  font-weight: 500;
}

.pill.salary {
  border-color: var(--green-soft-2);
  background: var(--green-soft);
  color: var(--green-dark);
}

.pill.alert {
  border-color: rgba(190, 18, 60, 0.22);
  background: var(--rose-soft);
  color: var(--rose);
}

.snippet {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

mark {
  border-radius: 3px;
  background: var(--amber-soft);
  color: var(--ink);
  padding: 0 2px;
  font-weight: 500;
}

.job-side {
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: stretch;
  text-align: right;
}

.comp {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.07), rgba(180, 83, 9, 0.04));
  border: 1px solid var(--green-soft-2);
  text-align: right;
}

.comp strong {
  display: block;
  font-family: "Fraunces", "Inter", serif;
  font-size: 1.08rem;
  font-variant-numeric: tabular-nums;
  color: var(--green-dark);
  letter-spacing: -0.01em;
}

.comp span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.comp.no-salary {
  background: var(--surface-strong);
  border-color: var(--line);
}

.comp.no-salary strong {
  color: var(--muted);
  font-size: 0.92rem;
}

.job-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.job-actions a,
.job-details summary {
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 0 10px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--motion-fast) var(--ease);
}

.job-actions a {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.job-actions a:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.job-actions a.secondary {
  background: var(--surface);
  color: var(--ink-soft);
}

.job-actions a.secondary:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.job-details {
  grid-column: 1 / -1;
}

.job-details summary {
  display: inline-flex;
  background: var(--surface-2);
  color: var(--muted);
  list-style: none;
  user-select: none;
}

.job-details summary:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.job-details summary::-webkit-details-marker {
  display: none;
}

.description {
  margin-top: 12px;
  max-height: 460px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 14px 16px;
  white-space: pre-wrap;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.empty {
  padding: 60px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.empty::before {
  content: "∅";
  display: block;
  font-size: 2.4rem;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.results-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  min-height: 60px;
}

.pagination-info {
  color: var(--muted);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

/* ─── Focus rings ────────────────────────────────────────────── */

.button:focus-visible,
.quickbar button:focus-visible,
.company-tab:focus-visible,
.more-filters:focus-visible,
.chip-remove:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--green-soft-2);
  outline-offset: 2px;
}

/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .toolbar-primary {
    grid-template-columns: 1fr 1fr;
  }
  .field-search {
    grid-column: 1 / -1;
  }
  .more-filters {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .toolbar-drawer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .insight-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 1320px);
    padding: 14px 0 32px;
  }
  h1 {
    font-size: 2.1rem;
  }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
  }
  .eyebrow {
    font-size: 0.68rem;
  }
  .meta {
    font-size: 0.84rem;
  }
  .actions {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }
  .actions .button {
    flex: 1 1 auto;
    height: 34px;
    padding: 0 10px;
    font-size: 0.85rem;
  }
  .company-tabs {
    width: 100%;
    margin-bottom: 14px;
  }
  .company-tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 40px;
    height: 40px;
    padding: 0 10px;
    gap: 8px;
    font-size: 0.9rem;
  }
  .company-tab span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .toolbar {
    position: static;
    padding: 12px;
    margin-bottom: 14px;
  }
  .toolbar-primary {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .field {
    min-height: 42px;
  }
  .more-filters {
    height: 40px;
  }
  .toolbar-drawer {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .quickbar {
    gap: 5px;
  }
  .quickbar button {
    font-size: 0.78rem;
    padding: 0 10px;
  }
  .insight-strip {
    gap: 10px;
    margin-bottom: 14px;
  }
  .insight-metrics {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
    gap: 8px;
  }
  .metric strong {
    font-size: 1.4rem;
  }
  .insight-histogram {
    padding: 12px;
  }
  .histogram {
    height: 90px;
  }
  .results-head {
    padding: 12px 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .results-head h2 {
    font-size: 1.05rem;
  }
  .job-card {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 12px;
  }
  .job-side {
    text-align: left;
    grid-template-columns: 1fr;
  }
  .comp {
    text-align: left;
  }
  .toolbar-status {
    flex-direction: column;
    align-items: stretch;
  }
}
