/* src/styles.css */
:root {
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #f5f3f1;
  color: #201c32;
  --ink: #201c32;
  --muted: #777284;
  --line: #ded9e7;
  --soft-line: #efecf3;
  --surface: #fffefe;
  --surface-soft: #f8f6fb;
  --surface-clay:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f8f6fb 100%);
  --primary: #7147e8;
  --primary-dark: #5932c4;
  --primary-soft: #eee8ff;
  --accent: #8b68f2;
  --warning: #b45309;
  --danger: #dc2626;
  --shadow: 12px 16px 34px rgba(40, 31, 61, .10), -7px -7px 18px rgba(255, 255, 255, .82);
  --shadow-soft: 7px 10px 22px rgba(40, 31, 61, .08), -5px -5px 14px rgba(255, 255, 255, .74);
  --shadow-inset: inset 2px 2px 5px rgba(48, 38, 70, .06), inset -2px -2px 6px rgba(255, 255, 255, .92);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, .72),
      rgba(244, 241, 247, .88)),
    #f5f3f1;
}
button,
input,
select,
textarea {
  font: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  margin-bottom: 8px;
  letter-spacing: 0;
}
h2 {
  font-size: 26px;
  margin-bottom: 6px;
  letter-spacing: 0;
}
h3 {
  font-size: 15px;
  margin-bottom: 14px;
  color: #26344d;
}
p {
  color: var(--muted);
  line-height: 1.5;
}
label {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(197, 211, 225, .9);
  border-radius: 8px;
  padding: 10px 12px;
  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f8fbfd);
  color: var(--ink);
  outline: none;
  box-shadow: var(--shadow-inset);
  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(113, 71, 232, .14), var(--shadow-inset);
}
input:disabled,
select:disabled {
  background: #eef4f7;
  color: #64748b;
}
input[type=checkbox] {
  width: 17px;
  height: 17px;
  padding: 0;
}
textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.45;
}
button {
  border: 0;
  cursor: pointer;
  transition:
    transform .12s ease,
    box-shadow .12s ease,
    background .12s ease;
}
button:hover {
  transform: translateY(-1px);
}
button:active {
  transform: translateY(0);
}
button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
  box-shadow: none;
}
.primary,
.secondary,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 850;
  white-space: nowrap;
}
.primary {
  background:
    linear-gradient(
      145deg,
      #815cf0,
      #6137d2);
  color: white;
  padding: 10px 15px;
  box-shadow: 8px 10px 20px rgba(113, 71, 232, .24), inset 1px 1px 3px rgba(255, 255, 255, .32);
}
.primary:hover {
  background:
    linear-gradient(
      145deg,
      #754de9,
      #552bc1);
}
.secondary {
  background:
    linear-gradient(
      145deg,
      #f8fbfd,
      #eaf1f6);
  color: #334155;
  border: 1px solid rgba(216, 228, 237, .95);
  padding: 8px 12px;
  box-shadow: var(--shadow-soft);
}
.secondary:hover {
  background:
    linear-gradient(
      145deg,
      #ffffff,
      #e3edf3);
}
.danger-soft {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fed7aa;
}
.danger {
  background:
    linear-gradient(
      145deg,
      #ef4444,
      #c81e1e);
  color: white;
  border-color: var(--danger);
}
.icon-button {
  width: 34px;
  height: 34px;
  background:
    linear-gradient(
      145deg,
      #fbfaff,
      #eee8ff);
  color: var(--primary);
  box-shadow: var(--shadow-soft);
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  place-content: center;
  padding: 24px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, .76),
      rgba(244, 240, 249, .94)),
    #f5f3f1;
}
.login-panel {
  width: min(430px, 100%);
  justify-self: center;
  background: var(--surface-clay);
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 20px 24px 58px rgba(35, 51, 84, .14), -10px -10px 24px rgba(255, 255, 255, .82);
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(
      145deg,
      #815cf0,
      #6137d2);
  color: white;
  margin-bottom: 10px;
  box-shadow: 8px 10px 18px rgba(113, 71, 232, .24), inset 1px 1px 3px rgba(255, 255, 255, .28);
}
.app-shell {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns .22s ease;
}
.app-shell.sidebar-collapsed {
  grid-template-columns: 76px minmax(0, 1fr);
}
aside {
  position: sticky;
  top: 0;
  height: 100vh;
  background:
    linear-gradient(
      180deg,
      #1d1930,
      #151225);
  color: white;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid rgba(255, 255, 255, .09);
  overflow: hidden;
}
.sidebar-brand {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.logo-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background:
    linear-gradient(
      145deg,
      #8b68f2,
      #6439d5);
  box-shadow: 0 8px 18px rgba(113, 71, 232, .32), inset 1px 1px 2px rgba(255, 255, 255, .28);
  font-size: 18px;
  font-weight: 950;
}
.logo-name {
  color: white;
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
}
.logo-name strong {
  color: #a991ff;
  font-weight: 950;
}
.sidebar-toggle {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, .07);
  color: #d8d1e9;
}
.sidebar-toggle:hover {
  color: white;
  background: rgba(139, 104, 242, .28);
}
.sidebar-toggle:focus-visible {
  outline: 2px solid #a991ff;
  outline-offset: 2px;
}
nav {
  display: grid;
  gap: 5px;
  overflow-y: auto;
  overflow-x: hidden;
}
nav {
  scrollbar-width: thin;
  scrollbar-color: #4a4261 transparent;
}
nav::-webkit-scrollbar {
  width: 5px;
}
nav::-webkit-scrollbar-thumb {
  background: #4a4261;
  border-radius: 999px;
}
nav button,
.logout {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #aaa4b9;
  background: transparent;
  border-radius: 8px;
  min-height: 40px;
  padding: 10px 12px;
  text-align: left;
  font-weight: 750;
}
nav button.active,
nav button:hover,
.logout:hover {
  background:
    linear-gradient(
      145deg,
      #8059ef,
      #6138d2);
  color: white;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, .06), inset -1px -1px 2px rgba(0, 0, 0, .18);
}
.logout {
  width: 100%;
}
.nav-label {
  white-space: nowrap;
}
.collapsed .sidebar-brand {
  justify-content: center;
}
.collapsed .logo {
  display: none;
}
.collapsed nav button,
.collapsed .logout {
  justify-content: center;
  padding-inline: 0;
}
.collapsed .nav-label,
.collapsed .build-badge,
.collapsed .sidebar-user-meta {
  display: none;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px;
  border-radius: 8px;
  color: #e5eef8;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, .06), inset -1px -1px 2px rgba(0, 0, 0, .18);
}
.sidebar-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #39334e;
  color: #f0ecff;
  font-size: 10px;
  font-weight: 900;
}
.sidebar-user-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.sidebar-user-meta strong {
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.sidebar-user-meta > span {
  color: #9a93aa;
  font-size: 11px;
  font-weight: 800;
}
.collapsed .sidebar-user {
  justify-content: center;
  padding-inline: 0;
  background: transparent;
  border-color: transparent;
}
main {
  padding: 26px;
  overflow: auto;
}
.activity-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -8px 0 16px;
  border: 1px solid #ded3ff;
  background:
    linear-gradient(
      145deg,
      #fdfcff,
      #eee8ff);
  color: #5932c4;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 850;
  box-shadow: var(--shadow-soft);
}
.activity-bar span {
  width: 90px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7e0fb;
  box-shadow: var(--shadow-inset);
  position: relative;
}
.activity-bar span::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 35%;
  border-radius: inherit;
  background: var(--primary);
  animation: activity-slide 1s infinite ease-in-out;
}
@keyframes activity-slide {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #d7e0eb;
  padding-bottom: 16px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.dashboard-health {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.dashboard-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
}
.stat,
.panel,
.table-wrap,
.upload-zone {
  background: var(--surface-clay);
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.stat {
  padding: 18px;
}
.panel {
  padding: 18px;
}
.stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.stat strong {
  display: block;
  font-size: 34px;
  margin-top: 7px;
  color: #111827;
}
.health-card span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}
.health-card strong {
  color: #111827;
  display: block;
  font-size: 34px;
  margin: 8px 0;
}
.mini-meter,
.chart-track {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5edf4;
  box-shadow: var(--shadow-inset);
}
.mini-meter i,
.chart-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}
.chart-panel {
  min-height: 248px;
}
.chart-row {
  display: grid;
}
.chart-row + .chart-row {
  margin-top: 12px;
}
.chart-action {
  width: 100%;
  text-align: left;
  background: transparent;
  border-radius: 8px;
  padding: 7px;
}
.chart-action:hover {
  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f3effd);
  box-shadow: var(--shadow-soft);
}
.chart-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}
.chart-label span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chart-label strong {
  color: #111827;
}
.chart-track.accent i {
  background: var(--accent);
}
.chart-row small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 4px;
}
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.35fr) minmax(280px, .85fr);
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}
.candidate-list-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}
.candidate-list-person > span:last-child {
  display: grid;
  gap: 2px;
}
.candidate-list-person strong {
  color: var(--ink);
}
.candidate-list-person small {
  color: var(--muted);
  font-size: 11px;
}
.candidate-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background:
    linear-gradient(
      145deg,
      #d9f2ef,
      #b7ddd8);
  color: #0f5f67;
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 6px 16px rgba(27, 71, 76, .16);
  font-weight: 900;
}
.candidate-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.candidate-avatar--small {
  width: 38px;
  height: 38px;
  font-size: 12px;
}
.candidate-avatar--large {
  width: 116px;
  height: 116px;
  font-size: 30px;
  border-width: 4px;
}
.candidate-profile-hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(31, 147, 143, .16),
      transparent 34%),
    linear-gradient(
      135deg,
      #ffffff,
      #edf7f6);
  border-color: rgba(141, 202, 197, .52);
}
.candidate-profile-heading {
  min-width: 0;
}
.candidate-profile-eyebrow,
.panel-section-heading span {
  display: block;
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.candidate-profile-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  color: #10222a;
}
.candidate-profile-heading > p {
  margin: 6px 0 12px;
  color: #48636b;
  font-size: 16px;
  font-weight: 700;
}
.candidate-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.candidate-profile-meta span,
.status-badge {
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid #d3e5e4;
  padding: 6px 10px;
  color: #3c5960;
  font-size: 12px;
  font-weight: 800;
}
.candidate-profile-status {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: start;
}
.status-badge {
  background: #dff4ef;
  border-color: #abd9cf;
  color: #176657;
  text-transform: capitalize;
}
.profile-favorite {
  width: 38px;
  height: 38px;
  color: #ca8a04;
}
.candidate-main-panel {
  grid-column: 1;
  grid-row: span 2;
}
.candidate-side-panel,
.candidate-files-panel {
  grid-column: 2;
}
.experience-panel,
.detail-grid > .extracted-panel:last-child {
  grid-column: 1 / -1;
}
.panel-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 16px;
}
.panel-section-heading h3 {
  margin: 0;
  color: #14262d;
}
.panel-section-heading > small {
  color: var(--muted);
}
.candidate-insight {
  margin: 14px 0;
  padding: 15px 16px;
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  background: #edf8f6;
  color: #31545a;
}
.candidate-insight p {
  margin: 6px 0 0;
  line-height: 1.55;
}
.profile-section {
  margin-top: 18px;
}
.profile-section h3 {
  font-size: 14px;
  margin-bottom: 9px;
}
.profile-skills span {
  background: #dff4ef;
  color: #165f55;
  border-color: #b7ddd5;
}
.keyword-chips span {
  background: #eef0f8;
  color: #45506f;
}
.candidate-contact-card {
  display: grid;
  gap: 9px;
  margin-bottom: 16px;
}
.candidate-contact-card > div {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  background: #f7fafb;
  border: 1px solid #e2eaec;
  border-radius: 8px;
}
.candidate-contact-card small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 10px;
}
.candidate-contact-card strong {
  overflow-wrap: anywhere;
  color: #233b43;
}
.experience-panel {
  padding: 24px;
}
.experience-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  padding-bottom: 22px;
}
.experience-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 14px;
  bottom: -2px;
  width: 2px;
  background: #cce4e0;
}
.experience-dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px #e0f2ef;
  margin-top: 3px;
}
.experience-content small {
  color: var(--primary);
  font-weight: 850;
}
.experience-content h4 {
  margin: 4px 0 2px;
  color: #14262d;
  font-size: 17px;
}
.experience-content > strong {
  color: #587079;
  font-size: 13px;
}
.experience-content p {
  color: #465e66;
  line-height: 1.55;
}
.extracted-details summary {
  cursor: pointer;
  color: #31545a;
  font-weight: 850;
}
.extracted-details pre {
  margin-top: 14px;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}
.admin-card {
  min-width: 0;
}
.companies-card,
.users-card,
.stripe-registrations-card {
  grid-column: 1 / -1;
}
.company-form-card,
.user-form-card {
  grid-column: auto;
}
.admin-edit-panel {
  grid-column: 1 / -1;
}
.users-card .user-row,
.companies-card .user-row {
  align-items: flex-start;
}
.users-card .user-row > span,
.companies-card .user-row > span {
  line-height: 1.35;
}
.admin-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}
.admin-overview > div {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(216, 228, 237, .95);
  border-radius: 10px;
  background:
    linear-gradient(
      145deg,
      #fff,
      #f5f2fa);
  box-shadow: var(--shadow-soft);
}
.admin-overview span,
.admin-overview small {
  color: var(--muted);
  font-weight: 750;
}
.admin-overview strong {
  color: var(--ink);
  font-size: 27px;
}
.panel-head-actions p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.company-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.company-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(216, 228, 237, .95);
  border-radius: 10px;
  background:
    linear-gradient(
      145deg,
      #fff,
      #f8f6fb);
  box-shadow: var(--shadow-soft);
}
.company-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
}
.company-card-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.company-card-head strong {
  color: var(--ink);
  font-size: 15px;
}
.company-card-head small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}
.company-monogram {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background:
    linear-gradient(
      145deg,
      #815cf0,
      #5932c4);
  color: white;
  font-weight: 900;
}
.plan-badge,
.role-badge,
.status-badge {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  text-transform: capitalize;
  white-space: nowrap;
}
.plan-badge {
  color: #5932c4;
  background: #eee8ff;
}
.plan-free {
  color: #166534;
  background: #dcfce7;
}
.plan-payg {
  color: #075985;
  background: #e0f2fe;
}
.company-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.company-metrics > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(239, 244, 247, .75);
}
.company-metrics span,
.admin-user-company small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.company-metrics strong {
  color: #26344d;
  font-size: 13px;
}
.company-balance {
  color: #334155;
  padding: 9px 11px;
  border-radius: 8px;
  background: #effaf8;
}
.company-actions {
  padding-top: 12px;
  border-top: 1px solid var(--soft-line);
}
.admin-user-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) minmax(150px, .7fr) auto auto minmax(260px, auto);
}
.admin-user-identity {
  display: flex;
  gap: 10px;
  align-items: center;
}
.admin-user-identity > span:last-child,
.admin-user-company {
  display: grid;
  gap: 3px;
}
.admin-user-identity small {
  color: var(--muted);
}
.role-badge {
  justify-self: start;
  color: #5932c4;
  background: #eee8ff;
}
.status-badge {
  justify-self: start;
}
.status-badge.is-active {
  color: #166534;
  background: #dcfce7;
}
.status-badge.is-inactive {
  color: #991b1b;
  background: #fee2e2;
}
.stripe-registration-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, .6fr) auto minmax(220px, .8fr) auto;
  gap: 12px;
  align-items: center;
}
.stripe-registration-row > span:first-child,
.stripe-registration-row > span:nth-child(2),
.stripe-registration-reference {
  display: grid;
  gap: 3px;
}
.stripe-registration-row small {
  color: var(--muted);
}
.stripe-registration-reference {
  min-width: 0;
}
.stripe-registration-reference strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.stripe-registration-reference em {
  color: #991b1b;
  font-size: 11px;
  font-style: normal;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 0 14px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.account-settings-grid {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(360px, 1.1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}
.config-layout {
  display: grid;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.config-main {
  display: grid;
  gap: 16px;
}
.config-side {
  display: grid;
  gap: 16px;
}
.config-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.config-section-tabs button {
  background:
    linear-gradient(
      145deg,
      #f8fbfd,
      #eaf1f6);
  border: 1px solid rgba(216, 228, 237, .95);
  border-radius: 8px;
  color: #334155;
  font-weight: 850;
  padding: 9px 13px;
  box-shadow: var(--shadow-soft);
}
.config-section-tabs button.active {
  background:
    linear-gradient(
      145deg,
      #182338,
      #0d1726);
  border-color: #101827;
  color: white;
}
.config-group-strip {
  column-count: 2;
  column-gap: 16px;
}
.config-group-strip > .panel {
  display: inline-block;
  width: 100%;
  min-width: 0;
  margin: 0 0 16px;
  break-inside: avoid;
}
.settings-panel {
  max-width: none;
}
.settings-panel + .settings-panel {
  margin-top: 0;
}
.settings-panel label {
  margin: 0;
}
.setting-fields {
  display: grid;
  gap: 12px;
}
.compact-fields {
  gap: 10px;
}
.two-col-settings {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px 16px;
}
.full-setting-field {
  grid-column: 1 / -1;
}
.full-setting-field textarea {
  min-height: 220px;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  line-height: 1.5;
}
.wide-settings-panel {
  grid-column: 1 / -1;
}
.panel-head-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.panel-head-actions h3 {
  margin-bottom: 0;
}
.setting-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}
.setting-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  border: 1px solid rgba(225, 234, 241, .95);
  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f1f6f9);
  border-radius: 8px;
  padding: 10px;
  box-shadow: var(--shadow-inset);
}
.setting-toggle input {
  margin-top: 2px;
  flex: 0 0 auto;
}
.setting-toggle span {
  display: grid;
  gap: 4px;
}
.setting-toggle strong {
  color: #334155;
  font-size: 13px;
}
.note-form {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 10px;
}
.company-users-panel {
  margin-top: 16px;
}
.company-user-invite {
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) minmax(170px, .7fr) auto;
  align-items: end;
  margin: 16px 0;
}
.company-user-invite button {
  min-height: 42px;
}
.inline-company-fields {
  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f8f6fb);
  border: 1px solid rgba(225, 234, 241, .95);
  border-radius: 8px;
  margin: 12px 0;
  padding: 12px;
  box-shadow: var(--shadow-inset);
}
.inline-company-fields h3 {
  margin-bottom: 8px;
}
.bulk-bar {
  display: grid;
  grid-template-columns: auto minmax(180px, 240px) minmax(180px, 240px) auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 850;
}
.filter-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  padding: 12px 14px;
  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f3effd);
  border: 1px solid rgba(216, 228, 237, .95);
  box-shadow: var(--shadow-soft);
}
.filter-banner div {
  display: grid;
  gap: 3px;
}
.filter-banner strong {
  color: var(--ink);
}
.filter-banner span {
  color: var(--muted);
  font-weight: 750;
}
.pipeline-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.pipeline-pill {
  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f5f2fa);
  border: 1px solid rgba(216, 228, 237, .95);
  color: #334155;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 850;
  box-shadow: var(--shadow-soft);
}
.pipeline-pill.active {
  background:
    linear-gradient(
      145deg,
      #815cf0,
      #6137d2);
  border-color: #7147e8;
  color: white;
  box-shadow: 7px 9px 18px rgba(16, 24, 39, .18);
}
.report-panels {
  margin: 16px 0;
}
.extracted-panel {
  grid-column: 1 / -1;
}
.extracted-panel pre {
  white-space: pre-wrap;
  max-height: 340px;
  overflow: auto;
  background: #f8f6fb;
  border: 1px solid rgba(225, 234, 241, .95);
  border-radius: 8px;
  padding: 14px;
  color: #334155;
  line-height: 1.45;
  box-shadow: var(--shadow-inset);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
}
.chips span,
.chip-button {
  background:
    linear-gradient(
      145deg,
      #fbfaff,
      #eee8ff);
  border: 1px solid #dcd0ff;
  color: #5932c4;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}
.gap-chips span {
  background:
    linear-gradient(
      145deg,
      #fff8f8,
      #ffecec);
  border-color: #fecaca;
  color: #991b1b;
}
.chip-button.active {
  background:
    linear-gradient(
      145deg,
      #815cf0,
      #6137d2);
  border-color: var(--primary);
  color: white;
}
.tag-tools h3 {
  margin-top: 8px;
}
.row {
  padding: 10px 0;
  border-top: 1px solid var(--soft-line);
  color: #334155;
}
.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.empty {
  padding: 18px;
  color: #64748b;
  text-align: center;
}
.panel .empty,
.table-wrap .empty {
  background: rgba(255, 255, 255, .46);
  border-radius: 8px;
  box-shadow: var(--shadow-inset);
}
.upload-zone {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-height: 218px;
  padding: 24px;
  border-style: dashed;
  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f4f0fb);
}
.upload-source {
  width: min(540px, 100%);
  margin: 0;
  text-align: left;
}
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.semantic-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  margin-bottom: 12px;
}
.job-create-panel {
  margin-bottom: 18px;
}
.job-create-panel .panel-head-actions {
  align-items: flex-start;
  margin-bottom: 16px;
}
.job-criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 12px;
}
.field-card {
  display: grid;
  align-content: start;
  gap: 6px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(216, 228, 237, .9);
  border-radius: 9px;
  background: rgba(250, 251, 253, .86);
}
.field-card > span {
  color: #26344d;
  font-size: 13px;
  font-weight: 900;
}
.field-card input,
.field-card select {
  margin: 0;
  background: white;
}
.field-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.skills-field {
  margin-top: 12px;
}
.skill-preview {
  margin: 2px 0 0;
}
.criteria-priority {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--soft-line);
}
.criteria-priority > p {
  margin: 4px 0 12px;
  color: var(--muted);
}
.company-mail-settings {
  margin-top: 16px;
}
.billing-actions {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(216, 228, 237, .95);
  border-radius: 9px;
  background: #f8fafc;
}
.billing-actions > button {
  justify-self: start;
}
.billing-subscribe-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.billing-subscribe-form label {
  margin: 0;
}
.billing-subscribe-form input,
.billing-subscribe-form select {
  margin-bottom: 0;
}
.stripe-setup-layout {
  display: grid;
  grid-template-columns: minmax(540px, 1.4fr) minmax(300px, .6fr);
  gap: 16px;
  align-items: start;
}
.stripe-setup-panel .panel-head-actions {
  align-items: flex-start;
}
.stripe-setup-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 18px;
}
.stripe-setup-steps > div {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 11px;
  border-radius: 8px;
  background: #f5f2fa;
  color: #475569;
  font-size: 12px;
  line-height: 1.4;
}
.stripe-setup-steps strong {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--primary);
  color: white;
}
.stripe-diagnostic-panel {
  display: grid;
  gap: 8px;
}
.stripe-mode {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px;
  border-radius: 8px;
  background: #eef4f7;
}
.stripe-check {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 9px 10px;
  border-top: 1px solid var(--soft-line);
}
.stripe-check > span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  font-weight: 900;
}
.stripe-check.complete > span {
  color: #166534;
  background: #dcfce7;
}
.stripe-check.pending > span {
  color: #991b1b;
  background: #fee2e2;
}
.stripe-check small {
  color: var(--muted);
}
.match-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
}
.match-toolbar div {
  display: grid;
  gap: 3px;
  color: var(--muted);
}
.match-toolbar strong {
  color: var(--ink);
  font-size: 15px;
}
.matching-layout {
  display: grid;
  grid-template-columns: minmax(460px, 1.08fr) minmax(360px, .92fr);
  gap: 16px;
  align-items: start;
}
.matching-list-panel,
.match-detail-panel {
  min-width: 0;
}
.match-table-head,
.match-candidate-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) 82px 92px minmax(130px, .9fr);
  gap: 12px;
  align-items: center;
}
.match-table-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 0 12px 8px;
  border-bottom: 1px solid var(--soft-line);
}
.match-candidate-list {
  display: grid;
  max-height: 620px;
  overflow: auto;
}
.match-candidate-row {
  width: 100%;
  text-align: left;
  border-radius: 8px;
  padding: 11px 12px;
  color: #334155;
  background: transparent;
  border-bottom: 1px solid var(--soft-line);
}
.match-candidate-row:hover,
.match-candidate-row.active {
  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f3effd);
  box-shadow: var(--shadow-soft);
}
.match-person {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.match-person strong,
.match-person small,
.match-candidate-row > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-person strong {
  color: var(--ink);
  font-size: 14px;
}
.match-person small {
  color: var(--muted);
  font-weight: 700;
}
.score-pill,
.fit-pill {
  justify-self: start;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}
.score-pill {
  color: #065f46;
  background: #dff7f3;
}
.fit-pill {
  color: #334155;
  background: #eef4f7;
}
.fit-alto {
  color: #065f46;
  background: #dcfce7;
}
.fit-medio {
  color: #854d0e;
  background: #fef3c7;
}
.fit-bajo {
  color: #991b1b;
  background: #fee2e2;
}
.match-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.match-summary-grid div {
  display: grid;
  gap: 5px;
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f8f6fb);
  box-shadow: var(--shadow-inset);
}
.match-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.match-summary-grid strong {
  color: var(--ink);
}
.match-detail-section {
  margin-top: 16px;
}
.match-detail-section h3 {
  margin-bottom: 8px;
}
.weight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.weight-card {
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 8px;
  background: var(--surface-clay);
  padding: 12px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-soft);
}
.weight-head {
  display: grid;
  gap: 5px;
}
.weight-head span {
  color: #26344d;
  font-size: 13px;
  font-weight: 900;
}
.weight-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}
.weight-card select {
  margin: 0;
  font-weight: 850;
}
.permissions-panel {
  max-width: 100%;
  margin-top: 16px;
}
.permission-role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.permission-role-tabs button {
  background:
    linear-gradient(
      145deg,
      #f8fbfd,
      #eaf1f6);
  border: 1px solid rgba(216, 228, 237, .95);
  border-radius: 8px;
  color: #334155;
  font-weight: 850;
  padding: 9px 12px;
  box-shadow: var(--shadow-soft);
}
.permission-role-tabs button.active {
  background:
    linear-gradient(
      145deg,
      #182338,
      #0d1726);
  border-color: #101827;
  color: white;
}
.permission-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.permission-module-card {
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 8px;
  background: var(--surface-clay);
  padding: 12px;
  box-shadow: var(--shadow-soft);
}
.permission-module-card strong {
  display: block;
  margin-bottom: 8px;
  color: #26344d;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 6px 0;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}
.match-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.maintenance-panel {
  margin-top: 16px;
}
.maintenance-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(240px, .9fr) minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 16px;
  align-items: start;
}
.report-actions {
  justify-content: flex-start;
  margin-bottom: 16px;
}
.table-wrap {
  padding: 0;
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 780px;
}
th,
td {
  text-align: left;
  padding: 12px 15px;
  border-bottom: 1px solid var(--soft-line);
  vertical-align: top;
}
th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  background: #f8f6fb;
}
tbody tr:hover {
  background: rgba(255, 255, 255, .54);
}
.alert,
.success,
.notice {
  margin-top: 12px;
  border-radius: 8px;
  padding: 12px;
  line-height: 1.4;
  box-shadow: var(--shadow-soft);
}
.alert {
  border-left: 4px solid var(--danger);
  background: #fff1f2;
  color: #9f1239;
}
.success {
  border-left: 4px solid var(--primary);
  background: #ecfdf5;
  color: #065f46;
}
.notice {
  color: #6b4e16;
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-clay);
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.list-item > button {
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
  font-weight: 850;
}
.list-item span {
  color: var(--primary);
  font-weight: 850;
  margin-left: 10px;
}
.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.build-badge {
  margin-top: auto;
  padding: 10px 12px;
  color: #8aa0bd;
  font-size: 11px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  overflow-wrap: anywhere;
}
@media (max-width: 1360px) {
  .admin-grid {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
  }
  .companies-card,
  .company-form-card,
  .users-card,
  .user-form-card,
  .admin-edit-panel {
    grid-column: 1 / -1;
  }
  .admin-user-row {
    grid-template-columns: minmax(220px, 1fr) minmax(150px, .7fr) auto auto;
  }
  .admin-user-row > .row-actions {
    grid-column: 1 / -1;
  }
  .stripe-registration-row {
    grid-template-columns: minmax(220px, 1fr) minmax(150px, .7fr) auto;
  }
  .stripe-registration-reference {
    grid-column: 1 / -1;
  }
  .maintenance-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
  .matching-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 980px) {
  .app-shell,
  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }
  aside {
    position: static;
    height: auto;
  }
  aside.collapsed {
    padding-inline: 12px;
  }
  .collapsed .sidebar-brand {
    justify-content: space-between;
  }
  .collapsed .logo {
    display: flex;
  }
  .collapsed .nav-label {
    display: initial;
  }
  .collapsed .sidebar-user-meta {
    display: grid;
  }
  .collapsed .build-badge {
    display: block;
  }
  .collapsed nav button,
  .collapsed .logout {
    justify-content: flex-start;
    padding-inline: 12px;
  }
  .collapsed .sidebar-user {
    justify-content: flex-start;
    padding: 6px;
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .08);
  }
  nav {
    grid-template-columns: repeat(2, 1fr);
  }
  main {
    padding: 18px;
  }
  .stats-grid,
  .split,
  .filters,
  .detail-grid,
  .admin-grid,
  .form-grid,
  .weight-grid,
  .bulk-bar,
  .inline-form,
  .semantic-search,
  .account-settings-grid,
  .config-layout,
  .config-group-strip,
  .two-col-settings,
  .admin-overview,
  .job-criteria-grid,
  .billing-subscribe-form,
  .stripe-setup-layout,
  .stripe-setup-steps {
    grid-template-columns: 1fr;
  }
  .candidate-profile-hero {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
  .candidate-profile-status {
    grid-column: 1 / -1;
  }
  .candidate-main-panel,
  .candidate-side-panel,
  .candidate-files-panel,
  .experience-panel,
  .detail-grid > .extracted-panel:last-child {
    grid-column: 1;
    grid-row: auto;
  }
  .config-group-strip {
    column-count: 1;
  }
  .companies-card,
  .company-form-card,
  .users-card,
  .user-form-card,
  .admin-edit-panel {
    grid-column: auto;
  }
  .company-directory {
    grid-template-columns: 1fr;
  }
  .company-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .company-card-head {
    grid-template-columns: auto 1fr;
  }
  .company-card-head .plan-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .admin-user-row {
    display: flex;
  }
  .stripe-registration-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .page-head {
    display: block;
  }
  .user-row {
    align-items: stretch;
    flex-direction: column;
  }
  .list-item {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .row-actions {
    justify-content: stretch;
  }
  .row-actions button {
    flex: 1 1 160px;
  }
  .filter-banner {
    align-items: stretch;
    flex-direction: column;
  }
  .match-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .match-table-head {
    display: none;
  }
  .match-candidate-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .match-summary-grid {
    grid-template-columns: 1fr;
  }
}
.public-application {
  max-width: 760px;
  margin: 40px auto;
  padding: 20px;
}
.public-application .panel {
  display: grid;
  gap: 18px;
}
.public-application form {
  display: grid;
  gap: 14px;
}
.public-application form label:not(.check-row) {
  display: grid;
  gap: 6px;
}
.public-application .logo {
  margin-bottom: 8px;
}
