#content.rf-page {
  --rf-paper: #fff;
  --rf-tint: #edf7f4;
  --rf-ink: #152739;
  --rf-muted: #496271;
  --rf-border: #cadbd9;
  --rf-link: #086d61;
  --rf-button: #0a7468;
  --rf-warn-bg: #fff4e3;
  --rf-warn: #803d14;
  --rf-error: #a12934;
  color: var(--rf-ink);
  background: var(--rf-paper);
  overflow-wrap: anywhere;
  word-break: keep-all;
}

@media (prefers-color-scheme: dark) {
  #content.rf-page {
    --rf-paper: #19252b;
    --rf-tint: #203636;
    --rf-ink: #f0f8f7;
    --rf-muted: #bfd0d6;
    --rf-border: #486162;
    --rf-link: #8be2cf;
    --rf-warn-bg: #3a3022;
    --rf-warn: #ffcf93;
    --rf-error: #ffb7bd;
    color-scheme: dark;
  }
}

#content.rf-page [hidden] { display: none !important; }
#content.rf-page :is(h1, h2, h3, label, legend, strong, summary, dt) { color: var(--rf-ink); }
#content.rf-page h1 { font-size: clamp(1.9rem, 4.4vw, 2.65rem); line-height: 1.2; margin: 0 0 .85rem; }
#content.rf-page h2 { font-size: clamp(1.24rem, 3vw, 1.5rem); font-weight: 750; line-height: 1.35; margin: 0 0 .8rem; }
#content.rf-page h3 { font-size: 1.02rem; line-height: 1.4; font-weight: 750; margin: .95rem 0 .45rem; }
#content.rf-page p { margin: 0 0 .85rem; line-height: 1.7; }
#content.rf-page .rf-heading p { padding: 0; color: var(--rf-muted); font-size: 1.04rem; }
#content.rf-page .rf-heading .rf-eyebrow {
  margin: 0 0 .7rem;
  color: var(--rf-link);
  font-size: .85rem;
  font-weight: 750;
}
#content.rf-page a { color: var(--rf-link); text-underline-offset: .18em; }
#content.rf-page .rf-muted { color: var(--rf-muted); font-size: .85rem; }
#content.rf-page .rf-panel { margin: 1.3rem 0; padding: clamp(.8rem, 3vw, 1.55rem); border: 1px solid var(--rf-border); border-radius: 14px; }
#content.rf-page .rf-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1.25rem; }
#content.rf-page .rf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem .9rem; margin: .8rem 0; }
#content.rf-page label { display: block; min-width: 0; font-size: .88rem; font-weight: 650; line-height: 1.45; }
body.rf-body.modern-subpage #content.rf-page :is(input, select, textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: .35rem 0 0;
  padding: .55rem .65rem;
  border: 1px solid var(--rf-border);
  border-radius: 8px;
  background: var(--rf-paper);
  color: var(--rf-ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: none;
}
body.rf-body.modern-subpage #content.rf-page select { appearance: auto; }
#content.rf-page .rf-check { display: flex; align-items: center; min-height: 44px; gap: .65rem; }
body.rf-body.modern-subpage #content.rf-page input[type="checkbox"] {
  appearance: auto;
  position: static;
  opacity: 1;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  flex: none;
  accent-color: var(--rf-button);
}
#content.rf-page :is(input, select, textarea, summary, button, a):focus-visible { outline: 3px solid #ce951b; outline-offset: 3px; }
#content.rf-page :is(button, .rf-actions > a) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: auto;
  height: auto;
  padding: .55rem .78rem;
  border: 1px solid var(--rf-button);
  border-radius: 8px;
  color: #fff;
  background: var(--rf-button);
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: normal;
  white-space: normal;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
}
#content.rf-page :is(button.rf-secondary, .rf-actions > a, [role="tab"][aria-selected="false"]) { color: var(--rf-ink); background: var(--rf-paper); border-color: var(--rf-border); }
#content.rf-page button:hover { filter: brightness(.93); }
#content.rf-page button:disabled { opacity: .5; cursor: not-allowed; }
#content.rf-page .rf-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin: .85rem 0; }
#content.rf-page .rf-storage { border-top: 1px solid var(--rf-border); padding-top: .85rem; }
#content.rf-page :is(.rf-details, .rf-item, .rf-allocation) { padding: .65rem .8rem; margin: .8rem 0; border: 1px solid var(--rf-border); border-radius: 9px; }
#content.rf-page .rf-item { min-width: 0; }
#content.rf-page .rf-item legend { font-weight: 750; padding: 0 .4rem; }
#content.rf-page .rf-details summary { min-height: 44px; padding: .52rem 0; cursor: pointer; font-weight: 750; line-height: 1.45; }
#content.rf-page .rf-details[open] summary { margin-bottom: .45rem; }
#content.rf-page #rf-result { scroll-margin-top: 85px; }
#content.rf-page .rf-result-hero { border-radius: 12px; padding: 1rem 1.2rem; background: var(--rf-tint); border-left: 4px solid var(--rf-link); }
#content.rf-page .rf-result-hero:is([data-status="review"], [data-status="eligibility"], [data-status="error"]) { border-left-color: var(--rf-warn); }
#content.rf-page .rf-result-hero p { margin: 0 0 .28rem; }
#content.rf-page #rf-status { color: var(--rf-muted); font-size: .87rem; font-weight: 700; }
#content.rf-page #rf-cash { color: var(--rf-link); font-size: clamp(1.7rem, 5vw, 2.85rem); font-weight: 850; line-height: 1.25; font-variant-numeric: tabular-nums; }
#content.rf-page .rf-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: .8rem 0; }
#content.rf-page .rf-metrics > div { border: 1px solid var(--rf-border); border-radius: 8px; padding: .65rem .75rem; }
#content.rf-page .rf-metrics dt { font-size: .83rem; color: var(--rf-muted); }
#content.rf-page .rf-metrics dd { margin: .25rem 0 0; font-weight: 750; }
#content.rf-page .rf-breakdown { margin: 0; font-size: .87rem; }
#content.rf-page .rf-breakdown > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: .55rem; padding: .55rem 0; border-bottom: 1px solid var(--rf-border); }
#content.rf-page .rf-breakdown dd { margin: 0; text-align: right; font-weight: 650; }
#content.rf-page .rf-alert { margin: .8rem 0; padding: .75rem; color: var(--rf-warn); background: var(--rf-warn-bg); border-radius: 8px; font-size: .87rem; }
#content.rf-page ul.rf-alert { padding-left: 1.75rem; }
#content.rf-page #rf-error { color: var(--rf-error); }
#content.rf-page .rf-guide > section { margin-bottom: 1.45rem; padding-bottom: .6rem; border-bottom: 1px solid var(--rf-border); }
#content.rf-page .rf-guide > section:last-child { margin-bottom: 0; border: 0; }
#content.rf-page .rf-guide li { margin-bottom: .45rem; }
#content.rf-page :is(#rf-storage-status, #rf-action):empty { display: none; }
#content.rf-page .rf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#content.rf-page > [data-site-title-ad] { margin-bottom: 1.25rem; }

@media (max-width: 760px) {
  .rf-body #sidebar .modern-sidebar-toggle { position: static; }
}

@media (max-width: 520px) {
  #content.rf-page .rf-grid { grid-template-columns: 1fr; }
  #content.rf-page .rf-tabs { gap: .35rem; }
  #content.rf-page .rf-tabs button { padding: .5rem .3rem; font-size: .78rem; }
}
@media (max-width: 380px) {
  #content.rf-page .rf-metrics { grid-template-columns: 1fr; }
}
