:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #090f1f;
  color: #f4f7ff;
  line-height: 1.6;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #9dd7ff; }
a:focus-visible { outline: 2px solid #a4d9ff; outline-offset: 4px; }
.guide-nav, main { max-width: 1100px; margin: auto; padding-inline: clamp(16px, 4vw, 40px); }
.guide-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 1.3rem; font-weight: 800; text-decoration: none; color: inherit; }
.intro { padding: clamp(22px, 5vw, 58px) 0 24px; }
.intro p { max-width: 65ch; font-size: 1.07rem; }
h1, h2 { line-height: 1.2; margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 3.5rem); color: #e0dfff; }
h2 { font-size: clamp(1.15rem, 2.4vw, 1.55rem); }
p, figcaption { color: #ced8ef; }
strong { color: #fff; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 26px; margin: 14px 0; padding: clamp(16px, 3vw, 28px); background: #131e36; border: 1px solid #2c3d5e; border-radius: 18px; }
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 10px; }
figcaption { margin-top: 7px; font-size: .875rem; }
.note { padding: 12px 14px; background: #1c2e51; border-inline-start: 3px solid #8eacff; border-radius: 6px; }
footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 0 48px; }
.action { background: #8ac8ff; color: #0a1730; text-decoration: none; font-weight: 750; padding: 10px 17px; border-radius: 8px; }
@media (max-width: 740px) {
  .step { grid-template-columns: 1fr; gap: 12px; }
}

.guide-links { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 12px; }
.guide-links a, .preview-pill { padding: 4px 10px; border: 1px solid #6d8eb4; border-radius: 12px; text-decoration: none; }
.guide-links [aria-current] { background: #234675; color: white; }
.profile-preview {
  border: 1px solid #647ba4;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #131f39;
}
.preview-cover {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(125px, 26vw, 270px);
  padding: 24px;
  background: #05070b;
  text-align: center;
  font-size: clamp(1.6rem, 5vw, 4.3rem);
  font-style: italic;
}
.preview-cover::before {
  position: absolute;
  inset: 14px 5% auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ef9b42, transparent);
  content: "";
}
.preview-details {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 26px);
  padding: clamp(14px, 2.5vw, 26px);
  background: linear-gradient(90deg,#101a3866,#17234899), url('/assets/backgrounds/axian-profile-twilight-background.png') center / cover;
}
.preview-info { min-width: 0; }
.preview-details strong { font-size: clamp(1.25rem, 3.4vw, 2.35rem); line-height: 1.2; }
.preview-details p { margin: 4px 0; color: #fff; font-size: clamp(.8rem, 1.6vw, 1rem); }
.preview-meta, .preview-actions { display: flex; flex-wrap: wrap; gap: 5px 12px; }
.preview-actions { margin-top: 10px; gap: 6px; }
.preview-avatar { flex: 0 0 auto; width: clamp(52px, 14vw, 128px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.preview-avatar.company { display: grid; place-content: center; text-align: center; line-height: 1.1; border-radius: 12px; background: #06090f; color: #ffc870; font-size: clamp(.38rem, 1.25vw, .95rem); font-weight: 800; }
.preview-avatar.company span + span { color: white; }
.preview-pill { display: inline-block; font-size: .75rem; color: white; }
.preview-pill.primary { background: #225da9; }
.profile-preview figcaption { padding: 6px 14px 9px; }
@media (max-width: 520px) {
  .preview-details { align-items: flex-start; }
}

.preview-cover-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2190 / 538;
  object-fit: cover;
}

.preview-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.preview-badge {
  --badge-color: #7ecaff;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--badge-color);
  border-radius: 6px;
  background: #081426;
}

.preview-badge.elite { --badge-color: #f5cc7b; }

.preview-badge b {
  position: absolute;
  top: -5px;
  right: -4px;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--badge-color);
  color: #081426;
  font-size: 9px;
}

.guide-dashboard, .guide-steps, .guide-panel-stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.guide-dashboard, .guide-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  margin-bottom: 14px;
}

.guide-panel {
  min-width: 0;
  border: 1px solid #385681;
  border-radius: 14px;
  padding: clamp(12px, 2vw, 20px);
  background: linear-gradient(145deg, #142d51, #0b1932);
  color: #f4f7ff;
  font-family: Figtree, system-ui, sans-serif;
}

.guide-panel h2, .guide-steps h2 {
  font: 700 1rem/1.3 Outfit, system-ui, sans-serif;
}

.guide-panel h2 span { font-size: .86em; font-weight: 600; }
.guide-panel p, .guide-panel figcaption { font-size: .86rem; margin: 6px 0 0; }
.guide-panel figcaption { line-height: 1.4; }

.guide-radar .ax-score-radar svg { display: block; width: 100%; max-width: 390px; height: auto; margin: 0 auto; }
.guide-radar .ax-radar-grid { fill: none; stroke: rgba(220, 242, 255, .22); stroke-width: .8; }
.guide-radar .ax-radar-data { fill: rgba(55, 196, 255, .24); stroke: #56d8ff; stroke-width: 2; filter: drop-shadow(0 0 5px rgba(55, 196, 255, .55)); }
.guide-radar .ax-radar-labels text { fill: #f2f9ff; font: 600 12px Outfit, system-ui, sans-serif; }
.guide-radar .ax-radar-score circle { fill: #051329; stroke: #64d8ff; }
.guide-radar .ax-radar-score text:first-of-type { fill: white; font: 800 17px Outfit, system-ui, sans-serif; }
.guide-radar .ax-radar-score text:last-of-type { fill: #8edfff; font: 700 10.5px 'JetBrains Mono', monospace; letter-spacing: .08em; }

.guide-bio-numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.guide-bio-numbers div { display: grid; padding: 6px; text-align: center; background: #203c63; border-radius: 8px; font-size: .8rem; }
.guide-bio-numbers strong { color: #9acaff; font: 700 1.25rem Outfit, system-ui, sans-serif; }
.guide-bio-axes { display: grid; gap: 8px; margin: 12px 0; }
.guide-bio-axis { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(34px, 1fr) minmax(0, 1fr); align-items: center; gap: 8px; font-size: .8rem; line-height: 1.25; }
.guide-bio-axis > :last-child { text-align: right; }
.guide-bio-meter { position: relative; height: 6px; border-radius: 8px; background: linear-gradient(to right, #478dff var(--position), #324d70 var(--position)); }
.guide-bio-meter::after { content: ""; position: absolute; left: var(--position); top: 50%; width: 10px; height: 10px; transform: translate(-50%, -50%); border: 2px solid #478dff; border-radius: 50%; background: #f4f7ff; }

.guide-workforce-summary { margin: 10px 0; padding: 10px; border: 1px solid #385681; border-radius: 9px; }
.guide-workforce-total { display: flex; justify-content: space-between; gap: 8px; }
.guide-workforce-segments { display: flex; height: 9px; margin: 6px 0; border-radius: 8px; overflow: hidden; }
.guide-workforce-key { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; }
.guide-workforce-key span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--bar-color); }
.guide-workforce-rows { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.guide-workforce-rows li { display: grid; grid-template-columns: minmax(0, 1.7fr) 2ch minmax(0, 1fr); align-items: center; gap: 8px; font-size: .8rem; line-height: 1.25; }
.guide-workforce-rows strong { text-align: right; }
.guide-workforce-track { height: 6px; border-radius: 8px; background: #324d70; overflow: hidden; }
.guide-workforce-track span, .guide-workforce-segments span { display: block; height: 100%; background: var(--bar-color); }
.guide-panel .green { --bar-color: #42e6ae; }
.guide-panel .amber { --bar-color: #f4b46b; }
.guide-panel .cyan { --bar-color: #5dd7ff; }
.guide-panel .blue { --bar-color: #478dff; }
.guide-panel .violet { --bar-color: #ab96ff; }

.guide-steps .step { display: block; margin: 0; padding: clamp(12px, 2vw, 20px); border-radius: 14px; }
.guide-steps .step p { margin: 8px 0 0; font-size: .9rem; }
.guide-steps .step figure { max-width: 340px; margin-top: 10px; }

@media (max-width: 660px) {
  .guide-dashboard, .guide-steps { grid-template-columns: minmax(0, 1fr); }
}
