:root {
  color-scheme: light;
  --bg: #f6f7f2;
  --surface: #ffffff;
  --surface-2: #f0f3ee;
  --ink: #20242b;
  --muted: #626b76;
  --line: #dfe4dd;
  --green: #2f6f5e;
  --green-soft: #e6f0eb;
  --blue: #2f5f96;
  --blue-soft: #e8eef7;
  --coral: #c86143;
  --coral-soft: #f8ebe5;
  --gold: #a97918;
  --gold-soft: #f7efd9;
  --shadow: 0 12px 32px rgba(32, 36, 43, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

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

button {
  border: 0;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  height: 68px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.brand-title {
  font-weight: 800;
  font-size: 19px;
  display: block;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
  display: block;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.status-dot.ready {
  background: var(--green);
}

.workspace {
  display: grid;
  grid-template-columns: 248px 1fr;
}

.rail {
  padding: 28px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
  min-height: calc(100vh - 68px);
  position: sticky;
  top: 68px;
  align-self: start;
}

.step-list {
  position: relative;
}

.step-list::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: var(--line);
}

.nav-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 10px;
  margin-bottom: 10px;
  border-radius: var(--radius);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
  position: relative;
  z-index: 1;
  font-weight: 700;
}

.nav-button:hover,
.nav-button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(32, 36, 43, 0.05);
}

.nav-index {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--surface);
}

.nav-button.active .nav-index,
.nav-button.completed .nav-index {
  background: var(--green);
  color: #fff;
}

.rail-card {
  margin: 28px 4px 0;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(32, 36, 43, 0.05);
}

.rail-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.rail-card span,
.rail-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.screen {
  width: min(1120px, 100%);
  padding: 38px 42px 56px;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 34px;
  align-items: center;
}

.hero-panel,
.preview-panel,
.form-panel,
.result-panel,
.test-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 40px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

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

h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(32px, 3.5vw, 42px);
  line-height: 1.28;
  letter-spacing: 0;
}

.mobile-only {
  display: none;
}

h2 {
  font-size: 28px;
  line-height: 1.18;
  margin-bottom: 12px;
  letter-spacing: 0;
}

h3 {
  font-size: 18px;
  line-height: 1.28;
  margin-bottom: 10px;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.lead span {
  color: var(--green);
  font-weight: 800;
}

.value-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.value-list span {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 10px;
  border-radius: var(--radius);
  background: #fbfcfa;
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.5;
}

.value-list i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green);
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.value-list strong {
  flex: 0 0 auto;
  color: var(--green);
}

.simple-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.simple-benefits span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.button.primary {
  background: var(--green);
  color: #fff;
}

.button.secondary {
  background: var(--surface);
  color: var(--green);
  border: 1px solid rgba(47, 111, 94, 0.42);
}

.button.ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.button.soft {
  background: var(--blue-soft);
  color: var(--blue);
}

.button.warn {
  background: var(--coral-soft);
  color: var(--coral);
}

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

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

.metric {
  min-height: 138px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fbfcfa;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.2;
}

.metric strong b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.metric-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}

.preview-panel {
  padding: 20px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}

.preview-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(32, 36, 43, 0.12);
}

.preview-hint {
  display: none;
}

.preview-progress {
  height: 3px;
  margin: -20px -20px 2px;
  background: var(--surface-2);
  overflow: hidden;
}

.preview-progress span {
  display: block;
  height: 100%;
  width: 42%;
  background: var(--green);
  animation: scan 1.8s ease-in-out infinite;
}

@keyframes scan {
  0% {
    transform: translateX(-110%);
  }
  55%,
  100% {
    transform: translateX(250%);
  }
}

.report-mock {
  flex: 1;
  display: grid;
  gap: 10px;
}

.mock-header {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.mock-header small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
}

.mock-tools {
  display: flex;
  gap: 6px;
}

.mock-tools span {
  min-width: 30px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
}

.mock-row {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fbfcfa;
}

.mock-row strong {
  display: block;
  margin-bottom: 8px;
}

.mock-row-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.mock-row-title strong {
  margin-bottom: 0;
}

.mock-row-title em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: var(--value, 62%);
  background: var(--green);
}

.bar.animated span {
  width: 0;
  animation: fillBar 1.1s ease-out 0.2s forwards;
}

@keyframes fillBar {
  to {
    width: var(--value, 62%);
  }
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
}

.tag.green {
  background: var(--green-soft);
  color: var(--green);
}

.tag.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.tag.coral {
  background: var(--coral-soft);
  color: var(--coral);
}

.tag.gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.section-head p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.test-panel,
.form-panel,
.result-panel {
  padding: 26px;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  margin: 18px 0 26px;
}

.progress span {
  display: block;
  height: 100%;
  width: var(--progress, 10%);
  background: var(--green);
}

.question-card {
  min-height: 420px;
  display: grid;
  align-content: start;
  gap: 18px;
}

.question-title {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 0;
}

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

.option {
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfa;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.option:hover,
.option.selected {
  border-color: var(--green);
  background: var(--green-soft);
}

.option small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

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

.field-grid.compact {
  align-content: start;
}

.form-guide-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 6px 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.form-guide-strip strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
}

.easy-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 6px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.easy-note span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
}

.simple-form {
  display: grid;
  gap: 14px;
}

.simple-card {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fbfcfa;
  display: grid;
  gap: 14px;
}

.simple-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.simple-head h3 {
  margin-bottom: 4px;
  font-size: 20px;
}

.simple-head p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.simple-textarea {
  min-height: 132px;
  background: #fff;
}

.simple-textarea.short {
  min-height: 104px;
}

.resume-starter-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.resume-starter-panel summary {
  min-height: 48px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
}

.resume-starter-panel summary small {
  color: var(--green);
  font-weight: 800;
}

.resume-starter {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.resume-template-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius);
  background: #fbfcfa;
  border: 1px solid var(--line);
}

.resume-template-box strong {
  font-size: 14px;
}

.resume-template-box p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.template-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.template-chip {
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.resume-starter label {
  display: grid;
  gap: 6px;
}

.resume-starter label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.resume-starter textarea {
  min-height: 70px;
  background: #fff;
}

.optional-panel {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.optional-panel summary {
  min-height: 54px;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
}

.optional-panel summary small {
  color: var(--muted);
  font-weight: 400;
}

.optional-content {
  display: grid;
  gap: 18px;
  padding: 0 16px 18px;
}

.optional-group {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.optional-group h3 {
  margin-bottom: 0;
}

.text-button-inline {
  width: fit-content;
  padding: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
}

.guided-form {
  display: grid;
  gap: 8px;
}

.guide-block {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 0.66fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.guide-block:first-child {
  border-top: 0;
  padding-top: 4px;
}

.guide-copy {
  display: grid;
  align-content: start;
  gap: 10px;
}

.guide-copy h3 {
  margin-bottom: 0;
  font-size: 20px;
}

.guide-copy p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.step-badge {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.quick-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-chip {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fbfcfa;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
}

.quick-chip:hover,
.quick-chip.strong {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.helper-field {
  align-content: start;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

label {
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  padding: 12px;
  outline: none;
}

textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.65;
}

.guided-textarea {
  min-height: 220px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 111, 94, 0.12);
}

.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.privacy-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(47, 111, 94, 0.18);
  background: var(--green-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.privacy-notice strong {
  flex: 0 0 auto;
  color: var(--green);
}

.privacy-notice.compact {
  margin-top: 14px;
  max-width: 620px;
}

.privacy-notice.report {
  margin-bottom: 16px;
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  margin-bottom: 18px;
}

.result-hero p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  margin-bottom: 0;
}

.score-card {
  min-height: 142px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.score-card strong {
  font-size: 42px;
  line-height: 1;
}

.score-card span {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 6px;
}

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

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

.module {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.module.full {
  grid-column: 1 / -1;
}

.module h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.module h3::before {
  content: "";
  width: 8px;
  height: 20px;
  border-radius: 99px;
  background: var(--green);
}

.module p,
.module li {
  color: var(--muted);
  line-height: 1.72;
}

.module ul,
.module ol {
  padding-left: 20px;
  margin: 0;
}

.module li + li {
  margin-top: 6px;
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-item {
  padding: 12px;
  border-radius: var(--radius);
  background: #fbfcfa;
  border: 1px solid var(--line);
}

.mini-item strong {
  display: block;
  margin-bottom: 6px;
}

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

.direction-card {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fbfcfa;
}

.direction-card h4 {
  margin: 12px 0;
  font-size: 18px;
  line-height: 1.3;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  padding: 14px 14px 14px 18px;
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  background: #fbfcfa;
}

.timeline-item p {
  margin-bottom: 8px;
}

.timeline-item .hint,
.day-card .hint {
  display: block;
  margin-top: 6px;
}

.day-grid {
  max-height: 680px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-right: 4px;
}

.day-card,
.feedback-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius);
  background: #fbfcfa;
  border: 1px solid var(--line);
}

.day-card p {
  margin-bottom: 0;
}

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

.quick-feedback {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.quick-feedback-button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.quick-feedback-button:hover,
.quick-feedback-button.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.feedback-item span {
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}

.feedback-item textarea {
  min-height: 90px;
}

.locked {
  position: relative;
  overflow: hidden;
}

.locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
}

.lock-overlay {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 2;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.lock-overlay p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 12px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
  z-index: 50;
}

.loading-panel {
  min-height: 520px;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.loader {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 5px solid var(--surface-2);
  border-top-color: var(--green);
  margin: 0 auto 18px;
  animation: spin 0.9s linear infinite;
}

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

.error-box {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--coral-soft);
  color: var(--coral);
  margin: 14px 0;
}

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

  .rail {
    min-height: 0;
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
  }

  .step-list {
    display: flex;
    overflow-x: auto;
    gap: 8px;
  }

  .step-list::before {
    display: none;
  }

  .nav-button {
    min-width: 160px;
    margin-bottom: 0;
  }

  .rail-note,
  .rail-card {
    display: none;
  }

  .screen {
    padding: 24px 18px 42px;
  }

  .home-grid,
  .module-grid,
  .module-grid.inner,
  .direction-grid,
  .day-grid,
  .feedback-grid,
  .field-grid,
  .guide-block,
  .option-grid,
  .result-hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .topbar {
    height: auto;
    min-height: 64px;
    padding: 12px 20px;
    align-items: flex-start;
  }

  .brand-subtitle,
  .status-pill span {
    display: none;
  }

  .hero-panel,
  .preview-panel,
  .test-panel,
  .form-panel,
  .result-panel {
    padding: 18px;
  }

  .rail {
    padding: 10px 20px;
  }

  .step-list {
    gap: 7px;
    align-items: center;
    overflow-x: visible;
  }

  .nav-button {
    min-width: 0;
    width: auto;
    gap: 6px;
    padding: 8px;
    box-shadow: none;
    flex: 0 0 auto;
  }

  .nav-button span:not(.nav-index) {
    display: none;
  }

  .nav-button.active {
    min-width: 96px;
    padding: 9px 12px;
  }

  .nav-button.active span:not(.nav-index) {
    display: inline;
  }

  .nav-index {
    width: 24px;
    height: 24px;
    border-width: 1px;
  }

  .screen {
    padding: 20px 20px 40px;
  }

  .home-grid {
    gap: 12px;
  }

  .hero-panel {
    min-height: auto;
    padding: 20px;
  }

  .eyebrow {
    padding: 5px 9px;
    font-size: 12px;
  }

  h1 {
    margin: 14px 0 12px;
    font-size: 25px;
    line-height: 1.3;
  }

  .mobile-only {
    display: block;
  }

  h2 {
    font-size: 24px;
  }

  .lead {
    display: block;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 0;
  }

  .simple-benefits {
    margin-top: 14px;
    gap: 6px;
  }

  .simple-benefits span {
    min-height: 28px;
    padding: 4px 9px;
    font-size: 12px;
  }

  .value-list {
    display: none;
  }

  .actions {
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
  }

  .button {
    width: 100%;
    min-height: 48px;
    border-radius: 8px;
  }

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

  .preview-panel {
    min-height: auto;
    gap: 12px;
  }

  .preview-panel:hover {
    transform: none;
  }

  .mock-header {
    padding: 14px;
  }

  .mock-tools {
    display: none;
  }

  .report-mock {
    gap: 10px;
  }

  .mock-row {
    padding: 13px;
  }
}

@media print {
  .topbar,
  .rail,
  .actions,
  .lock-overlay,
  .status-pill {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .workspace,
  .screen,
  .module-grid,
  .result-hero {
    display: block;
    width: 100%;
    padding: 0;
  }

  .result-panel,
  .module {
    box-shadow: none;
    border-color: #c8c8c8;
    break-inside: avoid;
    margin-bottom: 12px;
  }

  .locked::after {
    display: none;
  }
}
