*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f4f7f5;
  --card: #ffffff;
  --ink: #17271f;
  --ink-soft: #34493e;
  --muted: #576a60;
  --muted-light: #64766d;
  --line: #e3ebe6;
  --line-strong: #cfdcd4;
  --brand: #147a52;
  --brand-dark: #0f6242;
  --brand-soft: #eaf6f0;
  --brand-tint: #f3fbf7;
  --gold: #b7791f;
  --gold-soft: #fdf3e3;
  --danger: #b42318;
  --danger-soft: #fdf1ef;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 40, 30, 0.04), 0 10px 30px rgba(16, 40, 30, 0.04);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(820px 380px at 50% -120px, #e5f4ec 0%, rgba(229, 244, 236, 0) 70%),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
p {
  margin: 0;
}

button,
input {
  font: inherit;
}

.site-header {
  max-width: 860px;
  margin: 0 auto;
  padding: 22px 24px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.link-button:focus-visible {
  outline: 3px solid rgba(20, 122, 82, 0.28);
  outline-offset: 3px;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.link-button:hover {
  background: #e9f2ed;
  color: var(--ink);
}

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.hero {
  max-width: 650px;
  margin: 0 auto;
  padding: 46px 0 30px;
  text-align: center;
}

.eyebrow {
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 12px 0 12px;
  font-size: clamp(32px, 5.2vw, 46px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 580px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.form-card {
  padding: 6px 24px 22px;
}

.form-section {
  padding: 22px 0;
  border-top: 1px solid #eef3f0;
}

.form-section:first-child {
  border-top: 0;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.step {
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 700;
}

.section-head h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.field-grid {
  display: grid;
  gap: 16px 14px;
}

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

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

.field-grid.rates {
  margin-top: 18px;
}

.field label,
.asset-name label {
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.field > label {
  margin-bottom: 7px;
}

.input-shell {
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input-shell:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 122, 82, 0.12);
}

.input-shell .prefix {
  padding-left: 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1;
}

.input-shell .suffix {
  padding-right: 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1;
}

.inf-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-family: "Times New Roman", Georgia, serif;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.inf-toggle:hover {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--brand-dark);
}

.inf-toggle[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.inf-toggle:focus-visible {
  outline: 3px solid rgba(20, 122, 82, 0.28);
  outline-offset: 2px;
}

.input-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  padding: 11px 12px;
  font-size: 15px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.input-shell .prefix + input {
  padding-left: 5px;
}

.input-shell input::-webkit-outer-spin-button,
.input-shell input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-shell input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.hint {
  margin-top: 6px;
  color: var(--muted-light);
  font-size: 11.5px;
  line-height: 1.45;
}

.asset-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.asset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 248px);
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid #eef3f0;
  transition: background-color 140ms ease;
}

.asset-row:last-child {
  border-bottom: 0;
}

.asset-row:hover,
.asset-row:focus-within {
  background: #fbfdfc;
}

.asset-name span {
  display: block;
  margin-top: 1px;
  color: var(--muted-light);
  font-size: 11.5px;
  line-height: 1.4;
}

.asset-row .input-shell {
  background: #fbfdfc;
}

.asset-row .input-shell:focus-within {
  background: #fff;
}

.asset-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px;
  gap: 8px;
  align-items: center;
}

.asset-inputs .input-shell.rate input {
  padding-right: 3px;
  text-align: right;
}

.asset-hint {
  margin: 0 0 12px;
}

.asset-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px solid #dcebe3;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
}

.asset-total strong {
  color: var(--brand-dark);
  font-size: 15.5px;
  font-variant-numeric: tabular-nums;
}

.field-grid + .field-grid {
  margin-top: 16px;
}

.field-grid + .switch-row {
  margin-top: 16px;
}

.rates + .switch-row {
  margin-top: 18px;
}

.switch-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: #fbfdfc;
  cursor: pointer;
}

.switch-row input {
  width: 16px;
  height: 16px;
  flex: none;
  margin: 3px 0 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.switch-row strong {
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.switch-row span span {
  display: block;
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 11.5px;
  line-height: 1.45;
}

.switch-row:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 122, 82, 0.1);
}

.form-error {
  margin: 2px 0 14px;
  padding: 10px 12px;
  border: 1px solid #f2c8c3;
  border-radius: 9px;
  background: var(--danger-soft);
  color: #96261b;
  font-size: 13px;
}

.btn-primary {
  width: 100%;
  margin-top: 4px;
  padding: 14px 18px;
  border: 0;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background-color 170ms ease, box-shadow 170ms ease, transform 120ms ease;
  box-shadow: 0 6px 16px rgba(20, 122, 82, 0.16);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:focus-visible {
  outline: 3px solid rgba(20, 122, 82, 0.3);
  outline-offset: 3px;
}

.privacy {
  margin-top: 11px;
  color: var(--muted-light);
  font-size: 11.5px;
  text-align: center;
}

.results {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 30px;
  scroll-margin-top: 18px;
}

.results > .card {
  min-width: 0;
}

.results[hidden] {
  display: none;
}

.results .card {
  animation: rise 420ms ease both;
}

.stale-note {
  margin: 0;
  padding: 9px 13px;
  border: 1px solid #f0e2c8;
  border-radius: 10px;
  background: #fdf9f1;
  color: #7a5510;
  font-size: 12.5px;
  line-height: 1.5;
}

.stale-note[hidden] {
  display: none;
}

.print-only {
  display: none;
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 2px;
}

.results-bar-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.btn-ghost:hover {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--brand-dark);
}

.btn-ghost:focus-visible {
  outline: 3px solid rgba(20, 122, 82, 0.3);
  outline-offset: 2px;
}

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

.results .card:nth-of-type(2) {
  animation-delay: 50ms;
}

.results .card:nth-of-type(3) {
  animation-delay: 100ms;
}

.results .card:nth-of-type(4) {
  animation-delay: 150ms;
}

.results .card:nth-of-type(5) {
  animation-delay: 200ms;
}

.card h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 18px;
  flex-wrap: wrap;
}

.verdict {
  border-color: #cfe8db;
  background: var(--brand-tint);
}

.verdict.is-short {
  border-color: #efddc0;
  background: #fffbf5;
}

.verdict-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #d8f0e3;
  color: var(--brand-dark);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.verdict.is-short .badge,
.badge.is-warn {
  background: #fbe8cd;
  color: #8a5310;
}

.badge.is-good {
  background: #d8f0e3;
  color: var(--brand-dark);
}

.score {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.verdict h2 {
  max-width: 660px;
  margin: 15px 0 8px;
  font-size: clamp(22px, 3.6vw, 29px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.028em;
}

.verdict > p {
  max-width: 68ch;
  color: #4f645a;
  font-size: 14px;
  line-height: 1.6;
}

.money-note {
  margin-top: 8px;
  max-width: 70ch;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.progress {
  height: 9px;
  margin: 18px 0 20px;
  border-radius: 999px;
  background: #dcece3;
  overflow: hidden;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
  transition: width 550ms ease;
}

.verdict.is-short .progress {
  background: #f4e7d3;
}

.verdict.is-short .progress span {
  background: var(--gold);
}

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

.stat {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #e4ede8;
  border-radius: 11px;
  background: #fff;
}

.stat > span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.stat strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(20px, 3.5vw, 24px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.stat small {
  display: block;
  margin-top: 3px;
  color: var(--muted-light);
  font-size: 11px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.stat.is-good strong {
  color: var(--brand-dark);
}

.stat.is-bad strong {
  color: #a85a10;
  font-size: clamp(18px, 3.2vw, 23px);
}

.stat-action {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-size: 11.5px;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.stat-action:hover {
  color: var(--brand);
}

.stat-action:focus-visible {
  outline: 3px solid rgba(20, 122, 82, 0.28);
  outline-offset: 2px;
  border-radius: 4px;
}

.stat-action[hidden] {
  display: none;
}

.compare {
  display: grid;
  gap: 9px;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid #e0ece5;
}

.compare-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.compare-row > span {
  color: var(--muted);
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: #e4eee8;
  overflow: hidden;
}

.bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: #c8a04a;
  transition: width 450ms ease;
}

.bar span.have {
  background: var(--brand);
}

.compare-row b {
  min-width: 78px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  color: var(--muted);
  font-size: 11.5px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend i {
  display: inline-block;
  width: 13px;
  height: 2px;
  border-radius: 2px;
}

.key-projected {
  background: var(--brand);
}

.key-target {
  background: repeating-linear-gradient(90deg, var(--gold) 0 3px, transparent 3px 6px);
}

.chart-wrap {
  width: 100%;
  margin-top: 14px;
}

.chart-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-wrap svg text {
  font-family: inherit;
}

.grid-line {
  stroke: #e8efeb;
  stroke-width: 1;
}

.axis-label {
  fill: var(--muted-light);
  font-size: 11px;
  font-weight: 500;
}

.chart-area {
  fill: rgba(20, 122, 82, 0.1);
}

.chart-line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.retire-line {
  stroke: #c7d7ce;
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.retire-dot {
  fill: var(--brand);
  stroke: #fff;
  stroke-width: 1.5;
}

.target-line {
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-dasharray: 4 4;
}

.target-label {
  fill: #8a5c14;
  font-size: 11px;
  font-weight: 600;
}

.runout-line {
  stroke: var(--danger);
  stroke-width: 1.2;
  stroke-dasharray: 3 4;
}

.runout-label {
  fill: var(--danger);
  font-size: 10.5px;
  font-weight: 600;
}

.chart-label {
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
}

.chart-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.card-intro {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.scenario-list {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.scenario-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef3f0;
}

.scenario-row:last-child {
  border-bottom: 0;
}

.scenario-row.is-base {
  background: var(--brand-tint);
}

.scenario-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.scenario-label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.scenario-detail {
  color: var(--muted-light);
  font-size: 11.5px;
  line-height: 1.45;
}

.scenario-result {
  flex: none;
  display: grid;
  gap: 3px;
  justify-items: end;
  text-align: right;
}

.scenario-pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef3f0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.scenario-result.is-good .scenario-pill {
  background: #d8f0e3;
  color: var(--brand-dark);
}

.scenario-result.is-bad .scenario-pill {
  background: #fbe8cd;
  color: #8a5310;
}

.scenario-amount {
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.scenario-result.is-bad .scenario-amount {
  color: #a85a10;
}

.scenario-delta {
  color: var(--muted-light);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.35;
}

.scenario-result.is-bad .scenario-delta {
  color: #8a5c14;
}

.table-wrap {
  width: 100%;
  margin-top: 14px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  padding: 0 8px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-light);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

th:not(:first-child),
td:not(:first-child) {
  text-align: right;
}

td {
  padding: 9px 8px;
  border-bottom: 1px solid #f1f5f3;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

td:first-child {
  color: var(--ink-soft);
  font-weight: 500;
  white-space: normal;
}

tfoot td {
  border-bottom: 0;
  color: var(--muted);
  font-size: 12.5px;
}

tfoot tr:first-child td {
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.table-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px solid #dcebe3;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.table-total strong {
  color: var(--brand-dark);
  font-size: 15.5px;
  font-variant-numeric: tabular-nums;
}

.table-note {
  margin-top: 10px;
  color: var(--muted-light);
  font-size: 11.5px;
  line-height: 1.5;
}

.table-note.is-warn {
  color: #a85a10;
}

.schedule {
  margin-top: 12px;
}

.schedule summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand-dark);
  font-size: 12.5px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.schedule summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.schedule[open] summary::before {
  content: "−";
}

.schedule summary:focus-visible {
  outline: 3px solid rgba(20, 122, 82, 0.28);
  outline-offset: 3px;
  border-radius: 4px;
}

.schedule-wrap {
  max-height: 340px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
}

.schedule-wrap table {
  min-width: 0;
}

.schedule-wrap th,
.schedule-wrap td {
  padding-left: 6px;
  padding-right: 6px;
}

.schedule-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-top: 9px;
  background: #fff;
}

.schedule-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.schedule-wrap tr.is-runout td {
  color: #a85a10;
  font-weight: 600;
}

.today-card > p {
  max-width: 70ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

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

.today-grid > div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfc;
}

.today-grid span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
}

.today-grid strong {
  display: block;
  margin-top: 3px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.today-grid small {
  display: block;
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.tips {
  display: grid;
  gap: 10px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.tips li {
  position: relative;
  padding-left: 25px;
  color: #485e53;
  font-size: 13.5px;
  line-height: 1.6;
}

.tips li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-soft);
}

.tips li::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.tips b {
  color: var(--ink);
  font-weight: 600;
}

.site-footer {
  padding: 32px 2px 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
  text-align: center;
}

.site-footer p + p {
  margin-top: 7px;
}

.site-footer strong {
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 700px) {
  .field-grid.three,
  .field-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-grid.three > .field:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 16px 16px 0;
  }

  .page {
    padding: 0 16px 46px;
  }

  .hero {
    padding: 34px 0 24px;
  }

  .lede {
    font-size: 14px;
  }

  .card {
    padding: 18px;
    border-radius: 14px;
  }

  .form-card {
    padding: 2px 17px 18px;
  }

  .form-section {
    padding: 20px 0;
  }

  .field-grid.three,
  .field-grid.two {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-grid.three > .field:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .input-shell input {
    font-size: 16px;
  }

  .chart-wrap .axis-label,
  .chart-wrap .target-label,
  .chart-wrap .runout-label {
    font-size: 10px;
  }

  .asset-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 12px 13px;
  }

  .asset-row .input-shell {
    width: 100%;
  }

  .asset-name span {
    margin-top: 0;
  }

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

  .stat {
    padding: 11px 12px;
  }

  .stat strong {
    font-size: 20px;
  }

  .stat.is-bad strong {
    font-size: 18px;
  }

  .compare-row {
    grid-template-columns: 66px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .compare-row b {
    min-width: 68px;
    font-size: 11.5px;
  }

  .today-grid strong {
    font-size: 17px;
  }

  .scenario-row {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }

  .scenario-result {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    text-align: left;
  }

  .scenario-delta {
    flex-basis: 100%;
  }

  .schedule-wrap table {
    min-width: 0;
  }

  .asset-table-wrap table {
    font-size: 12px;
  }

  .asset-table-wrap th,
  .asset-table-wrap td {
    padding-left: 4px;
    padding-right: 4px;
  }

  .results {
    margin-top: 24px;
  }

  .site-footer {
    padding-top: 26px;
    text-align: left;
  }
}

@media (max-width: 370px) {
  .stats,
  .today-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  @page {
    margin: 12mm;
  }

  html {
    scroll-behavior: auto;
  }

  body {
    background: #fff;
    color: #111;
    font-size: 10.5pt;
  }

  .site-header,
  .hero,
  .form-card,
  .results-bar,
  .stale-note,
  .stat-action,
  .btn-ghost {
    display: none !important;
  }

  .page {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .results:not([hidden]) {
    display: grid;
    gap: 10px;
    margin: 0;
  }

  .print-only {
    display: flex;
  }

  .print-header {
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 5px;
    border-bottom: 1px solid #cfdcd4;
    color: #3c4a42;
    font-size: 9.5pt;
  }

  .print-header span:first-child {
    color: #111;
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  .results .card {
    break-inside: avoid;
    padding: 14px;
    border: 1px solid #d8e3dc;
    background: #fff;
    box-shadow: none;
    animation: none !important;
  }

  .results .card:nth-of-type(n) {
    animation-delay: 0ms;
  }

  .verdict {
    background: #f7fbf9 !important;
  }

  .progress,
  .bar,
  .badge,
  .scenario-pill,
  .chart-area {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .chart-wrap svg {
    max-width: 100%;
  }

  .chart-wrap,
  .scenario-row,
  .table-wrap tr,
  .today-grid > div,
  .stats > .stat {
    break-inside: avoid;
  }

  .schedule summary {
    display: none;
  }

  .schedule-wrap {
    max-height: none;
    overflow: visible;
    border-color: #dfe7e2;
  }

  .schedule-wrap table {
    min-width: 0;
  }

  .schedule-wrap thead th {
    position: static;
  }

  .site-footer {
    padding: 12px 0 0;
    color: #55655c;
    font-size: 8.5pt;
    text-align: left;
  }

  a[href]::after {
    content: "";
  }
}
