/* =========================================================
   Higherd – UC06 clickable demo (see js/uc06-demo.js)
   Styled after the Higherd company app in the Figma prototype
   ========================================================= */

/* ---------- Page: journey section ---------- */
.hd-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 1rem;
  padding: 6px 14px;
  border: 1px solid rgba(196, 181, 253, 0.5);
  border-radius: 99px;
  background: rgba(124, 58, 237, 0.18);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #E9D5FF;
}

.hd-live__dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22C55E;
}

.hd-live__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22C55E;
  animation: hd-ping 1.6s ease-out infinite;
}

/* Caption sits above the full-width app window */
.uc-panel--app {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 1rem !important;
}

.uc-panel--app .uc-caption {
  position: static !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.uc-panel--app .uc-caption__role {
  margin-top: 0;
}

.uc-caption__line {
  flex-basis: 100%;
  margin: 0;
  line-height: 1.5;
  color: #CBD5E1;
}

/* ---------- App window ---------- */
.hd {
  --hd-accent: #4A0FA8;
  --hd-accent-2: #3B0A87;
  --hd-tint: #F3EEFF;
  --hd-ink: #101828;
  --hd-copy: #475467;
  --hd-muted: #667085;
  --hd-line: #EAECF0;
  --hd-bg: #F8F9FB;
  --hd-good: #16A34A;
  --hd-bad: #DC2626;
  --hd-orange: #F97316;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--hd-ink);
}

.hd *,
.hd *::before,
.hd *::after {
  box-sizing: border-box;
}

.hd p {
  margin: 0;
}

.hd button {
  font: inherit;
}

.hd :focus-visible {
  outline: 2px solid var(--hd-accent);
  outline-offset: 2px;
}

.hd-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hd-ico {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hd-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--hd-line);
  background: #fff;
  font-size: 0.75rem;
  color: #98A2B3;
}

.hd-dots {
  display: inline-flex;
  gap: 5px;
}

.hd-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #E4E7EC;
}

.hd-chrome__t {
  flex: 1;
  font-weight: 600;
  text-align: center;
}

.hd-link {
  padding: 2px 0;
  border: 0;
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hd-accent);
  cursor: pointer;
}

.hd-link:hover {
  text-decoration: underline;
}

.hd-chrome .hd-link {
  font-size: 0.75rem;
}

.hd-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

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

/* ---------- Menu (Higherd sidebar) ---------- */
.hd-side {
  border-bottom: 1px solid var(--hd-line);
  background: #fff;
}

.hd-side__logo,
.hd-side__sec {
  display: none;
}

.hd-side ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hd-side {
  display: flex;
  justify-content: space-between;
  gap: 2px;
  padding: 6px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hd-side::-webkit-scrollbar {
  display: none;
}

.hd-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 36px;
  padding: 0 9px;
  border: 0;
  border-radius: 10px;
  background: none;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  color: var(--hd-copy);
}

button.hd-nav {
  cursor: pointer;
}

button.hd-nav:hover {
  background: var(--hd-bg);
  color: var(--hd-ink);
}

.hd-nav.is-active {
  background: var(--hd-tint);
  font-weight: 600;
  color: var(--hd-accent);
}

.hd-nav.is-locked {
  color: #C0C6D0;
  cursor: not-allowed;
}

.hd-nav__l {
  display: none;
}

.hd-nav__n {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--hd-accent);
  font-size: 0.625rem;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  color: #fff;
}

/* ---------- Top bar ---------- */
.hd-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--hd-line);
  background: #fff;
}

.hd-top__title {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hd-top__sub {
  margin-top: 2px !important;
  color: var(--hd-muted);
}

.hd-top__r {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hd-aibtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #6D28D9, #A855F7);
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(109, 40, 217, 0.8);
}

.hd-aibtn .hd-ico {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}

.hd-aibtn:hover {
  filter: brightness(1.08);
}

.hd-bell {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--hd-tint);
  color: var(--hd-accent);
}

.hd-user {
  display: none;
  align-items: center;
  gap: 8px;
}

.hd-user__av {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E0D4FC;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hd-accent);
}

.hd-user__t {
  display: grid;
  line-height: 1.25;
}

.hd-user__t small {
  font-size: 0.6875rem;
  color: var(--hd-muted);
}

/* ---------- Body + panels ---------- */
.hd-body {
  display: grid;
  gap: 16px;
  padding: 18px 20px 22px;
}

.hd-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--hd-line);
  border-radius: 14px;
  background: #fff;
}

.hd-panel__h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.hd-panel__t {
  font-size: 1rem;
  font-weight: 600;
}

.hd-panel--center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hd-panel--center .hd-panel__h {
  align-self: stretch;
}

.hd-eyebrow {
  margin-bottom: 4px !important;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hd-accent);
}

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

.hd-sub {
  margin: 14px 0 8px !important;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hd-copy);
}

.hd-foot {
  margin-top: 12px !important;
  font-size: 0.75rem;
  color: var(--hd-muted);
}

.hd-tag {
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--hd-accent);
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
}

.hd-tag--soft {
  background: var(--hd-tint);
  color: var(--hd-accent);
}

.hd-grid {
  display: grid;
  gap: 16px;
}

.hd-stack {
  display: grid;
  gap: 16px;
}

/* ---------- Buttons ---------- */
.hd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--hd-accent);
  border-radius: 10px;
  background: var(--hd-accent);
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.hd-btn:hover {
  background: var(--hd-accent-2);
}

.hd-btn--ghost {
  border-color: #D0D5DD;
  background: #fff;
  color: var(--hd-ink);
}

.hd-btn--ghost:hover {
  border-color: var(--hd-accent);
  background: var(--hd-tint);
}

.hd-btn--sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.8125rem;
}

.hd-btn--done {
  border-color: #BBF7D0;
  background: #DCFCE7;
  color: #15803D;
}

.hd-btn--done:hover {
  background: #BBF7D0;
}

.hd-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.hd-x {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--hd-line);
  border-radius: 8px;
  background: #fff;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--hd-muted);
  cursor: pointer;
}

.hd-x:hover {
  border-color: #FECACA;
  background: #FEF2F2;
  color: var(--hd-bad);
}

.hd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.hd-ok {
  font-weight: 600;
  color: var(--hd-good);
}

/* ---------- 01 Dashboard ---------- */
.hd-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--hd-tint);
}

.hd-banner__t {
  font-size: 1rem;
  font-weight: 600;
  color: var(--hd-accent);
}

.hd-banner__s {
  margin-top: 2px !important;
  font-size: 0.8125rem;
  color: #7A5AF8;
}

.hd-banner--state .hd-banner__t {
  font-size: 1.125rem;
  color: var(--hd-ink);
}

.hd-banner__team b {
  font-weight: 600;
}

.hd-period {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--hd-line);
  border-radius: 10px;
}

.hd-period button {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: none;
  font-size: 0.8125rem;
  color: var(--hd-muted);
  cursor: pointer;
}

.hd-period button[aria-pressed="true"] {
  background: var(--hd-orange);
  font-weight: 600;
  color: #fff;
}

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

.hd-kpi {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--hd-line);
  border-radius: 12px;
  background: #fff;
}

.hd-kpi__i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--hd-tint);
  color: var(--hd-accent);
}

.hd-kpi__i .hd-ico {
  width: 16px;
  height: 16px;
}

.hd-kpi__l {
  font-size: 0.8125rem;
  color: var(--hd-copy);
}

.hd-kpi b {
  font-size: 1.5rem;
  font-weight: 600;
}

.hd-kpi small {
  font-size: 0.75rem;
  color: var(--hd-muted);
}

.hd-kpi--bar {
  border-left: 3px solid var(--hd-accent);
}

.hd-kpi--bar.is-warn {
  border-left-color: var(--hd-orange);
}

.hd-kpi--bar.is-warn b {
  color: var(--hd-orange);
}

/* WoW barometers */
.hd-baros {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.hd-baro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  border: 1px solid var(--hd-line);
  border-radius: 12px;
}

.hd-baro__v {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 2.6em;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--hd-copy);
}

.hd-baro__v em {
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 700;
}

.hd-baro__v em.is-up {
  color: var(--hd-good);
}

.hd-baro__v em.is-down {
  color: var(--hd-bad);
}

.hd-baro__track {
  position: relative;
  width: 14px;
  height: 120px;
  border-radius: 99px;
  background: #EEF0F3;
}

.hd-baro__base,
.hd-baro__fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 99px;
  transition: height 400ms ease;
}

.hd-baro__base {
  z-index: 1;
  background: rgba(255, 255, 255, 0.45);
}

.hd-baro__knob {
  position: absolute;
  left: 50%;
  z-index: 2;
  width: 18px;
  height: 18px;
  margin: 0 0 -9px -9px;
  border: 3px solid;
  border-radius: 50%;
  background: #fff;
  transition: bottom 400ms ease;
}

.hd-baro b {
  font-size: 0.75rem;
  font-weight: 600;
}

/* Talent Pool donut */
.hd-donut {
  position: relative;
  width: 150px;
  height: 150px;
}

.hd-donut svg {
  width: 100%;
  height: 100%;
}

.hd-donut circle {
  transition: stroke-dasharray 400ms ease, stroke-dashoffset 400ms ease;
}

.hd-donut__c {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}

.hd-donut__c b {
  font-size: 1.375rem;
}

.hd-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  margin: 12px 0 16px;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  color: var(--hd-copy);
}

.hd-legend li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hd-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Tables */
.hd-tablewrap {
  overflow-x: auto;
}

.hd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.hd-table th {
  padding: 9px 10px;
  background: var(--hd-bg);
  font-size: 0.6875rem;
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  color: var(--hd-muted);
  white-space: nowrap;
}

.hd-table th:first-child {
  border-radius: 8px 0 0 8px;
}

.hd-table th:last-child {
  border-radius: 0 8px 8px 0;
}

.hd-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--hd-line);
  white-space: nowrap;
}

.hd-table tr:last-child td {
  border-bottom: 0;
}

.hd-imp {
  text-align: center !important;
  font-variant-numeric: tabular-nums;
  color: var(--hd-muted);
}

.hd-imp.is-up {
  font-weight: 600;
  color: var(--hd-good);
}

.hd-imp.is-down {
  font-weight: 600;
  color: var(--hd-bad);
}

.hd-match {
  font-weight: 600;
  color: var(--hd-good);
}

.hd-idlink {
  padding: 0;
  border: 0;
  background: none;
  font-weight: 600;
  color: var(--hd-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Most recent gaps */
.hd-gaps {
  display: grid;
  gap: 10px;
}

.hd-gap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 12px 14px;
  border: 1px solid var(--hd-line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.hd-gap:hover {
  border-color: #C4B5FD;
  box-shadow: 0 6px 16px -10px rgba(74, 15, 168, 0.5);
}

.hd-gap.is-live {
  border-color: #FED7AA;
  background: #FFFBF5;
}

.hd-gap__id {
  font-size: 0.75rem;
  color: var(--hd-muted);
}

.hd-gap__s {
  grid-row: span 2;
  align-self: start;
  padding: 2px 9px;
  border-radius: 99px;
  background: #EEF4FF;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #3538CD;
}

.hd-gap__s.is-crit {
  background: #FFEDD5;
  color: #C2410C;
}

.hd-gap b {
  grid-column: 1;
  font-weight: 600;
}

.hd-gap small {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--hd-accent);
}

/* ---------- 02 Gap ---------- */
.hd-kpis--flat .hd-kpi {
  padding-left: 12px;
}

.hd-hbar {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.hd-hbar span:first-child {
  font-weight: 500;
}

.hd-hbar small {
  font-size: 0.75rem;
  color: var(--hd-muted);
}

.hd-hbar__t {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: #EDE9FE;
}

.hd-hbar__t i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--hd-accent);
  transition: width 400ms ease;
}

.hd-wowgrid {
  display: grid;
  gap: 12px 24px;
}

.hd-wowline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  font-size: 0.8125rem;
}

.hd-wowline .hd-hbar__t {
  grid-column: 1 / -1;
  height: 6px;
  background: #EEF0F3;
}

.hd-desk {
  display: grid;
  align-content: start;
  gap: 10px;
}

.hd-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--hd-line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  color: var(--hd-ink);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

button.hd-option:hover {
  border-color: var(--hd-accent);
  background: var(--hd-tint);
}

.hd-option b {
  display: block;
  font-weight: 600;
}

.hd-option small {
  font-size: 0.75rem;
  color: var(--hd-muted);
}

.hd-option > span:last-child {
  font-size: 1.125rem;
  color: var(--hd-accent);
}

.hd-option__n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--hd-tint);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hd-accent);
}

.hd-option.is-off {
  grid-template-columns: auto 1fr;
  opacity: 0.5;
  cursor: default;
}

.hd-process {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--hd-line);
  border-radius: 12px;
  background: #fff;
  list-style: none;
}

.hd-process li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: 99px;
  font-size: 0.8125rem;
  color: var(--hd-muted);
}

.hd-process span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hd-bg);
  font-size: 0.6875rem;
  font-weight: 700;
}

.hd-process li.is-done span {
  background: #DCFCE7;
  color: var(--hd-good);
}

.hd-process li.is-on {
  background: var(--hd-tint);
  font-weight: 600;
  color: var(--hd-accent);
}

.hd-process li.is-on span {
  background: var(--hd-accent);
  color: #fff;
}

/* ---------- 03 Post a job / Find candidate ---------- */
.hd-switch {
  display: inline-flex;
  justify-self: start;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--hd-line);
  border-radius: 12px;
  background: #fff;
}

.hd-switch button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: none;
  font-weight: 600;
  color: var(--hd-copy);
  cursor: pointer;
}

.hd-switch button[aria-pressed="true"] {
  background: var(--hd-accent);
  color: #fff;
}

.hd-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 14px 16px;
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  background: #F0FDF4;
  color: #14532D;
}

.hd-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 12px;
}

.hd-f {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.hd-f > span:first-child {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--hd-copy);
}

.hd-f--wide {
  grid-column: 1 / -1;
}

.hd-f input,
.hd-f select,
.hd-desc textarea,
.hd-search input,
.hd-addskill input,
.hd-ai__f input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #D0D5DD;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--hd-ink);
}

.hd-f input:focus,
.hd-f select:focus,
.hd-desc textarea:focus,
.hd-search input:focus,
.hd-addskill input:focus,
.hd-ai__f input:focus {
  border-color: var(--hd-accent);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(74, 15, 168, 0.12);
}

.hd-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
}

.hd-stepper button {
  width: 42px;
  height: 42px;
  border: 1px solid #D0D5DD;
  border-radius: 10px;
  background: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--hd-accent);
  cursor: pointer;
}

.hd-stepper button:hover {
  border-color: var(--hd-accent);
  background: var(--hd-tint);
}

.hd-stepper output {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.hd-skills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hd-skill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px 5px 12px;
  border-radius: 99px;
  background: var(--hd-tint);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--hd-accent);
}

.hd-dialog .hd-skill {
  padding-right: 12px;
}

.hd-skill button {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: none;
  line-height: 1;
  color: var(--hd-accent);
  cursor: pointer;
}

.hd-skill button:hover {
  background: #fff;
}

.hd-addskill input {
  width: 9rem;
  min-height: 32px;
  border-style: dashed;
  border-radius: 99px;
  font-size: 0.8125rem;
}

.hd-desc {
  margin-top: 4px;
}

.hd-desc__h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hd-desc textarea {
  min-height: 7.5rem;
  padding: 10px 12px;
  line-height: 1.55;
  resize: vertical;
}

.hd-aiinline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #DDD6FE;
  border-radius: 99px;
  background: linear-gradient(135deg, #F5F3FF, #FAE8FF);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6D28D9;
  cursor: pointer;
}

.hd-aiinline .hd-ico {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: none;
}

.hd-aiinline:hover {
  border-color: #A78BFA;
}

.hd-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 16rem;
}

.hd-search .hd-ico {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 16px;
  color: var(--hd-muted);
}

.hd-search input {
  min-height: 38px;
  padding-left: 34px;
}

.hd-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 12px;
}

.hd-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--hd-line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.hd-card:hover {
  box-shadow: 0 8px 20px -14px rgba(16, 24, 40, 0.4);
}

.hd-card.is-on {
  border-color: #86EFAC;
  background: #F7FEF9;
}

.hd-card__h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hd-card__h .hd-idlink {
  font-size: 1rem;
}

.hd-card__r {
  font-size: 0.8125rem;
  color: var(--hd-copy);
}

.hd-card .hd-sub {
  margin: 10px 0 4px !important;
  font-size: 0.75rem;
}

.hd-card__b {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.hd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hd-chip {
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.hd-chip.is-up {
  background: #DCFCE7;
  color: #15803D;
}

.hd-chip.is-down {
  background: #FEE2E2;
  color: #B91C1C;
}

.hd-coverbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 16px;
  border: 1px solid var(--hd-line);
  border-radius: 14px;
  background: #fff;
}

.hd-coverbar > div {
  flex: 1 1 14rem;
}

.hd-coverbar .hd-hbar__t {
  margin-top: 8px;
  background: #EEF0F3;
}

.hd-empty {
  padding: 24px;
  text-align: center;
  color: var(--hd-muted);
}

/* ---------- 04 Talent Pool ---------- */
.hd-sumcard {
  display: grid;
  align-content: start;
  gap: 8px;
}

.hd-big {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.hd-big span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--hd-muted);
}

.hd-sumcard .hd-hbar__t {
  background: #EEF0F3;
}

.hd-lift {
  display: grid;
  gap: 4px;
}

.hd-lift b {
  color: var(--hd-good);
}

.hd-status {
  min-height: 32px;
  padding: 0 28px 0 10px;
  border: 1px solid color-mix(in srgb, var(--c) 40%, #fff);
  border-radius: 99px;
  background: color-mix(in srgb, var(--c) 12%, #fff);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--c) 75%, #000);
  cursor: pointer;
}

.hd-table--pool td {
  vertical-align: middle;
}

.hd-emptystate {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 40px 18px;
  text-align: center;
}

.hd-emptystate__i {
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 50%;
  background: var(--hd-tint);
  fill: none;
  stroke: var(--hd-accent);
  stroke-width: 1.75;
}

.hd-emptystate .hd-btn {
  margin-top: 8px;
}

/* ---------- Profile dialog ---------- */
.hd-dialog {
  width: min(36rem, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px;
  border: 0;
}

.hd-dialog::backdrop {
  background: rgba(16, 24, 40, 0.55);
}

.hd-dialog__h {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.hd-dialog__t {
  font-size: 1.375rem;
  font-weight: 700;
}

.hd-dialog__p {
  margin-top: 12px !important;
  color: var(--hd-copy);
}

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

.hd-stats div {
  display: grid;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--hd-tint);
}

.hd-stats span {
  font-size: 0.75rem;
  color: var(--hd-muted);
}

.hd-stats b {
  font-size: 1.125rem;
  color: var(--hd-accent);
}

/* ---------- Higherd AI panel ---------- */
.hd-ai {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  width: min(23rem, calc(100vw - 32px));
  max-height: min(34rem, calc(100vh - 32px));
  border-radius: 16px;
  box-shadow: 0 24px 60px -12px rgba(16, 24, 40, 0.45), 0 0 0 1px rgba(16, 24, 40, 0.06);
}

.hd-ai[hidden] {
  display: none;
}

.hd-ai__h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #4A0FA8, #9333EA);
  color: #fff;
}

.hd-ai__h > .hd-ico {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: none;
}

.hd-ai__h p {
  flex: 1;
  display: grid;
  line-height: 1.25;
}

.hd-ai__h small {
  font-size: 0.75rem;
  opacity: 0.8;
}

.hd-ai__h .hd-x {
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
}

.hd-ai__log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 8rem;
  padding: 14px 16px;
  overflow-y: auto;
  background: var(--hd-bg);
}

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

.hd-ai__m {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 12px;
  line-height: 1.5;
}

.hd-ai__m--me {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--hd-accent);
  color: #fff;
}

.hd-ai__m--ai {
  align-self: flex-start;
  border: 1px solid var(--hd-line);
  border-bottom-left-radius: 4px;
  background: #fff;
}

.hd-ai__typing {
  display: inline-flex;
  gap: 4px;
}

.hd-ai__typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #A78BFA;
  animation: hd-dot 1s ease-in-out infinite;
}

.hd-ai__typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.hd-ai__typing i:nth-child(3) {
  animation-delay: 0.3s;
}

.hd-ai__q {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px 0;
  background: #fff;
}

.hd-ai__q button {
  padding: 6px 10px;
  border: 1px solid #DDD6FE;
  border-radius: 99px;
  background: #F5F3FF;
  font-size: 0.8125rem;
  color: #5B21B6;
  text-align: left;
  cursor: pointer;
}

.hd-ai__q button:hover {
  border-color: #A78BFA;
}

.hd-ai__f {
  display: flex;
  gap: 8px;
  padding: 10px 16px 14px;
  background: #fff;
}

.hd-ai__f input {
  min-height: 38px;
}

/* ---------- Pulse + toast ---------- */
.hd .hd-pulse {
  position: relative;
  z-index: 1;
  outline: 2px solid #C4B5FD;
  outline-offset: 2px;
  animation: hd-ring 1.6s ease-out infinite;
}

.hd-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  background: #101828;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5);
  font: 500 0.9375rem/1.4 var(--font-sans, Inter, system-ui, sans-serif);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.hd-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hd-toast__ok {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #22C55E;
  font-size: 0.75rem;
  font-weight: 700;
}

@keyframes hd-ring {
  0%   { box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.6); }
  70%  { box-shadow: 0 0 0 14px rgba(124, 58, 237, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

@keyframes hd-ping {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.6); opacity: 0; }
}

@keyframes hd-dot {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%      { transform: translateY(-3px); opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .hd-shell {
    grid-template-columns: 4rem minmax(0, 1fr);
  }

  .hd-side {
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    padding: 14px 10px;
    border-right: 1px solid var(--hd-line);
    border-bottom: 0;
    overflow: visible;
  }

  .hd-side ul {
    flex-direction: column;
  }

  .hd-side__end {
    margin-top: auto !important;
  }

  .hd-nav {
    justify-content: center;
    min-height: 40px;
  }

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

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

  .hd-user {
    display: flex;
  }
}

@media (min-width: 900px) {
  .hd-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  }

  .hd-grid--gap {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }

  .hd-grid--pool {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  }
}

@media (min-width: 1100px) {
  .hd-shell {
    grid-template-columns: 15.5rem minmax(0, 1fr);
  }

  .hd-side {
    padding: 20px 14px;
  }

  .hd-side__logo {
    display: block;
    padding: 0 8px 14px;
  }

  .hd-side__logo img {
    width: 104px;
    height: auto;
  }

  .hd-side__sec {
    display: block;
    margin: 12px 0 4px !important;
    padding: 12px 10px 0;
    border-top: 1px solid var(--hd-line);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #98A2B3;
  }

  .hd-nav {
    justify-content: flex-start;
    padding: 0 12px;
  }

  .hd-nav__l {
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hd-nav__n {
    position: static;
  }

  .hd-body {
    padding: 20px 24px 26px;
  }

  .hd-top {
    padding: 20px 24px;
  }
}

@media (max-width: 479px) {
  .hd-top,
  .hd-body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hd-panel {
    padding: 14px;
  }

  .hd-baros {
    gap: 4px;
  }

  .hd-baro {
    padding: 8px 2px;
    border: 0;
  }

  .hd-hbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hd-hbar .hd-hbar__t {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hd-aibtn span {
    display: none;
  }

  .hd-card__b {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hd .hd-pulse,
  .hd-live__dot::after,
  .hd-ai__typing i {
    animation: none;
  }

  .hd-toast,
  .hd-baro__fill,
  .hd-baro__knob,
  .hd-donut circle,
  .hd-hbar__t i {
    transition: none;
  }
}

/* =========================================================
   Screens from the Figma file: Job Details, Candidates Profile,
   Talent Pool table, Report View, Decision Impact
   ========================================================= */
.hd-accent { color: var(--hd-accent); }
.hd-mt { margin-top: 14px !important; }
.hd-mt0 { margin: 0 !important; }
.hd-mb { margin-bottom: 12px !important; }
.hd-small { font-size: 0.75rem; font-weight: 400; }
.hd-h4 { margin: 0 0 8px !important; font-size: 0.875rem; font-weight: 600; }
.hd-copy { color: var(--hd-copy); line-height: 1.6; }
.hd-copy + .hd-h4, .hd-bul + .hd-h4 { margin-top: 18px !important; }
.hd-actions--start { justify-content: flex-start; margin-top: 0; }

.hd-top__t { display: flex; align-items: center; gap: 10px; }

.hd-back {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--hd-ink);
  cursor: pointer;
}

.hd-back:hover { background: var(--hd-bg); }

/* Buttons */
.hd-btn--xs { min-height: 28px; padding: 0 10px; font-size: 0.75rem; border-radius: 7px; }
.hd-btn--green { border-color: #16A34A; background: #16A34A; }
.hd-btn--green:hover { background: #15803D; }
.hd-btn--green.is-on { border-color: #BBF7D0; background: #DCFCE7; color: #15803D; }
.hd-btn--danger { border-color: #BE123C; background: #BE123C; }
.hd-btn--danger:hover { background: #9F1239; }
.hd-btn--outline-danger { border-color: #FECDD3; background: #fff; color: #BE123C; }
.hd-btn--outline-danger:hover { border-color: #BE123C; background: #FFF1F2; }

.hd-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 99px;
  background: #EEF4FF;
  font-size: 0.6875rem;
  font-weight: 600;
  vertical-align: middle;
  color: #3538CD;
}

.hd-pill--ok { background: #DCFCE7; color: #15803D; }
.hd-pill--warn { background: #FEF3C7; color: #B45309; }
.hd-pill--bad { background: #FEE2E2; color: #B91C1C; }

.hd-skill--green { background: #DCFCE7; color: #15803D; }
.hd-skill--plain { background: #F2F4F7; color: var(--hd-copy); }

/* ---------- Job Details ---------- */
.hd-confirm {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #FECDD3;
  border-radius: 14px;
  background: #FFF1F2;
}

.hd-confirm input {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #FDA4AF;
  border-radius: 10px;
  font: inherit;
}

.hd-confirm .hd-actions { margin-top: 0; }

.hd-jobhead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.hd-jobhead__t { font-size: 1.125rem; font-weight: 700; }

.hd-jobhead__m {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-top: 10px !important;
  color: var(--hd-muted);
}

.hd-jobhead__m b { color: var(--hd-ink); }
.hd-jobhead__m .hd-accent { color: var(--hd-accent); }
.hd-jobhead__m .hd-link { text-decoration: underline; }

.hd-jobhead__b { display: flex; flex-wrap: wrap; gap: 8px; }

.hd-tabs2 {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--hd-line);
}

.hd-tabs2 button {
  margin-bottom: -1px;
  padding: 8px 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-size: 0.875rem;
  color: var(--hd-muted);
  cursor: pointer;
}

.hd-tabs2 button[aria-pressed="true"] {
  border-bottom-color: var(--hd-accent);
  font-weight: 600;
  color: var(--hd-accent);
}

.hd-jobgrid {
  display: grid;
  gap: 20px;
  margin-top: 18px;
}

.hd-bul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--hd-copy);
}

.hd-bul li {
  position: relative;
  padding-left: 16px;
}

.hd-bul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hd-orange);
}

.hd-keybox {
  align-self: start;
  padding: 16px;
  border: 1.5px dashed #C4B5FD;
  border-radius: 12px;
}

.hd-keyrow {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  margin-bottom: 10px;
}

.hd-keyrow .hd-ico {
  grid-row: span 2;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--hd-accent);
}

.hd-keyrow span { font-size: 0.75rem; color: var(--hd-muted); }
.hd-keyrow b { font-weight: 600; }

.hd-langs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hd-langs--col { grid-template-columns: 1fr; }

.hd-langs div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.hd-langs b { flex-basis: 100%; font-weight: 600; }
.hd-langs small { font-size: 0.75rem; color: var(--hd-muted); }

.hd-dotsrate { display: inline-flex; gap: 4px; }

.hd-dotsrate i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #EAECF0;
}

.hd-dotsrate i.is-on { background: var(--hd-orange); }

/* ---------- Talent Pool table ---------- */
.hd-pooltools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.hd-pooltools__r { display: flex; flex-wrap: wrap; gap: 8px; }

.hd-plain {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #D0D5DD;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.8125rem;
}

.hd-acts { display: inline-flex; gap: 4px; }

.hd-acts button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #F2F4F7;
  cursor: pointer;
}

.hd-acts .hd-ico { width: 14px; height: 14px; }
.hd-acts .a-view { color: #6D28D9; background: #F3EEFF; }
.hd-acts .a-report { color: #D97706; background: #FEF3C7; }
.hd-acts .a-assign { color: #2563EB; background: #DBEAFE; }
.hd-acts .a-visa { color: #16A34A; background: #DCFCE7; }
.hd-acts .a-del { color: #DC2626; background: #FEE2E2; }
.hd-acts button:hover { filter: brightness(0.94); }

/* ---------- Report View ---------- */
.hd-rephead,
.hd-phead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hd-rephead__l,
.hd-phead__l {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hd-rephead__l .hd-actions { margin-top: 10px; }
.hd-rephead__t, .hd-phead__t { font-size: 1.25rem; font-weight: 700; }

.hd-av {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--hd-tint);
  color: var(--hd-accent);
}

.hd-av .hd-ico { width: 26px; height: 26px; }

.hd-rings { display: flex; flex-wrap: wrap; gap: 18px; }

.hd-ring {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 84px;
}

.hd-ring svg { width: 64px; height: 64px; }

.hd-ring b {
  position: absolute;
  top: 21px;
  font-size: 0.9375rem;
}

.hd-ring span { font-size: 0.75rem; text-align: center; color: var(--hd-copy); }

.hd-cmp {
  display: grid;
  gap: 16px;
}

.hd-checks {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
}

.hd-checks li {
  position: relative;
  padding-left: 24px;
}

.hd-checks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #16A34A;
  font-size: 0.625rem;
  font-weight: 700;
  color: #fff;
}

.hd-checks li.is-warn::before {
  content: "!";
  background: var(--hd-orange);
}

/* ---------- Decision Impact (step 05) ---------- */
.hd-banner--dec { align-items: flex-start; }
.hd-banner__big { font-size: 1.375rem; font-weight: 700; color: var(--hd-ink); }
.hd-banner__acts { display: grid; justify-items: end; gap: 8px; }
.hd-big2 { font-size: 1.25rem; }

.hd-gauges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 12px;
}

.hd-gauge {
  padding: 14px;
  border: 1px solid var(--hd-line);
  border-top: 3px solid var(--c);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.hd-gauge__n { font-weight: 600; text-align: left; }
.hd-gauge__g { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; text-align: left; color: var(--hd-muted); }
.hd-gauge svg { display: block; width: 100%; max-width: 11rem; margin: 6px auto 0; }
.hd-gauge__v { margin-top: -8px !important; font-size: 1.5rem; font-weight: 700; color: var(--c); }
.hd-gauge__p { font-size: 0.75rem; font-weight: 600; }
.hd-gauge__c { margin: 10px 0 6px !important; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; color: var(--hd-muted); }

.hd-gauge__bar {
  position: relative;
  display: block;
  height: 8px;
  border-radius: 99px;
  background: #EEF0F3;
}

.hd-gauge__bar i { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.hd-gauge__bar .b1 { left: 0; background: color-mix(in srgb, var(--c) 35%, #fff); }
.hd-gauge__bar .b2 { background: var(--c); }
.hd-gauge__bar .b3 { top: -3px; bottom: -3px; width: 3px; background: var(--hd-ink); }

.hd-gauge__f {
  margin-top: 12px !important;
  padding: 6px;
  border-radius: 8px;
  background: #FFF7ED;
  font-size: 0.75rem;
  font-weight: 600;
  color: #C2410C;
}

.hd-gauge__f.is-ok { background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--c); }

.hd-picks { display: grid; gap: 4px; }

.hd-pick {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.hd-pick:hover { background: var(--hd-bg); }
.hd-pick.is-on { background: var(--hd-tint); }
.hd-pick input { width: 17px; height: 17px; margin: 0; accent-color: var(--hd-accent); }
.hd-pick__l { font-weight: 600; }
.hd-pick__v { font-size: 0.8125rem; color: var(--hd-muted); white-space: nowrap; }
.hd-pick b { min-width: 3.6rem; text-align: right; }

.hd-biz {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 12px;
}

.hd-bizc {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--hd-line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  text-align: left;
}

.hd-bizc > span { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; color: var(--hd-muted); }
.hd-bizc b { font-size: 1.375rem; font-weight: 700; color: var(--hd-accent); }
.hd-bizc b.is-warn { color: var(--hd-orange); }
.hd-bizc small { font-size: 0.75rem; color: var(--hd-muted); }
.hd-bizc .hd-link { justify-self: start; font-size: 0.75rem; text-decoration: underline; }

.hd-bizc--ai {
  border: 0;
  background: linear-gradient(135deg, #6D28D9, #C084FC);
  color: #fff;
  cursor: pointer;
}

.hd-bizc--ai > span, .hd-bizc--ai small { color: rgba(255, 255, 255, 0.85); }
.hd-bizc--ai b { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.hd-bizc--ai b .hd-ico { fill: currentColor; stroke: none; }
.hd-bizc--ai em { font-size: 0.75rem; font-style: normal; font-weight: 600; text-decoration: underline; }
.hd-bizc--ai:hover { filter: brightness(1.06); }

.hd-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hd-role {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--hd-line);
  border-radius: 12px;
  background: #fff;
}

.hd-role > span:nth-child(2) { display: grid; gap: 2px; }
.hd-role b { font-weight: 600; }
.hd-role em { font-size: 0.75rem; font-style: normal; font-weight: 600; color: var(--hd-muted); }
.hd-role small { font-size: 0.6875rem; color: var(--hd-muted); }

.hd-role__dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid #D0D5DD;
  border-radius: 50%;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
}

.hd-role.is-done { border-color: #BBF7D0; border-left: 3px solid #16A34A; background: #F0FDF4; }
.hd-role.is-done .hd-role__dot { border-color: #16A34A; background: #16A34A; }
.hd-role.is-done em { color: #16A34A; }
.hd-role.is-now { border-color: #FDBA74; border-left: 3px solid var(--hd-orange); background: #FFF7ED; }
.hd-role.is-now .hd-role__dot { border-color: var(--hd-orange); background: var(--hd-orange); box-shadow: inset 0 0 0 3px #fff; }
.hd-role.is-now em { color: #C2410C; }

/* ---------- Candidates Profile (page in a dialog) ---------- */
.hd-dialog {
  width: min(64rem, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  background: var(--hd-bg);
}

.hd-ptop {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hd-line);
  background: #fff;
}

.hd-ptop .hd-top__title { flex: 1; }

.hd-pbody {
  display: grid;
  gap: 14px;
  padding: 16px 18px 20px;
}

.hd-upsell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--hd-tint);
  font-size: 0.8125rem;
  color: var(--hd-accent);
}

.hd-upsell span {
  display: grid;
  flex: none;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--hd-accent);
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
}

.hd-phead__s { flex-basis: 100%; }
.hd-phead__s .hd-skills { margin-top: 10px; }

.hd-mini {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: 6px;
  border: 3px solid #16A34A;
  border-right-color: #EEF0F3;
  border-radius: 50%;
  font-size: 0.625rem;
  font-weight: 700;
  vertical-align: middle;
  color: var(--hd-ink);
}

.hd-exp {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hd-exp li {
  position: relative;
  display: grid;
  gap: 2px;
  padding-left: 18px;
}

.hd-exp li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #D0D5DD;
}

.hd-exp li.is-now::before { background: var(--hd-orange); box-shadow: 0 0 0 3px #FFEDD5; }
.hd-exp b { font-weight: 600; }
.hd-exp small { font-size: 0.75rem; color: var(--hd-muted); }
.hd-exp span { font-size: 0.8125rem; color: var(--hd-copy); }

.hd-note {
  padding: 12px 14px;
  border: 1px solid var(--hd-line);
  border-radius: 10px;
  background: #fff;
}

.hd-note p:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px !important;
}

.hd-note small { font-size: 0.75rem; color: var(--hd-muted); }
.hd-note p + p { color: var(--hd-copy); }

.hd-notearea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #D0D5DD;
  border-radius: 10px;
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}

/* ---------- Wider screens ---------- */
@media (min-width: 900px) {
  .hd-jobgrid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .hd-cmp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hd-grid--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hd-grid--dec { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}

@media (max-width: 639px) {
  .hd-banner__acts { justify-items: start; }
  .hd-pick { grid-template-columns: auto 1fr auto; }
  .hd-pick__v { display: none; }
  .hd-rings { width: 100%; justify-content: space-between; }
}

/* Draggable Ways of Working bars (dashboard) */
.hd-baros.is-edit .hd-baro__track {
  cursor: ns-resize;
  touch-action: none;
}

.hd-baros.is-edit .hd-baro__track::after {
  content: "";
  position: absolute;
  inset: -6px -14px;
}

.hd-baros.is-edit .hd-baro__knob {
  transition: bottom 120ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.hd-baros.is-edit .hd-baro__track:hover .hd-baro__knob,
.hd-baros.is-edit .hd-baro__track:focus-visible .hd-baro__knob,
.hd-baros.is-edit .hd-baro__track.is-drag .hd-baro__knob {
  transform: scale(1.25);
  box-shadow: 0 0 0 5px rgba(74, 15, 168, 0.15);
}

.hd-baros.is-edit .hd-baro__track.is-drag .hd-baro__fill,
.hd-baros.is-edit .hd-baro__track.is-drag .hd-baro__knob {
  transition: none;
}

.hd-baros.is-edit .hd-baro__track:focus-visible {
  outline: 2px solid var(--hd-accent);
  outline-offset: 4px;
}

/* ---------- Target reached milestone (modeled, on open of a completed card) ---------- */
.hd-gauge--done { position: relative; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.hd-gauge--done:hover { box-shadow: 0 8px 24px rgba(91, 33, 182, .14); transform: translateY(-1px); }
.hd-gauge--done:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(124, 58, 237, .35); }
.hd-win {
  position: absolute; inset: -1px; z-index: 3; overflow: hidden; border-radius: 12px;
  display: grid; place-items: center; text-align: center; color: #fff; background: #fff;
  transition: opacity .5s ease, transform .5s ease;
}
.hd-win::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease;
  background: radial-gradient(120% 70% at 50% 30%, #6D28D9 0%, #3B0A78 55%, #1E0845 100%); }
.hd-win.is-hot::before { opacity: 1; }
.hd-win__in { position: relative; width: 100%; padding: 14px; }
.hd-win__n { display: flex; justify-content: space-between; align-items: center; font-weight: 600; text-align: left; color: #101828; transition: color .45s; }
.hd-win__n em { font-style: normal; font-size: .5625rem; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #F3E8FF; color: #6D28D9; }
.hd-win__g { font-size: .6875rem; font-weight: 600; text-transform: uppercase; text-align: left; color: #667085; transition: color .45s; }
.hd-win.is-hot .hd-win__n { color: #fff; }
.hd-win.is-hot .hd-win__g { color: rgba(255,255,255,.7); }
.hd-win.is-hot .hd-win__n em { background: rgba(255,255,255,.14); color: #E9D5FF; }
.hd-win svg { display: block; width: 100%; max-width: 11rem; margin: 6px auto 0; overflow: visible; transition: transform .5s cubic-bezier(.2,.8,.2,1), margin .5s cubic-bezier(.2,.8,.2,1); }
.hd-win__bg { stroke: #EEF0F3; transition: stroke .45s; }
.hd-win.is-hot .hd-win__bg { stroke: rgba(255,255,255,.14); }
.hd-win__hot { opacity: 0; transition: opacity .45s ease; filter: drop-shadow(0 0 6px rgba(245, 158, 11, .45)); }
.hd-win.is-hot .hd-win__hot { opacity: 1; }
.hd-win__rays line { stroke: #FBBF24; stroke-width: 2; stroke-linecap: round; opacity: 0; transform-origin: 90px 90px; }
.hd-win.is-burst > .hd-win__in > svg { animation: hd-win-pulse .55s cubic-bezier(.2,.8,.2,1); }
.hd-win.is-burst .hd-win__rays line { animation: hd-win-ray .9s ease-out both; animation-delay: calc(var(--i) * 12ms); }
.hd-win__v { margin-top: -8px !important; font-size: 1.75rem; font-weight: 800; color: var(--c); transition: color .45s, transform .45s; }
.hd-win.is-hot .hd-win__v { color: #fff; text-shadow: 0 0 18px rgba(245, 158, 11, .5); }
.hd-win.is-text > .hd-win__in > svg { transform: scale(.6); margin: -16px auto -24px; }
.hd-win.is-text .hd-win__v { transform: scale(.9); }
.hd-win__t { min-height: 2.7em; font-size: 1rem; font-weight: 700; line-height: 1.35; opacity: 0; }
.hd-win.is-text .hd-win__t { opacity: 1; }
.hd-win__caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: #fff; animation: hd-win-blink .7s steps(1) infinite; }
.hd-win.is-go .hd-win__caret { display: none; }
.hd-win__go { margin-top: 8px !important; font-weight: 700; color: #FDBA74; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.hd-win__tk { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px !important; font-weight: 700; opacity: 0; transform: scale(.8); transition: opacity .35s, transform .45s cubic-bezier(.3,1.6,.5,1); }
.hd-win__ai { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #7C3AED, #C026D3); box-shadow: 0 0 0 2px rgba(255,255,255,.6), 0 0 16px rgba(192, 38, 211, .6); }
.hd-win__ai svg { width: 20px; margin: 0; }
.hd-win.is-go .hd-win__go, .hd-win.is-tk .hd-win__tk { opacity: 1; transform: none; }
.hd-win__fine { margin-top: 10px !important; font-size: .5625rem; color: rgba(255,255,255,.55); opacity: 0; transition: opacity .3s; }
.hd-win.is-tk .hd-win__fine { opacity: 1; }
.hd-win.is-out { opacity: 0; transform: scale(.98); }
.hd-win.is-static, .hd-win.is-static * { animation: none !important; transition: none !important; }
.hd-win.is-static.is-out { transition: opacity .3s !important; }
@keyframes hd-win-pulse { 40% { scale: 1.08; } }
@keyframes hd-win-ray { 0% { opacity: 0; transform: scale(.85); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.12); } }
@keyframes hd-win-blink { 50% { opacity: 0; } }

/* milestone wow: light trace, target ripple, token flight */
.hd-win__dot { fill: #fff; filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #FBBF24); transition: opacity .3s; }
.hd-win__trail { stroke: #fff; opacity: .85; filter: blur(1.5px) drop-shadow(0 0 6px #FDE68A); transition: opacity .35s; }
.hd-win.is-ping .hd-win__dot, .hd-win.is-ping .hd-win__trail, .hd-win.is-static .hd-win__dot, .hd-win.is-static .hd-win__trail { opacity: 0; }
.hd-win__ping { fill: none; stroke: #FDE68A; stroke-width: 2.5; opacity: 0; transform-origin: 160px 90px; }
.hd-win__ring { stroke: #FDE68A; opacity: 0; transform-origin: 90px 90px; }
.hd-win.is-ping .hd-win__ping { animation: hd-win-ping .8s cubic-bezier(.2,.7,.3,1) both; }
.hd-win.is-ping .hd-win__ring { animation: hd-win-ring .9s cubic-bezier(.2,.7,.3,1) .05s both; }
.hd-win__coin { position: fixed; z-index: 9999; margin: 0; pointer-events: none; will-change: transform, opacity; }
.hd-aibtn { position: relative; }
.hd-aibtn.is-earned { animation: hd-ai-bump .55s cubic-bezier(.3,1.6,.5,1); box-shadow: 0 0 0 3px rgba(245, 158, 11, .35), 0 0 18px rgba(192, 38, 211, .45); }
.hd-aibtn__plus { position: absolute; top: -9px; right: -8px; padding: 1px 6px; border-radius: 999px; background: #F59E0B; color: #fff; font-size: .6875rem; font-weight: 800; line-height: 1.4; box-shadow: 0 2px 6px rgba(0,0,0,.2); animation: hd-ai-plus 1.9s ease both; }
@keyframes hd-win-ping { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(3.2); } }
@keyframes hd-win-ring { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.22); } }
@keyframes hd-ai-bump { 40% { transform: scale(1.12); } }
@keyframes hd-ai-plus { 0% { opacity: 0; transform: translateY(6px) scale(.6); } 15% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .hd-aibtn.is-earned, .hd-aibtn__plus { animation: none; }
}
.hd-aibtn__plus.is-long { animation: hd-ai-plus-long 8s ease both; }
@keyframes hd-ai-plus-long { 0% { opacity: 0; transform: translateY(6px) scale(.6); } 4% { opacity: 1; transform: none; } 92% { opacity: 1; } 100% { opacity: 0; } }
