:root {
  --ink: #17211b;
  --muted: #66736b;
  --line: #dce4de;
  --paper: #ffffff;
  --canvas: #f3f6f3;
  --forest: #184f3a;
  --forest-soft: #dcebe4;
  --amber: #d7972a;
  --amber-soft: #fff1d6;
  --coral: #c95d4b;
  --coral-soft: #f9e4df;
  --blue: #33758d;
  --blue-soft: #dcecf1;
  --chart-grid: #e7ece8;
  --header-bg: #17211b;
  --header-ink: #ffffff;
  --shadow: 0 12px 30px rgba(28, 45, 35, 0.08);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #e8f0eb;
  --muted: #a7b5ad;
  --line: #34453c;
  --paper: #17221c;
  --canvas: #101713;
  --forest: #75c69b;
  --forest-soft: #243d30;
  --amber: #e3ad50;
  --amber-soft: #473819;
  --coral: #e48676;
  --coral-soft: #472923;
  --blue: #69afc8;
  --blue-soft: #203a44;
  --chart-grid: #2a3931;
  --header-bg: #0b120e;
  --header-ink: #e8f0eb;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background-color: var(--canvas);
  background-image:
    linear-gradient(rgba(24, 79, 58, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 79, 58, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  font-family: "DM Sans", sans-serif;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  color: var(--header-ink);
  background: var(--header-bg);
  border-bottom: 4px solid var(--amber);
}

.header-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-block,
.header-actions,
.sync-state,
.filters,
.panel-heading,
.footer-inner {
  display: flex;
  align-items: center;
}

.brand-block {
  gap: 16px;
}

.header-actions {
  gap: 10px;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  padding: 0;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #d9e3dd;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  outline: 3px solid rgba(215, 151, 42, 0.28);
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #17211b;
  background: var(--amber);
  border-radius: 8px;
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-header .eyebrow {
  color: #a9c9b8;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
strong {
  font-family: "Manrope", sans-serif;
}

h1 {
  margin-bottom: 0;
  font-size: 1.7rem;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.55rem;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 4px;
  font-size: 1rem;
  letter-spacing: 0;
}

.sync-state {
  min-width: 224px;
  padding: 10px 12px;
  align-items: flex-start;
  gap: 10px;
  color: #d9e3dd;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.sync-state:hover:not(:disabled),
.sync-state:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  outline: 3px solid rgba(215, 151, 42, 0.28);
  outline-offset: 2px;
}

.sync-state:disabled {
  cursor: default;
}

.sync-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  flex: 0 0 auto;
  background: #69c58f;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(105, 197, 143, 0.14);
}

.sync-copy {
  display: grid;
  gap: 2px;
  line-height: 1.3;
}

#syncLabel {
  font-weight: 600;
}

#syncCountdown {
  color: #a9c9b8;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.summary-band,
.portals-section,
.analytics-section,
.insights-section,
.intelligence-section,
.applications-section {
  padding: 42px 0;
}

.summary-band {
  background: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid var(--line);
}

.expandable-sections {
  padding: 18px 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.expandable-sections > section {
  min-width: 0;
  padding: 0;
}

.expandable-sections > section > .shell {
  width: 100%;
  min-height: 104px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.expandable-sections > section:not(.is-expanded) > .shell:hover {
  transform: translateY(-2px);
  border-color: #a9beb1;
  box-shadow: 0 16px 34px rgba(28, 45, 35, 0.12);
}

.expandable-sections > section:not(.is-expanded) > .shell:focus-visible {
  border-color: var(--forest);
  outline: 3px solid rgba(24, 79, 58, 0.16);
  outline-offset: 2px;
}

.expandable-sections > section:not(.is-expanded) .section-heading {
  margin: 0;
  align-items: stretch;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
}

.expandable-sections > section:not(.is-expanded) .section-heading h2 {
  font-size: 1.1rem;
}

.section-card-meta {
  margin-top: 5px;
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.expandable-sections > section:not(.is-expanded) .section-toggle {
  display: none;
}

.expandable-sections > section.is-expanded {
  grid-column: 1 / -1;
}

.expandable-sections > section.is-expanded > .shell {
  min-height: 0;
  padding: 24px;
  cursor: default;
}

.analytics-section {
  padding-bottom: 20px;
}

.insights-section,
.intelligence-section {
  padding-top: 20px;
  padding-bottom: 20px;
}

.portals-section {
  padding-bottom: 20px;
}

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

.portal-link {
  min-width: 0;
  min-height: 72px;
  padding: 12px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(28, 45, 35, 0.06);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.portal-link:hover {
  transform: translateY(-2px);
  border-color: #a9beb1;
  box-shadow: 0 12px 24px rgba(28, 45, 35, 0.1);
}

.portal-link:focus-visible {
  border-color: var(--forest);
  outline: 3px solid rgba(24, 79, 58, 0.16);
  outline-offset: 2px;
}

.portal-logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #f5f7f5;
  border: 1px solid #e4e9e6;
  border-radius: 7px;
}

.portal-logo img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.portal-link > span:nth-child(2) {
  min-width: 0;
}

.portal-link strong,
.portal-link small {
  overflow: hidden;
  display: block;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-link strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.86rem;
}

.portal-link small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.71rem;
}

.portal-link > svg {
  width: 15px;
  height: 15px;
  color: #87938c;
}

.job-postings-toolbar {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 160px auto;
  align-items: center;
  gap: 10px;
}

.job-search-control,
.job-select-control {
  height: 40px;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid #bdcbc2;
  border-radius: 6px;
}

.job-select-control {
  background: var(--paper);
  border: 2px solid var(--blue);
  box-shadow: 0 3px 10px rgba(28, 45, 35, 0.1);
}

.job-search-control:focus-within,
.job-select-control:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(24, 79, 58, 0.1);
}

.job-search-control svg,
.job-select-control svg {
  width: 16px;
  height: 16px;
  position: absolute;
  pointer-events: none;
}

.job-search-control svg {
  left: 11px;
}

.job-select-control svg {
  width: 28px;
  height: 32px;
  right: 2px;
  padding: 7px;
  color: var(--paper);
  background: var(--blue);
  border-radius: 4px;
}

.job-search-control input,
.job-select-control select {
  width: 100%;
  height: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 0.8rem;
}

.job-search-control input {
  padding: 0 12px 0 35px;
}

.job-select-control select {
  padding: 0 32px 0 11px;
  appearance: none;
  font-weight: 700;
  cursor: pointer;
}

.job-postings-toolbar .result-summary {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

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

.job-posting-card {
  min-width: 0;
  min-height: 280px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 8px;
}

.job-posting-heading,
.job-posting-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.job-posting-heading p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-match-score {
  padding: 3px 7px;
  flex: 0 0 auto;
  color: #215d45;
  background: var(--forest-soft);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.job-posting-card h3 {
  min-height: 48px;
  margin: 10px 0 12px;
  overflow: hidden;
  display: -webkit-box;
  font-size: 1rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.job-posting-meta {
  display: grid;
  gap: 6px;
}

.job-posting-meta span {
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-posting-meta .job-referral-meta {
  align-items: flex-start;
  line-height: 1.35;
  white-space: normal;
}

.job-posting-meta svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--blue);
}

.job-posting-skills {
  margin: 13px 0 16px;
  overflow: hidden;
  display: -webkit-box;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.job-posting-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.job-posting-footer > span {
  color: var(--muted);
  font-size: 0.7rem;
}

.job-apply-link {
  min-height: 34px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--paper);
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.job-apply-link:hover,
.job-apply-link:focus-visible {
  outline: 3px solid rgba(24, 79, 58, 0.14);
  outline-offset: 2px;
}

.job-apply-link.is-applied {
  color: var(--forest);
  background: var(--forest-soft);
  border-color: var(--forest);
}

.job-apply-link.is-unavailable {
  color: #7d8781;
  background: #eef1ef;
  border-color: #d7ded9;
  cursor: not-allowed;
}

.job-apply-link.is-unavailable:hover {
  outline: 0;
}

.job-apply-link svg {
  width: 14px;
  height: 14px;
}

.applications-section {
  padding-top: 24px;
  padding-bottom: 60px;
}

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

.compact-heading {
  margin-bottom: 18px;
}

.section-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.job-source-link {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--forest);
  background: #f4f7f5;
  border: 1px solid #bdcbc2;
  border-radius: 6px;
}

.job-source-link:hover,
.job-source-link:focus-visible {
  border-color: var(--forest);
  outline: 3px solid rgba(24, 79, 58, 0.12);
  outline-offset: 1px;
}

.job-source-link svg {
  width: 16px;
  height: 16px;
}

.expandable-sections > section:not(.is-expanded) > .shell[data-inline-action] .section-heading {
  align-items: flex-start;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
}

.expandable-sections > section:not(.is-expanded) > .shell[data-inline-action] .section-toggle {
  display: inline-flex;
}

.section-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  background: #f4f7f5;
  border: 1px solid #bdcbc2;
  border-radius: 6px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.section-toggle span {
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-toggle:hover,
.section-toggle:focus-visible {
  border-color: var(--forest);
  outline: 3px solid rgba(24, 79, 58, 0.12);
  outline-offset: 1px;
}

.section-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}

.section-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.collapsible-section-content > .insight-carousel-controls {
  margin-bottom: 12px;
  justify-content: flex-end;
}

.result-summary {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.daily-focus-section {
  padding: 28px 0 32px;
  background: #f2f5f1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.focus-cadence,
.focus-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.focus-support-grid {
  margin-top: 16px;
}

.focus-lane,
.focus-support {
  min-width: 0;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--forest);
  border-radius: 8px;
}

.focus-overdue {
  border-top-color: #b84a4a;
}

.focus-today {
  border-top-color: #bd7916;
}

.focus-upcoming {
  border-top-color: var(--blue);
}

.focus-lane-heading,
.focus-support-heading,
.focus-lane-heading > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.focus-lane-heading {
  justify-content: space-between;
  margin-bottom: 12px;
}

.focus-support-heading {
  margin-bottom: 12px;
}

.focus-lane-heading h3,
.focus-support-heading h3 {
  margin: 0;
  font-size: 0.92rem;
}

.focus-lane-heading svg,
.focus-support-heading svg {
  width: 17px;
  height: 17px;
  color: var(--forest);
}

.focus-lane-heading > strong {
  min-width: 28px;
  min-height: 28px;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--forest-soft);
  border-radius: 6px;
  font-size: 0.82rem;
}

.focus-list {
  display: grid;
  gap: 8px;
}

.focus-item {
  min-width: 0;
  padding-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.focus-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.focus-item > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.focus-item strong,
.focus-item span,
.focus-item small {
  overflow-wrap: anywhere;
}

.focus-item strong {
  font-size: 0.82rem;
}

.focus-item span {
  color: var(--ink);
  font-size: 0.78rem;
}

.focus-item small,
.focus-empty {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.focus-empty {
  margin: 0;
  padding: 10px 0;
}

.follow-up-complete,
.focus-job-link {
  min-height: 30px;
  flex: 0 0 auto;
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--paper);
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.follow-up-complete:hover,
.follow-up-complete:focus-visible,
.focus-job-link:hover,
.focus-job-link:focus-visible {
  outline: 3px solid rgba(24, 79, 58, 0.14);
  outline-offset: 2px;
}

.follow-up-complete svg,
.focus-job-link svg {
  width: 13px;
  height: 13px;
}

.follow-up-cell {
  white-space: nowrap;
}

.metric {
  width: 100%;
  min-height: 174px;
  padding: 20px;
  position: relative;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--forest);
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(28, 45, 35, 0.12);
}

.metric:focus-visible,
.metric.is-active {
  border-color: var(--forest);
  outline: 3px solid rgba(24, 79, 58, 0.16);
  outline-offset: 2px;
}

.metric-active {
  border-top-color: var(--blue);
}

.metric-interview {
  border-top-color: var(--amber);
}

.metric-offer {
  border-top-color: var(--coral);
}

.metric-rejected {
  border-top-color: #b84a4a;
}

.metric-follow-up {
  border-top-color: #58744f;
}

.metric-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--forest-soft);
  border-radius: 7px;
}

.metric-active .metric-icon {
  color: var(--blue);
  background: var(--blue-soft);
}

.metric-interview .metric-icon {
  color: #9b6816;
  background: var(--amber-soft);
}

.metric-offer .metric-icon {
  color: var(--coral);
  background: var(--coral-soft);
}

.metric-rejected .metric-icon {
  color: #a43f3f;
  background: #f9e8e6;
}

.metric-follow-up .metric-icon {
  color: #46643e;
  background: #e7f0e3;
}

.metric-icon svg {
  width: 18px;
  height: 18px;
}

.metric p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.metric strong {
  display: block;
  font-size: 2rem;
  line-height: 1.15;
}

.metric > span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
}

.charts-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

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

.visual-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.visual-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.visual-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 18px;
}

.visual-carousel-card {
  scroll-snap-align: start;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.visual-carousel-card:hover {
  transform: translateY(-2px);
  border-color: #a9beb1;
  box-shadow: 0 16px 34px rgba(28, 45, 35, 0.12);
}

.visual-carousel-card:focus-visible {
  border-color: var(--forest);
  outline: 3px solid rgba(24, 79, 58, 0.16);
  outline-offset: -3px;
}

.visual-carousel-card canvas {
  cursor: default;
}

#statusChart {
  cursor: pointer;
}

.intelligence-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 18px) / 2);
  gap: 18px;
}

.compact-insight-grid {
  grid-auto-flow: initial;
  grid-auto-columns: initial;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-insight-grid .insight-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.insight-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.insight-carousel-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.insight-carousel-controls button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--paper);
  border: 1px solid #bdcbc2;
  border-radius: 6px;
  cursor: pointer;
}

.insight-carousel-controls button:hover:not(:disabled),
.insight-carousel-controls button:focus-visible {
  border-color: var(--forest);
  outline: 3px solid rgba(24, 79, 58, 0.12);
  outline-offset: 1px;
}

.insight-carousel-controls button:disabled {
  color: #aeb8b2;
  background: #f2f4f2;
  cursor: not-allowed;
}

.insight-carousel-controls svg {
  width: 17px;
  height: 17px;
}

#insightPosition {
  min-width: 74px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.insight-panel {
  min-width: 0;
  padding: 22px;
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.insight-panel:hover {
  transform: translateY(-2px);
  border-color: #a9beb1;
  box-shadow: 0 16px 34px rgba(28, 45, 35, 0.12);
}

.insight-panel:focus-visible {
  border-color: var(--forest);
  outline: 3px solid rgba(24, 79, 58, 0.16);
  outline-offset: -3px;
}

.insight-content {
  margin-top: 18px;
}

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

.insight-metric {
  min-width: 0;
  padding: 10px;
  background: #f7f9f7;
  border: 1px solid #e6ebe7;
  border-radius: 7px;
}

.insight-metric strong,
.insight-metric span,
.insight-metric small {
  display: block;
}

.insight-metric strong {
  overflow: hidden;
  color: var(--forest);
  font-size: 1.05rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-metric span {
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
}

.insight-metric small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-list {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.insight-row {
  min-height: 48px;
  padding: 9px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #edf0ee;
}

.insight-row:last-child {
  border-bottom: 0;
}

.insight-row > div {
  min-width: 0;
}

.insight-row strong,
.insight-row span {
  overflow: hidden;
  display: block;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-row strong {
  font-size: 0.78rem;
}

.insight-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}

.insight-row b {
  flex: 0 0 auto;
  color: var(--forest);
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
}

.insight-note {
  margin: 12px 0 0;
  padding-top: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  line-height: 1.45;
}

.action-panel {
  border-top: 3px solid var(--amber);
}

.insight-dialog-body {
  max-height: min(620px, calc(100dvh - 155px));
  padding: 22px;
  overflow: auto;
}

.insight-dialog-body .insight-content {
  margin: 0;
}

.insight-detail-dialog .insight-metric strong {
  font-size: 1.25rem;
}

.visualization-dialog-body {
  max-height: min(650px, calc(100dvh - 135px));
  padding: 22px;
  overflow: auto;
}

.visualization-dialog-body .chart-panel {
  width: 100%;
  padding: 0;
  border: 0;
  box-shadow: none;
  cursor: default;
  transform: none;
}

.visualization-dialog-body .panel-heading {
  display: none;
}

.visualization-dialog-body .chart-frame {
  height: min(460px, calc(100dvh - 235px));
  margin-top: 0;
}

.visualization-dialog-body .referral-summary {
  margin-top: 0;
}

.visualization-dialog-body .referral-frame {
  height: min(360px, calc(100dvh - 330px));
  margin-top: 16px;
}

.visualization-dialog-body .stage-funnel {
  margin-top: 0;
}

.chart-panel {
  min-width: 0;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.compact-analysis-panel {
  width: min(100%, 860px);
  margin: 0 auto;
}

.panel-heading {
  min-height: 52px;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.panel-heading > svg {
  flex: 0 0 auto;
  color: var(--forest);
}

.chart-frame {
  min-width: 0;
  height: 290px;
  margin-top: 18px;
  position: relative;
}

.chart-frame canvas {
  max-width: 100%;
}

#statusChart {
  cursor: pointer;
}

.stage-funnel {
  margin-top: 18px;
}

.funnel-row + .funnel-row {
  margin-top: 13px;
}

.funnel-label {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8rem;
}

.funnel-label span {
  color: var(--muted);
}

.funnel-track {
  height: 9px;
  overflow: hidden;
  background: #edf1ee;
  border-radius: 4px;
}

.funnel-track span {
  height: 100%;
  display: block;
  background: var(--forest);
  border-radius: 4px;
}

.funnel-row:nth-child(2) .funnel-track span,
.funnel-row:nth-child(3) .funnel-track span {
  background: var(--blue);
}

.funnel-row:nth-child(4) .funnel-track span,
.funnel-row:nth-child(5) .funnel-track span {
  background: var(--amber);
}

.funnel-row:nth-child(6) .funnel-track span {
  background: var(--coral);
}

.funnel-terminal,
.data-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.funnel-terminal {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.referral-summary {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.referral-summary > div {
  min-width: 0;
  padding: 10px;
  background: #f7f9f7;
  border: 1px solid #e6ebe7;
  border-radius: 7px;
}

.referral-summary strong,
.referral-summary span {
  display: block;
}

.referral-summary strong {
  font-size: 1.05rem;
}

.referral-summary span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}

.referral-frame {
  height: 180px;
  margin-top: 12px;
}

.compensation-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compensation-table {
  min-width: 720px;
}

.inline-empty {
  min-height: 120px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: var(--muted);
  text-align: left;
}

.inline-empty svg {
  flex: 0 0 auto;
  color: var(--forest);
}

.inline-empty strong,
.inline-empty span {
  display: block;
}

.inline-empty strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.inline-empty span {
  margin-top: 3px;
  font-size: 0.78rem;
}

.applications-heading {
  align-items: center;
}

.applications-toolbar {
  margin-bottom: 18px;
  justify-content: flex-end;
}

.filters {
  gap: 10px;
}

.search-control,
.select-control {
  height: 42px;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.select-control {
  background: var(--paper);
  border: 2px solid var(--blue);
  box-shadow: 0 3px 10px rgba(28, 45, 35, 0.1);
}

.search-control:focus-within,
.select-control:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(24, 79, 58, 0.12);
}

.search-control svg,
.select-control svg {
  width: 17px;
  height: 17px;
  position: absolute;
  pointer-events: none;
}

.search-control svg {
  left: 13px;
}

.select-control svg {
  width: 30px;
  height: 34px;
  right: 2px;
  padding: 8px;
  color: var(--paper);
  background: var(--blue);
  border-radius: 5px;
}

.search-control input,
.select-control select {
  height: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.search-control input {
  width: 250px;
  padding: 0 14px 0 40px;
}

.select-control select {
  min-width: 170px;
  padding: 0 40px 0 13px;
  appearance: none;
  font-weight: 700;
  cursor: pointer;
}

.job-select-control:hover,
.select-control:hover {
  border-color: var(--forest);
  box-shadow: 0 5px 14px rgba(28, 45, 35, 0.14);
}

.job-select-control:hover svg,
.select-control:hover svg,
.job-select-control:focus-within svg,
.select-control:focus-within svg {
  background: var(--forest);
}

.job-select-control select option,
.job-select-control select optgroup,
.select-control select option,
.select-control select optgroup {
  color: var(--ink);
  background: var(--paper);
  font-weight: 600;
}

.role-control select {
  width: 230px;
}

.company-control select {
  width: 190px;
}

.starred-filter {
  min-height: 42px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.starred-filter:hover,
.starred-filter:focus-visible,
.starred-filter[aria-pressed="true"] {
  color: #7d5412;
  background: var(--amber-soft);
  border-color: var(--amber);
  outline: 0;
}

.starred-filter:focus-visible {
  box-shadow: 0 0 0 3px rgba(215, 151, 42, 0.2);
}

.starred-filter svg {
  width: 17px;
  height: 17px;
}

.starred-filter[aria-pressed="true"] svg {
  fill: currentColor;
}

.drilldown-bar {
  min-height: 48px;
  margin-bottom: 14px;
  padding: 9px 10px 9px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #315342;
  background: var(--forest-soft);
  border: 1px solid #bfd4c7;
  border-radius: 7px;
}

.drilldown-bar span {
  margin-right: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.drilldown-bar strong {
  font-size: 0.86rem;
}

.drilldown-bar button {
  height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--forest);
  background: var(--paper);
  border: 1px solid #b8cbbf;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.drilldown-bar button:hover,
.drilldown-bar button:focus-visible {
  border-color: var(--forest);
  outline: 2px solid rgba(24, 79, 58, 0.12);
  outline-offset: 1px;
}

.drilldown-bar svg {
  width: 15px;
  height: 15px;
}

.table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 2760px;
  border-collapse: collapse;
}

.compensation-table {
  min-width: 720px;
}

th,
td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: #526159;
  background: #f7f9f7;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.column-header-content {
  min-width: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.column-header-content > span {
  min-width: 0;
}

.column-filter-button {
  width: 28px;
  height: 28px;
  padding: 0;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #6e7b73;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
}

.column-filter-button:hover,
.column-filter-button:focus-visible,
.column-filter-button[aria-expanded="true"] {
  color: var(--forest);
  background: var(--forest-soft);
  border-color: #bfd4c7;
  outline: 0;
}

.column-filter-button.is-active {
  color: var(--paper);
  background: var(--forest);
  border-color: var(--forest);
}

.column-filter-button svg {
  width: 15px;
  height: 15px;
}

.email-link-cell {
  min-width: 132px;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--forest);
  font-weight: 700;
  text-decoration-color: #9bb4a6;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.email-link:hover,
.email-link:focus-visible {
  color: #0f3929;
  text-decoration-color: var(--amber);
  outline: 2px solid rgba(24, 79, 58, 0.16);
  outline-offset: 3px;
}

.email-link svg {
  width: 14px;
  height: 14px;
}

.column-filter-menu {
  width: min(300px, calc(100vw - 16px));
  max-height: min(480px, calc(100dvh - 16px));
  padding: 12px;
  position: fixed;
  z-index: 1000;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #bdcbc2;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(13, 31, 21, 0.22);
  text-transform: none;
}

.column-filter-heading,
.column-filter-actions,
.column-filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.column-filter-heading span,
.column-filter-heading strong {
  display: block;
}

.column-filter-heading span {
  color: var(--muted);
  font-size: 0.68rem;
}

.column-filter-heading strong {
  margin-top: 1px;
  font-size: 0.86rem;
}

.column-filter-heading > button {
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f4f6f4;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}

.column-filter-heading svg {
  width: 15px;
  height: 15px;
}

.column-filter-search {
  height: 36px;
  margin-top: 10px;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.column-filter-search:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(24, 79, 58, 0.1);
}

.column-filter-search svg {
  width: 15px;
  height: 15px;
  position: absolute;
  left: 10px;
}

.column-filter-search input {
  width: 100%;
  height: 100%;
  padding: 0 10px 0 32px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 0.78rem;
}

.column-filter-actions {
  margin-top: 8px;
  justify-content: flex-start;
  gap: 6px;
}

.column-filter-actions button {
  padding: 3px 6px;
  color: var(--forest);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
}

.column-filter-options {
  max-height: 240px;
  margin: 7px -4px 0;
  padding: 3px 4px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.column-filter-option {
  min-height: 34px;
  padding: 6px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  border-radius: 5px;
  cursor: pointer;
}

.column-filter-option:hover {
  background: #f4f7f5;
}

.column-filter-option input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--forest);
}

.column-filter-option span {
  overflow-wrap: anywhere;
  font-size: 0.76rem;
  line-height: 1.4;
}

.column-filter-empty {
  margin: 0;
  padding: 18px 8px;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.column-filter-footer {
  margin-top: 10px;
}

.column-filter-footer span {
  color: var(--muted);
  font-size: 0.7rem;
}

.column-filter-footer button {
  height: 32px;
  padding: 0 14px;
  color: var(--paper);
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
}

.column-filter-heading button:hover,
.column-filter-heading button:focus-visible,
.column-filter-actions button:hover,
.column-filter-actions button:focus-visible,
.column-filter-footer button:hover,
.column-filter-footer button:focus-visible {
  outline: 3px solid rgba(24, 79, 58, 0.12);
  outline-offset: 1px;
}

td {
  font-size: 0.9rem;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fafcfb;
}

tbody tr.is-starred {
  background: var(--amber-soft);
}

tbody tr.is-starred:hover {
  background: color-mix(in srgb, var(--amber-soft) 82%, var(--paper));
}

.watch-column,
.watch-cell {
  width: 58px;
  min-width: 58px;
  padding-right: 8px;
  padding-left: 12px;
  text-align: center;
}

.application-star {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}

.application-star:hover,
.application-star:focus-visible {
  color: #7d5412;
  background: var(--amber-soft);
  border-color: var(--amber);
  outline: 0;
}

.application-star:focus-visible {
  box-shadow: 0 0 0 3px rgba(215, 151, 42, 0.2);
}

.application-star.is-active {
  color: var(--amber);
}

.application-star.is-active svg {
  fill: currentColor;
}

.application-star svg {
  width: 18px;
  height: 18px;
}

.company-cell {
  font-weight: 700;
}

.cell-primary,
.cell-secondary {
  display: block;
}

.cell-primary {
  color: var(--ink);
}

.cell-secondary {
  max-width: 250px;
  margin-top: 4px;
  overflow: hidden;
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-cell,
.location-cell {
  color: var(--muted);
  white-space: nowrap;
}

.action-cell {
  width: 260px;
}

.recruiter-cell,
.notes-cell {
  min-width: 230px;
}

.pagination {
  min-height: 54px;
  margin-top: 14px;
  padding: 8px 10px 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pagination p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.pagination > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pagination button {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--paper);
  border: 1px solid #bdcbc2;
  border-radius: 6px;
  cursor: pointer;
}

.pagination button:hover:not(:disabled),
.pagination button:focus-visible {
  border-color: var(--forest);
  outline: 2px solid rgba(24, 79, 58, 0.12);
  outline-offset: 1px;
}

.pagination button:disabled {
  color: #aeb8b2;
  background: #f2f4f2;
  cursor: not-allowed;
}

.pagination button svg {
  width: 17px;
  height: 17px;
}

#pageIndicator {
  min-width: 86px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.kpi-dialog {
  width: min(920px, calc(100% - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #cbd6ce;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(13, 31, 21, 0.28);
}

.kpi-dialog[open] {
  animation: dialog-enter 180ms ease-out;
}

.kpi-dialog::backdrop {
  background: rgba(13, 31, 21, 0.62);
  backdrop-filter: blur(3px);
}

.kpi-dialog-header {
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.kpi-dialog-header h2 {
  font-size: 1.25rem;
}

.offer-compensation {
  padding: 18px 22px;
  background: #f7f9f7;
  border-bottom: 1px solid var(--line);
}

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

.offer-compensation-heading h3 {
  margin-bottom: 0;
}

.offer-compensation .compensation-table {
  min-width: 640px;
}

.update-summary-body {
  max-height: min(620px, calc(100dvh - 140px));
  padding: 20px 22px;
  overflow-y: auto;
}

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

.update-summary-metrics > div {
  min-width: 0;
  padding: 12px;
  background: #f4f7f5;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.update-summary-metrics strong,
.update-summary-metrics span {
  display: block;
}

.update-summary-metrics strong {
  font-size: 1.25rem;
}

.update-summary-metrics span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.update-summary-list {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.update-summary-item {
  min-width: 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.update-summary-item:last-child {
  border-bottom: 0;
}

.update-summary-item > div:first-child,
.update-summary-item strong,
.update-summary-item span {
  min-width: 0;
}

.update-summary-item strong,
.update-summary-item > div:first-child > span {
  overflow: hidden;
  display: block;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-summary-item > div:first-child > span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
}

.update-summary-item-details {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 4px;
}

.update-summary-item-details small,
.update-summary-remaining {
  color: var(--muted);
  font-size: 0.7rem;
}

.update-summary-remaining {
  margin: 0;
  padding: 10px 14px;
  text-align: center;
}

.update-summary-empty {
  min-height: 140px;
}

.update-summary-body > .data-note {
  margin: 12px 0 0;
}

.dialog-close {
  width: 36px;
  height: 36px;
  padding: 0;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #f4f6f4;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  border-color: var(--forest);
  outline: 3px solid rgba(24, 79, 58, 0.12);
  outline-offset: 1px;
}

.dialog-close svg {
  width: 18px;
  height: 18px;
}

.kpi-dialog-table-wrap {
  max-height: min(600px, calc(100dvh - 155px));
  overflow: auto;
}

.kpi-dialog-table {
  min-width: 900px;
}

.kpi-dialog-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.status-pill {
  width: fit-content;
  max-width: 180px;
  padding: 5px 9px;
  overflow: hidden;
  display: block;
  color: #315342;
  background: var(--forest-soft);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill + .cell-secondary {
  margin-top: 7px;
}

.status-pill[data-tone="interview"] {
  color: #81550d;
  background: var(--amber-soft);
}

.status-pill[data-tone="offer"] {
  color: #8d392c;
  background: var(--coral-soft);
}

.status-pill[data-tone="closed"] {
  color: #657069;
  background: #e9edeb;
}

.load-message,
.empty-state {
  padding: 28px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.load-message {
  margin-bottom: 14px;
  color: #7e451e;
  background: #fff6e9;
  border-color: #efd7b6;
}

.empty-state svg {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  color: var(--forest);
}

.empty-state h3 {
  margin-bottom: 5px;
}

.empty-state p {
  margin-bottom: 0;
}

footer {
  color: #c9d6ce;
  background: var(--header-bg);
}

.footer-inner {
  min-height: 78px;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.8rem;
}

.footer-inner a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e5eee8;
  font-weight: 700;
  text-decoration-color: #809c8c;
  text-underline-offset: 3px;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--header-ink);
  text-decoration-color: var(--amber);
  outline: 2px solid rgba(215, 151, 42, 0.45);
  outline-offset: 3px;
}

.footer-inner a svg {
  width: 14px;
  height: 14px;
}

.sr-only {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

:root[data-theme="dark"] body {
  background-image:
    linear-gradient(rgba(117, 198, 155, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 198, 155, 0.045) 1px, transparent 1px);
}

:root[data-theme="dark"] .summary-band {
  background: rgba(23, 34, 28, 0.72);
}

:root[data-theme="dark"] .daily-focus-section {
  background: #121b16;
}

:root[data-theme="dark"] .portal-logo,
:root[data-theme="dark"] .insight-metric,
:root[data-theme="dark"] .referral-summary > div,
:root[data-theme="dark"] .offer-compensation,
:root[data-theme="dark"] .update-summary-metrics > div {
  background: #1d2a23;
  border-color: var(--line);
}

:root[data-theme="dark"] .job-search-control,
:root[data-theme="dark"] .job-select-control,
:root[data-theme="dark"] .section-toggle,
:root[data-theme="dark"] .job-source-link,
:root[data-theme="dark"] .insight-carousel-controls button,
:root[data-theme="dark"] .pagination button,
:root[data-theme="dark"] .column-filter-menu,
:root[data-theme="dark"] .kpi-dialog {
  border-color: #45594d;
}

:root[data-theme="dark"] .job-select-control,
:root[data-theme="dark"] .select-control {
  border-color: var(--blue);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .section-toggle,
:root[data-theme="dark"] .job-source-link,
:root[data-theme="dark"] .column-filter-heading > button,
:root[data-theme="dark"] .dialog-close {
  background: #202d26;
}

:root[data-theme="dark"] .job-apply-link.is-unavailable,
:root[data-theme="dark"] .insight-carousel-controls button:disabled,
:root[data-theme="dark"] .pagination button:disabled {
  color: #78877f;
  background: #202923;
  border-color: #35443b;
}

:root[data-theme="dark"] .metric-rejected .metric-icon {
  color: #ef9185;
  background: #482925;
}

:root[data-theme="dark"] .metric-follow-up .metric-icon {
  color: #9bc88e;
  background: #293d27;
}

:root[data-theme="dark"] .funnel-track {
  background: #25332b;
}

:root[data-theme="dark"] .insight-row {
  border-bottom-color: var(--line);
}

:root[data-theme="dark"] th {
  color: #bdcac2;
  background: #1d2a23;
}

:root[data-theme="dark"] tbody tr:hover,
:root[data-theme="dark"] .column-filter-option:hover {
  background: #1b2821;
}

:root[data-theme="dark"] .drilldown-bar {
  color: var(--forest);
  border-color: #456955;
}

:root[data-theme="dark"] .email-link:hover,
:root[data-theme="dark"] .email-link:focus-visible {
  color: #9bdab8;
}

:root[data-theme="dark"] .status-pill {
  color: var(--forest);
}

:root[data-theme="dark"] .status-pill[data-tone="interview"] {
  color: var(--amber);
}

:root[data-theme="dark"] .status-pill[data-tone="offer"] {
  color: var(--coral);
}

:root[data-theme="dark"] .status-pill[data-tone="closed"] {
  color: var(--muted);
  background: #27322c;
}

:root[data-theme="dark"] .load-message {
  color: var(--amber);
  background: #332a18;
  border-color: #665329;
}

@media (max-width: 900px) {
  .expandable-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .job-postings-toolbar {
    grid-template-columns: minmax(220px, 1fr) repeat(2, 160px);
  }

  .job-postings-toolbar .result-summary {
    grid-column: 1 / -1;
    text-align: left;
  }

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

  .portal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .focus-cadence,
  .focus-support-grid {
    grid-template-columns: 1fr;
  }

  .charts-grid {
    grid-template-columns: 1fr;
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }

  .intelligence-grid {
    grid-template-columns: none;
  }

  .compact-insight-grid {
    grid-auto-columns: initial;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 0;
    padding: 18px 0;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .header-actions {
    width: 100%;
  }

  h1 {
    font-size: 1.35rem;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .sync-state {
    width: 100%;
    min-width: 0;
  }

  .summary-band,
  .portals-section,
  .analytics-section,
  .insights-section,
  .intelligence-section,
  .applications-section {
    padding: 32px 0;
  }

  .expandable-sections {
    padding: 20px 0;
    grid-template-columns: 1fr;
  }

  .expandable-sections > section > .shell {
    min-height: 104px;
  }

  .section-heading,
  .applications-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .offer-compensation-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

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

  .update-summary-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .update-summary-item-details {
    align-items: flex-start;
  }

  .filters {
    align-items: stretch;
    flex-direction: column;
  }

  .starred-filter {
    width: 100%;
  }

  .job-postings-toolbar,
  .job-postings-grid {
    grid-template-columns: 1fr;
  }

  .job-posting-card {
    min-height: 0;
  }

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

  .search-control input,
  .select-control select {
    width: 100%;
  }

  .select-control select {
    max-width: none;
  }

  .chart-panel {
    padding: 18px;
  }

  .chart-frame {
    height: 255px;
  }

  .referral-frame {
    height: 190px;
  }

  .insight-panel {
    padding: 18px;
  }

  .intelligence-grid {
    grid-auto-columns: 100%;
  }

  .insight-carousel-controls {
    justify-content: space-between;
  }

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

  .pagination {
    padding: 12px;
    align-items: stretch;
    flex-direction: column;
  }

  .pagination > div {
    justify-content: space-between;
  }

  .footer-inner {
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 158px;
  }

  .focus-item {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}