:root {
  --paper: #f7f4ef;
  --surface: #fffdfc;
  --surface-2: #f0e9e1;
  --surface-3: #faf7f2;
  --ink: #222224;
  --muted: #73706b;
  --line: #e5dbd0;
  --green: #746ceb;
  --green-2: #ece9ff;
  --blue: #5f58d8;
  --blue-2: #f0edff;
  --sage: #417b68;
  --sage-2: #e7f2ed;
  --coral: #b95b4d;
  --coral-2: #fae8e4;
  --gold: #9a6d36;
  --gold-2: #f5eadb;
  --warm: #dcc9b7;
  --warm-2: #f4ece3;
  --shadow: 0 22px 50px rgba(64, 54, 43, 0.11);
  --soft-shadow: 0 12px 30px rgba(64, 54, 43, 0.075);
  --ui-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Avenir Next", "Nunito Sans", Verdana, sans-serif;
  --display-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Avenir Next", "Nunito Sans", Verdana, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(116, 108, 235, 0.08), transparent 28%),
    radial-gradient(circle at 82% 2%, rgba(220, 201, 183, 0.24), transparent 24%),
    linear-gradient(rgba(34, 34, 36, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 34, 36, 0.022) 1px, transparent 1px),
    var(--paper);
  background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat;
  background-size: 900px 900px, 760px 760px, 28px 28px, 28px 28px, auto;
  font-family: var(--ui-font);
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

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

svg {
  display: block;
}

.app-shell {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  min-height: 100vh;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(360px, 460px);
  gap: 24px;
  min-height: 100vh;
  padding: 32px;
  align-items: center;
}

.auth-hero,
.auth-card {
  background: rgba(255, 253, 252, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-hero {
  padding: 34px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 253, 252, 0.94), rgba(244, 236, 227, 0.9)),
    var(--surface);
  border: 1px solid rgba(220, 201, 183, 0.62);
}

.auth-hero h1 {
  max-width: 620px;
  margin-top: 10px;
  font-family: var(--display-font);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 850;
  line-height: 0.98;
}

.auth-hero p {
  max-width: 620px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.auth-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.auth-bullets span,
.user-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.auth-bullets span {
  color: var(--blue);
  background: rgba(236, 233, 255, 0.84);
  border: 1px solid rgba(116, 108, 235, 0.12);
}

.auth-card {
  padding: 22px;
}

.auth-card-wide {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.auth-card-wide h1 {
  margin-top: 12px;
  font-family: var(--display-font);
  font-size: 40px;
  font-weight: 850;
}

.auth-card-wide p {
  margin-top: 10px;
  color: var(--muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.auth-tab {
  min-height: 42px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.auth-tab.active {
  color: white;
  background: var(--green);
}

.auth-title {
  margin-bottom: 18px;
}

.auth-alert {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
}

.auth-alert.error {
  color: var(--coral);
  background: var(--coral-2);
}

.auth-alert.info {
  color: var(--blue);
  background: var(--blue-2);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: rgba(255, 253, 252, 0.76);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  min-height: 48px;
}

.brand-logo {
  display: block;
  width: 116px;
  height: auto;
  object-fit: contain;
}

.auth-logo {
  display: block;
  width: 132px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.auth-logo.hero-logo {
  width: 148px;
  margin-right: auto;
  margin-left: auto;
}

.brand-mark,
.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), #9c95ff);
  border-radius: 8px;
  font-weight: 900;
}

.session-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.session-card p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-button,
.mobile-nav-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  text-align: left;
}

.nav-button.active,
.mobile-nav-button.active {
  color: var(--green);
  background: var(--green-2);
  box-shadow: inset 0 0 0 1px rgba(116, 108, 235, 0.08);
}

.side-note {
  margin-top: 24px;
  padding: 14px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.workspace {
  min-width: 0;
  padding: 28px;
}

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

.topbar h1 {
  font-family: var(--display-font);
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: 0;
}

.topbar p {
  max-width: 720px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

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

.user-pill {
  color: var(--blue);
  background: var(--blue-2);
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 20px;
  align-items: start;
}

.panel,
.card,
.job-card,
.detail-panel {
  background: rgba(255, 253, 252, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.panel {
  padding: 18px;
}

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

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

.panel-title h2,
.detail-panel h2 {
  font-family: var(--display-font);
  font-size: 27px;
  font-weight: 820;
  line-height: 1.05;
}

.panel-title p,
.detail-panel p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.hero-panel {
  display: grid;
  gap: 18px;
  min-height: 265px;
  padding: 24px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 253, 252, 0.96), rgba(240, 233, 255, 0.9) 48%, rgba(245, 234, 219, 0.88)),
    var(--surface);
  border: 1px solid rgba(220, 201, 183, 0.58);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel p {
  color: var(--muted);
}

.hero-panel h2 {
  max-width: 620px;
  font-family: var(--display-font);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 850;
  line-height: 0.98;
}

.hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-panel .kicker {
  color: var(--blue);
}

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

.stat {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.hero-panel .stat {
  background: rgba(255, 253, 252, 0.72);
  border-color: rgba(220, 201, 183, 0.54);
}

.hero-panel .stat span {
  color: var(--muted);
}

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

.stack-tight {
  display: grid;
  gap: 4px;
}

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

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.button.primary {
  color: white;
  background: var(--green);
  box-shadow: 0 12px 26px rgba(116, 108, 235, 0.24);
}

.button.secondary {
  color: var(--green);
  background: var(--green-2);
}

.button.ghost {
  color: var(--ink);
  background: rgba(255, 253, 252, 0.86);
  border: 1px solid var(--line);
}

.button.warn {
  color: var(--coral);
  background: var(--coral-2);
}

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-only {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 253, 252, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.icon-only.active {
  color: var(--blue);
  background: var(--blue-2);
  border-color: rgba(116, 108, 235, 0.22);
}

.job-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.job-card.highlight {
  border-color: rgba(116, 108, 235, 0.26);
}

.job-listing {
  cursor: default;
}

.job-listing:not(.compact)[data-card-select="true"] {
  cursor: pointer;
}

.job-listing:not(.compact)[data-card-select="true"]:hover,
.job-listing.selected {
  border-color: rgba(116, 108, 235, 0.24);
  box-shadow: 0 16px 34px rgba(116, 108, 235, 0.12);
}

.job-listing:not(.compact)[data-card-select="true"]:focus-visible {
  outline: 0;
  border-color: rgba(116, 108, 235, 0.34);
  box-shadow: 0 0 0 3px rgba(116, 108, 235, 0.12);
}

.job-listing.selected {
  transform: translateY(-1px);
}

.job-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.job-card h3 {
  font-size: 17px;
  line-height: 1.2;
}

.job-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.job-listing-shell {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.job-brand {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--blue);
  background: linear-gradient(135deg, rgba(236, 233, 255, 0.92), rgba(244, 236, 227, 0.92));
  border: 1px solid rgba(116, 108, 235, 0.14);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
}

.job-summary {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.job-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.job-source {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.job-summary h3 {
  color: var(--blue);
  font-size: 18px;
  line-height: 1.15;
}

.job-company-line {
  color: var(--ink) !important;
  font-size: 14px !important;
  font-weight: 800;
}

.job-context-line {
  color: var(--muted);
  font-size: 13px;
}

.job-supporting {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.job-support-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: #6b5f55;
  background: var(--warm-2);
  border: 1px solid rgba(154, 109, 54, 0.12);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.job-insights {
  display: grid;
  gap: 7px;
  margin-top: 6px;
}

.job-insight {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.job-insight strong {
  color: var(--ink);
}

.job-insight-mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}

.job-insight.good .job-insight-mark {
  color: var(--sage);
  background: var(--sage-2);
}

.job-insight.warn .job-insight-mark {
  color: var(--gold);
  background: var(--gold-2);
}

.job-snippet {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.job-side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.job-status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--sage);
  background: var(--sage-2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-align: right;
}

.job-status-tag.muted {
  color: var(--blue);
  background: var(--blue-2);
}

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

.chip,
.score,
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.chip {
  color: var(--muted);
  background: var(--surface-2);
}

.chip.green,
.score {
  color: var(--sage);
  background: var(--sage-2);
}

.chip.blue {
  color: var(--blue);
  background: var(--blue-2);
}

.chip.subtle {
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
}

.chip.sage {
  color: var(--sage);
  background: var(--sage-2);
}

.chip.gold {
  color: var(--gold);
  background: var(--gold-2);
}

.chip.coral {
  color: var(--coral);
  background: var(--coral-2);
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.job-actions .button {
  min-height: 36px;
  font-size: 12px;
}

.job-actions.inline {
  flex-wrap: nowrap;
}

.job-actions.compact {
  align-items: stretch;
}

.job-detail-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.job-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.progress {
  width: 100%;
  height: 9px;
  overflow: hidden;
  background: #ebe3da;
  border-radius: 8px;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), #a39dff);
  border-radius: 8px;
}

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

.pipeline-summary-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: rgba(255, 253, 252, 0.88);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.pipeline-summary-card.primary {
  background: linear-gradient(135deg, rgba(236, 233, 255, 0.98), rgba(255, 253, 252, 0.96));
}

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

.pipeline-summary-card strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 34px;
  font-weight: 850;
  line-height: 1;
}

.pipeline-summary-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.pipeline-board-shell {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 14px;
  margin: 0 -2px;
  scrollbar-gutter: stable both-edges;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.pipeline-board-shell::-webkit-scrollbar {
  height: 10px;
}

.pipeline-board-shell::-webkit-scrollbar-thumb {
  background: rgba(122, 112, 234, 0.28);
  border-radius: 999px;
}

.pipeline-board-shell::-webkit-scrollbar-track {
  background: rgba(236, 232, 225, 0.8);
  border-radius: 999px;
}

.pipeline-board {
  display: grid;
  width: max-content;
  min-width: 100%;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 300px);
  gap: 16px;
  align-items: start;
  min-height: 520px;
}

.pipeline-stage-column {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  height: min(72vh, 720px);
  min-height: 480px;
  padding: 12px;
  background: rgba(255, 253, 252, 0.78);
  border: 1px solid var(--line);
  border-radius: 24px;
  scroll-snap-align: start;
}

.pipeline-stage-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 2px 2px 8px;
  border-bottom: 1px solid rgba(222, 211, 198, 0.72);
}

.pipeline-stage-header h3 {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.pipeline-stage-header p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.pipeline-stage-stack {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 4px 6px 2px;
  overscroll-behavior: contain;
  border-radius: 18px;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.pipeline-stage-stack.is-drop-target {
  background: rgba(122, 112, 234, 0.08);
  box-shadow: inset 0 0 0 1px rgba(122, 112, 234, 0.18);
}

.pipeline-stage-add {
  width: 100%;
}

.pipeline-empty-card,
.pipeline-card-compact {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.pipeline-empty-card {
  min-height: 120px;
  align-content: center;
  background: rgba(255, 253, 252, 0.65);
  border-style: dashed;
  box-shadow: none;
}

.pipeline-empty-card strong {
  color: var(--ink);
  font-size: 14px;
}

.pipeline-empty-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pipeline-card-compact {
  width: 100%;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  cursor: grab;
}

.pipeline-card-compact:hover {
  border-color: rgba(116, 108, 235, 0.35);
  transform: translateY(-1px);
}

.pipeline-card-compact.is-dragging {
  opacity: 0.48;
  cursor: grabbing;
  transform: scale(0.98);
}

.pipeline-card-compact-title {
  color: var(--ink);
  display: -webkit-box;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pipeline-card-compact-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pipeline-card-compact-company {
  color: var(--muted);
  display: -webkit-box;
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.pipeline-card-compact-link {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.application-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(34, 34, 36, 0.22);
  backdrop-filter: blur(10px);
}

.application-modal {
  width: min(960px, calc(100vw - 40px));
  max-height: calc(100vh - 52px);
  overflow: auto;
  padding: 24px;
  background: rgba(255, 253, 252, 0.97);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.application-modal-header,
.application-modal-actions,
.application-modal-step-actions,
.application-modal-summary-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.application-modal-header h2 {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 840;
  line-height: 1;
}

.application-modal-header p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.application-modal-close {
  min-width: 86px;
}

.application-modal-summary {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.application-modal-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.application-modal-summary-card {
  flex: 1 1 0;
  display: grid;
  gap: 6px;
  padding: 14px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.application-modal-summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.application-modal-summary-card strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.application-modal-content {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(300px, 0.72fr);
  gap: 16px;
  margin-top: 16px;
}

.application-modal-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 253, 252, 0.84);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.application-modal-section h3 {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.application-modal-section p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.pipeline-card-stage-field {
  display: grid;
  gap: 6px;
}

.pipeline-card-stage-field label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.pipeline-card-stage-field select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(255, 253, 252, 0.88);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.application-modal-step-actions .button,
.application-modal-actions .button {
  flex: 1 1 0;
}

.pipeline-legend-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

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

.pipeline-legend-row strong {
  color: var(--ink);
  font-size: 14px;
}

.pipeline-legend-row p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.field-grid {
  display: grid;
  gap: 12px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.field-error {
  margin: 0;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255, 253, 252, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
}

.field textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.45;
}

.field textarea.textarea-tall {
  min-height: 190px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(116, 108, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(116, 108, 235, 0.12);
}

.agent-field-modified label {
  color: var(--blue);
}

.agent-field-modified label::after {
  content: "Modificado";
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-left: 8px;
  padding: 0 7px;
  color: var(--sage);
  background: var(--sage-2);
  border: 1px solid rgba(65, 123, 104, 0.14);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.agent-field-modified input,
.agent-field-modified textarea,
.agent-field-modified select {
  border-color: rgba(116, 108, 235, 0.46);
  background:
    linear-gradient(0deg, rgba(236, 233, 255, 0.42), rgba(236, 233, 255, 0.42)),
    rgba(255, 253, 252, 0.92);
  box-shadow: 0 0 0 3px rgba(116, 108, 235, 0.08);
}

.toggle-row.agent-field-modified {
  color: var(--blue);
  border-color: rgba(116, 108, 235, 0.46);
  background:
    linear-gradient(0deg, rgba(236, 233, 255, 0.42), rgba(236, 233, 255, 0.42)),
    rgba(255, 253, 252, 0.92);
  box-shadow: 0 0 0 3px rgba(116, 108, 235, 0.08);
}

.analysis-warning-box,
.analysis-inline-note {
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(245, 234, 219, 0.72);
  border: 1px solid rgba(154, 109, 54, 0.18);
}

.analysis-warning-box strong {
  display: block;
  margin-bottom: 6px;
}

.analysis-warning-box p,
.analysis-warning-box li,
.analysis-inline-note span {
  color: #6b5f55;
  font-size: 13px;
  line-height: 1.5;
}

.analysis-warning-box ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.analysis-inline-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(240, 237, 255, 0.72);
  border-color: rgba(116, 108, 235, 0.18);
}

.analysis-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 16px;
  align-items: start;
}

.analysis-card,
.analysis-history-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 253, 252, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.analysis-score-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(240, 237, 255, 0.88), rgba(244, 236, 227, 0.72)),
    var(--surface);
  border: 1px solid rgba(116, 108, 235, 0.16);
}

.analysis-score-hero h3 {
  margin-top: 6px;
  font-family: var(--display-font);
  font-size: 38px;
  font-weight: 850;
  line-height: 1;
}

.analysis-score-hero p {
  margin-top: 6px;
  color: var(--muted);
}

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

.analysis-block {
  display: grid;
  gap: 12px;
}

.panel-title.compact {
  margin-bottom: 0;
}

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

.analysis-dimension-card,
.analysis-point-card {
  display: grid;
  gap: 8px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.analysis-dimension-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.analysis-dimension-card p,
.analysis-point-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.analysis-point-card.positive {
  border-color: rgba(65, 123, 104, 0.18);
  background: rgba(231, 242, 237, 0.48);
}

.analysis-point-card.critical {
  border-color: rgba(185, 91, 77, 0.18);
  background: rgba(250, 232, 228, 0.52);
}

.analysis-point-card blockquote {
  margin: 0;
  padding-left: 12px;
  color: var(--ink);
  border-left: 3px solid rgba(116, 108, 235, 0.34);
  line-height: 1.6;
}

.analysis-label {
  color: var(--ink);
  font-weight: 900;
}

.analysis-action-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.analysis-action-list li {
  color: var(--ink);
  line-height: 1.6;
}

.analysis-history-panel h3 {
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 850;
}

.analysis-history-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px;
  text-align: left;
  background: rgba(255, 253, 252, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.analysis-history-item strong {
  color: var(--ink);
}

.analysis-history-item span {
  color: var(--muted);
  font-size: 12px;
}

.analysis-history-item:hover,
.analysis-history-item.active {
  border-color: rgba(116, 108, 235, 0.32);
  box-shadow: 0 14px 26px rgba(64, 54, 43, 0.08);
  transform: translateY(-1px);
}

.agent-role-grid {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.agent-role-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid rgba(210, 205, 232, 0.92);
  border-radius: 16px;
  background: rgba(255, 253, 252, 0.88);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.agent-role-option:hover {
  border-color: rgba(116, 108, 235, 0.34);
  box-shadow: 0 16px 30px rgba(92, 75, 160, 0.08);
  transform: translateY(-1px);
}

.agent-role-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
}

.agent-role-option span {
  font-weight: 800;
  color: var(--ink);
}

.agent-role-option small {
  justify-self: end;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(243, 239, 255, 0.92);
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.agent-role-option.active {
  border-color: rgba(116, 108, 235, 0.44);
  background:
    linear-gradient(180deg, rgba(244, 241, 255, 0.96), rgba(255, 253, 252, 0.96)),
    rgba(255, 253, 252, 0.9);
  box-shadow: 0 18px 36px rgba(116, 108, 235, 0.14);
}

.agent-role-empty {
  padding: 18px;
  border: 1px dashed rgba(210, 205, 232, 0.96);
  border-radius: 16px;
  background: rgba(255, 253, 252, 0.74);
  color: var(--muted);
  font-weight: 700;
}

.agent-role-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 14px;
}

#agent-manual-role {
  min-width: 0;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 12px;
  background: rgba(255, 253, 252, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 160px;
  gap: 10px;
  margin-bottom: 14px;
}

.match-location-banner {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding: 14px 16px;
  background: rgba(255, 247, 221, 0.72);
  border: 1px solid rgba(223, 185, 91, 0.42);
  border-radius: 14px;
}

.match-location-banner strong {
  color: #6b4d00;
  font-size: 14px;
}

.match-location-banner p {
  color: #7b6330;
  font-size: 13px;
  line-height: 1.45;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.64fr);
  gap: 16px;
  align-items: start;
}

.matches-list-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.matches-pagination {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding: 18px 20px;
  background: rgba(255, 253, 252, 0.82);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(42, 37, 48, 0.06);
}

.matches-pagination.bottom {
  margin-top: 6px;
}

.pagination-summary {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pagination-summary strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.pagination-summary span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.page-size-field {
  min-width: 132px;
}

.page-size-field label {
  font-size: 12px;
}

.page-size-field select {
  min-height: 44px;
  padding: 9px 34px 9px 14px;
  font-weight: 800;
  border-radius: 14px;
}

.page-control,
.page-pill {
  min-height: 42px;
  color: var(--ink);
  background: rgba(255, 253, 252, 0.9);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 900;
}

.page-control {
  padding: 0 12px;
}

.page-control.icon {
  display: inline-grid;
  width: 42px;
  min-width: 42px;
  padding: 0;
  place-items: center;
}

.page-control.icon span {
  display: block;
  margin-top: -2px;
  font-size: 34px;
  line-height: 1;
}

.page-pill {
  min-width: 42px;
  padding: 0 10px;
}

.page-control:not(:disabled):hover,
.page-pill:not(.active):hover {
  border-color: rgba(116, 108, 235, 0.28);
  box-shadow: 0 10px 22px rgba(116, 108, 235, 0.1);
}

.page-control:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.55;
}

.page-number-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-pill.active {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(116, 108, 235, 0.22);
}

.page-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  color: var(--muted);
  font-weight: 900;
}

.detail-panel {
  position: sticky;
  top: 24px;
  padding: 17px;
}

.detail-score {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  margin: 14px 0;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ring {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  color: var(--blue);
  background:
    radial-gradient(circle at center, #fff 53%, transparent 54%),
    conic-gradient(var(--green) var(--score-angle), #e8ded4 0);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
}

.ring.muted {
  color: var(--muted);
  background:
    radial-gradient(circle at center, #fff 53%, transparent 54%),
    conic-gradient(var(--line) 360deg, var(--line) 0);
}

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

.reason {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 9px;
  padding: 10px;
  background: rgba(255, 253, 252, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reason strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.reason span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.empty.inline {
  padding: 14px 16px;
  text-align: left;
}

.manual-job-modal {
  width: min(980px, calc(100vw - 40px));
}

.confirm-modal {
  width: min(560px, calc(100vw - 40px));
}

.manual-job-form {
  margin-top: 18px;
}

.manual-job-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 253, 252, 0.84);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.manual-job-section-header {
  display: grid;
  gap: 6px;
}

.manual-job-section-header h3 {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.manual-job-section-header p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.manual-job-section summary {
  position: relative;
  cursor: pointer;
  list-style: none;
}

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

.manual-job-section .collapsible {
  padding-right: 28px;
}

.manual-job-section .collapsible::after {
  content: "▼";
  position: absolute;
  top: 0;
  right: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.manual-job-section[open] .collapsible::after {
  content: "▲";
}

.manual-job-actions {
  margin-top: 2px;
}

.reason-mark {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.reason-mark.good {
  color: var(--sage);
  background: var(--sage-2);
}

.reason-mark.warn {
  color: var(--gold);
  background: var(--gold-2);
}

.empty {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: var(--surface-2);
  border: 1px dashed #d7cbbd;
  border-radius: 8px;
}

.empty h3 {
  margin-bottom: 8px;
  color: var(--ink);
}

.source-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--blue-2);
  border: 1px solid rgba(116, 108, 235, 0.16);
  border-radius: 8px;
}

.source-box p {
  color: #5f5a70;
  font-size: 13px;
  line-height: 1.45;
}

#agent-sync-banner-slot:empty {
  display: none;
}

.agent-sync-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 253, 252, 0.74), transparent 28%),
    linear-gradient(135deg, rgba(236, 233, 255, 0.95), rgba(231, 242, 237, 0.88));
  border: 1px solid rgba(116, 108, 235, 0.2);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(116, 108, 235, 0.1);
}

.agent-sync-banner h3 {
  margin-top: 4px;
  font-size: 17px;
}

.agent-sync-banner p {
  margin-top: 6px;
  color: #5f5a70;
  font-size: 13px;
  line-height: 1.45;
}

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

.agent-attempt-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 13px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.agent-attempt-summary strong {
  font-size: 13px;
}

.agent-attempt-summary p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

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

.agent-attempt-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.agent-attempt-row > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--blue);
  background: var(--blue-2);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.query-preview {
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 253, 252, 0.76);
  border: 1px solid rgba(116, 108, 235, 0.16);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.profile-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--green), #a69fff);
}

.profile-card p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.profile-switcher {
  display: grid;
  gap: 10px;
}

.profile-switch-card {
  width: 100%;
  padding: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.profile-switch-card:hover {
  border-color: rgba(116, 108, 235, 0.24);
  box-shadow: 0 14px 28px rgba(116, 108, 235, 0.08);
}

.profile-switch-card.active {
  border-color: rgba(116, 108, 235, 0.3);
  background: linear-gradient(135deg, rgba(236, 233, 255, 0.9), rgba(244, 236, 227, 0.78));
  box-shadow: 0 16px 34px rgba(116, 108, 235, 0.1);
}

.profile-switch-main {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.profile-switch-avatar {
  width: 52px;
  height: 52px;
}

.profile-switch-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-switch-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.profile-switch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3px;
}

.profile-switch-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: var(--muted);
  background: rgba(255, 253, 252, 0.72);
  border: 1px solid rgba(64, 54, 43, 0.08);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.profile-completeness-hero {
  display: grid;
  gap: 18px;
  padding: 22px 22px 18px;
  background: linear-gradient(180deg, rgba(255, 254, 252, 0.96), rgba(248, 244, 238, 0.9));
  border: 1px solid rgba(64, 54, 43, 0.08);
  border-radius: 24px;
}

.profile-completeness-hero-main {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.profile-completeness-score {
  display: grid;
  place-items: baseline center;
  align-content: center;
  min-height: 112px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(122, 112, 234, 0.12), rgba(122, 112, 234, 0.03));
  border: 1px solid rgba(122, 112, 234, 0.16);
  border-radius: 22px;
}

.profile-completeness-score strong {
  font-size: 58px;
  line-height: 0.9;
}

.profile-completeness-score span {
  color: var(--blue);
  font-size: 24px;
  font-weight: 800;
}

.profile-completeness-hero-copy h2 {
  margin-top: 6px;
}

.profile-completeness-hero-copy p {
  margin-top: 6px;
  max-width: 52ch;
}

.profile-completeness-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-completeness-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(255, 253, 252, 0.76);
  border: 1px solid rgba(64, 54, 43, 0.08);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.profile-completeness-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.profile-completeness-column {
  display: grid;
  gap: 14px;
}

.profile-completeness-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.profile-completeness-section-head h3 {
  margin-top: 4px;
}

.profile-completeness-scroll {
  display: grid;
  gap: 12px;
  max-height: 356px;
  padding-right: 6px;
  overflow: auto;
}

.profile-completeness-scroll::-webkit-scrollbar {
  width: 8px;
}

.profile-completeness-scroll::-webkit-scrollbar-thumb {
  background: rgba(122, 112, 234, 0.32);
  border-radius: 999px;
}

.profile-completeness-empty {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 18px;
  background: rgba(255, 253, 252, 0.82);
  border: 1px dashed rgba(64, 54, 43, 0.16);
  border-radius: 18px;
}

.profile-completeness-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(64, 54, 43, 0.08);
  border-radius: 18px;
}

.profile-completeness-item.is-pending {
  border-color: rgba(116, 108, 235, 0.26);
  box-shadow: 0 14px 34px rgba(116, 108, 235, 0.08);
}

.profile-completeness-item.is-complete {
  background: linear-gradient(135deg, rgba(228, 247, 237, 0.82), rgba(255, 253, 252, 0.92));
}

.profile-completeness-copy {
  min-width: 0;
}

.profile-completeness-copy p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.profile-completeness-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.profile-completeness-item .button {
  flex-shrink: 0;
  min-width: 108px;
}

.profile-completeness-summary-card {
  display: grid;
  gap: 16px;
  min-height: 356px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(251, 248, 244, 0.94), rgba(246, 241, 233, 0.92));
  border: 1px solid rgba(64, 54, 43, 0.08);
  border-radius: 22px;
}

.profile-completeness-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-completeness-summary-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(64, 54, 43, 0.08);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.profile-completeness-summary-list {
  display: grid;
  gap: 10px;
}

.profile-completeness-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(64, 54, 43, 0.08);
}

.profile-completeness-summary-row strong {
  font-size: 14px;
}

.profile-completeness-summary-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-completeness-summary-note {
  margin-top: auto;
}

.profile-completion-quicklist {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.profile-quick-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 253, 252, 0.82);
  border: 1px solid rgba(64, 54, 43, 0.08);
  border-radius: 14px;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.profile-quick-action:hover {
  transform: translateY(-1px);
  border-color: rgba(116, 108, 235, 0.24);
  box-shadow: 0 14px 28px rgba(116, 108, 235, 0.08);
}

.profile-quick-action strong {
  color: var(--blue);
  font-size: 13px;
}

@media (max-width: 900px) {
  .profile-completeness-hero-main {
    grid-template-columns: 1fr;
  }

  .profile-completeness-layout {
    grid-template-columns: 1fr;
  }

  .profile-completeness-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-completeness-item .button {
    width: 100%;
  }

  .profile-completeness-summary-card,
  .profile-completeness-scroll {
    max-height: none;
    min-height: 0;
  }
}

.mobile-nav {
  display: none;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 32px));
  padding: 13px 15px;
  color: var(--surface);
  background: #2c2a2e;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.small-text {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}

@media (max-width: 1120px) {
  .auth-shell {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .workspace {
    padding: 20px 20px 86px;
  }

  .mobile-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    padding: 8px;
    background: rgba(255, 253, 252, 0.9);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .mobile-nav-button {
    display: grid;
    place-items: center;
    gap: 4px;
    min-height: 46px;
    padding: 0;
    font-size: 10px;
  }
}

@media (max-width: 920px) {
  .page-grid,
  .result-layout,
  .pipeline-summary-grid,
  .analysis-layout {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
  }

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

  .matches-pagination {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .pagination-actions {
    justify-content: start;
  }

  .topbar {
    display: grid;
  }

  .topbar-actions {
    justify-content: start;
  }

  .pipeline-board {
    grid-auto-columns: minmax(240px, 260px);
    min-height: 460px;
  }

  .pipeline-stage-column {
    height: min(68vh, 620px);
    min-height: 420px;
  }

  .application-modal-content {
    grid-template-columns: 1fr;
  }

  .application-modal-summary-grid {
    grid-template-columns: 1fr;
  }

  .analysis-dimension-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .auth-shell {
    padding: 16px;
  }

  .auth-hero,
  .auth-card {
    padding: 18px;
  }

  .workspace {
    padding: 16px 14px 88px;
  }

  .hero-row,
  .panel-title,
  .job-head {
    display: grid;
  }

  .job-listing-shell {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .job-brand {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .job-side {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .stat-grid,
  .two-col,
  .three-col,
  .field-row {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .button-row,
  .analysis-score-hero,
  .analysis-meta {
    display: grid;
  }

  .job-actions,
  .job-actions.inline,
  .job-actions.compact {
    flex-direction: column;
    align-items: stretch;
  }

  .agent-sync-banner {
    grid-template-columns: 1fr;
  }

  .agent-sync-actions {
    justify-content: stretch;
  }

  .agent-role-option {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .agent-role-option small {
    justify-self: start;
    grid-column: 2;
  }

  .agent-role-add-row {
    grid-template-columns: 1fr;
  }

  .job-action-buttons {
    width: 100%;
    justify-content: stretch;
  }

  .job-actions .button,
  .job-action-buttons .button {
    width: auto;
    flex: 1 1 130px;
  }

  .application-modal-step-actions,
  .application-modal-actions,
  .application-modal-header {
    flex-direction: column;
    align-items: stretch;
  }

  .application-modal-overlay {
    padding: 14px;
  }

  .application-modal {
    width: min(100vw - 20px, 960px);
    padding: 18px;
  }
}
