/* V67 · recruiter-facing engineering capability profile */

body[data-active-panel="growth-profile"] .recruiter-profile-card {
  padding: 0;
  overflow: visible;
  border: 1px solid var(--v51-border, #dbe4ef);
  background: var(--v51-card, #ffffff);
  box-shadow: 0 18px 48px rgba(31, 52, 84, 0.08);
}

/* V6.9 home CTA lock: engineering actions stay blue; purple is reserved for AI signals. */
:is(#hw-v69-home, html) body[data-active-panel="landing"] #landingStartInterviewBtn.landing-primary-action.primary-btn {
  color: #ffffff !important;
  background: #1677ff !important;
  background-image: none !important;
  border-color: #1677ff !important;
  box-shadow: 0 10px 24px rgba(22, 119, 255, 0.24) !important;
}

:is(#hw-v69-home, html) body[data-active-panel="landing"] #landingStartInterviewBtn.landing-primary-action.primary-btn:hover,
:is(#hw-v69-home, html) body[data-active-panel="landing"] #landingStartInterviewBtn.landing-primary-action.primary-btn:focus-visible {
  background: #0958d9 !important;
  background-image: none !important;
  border-color: #0958d9 !important;
  box-shadow: 0 12px 28px rgba(9, 88, 217, 0.28) !important;
}

/* Keep the draggable 3D mentor independent from the home decision controls. */
@media (min-width: 761px) {
  :is(#hw-v69-home, html) body[data-active-panel="landing"] .landing-v5-command-center .landing-today-advice {
    padding-right: clamp(120px, 13vw, 176px) !important;
    box-sizing: border-box !important;
  }

  :is(#hw-v69-home, html) body[data-active-panel="landing"] .landing-v5-command-center .landing-task-action-row {
    flex-wrap: wrap !important;
  }
}

@media (max-width: 760px) {
  :is(#hw-v69-home, html) body[data-active-panel="landing"] #landingStartInterviewBtn.landing-primary-action.primary-btn {
    align-self: flex-start !important;
    width: calc(100% - 112px) !important;
    min-width: 156px !important;
  }
}

.recruiter-profile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid var(--v51-border, #dbe4ef);
}

.recruiter-profile-card-head > div:first-child > span,
.recruiter-profile-controls > div:first-child > span {
  color: #7c4dff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.recruiter-profile-card-head h3,
.recruiter-profile-controls h4 {
  margin: 5px 0 0;
  color: var(--v51-text, #112238);
}

.recruiter-profile-card-head h3 {
  font-size: 24px;
}

.recruiter-profile-card-head p,
.recruiter-profile-controls p {
  margin: 7px 0 0;
  color: var(--v51-muted, #687b91);
  line-height: 1.65;
}

.recruiter-profile-card-actions,
.recruiter-profile-export-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.recruiter-profile-card-actions .primary-btn,
.recruiter-profile-dialog-toolbar .primary-btn {
  background: #1677ff;
  border-color: #1677ff;
  box-shadow: 0 9px 24px rgba(22, 119, 255, 0.2);
}

.recruiter-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.78fr);
  align-items: start;
  gap: 20px;
  padding: 22px;
  background: var(--v51-card-soft, #f5f8fc);
}

.recruiter-profile-sheet {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--v51-border, #dce5f0);
  border-radius: 20px;
  background: var(--v51-card, #ffffff);
  color: var(--v51-text, #122238);
  box-shadow: 0 16px 40px rgba(25, 46, 78, 0.07);
}

.recruiter-profile-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--v51-border, #dce5f0);
}

.recruiter-profile-monogram {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(22, 119, 255, 0.18);
  border-radius: 18px;
  background: #eaf3ff;
  color: #1268dc;
  font-size: 26px;
  font-weight: 950;
}

.recruiter-profile-identity > div:nth-child(2) > span,
.recruiter-profile-section-head > div > span {
  color: var(--v51-muted, #687b91);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.recruiter-profile-identity h3 {
  margin: 4px 0;
  font-size: 25px;
  line-height: 1.15;
}

.recruiter-profile-identity p,
.recruiter-profile-footer p {
  margin: 0;
  color: var(--v51-muted, #687b91);
}

.recruiter-profile-verified {
  min-width: 126px;
  text-align: right;
}

.recruiter-profile-verified i {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: #eef2f7;
  color: #718197;
  font-style: normal;
  font-weight: 900;
}

.recruiter-profile-verified.is-ready i {
  background: #ddf8e9;
  color: #10864a;
}

.recruiter-profile-verified strong,
.recruiter-profile-verified small {
  display: block;
  margin-top: 4px;
}

.recruiter-profile-verified strong {
  font-size: 13px;
}

.recruiter-profile-verified small {
  color: var(--v51-muted, #687b91);
  font-size: 10px;
}

.recruiter-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 0;
}

.recruiter-profile-stats > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--v51-border, #dce5f0);
  border-radius: 14px;
  background: var(--v51-card-soft, #f6f9fd);
}

.recruiter-profile-stats span,
.recruiter-profile-stats small {
  display: block;
  color: var(--v51-muted, #687b91);
  font-size: 10px;
}

.recruiter-profile-stats strong {
  display: block;
  margin: 5px 0;
  color: var(--v51-text, #122238);
  font-size: 25px;
  line-height: 1;
}

.recruiter-profile-section {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--v51-border, #dce5f0);
  border-radius: 16px;
  background: var(--v51-card-soft, #f7f9fc);
}

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

.recruiter-profile-section-head h4 {
  margin: 3px 0 0;
  font-size: 16px;
}

.recruiter-profile-section-head em {
  color: var(--v51-muted, #687b91);
  font-size: 11px;
  font-style: normal;
}

.recruiter-profile-abilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.recruiter-profile-abilities article {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--v51-border, #dce5f0);
  border-radius: 13px;
  background: var(--v51-card, #ffffff);
}

.recruiter-profile-abilities article.verified {
  border-color: rgba(24, 177, 100, 0.25);
}

.recruiter-profile-abilities article > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.recruiter-profile-abilities article > div > span {
  flex: 0 0 auto;
  color: #f3a01b;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.recruiter-profile-abilities article.pending > div > span,
.recruiter-profile-abilities article.unscored > div > span {
  color: #9aa8b8;
}

.recruiter-profile-abilities p,
.recruiter-profile-abilities small {
  display: block;
  margin: 7px 0 0;
  color: var(--v51-muted, #687b91);
  font-size: 11px;
  line-height: 1.5;
}

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

.recruiter-profile-projects > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.recruiter-profile-projects > div:last-child span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(22, 119, 255, 0.1);
  color: #1268dc;
  font-size: 11px;
  font-weight: 800;
}

.recruiter-profile-projects > div:last-child span.pending {
  background: rgba(105, 123, 145, 0.1);
  color: var(--v51-muted, #687b91);
}

.recruiter-profile-cases article {
  padding: 9px 0;
  border-top: 1px solid var(--v51-border, #dce5f0);
}

.recruiter-profile-cases article:first-child {
  padding-top: 0;
  border-top: 0;
}

.recruiter-profile-cases article p {
  margin: 4px 0 0;
  color: var(--v51-muted, #687b91);
  font-size: 11px;
  line-height: 1.5;
}

.recruiter-profile-empty {
  color: var(--v51-muted, #687b91);
  font-size: 12px;
}

.recruiter-profile-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--v51-border, #dce5f0);
  color: var(--v51-muted, #687b91);
  font-size: 10px;
  line-height: 1.55;
}

.recruiter-profile-footer span {
  flex: 0 0 auto;
  font-weight: 800;
}

.recruiter-profile-footer p {
  max-width: 620px;
  text-align: right;
}

.recruiter-profile-controls {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--v51-border, #dce5f0);
  border-radius: 18px;
  background: var(--v51-card, #ffffff);
}

.recruiter-profile-controls h4 {
  font-size: 17px;
}

.recruiter-profile-controls > label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--v51-border, #dce5f0);
  border-radius: 12px;
  cursor: pointer;
}

.recruiter-profile-controls > label input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: #1677ff;
}

.recruiter-profile-controls > label strong,
.recruiter-profile-controls > label small {
  display: block;
}

.recruiter-profile-controls > label strong {
  font-size: 12px;
}

.recruiter-profile-controls > label small {
  margin-top: 3px;
  color: var(--v51-muted, #687b91);
  font-size: 10px;
  line-height: 1.45;
}

.recruiter-profile-export-actions > button {
  flex: 1 1 110px;
}

.recruiter-profile-local-note {
  padding: 10px 11px;
  border-radius: 11px;
  background: rgba(22, 119, 255, 0.07);
  font-size: 10px;
}

.recruiter-profile-dialog {
  width: min(1120px, calc(100vw - 34px));
  max-height: calc(100vh - 34px);
  padding: 0;
  border: 1px solid var(--v51-border, #dce5f0);
  border-radius: 22px;
  background: var(--v51-card-soft, #f2f6fb);
  color: var(--v51-text, #122238);
  box-shadow: 0 40px 110px rgba(10, 24, 45, 0.28);
}

.recruiter-profile-dialog::backdrop {
  background: rgba(10, 22, 40, 0.58);
  backdrop-filter: blur(5px);
}

.recruiter-profile-dialog-toolbar {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--v51-border, #dce5f0);
  background: color-mix(in srgb, var(--v51-card, #fff) 94%, transparent);
  backdrop-filter: blur(18px);
}

.recruiter-profile-dialog-toolbar > div:first-child span,
.recruiter-profile-dialog-toolbar > div:first-child strong {
  display: block;
}

.recruiter-profile-dialog-toolbar > div:first-child span {
  color: #7c4dff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.recruiter-profile-dialog-toolbar > div:last-child {
  display: flex;
  gap: 8px;
}

.recruiter-profile-dialog > .recruiter-profile-sheet {
  margin: 18px;
}

html[data-theme="dark"] body[data-active-panel="growth-profile"] .recruiter-profile-card,
html[data-theme="dark"] .recruiter-profile-sheet,
html[data-theme="dark"] .recruiter-profile-controls,
html[data-theme="dark"] .recruiter-profile-dialog {
  --v51-card: #101c2d;
  --v51-card-soft: #0b1626;
  --v51-text: #eaf2ff;
  --v51-muted: #91a4bd;
  --v51-border: #24364d;
}

html[data-theme="dark"] .recruiter-profile-monogram {
  background: rgba(22, 119, 255, 0.15);
  color: #79b3ff;
}

html[data-theme="dark"] .recruiter-profile-projects > div:last-child span {
  color: #8ebeff;
}

@media (max-width: 1180px) {
  .recruiter-profile-layout {
    grid-template-columns: 1fr;
  }

  .recruiter-profile-controls {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recruiter-profile-controls > div:first-child,
  .recruiter-profile-export-actions,
  .recruiter-profile-local-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .recruiter-profile-card-head,
  .recruiter-profile-dialog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .recruiter-profile-card-actions > button,
  .recruiter-profile-dialog-toolbar > div:last-child > button:not(.icon-btn) {
    flex: 1 1 auto;
  }

  .recruiter-profile-layout {
    padding: 12px;
  }

  .recruiter-profile-sheet {
    padding: 18px;
  }

  .recruiter-profile-identity {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .recruiter-profile-verified {
    grid-column: 1 / -1;
    text-align: left;
  }

  .recruiter-profile-stats,
  .recruiter-profile-abilities,
  .recruiter-profile-proof-grid,
  .recruiter-profile-controls {
    grid-template-columns: 1fr;
  }

  .recruiter-profile-controls > div:first-child,
  .recruiter-profile-export-actions,
  .recruiter-profile-local-note {
    grid-column: auto;
  }

  .recruiter-profile-footer {
    display: block;
  }

  .recruiter-profile-footer p {
    margin-top: 7px;
    text-align: left;
  }

  .recruiter-profile-dialog > .recruiter-profile-sheet {
    margin: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .recruiter-profile-card *,
  .recruiter-profile-dialog * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
