:root {
  --forest: #17372d;
  --forest-2: #234a3d;
  --forest-3: #0e2921;
  --paper: #f4f0e6;
  --paper-2: #fbf8f1;
  --paper-3: #e8e1d4;
  --ink: #14231e;
  --muted: #68736e;
  --line: rgba(23, 55, 45, 0.14);
  --signal: #f6c947;
  --signal-2: #ffd968;
  --coral: #ee745c;
  --blue: #4a7f92;
  --white: #fffefa;
  --shadow: 0 18px 55px rgba(14, 41, 33, 0.1);
  --shadow-tight: 0 10px 24px rgba(14, 41, 33, 0.08);
  --sans: "Avenir Next", Avenir, "Century Gothic", sans-serif;
  --display: "New York", "Bodoni 72", Didot, Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 55, 45, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 55, 45, 0.026) 1px, transparent 1px),
    var(--paper);
  background-size: 30px 30px;
  font-family: var(--sans);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.app-shell { min-height: 100vh; }

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  width: 244px;
  flex-direction: column;
  color: #edf3ed;
  background:
    radial-gradient(circle at 20% 12%, rgba(246, 201, 71, 0.16), transparent 24%),
    linear-gradient(165deg, var(--forest-2), var(--forest-3) 74%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 20px 22px;
}

.rail::after {
  position: absolute;
  right: 18px;
  bottom: 116px;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: white;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

.brand-mark i { position: absolute; display: block; width: 4px; height: 4px; background: var(--signal); border-radius: 50%; }
.brand-mark i:nth-child(1) { transform: translate(-7px, 5px); }
.brand-mark i:nth-child(2) { transform: translate(0, -7px); }
.brand-mark i:nth-child(3) { transform: translate(8px, 5px); }

.rail-nav { display: grid; gap: 7px; margin-top: 58px; }

.nav-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  width: 100%;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  padding: 11px 12px;
  color: rgba(255, 255, 255, 0.66);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: 160ms ease;
}

.nav-item:hover, .nav-item.active { color: white; background: rgba(255, 255, 255, 0.09); }
.nav-item.active { box-shadow: inset 3px 0 0 var(--signal); }
.nav-icon { color: var(--signal); font-size: 1.1rem; text-align: center; }
.nav-count { color: rgba(255, 255, 255, 0.46); font-size: 0.74rem; font-variant-numeric: tabular-nums; }

.rail-card {
  position: relative;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(10px);
}

.live-dot { position: absolute; top: 18px; right: 17px; width: 8px; height: 8px; background: #74d19d; border-radius: 50%; box-shadow: 0 0 0 5px rgba(116, 209, 157, 0.1); }
.rail-card-label { margin: 0 0 8px; color: var(--signal-2); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.rail-card strong { display: block; font-family: var(--display); font-size: 1.05rem; }
.rail-card p:last-child { margin: 8px 0 0; color: rgba(255, 255, 255, 0.54); font-size: 0.76rem; line-height: 1.5; }
.rail-footer { display: flex; justify-content: space-between; margin-top: 18px; color: rgba(255, 255, 255, 0.42); font-size: 0.68rem; }
.rail-footer strong { color: rgba(255, 255, 255, 0.72); font-weight: 600; }

.main { min-height: 100vh; margin-left: 244px; }

.topline {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(24px, 4vw, 64px);
  background: rgba(244, 240, 230, 0.76);
  backdrop-filter: blur(16px);
}

.topline p { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--muted); font-size: 0.76rem; font-weight: 650; letter-spacing: 0.03em; }
.topline-dot { width: 7px; height: 7px; background: var(--coral); border-radius: 50%; }
.topline-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding-block: 10px; }
.ghost-button, .icon-button { border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.36); cursor: pointer; }
.ghost-button { padding: 8px 14px; font-size: 0.76rem; font-weight: 700; }
.ghost-button:hover { border-color: var(--forest); background: var(--white); }
.icon-button { display: grid; width: 36px; height: 36px; place-items: center; }
.mobile-filters { display: none; }

.hero {
  position: relative;
  display: grid;
  min-height: 220px;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  padding: 30px clamp(24px, 4vw, 64px) 28px;
}

.hero::before {
  position: absolute;
  top: 28px;
  left: clamp(12px, 2vw, 28px);
  width: 9px;
  height: 130px;
  background: var(--signal);
  content: "";
  transform: rotate(19deg);
  opacity: 0.92;
}

.eyebrow { margin: 0 0 10px; color: var(--coral); font-size: 0.68rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
.hero h1 { max-width: 860px; margin: 0; font-family: var(--display); font-size: clamp(2.3rem, 3.4vw, 4.1rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1.02; }
.hero h1 em { color: var(--forest-2); font-weight: 400; }
.hero-subhead { max-width: 700px; margin: 28px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }

.hero-orbit { position: relative; width: 230px; height: 180px; justify-self: center; transform: scale(.72); animation: reveal 700ms 120ms both; }
.orbit-ring { position: absolute; inset: 50% auto auto 50%; border: 1px solid rgba(23, 55, 45, 0.23); border-radius: 50%; transform: translate(-50%, -50%); }
.ring-one { width: 190px; height: 190px; }
.ring-two { width: 280px; height: 280px; border-style: dashed; }
.orbit-core { position: absolute; inset: 50% auto auto 50%; display: grid; width: 88px; height: 88px; place-items: center; color: var(--forest); background: var(--signal); border-radius: 50%; box-shadow: 0 12px 30px rgba(246, 201, 71, 0.35); font-family: var(--display); font-size: 1.7rem; font-weight: 800; transform: translate(-50%, -50%); }
.orbit-label { position: absolute; border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; color: var(--forest); background: var(--paper-2); box-shadow: var(--shadow-tight); font-size: 0.6rem; font-weight: 850; letter-spacing: 0.08em; }
.label-one { top: 11px; right: 17px; }
.label-two { bottom: 25px; left: 0; }
.label-three { right: -10px; bottom: 48px; }

.search-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  margin: 0 clamp(24px, 4vw, 64px);
  border: 1px solid rgba(23, 55, 45, 0.18);
  border-radius: 20px;
  padding: 11px;
  background: var(--white);
  box-shadow: var(--shadow);
  animation: rise 500ms 180ms both;
}

.search-box { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 6px; padding: 0 10px; }
.search-icon { color: var(--forest); font-family: var(--display); font-size: 1.8rem; transform: rotate(-20deg); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 1.02rem; }
.search-box input::placeholder { color: #929994; }
kbd { min-width: 26px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 7px; padding: 4px 7px; color: var(--muted); background: var(--paper-2); font-family: var(--sans); font-size: 0.72rem; text-align: center; }
.location-tabs { display: flex; border-radius: 12px; padding: 3px; background: var(--paper); }
.segment { border: 0; border-radius: 9px; padding: 10px 14px; color: var(--muted); background: transparent; cursor: pointer; font-size: 0.76rem; font-weight: 750; }
.segment.active { color: white; background: var(--forest); box-shadow: 0 5px 12px rgba(23, 55, 45, 0.2); }

.source-story {
  display: block;
  margin: 24px clamp(24px, 4vw, 64px) 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 22px;
  background:
    linear-gradient(115deg, rgba(246, 201, 71, .13), transparent 42%),
    rgba(251, 248, 241, .78);
  box-shadow: var(--shadow-tight);
}
.source-story summary { color: var(--forest); font-family: var(--display); font-size: 1.25rem; cursor: pointer; }
.source-story[open] > p, .source-story[open] .source-path { margin-top: 16px; }
.browse-link { text-decoration: none; color: var(--forest); }
.detail-backdrop { position: fixed; inset: 0; z-index: 29; border: 0; background: rgba(8, 24, 18, .24); }
.detail-backdrop[hidden] { display: none; }
body.detail-open { overflow: hidden; }

.source-story-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(1.45rem, 2.2vw, 2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; }
.source-story > p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.source-path { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.source-path span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px; color: var(--forest); background: var(--white); font-size: .62rem; font-weight: 800; }
.source-path i { color: var(--coral); font-style: normal; }

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 30px clamp(24px, 4vw, 64px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal { position: relative; padding: 20px 22px; border-right: 1px solid var(--line); }
.signal:last-child { border-right: 0; }
.signal strong { display: block; font-family: var(--display); font-size: 2rem; font-weight: 600; letter-spacing: -0.04em; }
.signal span { color: var(--muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.signal i { position: absolute; top: 26px; right: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.signal:nth-child(2) i { background: var(--coral); }
.signal:nth-child(3) i { background: var(--blue); }
.signal:nth-child(4) i { background: #70a76f; }

.workspace {
  display: grid;
  grid-template-columns: 218px minmax(440px, 1fr) minmax(330px, 0.72fr);
  align-items: start;
  gap: 20px;
  padding: 42px clamp(24px, 4vw, 64px) 70px;
}

.filters, .inspector { position: sticky; top: 18px; }
.filters { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(251, 248, 241, 0.72); box-shadow: var(--shadow-tight); }
.filters-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.filters-heading h2, .results-header h2 { margin: 0; font-family: var(--display); font-size: 1.45rem; letter-spacing: -0.025em; }
.filters-heading .eyebrow, .results-header .eyebrow { margin-bottom: 5px; }
.filters-heading button { border: 0; padding: 0; color: var(--coral); background: transparent; cursor: pointer; font-size: 0.72rem; font-weight: 750; }
.filter-control { display: grid; gap: 7px; margin-top: 14px; }
.filter-control > span { color: var(--muted); font-size: 0.7rem; font-weight: 750; }
select, .filter-control input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 11px; outline: none; padding: 10px 30px 10px 10px; color: var(--ink); background: var(--white); font-size: 0.78rem; }
.filter-control input { padding-right: 10px; }
select:focus, textarea:focus, .filter-control input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(23, 55, 45, 0.08); }

.toggle-control { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; margin-top: 19px; cursor: pointer; color: var(--muted); font-size: 0.74rem; }
.primary-toggle { margin: 0 0 18px; border: 1px solid rgba(23, 55, 45, .12); border-radius: 12px; padding: 11px; color: var(--forest); background: rgba(246, 201, 71, .13); font-weight: 750; }
.toggle-control input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-track { position: relative; width: 32px; height: 18px; border-radius: 999px; background: var(--paper-3); transition: 160ms ease; }
.toggle-track i { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: 160ms ease; }
.toggle-control input:checked + .toggle-track { background: var(--forest); }
.toggle-control input:checked + .toggle-track i { transform: translateX(14px); }
.platform-note { margin-top: 24px; border-radius: 13px; padding: 14px; background: var(--forest); color: white; }
.platform-note span { color: var(--signal); font-size: 0.64rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.platform-note p { margin: 8px 0 0; color: rgba(255,255,255,.68); font-size: .72rem; line-height: 1.5; }

.results-column { min-width: 0; }
.results-header { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.result-tools { display: flex; align-items: center; gap: 10px; }
.sort-control { display: flex; align-items: center; gap: 6px; }
.sort-control span { color: var(--muted); font-size: .68rem; }
.sort-control select { width: 150px; padding-block: 8px; }
.view-switch { display: flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: var(--paper-2); }
.view-switch button { border: 0; border-radius: 7px; padding: 7px 10px; color: var(--muted); background: transparent; cursor: pointer; font-size: .7rem; font-weight: 750; }
.view-switch button.active { color: white; background: var(--forest); }
.active-filters { display: flex; min-height: 0; flex-wrap: wrap; gap: 7px; margin: -4px 0 14px; }
.filter-chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; color: var(--forest); background: rgba(255,255,255,.55); font-size: .66rem; }

.results-grid { display: grid; gap: 11px; }
.result-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 15px;
  background: rgba(255, 254, 250, 0.84);
  box-shadow: 0 7px 20px rgba(14, 41, 33, 0.045);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  animation: rise 360ms both;
}

.result-card:hover, .result-card.active { border-color: rgba(23, 55, 45, 0.42); box-shadow: var(--shadow-tight); transform: translateY(-1px); }
.result-card:focus-visible { border-color: var(--forest); outline: 3px solid rgba(246, 201, 71, .72); outline-offset: 2px; }
.result-card.active::before { position: absolute; inset: 14px auto 14px -1px; width: 4px; border-radius: 0 4px 4px 0; background: var(--signal); content: ""; }
.company-mark { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid rgba(23, 55, 45, 0.12); border-radius: 15px; color: var(--forest); background: var(--paper); font-family: var(--display); font-size: 1rem; font-weight: 800; }
.result-main { min-width: 0; }
.result-company { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: var(--muted); font-size: .7rem; font-weight: 700; }
.provider-badge { border-radius: 999px; padding: 3px 7px; color: var(--forest); background: rgba(246, 201, 71, .26); font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; }
.result-title { margin: 0; overflow-wrap: anywhere; font-family: var(--display); font-size: 1.08rem; font-weight: 650; letter-spacing: -.015em; white-space: normal; }
.result-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 7px; color: var(--muted); font-size: .66rem; }
.result-meta span { display: inline-flex; align-items: center; gap: 5px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #9aa49f; }
.status-dot.active { background: #58a978; }
.status-dot.applied { background: var(--blue); }
.status-dot.fresh { background: #58a978; }
.status-dot.aging { background: var(--signal); }
.status-dot.stale { background: var(--coral); }
.status-dot.inactive { background: #929994; }
.status-dot.unknown { background: var(--blue); }
.card-actions { display: flex; align-items: center; gap: 7px; }
.mini-button { display: grid; min-width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--forest); background: white; cursor: pointer; text-decoration: none; }
.mini-button:hover { border-color: var(--forest); background: var(--signal); }
.mini-button.saved { color: white; border-color: var(--coral); background: var(--coral); }
.role-count { min-width: 50px; color: var(--muted); font-size: .68rem; text-align: right; }

.company-card .result-title { white-space: normal; }
.company-role-list { display: flex; overflow: hidden; flex-wrap: wrap; gap: 5px; margin-top: 8px; max-height: 23px; }
.role-pill { max-width: 190px; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; padding: 4px 7px; color: var(--muted); background: var(--paper-2); font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }

.load-more { display: block; width: 100%; margin-top: 14px; border: 1px dashed rgba(23,55,45,.28); border-radius: 14px; padding: 12px; color: var(--forest); background: transparent; cursor: pointer; font-size: .75rem; font-weight: 750; }
.load-more:hover { border-style: solid; background: var(--white); }
.load-more[hidden] { display: none; }

.inspector { max-height: calc(100vh - 36px); overflow: auto; border: 1px solid var(--line); border-radius: 22px; color: white; background: linear-gradient(170deg, var(--forest-2), var(--forest-3)); box-shadow: var(--shadow); scrollbar-color: rgba(255,255,255,.2) transparent; }
.inspector-top { position: relative; min-height: 190px; overflow: hidden; padding: 22px; border-bottom: 1px solid rgba(255,255,255,.11); }
.inspector-top::after { position: absolute; top: -55px; right: -45px; width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; content: ""; }
.close-inspector { position: absolute; top: 14px; right: 14px; z-index: 2; display: none; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: white; background: rgba(255,255,255,.07); cursor: pointer; font-size: 1.05rem; }
.close-inspector:hover { color: var(--forest); background: var(--signal); }
.inspector-label { color: var(--signal); font-size: .64rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.inspector h2 { max-width: 90%; margin: 12px 0 4px; font-family: var(--display); font-size: 1.75rem; line-height: 1.05; letter-spacing: -.03em; }
.inspector-role { margin: 8px 0 0; color: rgba(255,255,255,.66); font-size: .82rem; line-height: 1.4; }
.inspector-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.detail-chip { border: 1px solid rgba(255,255,255,.13); border-radius: 999px; padding: 5px 8px; color: rgba(255,255,255,.68); background: rgba(255,255,255,.06); font-size: .6rem; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px 18px 0; }
.detail-button { display: flex; min-height: 43px; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; color: white; background: rgba(255,255,255,.07); cursor: pointer; text-decoration: none; font-size: .7rem; font-weight: 750; }
.detail-button.primary { color: var(--forest); border-color: var(--signal); background: var(--signal); }
.detail-button:hover { transform: translateY(-1px); }
.detail-section { padding: 19px 20px; border-bottom: 1px solid rgba(255,255,255,.09); }
.detail-section h3 { margin: 0 0 13px; color: rgba(255,255,255,.46); font-size: .63rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.detail-list { display: grid; gap: 11px; }
.detail-row { display: grid; grid-template-columns: 88px 1fr; gap: 10px; font-size: .7rem; }
.detail-row span { color: rgba(255,255,255,.44); }
.detail-row strong, .detail-row a { overflow-wrap: anywhere; color: rgba(255,255,255,.86); font-weight: 600; text-decoration: none; }
.detail-row a:hover { color: var(--signal); }
.company-roles { display: grid; gap: 7px; max-height: 240px; overflow: auto; }
.company-role { display: block; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 9px 10px; color: rgba(255,255,255,.75); background: rgba(255,255,255,.04); text-decoration: none; font-size: .67rem; line-height: 1.35; }
.company-role:hover { border-color: var(--signal); color: white; }
.related-role { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.related-role span { display: block; margin-top: 4px; color: rgba(255,255,255,.4); font-size: .59rem; }
.related-role:hover span { color: rgba(255,255,255,.7); }
.review-grid { display: grid; gap: 10px; }
.review-grid label span { display: block; margin-bottom: 6px; color: rgba(255,255,255,.46); font-size: .64rem; }
.review-grid select, .review-grid textarea { border-color: rgba(255,255,255,.14); color: white; background: rgba(255,255,255,.07); }
.review-grid select option { color: var(--ink); background: white; }
.review-grid textarea { width: 100%; min-height: 112px; resize: vertical; border: 1px solid rgba(255,255,255,.14); border-radius: 11px; outline: none; padding: 11px; line-height: 1.45; }
.save-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.save-button { border: 0; border-radius: 10px; padding: 9px 12px; color: var(--forest); background: var(--signal); cursor: pointer; font-size: .7rem; font-weight: 800; }
.save-meta { color: rgba(255,255,255,.38); font-size: .58rem; }
.tracker-note { color: rgba(255,255,255,.58); font-size: .68rem; line-height: 1.55; }

.empty-state { display: grid; min-height: 440px; place-content: center; padding: 40px; color: rgba(255,255,255,.54); text-align: center; }
.empty-state h2 { margin: 10px auto 8px; color: white; }
.empty-state p { max-width: 260px; margin: 0 auto; font-size: .76rem; line-height: 1.55; }
.empty-mark { display: grid; width: 54px; height: 54px; place-items: center; margin: 0 auto; border: 1px dashed rgba(255,255,255,.24); border-radius: 50%; color: var(--signal); font-size: 1.4rem; }
.no-results { display: grid; min-height: 260px; place-content: center; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; }
.no-results strong { color: var(--ink); font-family: var(--display); font-size: 1.3rem; }
.launch-notice { gap: 12px; padding: 28px; }
.launch-notice p { max-width: 520px; margin: 0 auto; line-height: 1.65; }
.launch-link { justify-self: center; border-radius: 999px; padding: 11px 18px; color: var(--paper); background: var(--forest); font-size: .76rem; font-weight: 800; text-decoration: none; }
.launch-link:hover { background: var(--forest-2); transform: translateY(-1px); }
.public-mode .filter-resume { display: none; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 40; pointer-events: none; border-radius: 12px; padding: 11px 15px; color: white; background: var(--forest); box-shadow: var(--shadow); font-size: .75rem; opacity: 0; transform: translateY(10px); transition: 180ms ease; }
.toast.show { opacity: 1; transform: translateY(0); }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(246, 201, 71, .78);
  outline-offset: 2px;
}

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reveal { from { opacity: 0; transform: scale(.94) rotate(-4deg); } to { opacity: 1; transform: scale(1) rotate(0); } }

@media (max-width: 1320px) {
  .workspace { grid-template-columns: 200px minmax(430px, 1fr) 320px; padding-inline: 28px; }
  .hero, .topline { padding-inline: 36px; }
  .search-panel, .source-story, .signal-strip { margin-inline: 36px; }
  .source-story { grid-template-columns: minmax(240px, .7fr) 1fr; }
  .source-path { grid-column: 1 / -1; }
}

@media (max-width: 1480px) {
  .workspace { grid-template-columns: 200px minmax(0, 1fr); }
  .inspector { position: fixed; inset: 16px 16px 16px auto; z-index: 30; visibility: hidden; width: min(440px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.28); transform: translateX(calc(100% + 30px)); transition: 220ms ease; }
  .inspector.open { transform: translateX(0); visibility: visible; }
  .close-inspector { display: grid; }
  .hero { grid-template-columns: minmax(0, 1fr) 290px; }
  .hero-orbit { width: 230px; transform: scale(.8); }
  .source-story { grid-template-columns: 1fr; gap: 16px; }
  .source-path { grid-column: auto; }
}

@media (max-width: 840px) {
  .rail { position: static; width: 100%; height: 70px; flex-direction: row; align-items: center; justify-content: space-between; padding: 12px 18px; }
  .rail-nav { display: flex; margin: 0; }
  .nav-item { display: flex; width: auto; padding: 9px; }
  .nav-icon, .nav-count, .rail-card, .rail-footer { display: none; }
  .main { margin-left: 0; }
  .hero { min-height: 240px; grid-template-columns: 1fr; padding-top: 38px; }
  .hero-orbit { display: none; }
  .hero h1 { max-width: 720px; font-size: clamp(2.15rem, 6vw, 3.2rem); }
  .workspace { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .mobile-filters { display: grid; }
  .signal-strip { grid-template-columns: repeat(2, 1fr); }
  .signal:nth-child(2) { border-right: 0; }
  .signal:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .brand { font-size: 1.05rem; }
  .brand-mark { width: 29px; height: 29px; }
  .nav-item { font-size: .72rem; }
  .topline { padding: 0 18px; }
  .topline p { display: none; }
  .topline { justify-content: flex-end; }
  .hero { padding: 38px 20px 32px; }
  .hero::before { display: none; }
  .hero-subhead { font-size: .88rem; }
  .search-panel { grid-template-columns: 1fr; margin-inline: 16px; }
  .source-story { margin: 18px 16px 0; padding: 18px 20px 20px; }
  .source-story-heading h2 { font-size: 1.55rem; }
  .source-path { display: none; }
  .location-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
  .signal-strip { margin-inline: 16px; }
  .signal { padding: 16px; }
  .signal strong { font-size: 1.55rem; }
  .workspace { padding: 32px 16px 60px; }
  .results-header { align-items: flex-start; flex-direction: column; }
  .result-tools { width: 100%; justify-content: space-between; }
  .sort-control span { display: none; }
  .result-card { grid-template-columns: 45px minmax(0, 1fr); }
  .result-title { white-space: normal; overflow-wrap: anywhere; }
  .company-mark { width: 45px; height: 45px; border-radius: 12px; }
  .card-actions { grid-column: 2; justify-content: flex-start; margin-top: 3px; }
  .role-count { text-align: left; }
  .inspector { inset: 8px; width: auto; max-height: calc(100vh - 16px); }
}

.freshness-guide { margin: 20px 36px 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.freshness-guide summary { cursor: pointer; color: var(--forest); font-weight: 650; }
.freshness-guide p { max-width: 850px; }
.status-dot.suspect { background: #ae602c; }
@media (max-width: 620px) { .freshness-guide { margin-inline: 16px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.agent-invite { position: relative; padding: 24px; border-radius: 18px; background: linear-gradient(140deg, var(--forest-2), var(--forest-3)); color: var(--paper-2); box-shadow: 0 12px 28px rgba(23,55,45,.13); }
.agent-invite .agent-label { color: var(--signal); font-size: .6rem; font-weight: 800; letter-spacing: .1em; margin: 0 0 14px; }
.agent-invite h2 { margin: 0 0 12px; font-family: var(--display); font-size: 2rem; font-weight: 500; line-height: 1.05; letter-spacing: -.025em; }
.agent-invite p { font-size: .82rem; line-height: 1.6; margin: 0 0 18px; }
.agent-join { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 16px; border-radius: 9px; background: var(--signal); color: var(--forest-3); font-size: .95rem; font-weight: 850; text-decoration: none; }
.agent-join:hover { background: #ffe082; }
.agent-join:focus-visible { outline: 3px solid var(--paper-2); outline-offset: 4px; }
.agent-note { display: block; margin-top: 12px; font-size: .65rem; line-height: 1.5; color: #d9e3d9; }
@media (max-width: 840px) {
  .agent-invite { width: 100%; max-width: 480px; }
}
/* Keep career focus visible without opening the mobile filter drawer. */
.collection-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 12px; }
.collection-picker > span { font-size: 14px; margin-right: 4px; }
.collection-picker button { min-height: 44px; padding: 10px 16px; border: 1px solid #17372d50; border-radius: 999px; background: transparent; color: #17372d; font: inherit; font-size: 14px; cursor: pointer; }
.collection-picker button[aria-pressed="true"] { background: #17372d; color: #fffefa; }
