:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #647286;
  --line: #dfe5ee;
  --soft: #f4f6f8;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --brand: #0f6f64;
  --brand-dark: #0d5c53;
  --accent: #a86812;
  --sidebar: #142033;
  --sidebar-soft: rgba(255, 255, 255, 0.08);
  --warn: #b45309;
  --danger: #b42318;
  --ok: #15803d;
  --shadow: 0 10px 24px rgba(23, 32, 51, 0.08);
  --shadow-soft: 0 2px 10px rgba(23, 32, 51, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: Aptos, "IBM Plex Sans", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

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

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px 1fr;
}

.sidebar {
  background: var(--sidebar);
  color: white;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}

.mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8fbf6;
  color: var(--brand-dark);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 14px;
}

.nav-section {
  display: grid;
  gap: 6px;
}

.nav-section > span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 12px 2px;
}

.nav button {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  text-align: left;
  border-radius: 8px;
  min-height: 36px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease;
}

.icon {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: currentColor;
}

.icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav button.active,
.nav button:hover {
  color: white;
  background: var(--sidebar-soft);
}

.quick-jump {
  position: relative;
  width: min(420px, 34vw);
}

.quick-jump input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--panel-soft);
}

.quick-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 6px;
  max-height: 360px;
  overflow: auto;
}

.quick-results button {
  width: 100%;
  display: grid;
  gap: 2px;
  text-align: left;
  background: transparent;
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
}

.quick-results button:hover {
  background: var(--soft);
}

.quick-results span {
  color: var(--muted);
  font-size: 13px;
}

.main {
  min-width: 0;
  background: var(--soft);
}

.topbar {
  height: 66px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 8;
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.02);
}

.content {
  padding: 24px;
  max-width: 1360px;
  margin: 0 auto;
}

.page-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(223, 229, 238, 0.8);
}

.dashboard-hero,
.pipeline-hero,
.candidate-hero,
.campaign-builder-hero {
  border: 1px solid rgba(223, 229, 238, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.92)),
    repeating-linear-gradient(90deg, rgba(23, 32, 51, 0.035) 0, rgba(23, 32, 51, 0.035) 1px, transparent 1px, transparent 48px);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.section-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-action-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

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

h1 {
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 6px;
}

h2 {
  font-size: 19px;
  margin-bottom: 10px;
}

h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

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

.danger-text {
  color: var(--danger);
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

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

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

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 16px;
  margin-top: 16px;
}

.first-funnel-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: start;
  gap: 18px;
  margin-top: 14px;
  border-color: #cbdad6;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)),
    linear-gradient(90deg, rgba(15, 111, 100, 0.07), rgba(168, 104, 18, 0.06));
}

.first-funnel-panel h2 {
  margin-bottom: 6px;
}

.first-funnel-main {
  min-width: 0;
}

.first-funnel-side {
  display: grid;
  gap: 12px;
}

.apply-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #d8e2ea;
  border-radius: 8px;
  background: white;
}

.apply-link-box span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.first-funnel-side .mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 0;
}

.first-funnel-side .mini-list span {
  border-left: 0;
  padding: 0 9px;
  color: #24524d;
  font-size: 12px;
}

.source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.focus-panel {
  min-height: 256px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.panel,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.panel {
  padding: 18px;
}

.card {
  padding: 13px;
}

.metric {
  min-height: 108px;
  display: grid;
  align-content: space-between;
  border-top: 4px solid rgba(15, 111, 100, 0.18);
}

.metric-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.metric strong {
  display: block;
  font-size: 32px;
  margin-top: 8px;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: #e9eef5;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: #dde5ef;
}

.btn.primary {
  background: var(--brand);
  color: white;
}

.btn.primary:hover {
  background: var(--brand-dark);
}

.btn.danger {
  background: #fee4e2;
  color: var(--danger);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
}

.btn.ghost:hover {
  background: var(--panel-soft);
  border-color: #c9d3df;
}

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

.note-starters {
  margin-bottom: 10px;
}

label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-weight: 700;
  font-size: 13px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 9px 11px;
  outline: none;
  min-height: 38px;
}

textarea {
  resize: vertical;
  min-height: 108px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #334155;
}

.check-row input {
  width: auto;
}

.setup-suggestions {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.setup-suggestions strong {
  font-size: 13px;
}

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

.suggestion-list button {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 111, 100, 0.2);
  border-radius: 6px;
  background: white;
  color: #334155;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}

.suggestion-list button:hover {
  border-color: rgba(15, 111, 100, 0.42);
  background: #f1fbf8;
}

.task-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: white;
}

.done-text {
  color: var(--muted);
  text-decoration: line-through;
}

.list {
  display: grid;
  gap: 10px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.row:hover {
  border-color: #c8d2df;
}

.job-row {
  align-items: flex-start;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  background: #edf4f2;
  color: #24524d;
  font-size: 12px;
  font-weight: 800;
}

.pill.score {
  background: #dcfce7;
  color: var(--ok);
}

.pill.warn {
  background: #fef3c7;
  color: var(--warn);
}

.warn-panel {
  border-color: #fed7aa;
  background: #fffaf3;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(248px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.pipeline-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 240px auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}

.candidate-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px 220px auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}

.bulk-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.bulk-bar select {
  width: 220px;
}

.table-wrap {
  overflow-x: auto;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 14px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 9px;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  background: var(--panel-soft);
  letter-spacing: 0.04em;
}

.data-table input[type="checkbox"] {
  width: auto;
}

.lane {
  min-height: 520px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.98));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.lane-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(223, 229, 238, 0.86);
  font-weight: 800;
  color: #243247;
}

.stage-count {
  min-width: 30px;
  min-height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: white;
  color: var(--brand-dark);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 900;
}

.stage-pill {
  --stage-color: #647286;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--stage-color) 26%, white);
  background: color-mix(in srgb, var(--stage-color) 9%, white);
  color: #243247;
  font-size: 12px;
  font-weight: 900;
}

.stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--stage-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--stage-color) 13%, white);
}

.stage-new,
.stage-card-new {
  --stage-color: #0f6f64;
}

.stage-considering,
.stage-card-considering {
  --stage-color: #a86812;
}

.stage-first-interview,
.stage-card-first-interview {
  --stage-color: #2563eb;
}

.stage-second-interview,
.stage-card-second-interview {
  --stage-color: #0e7490;
}

.stage-hired,
.stage-card-hired {
  --stage-color: #15803d;
}

.stage-turned-down,
.stage-card-turned-down {
  --stage-color: #b42318;
}

.candidate-card {
  display: grid;
  gap: 10px;
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid var(--stage-color, var(--brand));
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-soft);
}

.candidate-card:hover {
  border-color: #a9b6c7;
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.08);
}

.candidate-card-top,
.candidate-identity {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.candidate-card-top {
  justify-content: space-between;
}

.candidate-avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8fbf6;
  color: var(--brand-dark);
  border: 1px solid rgba(15, 111, 100, 0.18);
  font-size: 12px;
  font-weight: 900;
}

.candidate-avatar.large {
  width: 52px;
  height: 52px;
  font-size: 16px;
}

.score-badge {
  min-width: 42px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ecfdf5;
  color: var(--ok);
  border: 1px solid #bbf7d0;
  font-weight: 900;
}

.candidate-actions {
  justify-content: flex-end;
  max-width: 720px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

.evidence-dot {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.evidence-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #a7b2c1;
}

.evidence-dot.ready {
  border-color: #b8ddd5;
  background: #f1fbf8;
  color: var(--brand-dark);
}

.evidence-dot.ready::before {
  background: var(--brand);
}

.evidence-dot.missing {
  border-style: dashed;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.source-chip {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.source-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.campaign-builder-panel {
  display: grid;
  gap: 14px;
}

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

.campaign-steps span {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid #d8e4e0;
  border-radius: 6px;
  background: #f8fbfa;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.campaign-steps strong {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-size: 12px;
}

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

.campaign-outcomes div {
  min-height: 86px;
  padding: 12px;
  border: 1px solid #d8e4e0;
  border-radius: 6px;
  background: #fbfdfc;
}

.campaign-outcomes strong,
.campaign-outcomes span {
  display: block;
}

.campaign-outcomes strong {
  margin-bottom: 6px;
}

.campaign-outcomes span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.campaign-ai-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid #cbdad6;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 111, 100, 0.08), rgba(168, 104, 18, 0.06)),
    #fbfdfc;
}

.campaign-ai-strip p {
  margin-bottom: 0;
}

.role-kit-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #dfd6c8;
  border-radius: 6px;
  background: #fffaf2;
}

.role-kit-strip p {
  margin-bottom: 0;
}

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

.helper-status {
  border: 1px solid #cbdad6;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  background: #f8fbfa;
  color: #24413c;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.role-brief-section {
  border-color: #c8d9d4;
  background: #fbfdfc;
}

.role-brief-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) repeat(2, minmax(260px, 1fr));
  gap: 12px;
}

.role-brief-grid label:first-child {
  grid-row: span 2;
}

.role-brief-grid textarea {
  min-height: 102px;
}

.campaign-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

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

.decision-map div {
  min-height: 78px;
  padding: 12px;
  border: 1px solid #d8e4e0;
  border-radius: 6px;
  background: #f8fbfa;
}

.decision-map strong,
.decision-map span {
  display: block;
}

.decision-map strong {
  margin-bottom: 6px;
}

.decision-map span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.precall-map {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #d9e5df;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  background: #fbfdfc;
}

.precall-map span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.pre-call-panel {
  border-left: 4px solid #a86812;
}

.first-call-panel {
  border-left: 4px solid #137f6d;
}

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

.handoff-grid > div {
  padding: 12px;
  border: 1px solid #d8e4e0;
  border-radius: 6px;
  background: #fbfdfc;
}

.handoff-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.handoff-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #d9e5df;
  border-radius: 6px;
  background: #fbfdfc;
  color: #334155;
  font-size: 13px;
  line-height: 1.4;
}

.handoff-note strong {
  color: var(--ink);
  white-space: nowrap;
}

.message-draft {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.message-draft textarea {
  min-height: 210px;
}

.vetting-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.vetting-list > div {
  padding: 12px;
  border: 1px solid #d8e4e0;
  border-radius: 6px;
  background: #fbfdfc;
}

.vetting-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vetting-list strong {
  display: block;
  margin-top: 6px;
}

.vetting-list ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.vetting-list li + li {
  margin-top: 5px;
}

.campaign-section textarea[name="jobPostingAd"] {
  min-height: 340px;
}

.criteria-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.profile-snapshot {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  background:
    linear-gradient(180deg, #f8fbfa, #f3f8f6);
}

.snapshot-item {
  border: 1px solid #d7e3df;
  border-radius: 6px;
  background: #ffffff;
  padding: 12px;
  min-width: 0;
}

.snapshot-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.snapshot-item strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.snapshot-item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.review-workflow-panel {
  border-left: 4px solid #244d47;
}

.review-workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.review-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 8px;
  align-items: start;
  min-height: 96px;
  padding: 10px;
  border: 1px solid #d8e4e0;
  border-radius: 6px;
  background: #ffffff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.review-step:hover {
  border-color: #9eb8b0;
  background: #fbfdfc;
}

.review-step span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #e8f2ef;
  color: #244d47;
  font-size: 12px;
  font-weight: 900;
}

.review-step strong {
  min-width: 0;
  font-size: 14px;
}

.review-step em {
  grid-column: 2;
  color: #244d47;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.review-step small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.mini-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.mini-list span {
  border-left: 3px solid #d7e3df;
  background: #f8fafc;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.score-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.bar {
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin: 7px 0;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--brand);
}

.bar-list {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  gap: 6px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #334155;
}

.auth-wrap,
.apply-wrap {
  min-height: 100vh;
  padding: 38px 20px;
  display: grid;
  place-items: start center;
}

.auth-card,
.apply-card {
  width: min(920px, 100%);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.auth-card.compact {
  width: min(560px, 100%);
}

.apply-header {
  border-bottom: 1px solid var(--line);
  margin: -28px -28px 24px;
  padding: 28px;
  background: #f8fafc;
  border-radius: 8px 8px 0 0;
}

.apply-checklist {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #d8e2ea;
  border-radius: 8px;
  background: #fbfcfd;
}

.apply-checklist strong {
  display: block;
  margin-bottom: 4px;
}

.apply-checklist .mini-list {
  margin-top: 8px;
}

.apply-form-section {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #d8e2ea;
}

.apply-form-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.apply-form-section.emphasized {
  padding: 16px;
  border: 1px solid #d8e2ea;
  border-radius: 8px;
  background: #fbfcfd;
}

.apply-form-section .section-kicker {
  margin-bottom: -2px;
}

.status-next {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #d8e4e0;
  border-radius: 6px;
  background: #f8fbfa;
}

.status-next ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.status-next li + li {
  margin-top: 6px;
}

.careers-intro,
.careers-job {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.careers-job h2 {
  margin-bottom: 6px;
}

.careers-job p {
  line-height: 1.5;
}

.empty {
  border: 1px dashed #b8c3d1;
  border-radius: 8px;
  padding: 20px;
  background: #fafcff;
  color: var(--muted);
}

.notice {
  border-left: 4px solid var(--brand);
  background: #ecfdf5;
  padding: 12px 14px;
  border-radius: 8px;
}

.error {
  border-left: 4px solid var(--danger);
  background: #fff1f0;
  color: var(--danger);
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.form-error {
  border-left: 4px solid var(--danger);
  background: #fff1f0;
  color: var(--danger);
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.field-invalid {
  color: var(--danger);
}

.field-invalid input,
.field-invalid textarea,
.field-invalid select {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.email-btn {
  margin-top: 10px;
}

.email-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
  margin: 14px 0;
  line-height: 1.55;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 20;
}

.modal {
  width: min(560px, 100%);
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
}

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

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 14px;
  }

  .nav {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nav-section {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .nav-section > span {
    grid-column: 1 / -1;
  }

  .nav button {
    text-align: center;
    padding: 9px 6px;
  }

  .topbar {
    height: auto;
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-jump {
    width: 100%;
  }

  .content {
    padding: 16px;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .role-brief-grid,
  .suggestion-list,
  .campaign-steps,
  .campaign-outcomes,
  .decision-map,
  .handoff-grid,
  .review-workflow,
  .workspace-metrics,
  .workspace-grid,
  .profile-snapshot,
  .split {
    grid-template-columns: 1fr;
  }

  .campaign-ai-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .role-kit-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .role-kit-actions {
    justify-content: flex-start;
  }

  .dashboard-hero,
  .pipeline-hero,
  .candidate-hero,
  .candidate-identity {
    flex-direction: column;
  }

  .hero-action-stack,
  .candidate-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .pipeline {
    grid-template-columns: repeat(6, 260px);
  }

  .pipeline-tools {
    grid-template-columns: 1fr;
  }

  .candidate-tools {
    grid-template-columns: 1fr;
  }

  .careers-intro,
  .careers-job {
    flex-direction: column;
  }
}
