.app-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 54px;
}

.site-header,
.hero-panel,
.stepper,
.record-context,
.step-panel,
.insight-panel,
.history-panel,
.export-panel,
.site-footer {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 20px;
  border-radius: 18px;
}

.brand-lockup,
.header-actions,
.brand-name,
.hero-meta,
.panel-kicker,
.section-heading,
.step-actions,
.record-actions,
.export-actions,
.modal-header,
.toast-inner {
  display: flex;
  align-items: center;
}

.brand-lockup,
.header-actions,
.hero-meta,
.step-actions,
.record-actions,
.export-actions {
  gap: 12px;
}

.brand-lockup {
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--leaf);
  color: #fff;
  font-size: 23px;
  transform: rotate(-8deg);
}

.brand-name {
  gap: 8px;
  color: var(--leaf-dark);
  font-size: 20px;
  font-weight: 900;
}

.brand-subtitle {
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 800;
}

.storage-note {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
  gap: 26px;
  align-items: stretch;
  margin-top: 18px;
  padding: clamp(24px, 5vw, 54px);
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(112deg, rgba(255, 253, 248, 0.92) 0%, rgba(255, 253, 248, 0.82) 54%, rgba(226, 242, 224, 0.86) 100%),
    radial-gradient(circle at 90% 20%, rgba(80, 145, 99, 0.26), transparent 19rem);
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  max-width: 650px;
}

.eyebrow,
.panel-kicker,
.section-kicker {
  color: var(--leaf);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 680px;
  color: var(--leaf-dark);
  font-size: clamp(39px, 6.5vw, 76px);
  line-height: 0.98;
}

.hero-title em {
  color: var(--leaf);
  font-style: normal;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 570px;
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
}

.hero-meta {
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.hero-meta span {
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
}

.question-panel {
  display: grid;
  align-content: space-between;
  gap: 26px;
  padding: 25px;
  border-left: 1px solid rgba(38, 116, 73, 0.22);
}

.question-mark {
  color: var(--leaf);
  font-size: 62px;
  line-height: 0.8;
}

.question-panel h2 {
  margin-top: 12px;
  font-size: clamp(25px, 3vw, 37px);
  line-height: 1.14;
}

.question-panel p {
  margin-top: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.quick-summary {
  display: grid;
  gap: 5px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 16px;
}

.step-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  min-height: 68px;
  padding: 10px 14px;
  border: 0;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.8);
  color: var(--ink-soft);
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}

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

.step-tab:hover,
.step-tab.is-active {
  background: var(--leaf);
  color: #fff;
}

.step-tab.is-complete:not(.is-active) {
  color: var(--leaf);
}

.step-number {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 900;
}

.step-label {
  font-size: 13px;
  font-weight: 900;
}

.record-context {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 15px 18px;
  border-radius: 16px;
}

.record-context-group {
  display: flex;
  align-items: end;
  gap: 10px;
}

.record-context .field-label {
  min-width: 190px;
}

.record-status {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.step-panel,
.insight-panel,
.history-panel,
.export-panel {
  margin-top: 18px;
  padding: clamp(20px, 4vw, 34px);
  border-radius: 20px;
}

.step-panel {
  display: none;
}

.step-panel.is-active {
  display: block;
  animation: panel-in 220ms ease both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-heading {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin-top: 7px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.06;
}

.section-heading p {
  max-width: 610px;
  margin-top: 10px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.step-actions {
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-top: 18px;
}

.insight-panel,
.history-panel,
.export-panel {
  min-width: 0;
}

.insight-panel .section-heading,
.history-panel .section-heading,
.export-panel .section-heading {
  align-items: start;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 16px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}
