:root {
  color-scheme: light;
  --background: #f5f4ee;
  --paper: #fffefa;
  --ink: #203638;
  --muted: #748071;
  --green: #27796e;
  --line: #dfe4d9;
  --route: #27796e;
  --route-soft: #e4eee6;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    'Microsoft YaHei',
    DengXian,
    sans-serif;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: var(--green);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex='0']:focus-visible {
  outline: 3px solid #81b5a0;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.45;
}
h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.8px;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 23px;
  font-weight: 650;
}
h3 {
  font-size: 16px;
}
em {
  font-style: normal;
  color: var(--green);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
  line-height: 1.8;
}
.eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 20;
  padding: 12px 20px;
  background: var(--green);
  color: white;
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 244, 238, 0.96);
  border-bottom: 1px solid #e5e7dd;
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(1120px, calc(100% - 64px));
  min-height: 86px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  color: var(--ink);
}
.brand img {
  border-radius: 13px;
  object-fit: cover;
}
.brand > span {
  display: flex;
  flex-direction: column;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 1px;
}
.brand small {
  margin-top: 5px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--muted);
}
nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #84907d;
  font-size: 14px;
  white-space: nowrap;
}
nav a[aria-current] {
  color: var(--green);
  font-weight: 600;
}
nav a[aria-current]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
#archive-count {
  margin-left: 5px;
  font-size: 11px;
}
.demo-label {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #7e8b73;
  white-space: nowrap;
}
.demo-label i,
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9cb48d;
  flex-shrink: 0;
}
main {
  flex: 1;
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  padding: 34px 0 70px;
}
main:focus {
  outline: none;
}
.site-footer {
  width: min(1120px, calc(100% - 64px));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: #8a9582;
  font-size: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-height: 46px;
  padding: 13px 24px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.5;
  text-align: center;
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}
.button-primary {
  background: var(--green);
  color: white;
}
.button-primary:hover {
  background: #1f685f;
}
.button-outline {
  background: transparent;
  border-color: #b9cbb9;
  color: #3c6252;
}
.button-outline:hover {
  background: #e8eee2;
}
.button-quiet {
  background: #e9eee3;
  color: #52704f;
}
.button-quiet:hover {
  background: #dce8d8;
}
.button-link {
  background: transparent;
  color: var(--green);
  padding-left: 0;
  padding-right: 0;
}
.button-link:hover {
  color: #164e46;
}
.button-danger {
  background: #ad644d;
  color: white;
}
.button-danger-outline {
  margin-top: 23px;
  background: transparent;
  border-color: #dec2b0;
  color: #a76f50;
}
.button-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 19px;
  background: #ebeee3;
  border: 1px solid #e4e8da;
  border-radius: 14px;
  color: #758266;
  font-size: 13px;
  line-height: 1.8;
}
.hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: 72px;
  padding: 34px 10px 56px 0;
}
.hero h1 {
  margin-top: 23px;
  font-size: clamp(40px, 5.1vw, 64px);
  line-height: 1.3;
  letter-spacing: -2px;
}
.lead {
  margin-top: 25px;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.95;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 27px;
  flex-wrap: wrap;
  margin: 31px 0 16px;
}
.hero-actions .button-primary {
  min-width: 205px;
  min-height: 53px;
  justify-content: space-between;
}
.hero-art {
  max-width: 355px;
  justify-self: center;
  padding: 10px;
  background: #fffefa;
  border: 1px solid #e6e7db;
  border-radius: 38px;
  transform: rotate(3deg);
  box-shadow: 9px 15px 0 #e4e9dc;
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 29px;
}
.section {
  margin-top: 42px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 23px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 179px;
  padding: 24px 21px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  text-align: left;
  transition:
    border-color 0.16s ease,
    background 0.16s ease;
}
.category-card:hover {
  border-color: #9fbd9c;
  background: #fafcf6;
}
.category-symbol {
  font-size: 27px;
  color: var(--green);
  line-height: 1;
  margin-bottom: 23px;
}
.category-card strong {
  font-size: 18px;
  font-weight: 600;
}
.category-card > span:not(.category-symbol):not(.card-arrow) {
  margin-top: 9px;
  color: #8b947d;
  font-size: 12px;
  line-height: 1.7;
}
.card-arrow {
  position: absolute;
  top: 21px;
  right: 20px;
  color: #9fac8f;
}
.recent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 30px;
  padding: 27px 30px;
}
.recent h2 {
  margin: 12px 0 7px;
  font-size: 21px;
  overflow-wrap: anywhere;
}
.recent .button {
  flex-shrink: 0;
}
.narrow-page {
  max-width: 790px;
  margin: 0 auto;
}
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 0;
  padding: 0 0 0 2px;
  color: #7f8f73;
  background: transparent;
  font-size: 13px;
}
.back-link:hover {
  color: var(--green);
}
.page-heading {
  margin: 18px 0 27px;
}
.page-heading h1 {
  margin: 13px 0 14px;
}
.page-heading p {
  font-size: 15px;
  line-height: 1.9;
}
.heading-date {
  float: right;
  color: #91a082;
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 400;
}
.revision-note {
  font-size: 13px;
  color: #9c7b55;
  margin-top: 20px;
}
.choice-form {
  margin-top: 32px;
}
.form-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.form-topline .button {
  flex-shrink: 0;
}
.category-field {
  max-width: 360px;
  width: 100%;
}
.field-group {
  margin-bottom: 26px;
}
.field-group label,
.field-group legend {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  color: #345141;
  font-size: 16px;
  font-weight: 600;
}
.field-group label > span,
.field-group legend > span {
  margin-left: 13px;
  color: #95a087;
  font-size: 12px;
  font-weight: 400;
}
input:not([type='checkbox']),
textarea,
select {
  width: 100%;
  border: 1px solid #d8e1d0;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  padding: 15px 18px;
  line-height: 1.8;
  font-size: 15px;
  outline: none;
  transition: border-color 0.16s;
}
input:not([type='checkbox']),
select {
  min-height: 52px;
}
textarea {
  min-height: 115px;
  resize: vertical;
  display: block;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #71a58a;
  box-shadow: 0 0 0 3px #27796e10;
}
input[aria-invalid],
textarea[aria-invalid] {
  border-color: #b77253;
}
::placeholder {
  color: #a1aa94;
  opacity: 1;
}
.field-meta {
  display: flex;
  gap: 14px;
  min-height: 25px;
  padding-top: 6px;
}
.counter {
  display: block;
  margin-left: auto;
  font-size: 11px;
  color: #9aa58d;
  text-align: right;
  white-space: nowrap;
}
.field-error {
  font-size: 12px;
  color: #b2684d;
}
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
}
.priorities-field {
  border: 0;
  padding: 0;
  min-width: 0;
}
.priority-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.priority-chip {
  min-height: 48px;
  padding: 11px 15px;
  border: 1px solid #d9e1d0;
  border-radius: 12px;
  background: var(--paper);
  color: #7e8d70;
  font-size: 14px;
}
.priority-chip.selected {
  background: #e1eee3;
  color: var(--green);
  border-color: #8fb398;
}
.priorities-field .field-error {
  margin-top: 10px;
  display: block;
}
.privacy-details {
  margin: 8px 0 18px;
  padding: 16px 20px;
  border-radius: 14px;
  background: #e9eee1;
  color: #77896b;
  font-size: 13px;
}
summary {
  cursor: pointer;
}
.privacy-details summary {
  min-height: 24px;
}
.privacy-details p {
  padding-top: 13px;
  line-height: 1.9;
}
.field-group .consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13px;
  font-weight: 400;
  color: #7d8a73;
  cursor: pointer;
  min-height: 44px;
  padding-top: 10px;
}
.consent input {
  margin: 4px 0 0;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--green);
}
.field-group .consent span {
  margin-left: 0;
  color: inherit;
  font-size: inherit;
}
.submit-button {
  width: 100%;
  justify-content: space-between;
  padding-left: 27px;
  padding-right: 27px;
  min-height: 56px;
}
.form-bottom-note {
  margin-top: 15px;
  text-align: center;
}
.tone-0 {
  --route: #27796e;
  --route-soft: #e4eee6;
}
.tone-1 {
  --route: #b57050;
  --route-soft: #f4e9df;
}
.tone-2 {
  --route: #55758d;
  --route-soft: #e9eef2;
}
.branch-tabs {
  display: flex;
  gap: 16px;
  margin-top: 29px;
}
.branch-tab {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  min-height: 95px;
  padding: 18px 23px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  text-align: left;
}
.branch-tab > span {
  font-size: 11px;
  color: #929d87;
}
.branch-tab strong {
  color: #6c7a62;
  font-size: 17px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.branch-tab.active {
  background: var(--route-soft);
  border-color: var(--route);
}
.branch-tab.active strong,
.branch-tab.active > span {
  color: var(--route);
}
.year-picker {
  display: flex;
  justify-content: space-around;
  gap: 10px;
  margin: 25px 0;
}
.year-button {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #8c9b80;
  padding: 10px 0;
  min-height: 74px;
  font-size: 12px;
}
.year-button::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 25px;
  width: calc(100% + 10px);
  height: 1px;
  background: #d6e1cf;
}
.year-button:last-child::after {
  display: none;
}
.year-button > span:first-child {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #e2e9dc;
  font-size: 14px;
}
.year-button.active {
  color: var(--route);
  font-weight: 600;
}
.year-button.active > span:first-child {
  background: var(--route);
  color: white;
}
.result-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  align-items: start;
  gap: 27px;
}
.scene-card {
  padding: 32px 35px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--route);
  background: var(--paper);
  border-radius: 23px;
}
.scene-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: #95a185;
}
.scene-meta > span:first-child {
  color: var(--route);
  font-weight: 600;
  flex-shrink: 0;
}
.scene-card h2 {
  margin-top: 23px;
  font-size: 28px;
}
.scene-setting {
  color: #95a185;
  font-size: 12px;
  margin-top: 11px;
}
.scene-text {
  margin-top: 26px;
  font-size: 18px;
  line-height: 2;
}
blockquote {
  margin-top: 25px;
  padding: 19px 22px;
  border-radius: 15px;
  background: var(--route-soft);
}
blockquote > span {
  font-size: 11px;
  color: var(--route);
}
blockquote p {
  font-size: 15px;
  color: #53684c;
  line-height: 1.9;
  margin-top: 8px;
}
.tradeoffs {
  margin-top: 26px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.tradeoffs > div {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 15px;
  font-size: 13px;
  line-height: 1.9;
}
.tradeoffs span {
  flex-shrink: 0;
  color: var(--green);
}
.tradeoffs p {
  color: #7c886e;
}
.tradeoffs > div:last-child span {
  color: #b27b57;
}
.reflection-prompt {
  display: flex;
  gap: 20px;
  padding: 12px 6px 27px;
}
.question-mark {
  color: #b6a481;
  font-size: 38px;
  line-height: 1.3;
  font-family: Georgia, serif;
}
.reflection-prompt p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.9;
}
.assumptions {
  padding: 21px 23px;
  background: #e9ede1;
}
.assumptions > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
  list-style: none;
}
.assumptions > summary::-webkit-details-marker {
  display: none;
}
.assumptions summary strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.assumptions summary small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #8a997d;
}
.expand-sign {
  color: #8a9e79;
  font-size: 24px;
}
.assumptions[open] .expand-sign {
  transform: rotate(45deg);
}
.assumptions-body {
  margin-top: 20px;
  padding-top: 3px;
  border-top: 1px solid #d5dfcb;
  font-size: 13px;
  color: #7f8c73;
}
.assumptions-body h3 {
  margin-top: 17px;
  margin-bottom: 9px;
  font-size: 13px;
  color: #5c7850;
}
.assumptions-body ul {
  padding-left: 17px;
  margin: 0;
  line-height: 1.9;
}
.assumptions-body li + li {
  margin-top: 8px;
}
.result-buttons {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 24px;
}
.result-aside > p {
  text-align: center;
  margin-top: 10px;
}
.compare-page .year-picker {
  position: sticky;
  top: 86px;
  z-index: 3;
  padding: 10px 0;
  background: var(--background);
}
.comparison-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}
.comparison-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
}
.comparison-table th,
.comparison-table td {
  padding: 22px 26px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e8ebdf;
  border-right: 1px solid #e8ebdf;
  overflow-wrap: anywhere;
}
.comparison-table tr > :last-child {
  border-right: 0;
}
.comparison-table tbody tr:last-child > * {
  border-bottom: 0;
}
.comparison-table thead th {
  width: 28%;
  background: var(--route-soft);
  color: var(--route);
  vertical-align: middle;
}
.comparison-table thead th:first-child {
  width: 16%;
  color: #8b997f;
  background: #edf0e6;
  font-size: 13px;
  font-weight: 400;
}
.comparison-table thead span {
  display: block;
  font-size: 11px;
  margin-bottom: 8px;
}
.comparison-table thead strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
}
.comparison-table tbody th {
  font-size: 13px;
  color: #849575;
  font-weight: 500;
  background: #f8f9f2;
}
.comparison-table tbody td {
  font-size: 15px;
  color: #6b7d60;
  line-height: 1.95;
}
.compare-headline {
  font-weight: 600;
  display: block;
  color: #36513c;
  font-size: 16px;
}
.read-scene {
  display: block;
  border: 0;
  background: transparent;
  color: var(--route);
  padding: 13px 0 0;
  min-height: 44px;
  font-size: 12px;
  text-align: left;
}
.comparison-table .cost-row th {
  color: #ae7b57;
}
.mobile-scroll-hint {
  display: none;
}
.reflection-editor {
  margin-top: 34px;
  padding: 29px 32px;
}
.reflection-editor h2 {
  margin: 10px 0;
}
.reflection-editor p {
  font-size: 14px;
}
.reflection-editor textarea {
  margin-top: 22px;
  background: #fafbf7;
}
.reflection-editor .counter {
  margin-top: 8px;
}
.reflection-actions {
  display: flex;
  gap: 26px;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.archive-page .page-heading {
  margin-top: 20px;
  margin-bottom: 34px;
}
.count-label {
  display: inline-block;
  margin-left: 23px;
  color: #9caa8b;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 23px;
}
.archive-card {
  padding: 27px 29px;
}
.archive-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  color: #94a080;
}
.archive-card h2 {
  font-size: 22px;
  margin: 22px 0 18px;
  overflow-wrap: anywhere;
}
.archive-branches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.archive-branches span {
  display: inline-block;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--route-soft);
  color: var(--route);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.archive-reflection {
  color: #8b957b;
  font-size: 14px;
  line-height: 1.9;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.archive-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 24px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.archive-actions .button {
  font-size: 13px;
}
.delete-link {
  min-height: 44px;
  padding: 10px 0 10px 18px;
  border: 0;
  background: transparent;
  color: #b49273;
  font-size: 12px;
}
.new-choice {
  margin-top: 28px;
}
.archive-note {
  margin-top: 30px;
}
.empty-state {
  text-align: center;
  padding: 74px 20px;
}
.empty-state h1 {
  font-size: 29px;
}
.empty-state p {
  max-width: 480px;
  margin: 17px auto 29px;
  font-size: 15px;
}
.empty-fork {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  height: 80px;
  margin-bottom: 24px;
}
.empty-fork i {
  width: 12px;
  height: 39px;
  border-radius: 20px;
  background: #a5bca0;
  transform: rotate(30deg);
}
.empty-fork i:nth-child(2) {
  height: 61px;
  background: #cfb18a;
  transform: none;
}
.empty-fork i:nth-child(3) {
  height: 47px;
  background: #a1b5bf;
  transform: rotate(-30deg);
}
.about-card {
  padding: 28px 31px;
  margin-top: 25px;
}
.about-card p {
  color: #7f8f71;
  font-size: 14px;
  line-height: 1.95;
  margin-top: 16px;
}
.about-card ol {
  padding-left: 23px;
  margin: 20px 0 0;
  color: #78896a;
  font-size: 15px;
}
.about-card li + li {
  margin-top: 17px;
}
.about-closing {
  padding: 37px 10px 8px;
}
.about-closing h2 {
  font-size: 21px;
  margin-bottom: 15px;
}
.about-closing p {
  font-size: 14px;
  line-height: 1.95;
}
dialog {
  width: min(470px, calc(100% - 36px));
  padding: 28px;
  border: 1px solid #dce4d2;
  border-radius: 23px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 90px #20363826;
}
dialog::backdrop {
  background: #152d2866;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 21px;
}
dialog p {
  margin: 17px 0 26px;
  font-size: 14px;
  color: #7d8b70;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
#toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: max-content;
  max-width: min(540px, calc(100% - 36px));
  padding: 15px 24px;
  border-radius: 14px;
  background: #244c41;
  color: white;
  box-shadow: 0 10px 35px #244c4122;
  font-size: 14px;
  line-height: 1.8;
}
#toast[data-kind='error'] {
  background: #986d50;
}
.no-script {
  padding: 25px;
  text-align: center;
}

@media (max-width: 950px) {
  .header-inner {
    gap: 20px;
  }
  nav {
    gap: 23px;
  }
  .hero {
    gap: 42px;
  }
  .hero-art {
    max-width: 300px;
  }
  .hero-actions {
    gap: 15px;
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-card {
    min-height: 157px;
  }
  .result-layout {
    grid-template-columns: 1fr;
  }
  .result-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 26px;
  }
  .reflection-prompt {
    grid-column: 1;
  }
  .assumptions {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: start;
  }
  .result-buttons {
    grid-column: 1;
    margin-top: 0;
  }
  .result-aside > p {
    grid-column: 1;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 22px 20px;
  }
}

@media (max-width: 650px) {
  body {
    font-size: 15px;
  }
  .header-inner,
  main,
  .site-footer {
    width: calc(100% - 36px);
  }
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 15px;
    padding: 12px 0 7px;
  }
  .brand img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .brand > span {
    font-size: 19px;
  }
  .brand small {
    font-size: 9px;
  }
  .demo-label {
    grid-column: 2;
    grid-row: 1;
    font-size: 10px;
  }
  nav {
    grid-column: 1 / -1;
    justify-content: space-around;
    gap: 24px;
  }
  nav a {
    min-height: 42px;
    font-size: 13px;
  }
  main {
    padding-top: 25px;
    padding-bottom: 42px;
  }
  .hero {
    padding: 14px 0 30px;
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero h1 {
    font-size: clamp(39px, 9vw, 51px);
    letter-spacing: -1.4px;
    margin-top: 18px;
  }
  .hero-copy {
    position: relative;
    z-index: 1;
  }
  .hero-art {
    display: none;
  }
  .hero-actions {
    gap: 12px;
    margin-top: 25px;
  }
  .hero-actions .button-primary {
    min-width: 190px;
  }
  .hero-actions .button-link {
    font-size: 13px;
  }
  .lead {
    font-size: 15px;
    margin-top: 20px;
  }
  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.8px;
  }
  .notice {
    padding: 12px 14px;
    font-size: 11px;
    gap: 9px;
  }
  .section {
    margin-top: 31px;
  }
  .section-heading h2 {
    font-size: 20px;
  }
  .section-heading > .small {
    display: none;
  }
  .category-grid {
    gap: 12px;
  }
  .category-card {
    padding: 20px 17px;
    min-height: 163px;
    border-radius: 18px;
  }
  .category-card strong {
    font-size: 16px;
  }
  .category-card > span:not(.category-symbol):not(.card-arrow) {
    font-size: 11px;
  }
  .category-symbol {
    margin-bottom: 21px;
  }
  .recent {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 24px;
    border-radius: 20px;
  }
  .recent h2 {
    font-size: 19px;
  }
  .recent .button {
    align-self: flex-start;
  }
  .page-heading {
    margin-top: 14px;
  }
  .page-heading h1 {
    font-size: 28px;
    margin: 11px 0 14px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .heading-date {
    font-size: 10px;
  }
  .button {
    font-size: 14px;
    padding: 12px 20px;
  }
  .button-primary {
    min-height: 49px;
  }
  .back-link {
    font-size: 12px;
  }
  .form-topline {
    gap: 15px;
  }
  .form-topline .button {
    padding-left: 15px;
    padding-right: 15px;
    font-size: 12px;
  }
  .field-group label,
  .field-group legend {
    font-size: 14px;
  }
  .field-group label > span,
  .field-group legend > span {
    font-size: 10px;
    margin-left: 9px;
  }
  input:not([type='checkbox']),
  textarea,
  select {
    font-size: 14px;
    padding: 13px 15px;
  }
  .form-columns {
    gap: 14px;
  }
  .priority-options {
    gap: 10px;
  }
  .priority-chip {
    padding: 10px 6px;
    font-size: 12px;
  }
  .privacy-details {
    font-size: 12px;
  }
  .field-group .consent {
    font-size: 12px;
  }
  .field-group .consent span {
    font-size: inherit;
  }
  .branch-tabs {
    gap: 9px;
    margin-top: 22px;
  }
  .branch-tab {
    padding: 15px 12px;
    min-height: 93px;
    border-radius: 14px;
  }
  .branch-tab > span {
    font-size: 10px;
  }
  .branch-tab strong {
    font-size: 13px;
    line-height: 1.75;
  }
  .year-picker {
    gap: 5px;
    margin: 19px 0;
  }
  .year-button {
    font-size: 10px;
    gap: 8px;
  }
  .year-button::after {
    width: calc(100% + 5px);
  }
  .scene-card {
    padding: 24px;
    border-radius: 20px;
  }
  .scene-card h2 {
    font-size: 23px;
  }
  .scene-meta {
    font-size: 10px;
    gap: 10px;
  }
  .scene-setting {
    font-size: 11px;
  }
  .scene-text {
    font-size: 16px;
    line-height: 2;
    margin-top: 23px;
  }
  blockquote {
    padding: 16px 18px;
  }
  blockquote p {
    font-size: 14px;
  }
  .tradeoffs > div {
    font-size: 12px;
    gap: 12px;
  }
  .result-aside {
    display: block;
  }
  .reflection-prompt {
    padding: 6px 5px 25px;
    gap: 17px;
  }
  .reflection-prompt p {
    font-size: 14px;
  }
  .result-buttons {
    margin-top: 24px;
  }
  .compare-page .year-picker {
    top: 112px;
  }
  .mobile-scroll-hint {
    display: block;
    margin: -3px 0 13px;
    font-size: 11px;
  }
  .comparison-table {
    min-width: 730px;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 18px;
  }
  .comparison-table thead strong {
    font-size: 16px;
  }
  .comparison-table tbody td {
    font-size: 14px;
  }
  .reflection-editor {
    padding: 24px;
    border-radius: 20px;
  }
  .reflection-editor h2 {
    font-size: 21px;
  }
  .reflection-editor p {
    font-size: 12px;
  }
  .reflection-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .reflection-actions .button-link {
    font-size: 12px;
  }
  .archive-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .archive-card {
    padding: 24px;
    border-radius: 20px;
  }
  .archive-card h2 {
    font-size: 20px;
  }
  .archive-actions .button {
    font-size: 12px;
  }
  .archive-meta {
    font-size: 10px;
  }
  .count-label {
    margin-left: 16px;
    font-size: 13px;
  }
  .about-card {
    padding: 24px;
    border-radius: 20px;
  }
  .about-card h2 {
    font-size: 20px;
  }
  .about-card ol {
    font-size: 14px;
  }
  .about-card p {
    font-size: 13px;
  }
  .empty-state {
    padding: 50px 8px;
  }
  .empty-state h1 {
    font-size: 24px;
  }
  .site-footer {
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    padding: 20px 0;
  }
  dialog {
    padding: 25px;
  }
  dialog h2 {
    font-size: 19px;
  }
  #toast {
    font-size: 12px;
    padding: 13px 18px;
    bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.backup-panel, .report-context { margin: 28px 0; padding: 28px; }
.backup-panel p { margin: 14px 0; font-size: 1rem; }
.backup-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 20px 0; }
.report-page { overflow-wrap: anywhere; }
.report-page h2 { font-size: 1.4rem; }
.report-page h3 { margin: 24px 0 10px; font-size: 1rem; color: #27796e; }
.report-page p, .report-page li { font-size: 1rem; line-height: 1.85; }
.report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.report-branch { padding: 26px; border-top: 4px solid var(--route); }
.report-milestone { border-left: 2px solid var(--route); padding-left: 14px; margin: 20px 0; font-size: 1rem; }
.report-milestone p { margin: 8px 0; color: #586b63; }
.report-page ul { padding-left: 22px; }
.report-page li { margin: 10px 0; }
.report-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.report-steps .card { padding: 26px; }
.report-reflection { white-space: pre-wrap; }
.generation-status { margin: 20px 0; padding: 18px; border-radius: 14px; color: #27796e; background: #e4eee6; font-size: 1rem; }
.cancel-generation { width: 100%; margin-top: 16px; }
.share-card { margin: 26px 0; padding: 32px; text-align: center; }
.share-qr { display: block; max-width: 100%; height: auto; margin: 0 auto 24px; border-radius: 16px; }
.share-card h2 { font-size: 1.4rem; }
.share-card p { margin: 16px 0; font-size: 1rem; }
.share-card input { width: 100%; margin-top: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: #314b3f; font-size: 1rem; }
.share-card .backup-actions { justify-content: center; }
.share-page { overflow-wrap: anywhere; }
.preview-expiry-note { max-width: 1120px; margin: 18px auto 0; padding: 14px 20px; font-size: 14px; }
@media (max-width: 700px) { .preview-expiry-note { margin: 16px 18px 0; } }
@media (max-width: 900px) { .report-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .report-steps { grid-template-columns: 1fr; }
  .backup-actions { flex-direction: column; align-items: stretch; }
  .backup-panel, .report-context, .report-branch { padding: 22px; }
}
