:root {
  --score-surface: rgba(255, 255, 255, 0.94);
  --score-surface-soft: rgba(246, 248, 251, 0.92);
  --score-border: rgba(18, 28, 42, 0.13);
  --score-muted: #687382;
  --score-copy: #263241;
  --terran-blue: #0072ce;
}

html {
  scroll-behavior: smooth;
}

body.scorecard-site {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--black);
}

button,
input,
textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.scorecard-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.scorecard-page::before,
.scorecard-page::after {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: "";
  pointer-events: none;
}

.scorecard-page::before {
  background: var(--black) var(--site-background-image) center bottom / cover no-repeat;
  transform: scale(1.03);
  transform-origin: center bottom;
}

.scorecard-page::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.22) 42%, rgba(0, 0, 0, 0.4) 100%),
    radial-gradient(circle at 50% 36%, transparent 0%, rgba(0, 0, 0, 0.32) 100%);
}

.scorecard-content {
  --atg-green: #00ff13;
  width: min(100% - 96px, calc(var(--site-max-width) - 96px));
  margin: 92px auto 56px;
}

.scorecard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 14px;
}

.scorecard-kicker,
.section-number {
  margin: 0 0 8px;
  color: var(--atg-green);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.scorecard-kicker span {
  color: #5e6471;
}

.scorecard-heading h1 {
  margin: 0;
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(34px, 3vw, 46px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.scorecard-heading h1 span {
  color: inherit;
}

.scorecard-heading__intro {
  flex: 0 1 680px;
  min-height: 11px;
  margin: 0 0 4px;
  color: #aeb4c2;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-align: right;
  white-space: pre-line;
}

.panel {
  border: 1px solid var(--score-border);
  border-radius: 11px;
  background: var(--score-surface);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.22);
}

.profile-panel {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 0;
  padding: 16px;
}

.profile-panel__heading {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.profile-panel .panel-heading--compact {
  margin-bottom: 2px;
}

.profile-panel .photo-control,
.profile-panel .profile-fields {
  min-width: 0;
}

.profile-panel .photo-drop {
  width: 94px;
  border-radius: 9px;
}

.profile-panel .photo-placeholder {
  gap: 5px;
  padding: 9px;
}

.profile-panel .photo-placeholder svg {
  width: 22px;
}

.profile-panel .photo-placeholder strong {
  font-size: 10px;
}

.profile-panel .photo-placeholder small {
  display: none;
}

.profile-panel .photo-change {
  padding: 7px;
  font-size: 8px;
}

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

.profile-panel .field {
  gap: 6px;
}

.profile-panel .field--name,
.profile-panel .field--wide {
  grid-column: 1 / -1;
}

.profile-panel .field span {
  font-size: 9px;
  letter-spacing: 0.12em;
}

.profile-panel .field input {
  height: 32px;
  padding: 0 9px;
  font-size: 12px;
}

.profile-panel .profile-score {
  display: none;
}

.photo-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.photo-drop {
  position: relative;
  display: grid;
  width: 142px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px dashed rgba(140, 145, 160, 0.42);
  border-radius: 10px;
  background: rgba(3, 5, 8, 0.72);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.photo-drop:hover,
.photo-control input:focus-visible + .photo-drop,
.photo-drop.is-dragging {
  border-color: var(--atg-green);
  background: rgba(0, 255, 19, 0.035);
}

.photo-control input:focus-visible + .photo-drop {
  outline: 1px solid var(--atg-green);
  outline-offset: 4px;
}

.photo-drop img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-drop.has-photo img {
  display: block;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 14px;
  color: #777d8a;
  text-align: center;
}

.photo-placeholder svg {
  width: 26px;
  fill: currentColor;
}

.photo-placeholder strong {
  color: #b4b9c4;
  font-size: 12px;
  text-transform: uppercase;
}

.photo-placeholder small {
  font-size: 10px;
}

.photo-drop.has-photo .photo-placeholder {
  display: none;
}

.photo-change {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 9px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.74);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 160ms ease, transform 180ms ease;
}

.photo-drop.has-photo:hover .photo-change {
  opacity: 1;
  transform: translateY(0);
}

.profile-fields h2,
.panel-heading h2,
.export-panel h2 {
  margin: 0;
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.profile-fields h2 {
  margin-bottom: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1.4fr) repeat(5, minmax(78px, 0.7fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field--wide {
  grid-column: auto;
}

.field span,
.notes-field > span {
  color: #757b88;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.field input,
.notes-field textarea {
  min-width: 0;
  border: 1px solid rgba(130, 135, 150, 0.22);
  border-radius: 7px;
  outline: 0;
  color: var(--white);
  background: rgba(3, 5, 8, 0.68);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  font-size: 13px;
}

.field input::placeholder,
.notes-field textarea::placeholder {
  color: #4f5560;
}

.field input:focus,
.notes-field textarea:focus {
  border-color: rgba(0, 255, 19, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 255, 19, 0.06);
}

.profile-score {
  display: grid;
  justify-items: center;
  gap: 10px;
  border-left: 1px solid rgba(130, 135, 150, 0.18);
}

.score-ring {
  display: grid;
  width: 122px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #080b10 58%, transparent 60%),
    conic-gradient(var(--atg-green) var(--score-progress), rgba(130, 135, 150, 0.18) 0);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.score-ring > div {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.score-ring strong {
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 38px;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.score-ring span {
  color: var(--atg-green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.profile-score p {
  margin: 0;
  color: #676d79;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-panel {
  margin-top: 20px;
  padding: 24px;
}

.story-panel__heading {
  align-items: start;
}

.story-panel__heading > p {
  max-width: 410px;
  margin: 0;
  color: #777d89;
  font-size: 11px;
  line-height: 1.5;
}

.story-field {
  display: grid;
  gap: 8px;
}

.story-field > span,
.timeline-heading > span {
  color: #777d89;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.story-field textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  border: 1px solid rgba(130, 135, 150, 0.22);
  border-radius: 8px;
  outline: 0;
  padding: 13px 14px;
  color: var(--white);
  background: rgba(3, 5, 8, 0.68);
  font-size: 13px;
  line-height: 1.5;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.story-field textarea::placeholder,
.event-entry input::placeholder,
.action-tier input::placeholder {
  color: #4f5560;
}

.action-tier input::placeholder {
  color: rgba(232, 238, 235, 0.62);
  font-weight: 800;
  opacity: 1;
}

.story-field textarea:focus,
.event-entry input:focus,
.action-tier input:focus {
  border-color: rgba(0, 255, 19, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 255, 19, 0.06);
}

.arc-scale {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 16px 2px 27px;
  color: #5d6370;
  font-size: 9px;
  font-weight: 700;
}

.arc-scale::before {
  position: absolute;
  top: 16px;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--atg-green), #165f2d 58%, #0a2618);
  content: "";
}

.arc-scale span {
  position: relative;
}

.arc-scale span::after {
  position: absolute;
  top: 13px;
  left: 50%;
  width: 1px;
  height: 10px;
  background: rgba(247, 247, 247, 0.42);
  content: "";
}

.timeline-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.timeline-heading small {
  color: #555b67;
  font-size: 10px;
}

.event-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.event-timeline::before {
  position: absolute;
  top: 18px;
  right: 5%;
  left: 5%;
  height: 1px;
  background: rgba(0, 156, 255, 0.52);
  content: "";
}

.event-entry {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 6px;
  border: 1px solid rgba(130, 135, 150, 0.19);
  border-radius: 8px;
  padding: 9px;
  background: rgba(3, 5, 8, 0.9);
}

.event-entry > span {
  grid-row: span 2;
  align-self: center;
  color: var(--terran-blue);
  font-size: 11px;
  font-weight: 700;
}

.event-entry input {
  min-width: 0;
  height: 26px;
  border: 0;
  border-bottom: 1px solid rgba(130, 135, 150, 0.18);
  outline: 0;
  padding: 0 4px;
  color: var(--white);
  background: transparent;
  font-size: 11px;
}

.assessment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1260px) 300px;
  gap: 12px;
  align-items: start;
  justify-content: start;
  margin-top: 8px;
}

.score-panel {
  overflow: hidden;
  padding: 12px;
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.completion-meter {
  display: none;
  width: min(220px, 30%);
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(130, 135, 150, 0.16);
}

.completion-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--atg-green);
  transition: width 280ms ease;
}

.score-matrix {
  min-width: 0;
}

.score-matrix-header {
  display: grid;
  grid-template-columns: 136px minmax(360px, 1fr) 24px 30px;
  gap: 3px;
  align-items: stretch;
  padding: 0 5px 3px;
  color: #707682;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
}

.score-matrix-header > span {
  align-self: center;
}

.score-matrix-header__test {
  text-align: left;
}

.score-matrix-header__scores {
  display: grid;
  grid-template-columns: repeat(11, minmax(22px, 1fr));
  gap: 2px;
}

.score-matrix-header__scores span {
  display: grid;
  height: 17px;
  place-items: center;
  border-radius: 3px;
  color: #07090b;
  background: var(--option-color);
  font-size: 8px;
  font-weight: 800;
}

.score-matrix-header__scores span:nth-child(1) { --option-color: #941100; }
.score-matrix-header__scores span:nth-child(2) { --option-color: #941100; }
.score-matrix-header__scores span:nth-child(3) { --option-color: #ff7e79; }
.score-matrix-header__scores span:nth-child(4) { --option-color: #ff7e79; }
.score-matrix-header__scores span:nth-child(5) { --option-color: #ff7e79; }
.score-matrix-header__scores span:nth-child(6) { --option-color: #ffd579; }
.score-matrix-header__scores span:nth-child(7) { --option-color: #ffd579; }
.score-matrix-header__scores span:nth-child(8) { --option-color: #ffd579; }
.score-matrix-header__scores span:nth-child(9) { --option-color: #fffd78; }
.score-matrix-header__scores span:nth-child(10) { --option-color: #fffd78; }
.score-matrix-header__scores span:nth-child(11) { --option-color: #fffd78; }

.category-list {
  display: grid;
  border-top: 1px solid rgba(130, 135, 150, 0.18);
}

.category-group {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 255, 19, 0.22);
}

.category-group__header {
  display: grid;
  grid-template-columns: 136px minmax(360px, 1fr) 24px 30px;
  gap: 3px;
  align-items: center;
  min-height: 22px;
  padding: 3px 5px;
  background: linear-gradient(90deg, rgba(0, 255, 19, 0.085), rgba(0, 255, 19, 0.025));
}

.category-group__identity {
  grid-column: 1 / 3;
  display: flex;
  align-items: center;
  gap: 7px;
}

.category-index {
  color: var(--atg-green);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.category-group__identity strong {
  color: #e5e7ed;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

.category-complete {
  margin-left: auto;
  color: #777e8b;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-average {
  --score-background: rgba(8, 11, 16, 0.92);
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 0;
  display: grid;
  width: 42px;
  place-items: center;
  border-left: 1px solid rgba(130, 135, 150, 0.18);
  color: var(--white);
  background: var(--score-background);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: center;
  pointer-events: none;
  transition: background-color 240ms ease, border-color 240ms ease;
}

.category-average.is-live {
  border-left-color: rgba(255, 255, 255, 0.24);
}

.metric-row {
  min-width: 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(130, 135, 150, 0.12);
  padding: 1px 5px;
}

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

.metric-row.is-scored {
  background: linear-gradient(90deg, rgba(0, 255, 19, 0.025), transparent 58%);
}

.metric-inner {
  display: grid;
  grid-template-columns: 136px minmax(360px, 1fr) 24px 30px;
  gap: 3px;
  align-items: center;
}

.metric-label {
  overflow: hidden;
  color: #b0b5bf;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.metric-label {
  color: #0a58a8;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a.metric-label:hover,
a.metric-label:focus-visible {
  color: #003f7d;
}

a.metric-label:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

.metric-label-input {
  width: 100%;
  height: 18px;
  border: 1px solid rgba(130, 135, 150, 0.22);
  border-radius: 3px;
  outline: 0;
  padding: 0 5px;
  background: rgba(3, 5, 8, 0.5);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.metric-label-input:focus {
  border-color: rgba(0, 255, 19, 0.7);
  background: rgba(0, 255, 19, 0.045);
  box-shadow: 0 0 0 2px rgba(0, 255, 19, 0.06);
}

.score-options {
  display: grid;
  grid-template-columns: repeat(11, minmax(22px, 1fr));
  gap: 2px;
}

.score-option {
  position: relative;
  height: 20px;
  border: 1px solid rgba(130, 135, 150, 0.2);
  border-radius: 3px;
  overflow: hidden;
  padding: 0 1px;
  color: #b0b5bf;
  background: rgba(3, 5, 8, 0.7);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: -0.015em;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.score-option::after {
  display: none;
  content: none;
}

.score-option:hover,
.score-option:focus-visible {
  border-color: var(--option-color);
  color: var(--white);
  transform: translateY(-1px);
}

.score-option:focus-visible {
  outline: 1px solid var(--option-color);
  outline-offset: 2px;
}

.score-option[aria-checked="true"] {
  border-color: var(--option-color);
  color: #020303;
  background: var(--option-color);
  box-shadow: 0 0 18px color-mix(in srgb, var(--option-color) 22%, transparent);
  transform: translateY(-1px);
}

.score-option[aria-checked="true"]::after {
  display: none;
}

.metric-points {
  color: #a5abb7;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.metric-row.is-scored .metric-points {
  color: var(--atg-green);
}

.results-column {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 12px;
}

.result-panel {
  --score-background: rgba(8, 11, 16, 0.92);
  background: var(--score-background);
  transition: background-color 240ms ease, border-color 240ms ease;
}

.result-panel.has-score {
  border-color: rgba(255, 255, 255, 0.24);
}

.actions-panel,
.result-panel,
.export-panel {
  padding: 16px;
}

.actions-panel .panel-heading {
  align-items: end;
}

.actions-panel .panel-heading small {
  color: #5d6370;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.action-pyramid {
  display: grid;
  gap: 8px;
  padding: 3px 0 0;
}

.action-tier {
  display: block;
  width: 100%;
  height: 40px;
  background: transparent;
}

.action-tier--1 {
  background: transparent;
}

.action-tier--1::before {
  content: none;
}

.action-tier--2,
.action-tier--3,
.action-tier--4,
.action-tier--5 {
  clip-path: none;
}

.action-tier > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.action-tier input {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(0, 255, 19, 0.42);
  border-radius: 6px;
  outline: 0;
  padding: 0 12px;
  color: var(--white);
  background: rgba(5, 22, 12, 0.92);
  font-size: 10px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}

.action-tier--1 input {
  width: 100%;
  border-color: rgba(0, 255, 19, 0.42);
  padding: 0 12px;
  background: rgba(5, 22, 12, 0.92);
  transform: none;
}

.action-tier:nth-child(even) input {
  background: rgba(8, 33, 17, 0.92);
}

.result-scoreline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.result-label {
  color: #767c89;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.result-band {
  border: 1px solid rgba(130, 135, 150, 0.22);
  border-radius: 999px;
  padding: 6px 8px;
  color: #7f8591;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-band.is-live {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
  background: rgba(0, 0, 0, 0.16);
}

.result-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  margin: 24px 0 21px;
}

.result-value strong {
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 60px;
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.055em;
}

.result-value span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 10px;
  font-weight: 700;
}

.result-panel.has-score .section-number,
.result-panel.has-score .result-label {
  color: rgba(255, 255, 255, 0.74);
}

.result-panel.has-score .result-copy {
  border-top-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.82);
}

.result-copy {
  min-height: 45px;
  margin: 14px 0 0;
  border-top: 1px solid rgba(130, 135, 150, 0.16);
  padding-top: 11px;
  color: #9da2ad;
  font-size: 12px;
  line-height: 1.55;
}

.panel-heading--compact {
  margin-bottom: 17px;
}

.export-panel h2 {
  margin-bottom: 19px;
}

.notes-field {
  display: grid;
  gap: 8px;
}

.notes-field small {
  color: #4e545f;
  font-size: inherit;
}

.notes-field textarea {
  width: 100%;
  resize: vertical;
  padding: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.primary-action,
.secondary-action {
  width: 100%;
  border-radius: 7px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.primary-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  margin-top: 14px;
  border: 1px solid var(--atg-green);
  padding: 0 14px;
  color: #020303;
  background: var(--atg-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.primary-action svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.8;
}

.primary-action:not(:disabled):hover,
.primary-action:not(:disabled):focus-visible {
  background: #64ff6f;
  transform: translateY(-1px);
}

.primary-action:disabled {
  border-color: rgba(130, 135, 150, 0.18);
  color: #555b66;
  background: rgba(130, 135, 150, 0.1);
  cursor: not-allowed;
}

.secondary-action {
  height: 36px;
  margin-top: 8px;
  border: 1px solid rgba(130, 135, 150, 0.2);
  color: #747a86;
  background: transparent;
  font-size: 10px;
  letter-spacing: 0.11em;
}

.secondary-action:hover,
.secondary-action:focus-visible {
  border-color: rgba(247, 247, 247, 0.5);
  color: var(--white);
}

.primary-action:focus-visible,
.secondary-action:focus-visible {
  outline: 1px solid var(--atg-green);
  outline-offset: 3px;
}

.export-status {
  margin: 12px 0 0;
  color: #666c78;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

/* Light foreground theme: keep the site background dark, but render scorecard sections on white. */
.scorecard-site .panel {
  --white: #111923;
  color: #263241;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.96));
  border-color: rgba(18, 28, 42, 0.14);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.scorecard-site .panel-heading h2,
.scorecard-site .profile-fields h2,
.scorecard-site .export-panel h2 {
  color: #121922;
}

.scorecard-site .field span,
.scorecard-site .notes-field > span,
.scorecard-site .story-field > span,
.scorecard-site .timeline-heading > span,
.scorecard-site .result-label,
.scorecard-site .category-complete,
.scorecard-site .score-matrix-header,
.scorecard-site .export-status,
.scorecard-site .notes-field small,
.scorecard-site .actions-panel .panel-heading small {
  color: #637083;
}

.scorecard-site .field input,
.scorecard-site .notes-field textarea,
.scorecard-site .story-field textarea,
.scorecard-site .event-entry input,
.scorecard-site .metric-label-input,
.scorecard-site .action-tier input {
  color: #121922;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(18, 28, 42, 0.16);
}

.scorecard-site .field input::placeholder,
.scorecard-site .notes-field textarea::placeholder,
.scorecard-site .story-field textarea::placeholder,
.scorecard-site .event-entry input::placeholder,
.scorecard-site .action-tier input::placeholder {
  color: #8a95a4;
}

.scorecard-site .field input:focus,
.scorecard-site .notes-field textarea:focus,
.scorecard-site .story-field textarea:focus,
.scorecard-site .event-entry input:focus,
.scorecard-site .action-tier input:focus,
.scorecard-site .metric-label-input:focus {
  background: #ffffff;
  border-color: rgba(0, 180, 28, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 180, 28, 0.11);
}

.scorecard-site .photo-drop {
  background: #f4f7f9;
  border-color: rgba(18, 28, 42, 0.18);
}

.scorecard-site .photo-drop:hover,
.scorecard-site .photo-control input:focus-visible + .photo-drop,
.scorecard-site .photo-drop.is-dragging {
  background: rgba(0, 255, 19, 0.08);
  border-color: var(--atg-green);
}

.scorecard-site .photo-placeholder,
.scorecard-site .photo-placeholder strong {
  color: #687382;
}

.scorecard-site .photo-change {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.74);
}

.scorecard-site .completion-meter {
  background: rgba(18, 28, 42, 0.12);
}

.scorecard-site .score-ring {
  background:
    radial-gradient(circle at center, #ffffff 58%, transparent 60%),
    conic-gradient(var(--atg-green) var(--score-progress), rgba(18, 28, 42, 0.16) 0);
  box-shadow: inset 0 0 16px rgba(18, 28, 42, 0.08);
}

.scorecard-site .profile-score {
  border-left-color: rgba(18, 28, 42, 0.12);
}

.scorecard-site .profile-score p {
  color: #697586;
}

.scorecard-site .arc-scale {
  color: #697586;
}

.scorecard-site .arc-scale span::after {
  background: rgba(18, 28, 42, 0.22);
}

.scorecard-site .timeline-heading small {
  color: #7a8595;
}

.scorecard-site .event-timeline::before {
  background: rgba(0, 114, 206, 0.34);
}

.scorecard-site .event-entry {
  background: #ffffff;
  border-color: rgba(18, 28, 42, 0.13);
}

.scorecard-site .category-list {
  border-top-color: rgba(18, 28, 42, 0.13);
}

.scorecard-site .category-group {
  border-bottom-color: rgba(0, 145, 24, 0.24);
}

.scorecard-site .category-group__header {
  background: linear-gradient(90deg, rgba(0, 255, 19, 0.13), rgba(0, 255, 19, 0.035));
}

.scorecard-site .category-group__identity strong,
.scorecard-site .metric-label {
  color: #17202b;
}

.scorecard-site a.metric-label {
  color: #0a58a8;
}

.scorecard-site a.metric-label:hover,
.scorecard-site a.metric-label:focus-visible {
  color: #003f7d;
}

.scorecard-site .category-average {
  color: #121922;
  border-left-color: rgba(18, 28, 42, 0.16);
  background: var(--score-background);
}

.scorecard-site .category-average.is-live {
  border-left-color: rgba(18, 28, 42, 0.26);
}

.scorecard-site .metric-row {
  border-bottom-color: rgba(18, 28, 42, 0.1);
}

.scorecard-site .metric-row.is-scored {
  background: linear-gradient(90deg, rgba(0, 255, 19, 0.06), transparent 62%);
}

.scorecard-site .metric-label-input {
  background: #ffffff;
}

.scorecard-site .score-option {
  color: #263241;
  background: #ffffff;
  border-color: rgba(18, 28, 42, 0.14);
}

.scorecard-site .score-option:hover,
.scorecard-site .score-option:focus-visible {
  color: #121922;
  background: color-mix(in srgb, var(--option-color) 14%, #ffffff);
}

.scorecard-site .score-option[aria-checked="true"] {
  color: #051006;
  background: var(--option-color);
  border-color: color-mix(in srgb, var(--option-color) 62%, #1c2634);
  box-shadow: 0 0 16px color-mix(in srgb, var(--option-color) 24%, transparent);
}

.scorecard-site .metric-points {
  color: #6d7888;
}

.scorecard-site .result-panel {
  background: var(--score-background);
}

.scorecard-site .result-panel.has-score {
  border-color: rgba(18, 28, 42, 0.2);
}

.scorecard-site .result-band {
  color: #647082;
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(18, 28, 42, 0.16);
}

.scorecard-site .result-band.is-live {
  color: #121922;
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(18, 28, 42, 0.2);
}

.scorecard-site .result-value strong {
  color: #111923;
}

.scorecard-site .result-value span,
.scorecard-site .result-panel.has-score .section-number,
.scorecard-site .result-panel.has-score .result-label {
  color: rgba(17, 25, 35, 0.68);
}

.scorecard-site .result-copy,
.scorecard-site .result-panel.has-score .result-copy {
  color: #425064;
  border-top-color: rgba(18, 28, 42, 0.13);
}

.scorecard-site .action-tier {
  background: rgba(0, 164, 30, 0.18);
}

.scorecard-site .action-tier input {
  color: #0f2815;
  background: rgba(226, 248, 229, 0.96);
  border-color: rgba(0, 145, 24, 0.32);
}

.scorecard-site .action-tier:nth-child(even) input {
  background: rgba(211, 241, 216, 0.96);
}

.scorecard-site .action-tier input::placeholder {
  color: rgba(15, 40, 21, 0.56);
}

.scorecard-site .secondary-action {
  color: #526071;
  background: #ffffff;
  border-color: rgba(18, 28, 42, 0.16);
}

.scorecard-site .secondary-action:hover,
.scorecard-site .secondary-action:focus-visible {
  color: #121922;
  border-color: rgba(18, 28, 42, 0.35);
  background: #f7fafc;
}

.scorecard-site .primary-action:disabled {
  color: #7a8594;
  background: #eef2f5;
  border-color: rgba(18, 28, 42, 0.12);
}

/* Neutralize green highlights inside the light foreground UI. */
.scorecard-site .panel .section-number,
.scorecard-site .category-index,
.scorecard-site .score-ring span,
.scorecard-site .metric-row.is-scored .metric-points {
  color: #111923;
}

.scorecard-site .field input:focus,
.scorecard-site .notes-field textarea:focus,
.scorecard-site .story-field textarea:focus,
.scorecard-site .event-entry input:focus,
.scorecard-site .action-tier input:focus,
.scorecard-site .metric-label-input:focus {
  border-color: rgba(18, 28, 42, 0.48);
  box-shadow: 0 0 0 3px rgba(18, 28, 42, 0.08);
}

.scorecard-site .photo-drop:hover,
.scorecard-site .photo-control input:focus-visible + .photo-drop,
.scorecard-site .photo-drop.is-dragging {
  background: #eef1f4;
  border-color: rgba(18, 28, 42, 0.42);
}

.scorecard-site .photo-control input:focus-visible + .photo-drop,
.scorecard-site .primary-action:focus-visible,
.scorecard-site .secondary-action:focus-visible {
  outline-color: #111923;
}

.scorecard-site .score-ring {
  background:
    radial-gradient(circle at center, #ffffff 58%, transparent 60%),
    conic-gradient(#111923 var(--score-progress), rgba(18, 28, 42, 0.14) 0);
}

.scorecard-site .arc-scale::before {
  background: linear-gradient(90deg, #111923, #8d96a3);
}

.scorecard-site .completion-meter span {
  background: var(--atg-green);
}

.scorecard-site .category-group {
  border-bottom-color: rgba(18, 28, 42, 0.18);
}

.scorecard-site .category-group__header {
  background: linear-gradient(90deg, rgba(18, 28, 42, 0.08), rgba(18, 28, 42, 0.025));
}

.scorecard-site .metric-row.is-scored {
  background: linear-gradient(90deg, rgba(18, 28, 42, 0.045), transparent 62%);
}

.scorecard-site .metric-label-input:focus {
  background: #f7f9fb;
}

.scorecard-site .score-matrix-header__scores span:nth-child(1) { --option-color: #941100; }
.scorecard-site .score-matrix-header__scores span:nth-child(2) { --option-color: #941100; }
.scorecard-site .score-matrix-header__scores span:nth-child(3) { --option-color: #ff7e79; }
.scorecard-site .score-matrix-header__scores span:nth-child(4) { --option-color: #ff7e79; }
.scorecard-site .score-matrix-header__scores span:nth-child(5) { --option-color: #ff7e79; }
.scorecard-site .score-matrix-header__scores span:nth-child(6) { --option-color: #ffd579; }
.scorecard-site .score-matrix-header__scores span:nth-child(7) { --option-color: #ffd579; }
.scorecard-site .score-matrix-header__scores span:nth-child(8) { --option-color: #ffd579; }
.scorecard-site .score-matrix-header__scores span:nth-child(9) { --option-color: #fffd78; }
.scorecard-site .score-matrix-header__scores span:nth-child(10) { --option-color: #fffd78; }
.scorecard-site .score-matrix-header__scores span:nth-child(11) { --option-color: #fffd78; }

.scorecard-site .score-option:hover,
.scorecard-site .score-option:focus-visible {
  border-color: rgba(18, 28, 42, 0.4);
}

.scorecard-site .score-option:focus-visible {
  outline-color: #111923;
}

.scorecard-site .score-option[aria-checked="true"] {
  color: #111923;
  border-color: rgba(18, 28, 42, 0.42);
  box-shadow: 0 0 14px rgba(18, 28, 42, 0.12);
}

.scorecard-site .action-tier {
  background: #ffffff;
}

.scorecard-site .action-tier input {
  color: #111923;
  background: #ffffff;
  border-color: rgba(18, 28, 42, 0.24);
}

.scorecard-site .action-tier:nth-child(even) input {
  background: #ffffff;
}

.scorecard-site .action-tier--1 {
  background: transparent;
}

.scorecard-site .action-tier--1::before {
  content: none;
}

.scorecard-site .action-tier--1 input {
  border-color: rgba(18, 28, 42, 0.24);
  background: #ffffff;
}

.scorecard-site .action-tier input::placeholder {
  color: rgba(17, 25, 35, 0.52);
}

.action-data-field {
  display: grid;
  margin-top: 8px;
}

.action-data-field span {
  color: #637083;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.action-data-field input {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(18, 28, 42, 0.24);
  border-radius: 6px;
  outline: 0;
  padding: 0 12px;
  color: #111923;
  background: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.action-data-field input::placeholder {
  color: rgba(17, 25, 35, 0.48);
  opacity: 1;
}

.action-data-field input:focus {
  border-color: rgba(18, 28, 42, 0.48);
  box-shadow: 0 0 0 3px rgba(18, 28, 42, 0.08);
}

.scorecard-site .primary-action {
  color: #ffffff;
  background: #111923;
  border-color: #111923;
}

.scorecard-site .primary-action:not(:disabled):hover,
.scorecard-site .primary-action:not(:disabled):focus-visible {
  color: #ffffff;
  background: #2b3441;
  border-color: #2b3441;
}

@media (max-width: 1120px) {
  .scorecard-content {
    width: min(100% - 48px, 920px);
  }

  .scorecard-heading {
    align-items: start;
  }

  .profile-panel {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .profile-panel .photo-drop {
    width: 94px;
  }

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

  .profile-panel .field--name,
  .profile-panel .field--wide {
    grid-column: 1 / -1;
  }

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

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

@media (max-width: 820px) {
  .scorecard-content {
    margin-top: 68px;
  }

  .scorecard-heading {
    display: block;
  }

  .scorecard-heading h1 {
    white-space: normal;
  }

  .scorecard-heading__intro {
    max-width: 440px;
    margin-top: 20px;
    text-align: left;
  }

  .profile-panel {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .profile-panel .photo-drop {
    width: 94px;
  }

  .results-column {
    grid-template-columns: 1fr;
  }

  .score-matrix {
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .score-matrix-header,
  .category-group {
    min-width: 560px;
  }

  .metric-inner {
    grid-template-columns: 136px minmax(360px, 1fr) 24px 30px;
  }
}

@media (max-width: 700px) {
  .scorecard-page {
    overflow: visible;
  }

  .scorecard-content {
    width: min(100% - 40px, 620px);
    margin-top: 0;
  }

  .scorecard-heading {
    padding-top: 36px;
  }

  .scorecard-heading h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .profile-panel {
    grid-template-columns: 1fr;
  }

  .profile-panel .photo-drop {
    width: min(100%, 180px);
    max-width: 180px;
  }

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

  .profile-panel .field--name,
  .profile-panel .field--wide {
    grid-column: 1 / -1;
  }

  .story-panel__heading > p {
    margin-top: 12px;
  }

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

  .score-panel {
    padding: 14px;
  }

  .panel-heading {
    display: block;
  }

  .completion-meter {
    width: 100%;
    margin-top: 16px;
  }

}

@media (max-width: 420px) {
  .scorecard-content {
    width: min(100% - 28px, 620px);
  }

  .profile-panel,
  .story-panel,
  .actions-panel,
  .result-panel,
  .export-panel {
    padding: 14px;
  }

  .profile-panel .field-grid {
    grid-template-columns: 1fr;
  }

  .profile-panel .field--name,
  .profile-panel .field--wide {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .completion-meter span,
  .result-panel,
  .category-average,
  .photo-change,
  .score-option,
  .primary-action,
  .secondary-action {
    transition: none;
  }
}
