:root {
  color-scheme: light;
  --bg-canvas: #f4f5f7;
  --surface-base: #ffffff;
  --surface-subtle: #eceff2;
  --surface-raised: #ffffff;
  --surface-hover: #e7ebee;
  --surface-selected: #dce8e4;
  --surface-pressed: #d0ddd8;
  --border-subtle: #cbd2d6;
  --border-strong: #7b878d;
  --text-primary: #15191c;
  --text-secondary: #414a50;
  --text-muted: #667178;
  --text-on-accent: #ffffff;
  --accent: #146c5b;
  --accent-hover: #0f5a4c;
  --accent-pressed: #0b493e;
  --focus-ring: #0b705c;
  --success-fg: #126143;
  --success-bg: #e2f3eb;
  --success-border: #8fc9af;
  --warning-fg: #7c4b0b;
  --warning-bg: #fff2d4;
  --warning-border: #e7bf62;
  --danger-fg: #a7352c;
  --danger-bg: #fde9e6;
  --danger-border: #e7a39d;
  --info-fg: #245e86;
  --info-bg: #e6f0f6;
  --info-border: #9cbdd1;
  --chart-teal: #177a66;
  --chart-coral: #c75645;
  --chart-amber: #b87318;
  --chart-blue: #397da6;
  --chart-charcoal: #455158;
  --chart-olive: #75823b;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-pill: 999px;
  --control-height: 36px;
  --topbar-height: 64px;
  --sidebar-width: 208px;
  --duration-fast: 120ms;
  --duration-normal: 180ms;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-canvas);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.625;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus-ring) 40%, transparent);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--text-primary);
  color: var(--text-on-accent);
  transform: translateY(-140%);
  transition: transform var(--duration-fast) ease;
}

.skip-link:focus {
  color: var(--text-on-accent);
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid #2d3438;
  background: #1d2326;
  color: #f6f8f8;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  border: 1px solid #5d696e;
  border-radius: var(--radius-sm);
  color: #9de0cb;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.brand-copy {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-copy strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 650;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy span,
.topbar-meta {
  color: #abb5b9;
  font-size: 12px;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #63b99e;
}

.workspace {
  min-height: calc(100vh - var(--topbar-height));
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: var(--topbar-height);
  align-self: start;
  height: calc(100vh - var(--topbar-height));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 16px 20px;
  border-right: 1px solid var(--border-subtle);
  background: var(--surface-subtle);
}

.section-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 520;
  text-decoration: none;
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.nav-link:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.nav-link.is-active {
  border-left-color: var(--accent);
  background: var(--surface-selected);
  color: var(--accent-pressed);
  font-weight: 650;
}

.scope-block {
  padding: 12px;
  border-top: 1px solid var(--border-subtle);
}

.scope-label,
.eyebrow,
.status-label,
.confidence-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 650;
  line-height: 16px;
}

.scope-label {
  background: var(--surface-base);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.scope-block p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 18px;
}

.main-content {
  min-width: 0;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px 32px;
}

.report-section {
  min-width: 0;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: calc(var(--topbar-height) + 16px);
}

.overview-section {
  padding-top: 32px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 20px;
}

.section-heading > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.overview-heading > div {
  display: block;
}

.section-heading h1,
.section-heading h2,
.tool-header h3,
.insight-panel h3,
.forecast-panel h3,
.method-grid h3 {
  margin: 0;
  letter-spacing: 0;
}

.section-heading h1 {
  max-width: 680px;
  margin-top: 8px;
  font-size: 24px;
  font-weight: 680;
  line-height: 32px;
}

.section-heading h2 {
  font-size: 20px;
  font-weight: 680;
  line-height: 28px;
}

.section-index {
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.section-heading > p,
.lede {
  margin: 0;
  color: var(--text-muted);
}

.section-heading > p {
  max-width: 540px;
  font-size: 13px;
  line-height: 20px;
  text-align: right;
}

.lede {
  max-width: 620px;
  font-size: 15px;
  line-height: 24px;
}

.eyebrow {
  border: 1px solid var(--success-border);
  background: var(--success-bg);
  color: var(--success-fg);
}

.summary-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-base);
}

.summary-item {
  min-width: 0;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  border-right: 1px solid var(--border-subtle);
}

.summary-item:last-child {
  border-right: 0;
}

.metric-label,
.metric-context {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 18px;
}

.metric-value {
  overflow-wrap: anywhere;
  font-size: 22px;
  font-weight: 680;
  line-height: 28px;
  font-variant-numeric: tabular-nums;
}

.is-negative,
.negative-cell {
  color: var(--danger-fg);
}

.is-positive {
  color: var(--success-fg);
}

.positive-supply {
  color: var(--warning-fg);
}

.finding-strip {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-md);
  background: var(--warning-bg);
}

.finding-marker {
  border-radius: 2px;
  background: var(--warning-fg);
}

.finding-strip p {
  margin: 0;
  color: #5e430f;
  font-size: 13px;
  line-height: 20px;
}

.tool-surface {
  min-width: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-base);
}

.tool-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: #fafbfb;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.tool-header h3,
.insight-panel h3,
.method-grid h3 {
  font-size: 16px;
  font-weight: 650;
  line-height: 22px;
}

.tool-header p,
.forecast-panel-heading span,
.forecast-foot span,
.forecast-price-value span,
.rental-summary span,
.rental-summary small {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 18px;
}

.segmented-control {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

.segment {
  min-width: 82px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 560;
  cursor: pointer;
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
}

.segment:hover {
  background: var(--surface-hover);
}

.segment:active {
  background: var(--surface-pressed);
}

.segment.is-active {
  background: var(--surface-base);
  color: var(--accent-pressed);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  font-weight: 680;
}

.chart-stage {
  position: relative;
  width: 100%;
  min-height: 310px;
  aspect-ratio: 16 / 6.6;
  overflow: hidden;
  padding: 8px 8px 0;
}

.chart-stage-small {
  min-height: 250px;
  aspect-ratio: 16 / 8;
}

.chart-stage svg {
  display: block;
  width: 100%;
  height: 100%;
}

.chart-grid-line {
  stroke: #dfe4e6;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-zero-line {
  stroke: #8c979c;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.chart-axis-label {
  fill: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.chart-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.chart-point {
  stroke: var(--surface-base);
  stroke-width: 2;
  cursor: pointer;
  vector-effect: non-scaling-stroke;
}

.chart-point:hover,
.chart-point:focus {
  stroke: var(--text-primary);
  stroke-width: 2.5;
}

.chart-bar {
  shape-rendering: crispEdges;
}

.chart-empty {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 14px;
}

.chart-legend {
  min-height: 44px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 8px 16px 12px;
}

.legend-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
}

.legend-button:hover {
  background: var(--surface-hover);
}

.legend-button[aria-pressed="false"] {
  color: var(--text-muted);
  text-decoration: line-through;
}

.legend-swatch {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  flex: 0 0 18px;
}

.chart-tooltip {
  position: fixed;
  z-index: 80;
  max-width: 220px;
  padding: 8px 10px;
  border: 1px solid #4f5b60;
  border-radius: var(--radius-sm);
  background: #20272a;
  color: #f7f9f9;
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
  font-size: 12px;
  line-height: 18px;
  pointer-events: none;
}

.chart-tooltip strong {
  display: block;
  font-weight: 650;
}

.analysis-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.two-column {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.compact-tool .tool-header {
  min-height: 60px;
}

.insight-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

.insight-list {
  margin: 12px 0 0;
}

.insight-list > div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
}

.insight-list dt {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 680;
}

.insight-list dd {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 20px;
}

.event-callout {
  background: var(--danger-bg);
  border-color: var(--danger-border);
}

.event-callout h3 {
  margin-top: 10px;
}

.event-callout p {
  margin: 8px 0 0;
  color: #6f2d28;
  font-size: 13px;
  line-height: 21px;
}

.danger-label {
  border: 1px solid var(--danger-border);
  background: var(--surface-base);
  color: var(--danger-fg);
}

.table-shell {
  width: 100%;
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-base);
  overscroll-behavior-inline: contain;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

caption {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  text-align: left;
}

th,
td {
  height: 40px;
  padding: 8px 12px;
  border-bottom: 1px solid #e2e6e8;
  text-align: right;
  white-space: nowrap;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-subtle);
  color: var(--text-secondary);
  font-weight: 650;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

thead th:first-child,
tbody th {
  text-align: left;
}

tbody th {
  color: var(--text-primary);
  font-weight: 620;
}

tbody td {
  color: var(--text-secondary);
}

tbody tr:hover {
  background: #f8f9f9;
}

.current-row {
  background: var(--info-bg);
}

.current-row th {
  box-shadow: inset 3px 0 0 var(--info-fg);
}

.median-row {
  background: var(--surface-subtle);
}

.shock-cell {
  background: var(--danger-bg);
  color: var(--danger-fg);
  font-weight: 700;
}

.table-note {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 18px;
}

.rental-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-base);
}

.rental-summary > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-right: 1px solid var(--border-subtle);
}

.rental-summary > div:last-child {
  border-right: 0;
}

.rental-summary strong {
  font-size: 17px;
  line-height: 24px;
  font-variant-numeric: tabular-nums;
}

.forecast-toolbar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  border: 1px solid var(--border-subtle);
  border-bottom: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--surface-subtle);
}

.confidence-label {
  border: 1px solid var(--info-border);
  background: var(--info-bg);
  color: var(--info-fg);
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--border-subtle);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--surface-base);
}

.forecast-panel {
  min-width: 0;
  padding: 20px;
}

.forecast-panel + .forecast-panel {
  border-left: 1px solid var(--border-subtle);
}

.forecast-panel-heading {
  min-height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.forecast-panel-heading strong {
  font-size: 17px;
  font-weight: 680;
  line-height: 24px;
}

.range-row {
  margin-top: 18px;
}

.range-label,
.forecast-foot,
.forecast-price-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.range-label span,
.price-range-labels,
.forecast-panel > p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 18px;
}

.range-label strong,
.forecast-foot strong,
.forecast-price-value strong {
  font-size: 14px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}

.range-track,
.price-range-track {
  position: relative;
  height: 12px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
}

.range-band,
.price-range-band {
  position: absolute;
  top: 2px;
  bottom: 2px;
  border-radius: var(--radius-pill);
  background: var(--chart-teal);
  transition: left var(--duration-normal) ease, width var(--duration-normal) ease, background var(--duration-normal) ease;
}

.forecast-foot {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.price-range-figure {
  margin-top: 24px;
}

.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-variant-numeric: tabular-nums;
}

.zero-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 60%;
  width: 1px;
  background: var(--border-strong);
}

.forecast-price-value {
  margin-top: 16px;
}

.forecast-panel > p {
  min-height: 54px;
  margin: 14px 0 0;
  color: var(--text-secondary);
}

.forecast-note {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: var(--surface-subtle);
}

.forecast-note strong {
  font-size: 13px;
}

.forecast-note p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 20px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-base);
}

.method-grid article {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--border-subtle);
}

.method-grid article:last-child {
  border-right: 0;
}

.method-grid p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 21px;
}

.source-details {
  margin-top: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-base);
}

.source-details summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.source-details summary:hover {
  background: var(--surface-hover);
}

.source-content {
  padding: 0 16px 16px;
  border-top: 1px solid var(--border-subtle);
}

.source-content ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.source-content li,
.source-content p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 22px;
}

.source-content p {
  margin: 12px 0 0;
}

.site-footer {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1100px) {
  .main-content {
    padding-inline: 24px;
  }

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

  .summary-item:nth-child(2) {
    border-right: 0;
  }

  .summary-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border-subtle);
  }

  .section-heading {
    display: block;
  }

  .section-heading > p,
  .lede {
    max-width: 760px;
    margin-top: 8px;
    text-align: left;
  }
}

@media (max-width: 900px) {
  :root {
    --topbar-height: 60px;
  }

  .workspace {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: var(--topbar-height);
    z-index: 20;
    width: 100%;
    height: 52px;
    display: block;
    padding: 6px 16px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
    background: rgb(244 245 247 / 96%);
    scrollbar-width: none;
  }

  .sidebar::-webkit-scrollbar {
    display: none;
  }

  .section-nav {
    width: max-content;
    flex-direction: row;
    gap: 4px;
  }

  .nav-link {
    min-height: 40px;
    padding: 8px 12px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: var(--radius-sm);
    white-space: nowrap;
  }

  .nav-link.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }

  .scope-block {
    display: none;
  }

  .report-section {
    scroll-margin-top: calc(var(--topbar-height) + 64px);
  }

  .two-column,
  .forecast-grid {
    grid-template-columns: 1fr;
  }

  .forecast-panel + .forecast-panel {
    border-top: 1px solid var(--border-subtle);
    border-left: 0;
  }

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

  .method-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .method-grid article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --topbar-height: 58px;
  }

  .topbar {
    padding: 0 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .brand-copy strong {
    max-width: 170px;
    font-size: 14px;
  }

  .brand-copy span,
  .status-dot {
    display: none;
  }

  .topbar-meta {
    font-size: 11px;
  }

  .sidebar {
    padding-inline: 10px;
  }

  .main-content {
    padding: 0 12px 24px;
  }

  .report-section {
    padding: 28px 0;
  }

  .overview-section {
    padding-top: 24px;
  }

  .section-heading {
    margin-bottom: 16px;
  }

  .section-heading > div {
    align-items: flex-start;
  }

  .section-heading h1 {
    font-size: 21px;
    line-height: 29px;
  }

  .section-heading h2 {
    font-size: 18px;
    line-height: 25px;
  }

  .lede {
    font-size: 14px;
    line-height: 22px;
  }

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

  .summary-item {
    min-height: 108px;
    padding: 12px;
  }

  .metric-value {
    font-size: 18px;
    line-height: 24px;
  }

  .metric-context {
    font-size: 11px;
    line-height: 16px;
  }

  .tool-header {
    min-height: 108px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 12px;
  }

  .segmented-control {
    width: 100%;
  }

  .segment {
    min-width: 0;
    flex: 1;
    height: 36px;
  }

  .chart-stage,
  .chart-stage-small {
    min-height: 270px;
    aspect-ratio: 4 / 3;
    padding-inline: 2px;
  }

  .chart-legend {
    min-height: 48px;
    gap: 4px 8px;
    padding-inline: 10px;
  }

  .legend-button {
    min-height: 36px;
  }

  .analysis-grid,
  .table-shell,
  .rental-summary {
    margin-top: 12px;
  }

  .rental-summary {
    grid-template-columns: 1fr;
  }

  .rental-summary > div {
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .rental-summary > div:last-child {
    border-bottom: 0;
  }

  .forecast-toolbar {
    min-height: 104px;
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .confidence-label {
    align-self: flex-start;
  }

  .forecast-panel {
    padding: 16px;
  }

  .forecast-note {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    min-height: 80px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }
}

@media (max-width: 370px) {
  .brand-copy strong {
    max-width: 145px;
  }

  .topbar-meta {
    display: none;
  }

  .summary-band {
    grid-template-columns: 1fr;
  }

  .summary-item {
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .summary-item:last-child {
    border-bottom: 0;
  }
}

@media (pointer: coarse) {
  .nav-link,
  .segment,
  .legend-button,
  .source-details summary {
    min-height: 44px;
  }
}

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