:root {
  --bg: #edf2ee;
  --ink: #151a18;
  --muted: #66706b;
  --line: #cfd8d2;
  --panel: #fbfcf8;
  --panel-2: #eef3ef;
  --panel-3: #17211d;
  --green: #087f5b;
  --blue: #2f65d9;
  --red: #b93c2f;
  --gold: #996d16;
  --yellow: #f2c14e;
  --shadow: 0 1px 1px rgba(17, 24, 20, 0.08), 0 12px 32px rgba(17, 24, 20, 0.10);
  --topbar-offset: 90px;
  --display: "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", ui-sans-serif, system-ui, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --data: "SF Mono", "Roboto Mono", "Cascadia Code", ui-monospace, monospace;
  font-family: var(--body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(21, 26, 24, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 26, 24, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 24px 24px;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  align-items: center;
  background: #fff;
  border-bottom: 2px solid var(--ink);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  isolation: isolate;
  padding: 18px clamp(18px, 4vw, 52px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar h1 {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 2px 0 0;
  text-transform: uppercase;
}

.topbar nav {
  display: flex;
  gap: 10px;
  max-width: 100%;
}

.header-search {
  flex: 1;
  max-width: 520px;
  min-width: 260px;
}

.header-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.header-search input {
  border: 2px solid var(--ink);
  min-height: 44px;
}

.topbar nav a,
.button {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 650;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.topbar nav a:hover,
.topbar nav a:focus-visible,
.topbar nav a[aria-current="page"],
.button:hover,
.button:focus-visible {
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--yellow);
  outline: none;
  transform: translate(-1px, -1px);
}

.button.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.button.secondary {
  background: #fff;
  color: var(--blue);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

main {
  display: flex;
  flex-direction: column;
  padding: 0 0 56px;
}

.hero {
  align-items: stretch;
  background: rgba(251, 252, 248, 0.84);
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  min-height: 0;
  padding: clamp(16px, 3vw, 28px) clamp(16px, 4vw, 52px);
  order: 1;
}

.hero-copy {
  max-width: 780px;
}

.hero h2 {
  font-family: var(--display);
  font-size: clamp(30px, 3.4vw, 42px);
  letter-spacing: 0;
  line-height: 1.03;
  margin: 6px 0 10px;
  max-width: 760px;
}

.hero p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-panel {
  align-self: end;
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.hero-panel div {
  border-right: 1px solid var(--line);
  padding: 14px;
}

.hero-panel div:last-child {
  border-right: 0;
}

.hero-panel span {
  display: block;
  font-family: var(--data);
  font-size: 26px;
  font-weight: 800;
  color: var(--blue);
}

.hero-panel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  margin: 4px 0 0;
}

.hero-routing {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
  max-width: 760px;
}

.hero-routing a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 16px;
}

.hero-routing strong {
  color: var(--blue);
  font-size: 15px;
}

.hero-routing span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.workspace {
  padding: 54px clamp(16px, 4vw, 52px) 0;
}

#jobs {
  order: 0;
  padding-top: 22px;
}

#companies {
  order: 2;
}

.board-intro {
  align-items: center;
  background: rgba(251, 252, 248, 0.92);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  margin-bottom: 10px;
  padding: clamp(14px, 2.2vw, 20px);
}

.board-copy h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: 0;
  line-height: 1;
  margin: 4px 0 8px;
}

.board-copy p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
  max-width: 760px;
}

.board-counters {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.board-counters div {
  border-right: 1px solid var(--line);
  padding: 10px 12px;
}

.board-counters div:last-child {
  border-right: 0;
}

.board-counters span {
  color: var(--blue);
  display: block;
  font-family: var(--data);
  font-size: 22px;
  font-weight: 900;
}

.board-counters p,
.board-count {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

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

.section-heading h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0;
  line-height: 1.03;
  margin: 4px 0 0;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.controls {
  align-items: end;
  background: rgba(251, 252, 248, 0.78);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(300px, 1.4fr) minmax(280px, 1.25fr) minmax(160px, 0.65fr) minmax(160px, 0.65fr);
  margin-top: 8px;
  padding: 10px;
}

.controls > * {
  min-width: 0;
}

.advanced-filters {
  margin-bottom: 12px;
}

.advanced-filters summary {
  align-items: center;
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--data);
  font-size: 12px;
  font-weight: 800;
  min-height: 40px;
  padding: 0 14px;
}

.advanced-filters summary:focus-visible {
  box-shadow: 3px 3px 0 var(--yellow);
  outline: none;
}

.segmented-filter {
  border: 0;
  display: grid;
  gap: 6px;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: 0;
  min-width: 0;
  padding: 0;
  width: 100%;
}

.segmented-filter legend,
.controls label > span {
  color: var(--muted);
  display: block;
  font-family: var(--data);
  font-size: 11px;
  font-weight: 850;
  margin-bottom: 6px;
}

.segmented-filter label {
  min-width: 0;
}

.segmented-filter input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.segmented-filter label span {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-family: var(--data);
  font-size: 11px;
  font-weight: 850;
  justify-content: center;
  min-height: 36px;
  overflow: hidden;
  padding: 0 9px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.segmented-filter input:checked + span {
  background: #eaf1ff;
  border-color: var(--blue);
  color: var(--blue);
}

.segmented-filter input:focus-visible + span {
  box-shadow: 2px 2px 0 var(--yellow);
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.fit-controls {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.brief-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
}

.intake-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.intake-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.intake-card h3 {
  font-size: 22px;
  margin: 0 0 4px;
}

.submission-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.submission-card {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.submission-card h4 {
  margin: 8px 0 0;
}

.compact-heading {
  margin-bottom: 0;
}

.compact-heading h3 {
  font-size: 28px;
  line-height: 1.1;
  margin: 4px 0 0;
}

.brief-controls {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

input,
select,
textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 0 12px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.4);
  outline: none;
}

textarea {
  min-height: 86px;
  padding: 10px 12px;
  resize: vertical;
}

.compact-select {
  min-width: 280px;
}

.job-layout {
  align-items: start;
  display: block;
}

.brief-band {
  padding-top: 34px;
}

.company-grid {
  display: block;
}

.company-intro {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
}

.company-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.company-card h3 {
  font-size: 22px;
  line-height: 1.15;
  margin: 8px 0 4px;
}

.company-table {
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 0 1px 1px rgba(17, 24, 20, 0.08), 0 8px 22px rgba(17, 24, 20, 0.08);
  overflow-x: auto;
}

.company-table-head,
.company-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) 88px 120px 154px minmax(240px, 1fr) minmax(250px, 1fr);
  min-width: 1080px;
}

.company-table-head > div,
.company-row > div {
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  min-width: 0;
  padding: 12px 14px;
}

.company-table-head > div {
  background: #e3e9e4;
  color: var(--muted);
  font-family: var(--data);
  font-size: 12px;
  font-weight: 900;
}

.company-row > div {
  background: var(--panel);
}

.company-row:hover > div {
  background: #edf4ff;
}

.company-row strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
  margin-bottom: 4px;
}

.company-row-status {
  color: var(--muted);
  display: block;
  font-family: var(--data);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.metric-number {
  color: var(--ink);
  font-family: var(--data);
  font-size: 16px;
  font-weight: 900;
}

.company-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}

.company-stats span {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  padding: 8px;
}

.company-stats strong {
  color: var(--ink);
  display: block;
  font-size: 20px;
}

.brief-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.brief-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
}

.brief-card h3 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}

.brief-card ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.brief-card li {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-top: 10px;
}

.brief-card li span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.operator-hero {
  padding-top: 34px;
}

.operator-metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.operator-metrics article,
.operator-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.operator-metrics article {
  padding: 18px;
}

.operator-metrics span {
  display: block;
  font-size: 34px;
  font-weight: 800;
}

.operator-metrics p {
  color: var(--muted);
  margin: 4px 0 0;
}

.operator-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operator-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.operator-panel h3 {
  font-size: 22px;
  margin: 0;
}

.operator-list {
  display: grid;
  gap: 12px;
}

.operator-item {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.operator-item.compact {
  gap: 6px;
}

.operator-item h4 {
  margin: 0;
}

.operator-item ul {
  margin: 0;
  padding-left: 18px;
}

.operator-item li {
  margin: 6px 0;
}

.operator-item code {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: block;
  overflow-x: auto;
  padding: 10px 12px;
}

.operator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.list,
.detail,
.roster-grid,
.source-grid {
  min-width: 0;
}

.detail,
.roster-card,
.source-card,
.review-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.meta,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: var(--panel-2);
  border-radius: 999px;
  color: var(--blue);
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  padding: 8px 10px;
}

.job-type-tag {
  background: #eaf1ff;
  border: 1px solid #c5d6ff;
  border-radius: 3px;
  color: var(--blue);
  display: inline-flex;
  font-family: var(--data);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  padding: 5px 7px;
  text-transform: none;
  white-space: nowrap;
}

.job-type-tag.gold {
  background: #f7efd9;
  border-color: #dfc981;
  color: var(--gold);
}

.job-type-tag.green {
  background: #e6f0e8;
  border-color: #bdd4c4;
  color: var(--green);
}

.job-type-tag.red {
  background: #f6e8e5;
  border-color: #e3bcb5;
  color: var(--red);
}

.pill.blue {
  background: #e6eef7;
  color: var(--blue);
}

.pill.red {
  background: #f5e9e7;
  color: var(--red);
}

.pill.gold {
  background: #f4ecd9;
  color: var(--gold);
}

.pill.green {
  background: #e5eee8;
  color: var(--green);
}

.detail {
  box-shadow: var(--shadow);
  padding: 18px;
}

.detail-drawer {
  --drawer-width: min(500px, 100vw);
  border-radius: 0;
  height: 100vh;
  overflow: hidden;
  padding: 0;
  position: fixed;
  right: -100vw;
  top: 0;
  transition: right 180ms ease, width 180ms ease;
  width: var(--drawer-width);
  z-index: 1200;
}

.detail-drawer.open {
  right: 0;
}

.detail-drawer.expanded {
  --drawer-width: min(780px, 100vw);
}

.detail-drawer.resizing {
  transition: none;
  user-select: none;
}

.drawer-edge-toggle {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 6px 0 0 6px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-family: var(--data);
  font-size: 20px;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  z-index: 1201;
}

.detail-drawer.open .drawer-edge-toggle {
  border-radius: 6px 0 0 6px;
  right: var(--drawer-width);
}

.drawer-edge-toggle:hover,
.drawer-edge-toggle:focus-visible,
.drawer-icon-button:hover,
.drawer-icon-button:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  outline: none;
}

.drawer-resize-handle {
  bottom: 0;
  cursor: ew-resize;
  left: -8px;
  position: absolute;
  touch-action: none;
  top: 0;
  width: 16px;
  z-index: 2;
}

.drawer-resize-handle::before {
  background: rgba(21, 26, 24, 0.22);
  bottom: 0;
  content: "";
  left: 4px;
  opacity: 0;
  position: absolute;
  top: 0;
  transition: opacity 120ms ease;
  width: 2px;
}

.drawer-resize-handle:hover::before,
.drawer-resize-handle:focus-visible::before,
.detail-drawer.resizing .drawer-resize-handle::before {
  opacity: 1;
}

.dossier-kicker {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 14px;
}

.dossier-kicker > span:first-child {
  color: var(--muted);
  font-family: var(--data);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.drawer-actions .button {
  min-height: 34px;
}

.drawer-icon-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--data);
  font-size: 16px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.dossier-body {
  height: calc(100% - 64px);
  overflow-y: auto;
  padding: 18px;
}

.detail h3 {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0 0 6px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.detail dl {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 120px 1fr;
  margin: 18px 0;
  padding-top: 18px;
}

.detail dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.detail dd {
  margin: 0;
}

.detail ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.detail li {
  margin: 7px 0;
}

.fit-tags {
  margin-top: 12px;
}

.job-table-wrap {
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 0 1px 1px rgba(17, 24, 20, 0.08), 0 8px 22px rgba(17, 24, 20, 0.08);
  overflow-x: auto;
  overflow-y: visible;
  position: relative;
  z-index: 1;
}

.mobile-job-list {
  display: none;
}

.job-table {
  --job-grid: minmax(240px, 1.35fr) minmax(190px, 1fr) 96px 76px minmax(170px, 0.95fr) 124px 78px 72px minmax(150px, 0.8fr);
  display: grid;
  min-width: 1100px;
  width: 100%;
}

.job-table-head,
.job-row {
  display: grid;
  grid-template-columns: var(--job-grid);
}

.job-table-head {
  position: static;
  z-index: 2;
}

.job-head-cell,
.job-cell {
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  padding: 11px 14px;
  text-align: left;
}

.job-head-cell {
  background: #e3e9e4;
  box-shadow: 0 1px 0 var(--line), 0 5px 0 rgba(227, 233, 228, 0.98);
  color: var(--muted);
  font-family: var(--data);
  font-size: 12px;
  font-weight: 800;
}

.job-pager {
  align-items: center;
  background: rgba(251, 252, 248, 0.94);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 10px 0;
  padding: 10px;
}

.pager-size label {
  align-items: center;
  display: flex;
  gap: 8px;
}

.pager-size label span,
.pager-status {
  color: var(--muted);
  font-family: var(--data);
  font-size: 11px;
  font-weight: 850;
  margin: 0;
}

.pager-size select {
  min-height: 34px;
  min-width: 72px;
  padding: 0 8px;
}

.pager-pages {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.pager-pages button,
.pager-page {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--data);
  font-size: 11px;
  font-weight: 850;
  min-height: 32px;
  min-width: 34px;
  padding: 0 9px;
}

.pager-pages button:hover,
.pager-pages button:focus-visible,
.pager-page.active {
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--yellow);
  outline: none;
}

.pager-pages button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.55;
}

.pager-gap {
  color: var(--muted);
  font-family: var(--data);
  font-size: 11px;
  padding: 0 2px;
}

.job-cell {
  background: var(--panel);
  min-width: 0;
}

.table-sort {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  justify-content: flex-start;
  min-height: 24px;
  padding: 0;
  text-align: left;
  width: 100%;
}

.table-sort:focus-visible {
  color: var(--ink);
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.job-row {
  cursor: pointer;
  transition: background 120ms ease;
}

.job-row:hover,
.job-row:focus,
.job-row.selected {
  outline: none;
}

.job-row:hover .job-cell,
.job-row:focus .job-cell,
.job-row.selected .job-cell {
  background: #edf4ff;
}

.job-row.selected {
  box-shadow: inset 5px 0 0 var(--yellow);
}

.job-row.promoted-row {
  animation: promoted-roll-in 360ms ease-out;
  outline: 2px solid rgba(153, 109, 22, 0.34);
  outline-offset: -2px;
}

.job-row.promoted-row .job-cell {
  background: #fff8dc;
}

.job-row.promoted-row:hover .job-cell,
.job-row.promoted-row:focus .job-cell,
.job-row.promoted-row.selected .job-cell {
  background: #fff3bf;
}

.job-row.company-more-row .job-cell {
  background: #f4f0df;
  border-bottom-color: #d9c47a;
}

.job-row.company-more-row:hover .job-cell,
.job-row.company-more-row:focus .job-cell {
  background: #efe7c8;
}

.company-more-row strong {
  color: #5f4310;
}

.company-more-main {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.more-company-button {
  background: #fff;
  border: 1px solid #b99a37;
  border-radius: 5px;
  color: #5f4310;
  cursor: pointer;
  font-family: var(--data);
  font-size: 11px;
  font-weight: 900;
  min-height: 30px;
  padding: 0 10px;
  white-space: nowrap;
}

.more-company-button:hover,
.more-company-button:focus-visible {
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--yellow);
  outline: none;
}

.promoted-label {
  color: #6f4f0d;
  display: inline-block;
  font-family: var(--data);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.job-cell strong,
.job-cell span {
  display: block;
}

.job-cell strong {
  font-size: 15px;
  line-height: 1.25;
  margin-bottom: 4px;
}

.job-cell > span:not(.pill):not(.job-type-tag):not(.table-skill):not(.days-open):not(.promoted-label) {
  color: var(--muted);
  font-size: 12px;
}

.job-cell .job-type-tag {
  display: inline-flex;
}

.company-name {
  color: var(--ink);
  cursor: help;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
}

.company-signal {
  color: var(--muted);
  cursor: help;
  font-family: var(--data);
  font-size: 11px;
  line-height: 1.4;
}

.company-line {
  display: block;
}

.job-cell .company-line,
.job-cell .company-copy,
.job-cell .company-name,
.job-cell .company-signal {
  display: block;
}

.company-copy {
  min-width: 0;
}

.days-open {
  color: var(--ink);
  font-family: var(--data);
  font-weight: 900;
}

.salary-short {
  color: var(--ink);
  font-family: var(--data);
  font-weight: 800;
  white-space: nowrap;
}

.posting-link {
  align-items: center;
  color: var(--blue);
  display: inline-flex;
  font-family: var(--data);
  font-size: 20px;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  text-decoration: none;
  width: 32px;
}

.posting-link:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.table-skill {
  color: var(--muted);
  display: inline;
  font-family: var(--data);
  font-size: 12px;
  line-height: 1.5;
}

.job-cell .table-skill,
.company-row .table-skill {
  display: inline;
}

.table-skill + .table-skill::before {
  content: ", ";
}

.mobile-job-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.mobile-job-card.promoted-card {
  animation: promoted-roll-in 360ms ease-out;
  background: #fff8dc;
  border-color: rgba(153, 109, 22, 0.46);
  box-shadow: inset 5px 0 0 var(--yellow);
}

.mobile-job-card.company-more-card {
  background: #f4f0df;
  border-color: #d9c47a;
}

@keyframes promoted-roll-in {
  from {
    opacity: 0.72;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .job-row.promoted-row,
  .mobile-job-card.promoted-card {
    animation: none;
  }
}

.mobile-job-card.selected {
  border-color: var(--ink);
}

.mobile-job-card:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.mobile-job-top {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 36px;
}

.mobile-job-top h3 {
  font-size: 16px;
  line-height: 1.2;
  margin: 0 0 4px;
}

.mobile-job-top p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
}

.mobile-job-top .mobile-company-signal {
  font-family: var(--data);
  font-size: 11px;
  margin-top: 4px;
}

.mobile-job-meta {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mobile-job-meta span {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--data);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  min-width: 0;
  overflow: hidden;
  padding: 8px 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-grid,
.source-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.roster-card,
.source-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.roster-card h3,
.source-card h3 {
  font-size: 20px;
  margin: 0 0 4px;
}

.score {
  align-items: center;
  display: flex;
  gap: 10px;
}

.score-meter {
  background: var(--panel-2);
  border-radius: 999px;
  flex: 1;
  height: 10px;
  overflow: hidden;
}

.score-meter span {
  background: var(--green);
  display: block;
  height: 100%;
}

.review-panel {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding: 18px;
}

.review-panel h3,
.review-item h4 {
  margin: 0;
}

.review-list {
  display: grid;
  gap: 12px;
}

.watch-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.coverage-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.watch-card {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.coverage-card {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.review-item {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  padding-top: 12px;
}

@media (max-width: 980px) {
  .hero,
  .job-layout,
  .controls,
  .brief-controls,
  .fit-controls,
  .intake-grid,
  .brief-grid,
  .company-grid,
  .operator-grid,
  .submission-grid {
    grid-template-columns: 1fr;
  }

  .detail {
    position: static;
  }

  .detail-drawer {
    height: 100vh;
    position: fixed;
    right: -100vw;
    top: 0;
    --drawer-width: min(520px, 100vw);
    width: min(520px, 100vw);
  }

  .detail-drawer.open {
    right: 0;
  }

  .job-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
  }

  .job-table {
    min-width: 1100px;
  }

  .roster-grid,
  .source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar,
  .section-heading,
  .card-top {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    gap: 10px;
    padding: 12px 16px;
  }

  .topbar h1 {
    font-size: 16px;
  }

  .topbar nav a {
    font-size: 13px;
    min-height: 34px;
    padding: 0 12px;
  }

  .topbar nav {
    overflow-x: auto;
    width: 100%;
  }

  .header-search {
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  .hero {
    gap: 18px;
    min-height: auto;
    padding: 20px;
  }

  .controls {
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .board-intro,
  .board-counters {
    grid-template-columns: 1fr;
  }

  .board-copy p {
    max-width: 100%;
  }

  .segmented-filter {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .segmented-filter label span {
    padding: 0 6px;
  }

  .detail-drawer {
    --drawer-width: 100vw;
    height: 100vh;
    left: auto;
    right: -100vw;
    top: 0;
    width: 100vw;
  }

  .detail-drawer.open {
    left: 0;
    right: 0;
  }

  .detail-drawer.expanded {
    width: 100vw;
  }

  .detail-drawer.open .drawer-edge-toggle {
    display: none;
  }

  .drawer-resize-handle {
    display: none;
  }

  .dossier-kicker {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 12px;
  }

  .drawer-actions {
    justify-content: flex-end;
  }

  .job-table-wrap {
    display: none;
  }

  .job-pager {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .pager-pages {
    justify-content: flex-start;
  }

  .mobile-job-list {
    display: grid;
    gap: 10px;
  }

  .hero h2 {
    font-size: 38px;
    margin-bottom: 12px;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.45;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-routing {
    grid-template-columns: 1fr;
  }

  .roster-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .operator-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel div {
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    padding: 14px;
  }

  .hero-panel div:nth-child(2n),
  .hero-panel div:last-child {
    border-right: 0;
  }

  .hero-panel-note {
    border-bottom: 0;
  }

  .hero-panel span {
    font-size: 22px;
  }

  .hero-panel p {
    font-size: 11px;
  }

  .compact-select {
    min-width: 0;
  }

  .watch-grid,
  .coverage-grid,
  .review-item {
    grid-template-columns: 1fr;
  }
}
