:root {
  --ink: #16323a;
  --ink-soft: #456169;
  --muted: #6b7b7f;
  --line: #d7dfdc;
  --paper: #fffdfa;
  --cream: #f5f2ea;
  --teal: #1c6b66;
  --teal-dark: #10524f;
  --copper: #b65d38;
  --copper-light: #f5e3d7;
  --moss: #5d7851;
  --yellow: #d79b27;
  --yellow-light: #fbf3d8;
  --blue-light: #e2eff0;
  --shadow: 0 10px 28px rgba(22, 50, 58, 0.08);
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: radial-gradient(1200px 520px at 50% -8%, #fbf9f2 0%, rgba(245, 242, 234, 0) 62%), var(--cream);
  background-attachment: fixed;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}

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

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

a {
  color: inherit;
}

button {
  cursor: pointer;
}

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

:focus-visible {
  outline: 3px solid rgba(28, 107, 102, 0.36);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 70px;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(215, 223, 220, 0.96);
  background: rgba(255, 253, 250, 0.97);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 218px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--teal);
  border-radius: 50%;
  color: var(--teal);
  font-family: Georgia, serif;
  font-size: 21px;
  line-height: 1;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.brand:hover .brand-mark {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 12px rgba(28, 107, 102, 0.28);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0.02em;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.top-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 13px;
}

.top-nav a {
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--teal);
}

.outline-button,
.secondary-button,
.primary-button {
  border: 1px solid var(--teal);
  border-radius: 5px;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.outline-button {
  min-height: 38px;
  padding: 0 14px;
  background: transparent;
  color: var(--teal);
  font-size: 13px;
}

.outline-button:hover:not(:disabled),
.secondary-button:hover {
  background: var(--teal);
  color: #fff;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(30px, 7vw, 110px);
  align-items: end;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px) clamp(42px, 7vw, 82px);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
}

.intro-copy h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
}

.intro-text {
  max-width: 700px;
  margin: 25px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.rule-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin-top: 28px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 700;
}

.rule-strip span::before {
  content: "+";
  display: inline-block;
  margin-right: 6px;
  color: var(--teal);
}

.method-aside {
  padding: 24px 0 4px 26px;
  border-left: 3px solid var(--copper);
}

.method-aside h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 25px;
  line-height: 1.2;
}

.method-aside p:not(.eyebrow) {
  margin: 14px 0 18px;
  color: var(--ink-soft);
}

.method-aside a {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.input-section,
.report-section {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(42px, 6vw, 78px) clamp(18px, 5vw, 72px);
}

.input-section {
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.15;
}

.section-note {
  max-width: 340px;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

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

.form-panel {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: box-shadow 220ms ease, transform 180ms ease, border-color 180ms ease;
}

.form-panel:hover {
  border-color: #c3d3cf;
  box-shadow: 0 16px 38px rgba(22, 50, 58, 0.12);
}

.form-panel-heading {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.step-number {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.form-panel-heading h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
}

.form-panel-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

label {
  display: block;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #cbd7d4;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

input,
select {
  min-height: 43px;
  padding: 8px 10px;
}

textarea {
  min-height: 88px;
  padding: 9px 10px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  outline: 2px solid rgba(28, 107, 102, 0.13);
}

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

.two-col > label:first-child,
.form-panel > label {
  margin-top: 0;
}

.form-panel > label {
  margin-top: 15px;
}

.segmented {
  display: flex;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #cbd7d4;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.segmented button {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 7px 9px;
  border: 0;
  border-right: 1px solid #cbd7d4;
  background: #fff;
  color: var(--ink-soft);
  font-size: 12px;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button:hover {
  background: var(--blue-light);
}

.segmented button.active {
  background: var(--teal);
  color: #fff;
  font-weight: 700;
}

.segmented.wide {
  margin-top: 16px;
}

.toggle-row {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.switch-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  margin-top: 7px;
  padding: 7px 10px;
  border: 1px solid #cbd7d4;
  border-radius: 4px;
  background: #fff;
  color: var(--ink-soft);
  text-align: left;
}

.switch-button i {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 18px;
  border-radius: 9px;
  background: #b9c5c2;
}

.switch-button i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 160ms ease;
}

.switch-button.is-on {
  border-color: var(--teal);
  color: var(--teal);
}

.switch-button.is-on i {
  background: var(--teal);
}

.switch-button.is-on i::after {
  transform: translateX(12px);
}

.switch-button b {
  font-size: 12px;
  font-weight: 700;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding-top: 26px;
}

.check-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--teal);
}

.field-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.form-submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 6px;
}

.consent-note {
  display: flex;
  flex-direction: column;
  max-width: 570px;
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
}

.consent-note strong {
  color: var(--ink);
}

.primary-button,
.secondary-button {
  min-height: 46px;
  padding: 0 20px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(180deg, #237e78, var(--teal) 55%, var(--teal-dark));
  box-shadow: 0 8px 20px rgba(28, 107, 102, 0.22);
  transition: transform 160ms ease, box-shadow 200ms ease, background 160ms ease;
}

.primary-button:hover {
  background: linear-gradient(180deg, #26928b, var(--teal-dark));
  box-shadow: 0 13px 28px rgba(16, 82, 79, 0.34);
  transform: translateY(-2px);
}

.primary-button:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(16, 82, 79, 0.26);
}

.primary-button span {
  display: inline-block;
  margin-left: 8px;
  font-size: 18px;
  line-height: 1;
}

.secondary-button {
  background: transparent;
  color: var(--teal);
}

.form-error {
  margin: 0;
  color: #a33c2c;
  font-size: 12px;
}

.report-shell {
  background: var(--paper);
}

.report-alert {
  max-width: 1216px;
  margin: 28px auto 0;
  padding: 14px 18px;
  border: 1px solid #c5d7d2;
  border-left: 4px solid var(--teal);
  background: #edf5f2;
  color: var(--ink-soft);
  font-size: 13px;
}

.report-alert.is-boundary {
  border-color: #e6c985;
  border-left-color: var(--yellow);
  background: var(--yellow-light);
}

.report-alert strong {
  color: var(--ink);
}

.chart-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 24px;
  margin: -2px 0 19px;
  color: var(--ink-soft);
  font-size: 13px;
}

.chart-topline strong {
  color: var(--teal);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pillar-card {
  min-width: 0;
  min-height: 210px;
  padding: 19px 15px 16px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  background: #fff;
}

.pillar-card.is-day {
  border-top-color: var(--copper);
}

.pillar-card h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.pillar-value {
  margin: 14px 0 12px;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 34px;
  letter-spacing: 0.06em;
  line-height: 1;
}

.pillar-card p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.pillar-card .pillar-detail {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid #e6ece9;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.time-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.time-meta span {
  min-width: 0;
}

.structure-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 14px;
}

.report-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
}

.report-panel h3 {
  margin: 0;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 22px;
  line-height: 1.25;
}

.panel-kicker {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.balance-level {
  display: inline-block;
  margin: 15px 0 9px;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--copper-light);
  color: var(--copper);
  font-size: 12px;
  font-weight: 700;
}

.score-line {
  color: var(--muted);
  font-size: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.element-tag {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid #d0ddda;
  border-radius: 3px;
  background: #f6faf8;
  color: var(--teal-dark);
  font-size: 11px;
}

.report-panel ul {
  margin: 14px 0 0;
  padding-left: 17px;
  color: var(--ink-soft);
  font-size: 12px;
}

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

.panel-note {
  margin: 17px 0 0;
  padding-top: 12px;
  border-top: 1px solid #e6ece9;
  color: var(--muted);
  font-size: 11px;
}

.element-list {
  display: grid;
  gap: 9px;
  margin-top: 17px;
}

.element-line {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
}

.element-line strong {
  text-align: right;
  color: var(--ink);
  font-size: 11px;
}

.element-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: #e8eeeb;
}

.element-bar span {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
}

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

.domain-card {
  min-width: 0;
  padding: 20px;
  border-top: 3px solid var(--teal);
  background: #eef5f2;
}

.domain-card:nth-child(2) {
  border-top-color: var(--copper);
  background: #fbf0e8;
}

.domain-card:nth-child(3) {
  border-top-color: var(--moss);
  background: #eef2e9;
}

.domain-card:nth-child(4) {
  border-top-color: var(--yellow);
  background: #fbf5df;
}

.domain-card h3 {
  margin: 0;
  font-size: 16px;
}

.domain-card p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.domain-card small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
}

.annual-list {
  display: grid;
  gap: 8px;
}

.annual-row {
  border: 1px solid var(--line);
  background: #fff;
}

.annual-row.current {
  border-color: var(--teal);
  box-shadow: inset 3px 0 0 var(--teal);
}

.annual-row summary {
  display: grid;
  grid-template-columns: 66px 72px minmax(100px, 0.7fr) minmax(170px, 1.6fr) minmax(120px, 0.9fr);
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 16px;
  list-style: none;
  cursor: pointer;
}

.annual-row summary::-webkit-details-marker {
  display: none;
}

.annual-row summary::after {
  justify-self: end;
  color: var(--teal);
  content: "+";
  font-size: 18px;
  font-weight: 400;
}

.annual-row[open] summary::after {
  content: "-";
}

.annual-year {
  color: var(--teal);
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 700;
}

.annual-pillar {
  font-family: Georgia, "Songti SC", serif;
  font-size: 20px;
}

.annual-relation,
.annual-phase,
.annual-node {
  color: var(--ink-soft);
  font-size: 12px;
}

.annual-node {
  color: var(--copper);
}

.annual-detail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(180px, 1.2fr);
  gap: 12px;
  padding: 0 16px 17px;
}

.annual-detail article {
  padding-top: 13px;
  border-top: 1px solid #e6ece9;
}

.annual-detail h4 {
  margin: 0;
  color: var(--teal);
  font-size: 12px;
}

.annual-detail p,
.annual-detail ul {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.annual-detail ul {
  padding-left: 16px;
}

.action-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.2fr);
  gap: 16px;
  align-items: stretch;
}

.action-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #edf5f2;
}

.action-summary h3 {
  font-size: 25px;
}

.action-summary p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.action-summary .direction-emphasis {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
}

.direction-emphasis strong {
  color: var(--copper);
  font-family: Georgia, "Songti SC", serif;
  font-size: 32px;
}

.direction-emphasis span {
  color: var(--muted);
  font-size: 12px;
}

.palace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  min-width: 0;
}

.palace-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  aspect-ratio: 1;
  padding: 11px;
  border: 1px solid var(--line);
  background: #f7faf8;
}

.palace-cell.recommended {
  border: 2px solid var(--copper);
  background: var(--copper-light);
}

.palace-cell strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 17px;
}

.palace-cell span,
.palace-cell small {
  color: var(--muted);
  font-size: 11px;
}

.palace-cell.recommended small {
  color: var(--copper);
  font-weight: 700;
}

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

.month-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  background: #fff;
}

.month-card.recommended {
  border-color: var(--teal);
  background: #eef5f2;
}

.month-card strong,
.month-card span {
  display: block;
}

.month-card strong {
  color: var(--teal);
  font-size: 14px;
}

.month-card span {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 11px;
}

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

.adjustment-card {
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  background: #fff;
}

.adjustment-card:nth-child(2) {
  border-left-color: var(--copper);
}

.adjustment-card:nth-child(3) {
  border-left-color: var(--moss);
}

.adjustment-card h3 {
  margin: 0;
  font-size: 16px;
}

.adjustment-card p {
  margin: 11px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.validation-list {
  display: grid;
  gap: 11px;
}

.validation-card {
  display: grid;
  grid-template-columns: 100px minmax(0, 1.3fr) minmax(150px, 0.5fr) minmax(200px, 1fr);
  gap: 15px;
  align-items: start;
  padding: 17px;
  border: 1px solid var(--line);
  background: #fff;
}

.validation-card h3 {
  margin: 0;
  color: var(--teal);
  font-family: Georgia, "Songti SC", serif;
  font-size: 19px;
}

.validation-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.validation-card label {
  font-size: 11px;
}

.validation-card select {
  margin-top: 4px;
  min-height: 38px;
  padding: 5px 7px;
  font-size: 12px;
}

.validation-card textarea {
  min-height: 62px;
  margin-top: 4px;
  font-size: 12px;
}

.save-status {
  display: inline-block;
  margin-left: 12px;
  color: var(--teal);
  font-size: 12px;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.source-card {
  min-width: 0;
  padding: 17px;
  border-top: 3px solid var(--teal);
  background: #f1f6f3;
}

.source-card:nth-child(2) {
  border-top-color: var(--copper);
}

.source-card:nth-child(3) {
  border-top-color: var(--moss);
}

.source-card:nth-child(4) {
  border-top-color: var(--yellow);
}

.source-card:nth-child(5) {
  border-top-color: #788c98;
}

.source-card h3 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 17px;
}

.source-card p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.source-card p + p {
  padding-top: 9px;
  border-top: 1px solid rgba(215, 223, 220, 0.92);
}

.report-footer {
  max-width: 1216px;
  margin: 0 auto;
  padding: 26px clamp(18px, 5vw, 72px) 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.report-footer p {
  margin: 0 0 6px;
}

@media (max-width: 1040px) {
  .site-header {
    gap: 16px;
  }

  .top-nav {
    gap: 14px;
  }

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

  .balance-panel {
    grid-column: 1 / -1;
  }

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

  .annual-row summary {
    grid-template-columns: 58px 65px minmax(95px, 0.7fr) minmax(150px, 1.3fr) 30px;
  }

  .annual-node {
    display: none;
  }

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

  .annual-detail article:last-child {
    grid-column: 1 / -1;
  }

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

@media (max-width: 800px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
    padding: 12px 18px;
  }

  .brand {
    flex: 1;
  }

  .top-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
    white-space: nowrap;
  }

  .intro-band,
  .input-layout,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .intro-band {
    gap: 30px;
  }

  .method-aside {
    padding: 20px 0 0;
    border-top: 3px solid var(--copper);
    border-left: 0;
  }

  .form-submit {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .consent-note {
    max-width: none;
    margin-right: 0;
  }

  .primary-button {
    width: 100%;
  }

  .action-grid {
    gap: 14px;
  }

  .action-summary {
    min-height: 0;
  }

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

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

  .validation-card {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .validation-card label {
    grid-column: 1 / -1;
  }

  .validation-card textarea {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 14px;
  }

  .site-header {
    min-height: 0;
  }

  .outline-button {
    padding: 0 10px;
  }

  .intro-band,
  .input-section,
  .report-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .intro-copy h1 {
    font-size: 34px;
  }

  .section-heading {
    display: block;
  }

  .section-note {
    max-width: none;
    margin-top: 10px;
    text-align: left;
  }

  .form-panel {
    padding: 19px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .check-row {
    padding-top: 0;
  }

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

  .pillar-card {
    min-height: 190px;
    padding: 15px 12px;
  }

  .pillar-value {
    font-size: 29px;
  }

  .time-meta,
  .structure-grid,
  .domain-grid {
    grid-template-columns: 1fr;
  }

  .balance-panel {
    grid-column: auto;
  }

  .annual-row summary {
    grid-template-columns: 52px 57px minmax(0, 1fr) 24px;
    gap: 8px;
    padding: 9px 11px;
  }

  .annual-year {
    font-size: 18px;
  }

  .annual-pillar {
    font-size: 18px;
  }

  .annual-phase {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .annual-relation {
    display: none;
  }

  .annual-detail {
    grid-template-columns: 1fr;
    padding-right: 11px;
    padding-left: 11px;
  }

  .annual-detail article:last-child {
    grid-column: auto;
  }

  .palace-cell {
    padding: 8px;
  }

  .palace-cell strong {
    font-size: 14px;
  }

  .source-list {
    grid-template-columns: 1fr;
  }
}

.report-panel,
.domain-card,
.source-card,
.adjustment-card,
.month-card,
.pillar-card,
.palace-cell {
  transition: transform 170ms ease, box-shadow 220ms ease, border-color 170ms ease;
}

.report-panel:hover,
.domain-card:hover,
.source-card:hover,
.adjustment-card:hover,
.month-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 32px rgba(22, 50, 58, 0.13);
}

.pillar-card:hover {
  box-shadow: 0 13px 28px rgba(22, 50, 58, 0.13);
}

.palace-cell.recommended {
  box-shadow: 0 8px 20px rgba(182, 93, 56, 0.18);
}

.report-shell:not([hidden]) {
  animation: reportReveal 520ms ease-out both;
}

@keyframes reportReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
