/* A working financial dashboard: current position in the rail, decisions in the canvas. */
body[data-screen="overview"] .royal-main {
  max-width: 1500px;
  padding: 26px 32px 0;
}
body[data-screen="overview"] .premium-heading {
  margin-bottom: 22px;
  align-items: center;
}
body[data-screen="overview"] .premium-heading h1 {
  font-size: 2.4rem;
  line-height: 1.12;
  margin: 5px 0 8px;
}
body[data-screen="overview"] .premium-heading h1 br {
  display: none;
}
body[data-screen="overview"] .premium-heading .eyebrow {
  font-size: 0.875rem;
}
body[data-screen="overview"] .premium-subtitle {
  font-size: 0.875rem;
}
.dashboard-stage {
  display: grid;
  grid-template-columns: minmax(280px, 0.77fr) minmax(0, 1.65fr);
  gap: 22px;
  align-items: start;
}
.dashboard-stage > * {
  min-width: 0;
}
.dashboard-stage .home-quick-start {
  padding: 22px;
  margin: 0;
  box-shadow: var(--panel-shadow);
}
.home-start-heading {
  display: block;
}
.home-start-heading h2 {
  font-size: 1.45rem;
  margin: 4px 0 8px;
}
.home-start-heading p:not(.eyebrow) {
  font-size: 0.875rem;
}
.home-quick-fields {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.home-quick-fields > label {
  font-size: 0.875rem;
}
.home-quick-fields small {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 6px;
}
.premium-body .home-money-input input {
  font-size: 1.4rem;
  padding: 11px 12px;
}
.home-assumptions {
  margin-top: 22px;
  padding-top: 18px;
}
.home-assumptions h3 {
  font:
    600 0.875rem/1.5 ui-sans-serif,
    system-ui,
    sans-serif;
  margin: 0 0 12px;
  color: var(--text);
}
.home-assumption-fields {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px 10px;
}
.home-assumption-fields .assumption-field:nth-child(-n + 3) { grid-column: span 2; }
.home-assumption-fields .assumption-field:nth-child(n + 4) { grid-column: span 3; }
.home-assumption-fields label {
  font-size: 0.875rem;
  line-height: 1.5;
}
.home-assumption-fields input {
  font-size: 0.92rem !important;
  padding: 8px !important;
  margin-top: 5px;
  min-height: 40px;
}
.home-assumptions .hint {
  font-size: 0.875rem;
  margin: 12px 0;
}
.home-start-links {
  margin-top: 14px;
  gap: 10px;
}
.home-start-links a,
.home-start-links button {
  font-size: 0.875rem !important;
  max-width: none;
  text-align: left;
}
.home-start-state {
  font-size: 0.875rem;
  margin: 14px 0 0;
  line-height: 1.55;
}
.dashboard-outlook {
  min-width: 0;
}
#retirement-projection {
  margin: 0 !important;
}
.retirement-dashboard-panel,
.projection-welcome {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 25px 26px;
  box-shadow: var(--panel-shadow);
}
.projection-lead {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
}
.projection-lead .eyebrow {
  font-size: 0.875rem;
  margin: 0 0 9px;
}
.outlook-label {
  font-size: 0.875rem;
  margin: 0;
  color: var(--muted);
}
#outlook-age {
  font:
    400 clamp(1.65rem, 2.7vw, 2.7rem) / 1.15 Georgia,
    serif;
  letter-spacing: -0.04em;
  margin: 6px 0 10px;
}
.scenario-tag {
  font-size: 0.875rem;
  color: var(--gold-dark);
  border: 1px solid var(--line);
  padding: 5px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.retirement-dashboard-panel .outcome {
  font-size: 0.875rem;
  line-height: 1.65;
  border: 0;
  background: none;
  padding: 0;
  margin: 0 0 22px;
  color: var(--muted);
}
.retirement-dashboard-panel .metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 10px 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.retirement-dashboard-panel .metric {
  border: 0;
  border-radius: 0;
  padding: 13px 15px;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.retirement-dashboard-panel .metric:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.retirement-dashboard-panel .metric:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.retirement-dashboard-panel .metric.emphasis {
  color: var(--text);
  background: var(--soft);
}
.retirement-dashboard-panel .metric-label {
  font-size: 0.875rem;
  margin-bottom: 6px;
  color: var(--muted);
}
.retirement-dashboard-panel .metric strong {
  font-size: 1.35rem;
  font-weight: 550;
  margin: 0;
  line-height: 1.3;
}
.retirement-dashboard-panel .metric small {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 4px;
}
.retirement-chart-card {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.retirement-chart-card .card-heading {
  gap: 12px;
  align-items: start;
  flex-wrap: wrap;
}
.retirement-chart-card h3 {
  font:
    550 0.875rem/1.5 ui-sans-serif,
    system-ui,
    sans-serif;
  margin: 0;
}
.retirement-chart-card .toggle {
  display: flex;
  gap: 4px;
}
.retirement-chart-card .toggle button {
  font-size: 0.875rem;
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 5px;
}
.chart-legend {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--muted);
  align-items: center;
  margin: 14px 0 4px;
}
.chart-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.chart-legend span:last-child {
  margin-left: auto;
}
.chart-legend i {
  display: inline-block;
  width: 15px;
  height: 3px;
  border-radius: 2px;
}
.key-before {
  background: var(--chart-before);
}
.key-after {
  background: var(--chart-after);
}
#chart {
  min-width: 0;
  color: var(--chart-before);
  border-radius: 5px;
}
#chart:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}
#chart svg {
  width: 100%;
  height: 17rem;
  overflow: visible;
  display: block;
}
.funding-grid {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}
.funding-tick {
  fill: var(--muted);
  font:
    400 0.875rem ui-sans-serif,
    system-ui,
    sans-serif;
}
.funding-area {
  fill: url(#funding-fill);
}
.funding-before,
.funding-after {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.funding-before {
  stroke: var(--chart-before);
}
.funding-after {
  stroke: var(--chart-after);
}
.funding-retirement-zone {
  fill: var(--chart-zone);
  opacity: 0.3;
}
.funding-retirement-marker {
  stroke: var(--chart-after);
  stroke-width: 1;
  stroke-dasharray: 4 5;
}
.funding-retirement-label {
  fill: var(--gold-dark);
  font:
    600 0.875rem ui-sans-serif,
    system-ui,
    sans-serif;
}
.funding-gap-marker {
  stroke: var(--chart-gap);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}
.funding-gap-label {
  fill: var(--warning);
  font:
    500 0.875rem ui-sans-serif,
    system-ui,
    sans-serif;
}
.funding-retirement-dot {
  fill: var(--chart-after);
  stroke: var(--surface);
  stroke-width: 2;
}
.funding-inspect {
  stroke: var(--text);
  stroke-width: 0.8;
  opacity: 0.3;
}
.funding-inspect-dot {
  fill: var(--text);
  stroke: var(--surface);
  stroke-width: 2;
}
.chart-inspection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  background: var(--soft);
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
}
.chart-inspection > div {
  display: grid;
  gap: 2px;
}
.chart-inspection span {
  font-size: 0.875rem;
  color: var(--muted);
}
.chart-inspection > strong {
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 550;
}
.chart-instruction {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 8px 0 0;
}
.retirement-chart-card #chart-note {
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 14px 0 0;
}
.projection-welcome {
  min-height: 590px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse at 80% 20%, var(--welcome-glow), transparent 70%),
    var(--surface);
}
.projection-welcome h2 {
  font:
    400 2.8rem/1.12 Georgia,
    serif;
  letter-spacing: -0.045em;
  margin: 14px 0 20px;
}
.projection-welcome > p:not(.eyebrow) {
  max-width: 420px;
  font-size: 0.9rem;
  color: var(--muted);
}
.welcome-timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin: 35px 0 18px;
  gap: 16px;
}
.welcome-timeline > div {
  display: grid;
  min-width: 0;
  gap: 8px;
}
.welcome-timeline span {
  font-size: 0.875rem;
  color: var(--muted);
}
.welcome-timeline strong {
  font:
    400 2.4rem Georgia,
    serif;
}
.projection-welcome .welcome-footnote {
  font-size: 0.875rem !important;
  margin-top: 30px;
}
#dashboard-records {
  margin: 28px 0 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.record-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  overflow-x: auto;
}
.record-tabs button {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.875rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 40px;
}
.record-tabs button[aria-selected="true"] {
  background: var(--soft);
  color: var(--text);
  font-weight: 600;
}
.dashboard-record-panel {
  padding: 24px;
  min-width: 0;
}
.dashboard-record-panel > h3 {
  font:
    400 1.6rem Georgia,
    serif;
  margin: 0 0 12px;
}
.dashboard-record-panel .hint {
  font-size: 0.875rem;
}
.dashboard-record-panel .table-scroll {
  margin-top: 18px;
}
.dashboard-record-panel table {
  font-size: 0.875rem;
}
.dashboard-income-components {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
}
.dashboard-income-components h3,
.stock-position-records h3 {
  font-size: 1rem;
  font-weight: 550;
}
.dashboard-income-group + .dashboard-income-group {
  margin-top: 24px;
}
.income-group-heading {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.income-group-heading h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.income-group-heading > strong {
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.income-group-heading small {
  display: block;
  font-size: .875rem;
  font-weight: 400;
  color: var(--muted);
}
.stock-position-records {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
#dashboard-records .methodology {
  border: 0;
  border-radius: 0;
  max-width: none;
  margin: 0;
}
#dashboard-records .methodology > h2 {
  font:
    400 1.6rem Georgia,
    serif;
}
.dashboard-record-panel.methodology p {
  font-size: 0.875rem;
  line-height: 1.8;
}
.royal-sidebar {
  width: 244px;
  padding: 25px 18px 18px;
  overflow-y: auto;
}
.royal-shell {
  margin-left: 244px;
}
.royal-brand {
  padding: 0 4px 24px;
  font-size: 1.24rem;
}
.rail-overview {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 0.875rem;
}
.rail-summary {
  padding: 0 12px 18px;
  border-bottom: 1px solid var(--nav-line);
}
.rail-summary > p {
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  color: var(--nav-muted);
  margin: 0 0 7px;
}
.rail-summary > strong {
  font:
    400 1.85rem/1.2 Georgia,
    serif;
  letter-spacing: -0.03em;
  color: var(--nav-text);
  display: block;
}
.rail-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.875rem;
  margin-top: 11px;
  color: var(--nav-muted);
}
.rail-summary > small {
  font-size: 0.875rem;
  color: var(--nav-muted);
  display: block;
  margin-top: 8px;
  line-height: 1.5;
}
.royal-sidebar .nav-caption {
  padding: 16px 12px 7px;
  color: var(--nav-muted);
  font-size: 0.875rem;
}
.rail-asset {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  margin: 0;
  min-height: 45px;
}
.rail-asset-label {
  font-size: 0.875rem;
  min-width: 0;
}
.rail-asset-label small {
  display: block;
  font-size: 0.875rem;
  color: var(--nav-muted);
  line-height: 1.5;
  margin-top: 2px;
}
.rail-asset > strong {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nav-text);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.rail-cashflow {
  margin: 12px 12px 0;
  padding-top: 2px;
  border-top: 1px solid var(--nav-line);
}
.rail-cashflow .nav-caption {
  padding: 15px 0 10px;
}
.rail-cashflow > a,
.rail-monthly-gap {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--nav-text);
  font-size: 0.875rem;
  padding: 7px 0;
  text-decoration: none;
}
.rail-cashflow strong {
  font-weight: 500;
  white-space: nowrap;
}
.rail-cashflow small {
  display: block;
  color: var(--nav-muted);
  font-size: 0.875rem;
}
.rail-monthly-gap {
  font-size: 0.875rem;
  color: var(--nav-accent);
  border-top: 1px solid var(--nav-line);
  margin-top: 6px;
  padding-top: 10px;
}
.rail-cashflow > a:last-child {
  font-size: 0.875rem;
  margin-top: 9px;
}
.nav-bottom {
  margin: 18px 12px 0;
  padding-top: 14px;
  gap: 10px;
}
.nav-bottom a,
.nav-bottom button {
  font-size: 0.875rem;
}
.dashboard-record-panel .income-component {
  font-size: 0.875rem;
}
.royal-footer {
  margin-top: 30px;
}
.home-assumption-fields input[type="number"] {
  appearance: textfield;
}
.home-assumption-fields input::-webkit-inner-spin-button,
.home-money-input input::-webkit-inner-spin-button {
  appearance: none;
}
body[data-screen="overview"] .asset-entry {
  min-height: 85px;
}
.dashboard-stage .home-assumptions {
  border-top: 1px solid var(--line);
}
@media (max-width: 1200px) {
  .dashboard-stage {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.3fr);
    gap: 16px;
  }
  body[data-screen="overview"] .royal-main {
    padding: 24px 22px 0;
  }
  .retirement-dashboard-panel {
    padding: 22px;
  }
  .scenario-tag {
    display: none;
  }
  .retirement-chart-card .card-heading {
    display: block;
  }
  .retirement-chart-card .toggle {
    margin-top: 12px;
  }
  .home-start-links {
    display: grid;
    gap: 3px;
  }
}
@media (max-width: 1050px) {
  .dashboard-stage {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-quick-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-assumption-fields { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .home-start-links {
    display: flex;
  }
  .projection-welcome {
    min-height: 350px;
  }
}
@media (max-width: 800px) {
  .royal-sidebar {
    position: relative;
    width: auto;
    padding: 17px 22px;
    overflow: visible;
  }
  .royal-brand {
    padding: 0;
  }
  .royal-shell {
    margin: 0;
  }
  .royal-sidebar nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    margin-top: 20px;
  }
  .royal-sidebar[data-open="true"] nav {
    display: block;
  }
  .royal-sidebar .rail-summary {
    margin-top: 10px;
  }
  .rail-asset-label {
    font-size: 0.9rem;
  }
  .rail-asset > strong {
    font-size: 0.9rem;
  }
  .rail-asset-label small {
    font-size: 0.875rem;
  }
  .rail-summary > small {
    font-size: 0.875rem;
  }
  .rail-cashflow > a,
  .rail-monthly-gap {
    font-size: 0.875rem;
  }
  .rail-cashflow small {
    font-size: 0.875rem;
  }
  .mobile-menu {
    display: block;
  }
  body[data-screen="overview"] .premium-heading h1 {
    font-size: 2rem;
  }
  .home-assumption-fields { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .home-quick-fields small {
    font-size: 0.875rem;
  }
  .home-assumptions .hint {
    font-size: 0.875rem;
  }
  .home-start-state {
    font-size: 0.875rem;
  }
}
@media (max-width: 540px) {
  body[data-screen="overview"] .royal-main {
    padding: 20px 16px 0;
  }
  body[data-screen="overview"] .premium-heading {
    margin-bottom: 18px;
  }
  .home-quick-fields {
    grid-template-columns: 1fr;
  }
  .home-assumption-fields { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dashboard-stage .home-quick-start {
    padding: 20px;
  }
  .retirement-dashboard-panel {
    padding: 20px 16px;
  }
  .retirement-dashboard-panel .metric {
    padding: 12px;
  }
  .retirement-dashboard-panel .metric strong {
    font-size: 1.15rem;
  }
  .retirement-dashboard-panel .metric-label {
    font-size: 0.875rem;
  }
  .retirement-dashboard-panel .metric small {
    font-size: 0.875rem;
  }
  #outlook-age {
    font-size: 2.1rem;
  }
  .record-tabs {
    padding: 8px;
  }
  .record-tabs button {
    font-size: 0.875rem;
  }
  .dashboard-record-panel {
    padding: 20px 16px;
  }
  .dashboard-record-panel > h3 {
    font-size: 1.4rem;
  }
  .chart-legend {
    gap: 10px;
    font-size: 0.875rem;
  }
  .chart-legend span:last-child {
    flex-basis: 100%;
    margin: 0;
  }
  #chart svg {
    height: 17rem;
  }
  .chart-inspection {
    flex-wrap: wrap;
    padding: 11px 12px;
  }
  .chart-inspection > strong {
    font-size: 1rem;
  }
  .chart-instruction {
    font-size: 0.875rem;
  }
  .home-start-links a,
  .home-start-links button {
    font-size: 0.875rem !important;
  }
  .projection-welcome {
    padding: 25px;
    min-height: 350px;
  }
  .projection-welcome h2 {
    font-size: 2.2rem;
  }
  .retirement-chart-card #chart-note {
    font-size: 0.875rem;
  }
}
:root[data-size="150"] .dashboard-stage,
:root[data-size="175"] .dashboard-stage,
:root[data-size="200"] .dashboard-stage {
  grid-template-columns: minmax(0, 1fr);
}
:root[data-size="150"] .home-assumption-fields,
:root[data-size="175"] .home-assumption-fields,
:root[data-size="200"] .home-assumption-fields { grid-template-columns: repeat(6, minmax(0, 1fr)); }
:root[data-size="200"] .retirement-dashboard-panel .metrics {
  grid-template-columns: minmax(0, 1fr);
}
:root[data-size="200"] .retirement-dashboard-panel .metric {
  border-right: 0;
  border-bottom: 1px solid var(--line);
}
:root[data-size="200"] .retirement-dashboard-panel .metric:last-child {
  border-bottom: 0;
}
.dashboard-controls {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.dashboard-assumptions {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 20px 22px;
  margin: 0;
}
.dashboard-assumptions .hint {
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 12px 0;
}
.dashboard-controls .home-start-state {
  margin-top: 10px;
}
.dashboard-controls .home-start-links {
  margin-top: 14px;
}
.rail-asset-label small {
  font-size: 0.875rem;
}
.rail-asset-label {
  font-size: 0.875rem;
}
.rail-asset > strong {
  font-size: 0.875rem;
}
.rail-summary > small {
  font-size: 0.875rem;
}
.rail-cashflow small {
  font-size: 0.875rem;
}
.rail-cashflow > a:last-child > span:last-child,
.rail-overview > span {
  font-family: Georgia, serif;
}
.projection-welcome .welcome-timeline strong {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 1050px) {
  .dashboard-controls {
    display: contents;
  }
  .dashboard-stage > .dashboard-controls > #home-quick-start {
    order: 1;
  }
  .dashboard-stage > .dashboard-outlook {
    order: 2;
  }
  .dashboard-stage > .dashboard-assumptions,
  .dashboard-stage > .dashboard-controls > .dashboard-assumptions {
    order: 3;
  }
  .dashboard-stage {
    display: flex;
    flex-direction: column;
  }
  .dashboard-stage > *,
  .dashboard-stage > .dashboard-controls > * {
    width: 100%;
  }
  .dashboard-stage .dashboard-controls {
    display: contents;
  }
  .dashboard-assumptions {
    margin: 0;
  }
  .dashboard-controls .home-quick-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .dashboard-controls .home-quick-fields {
    grid-template-columns: 1fr;
  }
  .dashboard-assumptions {
    padding: 20px;
  }
  .dashboard-assumptions .hint {
    font-size: 0.875rem;
  }
  .rail-asset-label,
  .rail-asset > strong {
    font-size: 0.9rem;
  }
  .rail-asset-label small {
    font-size: 0.875rem;
  }
}
:root[data-size="150"] .dashboard-controls,
:root[data-size="175"] .dashboard-controls,
:root[data-size="200"] .dashboard-controls {
  display: contents;
}
:root[data-size="150"] .dashboard-stage,
:root[data-size="175"] .dashboard-stage,
:root[data-size="200"] .dashboard-stage {
  display: flex;
  flex-direction: column;
}
:root[data-size="150"] .dashboard-stage > *,
:root[data-size="175"] .dashboard-stage > *,
:root[data-size="200"] .dashboard-stage > *,
:root[data-size="150"] .dashboard-controls > *,
:root[data-size="175"] .dashboard-controls > *,
:root[data-size="200"] .dashboard-controls > * {
  width: 100%;
}
:root[data-size="150"] #home-quick-start,
:root[data-size="175"] #home-quick-start,
:root[data-size="200"] #home-quick-start {
  order: 1;
}
:root[data-size="150"] .dashboard-outlook,
:root[data-size="175"] .dashboard-outlook,
:root[data-size="200"] .dashboard-outlook {
  order: 2;
}
:root[data-size="150"] .dashboard-assumptions,
:root[data-size="175"] .dashboard-assumptions,
:root[data-size="200"] .dashboard-assumptions {
  order: 3;
}
:root[data-size="150"] .royal-sidebar,
:root[data-size="175"] .royal-sidebar,
:root[data-size="200"] .royal-sidebar {
  position: relative;
  width: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
}
:root[data-size="150"] .royal-sidebar nav,
:root[data-size="175"] .royal-sidebar nav,
:root[data-size="200"] .royal-sidebar nav {
  display: none;
  flex-basis: 100%;
  width: 100%;
  margin-top: 18px;
}
:root[data-size="150"] .royal-sidebar[data-open="true"] nav,
:root[data-size="175"] .royal-sidebar[data-open="true"] nav,
:root[data-size="200"] .royal-sidebar[data-open="true"] nav {
  display: block;
}
:root[data-size="150"] .mobile-menu,
:root[data-size="175"] .mobile-menu,
:root[data-size="200"] .mobile-menu {
  display: block;
}
:root[data-size="150"] .royal-shell,
:root[data-size="175"] .royal-shell,
:root[data-size="200"] .royal-shell {
  margin-left: 0;
}
:root[data-size="150"] .royal-brand,
:root[data-size="175"] .royal-brand,
:root[data-size="200"] .royal-brand {
  padding-bottom: 0;
  max-width: 100%;
}
.royal-sidebar nav[aria-label] {
  min-width: 0;
}
.rail-asset > strong {
  max-width: 55%;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: right;
}
.rail-cashflow strong {
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: right;
  flex-shrink: 0;
  max-width: 48%;
}

.mobile-menu small {
  display: block;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 2px;
  max-width: 110px;
  overflow-wrap: anywhere;
}

@media (max-width: 540px) {
  body[data-screen="overview"] .heading-aside {
    display: block;
    margin-top: 12px;
  }
  body[data-screen="overview"] .heading-aside > p {
    max-width: none;
  }
  body[data-screen="overview"] .heading-aside > button {
    display: none;
  }
  .home-start-heading .eyebrow,
  #home-quick-start[data-has-projection="true"] .home-start-state {
    display: none;
  }
  .dashboard-controls .home-start-links {
    align-items: center;
  }
  .retirement-dashboard-panel .metrics {
    margin-top: 22px;
    margin-bottom: 16px;
  }
  .retirement-dashboard-panel .outcome {
    margin-bottom: 0;
  }
  .retirement-chart-card {
    border-top: 0;
    padding-top: 12px;
  }
}

/* Reflow without turning five small fields into a cramped six-column grid. */
:root:is([data-size="150"],[data-size="175"],[data-size="200"]) .home-assumption-fields {
  grid-template-columns:repeat(2,minmax(0,1fr));
}
:root:is([data-size="150"],[data-size="175"],[data-size="200"]) .home-assumption-fields .assumption-field {
  grid-column:auto;
}
@media(max-width:540px) {
  .home-assumption-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .home-assumption-fields .assumption-field:nth-child(n) { grid-column:auto; }
  .home-assumption-fields .assumption-field:last-child { grid-column:1/-1; }
}
@media(max-width:420px) {
  :root:not([data-size="100"]) .home-assumption-fields { grid-template-columns:minmax(0,1fr); }
  :root:not([data-size="100"]) .home-assumption-fields .assumption-field:nth-child(n) { grid-column:1/-1; }
}
