.reserve-menu > span:last-child {
  font-size: 14px;
  line-height: 1.6;
}
.reserve-hero {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(115deg, var(--soft-blue), var(--panel));
  padding: 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.reserve-hero h1 {
  font-size: 36px;
  line-height: 1.4;
}
.reserve-hero p {
  color: var(--muted);
  line-height: 1.9;
}
.reserve-hero .eyebrow {
  color: var(--accent);
}
.reserve-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
}
.reserve-controls label {
  font-size: 14px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.reserve-controls input {
  max-width: 160px;
}
.reserve-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.reserve-kpis > div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.reserve-kpis span {
  font-size: 14px;
  color: var(--muted);
}
.reserve-kpis strong {
  display: block;
  font-size: 25px;
  margin: 10px 0;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.reserve-kpis small {
  font-size: 13px;
  color: var(--muted);
  display: block;
}
.reserve-reading p {
  line-height: 1.95;
}
.reserve-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.reserve-evidence-grid article {
  background: var(--soft);
  padding: 22px;
  border-radius: 12px;
}
.reserve-evidence-grid h3 {
  font-size: 16px;
  margin: 0 0 12px;
}
.reserve-evidence-grid p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.reserve-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0;
}
.reserve-filters label,
.reserve-inputs label {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reserve-filters input,
.reserve-filters select,
.reserve-inputs input {
  min-width: 0;
  max-width: 100%;
  padding: 10px;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.reserve-filters input {
  width: 220px;
}
.reserve-scatter svg {
  width: 100%;
  height: auto;
  max-height: 350px;
  background: var(--soft);
  border-radius: 12px;
}
.reserve-scatter svg text {
  fill: var(--muted);
  font-size: 14px;
}
.reserve-scatter .peer-dot {
  fill: var(--teal);
  opacity: 0.65;
  cursor: pointer;
}
.reserve-scatter .own-dot {
  fill: var(--accent);
  stroke: var(--panel);
  stroke-width: 3;
  cursor: pointer;
}
.reserve-scatter line {
  stroke: var(--line);
}
.reserve-scatter circle:focus {
  outline: 2px solid var(--accent);
}
#reserve-city-table td:first-child {
  white-space: normal;
  min-width: 150px;
  max-width: 230px;
}
#reserve-city-table td:last-child {
  white-space: normal;
  min-width: 150px;
  max-width: 230px;
  font-size: 13px;
}
.reserve-own td {
  background: var(--soft-blue);
  font-weight: 700;
}
.reserve-age-row {
  display: grid;
  grid-template-columns: 115px 1fr 100px;
  gap: 14px;
  align-items: center;
  margin: 18px 0;
  font-size: 14px;
}
.reserve-age-track {
  height: 12px;
  background: var(--soft);
  border-radius: 10px;
}
.reserve-age-track i {
  display: block;
  height: 100%;
  border-radius: 10px;
  background: var(--teal);
}
.reserve-history-chart {
  display: flex;
  height: 210px;
  gap: 7px;
  overflow-x: auto;
  align-items: stretch;
  padding: 20px 0 0;
}
.reserve-hbar {
  display: flex;
  flex: 0 0 40px;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  background: none;
  border: 0;
  padding: 0;
}
.reserve-hbar i {
  display: block;
  width: 22px;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
  min-height: 2px;
}
.reserve-hbar small {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  margin-top: 8px;
}
.reserve-hbar em {
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
  height: 18px;
}
.reserve-inputs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 22px 0;
}
.scenario-callout {
  background: var(--soft-blue);
  padding: 20px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.9;
}
.scenario-callout strong {
  color: var(--accent);
}
.resident-message {
  border-left: 3px solid var(--accent);
  padding: 12px 22px;
  background: var(--soft);
  font-size: 16px;
  line-height: 2;
}
.reserve-steps {
  padding-left: 22px;
  font-size: 15px;
}
.reserve-steps p {
  color: var(--muted);
  margin-top: 4px;
}
.reserve-report .source a {
  overflow-wrap: anywhere;
}
.reserve-widget .section-heading {
  flex-wrap: wrap;
}
.reserve-widget .section-heading h2 {
  font-size: 20px;
}
.reserve-widget .pill {
  font-size: 12px;
}
.reserve-widget-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.reserve-widget-stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.reserve-widget-stats strong {
  display: block;
  font-size: 20px;
  margin: 5px 0;
}
.reserve-widget-tools {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
}
.reserve-widget-tools select {
  font-size: 13px;
  max-width: 160px;
}
.reserve-widget-tools button {
  font-size: 13px;
}
.mini-reserve-chart {
  display: flex;
  gap: 4px;
  height: 95px;
  margin: 15px 0;
  align-items: stretch;
}
.mini-reserve-chart .reserve-hbar {
  flex: 1;
  min-width: 0;
}
.mini-reserve-chart .reserve-hbar i {
  width: 70%;
  max-width: 16px;
}
.mini-reserve-chart .reserve-hbar small {
  font-size: 12px;
}
.reserve-report-link {
  display: block;
  margin-top: 16px;
  color: var(--accent);
  font-size: 14px;
  text-decoration: none;
}
.reserve-widget .table-note {
  font-size: 13px;
}
.reserve-widget small.source-type {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 1200px) {
  .reserve-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .reserve-evidence-grid {
    grid-template-columns: 1fr;
  }
  .reserve-inputs {
    grid-template-columns: repeat(2, 1fr);
  }
  .reserve-hero {
    flex-direction: column;
  }
  .reserve-controls {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
@media (max-width: 760px) {
  .reserve-hero {
    padding: 21px;
  }
  .reserve-hero h1 {
    font-size: 27px;
  }
  .reserve-hero p {
    font-size: 14px;
  }
  .reserve-kpis {
    gap: 10px;
  }
  .reserve-kpis > div {
    padding: 16px;
  }
  .reserve-kpis strong {
    font-size: 21px;
  }
  .reserve-filters {
    gap: 10px;
  }
  .reserve-filters label {
    width: 100%;
  }
  .reserve-filters input {
    width: 100%;
  }
  .reserve-inputs {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .reserve-inputs label {
    font-size: 13px;
  }
  .reserve-inputs input {
    width: 100%;
    font-size: 14px;
  }
  .reserve-controls input {
    font-size: 14px;
  }
  .reserve-controls .pill {
    display: none;
  }
  .reserve-age-row {
    grid-template-columns: 85px 1fr 78px;
    font-size: 13px;
    gap: 8px;
  }
  .resident-message {
    padding: 12px;
    font-size: 14px;
  }
  .mobile-nav a {
    font-size: 13px;
    padding: 9px 4px;
  }
  .desktop-only {
    display: none;
  }
  .reserve-widget {
    grid-column: 1/-1;
  }
  .reserve-widget-stats strong {
    font-size: 20px;
  }
  .reserve-report .section-heading {
    flex-wrap: wrap;
  }
  .reserve-scatter {
    overflow-x: auto;
  }
  .reserve-scatter svg {
    min-width: 320px;
  }
}
@media print {
  .topbar,
  .sidebar,
  .mobile-nav,
  .skip-link,
  button,
  .profile-mobile,
  .reserve-filters,
  #reserve-status,
  footer {
    display: none !important;
  }
  main.reserve-report {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
  }
  .reserve-report {
    color: #000 !important;
    background: #fff !important;
  }
  .reserve-report .card,
  .reserve-hero {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
  .reserve-kpis strong {
    color: #222 !important;
  }
  .reserve-report details {
    display: block;
  }
  .table-wrap {
    overflow: visible;
  }
  .reserve-report table {
    font-size: 12px;
  }
  .reserve-report td,
  .reserve-report th {
    padding: 5px;
    white-space: normal;
  }
  .reserve-inputs input {
    border: 0;
  }
  .reserve-report a {
    color: #222;
  }
  #reserve-city-table td:first-child,
  #reserve-city-table td:last-child {
    min-width: 0;
    max-width: none;
  }
  .reserve-scatter svg {
    max-height: 230px;
  }
  .reserve-history-chart {
    height: 150px;
  }
  body {
    background: #fff;
    color: #000;
  }
}

@media print {
  :root {
    color-scheme: light;
    --bg: #fff;
    --panel: #fff;
    --soft: #f5f7fb;
    --soft-blue: #eef3ff;
    --ink: #17243b;
    --muted: #617188;
    --line: #ddd;
    --accent: #315efb;
    --teal: #299c9a;
  }
  .reserve-report .card {
    break-inside: auto;
  }
  .reserve-report h2,
  .reserve-report h3 {
    break-after: avoid;
  }
  .reserve-report tr {
    break-inside: avoid;
  }
}
#city-section > .table-wrap {
  max-height: 540px;
  overflow: auto;
}
#reserve-city-table {
  margin-top: 0;
}
#reserve-city-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}
#reserve-city-table th {
  background: var(--soft);
}
@media print {
  #city-section > .table-wrap {
    max-height: none;
    overflow: visible;
  }
  #reserve-city-table thead {
    position: static;
  }
}

#reserve-city-table .reserve-sort {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
  white-space: nowrap;
}
#reserve-city-table .reserve-sort:hover {
  color: var(--accent);
}
#reserve-city-table .reserve-sort:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
#reserve-city-table th[aria-sort='ascending'],
#reserve-city-table th[aria-sort='descending'] {
  color: var(--accent);
}
#reserve-city-table .reserve-sort span {
  font-size: 12px;
}
#city-sort-status {
  margin: 16px 0 8px;
}
@media print {
  #reserve-city-table .reserve-sort {
    display: inline-flex !important;
    min-height: 0;
    padding: 0;
  }
}
