@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --li-blue: #0a66c2;
  --li-blue-dark: #004182;
  --li-bg: #f4f2ee;
  --li-card: #ffffff;
  --li-text: #191919;
  --li-text2: rgba(0, 0, 0, 0.62);
  --li-border: rgba(0, 0, 0, 0.08);
  --sx-heritage-blue: #247ec1;
  --sx-heritage-teal: #07b6a1;
  --sx-heritage-green: #6dbf4b;
  --sx-heritage-yellow: #fcc447;
  --sx-heritage-pink: #ee4069;
  --sx-ink-deep: #10243f;
  --sx-ink-soft: #2a3a52;
  --sx-ink-grey: #485a72;
  --sx-ink-mute: #6a7a8e;
  --sx-signal: #1e3a8a;
  --sx-signal-bright: #2563eb;
  --sx-signal-soft: rgba(30, 58, 138, 0.1);
  --sx-paper: #f6f3ec;
  --sx-paper-soft: #ede8d9;
  --sx-bone: #ffffff;
  --sx-hair: rgba(16, 36, 63, 0.1);
  --sx-hair-strong: rgba(16, 36, 63, 0.22);
  --sx-hair-on-dark: rgba(246, 243, 236, 0.12);
  --sx-hair-on-dark-strong: rgba(246, 243, 236, 0.22);
  --good: #079084;
  --warn: #a87d10;
  --bad: #c0354f;
  --good-bg: rgba(7, 182, 161, 0.12);
  --warn-bg: rgba(252, 196, 71, 0.16);
  --bad-bg: rgba(238, 64, 105, 0.1);
  --green: var(--sx-heritage-teal);
  --amber: var(--sx-heritage-yellow);
  --red: var(--sx-heritage-pink);
  --text: var(--li-text);
  --muted: var(--li-text2);
  --line: var(--li-border);
  --line-strong: var(--sx-hair-strong);
  --radius: 8px;
  --shadow: 0 8px 24px rgba(16, 36, 63, 0.06);
  --font-sans: Outfit, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--li-bg);
  color: var(--li-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: progress;
  opacity: 0.55;
}

input,
select,
textarea {
  width: 100%;
  color: var(--sx-ink-deep);
  background: var(--sx-bone);
  border: 1px solid var(--sx-hair-strong);
  border-radius: 0;
  outline: 0;
  padding: 11px 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.55;
}

select {
  min-height: 43px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sx-signal);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

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

h1,
h2,
h3,
.amp-logo,
.rail-card,
.profile-form,
.landing-view,
.wizard-controls,
.results {
  font-family: var(--font-sans);
}

h2 {
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
}

a {
  color: var(--li-blue);
  font-weight: 600;
  text-decoration: none;
}

label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

label > span,
.fld > span {
  color: var(--sx-ink-grey);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

label strong {
  color: var(--sx-ink-mute);
  font-size: 10px;
  font-weight: 500;
}

.hidden {
  display: none !important;
}

.workspace-grid,
.wizard-step {
  scroll-margin-top: 126px;
}

body:not(.wizard-ready) .workspace-grid,
body:not(.wizard-ready) [data-wizard-step]:not([data-wizard-step="0"]) {
  display: none;
}

.sx-brand-bar {
  display: flex;
  width: 100%;
  height: 4px;
}

.sx-brand-bar span {
  display: block;
  flex: 1;
}

.sx-brand-bar span:nth-child(1) { background: var(--sx-heritage-blue); }
.sx-brand-bar span:nth-child(2) { background: var(--sx-heritage-teal); }
.sx-brand-bar span:nth-child(3) { background: var(--sx-heritage-green); }
.sx-brand-bar span:nth-child(4) { background: var(--sx-heritage-yellow); }
.sx-brand-bar span:nth-child(5) { background: var(--sx-heritage-pink); }

.sx-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.24em;
  color: var(--sx-paper);
  line-height: 1;
  white-space: nowrap;
}

.sx-lockup .icon {
  flex-shrink: 0;
  width: auto;
  height: 1.05em;
}

.sx-lockup .wm {
  letter-spacing: 0;
  line-height: 1;
}

.sx-lockup .wm .a {
  color: var(--sx-paper);
  font-weight: 300;
}

.sx-lockup .wm .b {
  color: var(--sx-signal-bright);
  font-weight: 700;
}

#ampBanner {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: var(--sx-paper);
  background: var(--sx-ink-deep);
  box-shadow: 0 2px 10px rgba(16, 36, 63, 0.35);
}

#ampBanner .inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 1128px;
  margin: 0 auto;
  padding: 10px 16px;
}

.amp-logo {
  display: flex;
  align-items: center;
  color: var(--sx-paper);
  font-size: 21px;
  text-decoration: none;
  white-space: nowrap;
}

.amp-tagline {
  padding: 2px 0 2px 10px;
  color: rgba(246, 243, 236, 0.64);
  border-left: 2px solid var(--sx-signal-bright);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.li-for {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.li-bug {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

.amp-mode {
  padding: 4px 9px;
  color: var(--sx-heritage-yellow);
  border: 1px solid rgba(252, 196, 71, 0.5);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.amp-spacer {
  flex: 1;
}

.amp-score-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 300;
  white-space: nowrap;
}

.amp-score-mini b {
  color: var(--sx-signal-bright);
  font-size: 17px;
  font-weight: 700;
}

.tier-pill {
  padding: 5px 14px;
  background: rgba(246, 243, 236, 0.08);
  border: 1px solid var(--sx-hair-on-dark-strong);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.tier-pill .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  background: var(--sx-heritage-teal);
  border-radius: 50%;
}

.header-actions,
.button-row,
.action-panel,
.cv-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.amp-btn,
.primary-button,
.secondary-button,
.ghost-button,
.tab,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 18px;
  color: var(--sx-paper);
  background: var(--sx-signal-bright);
  border: 1px solid var(--sx-signal-bright);
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.amp-btn:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.tab:hover,
.small-button:hover {
  transform: translateY(-1px);
}

.amp-btn:hover,
.primary-button:hover {
  background: var(--sx-signal);
}

.amp-btn.ghost,
.ghost-button {
  color: var(--sx-paper);
  background: transparent;
  border-color: var(--sx-hair-on-dark-strong);
}

.amp-btn.ghost:hover,
.ghost-button:hover {
  border-color: var(--sx-heritage-teal);
}

.amp-btn.danger {
  color: #ffd7de;
}

.primary-button {
  min-height: 48px;
}

.secondary-button,
.tab,
.small-button {
  color: var(--sx-ink-deep);
  background: var(--sx-bone);
  border-color: var(--sx-hair-strong);
}

.secondary-button:hover,
.tab:hover,
.small-button:hover {
  background: var(--sx-paper);
}

button:focus-visible,
.import-label:focus-within,
.upload:focus-within {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

#liNav {
  position: relative;
  z-index: 10;
  background: #fff;
  box-shadow: 0 0 0 1px var(--li-border);
}

#liNav .inner {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1128px;
  height: 52px;
  margin: 0 auto;
  padding: 0 16px;
}

.li-logo {
  flex: none;
  width: 34px;
  height: 34px;
}

.li-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 280px;
  height: 34px;
  padding: 0 12px;
  color: var(--li-text2);
  background: #edf3f8;
  border-radius: 4px;
  font-size: 14px;
}

.li-nav-items {
  display: flex;
  margin-left: auto;
}

.li-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 52px;
  color: rgba(0, 0, 0, 0.6);
  border-bottom: 2px solid transparent;
  font-size: 12px;
}

.li-nav-item.active,
.li-nav-item:hover {
  color: #191919;
  border-bottom-color: #191919;
}

.landing-view {
  color: var(--sx-paper);
  background: var(--sx-ink-deep);
}

.l-hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: start;
  max-width: 1128px;
  margin: 0 auto;
  padding: 48px 16px 70px;
}

.l-copy {
  padding-top: 18px;
}

.l-badge,
.eyebrow,
.step-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--sx-signal-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.l-badge {
  padding: 2px 0 2px 12px;
  border-left: 2px solid var(--sx-signal-bright);
}

.l-copy h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: 46px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.05;
}

.l-copy .sub {
  max-width: 560px;
  margin-bottom: 24px;
  color: rgba(246, 243, 236, 0.82);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  color: #14182e;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  font-size: 12px;
  font-weight: 700;
}

.trust-badge.outline {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.l-form {
  padding: 26px;
  color: var(--sx-ink-deep);
  background: var(--sx-bone);
  border-top: 2px solid var(--sx-signal-bright);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.36);
}

.l-form h2 {
  margin-bottom: 4px;
  font-size: 21px;
  font-weight: 500;
}

.fsub {
  margin-bottom: 18px;
  color: var(--sx-ink-grey);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
}

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

.choice-card {
  display: grid;
  gap: 8px;
  min-height: 164px;
  padding: 16px;
  color: var(--sx-ink-deep);
  text-align: left;
  background: #fff;
  border: 1px solid var(--sx-hair-strong);
  border-radius: 0;
  transition: background 160ms ease, border-color 160ms ease, transform 120ms ease;
}

.choice-card:hover {
  background: var(--sx-paper);
  transform: translateY(-1px);
}

.choice-card.active {
  background: var(--sx-signal-soft);
  border-color: var(--sx-signal-bright);
  box-shadow: inset 0 2px 0 var(--sx-signal-bright);
}

.choice-card strong {
  font-size: 15px;
  line-height: 1.25;
}

.choice-card span:last-child {
  color: var(--sx-ink-grey);
  font-size: 12.5px;
  line-height: 1.5;
}

.choice-time {
  width: fit-content;
  max-width: 100%;
  padding: 3px 9px;
  color: var(--sx-paper);
  background: var(--sx-signal-bright);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.choice-time.muted-chip {
  color: var(--sx-ink-deep);
  background: var(--sx-paper-soft);
}

.landing-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.auto-import-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  background: var(--sx-paper);
  border: 1px solid var(--sx-hair);
}

.muted,
.save-status {
  color: var(--li-text2);
  font-size: 13px;
}

.empty-editable {
  position: relative;
  cursor: text;
  outline: 1px dashed transparent;
  outline-offset: 6px;
  transition: background 160ms ease, box-shadow 160ms ease, outline-color 160ms ease;
}

.empty-editable:hover,
.empty-editable:focus-visible {
  background: rgba(37, 99, 235, 0.06);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.06);
  outline-color: rgba(37, 99, 235, 0.45);
}

.empty-editable::after {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 12;
  display: none;
  width: max-content;
  max-width: min(220px, 70vw);
  padding: 5px 8px;
  color: var(--sx-paper);
  background: var(--sx-ink-deep);
  box-shadow: 0 8px 18px rgba(16, 36, 63, 0.2);
  content: "Klik for at udfylde";
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.empty-editable:hover::after,
.empty-editable:focus-visible::after {
  display: block;
}

.cover.empty-editable,
.avatar.empty-editable {
  cursor: pointer;
}

.cover.empty-editable:hover,
.cover.empty-editable:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(37, 99, 235, 0.55);
}

.avatar.empty-editable:hover,
.avatar.empty-editable:focus-visible {
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.field-attention {
  animation: fieldPulse 1.2s ease;
}

@keyframes fieldPulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  }
  45% {
    box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.34);
  }
}

.wizard-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1128px;
  margin: 18px auto 0;
  padding: 10px 16px;
}

.wizard-progress {
  display: grid;
  flex: 1 1 16rem;
  gap: 7px;
  min-width: 12rem;
}

.wizard-progress span {
  color: var(--sx-ink-grey);
  font-size: 13px;
  font-weight: 600;
}

.wizard-track {
  height: 7px;
  overflow: hidden;
  background: #e9e5df;
}

.wizard-track span {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--sx-signal-bright);
  transition: width 180ms ease;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 24px;
  align-items: start;
  max-width: 1128px;
  margin: 24px auto;
  padding: 0 16px;
}

.profile-column {
  min-width: 0;
}

.card {
  position: relative;
  margin-bottom: 16px;
  background: var(--li-card);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--li-border);
}

.card .pad {
  padding: 20px 24px;
}

.cover {
  position: relative;
  height: 201px;
  overflow: hidden;
  background: linear-gradient(120deg, #a8b8c8 0%, #c5cdd6 50%, #9fb0bf 100%);
  background-position: center;
  background-size: cover;
  border-radius: 8px 8px 0 0;
}

.cover .cover-note {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-align: center;
}

.preview-cover.has-image .cover-note {
  display: none;
}

.avatar {
  position: absolute;
  top: 112px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 152px;
  height: 152px;
  color: #eef3f7;
  background: linear-gradient(160deg, #5d7b96, #3c5366);
  background-position: center;
  background-size: cover;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  font-size: 46px;
  font-weight: 600;
}

.preview-avatar.has-image #preview-initials {
  display: none;
}

.hero-body {
  padding: 80px 24px 24px;
}

.hero-name {
  font-size: 24px;
  font-weight: 600;
}

.hero-headline {
  margin-top: 2px;
  font-size: 16px;
}

.inline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.hero-meta {
  margin-top: 6px;
  color: var(--li-text2);
  font-size: 14px;
}

.hero-conn {
  margin-top: 6px;
  color: var(--li-blue);
  font-size: 14px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-actions .pill {
  padding: 6px 16px;
  color: #fff;
  background: var(--li-blue);
  border: 1px solid var(--li-blue);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

.hero-actions .pill.sec,
.hero-actions .pill.ter {
  background: #fff;
}

.hero-actions .pill.sec {
  color: var(--li-blue);
}

.hero-actions .pill.ter {
  color: rgba(0, 0, 0, 0.62);
  border-color: rgba(0, 0, 0, 0.62);
}

.score-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  font-size: 12px;
  font-weight: 700;
}

.score-badge:empty {
  display: none;
}

.cover .score-badge {
  top: 12px;
  right: 12px;
}

.avatar-score {
  top: -6px;
  right: -112px;
  width: max-content;
}

.inline-badges .score-badge {
  position: static;
  box-shadow: none;
}

.score-badge.good {
  color: var(--good);
  background: var(--good-bg);
  border-color: var(--good);
}

.score-badge.warn {
  color: var(--warn);
  background: var(--warn-bg);
  border-color: var(--warn);
}

.score-badge.bad {
  color: var(--bad);
  background: var(--bad-bg);
  border-color: var(--bad);
}

.profile-copy {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-line;
}

.top-skills {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--li-border);
}

.top-skills:empty {
  display: none;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.mini-metrics div {
  display: grid;
  gap: 3px;
  padding: 12px;
  background: #f7f7f5;
  border: 1px solid var(--li-border);
}

.mini-metrics span {
  color: var(--sx-ink-deep);
  font-size: 22px;
  font-weight: 700;
}

.mini-metrics small {
  color: var(--li-text2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.xp {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--li-border);
}

.xp:last-child {
  border-bottom: 0;
}

.xp .logo {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--sx-ink-soft);
  border-radius: 4px;
  font-size: 17px;
  font-weight: 700;
}

.xp h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.xp .sub,
.xp .dates {
  color: var(--li-text2);
  font-size: 14px;
}

.xp p {
  margin: 6px 0 0;
  font-size: 14px;
  white-space: pre-line;
}

.skill-tags {
  margin-top: 10px;
}

.skill-tag,
.pill {
  display: inline-block;
  margin: 4px 6px 0 0;
  padding: 4px 12px;
  color: var(--sx-ink-soft);
  background: var(--sx-bone);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

#card-brew {
  border: 1.5px dashed rgba(245, 166, 35, 0.6);
}

.profile-form {
  display: grid;
  gap: 12px;
  margin: 22px 0 16px;
}

.form-section,
.action-panel {
  display: grid;
  gap: 14px;
  padding: 20px 24px;
  background: var(--li-card);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--li-border);
}

.action-panel {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  display: flex;
  background: rgba(255, 255, 255, 0.96);
}

.action-panel .primary-button {
  flex: 1 1 18rem;
}

.section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 2px;
}

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

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

.upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9rem;
  gap: 14px;
  align-items: stretch;
}

.upload {
  position: relative;
  display: grid;
  min-height: 144px;
  place-items: center;
  overflow: hidden;
  color: var(--sx-ink-grey);
  background: var(--sx-paper);
  border: 1px dashed var(--sx-hair-strong);
  border-radius: 0;
}

.profile-upload {
  min-height: auto;
  aspect-ratio: 1;
}

.upload input,
.import-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload img {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload.has-image img {
  display: block;
}

.upload.has-image span {
  position: relative;
  z-index: 1;
  padding: 6px 10px;
  color: #fff;
  background: rgba(16, 36, 63, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.cv-rec {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 9px 11px;
  color: var(--good);
  background: var(--good-bg);
  border: 1px solid rgba(7, 182, 161, 0.32);
  font-size: 12px;
  line-height: 1.5;
}

.cv-rec strong {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.import-label {
  position: relative;
}

#rail {
  position: sticky;
  top: 118px;
  font-family: var(--font-sans);
}

.rail-card {
  margin-bottom: 16px;
  background: var(--sx-bone);
  border: 1px solid var(--sx-hair-strong);
  border-radius: 0;
  box-shadow: var(--shadow);
}

.rail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  color: var(--sx-paper);
  background: var(--sx-ink-deep);
}

.rail-head .bolt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.rail-head .bolt svg {
  width: 20px;
  height: 20px;
}

.rail-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.rail-head .sub-tag {
  margin-left: auto;
  color: rgba(246, 243, 236, 0.55);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rail-cred {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  color: #0c3a63;
  background: #eef5fb;
  border-bottom: 1px solid var(--li-border);
  font-size: 11px;
  font-weight: 700;
}

.rail-cred .li-bug {
  width: 15px;
  height: 15px;
}

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.donut {
  flex: none;
  width: 110px;
  height: 110px;
}

.donut text {
  font-weight: 700;
}

#donutArc {
  transition: stroke-dashoffset 500ms ease, stroke 250ms ease;
}

.donut-info .big {
  font-size: 15px;
  font-weight: 700;
}

.donut-info .sub {
  margin-top: 3px;
  color: var(--li-text2);
  font-size: 12.5px;
}

.grade-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  color: var(--sx-ink-grey);
  background: var(--sx-paper);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.zone-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 0 18px 12px;
  font-family: var(--font-mono);
}

.zone-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--sx-ink-grey);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.zone-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.zone-bad { background: var(--bad); }
.zone-warn { background: var(--sx-heritage-yellow); }
.zone-good { background: var(--good); }

.order-hint {
  margin: 0 18px 12px;
  padding: 9px 11px;
  color: var(--sx-ink-soft);
  background: var(--sx-signal-soft);
  border-left: 2px solid var(--sx-signal-bright);
  font-size: 11px;
  line-height: 1.5;
}

.steps-list {
  display: grid;
  gap: 2px;
  padding: 4px 10px 12px;
}

.step-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 8px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
  transition: background 120ms ease;
}

.step-row:hover {
  background: #f3f6f8;
}

.step-row .num {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  color: rgba(0, 0, 0, 0.55);
  background: #e9e5df;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.step-row .nm {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}

.step-row .nm small {
  display: block;
  color: var(--li-text2);
  font-size: 11px;
  font-weight: 400;
}

.bar {
  flex: none;
  width: 86px;
  height: 7px;
  overflow: hidden;
  background: #e9e5df;
  border-radius: 99px;
}

.bar span,
.bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
}

.bar .good,
.b-good {
  background: var(--good);
}

.bar .warn,
.b-warn {
  background: var(--sx-heritage-yellow);
}

.bar .bad,
.b-bad {
  background: var(--bad);
}

.step-row .sc {
  flex: none;
  width: 38px;
  text-align: right;
  font-size: 12.5px;
  font-weight: 700;
}

.c-good { color: var(--good); }
.c-warn { color: var(--warn); }
.c-bad { color: var(--bad); }

.rail-cta {
  padding: 12px 18px 18px;
  border-top: 1px solid var(--li-border);
}

.rail-cta .amp-btn {
  width: 100%;
  padding: 10px;
}

.rail-note {
  margin-top: 8px;
  color: var(--li-text2);
  font-size: 12px;
  text-align: center;
}

.results {
  margin: 22px 0 32px;
  padding: 20px 24px;
  background: var(--li-card);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--li-border);
}

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

.score-orb {
  display: flex;
  align-items: baseline;
  justify-content: center;
  width: 104px;
  height: 104px;
  color: var(--good);
  background: var(--good-bg);
  border: 1px solid rgba(7, 182, 161, 0.35);
  border-radius: 50%;
}

.score-orb span {
  font-size: 42px;
  font-weight: 300;
}

.score-orb small {
  color: var(--sx-ink-mute);
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--li-border);
}

.tab.active {
  color: var(--sx-paper);
  background: var(--sx-ink-deep);
  border-color: var(--sx-ink-deep);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  gap: 14px;
}

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

.metric-card,
.result-card,
.editor-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--li-border);
  border-radius: var(--radius);
}

.metric-card span,
.result-card small,
.editor-card small {
  color: var(--sx-ink-grey);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-card strong {
  color: var(--sx-ink-deep);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.breakdown-list,
.audit-list,
.skill-list {
  display: grid;
  gap: 10px;
}

.breakdown-item {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(9rem, 2fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--li-border);
}

.breakdown-item:last-child {
  border-bottom: 0;
}

.breakdown-item .bar {
  width: 100%;
}

.breakdown-item .bar span {
  background: var(--sx-signal-bright);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.editor-card textarea {
  min-height: 14rem;
}

.skill-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--li-border);
}

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

.skill-row strong {
  color: var(--sx-ink-mute);
  font-family: var(--font-mono);
  font-size: 12px;
}

.master-output {
  display: grid;
  gap: 14px;
}

.master-output pre {
  overflow: auto;
  max-height: 38rem;
  margin: 0;
  padding: 14px;
  color: var(--sx-ink-deep);
  background: var(--sx-paper);
  border: 1px solid var(--sx-hair);
  border-radius: var(--radius);
  white-space: pre-wrap;
}

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 2000;
  max-width: min(34rem, calc(100% - 2rem));
  padding: 12px 22px;
  color: var(--sx-paper);
  background: var(--sx-ink-deep);
  border-left: 4px solid var(--good);
  border-radius: 0;
  box-shadow: 0 16px 48px rgba(16, 36, 63, 0.35);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  transform: translateX(-50%);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(27, 31, 59, 0.55);
  backdrop-filter: blur(2px);
}

.modal {
  width: min(440px, 100%);
  padding: 24px;
  background: var(--sx-bone);
  border: 1px solid var(--sx-hair-strong);
  border-radius: 0;
  box-shadow: 0 24px 64px rgba(16, 36, 63, 0.3);
  font-family: var(--font-sans);
}

.modal p {
  color: var(--li-text2);
  line-height: 1.6;
}

#analyzeOverlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 36, 63, 0.97);
  font-family: var(--font-sans);
}

#analyzeOverlay .box {
  max-width: 420px;
  padding: 20px;
  color: var(--sx-paper);
  text-align: center;
}

#analyzeOverlay .bolt-big {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  animation: pulse 1.1s ease infinite;
}

#analyzeOverlay .bolt-big svg {
  width: 54px;
  height: 54px;
}

#analyzeOverlay h3 {
  margin-bottom: 18px;
  font-size: 19px;
  font-weight: 800;
}

#azSteps {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
}

#scoreTracker {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 1400;
  width: 300px;
  padding: 13px 16px 14px;
  color: var(--sx-paper);
  background: var(--sx-ink-deep);
  border-top: 2px solid var(--sx-signal-bright);
  box-shadow: 0 16px 48px rgba(16, 36, 63, 0.5);
  font-family: var(--font-sans);
}

#scoreTracker .st-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  color: rgba(246, 243, 236, 0.55);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#scoreTracker .pulse {
  width: 7px;
  height: 7px;
  background: var(--sx-heritage-teal);
  border-radius: 50%;
  animation: pulse 1.4s ease infinite;
}

.st-vals {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

.st-vals .v {
  flex: 1;
}

.st-vals small {
  display: block;
  margin-bottom: 2px;
  color: rgba(246, 243, 236, 0.5);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.st-vals b {
  font-size: 21px;
  font-weight: 300;
  line-height: 1;
}

.st-vals .pot b {
  color: var(--sx-heritage-teal);
}

.st-vals .arr {
  padding-bottom: 3px;
  color: rgba(246, 243, 236, 0.35);
  font-size: 13px;
}

.st-bar {
  position: relative;
  height: 8px;
  background: rgba(246, 243, 236, 0.14);
}

.st-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  transition: width 500ms ease;
}

.st-bar .pot {
  background: rgba(7, 182, 161, 0.35);
}

.st-bar .now {
  background: var(--sx-signal-bright);
}

.st-foot {
  margin-top: 8px;
  color: rgba(246, 243, 236, 0.45);
  font-size: 10px;
  line-height: 1.45;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@media (max-width: 980px) {
  .l-hero,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  #rail {
    position: static;
  }

  .metric-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #ampBanner {
    position: static;
  }

  .workspace-grid,
  .wizard-step {
    scroll-margin-top: 20px;
  }

  #ampBanner .inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .amp-spacer {
    display: none;
  }

  .header-actions,
  .header-actions .amp-btn {
    width: 100%;
  }

  .amp-tagline,
  .amp-mode,
  .li-for,
  .tier-pill {
    white-space: normal;
  }

  #liNav .inner {
    height: auto;
    min-height: 52px;
    padding: 8px 16px;
  }

  .li-search {
    flex: 1;
    width: auto;
  }

  .li-nav-items {
    display: none;
  }

  .l-hero {
    padding: 36px 16px 48px;
  }

  .l-copy h1 {
    font-size: 36px;
  }

  .choice-grid,
  .grid.two,
  .upload-grid,
  .breakdown-item {
    grid-template-columns: 1fr;
  }

  .wizard-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .wizard-controls .primary-button,
  .wizard-controls .secondary-button {
    width: 100%;
  }

  .avatar {
    width: 124px;
    height: 124px;
    font-size: 36px;
  }

  .avatar-score {
    right: -88px;
  }

  .mini-metrics {
    grid-template-columns: 1fr;
  }

  .results-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .skill-row {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .skill-row button {
    grid-column: 2;
    width: fit-content;
  }

  #scoreTracker {
    left: 10px;
    bottom: 10px;
    width: min(300px, calc(100% - 20px));
  }
}

@media (max-width: 520px) {
  .cover {
    height: 150px;
  }

  .avatar {
    top: 88px;
    left: 18px;
  }

  .hero-body {
    padding: 70px 18px 20px;
  }

  .avatar-score {
    position: static;
    width: fit-content;
    margin-top: 84px;
  }

  .card .pad,
  .form-section,
  .results {
    padding: 18px;
  }

  .l-copy h1 {
    font-size: 30px;
  }
}
