:root {
  --warm-white: #f9f7f3;
  --pure-white: #ffffff;
  --charcoal: #2a2a2a;
  --deep-green: #3d524c;
  --soft-ivory: #f5f2ec;
  --line: rgba(42, 42, 42, 0.12);
  --line-dark: rgba(249, 247, 243, 0.16);
  --text-soft: rgba(42, 42, 42, 0.68);
  --text-light-soft: rgba(249, 247, 243, 0.72);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --page-space: 64px;
  --topbar-height: 80px;
}

* { box-sizing: border-box; }

html { background: var(--warm-white); color: var(--charcoal); }

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0;
  background: var(--warm-white);
}

button,
input,
select,
textarea { font: inherit; letter-spacing: 0; }

button { color: inherit; }

img { display: block; max-width: 100%; }

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

h1,
h2,
h3 { font-family: var(--serif); font-weight: 400; line-height: 1.18; text-wrap: pretty; }

p { text-wrap: pretty; }

.is-hidden { display: none !important; }

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

.auth-view {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(460px, 0.85fr);
  background: var(--pure-white);
}

.auth-visual {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  color: var(--warm-white);
  background: var(--charcoal);
}

.auth-visual__image,
.auth-visual__shade {
  position: absolute;
  inset: 0;
}

.auth-visual__image {
  background-image: url("assets/auth-enterprise-tech.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  filter: saturate(0.48) contrast(0.92);
}

.auth-visual__shade {
  background: linear-gradient(180deg, rgba(42,42,42,.50) 0%, rgba(42,42,42,.32) 45%, rgba(42,42,42,.88) 100%);
}

.auth-visual__content {
  position: absolute;
  z-index: 1;
  left: var(--page-space);
  right: var(--page-space);
  bottom: 72px;
  max-width: 680px;
}

.eyebrow,
.section-number {
  display: inline-block;
  color: var(--deep-green);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.eyebrow { letter-spacing: 0.16em; }

.eyebrow--light,
.section-number--light { color: rgba(249, 247, 243, 0.68); }

.auth-visual h1 {
  margin: 18px 0 40px;
  font-size: 64px;
  color: var(--warm-white);
}

.auth-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

.auth-flow li {
  min-height: 100px;
  padding: 20px 18px 0 0;
  border-right: 1px solid var(--line-dark);
  font-size: 14px;
}

.auth-flow li:last-child { border-right: 0; padding-left: 18px; }
.auth-flow li:nth-child(2) { padding-left: 18px; }
.auth-flow span { display: block; margin-bottom: 8px; color: rgba(249,247,243,.55); font-family: var(--serif); }

.auth-form-area {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 72px 88px;
  background: var(--warm-white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--charcoal);
  text-decoration: none;
  white-space: nowrap;
}

.brand img { width: 142px; height: auto; }
.brand span { padding-left: 16px; border-left: 1px solid var(--line); font-family: var(--serif); font-size: 17px; font-weight: 500; }
.brand--auth { position: absolute; top: 36px; left: 48px; }
.brand--button { padding: 0; border: 0; background: transparent; cursor: pointer; }

.auth-box { width: 100%; max-width: 440px; }
.auth-heading { margin-bottom: 42px; }
.auth-heading h2 { margin: 12px 0 0; font-size: 38px; }

.auth-tabs {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.auth-tab {
  position: relative;
  min-width: 64px;
  padding: 0 0 14px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
}

.auth-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
}

.auth-tab.is-active { color: var(--charcoal); font-weight: 500; }
.auth-tab.is-active::after { background: var(--deep-green); }

.demo-account {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 10px 16px;
  align-items: center;
  margin: -8px 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--soft-ivory);
  font-size: 13px;
}

.demo-account span { color: var(--text-soft); }
.demo-account strong { font-family: var(--serif); font-size: 15px; font-weight: 500; }

.auth-form,
.form-stack { display: grid; gap: 20px; }
.auth-template-download { display: flex; align-items: center; justify-content: center; margin-top: 16px; text-decoration: none; }

.auth-meta {
  position: absolute;
  left: 48px;
  bottom: 28px;
  color: var(--text-soft);
  font-size: 12px;
}

.field { display: grid; gap: 7px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--charcoal); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  color: var(--charcoal);
  background: var(--pure-white);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field textarea { resize: vertical; min-height: 108px; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--deep-green); box-shadow: 0 0 0 3px rgba(61,82,76,.08); }
.field input[readonly] { background: var(--soft-ivory); color: var(--text-soft); }

.button {
  min-height: 48px;
  padding: 12px 30px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-weight: 400;
  cursor: pointer;
  transition: color 240ms ease, background-color 240ms ease, border-color 240ms ease, opacity 240ms ease, transform 120ms ease;
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:focus-visible { outline: 3px solid rgba(61,82,76,.22); outline-offset: 2px; }
.button:disabled { cursor: not-allowed; opacity: .42; transform: none; }
.button--dark { color: var(--warm-white); background: var(--charcoal); }
.button--dark:hover { background: var(--deep-green); }
.button--outline { border-color: rgba(42,42,42,.38); color: var(--charcoal); background: transparent; }
.button--outline:hover { border-color: var(--charcoal); background: var(--pure-white); }
.button--light { color: var(--charcoal); background: var(--warm-white); }
.button--light:hover { background: var(--pure-white); }
.button--full { width: 100%; }

.registration-delivery-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.registration-delivery-card { display: flex; min-width: 0; height: 100%; padding: 22px; border: 1px solid var(--line); background: var(--pure-white); flex-direction: column; }
.registration-delivery-card h3 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.registration-delivery-card p { margin: 12px 0 18px; color: var(--text-soft); }
.registration-delivery-card .button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.registration-delivery-card .button { display: inline-flex; align-items: center; justify-content: center; min-width: 132px; }
.template-summary-row { padding: 14px 0; border-top: 1px solid var(--line); color: var(--text-soft); }

.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.button-row--end { justify-content: flex-end; }
.button-row--between { justify-content: space-between; }

.app-shell { min-height: 100dvh; }

.topbar {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 0 var(--page-space);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}

.topbar .brand img { width: 116px; }
.topbar .brand span { font-size: 15px; }

.stage-nav { display: flex; align-self: stretch; }

.stage-item {
  position: relative;
  min-width: 86px;
  padding: 14px 12px 10px;
  border: 0;
  background: transparent;
  color: rgba(42,42,42,.42);
  font-size: 12px;
  cursor: not-allowed;
}

.stage-item span { display: block; font-family: var(--serif); font-size: 11px; }
.stage-item::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: transparent; }
.stage-item.is-unlocked { color: var(--text-soft); cursor: pointer; }
.stage-item.is-complete { color: var(--deep-green); }
.stage-item.is-active { color: var(--charcoal); font-weight: 500; }
.stage-item.is-active::after { background: var(--deep-green); }

.account-menu { display: flex; align-items: center; justify-content: flex-end; gap: 14px; font-size: 13px; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--text-soft); cursor: pointer; }
.text-button:hover { color: var(--charcoal); }

.workspace { padding-top: var(--topbar-height); min-height: 100dvh; }
.view-panel { min-height: calc(100dvh - var(--topbar-height)); animation: reveal 520ms cubic-bezier(.16,1,.3,1); }

.home-hero {
  min-height: 510px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 100px;
  padding: 96px var(--page-space);
  background: var(--warm-white);
}

.home-hero__content { max-width: 780px; }
.home-hero h1 { margin: 14px 0 26px; font-size: 68px; }
.home-hero p { max-width: 720px; margin-bottom: 38px; color: var(--text-soft); font-size: 19px; }

.entry-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
  max-width: 700px;
}

.entry-method {
  min-height: 138px;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 2px 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--charcoal);
  background: var(--pure-white);
  text-align: left;
  cursor: pointer;
  transition: color 280ms ease, background-color 280ms ease, border-color 280ms ease;
}

.entry-method > span { grid-row: 1 / 3; color: var(--text-soft); font-family: var(--serif); font-size: 14px; }
.entry-method strong { align-self: end; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.entry-method small { color: var(--text-soft); }
.entry-method:hover,
.entry-method--dark { border-color: var(--deep-green); color: var(--warm-white); background: var(--deep-green); }
.entry-method:hover > span,
.entry-method:hover small,
.entry-method--dark > span,
.entry-method--dark small { color: var(--text-light-soft); }

.home-external-actions { display: flex; margin-top: 24px; }

.home-hero__status {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-hero__status strong { display: block; margin: 18px 0 24px; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.home-hero__status small { color: var(--text-soft); }
.status-line { width: 100%; height: 4px; margin-bottom: 10px; background: rgba(42,42,42,.10); }
.status-line span { display: block; width: 0; height: 100%; background: var(--deep-green); transition: width 500ms cubic-bezier(.16,1,.3,1); }

.process-band {
  padding: 120px var(--page-space);
  color: var(--warm-white);
  background: var(--charcoal);
}

.process-band__heading { display: grid; grid-template-columns: 1fr 2fr; align-items: end; gap: 64px; margin-bottom: 72px; }
.process-band .section-number { color: rgba(249,247,243,.58); }
.process-band h2 { max-width: 720px; margin: 0; font-size: 44px; }
.process-grid { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.process-grid li { min-height: 170px; padding: 26px 20px 0; border-right: 1px solid var(--line-dark); }
.process-grid li:first-child { padding-left: 0; }
.process-grid li:last-child { border-right: 0; }
.process-grid span,
.process-grid strong,
.process-grid small { display: block; }
.process-grid span { margin-bottom: 36px; color: rgba(249,247,243,.45); font-family: var(--serif); }
.process-grid strong { margin-bottom: 6px; font-family: var(--serif); font-size: 19px; font-weight: 500; }
.process-grid small { color: var(--text-light-soft); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.service-grid section { min-height: 220px; padding: 30px 34px 0; border-right: 1px solid var(--line-dark); }
.service-grid section:first-child { padding-left: 0; }
.service-grid section:last-child { border-right: 0; }
.service-grid span,
.service-grid strong { display: block; }
.service-grid span { margin-bottom: 44px; color: rgba(249,247,243,.45); font-family: var(--serif); }
.service-grid strong { margin-bottom: 12px; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.service-grid p { margin: 0; color: var(--text-light-soft); font-size: 14px; line-height: 1.8; }

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

.page-heading h1 { margin: 12px 0 0; font-size: 48px; }
.page-heading p { margin: 0 0 8px; color: var(--text-soft); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 48px var(--page-space) 96px;
}

.work-grid--wide-right { grid-template-columns: minmax(340px, .82fr) minmax(480px, 1.18fr); }
.work-grid--single { grid-template-columns: minmax(0, 760px); }
.import-view { display: flex; flex-direction: column; }
.import-view .import-grid { flex: 1; grid-template-columns: minmax(0, 1fr); padding-bottom: 48px; }
.import-view .import-panel { min-height: 0; display: flex; flex-direction: column; }
.import-view .upload-zone { flex: 1; }

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

.work-panel {
  min-height: 520px;
  padding: 36px;
  border: 1px solid var(--line);
  background: var(--pure-white);
}

.work-panel--dark,
.work-panel--completion { color: var(--warm-white); background: var(--deep-green); border-color: var(--deep-green); }

.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.panel-heading__actions { display: flex; align-items: center; gap: 12px; }
.work-panel--dark .panel-heading { border-bottom-color: var(--line-dark); }
.panel-heading h2 { margin: 0; font-size: 24px; }
.state-tag,
.panel-count { padding: 5px 12px; border: 1px solid var(--line); border-radius: 100px; color: var(--text-soft); font-size: 12px; white-space: nowrap; }
.state-tag--light { border-color: var(--line-dark); color: var(--text-light-soft); }

.upload-zone {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border: 1px dashed rgba(42,42,42,.32);
  background: var(--soft-ivory);
  text-align: center;
  cursor: pointer;
  transition: border-color 240ms ease, background-color 240ms ease;
}

.upload-zone:hover { border-color: var(--deep-green); background: var(--warm-white); }
.upload-mark { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 22px; border: 1px solid var(--charcoal); border-radius: 50%; font-family: var(--serif); font-size: 14px; }
.upload-zone strong { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.upload-zone small { margin-top: 8px; color: var(--text-soft); }
.work-panel > .button-row { margin-top: 24px; }
.import-validation { margin-top: 24px; padding: 16px 18px; border: 1px solid #c58b63; background: #fff8f1; color: var(--charcoal); }
.import-validation strong { display: block; margin-bottom: 8px; }
.import-validation ul { margin: 0; padding-left: 20px; color: var(--text-soft); line-height: 1.7; }

.empty-state { min-height: 360px; display: grid; place-items: center; border: 1px dashed var(--line); color: var(--text-soft); text-align: center; }
.empty-state--dark { border-color: var(--line-dark); color: var(--text-light-soft); }

.draft dl { margin: 0; }
.draft dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.draft dt { color: var(--text-light-soft); font-size: 13px; }
.draft dd { margin: 0; font-family: var(--serif); font-size: 19px; }
.draft .button-row { margin-top: 32px; }

.assessment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 24px;
  padding: 48px var(--page-space) 96px;
}

.question-list { border-top: 1px solid var(--line); }
.question-row { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(500px, 1.2fr); align-items: center; gap: 40px; min-height: 146px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.question-row > div:first-child { display: flex; align-items: baseline; gap: 20px; }
.question-row > div:first-child span { color: var(--text-soft); font-family: var(--serif); font-size: 13px; }
.question-row h2 { margin: 0; font-size: 22px; }

.scale-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale-options label { position: relative; min-width: 0; cursor: pointer; }
.scale-options input { position: absolute; opacity: 0; pointer-events: none; }
.scale-options label > span { min-height: 62px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 100px; background: var(--pure-white); font-family: var(--serif); font-size: 20px; transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease; }
.scale-options small { display: block; margin-top: 5px; color: var(--text-soft); font-size: 10px; text-align: center; }
.scale-options input:checked + span { color: var(--warm-white); border-color: var(--deep-green); background: var(--deep-green); }
.scale-options input:focus-visible + span { outline: 3px solid rgba(61,82,76,.18); outline-offset: 2px; }

.score-panel {
  position: sticky;
  top: 112px;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  padding: 34px;
  color: var(--warm-white);
  background: var(--charcoal);
}

.score-waiting { flex: 1; display: grid; place-items: center; color: var(--text-light-soft); text-align: center; }
.score-result { flex: 1; padding-top: 58px; }
.score-result strong { font-family: var(--serif); font-size: 88px; font-weight: 400; line-height: 1; }
.score-result > span { margin-left: 8px; color: var(--text-light-soft); }
.score-result p { margin: 20px 0 42px; font-family: var(--serif); font-size: 24px; }

.package-result h3 { margin-bottom: 26px; font-size: 28px; }
.material-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.material-list li { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.material-list strong { color: var(--deep-green); font-size: 13px; font-weight: 500; }
.package-result .button { margin-top: 30px; }

.result-strip { margin-top: 32px; padding: 30px; color: var(--warm-white); background: var(--deep-green); }
.result-strip > span,
.result-strip > strong { display: block; }
.result-strip > span { color: var(--text-light-soft); font-size: 13px; }
.result-strip > strong { margin: 8px 0 24px; font-family: var(--serif); font-size: 24px; font-weight: 500; }

.work-panel--completion { min-height: 590px; display: flex; flex-direction: column; justify-content: space-between; padding: 48px; }
.completion-copy h2 { margin: 18px 0 22px; font-size: 42px; }
.completion-copy p { color: var(--text-light-soft); }
.completion-index { font-family: var(--serif); font-size: 56px; }
.completion-status { display: flex; align-items: center; gap: 10px; margin: 42px 0 34px; padding: 18px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.completion-status span { width: 8px; height: 8px; border-radius: 50%; background: var(--warm-white); }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 32px;
  min-width: 220px;
  max-width: calc(100vw - 48px);
  padding: 12px 22px;
  color: var(--warm-white);
  background: var(--charcoal);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes reveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  :root { --page-space: 40px; }
  .topbar { grid-template-columns: auto 1fr auto; gap: 16px; }
  .topbar .brand span { display: none; }
  .stage-item { min-width: 74px; padding-left: 7px; padding-right: 7px; }
  .home-hero { grid-template-columns: minmax(0, 1fr) 300px; gap: 60px; }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid li { border-bottom: 1px solid var(--line-dark); }
  .question-row { grid-template-columns: 220px minmax(440px, 1fr); }
}

@media (max-width: 900px) {
  :root { --page-space: 24px; }
  .auth-view { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-area { padding: 120px 24px 80px; }
  .brand--auth { top: 28px; left: 24px; }
  .auth-meta { left: 24px; }
  .topbar { height: auto; min-height: 80px; grid-template-columns: 1fr auto; padding: 12px 24px; }
  .stage-nav { grid-column: 1 / -1; order: 3; width: calc(100vw - 48px); overflow-x: auto; border-top: 1px solid var(--line); }
  .stage-item { flex: 0 0 92px; min-height: 58px; }
  .workspace { padding-top: 151px; }
  .scene-view { height: calc(100dvh - 151px); }
  .home-hero { min-height: 470px; grid-template-columns: 1fr; gap: 50px; padding-top: 72px; padding-bottom: 72px; }
  .home-hero__status { max-width: 500px; }
  .work-grid,
  .work-grid--wide-right { grid-template-columns: 1fr; }
  .assessment-layout { grid-template-columns: 1fr; }
  .score-panel { position: static; }
  .question-row { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 640px) {
  .brand img { width: 112px; }
  .brand span { display: none; }
  .demo-account { grid-template-columns: auto 1fr; }
  .account-menu #accountPhone { display: none; }
  .home-hero h1 { font-size: 42px; }
  .home-hero p { font-size: 16px; }
  .entry-methods { grid-template-columns: 1fr; }
  .process-band { padding-top: 96px; padding-bottom: 96px; }
  .process-band__heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; }
  .process-band h2 { font-size: 34px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid li { min-height: 150px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; padding-top: 48px; }
  .page-heading h1 { font-size: 36px; }
  .page-heading p { margin: 0; }
  .work-grid,
  .assessment-layout { padding-top: 24px; padding-bottom: 72px; }
  .work-panel { min-height: auto; padding: 24px 20px; }
  .upload-zone { min-height: 260px; padding: 24px; }
  .empty-state { min-height: 260px; }
  .draft dl > div { grid-template-columns: 1fr; gap: 6px; }
  .scale-options { gap: 5px; }
  .scale-options label > span { min-height: 50px; font-size: 17px; }
  .scale-options small { font-size: 9px; }
  .score-panel { min-height: 350px; padding: 28px 24px; }
  .work-panel--completion { min-height: 480px; padding: 32px 24px; }
  .completion-copy h2 { font-size: 34px; }
  .button-row--between { align-items: stretch; flex-direction: column-reverse; }
  .button-row--between .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 1ms !important; transition-duration: 1ms !important; }
  .thinking-dots > span { animation: none; opacity: .55; }
}

.stage-nav {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.stage-item { flex: 0 0 88px; min-width: 88px; }
.process-grid { grid-template-columns: repeat(6, 1fr); }
.process-grid li { border-bottom: 1px solid var(--line-dark); }
.state-tag--dark { color: var(--warm-white); background: var(--deep-green); border-color: var(--deep-green); }
.chat-layout,
.scenario-grid,
.confirmation-layout,
.payment-layout,
.report-layout {
  width: min(1440px, calc(100% - var(--page-space) * 2));
  margin: 0 auto;
  padding: 36px 0 96px;
}

.chat-layout {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.chat-panel,
.payment-card,
.order-summary {
  border: 1px solid var(--line);
  background: var(--pure-white);
}

.scene-view {
  height: calc(100dvh - var(--topbar-height));
  min-height: 0;
  overflow: hidden;
}

.chat-panel {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border: 0;
}

.chat-messages { min-height: 0; max-height: none; overflow-y: auto; padding: 32px var(--page-space); background: var(--soft-ivory); }
.message { display: grid; grid-template-columns: 48px minmax(0, 760px); gap: 12px; align-items: start; margin-bottom: 22px; }
.message > span { padding-top: 10px; color: var(--text-soft); font-size: 11px; font-weight: 500; text-transform: uppercase; }
.message p { margin: 0; padding: 14px 16px; border: 1px solid var(--line); background: var(--pure-white); line-height: 1.75; }
.message--user { grid-template-columns: minmax(0, 760px) 48px; justify-content: end; }
.message--user > span { grid-column: 2; grid-row: 1; text-align: right; }
.message--user p { grid-column: 1; grid-row: 1; color: var(--warm-white); background: var(--deep-green); border-color: var(--deep-green); }
.message--user .message-retry { grid-column: 1; grid-row: 2; justify-self: end; margin-top: -4px; }
.message-thinking { min-height: 52px; display: flex; align-items: center; gap: 10px; color: var(--text-soft); }
.thinking-dots { display: inline-flex; align-items: center; gap: 5px; }
.thinking-dots > span { width: 5px; height: 5px; border-radius: 50%; background: var(--deep-green); animation: thinking-pulse 1.2s ease-in-out infinite; }
.thinking-dots > span:nth-child(2) { animation-delay: 160ms; }
.thinking-dots > span:nth-child(3) { animation-delay: 320ms; }

@keyframes thinking-pulse {
  0%, 70%, 100% { opacity: .28; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-3px); }
}

.chat-composer { display: grid; gap: 12px; padding: 18px 22px; border-top: 1px solid var(--line); }
.chat-composer textarea { width: 100%; min-height: 88px; padding: 12px 14px; resize: none; border: 1px solid var(--line); outline: 0; }
.chat-composer textarea:focus { border-color: var(--deep-green); box-shadow: 0 0 0 3px rgba(61,82,76,.08); }
.chat-composer__actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.valuation-notice {
  width: min(1440px, calc(100% - var(--page-space) * 2));
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px auto 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--soft-ivory);
}

.valuation-notice > span { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--deep-green); }
.valuation-notice p { margin: 0; color: var(--text-soft); font-size: 13px; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-bottom: 28px; }
.scenario-card { min-height: 410px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); background: var(--pure-white); transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.scenario-card:hover { transform: translateY(-2px); border-color: rgba(61,82,76,.45); }
.scenario-card--recommended { border-top: 4px solid var(--deep-green); padding-top: 25px; }
.scenario-card.is-selected { border-color: var(--deep-green); box-shadow: 0 12px 32px rgba(42,42,42,.09); }
.scenario-card__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.scenario-code { font-family: var(--serif); font-size: 34px; color: var(--deep-green); }
.scenario-card h2 { min-height: 68px; margin: 0 0 12px; font-size: 27px; }
.scenario-card > p { min-height: 82px; color: var(--text-soft); }
.valuation-values { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 8px 0 0; background: var(--line); border: 1px solid var(--line); }
.valuation-values > div { padding: 14px; background: var(--soft-ivory); }
.valuation-values dt { color: var(--text-soft); font-size: 11px; }
.valuation-values dd { margin: 5px 0 0; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.scenario-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.scenario-total span { color: var(--text-soft); font-size: 12px; }
.scenario-total strong { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--deep-green); }
.scenario-card .button { margin-top: auto; }

.selection-bar { width: min(1440px, calc(100% - var(--page-space) * 2)); min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 auto 96px; padding: 18px 22px; color: var(--warm-white); background: var(--charcoal); }
.selection-bar span { display: block; color: var(--text-light-soft); font-size: 12px; }
.selection-bar strong { font-family: var(--serif); font-size: 18px; font-weight: 400; }

.confirmation-layout { display: grid; gap: 20px; }
.confirmation-layout .work-panel { min-height: 0; }
.scenario-detail-panel { display: grid; gap: 22px; }
.scenario-detail-lead { max-width: 960px; margin: 0; color: var(--text-soft); font-size: 17px; line-height: 1.8; }
.scenario-detail-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.scenario-detail-values > div { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scenario-detail-values dt { color: var(--text-soft); font-size: 12px; }
.scenario-detail-values dd { margin: 7px 0 0; font-family: var(--serif); font-size: 20px; }
.scenario-detail-copy { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.scenario-detail-copy p { margin: 0; color: var(--text-soft); line-height: 1.75; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field--wide { grid-column: 1 / -1; }
.check-field { display: flex; grid-column: 1 / -1; grid-template-columns: none; flex-direction: row; align-items: flex-start; gap: 12px; padding: 15px; background: var(--soft-ivory); }
.check-field input { width: 18px; min-height: 18px; margin: 2px 0 0; }
.check-field span { font-weight: 400; }
.confirmation-layout .button-row { margin-top: 28px; }

.payment-layout { display: grid; grid-template-columns: minmax(360px, .8fr) minmax(420px, 1.2fr); gap: 24px; align-items: stretch; }
.payment-card { display: flex; flex-direction: column; align-items: center; padding: 36px; text-align: center; }
.payment-qr { width: 280px; height: 280px; margin: 24px 0 18px; border: 1px solid var(--line); background-image: url("assets/08-payment.png"); background-repeat: no-repeat; background-size: 1440px 960px; background-position: -580px -300px; }
.payment-qr img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.account-list { display: grid; gap: 10px; }
.account-dashboard { width: min(1180px, calc(100% - var(--page-space) * 2)); display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr); gap: 24px; margin: 0 auto; padding: 36px 0 96px; }
.account-dashboard .work-panel { min-height: 0; }
.account-row,
.account-task { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid var(--line); }
.account-row > div,
.account-task > div { min-width: 0; display: grid; gap: 5px; }
.account-row span { color: var(--text-soft); font-size: 13px; }
.account-task span { color: var(--text-soft); font-size: 13px; overflow-wrap: anywhere; }
.account-row .button,
.account-task .button { flex: 0 0 auto; }
.account-task--current { min-height: 132px; background: var(--soft-ivory); }
.payment-amount { display: flex; align-items: baseline; justify-content: center; gap: 16px; }
.payment-amount span { color: var(--text-soft); }
.payment-amount strong { font-family: var(--serif); font-size: 40px; font-weight: 500; color: var(--deep-green); }
.payment-card > p { color: var(--text-soft); font-size: 12px; }
.result-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:20px 0; }
.result-metrics > div { padding:18px; border:1px solid var(--line); background:#fff; }
.result-metrics span, .snapshot-row span, .muted-note { color:var(--text-soft); font-size:12px; }
.result-metrics strong { display:block; margin-top:8px; color:var(--deep-green); font-family:var(--serif); font-size:24px; font-weight:500; }
.report-stack { width:min(1440px,calc(100% - var(--page-space) * 2)); margin:0 auto; padding:36px 0 96px; display:grid; gap:24px; }
.report-stack .work-panel { min-height:0; }
.product-package-panel { display: grid; gap: 20px; }
.package-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.package-summary > div { display: grid; gap: 7px; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.package-summary span,
.package-checksum span { color: var(--text-soft); font-size: 12px; }
.package-file-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.package-file-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--soft-ivory); }
.package-file-list small { color: var(--text-soft); white-space: nowrap; }
.package-checksum { display: grid; gap: 8px; }
.package-checksum code { padding: 12px; overflow-wrap: anywhere; background: var(--soft-ivory); }
  .product-package-panel > .button { justify-self: start; }
  .package-history-links { display: flex; flex-wrap: wrap; gap: 12px; }
  .package-history-links a { color: var(--text-soft); font-size: 13px; }
.button.is-disabled { pointer-events: none; opacity: .45; }
.external-boundary { max-width: 880px; color: var(--text-soft); line-height: 1.7; }
.template-metadata { color: var(--text-soft); font-size: 12px; }
.report-order-panel { display:flex; align-items:center; justify-content:space-between; min-height:auto; padding:22px 28px; }
.report-order-panel span { color:var(--text-soft); }
.report-order-panel strong { font-family:var(--serif); font-size:22px; font-weight:500; }
.form-snapshot { display:grid; gap:8px; margin:20px 0; }
.snapshot-row { display:flex; justify-content:space-between; gap:20px; padding:10px 0; border-bottom:1px solid var(--line); }
.snapshot-row strong { max-width:70%; text-align:right; overflow-wrap:anywhere; }
.order-summary { padding: 34px; }
.order-summary dl { margin: 16px 0 0; }
.order-summary dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.order-summary dt { color: var(--text-soft); }
.order-summary dd { margin: 0; font-weight: 500; }
.service-selection { display: grid; gap: 16px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.service-selection__heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.service-selection h3 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.service-selection fieldset { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.service-selection legend { margin-bottom: 4px; color: var(--text-soft); font-size: 12px; }
.choice-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); cursor: pointer; }
.choice-row:has(input:checked) { border-color: var(--deep-green); background: var(--soft-ivory); }
.choice-row input { flex: 0 0 auto; width: 17px; min-height: 17px; margin-top: 3px; accent-color: var(--deep-green); }
.choice-row span { display: grid; gap: 4px; }
.choice-row strong { font-weight: 500; }
.choice-row small { color: var(--text-soft); line-height: 1.5; }
.service-selection .field { display: grid; gap: 8px; }
.service-selection textarea { width: 100%; min-height: 84px; padding: 12px 14px; border: 1px solid var(--line); resize: vertical; }
.product-profile-panel { display: grid; gap: 20px; }
.profile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.profile-grid > div { display: grid; gap: 8px; min-height: 92px; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-grid span, .profile-copy strong { color: var(--text-soft); font-size: 12px; }
.profile-grid strong { font-family: var(--serif); font-size: 18px; font-weight: 500; overflow-wrap: anywhere; }
.profile-copy { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.profile-copy p { margin: 0; color: var(--text-soft); line-height: 1.7; }

.report-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(360px, .7fr); gap: 24px; }
.report-layout .work-panel { min-height: 500px; }
.delivery-timeline { display: grid; gap: 0; margin: 32px 0 0; padding: 0; list-style: none; }
.delivery-timeline li { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 16px; min-height: 108px; }
.delivery-timeline li::before { content: ""; position: absolute; left: 6px; top: 18px; bottom: -2px; width: 1px; background: var(--line); }
.delivery-timeline li:last-child::before { display: none; }
.delivery-timeline li > span { width: 13px; height: 13px; margin-top: 4px; border: 2px solid rgba(42,42,42,.25); border-radius: 50%; background: var(--pure-white); }
.delivery-timeline li.is-current > span { border: 4px solid var(--deep-green); }
.delivery-timeline li.is-complete > span { border-color: var(--deep-green); background: var(--deep-green); }
.delivery-timeline strong { display: block; margin-bottom: 6px; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.delivery-timeline small { color: var(--text-soft); }
.report-delivery-card { display: flex; flex-direction: column; }
.report-delivery-card h2 { margin: 46px 0 12px; font-size: 31px; }
.report-delivery-card > p { color: var(--text-soft); }
.service-contact { margin: auto 0 22px; padding: 18px; color: var(--warm-white); background: var(--deep-green); }
.service-contact span { display: block; color: var(--text-light-soft); font-size: 12px; }
.service-contact strong { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.report-delivery-card .button + .button { margin-top: 10px; }

@media (max-width: 1100px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .scenario-grid { grid-template-columns: 1fr; }
  .scenario-card { min-height: 0; }
  .scenario-card h2,
  .scenario-card > p { min-height: 0; }
  .payment-layout,
  .report-layout,
  .account-dashboard { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .service-grid { grid-template-columns: 1fr; }
  .registration-delivery-list { grid-template-columns: 1fr; }
  .service-grid section { min-height: 0; padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .service-grid section:last-child { border-bottom: 0; }
  .service-grid span { margin-bottom: 18px; }
  .scenario-detail-values { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field--wide,
  .check-field { grid-column: auto; }
}

@media (max-width: 640px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .scenario-grid,
  .confirmation-layout,
  .payment-layout,
  .report-layout,
  .report-stack,
  .valuation-notice,
  .selection-bar { width: calc(100% - 32px); }
  .chat-messages { padding: 18px 14px; }
  .message { grid-template-columns: 38px minmax(0, 1fr); }
  .message--user { grid-template-columns: minmax(0, 1fr) 38px; }
  .chat-composer__actions,
  .selection-bar { align-items: stretch; flex-direction: column; }
  .chat-composer .button,
  .selection-bar .button { width: 100%; }
  .scenario-detail-values { grid-template-columns: 1fr; }
  .scenario-detail-copy { grid-template-columns: 1fr; gap: 8px; }
  .valuation-values { grid-template-columns: 1fr; }
  .scenario-total { align-items: flex-start; flex-direction: column; }
  .payment-card { padding: 28px 18px; }
  .payment-qr { width: 242px; height: 242px; background-size: 1244px 829px; background-position: -501px -259px; }
   .result-metrics { grid-template-columns:1fr; }
   .profile-grid { grid-template-columns: 1fr 1fr; }
  .package-summary,
  .package-file-list { grid-template-columns: 1fr; }
  .account-row,
  .account-task { align-items: stretch; flex-direction: column; }
  .account-row .button,
  .account-task .button { width: 100%; }
  .order-summary { padding: 26px 20px; }
   .order-summary dl > div { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 640px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-copy { grid-template-columns: 1fr; gap: 8px; }
}
