:root {
  --ink: #14243a;
  --ink-soft: #33465a;
  --muted: #746d64;
  --paper: #f6f1e8;
  --surface: #fffdf9;
  --surface-soft: #eee7db;
  --line: #dfd4c4;
  --line-dark: #cbbca8;
  --navy: #153b76;
  --navy-deep: #102d5c;
  --burgundy: #7c2638;
  --gold: #d9a441;
  --gold-soft: #f0d79c;
  --green: #1e755f;
  --green-soft: #e1f0e9;
  --orange: #b65b31;
  --orange-soft: #f7e8df;
  --red: #9e3c33;
  --shadow: 0 18px 45px rgba(31, 39, 49, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(123, 102, 75, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 102, 75, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

h1,
h2,
h3,
h4,
p,
dl,
dd {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.eyebrow {
  color: #776b5f;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px max(24px, calc((100vw - 1360px) / 2));
  border-bottom: 1px solid rgba(213, 201, 184, 0.88);
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid #d7c8b5;
  border-radius: 8px;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 17px;
  font-weight: 800;
}

.brand-copy span {
  color: var(--muted);
  font-size: 11px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.report-readiness {
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-left: 4px solid var(--gold);
  border-radius: 7px;
  background: #fffaf0;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.report-readiness.ready {
  border-color: #9dc8b8;
  border-left-color: var(--green);
  background: #f2faf6;
}

.report-readiness.attention {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(158, 60, 51, 0.12);
  animation: readiness-shake 260ms ease;
}

.readiness-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.readiness-heading > div {
  min-width: 0;
}

.readiness-heading strong {
  display: block;
  font-size: 15px;
}

.readiness-heading p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.readiness-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: rgba(21, 59, 118, 0.1);
}

.report-readiness.ready .readiness-icon {
  color: var(--green);
  background: var(--green-soft);
}

.readiness-badge {
  min-width: 64px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.report-readiness.ready .readiness-badge {
  border-color: #9dc8b8;
  color: var(--green);
  background: #ffffff;
}

.readiness-progress {
  height: 5px;
  margin: 13px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e1d6;
}

.readiness-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--navy);
  transition:
    width 220ms ease,
    background-color 220ms ease;
}

.report-readiness.ready .readiness-progress span {
  background: var(--green);
}

.readiness-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.readiness-facts span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--line-dark);
  vertical-align: 1px;
}

.readiness-facts span.complete::before {
  background: var(--green);
}

.readiness-message {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.report-readiness.ready .readiness-message {
  color: var(--green);
  font-weight: 700;
}

.missing-skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.missing-skill-list:empty {
  display: none;
}

.missing-skill-chip {
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid #dbbfb8;
  border-radius: 4px;
  color: var(--red);
  background: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
}

.missing-skill-chip:hover {
  border-color: var(--red);
  background: #fff4f2;
}

.skill-row.needs-score {
  box-shadow: inset 0 0 0 2px var(--red);
}

@keyframes readiness-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-3px);
  }
  70% {
    transform: translateX(3px);
  }
}

.button-primary {
  border-color: var(--navy-deep);
  background: var(--navy);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--navy-deep);
}

.button-secondary {
  border-color: var(--line-dark);
  background: var(--surface);
  color: var(--ink);
}

.button-quiet {
  min-height: 38px;
  padding: 7px 12px;
  border-color: transparent;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
}

.button-quiet:hover {
  border-color: var(--line);
  background: var(--surface);
}

.icon-button {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
}

.assessment-workspace,
.report-workspace {
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: 38px 24px 80px;
}

.assessment-workspace {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
}

.stage {
  min-width: 0;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.page-heading h1 {
  margin-top: 7px;
  font-size: 46px;
  font-weight: 850;
  line-height: 1.12;
}

.heading-note {
  max-width: 660px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.heading-meta {
  display: flex;
  flex: none;
  min-width: 156px;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 253, 249, 0.65);
}

.heading-meta .meta-label {
  color: var(--muted);
  font-size: 11px;
}

.heading-meta strong {
  font-size: 16px;
}

.heading-meta span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.step-track {
  display: grid;
  margin-top: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.step-item {
  display: flex;
  min-width: 0;
  min-height: 74px;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.step-item:last-child {
  border-right: 0;
}

.step-item.active {
  background: var(--navy);
  color: #ffffff;
}

.step-item.complete {
  background: #edf1f6;
  color: var(--ink);
}

.step-number {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
  opacity: 0.75;
}

.step-item.active .step-number {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy-deep);
  opacity: 1;
}

.step-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.step-copy strong {
  overflow: hidden;
  color: inherit;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-copy small {
  overflow: hidden;
  color: inherit;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.72;
}

.mobile-snapshot {
  display: none;
}

.assessment-form {
  position: relative;
  margin-top: 26px;
  border-top: 3px solid var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-view {
  padding: 30px 32px 32px;
}

.form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.form-heading h2 {
  margin-top: 6px;
  font-size: 25px;
  line-height: 1.25;
}

.form-heading p:last-child {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.age-band-badge,
.completion-badge {
  display: inline-flex;
  min-height: 30px;
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border: 1px solid #d8c58e;
  border-radius: 5px;
  background: #fbf2da;
  color: #72521c;
  font-size: 11px;
  font-weight: 800;
}

.field-grid {
  display: grid;
  gap: 18px;
}

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

.form-spacing {
  margin-top: 24px;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}

.form-heading + .field-grid .field {
  margin-top: 24px;
}

.field > span:first-child,
.field legend {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

.field em {
  color: var(--burgundy);
  font-size: 10px;
  font-style: normal;
}

.field small {
  color: var(--muted);
  font-size: 10px;
}

.input-with-unit {
  position: relative;
  display: block;
}

.input-with-unit > span {
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--muted);
  font-size: 12px;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-with-unit input {
  padding-right: 48px;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  outline: none;
  background: #fffefa;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #a4998d;
}

input:focus,
textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(21, 59, 118, 0.1);
}

input.invalid,
textarea.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(158, 60, 51, 0.09);
}

textarea {
  min-height: 116px;
  resize: vertical;
}

.gender-field {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.gender-field legend {
  margin-bottom: 8px;
}

.gender-field legend small {
  margin-left: 8px;
  font-weight: 400;
}

.segmented-control {
  display: grid;
  max-width: 440px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  overflow: hidden;
}

.segmented-control label {
  position: relative;
}

.segmented-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.segmented-control span {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  background: #fffefa;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.segmented-control label:last-child span {
  border-right: 0;
}

.segmented-control input:checked + span {
  background: var(--navy);
  color: #ffffff;
}

.segmented-control input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: -3px;
}

.photo-capture {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 170px auto;
  gap: 18px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #faf6ee;
}

.photo-capture-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.photo-capture-copy > span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.photo-capture-copy small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}

.photo-capture-copy p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.photo-preview {
  display: grid;
  width: 170px;
  height: 112px;
  overflow: hidden;
  place-items: center;
  border: 1px dashed var(--line-dark);
  border-radius: 6px;
  background: #efe8dc;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}

.photo-placeholder svg {
  width: 24px;
  height: 24px;
  color: var(--navy);
}

.photo-actions {
  display: grid;
  min-width: 112px;
  gap: 6px;
}

.photo-actions .button {
  min-height: 35px;
  padding: 6px 10px;
  font-size: 11px;
}

.photo-remove {
  color: var(--burgundy);
}

.section-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.section-rule::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.bmi-band {
  display: grid;
  margin-top: 20px;
  align-items: center;
  grid-template-columns: 76px minmax(0, 1fr) 180px;
  gap: 18px;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  background: #f7f1e5;
}

.bmi-value {
  display: flex;
  flex-direction: column;
}

.bmi-value span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.bmi-value strong {
  margin-top: 1px;
  font-size: 28px;
  line-height: 1.1;
}

.bmi-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.bmi-copy strong {
  font-size: 14px;
}

.bmi-copy span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.bmi-scale {
  position: relative;
  display: grid;
  height: 8px;
  grid-template-columns: 1fr 2fr 1fr 1fr;
  overflow: visible;
  border-radius: 999px;
}

.bmi-scale span:nth-child(1) {
  background: #afc9d6;
}

.bmi-scale span:nth-child(2) {
  background: #94bca7;
}

.bmi-scale span:nth-child(3) {
  background: #e4c473;
}

.bmi-scale span:nth-child(4) {
  background: #d38c70;
}

.bmi-scale span:first-child {
  border-radius: 999px 0 0 999px;
}

.bmi-scale span:nth-child(4) {
  border-radius: 0 999px 999px 0;
}

.bmi-scale i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 1px 4px rgba(20, 36, 58, 0.3);
  transform: translate(-50%, -50%);
  transition: left 220ms ease;
}

.rule-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 13px 15px;
  border: 1px solid #d9d0b4;
  border-radius: 6px;
  background: #f7f2e4;
  color: #695d4d;
}

.rule-banner svg {
  flex: none;
  margin-top: 1px;
  color: #8a681f;
}

.rule-banner p {
  font-size: 12px;
  line-height: 1.65;
}

.data-list {
  margin-top: 8px;
}

.metric-row {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 172px;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

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

.metric-row.exempt {
  opacity: 0.58;
}

.metric-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.metric-title-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.metric-title-line h3 {
  font-size: 15px;
}

.metric-title-line span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface-soft);
  color: #6e6256;
  font-size: 9px;
  font-weight: 750;
}

.metric-copy p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.metric-status {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.metric-status.met {
  color: var(--green);
}

.metric-status.below,
.metric-status.missing {
  color: var(--orange);
}

.metric-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-input input {
  min-height: 44px;
  text-align: right;
}

.metric-input span {
  width: 64px;
  flex: none;
  color: var(--muted);
  font-size: 11px;
}

.score-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf8f2;
  color: var(--muted);
  font-size: 10px;
}

.score-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-dot.priority {
  background: var(--orange);
}

.legend-dot.building {
  background: var(--gold);
}

.legend-dot.met {
  background: var(--green);
}

.skill-group {
  margin-top: 26px;
}

.skill-group-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.skill-group-heading > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.skill-group-heading span {
  font-size: 17px;
  font-weight: 850;
}

.skill-group-heading small {
  color: var(--muted);
  font-size: 10px;
}

.skill-group-heading > strong {
  color: var(--navy);
  font-size: 16px;
}

.skill-row {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 138px;
  gap: 12px 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.skill-copy {
  min-width: 0;
}

.skill-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-title-line h3 {
  font-size: 14px;
}

.skill-title-line span {
  flex: none;
  color: var(--muted);
  font-size: 9px;
}

.skill-copy p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.skill-score-control {
  display: grid;
  align-items: center;
  grid-template-columns: 34px 1fr 34px;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  overflow: hidden;
}

.skill-score-control button {
  display: inline-flex;
  width: 34px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #f4efe6;
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
}

.skill-score-control button:hover {
  background: #e9e1d4;
}

.skill-score-control strong {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.skill-range-wrap {
  position: relative;
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 12px;
}

.skill-range {
  width: 100%;
  height: 4px;
  min-height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  outline: none;
  background:
    linear-gradient(
      90deg,
      var(--navy) 0,
      var(--navy) var(--skill-progress, 0%),
      #ddd4c6 var(--skill-progress, 0%),
      #ddd4c6 100%
    );
  box-shadow: none;
  accent-color: var(--navy);
  appearance: none;
}

.skill-range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 1px 5px rgba(21, 59, 118, 0.3);
  appearance: none;
}

.skill-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--navy);
}

.skill-range:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.skill-status {
  min-width: 56px;
  flex: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-align: right;
}

.skill-row.met .skill-score-control strong,
.skill-row.met .skill-status {
  color: var(--green);
}

.skill-row.building .skill-score-control strong,
.skill-row.building .skill-status {
  color: #8a681f;
}

.skill-row.priority .skill-score-control strong,
.skill-row.priority .skill-status {
  color: var(--orange);
}

.coach-note-field {
  position: relative;
}

.character-count {
  position: absolute;
  right: 12px;
  bottom: 9px;
  padding: 2px 4px;
  background: #fffefa;
}

.form-actions {
  position: sticky;
  z-index: 5;
  bottom: 0;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 32px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: blur(18px);
}

.form-actions .button-primary {
  min-width: 205px;
}

.action-hint {
  flex: 1;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.insight-rail {
  position: sticky;
  top: 94px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.insight-panel {
  padding: 22px;
  border-top: 3px solid var(--gold);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.insight-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.insight-heading h2 {
  margin-top: 4px;
  font-size: 22px;
}

.completion-track {
  height: 5px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e0d3;
}

.completion-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--navy);
  transition: width 220ms ease;
}

.live-score {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.score-ring {
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--navy) calc(var(--score) * 1%), #e7dfd2 0);
}

.score-ring::before {
  position: absolute;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--surface);
  content: "";
}

.score-ring > div {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-ring strong {
  font-size: 28px;
  line-height: 1;
}

.score-ring span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.live-score-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.live-score-copy span {
  color: var(--muted);
  font-size: 10px;
}

.live-score-copy strong {
  font-size: 16px;
}

.live-score-copy small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.snapshot-grid div {
  min-height: 66px;
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.snapshot-grid dt {
  color: var(--muted);
  font-size: 9px;
}

.snapshot-grid dd {
  margin-top: 5px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 12px;
  background: #eef1f5;
  color: var(--ink-soft);
}

.insight-note svg {
  flex: none;
  color: var(--navy);
}

.insight-note p {
  font-size: 10px;
  line-height: 1.6;
}

.source-note {
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.58);
}

.source-note span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.source-note strong {
  display: block;
  margin-top: 5px;
  font-size: 12px;
}

.source-note p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.loading-view {
  display: flex;
  min-height: calc(100vh - 72px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.loading-mark {
  width: 34px;
  height: 34px;
  border: 3px solid #ded5c7;
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.report-workspace {
  max-width: 1100px;
}

.report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.report-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.assessment-report {
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.report-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 30px;
  border-bottom: 1px solid var(--line);
}

.report-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-brand img {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 7px;
  object-fit: cover;
}

.report-brand > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.report-brand strong {
  font-size: 16px;
}

.report-brand span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.report-id {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.report-id span {
  color: var(--muted);
  font-size: 9px;
}

.report-id strong {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.decision-hero {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 28px;
  padding: 38px 36px;
  background: var(--navy);
  color: #ffffff;
}

.decision-hero.has-photo {
  grid-template-columns: minmax(0, 1fr) 170px 170px;
}

.decision-hero.tone-pass {
  background: #2d587f;
}

.decision-hero.tone-attention {
  background: var(--burgundy);
}

.decision-hero.tone-pending {
  background: #4f5962;
}

.decision-copy .eyebrow {
  color: var(--gold-soft);
}

.decision-copy h1 {
  margin-top: 7px;
  font-size: 46px;
  line-height: 1.15;
}

.decision-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.75;
}

.decision-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.decision-meta span {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 10px;
}

.decision-score {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(10, 28, 53, 0.2);
}

.decision-score span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
}

.decision-score strong {
  margin-top: 4px;
  color: var(--gold-soft);
  font-size: 54px;
  line-height: 1;
}

.decision-score small {
  margin-top: 8px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.report-photo-frame {
  position: relative;
  width: 170px;
  aspect-ratio: 0.82;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  background: #dce3ea;
}

.report-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-photo-frame figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 7px 8px;
  background: rgba(16, 45, 92, 0.82);
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  text-align: center;
}

.report-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.report-stat-strip > div {
  min-height: 92px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.report-stat-strip > div:last-child {
  border-right: 0;
}

.report-stat-strip span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.report-stat-strip strong {
  display: block;
  margin-top: 5px;
  font-size: 23px;
}

.report-stat-strip small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

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

.report-section {
  padding: 30px 32px;
  border-bottom: 1px solid var(--line);
}

.report-analysis-grid .report-section:first-child {
  border-right: 1px solid var(--line);
}

.report-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.report-section-heading h2 {
  margin-top: 4px;
  font-size: 21px;
}

.report-section-heading > span {
  color: var(--muted);
  font-size: 9px;
}

.radar-wrap {
  height: 286px;
  margin-top: 12px;
}

.radar-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.dimension-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dimension-item {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 9px;
}

.dimension-item strong {
  color: var(--ink);
  font-size: 12px;
}

.dimension-item.untested {
  background: #f3f0ea;
  opacity: 0.72;
}

.dimension-item.untested strong {
  color: var(--muted);
  font-size: 10px;
}

.physical-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--green);
  background: var(--green-soft);
}

.physical-summary.attention {
  border-left-color: var(--orange);
  background: var(--orange-soft);
}

.physical-summary.pending {
  border-left-color: #7a8589;
  background: #eef0f1;
}

.physical-summary > div {
  display: flex;
  min-width: 74px;
  flex: none;
  flex-direction: column;
  gap: 4px;
}

.physical-summary span {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.physical-summary strong {
  font-size: 17px;
}

.physical-summary p {
  max-width: 280px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: right;
}

.result-list {
  margin-top: 12px;
}

.result-row {
  display: grid;
  align-items: center;
  grid-template-columns: 100px minmax(0, 1fr) 64px;
  gap: 12px;
  min-height: 40px;
  border-bottom: 1px solid #eee7dc;
  font-size: 10px;
}

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

.result-row > span:first-child {
  color: var(--ink-soft);
  font-weight: 700;
}

.result-row > strong {
  text-align: right;
}

.result-bar {
  position: relative;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e1d6;
}

.result-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.result-row.below .result-bar span,
.result-row.missing .result-bar span {
  background: var(--orange);
}

.result-row.exempt .result-bar span {
  background: #8b9499;
}

.result-status {
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}

.result-row.met .result-status {
  color: var(--green);
}

.result-row.below .result-status,
.result-row.missing .result-status {
  color: var(--orange);
}

.section-footnote {
  margin-top: 13px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.skill-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin-top: 14px;
}

.skill-result {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 74px 40px;
  gap: 10px;
  min-height: 46px;
  border-bottom: 1px solid #eee7dc;
}

.skill-result-name {
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-result-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e1d6;
}

.skill-result-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--navy);
}

.skill-result.met .skill-result-bar span {
  background: var(--green);
}

.skill-result.building .skill-result-bar span {
  background: var(--gold);
}

.skill-result.priority .skill-result-bar span {
  background: var(--orange);
}

.skill-result > strong {
  font-size: 12px;
  text-align: right;
}

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

.priority-item {
  min-height: 142px;
  padding: 16px;
  border-top: 3px solid var(--navy);
  background: #f0f2f5;
}

.priority-item:nth-child(2) {
  border-top-color: var(--gold);
  background: #f7f1e4;
}

.priority-item:nth-child(3) {
  border-top-color: var(--burgundy);
  background: #f4eceb;
}

.priority-item span {
  color: var(--muted);
  font-size: 9px;
}

.priority-item strong {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.35;
}

.priority-item p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.comparison-section {
  border-top: 3px solid var(--green);
}

.comparison-summary,
.parent-message {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
}

.parent-message {
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: #fbf5e9;
}

.comparison-dimensions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.comparison-dimension {
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: #f7f8f9;
}

.comparison-dimension span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.comparison-dimension strong {
  display: block;
  margin-top: 7px;
  font-size: 20px;
}

.comparison-dimension small {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
}

.growth-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.growth-plan-grid > div {
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: #f8f7f3;
}

.growth-plan-grid span {
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
}

.growth-plan-grid ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.75;
}

.goal-sixteen {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 14px 18px;
  background: var(--navy);
  color: #ffffff;
}

.goal-sixteen span {
  color: #e6c77d;
  font-size: 10px;
  font-weight: 800;
}

.goal-sixteen strong {
  font-size: 12px;
  line-height: 1.65;
}

.coach-observation {
  display: grid;
  align-items: stretch;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0;
  margin-top: 20px;
  border: 1px solid var(--line);
}

.observation-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
}

.coach-observation > div:last-child {
  padding: 14px 16px;
}

.coach-observation span {
  color: var(--muted);
  font-size: 9px;
}

.coach-observation p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.report-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 26px 32px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #f8f4ec;
}

.report-disclaimer svg {
  flex: none;
  color: var(--green);
}

.report-disclaimer strong {
  display: block;
  font-size: 11px;
}

.report-disclaimer p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.report-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 32px;
  border-top: 1px solid var(--line);
}

.report-footer > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.report-footer strong {
  font-size: 13px;
}

.report-footer span,
.report-footer p {
  color: var(--muted);
  font-size: 9px;
}

.report-contact {
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
}

.report-contact img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.report-contact > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.report-contact small {
  color: var(--muted);
  font-size: 8px;
}

.drawer-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 25, 37, 0.46);
}

.history-drawer {
  width: min(440px, 94vw);
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  background: var(--surface);
  box-shadow: -20px 0 50px rgba(20, 36, 58, 0.16);
  animation: drawer-in 180ms ease-out;
}

@keyframes drawer-in {
  from {
    transform: translateX(32px);
    opacity: 0;
  }
}

.drawer-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.drawer-heading h2 {
  margin-top: 4px;
  font-size: 23px;
}

.drawer-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.history-item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffefa;
  color: var(--ink);
  text-align: left;
}

.history-item:hover {
  border-color: var(--line-dark);
  background: #fbf7f0;
}

.history-item-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.history-item-main strong {
  font-size: 14px;
}

.history-item-main span {
  color: var(--muted);
  font-size: 10px;
}

.history-item-score {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.history-item-score strong {
  color: var(--navy);
  font-size: 20px;
}

.history-item-score span {
  color: var(--muted);
  font-size: 9px;
}

.empty-history {
  padding: 38px 20px;
  border: 1px dashed var(--line-dark);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 70;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  max-width: min(90vw, 440px);
  padding: 11px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(20, 36, 58, 0.2);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  transform: translateX(-50%);
}

.toast.error {
  background: var(--burgundy);
}

.image-preview-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(12, 22, 34, 0.7);
  backdrop-filter: blur(6px);
}

.image-preview-dialog {
  display: flex;
  width: min(680px, 100%);
  max-height: calc(100vh - 44px);
  flex-direction: column;
  padding: 20px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.image-preview-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.image-preview-heading h2 {
  margin-top: 4px;
  font-size: 22px;
}

.image-preview-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.generated-image-wrap {
  min-height: 0;
  margin-top: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  background:
    linear-gradient(45deg, #eee8df 25%, transparent 25%),
    linear-gradient(-45deg, #eee8df 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eee8df 75%),
    linear-gradient(-45deg, transparent 75%, #eee8df 75%),
    #f8f3eb;
  background-position:
    0 0,
    0 8px,
    8px -8px,
    -8px 0;
  background-size: 16px 16px;
}

.generated-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.image-preview-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 1080px) {
  .assessment-workspace {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 22px;
  }

  .insight-panel {
    padding: 18px;
  }

  .live-score {
    align-items: flex-start;
    flex-direction: column;
  }

  .score-ring {
    width: 92px;
    height: 92px;
  }

  .score-ring::before {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 900px) {
  .assessment-workspace {
    display: block;
    max-width: 720px;
    padding-top: 24px;
  }

  .insight-rail {
    display: none;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .heading-meta {
    align-items: flex-start;
    padding: 10px 12px;
  }

  .mobile-snapshot {
    display: grid;
    margin-top: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--line);
    background: var(--surface);
  }

  .mobile-snapshot > div {
    min-width: 0;
    padding: 10px 12px;
    border-right: 1px solid var(--line);
  }

  .mobile-snapshot > div:last-child {
    border-right: 0;
  }

  .mobile-snapshot span {
    display: block;
    color: var(--muted);
    font-size: 9px;
  }

  .mobile-snapshot strong {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .assessment-form {
    margin-top: 16px;
  }

  .report-analysis-grid {
    grid-template-columns: 1fr;
  }

  .report-analysis-grid .report-section:first-child {
    border-right: 0;
  }

  .decision-hero.has-photo {
    grid-template-columns: minmax(0, 1fr) 150px;
  }

  .decision-hero.has-photo .decision-copy {
    grid-column: 1 / -1;
  }

  .decision-hero.has-photo .report-photo-frame {
    width: 150px;
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 62px;
    padding: 9px 16px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .brand-copy span {
    display: none;
  }

  .button-quiet span,
  .admin-link {
    display: none;
  }

  .button-quiet {
    width: 40px;
    min-height: 40px;
    justify-content: center;
    padding: 0;
  }

  .assessment-workspace,
  .report-workspace {
    padding: 20px 14px calc(104px + env(safe-area-inset-bottom));
  }

  .page-heading {
    padding-bottom: 20px;
  }

  .page-heading h1 {
    font-size: 31px;
  }

  .heading-note {
    font-size: 12px;
  }

  .heading-meta {
    min-width: 0;
    width: 100%;
    align-items: flex-start;
  }

  .step-track {
    margin-top: 16px;
  }

  .step-item {
    min-height: 64px;
    justify-content: center;
    padding: 10px 6px;
  }

  .step-number {
    width: 25px;
    height: 25px;
    font-size: 8px;
  }

  .step-copy {
    align-items: flex-start;
  }

  .step-copy strong {
    font-size: 12px;
  }

  .step-copy small {
    display: none;
  }

  .mobile-snapshot {
    margin-top: 10px;
  }

  .assessment-form {
    border-top-width: 2px;
    box-shadow: 0 12px 28px rgba(31, 39, 49, 0.07);
  }

  .form-view {
    padding: 22px 18px 26px;
  }

  .form-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 18px;
  }

  .form-heading h2 {
    font-size: 22px;
  }

  .field-grid.two-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-heading + .field-grid .field {
    margin-top: 18px;
  }

  .field {
    margin-top: 18px;
  }

  .gender-field {
    margin-top: 18px;
  }

  .bmi-band {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .bmi-scale {
    grid-column: 1 / -1;
    margin: 2px 4px 4px;
  }

  .bmi-value strong {
    font-size: 24px;
  }

  .metric-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 0;
  }

  .metric-input {
    max-width: 220px;
  }

  .metric-input span {
    width: auto;
    min-width: 54px;
  }

  .skill-row {
    grid-template-columns: 1fr 126px;
    gap: 10px;
  }

  .skill-title-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .skill-range-wrap {
    gap: 8px;
  }

  .form-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 72px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(20, 36, 58, 0.08);
  }

  .photo-capture {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .photo-preview {
    width: 100%;
    height: 180px;
  }

  .photo-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-actions .button {
    min-height: 46px;
    padding: 9px 14px;
  }

  .form-actions .button-primary {
    min-width: 0;
    flex: 1;
  }

  .form-actions #backButton {
    flex: none;
  }

  .action-hint {
    display: none;
  }

  .report-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .report-toolbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-toolbar .button {
    min-height: 46px;
    padding: 9px 10px;
    font-size: 12px;
  }

  .assessment-report {
    box-shadow: 0 12px 28px rgba(31, 39, 49, 0.07);
  }

  .report-brand-row {
    padding: 16px;
  }

  .report-brand img {
    width: 42px;
    height: 42px;
  }

  .report-brand strong {
    font-size: 14px;
  }

  .report-brand span {
    font-size: 8px;
  }

  .report-id {
    max-width: 115px;
  }

  .report-id strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .decision-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px 20px;
  }

  .decision-hero.has-photo {
    grid-template-columns: 1fr 1fr;
  }

  .report-photo-frame,
  .decision-hero.has-photo .report-photo-frame {
    width: 100%;
    max-width: 150px;
    justify-self: start;
  }

  .decision-copy h1 {
    font-size: 31px;
  }

  .decision-copy > p:not(.eyebrow) {
    font-size: 12px;
  }

  .decision-score {
    min-height: 100px;
    align-items: flex-start;
    padding: 16px;
  }

  .decision-score strong {
    font-size: 46px;
  }

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

  .report-stat-strip > div {
    min-height: 82px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .report-stat-strip > div:nth-child(2) {
    border-right: 0;
  }

  .report-stat-strip > div:nth-child(3),
  .report-stat-strip > div:nth-child(4) {
    border-bottom: 0;
  }

  .report-section {
    padding: 24px 18px;
  }

  .report-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .radar-wrap {
    height: 250px;
  }

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

  .physical-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .physical-summary p {
    text-align: left;
  }

  .result-row {
    grid-template-columns: 84px minmax(0, 1fr) 56px;
    gap: 8px;
  }

  .skill-result-grid {
    grid-template-columns: 1fr;
  }

  .skill-result {
    grid-template-columns: minmax(0, 1fr) 72px 36px;
  }

  .priority-grid {
    grid-template-columns: 1fr;
  }

  .priority-item {
    min-height: 0;
  }

  .coach-observation {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .report-disclaimer {
    margin: 20px 18px;
  }

  .report-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .history-drawer {
    width: 100%;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  }

  .image-preview-backdrop {
    align-items: stretch;
    padding: 10px;
  }

  .image-preview-dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 16px;
  }
}

@media (max-width: 390px) {
  .step-number {
    display: none;
  }

  .step-item {
    min-height: 58px;
  }

  .skill-row {
    grid-template-columns: 1fr;
  }

  .skill-score-control {
    max-width: 150px;
  }

  .report-toolbar-actions .button {
    flex-direction: column;
    gap: 4px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 10mm;
  }

  html,
  body {
    background: #ffffff;
  }

  body {
    min-width: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .topbar,
  .no-print,
  .drawer-backdrop,
  .toast,
  #entryView,
  #loadingView {
    display: none !important;
  }

  .report-workspace {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .assessment-report {
    box-shadow: none;
  }

  .report-brand-row {
    padding: 14px 18px;
  }

  .decision-hero {
    padding: 24px;
    break-inside: avoid;
  }

  .decision-copy h1 {
    font-size: 32px;
  }

  .report-stat-strip > div {
    min-height: 72px;
    padding: 12px 14px;
  }

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

  .report-analysis-grid .report-section:first-child {
    border-right: 1px solid var(--line);
  }

  .report-section {
    padding: 22px 24px;
    break-inside: avoid;
  }

  .radar-wrap {
    height: 240px;
  }

  .priority-item {
    min-height: 118px;
  }

  .comparison-dimensions {
    break-inside: avoid;
  }

  .growth-plan-grid,
  .goal-sixteen,
  .report-contact {
    break-inside: avoid;
  }

  .report-disclaimer {
    margin: 18px 24px;
    break-inside: avoid;
  }

  .report-footer {
    padding: 16px 24px;
  }
}
