.roi-page-scope {
  .portal-hero-actions .portal-secondary-action {
    padding: 13px 18px;
    border: 1px solid var(--forest);
    border-radius: 12px;
  }
  .roi-calculator {
    margin: 0;
    padding: clamp(30px, 4vw, 48px);
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: var(--pa-radius-card, 20px);
    background: var(--pa-surface, var(--surface));
    color: var(--forest);
    font-family: var(--pa-font-ui, Inter, ui-sans-serif, -apple-system, "Segoe UI", sans-serif);
  }
  
  .roi-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
    gap: 52px;
    align-items: end;
  }
  
  .roi-heading h2 {
    margin: 10px 0 0;
    font-size: clamp(38px, 4.5vw, 58px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.05em;
  }
  
  .roi-heading-copy > p {
    margin: 0;
    color: var(--muted);
    font-family: Georgia, serif;
    font-size: 17px;
    line-height: 1.6;
  }
  .roi-heading-copy > small {
    display: block;
    margin-top: 14px;
    padding: 12px 14px;
    border-top: 2px solid var(--pa-editorial-accent, var(--coral));
    border-radius: 0 0 10px 10px;
    background: var(--pa-surface-warm, #f0e8df);
    color: var(--muted);
    font-family: var(--pa-font-reading, Georgia, serif);
    font-size: 13px;
    line-height: 1.5;
  }
  
  .roi-summary { display: grid; gap: 0; }
  
  .roi-summary > div {
    min-width: 0;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }
  
  .roi-summary > div:first-child { padding-top: 0; }
  .roi-summary > div:last-child { border-bottom: 0; }
  .roi-summary span,
  .roi-field-label > label,
  .roi-final span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  
  .roi-summary strong {
    display: block;
    margin-top: 7px;
    font-size: 29px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
  }
  
  .roi-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 38px;
    align-items: start;
    padding-top: 34px;
  }
  
  .roi-form { min-width: 0; }
  .roi-form-section { border-bottom: 1px solid var(--line); }
  .roi-form-section:last-child { border-bottom: 0; }
  .roi-form-section > header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 0;
  }
  .roi-form-section > header span { font-size: 21px; }
  .roi-form-section > header small { align-self: center; color: var(--muted); font-size: 11px; }
  .roi-details { padding: 0 0 28px; }
  .roi-form-section:last-child .roi-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 36px; }
  .roi-form-section:last-child:has(.roi-management) .roi-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .roi-form-section:last-child:has(.roi-management) .roi-field-label { min-height: 44px; align-items: flex-end; }
  .roi-fields:has(> .roi-field:nth-child(3)) > .roi-field .roi-field-label { min-height: 44px; align-items: flex-end; }
  .roi-price-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; padding: 0; border: 0; }
  .roi-price-choice legend { grid-column: 1 / -1; margin-bottom: 10px; padding: 0; font-size: 13px; font-weight: 750; }
  .roi-price-choice > label { display: grid; min-height: 70px; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 9px; padding: 14px 15px; border: 1px solid var(--pa-line, var(--line)); border-radius: var(--pa-radius-control, 16px); background: var(--pa-surface, #fbf8f1); cursor: pointer; }
  .roi-price-choice > label:has(input:checked) { border-color: var(--forest); box-shadow: inset 0 -3px 0 var(--pa-editorial-accent, var(--coral)); background: var(--pa-surface-warm, #f0e8df); }
  .roi-price-choice input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--coral); }
  .roi-price-choice b { display: block; font-size: 13px; }
  .roi-price-choice small { display: block; margin-top: 5px; color: var(--muted); font-family: Georgia, serif; line-height: 1.35; }
  .roi-choice-heading { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
  .roi-choice-heading > b { font-size: 13px; }
  .roi-rental-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 26px; }
  .roi-rental-choice button { min-height: 88px; padding: 14px 15px; border: 1px solid var(--pa-line, var(--line)); border-radius: var(--pa-radius-control, 16px); color: var(--forest); background: var(--pa-surface, #fbf8f1); text-align: left; cursor: pointer; }
  .roi-rental-choice button.active { border-color: var(--forest); box-shadow: inset 0 -3px 0 var(--pa-editorial-accent, var(--coral)); background: var(--pa-surface-warm, #f0e8df); }
  .roi-rental-choice strong { display: block; font-size: 13px; }
  .roi-rental-choice small { display: block; margin-top: 5px; color: var(--muted); font-family: Georgia, serif; line-height: 1.35; }
  .roi-month-note { margin: -4px 0 14px; color: var(--muted); font-family: Georgia, serif; font-size: 11px; }
  .roi-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .roi-fields-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .roi-field { min-width: 0; }
  .roi-field-label { display: flex; min-height: 22px; align-items: center; gap: 7px; }
  .roi-help { position: relative; flex: 0 0 auto; }
  .roi-help-trigger { display: grid; width: 22px; height: 22px; margin: 0; padding: 0; place-items: center; border: 1px solid #a8b1a8; border-radius: 50%; color: var(--muted); background: #fffdf8; font-size: 10px; font-weight: 750; line-height: 1; text-align: center; cursor: pointer; touch-action: manipulation; }
  .roi-help-trigger:focus { outline: 0; }
  .roi-help-trigger:focus-visible { border-color: var(--coral); box-shadow: 0 0 0 2px rgb(241 111 83 / 20%); }
  .roi-help:not(.open) > .roi-help-backdrop,
  .roi-help:not(.open) > .roi-help-popover { display: none; }
  .roi-help-backdrop { position: fixed; z-index: 59; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgb(14 67 55 / 5%); cursor: default; }
  .roi-help-popover { position: fixed; z-index: 60; right: 24px; bottom: 24px; width: min(360px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); overflow: auto; padding: 46px 18px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--forest); background: #fffdf8; box-shadow: 0 16px 45px rgb(14 67 55 / 22%); font-family: Georgia, serif; font-size: 13px; font-weight: 400; line-height: 1.55; text-transform: none; }
  .roi-help-close { position: absolute; top: 11px; right: 12px; min-height: 30px; padding: 5px 7px; border: 0; color: var(--muted); background: transparent; font-family: Inter, ui-sans-serif, -apple-system, "Segoe UI", sans-serif; font-size: 11px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
  .roi-help-close b { margin-left: 3px; color: var(--coral); font-size: 16px; line-height: 10px; }
  .roi-input { position: relative; display: block; }
  .roi-field input,
  .roi-field select {
    width: 100%;
    height: 48px;
    padding: 0 42px 0 12px;
    border: 1px solid #aab4aa;
    border-radius: var(--pa-radius-control, 16px);
    outline: 0;
    color: var(--forest);
    background: var(--pa-surface, #fbf8f1);
    font-size: 17px;
  }
  .roi-field select { padding-right: 32px; font-size: 15px; }
  .roi-field > em { display: block; min-height: 30px; margin-top: 7px; color: var(--muted); font-family: Georgia, serif; font-size: 10px; font-style: normal; line-height: 1.4; }
  .roi-field input:focus-visible,
  .roi-field select:focus-visible {
    border-color: var(--coral);
    box-shadow: 0 0 0 2px rgb(241 111 83 / 18%);
  }
  .roi-input small { position: absolute; right: 12px; top: 17px; color: var(--muted); }
  .roi-percent-input small { transition: color .16s ease, background-color .16s ease; }
  .roi-percent-input:hover small,
  .roi-percent-input:focus-within small {
    top: 14px;
    right: 9px;
    padding: 3px 6px;
    border-radius: 6px;
    color: #fff;
    background: var(--coral);
  }
  .roi-investment-total {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-top: 24px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 2px solid var(--forest);
  }
  .roi-investment-total span { display: block; font-size: 13px; font-weight: 750; }
  .roi-investment-total small { display: block; margin-top: 5px; color: var(--muted); font-family: Georgia, serif; }
  .roi-investment-total strong { flex: 0 0 auto; font-size: 27px; font-weight: 400; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
  .roi-purchase-costs { margin-top: 18px; padding: 20px; border: 1px solid var(--pa-line, var(--line)); border-radius: var(--pa-radius-control, 16px); background: var(--pa-surface-warm, #f0e8df); }
  .roi-purchase-summary { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(180px, 230px) auto; align-items: center; gap: 20px; }
  .roi-purchase-summary b { display: block; font-size: 14px; }
  .roi-purchase-summary small { display: block; margin-top: 5px; color: var(--muted); font-family: Georgia, serif; }
  .roi-purchase-amount { min-width: 0; text-align: left; }
  .roi-purchase-amount > strong { display: block; border-radius: 7px; font-size: 20px; font-weight: 400; transition: color .22s ease, background-color .22s ease, box-shadow .22s ease; }
  .roi-purchase-costs.just-done .roi-purchase-amount > strong { color: var(--coral); background: rgb(241 111 83 / 8%); box-shadow: 0 0 0 6px rgb(241 111 83 / 8%); }
  .roi-purchase-amount dl { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
  .roi-purchase-amount dl > div { display: flex; justify-content: space-between; gap: 12px; }
  .roi-purchase-amount dt { font-weight: 500; }
  .roi-purchase-amount dd { margin: 0; white-space: nowrap; }
  .roi-registration-rate { color: var(--coral); font-weight: 850; }
  .roi-purchase-summary > button,
  .roi-costs-done { border: 1px solid var(--forest); border-radius: var(--pa-radius-control, 16px); color: var(--forest); background: var(--pa-surface, #fbf8f1); font-size: 13px; font-weight: 750; cursor: pointer; }
  .roi-purchase-summary > button { min-width: 76px; min-height: 36px; padding: 8px 11px; }
  .roi-purchase-summary > button:hover,
  .roi-costs-done:hover { color: #fff; background: var(--forest); }
  .roi-purchase-collapse { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .34s ease, opacity .22s ease; }
  .roi-purchase-collapse > div { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear .34s; }
  .roi-purchase-costs.open .roi-purchase-collapse { grid-template-rows: 1fr; opacity: 1; }
  .roi-purchase-costs.open .roi-purchase-collapse > div { visibility: visible; transition-delay: 0s; }
  .roi-purchase-body { padding: 5px 0 24px; }
  .roi-purchase-body > p { margin: 0 0 20px; color: var(--muted); font-family: Georgia, serif; font-size: 12px; }
  .roi-costs-done { display: block; width: 100%; min-height: 44px; margin-top: 22px; }
  @media (prefers-reduced-motion: reduce) {
    .roi-purchase-collapse,
    .roi-purchase-amount > strong { transition: none; }
  }
  .roi-cost-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roi-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .roi-month-head,
  .roi-month {
    display: grid;
    grid-template-columns: minmax(70px, 1fr) 92px 58px;
    gap: 8px;
    align-items: center;
  }
  .roi-month-head { grid-column: 1 / -1; display: none; }
  .roi-month { min-width: 0; min-height: 44px; border-top: 1px solid var(--line); }
  .roi-month strong { min-width: 0; overflow: hidden; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
  .roi-month input { min-width: 0; width: 100%; height: 34px; padding: 0 7px; border: 1px solid #aab4aa; border-radius: 7px; outline: 0; color: var(--forest); background: #fffdf8; text-align: right; font-variant-numeric: tabular-nums; }
  .roi-month input:focus-visible { border-color: var(--coral); box-shadow: 0 0 0 2px rgb(241 111 83 / 18%); }
  .roi-management { margin-top: 20px; border-top: 1px solid var(--line); }
  .roi-management label { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
  .roi-management input { accent-color: var(--coral); }
  .roi-management b { font-size: 12px; }
  .roi-management small { display: block; margin-top: 4px; color: var(--muted); font-family: Georgia, serif; line-height: 1.45; }
  .roi-management p { margin: 14px 0 0; font-size: 12px; }
  .roi-breakdown { position: sticky; top: 24px; min-width: 0; align-self: start; padding: 24px; border: 1px solid var(--pa-line, var(--line)); border-top: 3px solid var(--pa-editorial-accent, var(--coral)); border-radius: var(--pa-radius-card, 20px); background: var(--pa-surface-warm, #f0e8df); }
  .roi-result-kicker { margin: 0 0 7px; color: var(--coral); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .roi-breakdown h3 { margin: 0 0 18px; font-size: 24px; font-weight: 400; }
  .roi-breakdown-details { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
  .roi-breakdown-details > summary { color: var(--forest); font-size: 13px; font-weight: 750; list-style: none; cursor: pointer; }
  .roi-breakdown-details > summary::after { float: right; color: var(--coral); content: "＋"; }
  .roi-breakdown-details[open] > summary::after { content: "−"; }
  .roi-breakdown-details > summary::-webkit-details-marker { display: none; }
  .roi-breakdown-details dl { margin-top: 12px; }
  .roi-breakdown dl { margin: 0; }
  .roi-breakdown dl div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
  .roi-breakdown dt { color: var(--muted); }
  .roi-breakdown dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
  .roi-final { margin-top: 20px; padding-top: 18px; border-top: 2px solid var(--forest); }
  .roi-final strong { display: block; margin-top: 6px; font-size: 27px; font-weight: 400; letter-spacing: -.04em; }
  .roi-tax-note { display: block; margin-top: 18px; color: var(--muted); line-height: 1.45; }
  
  @media (max-width: 1080px) {
    .roi-heading,
    .roi-layout { grid-template-columns: 1fr; }
    .roi-breakdown { position: static; padding: 24px; }
  }
  @media (max-width: 620px) {
    .publication-nav {
      min-height: 0;
      grid-template-columns: minmax(0, 1fr);
      gap: 14px;
      padding-top: 18px;
      padding-bottom: 16px;
    }
    .portal-hero-actions { align-items: stretch; gap: 10px; }
    .portal-hero-actions a { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; }
    .roi-calculator { padding: 28px 20px; border-radius: var(--pa-radius-card, 20px); }
    .roi-heading { gap: 16px; }
    .roi-heading h2 { font-size: 37px; }
    .roi-heading-copy > p { font-size: 15px; }
    .roi-layout { padding-top: 20px; }
    .roi-summary { grid-template-columns: 1fr 1fr; }
    .roi-summary > div { display: flex; min-height: 94px; flex-direction: column; justify-content: space-between; padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .roi-summary > div:first-child { grid-column: 1 / -1; }
    .roi-summary > div:nth-child(2) { padding-right: 12px; border-right: 1px solid var(--line); border-bottom: 0; }
    .roi-summary > div:last-child { padding-left: 12px; border-bottom: 0; }
    .roi-summary strong { margin-top: 10px; font-size: 27px; white-space: nowrap; }
    .roi-form-section > header { display: grid; grid-template-columns: 1fr; gap: 5px; align-items: flex-start; }
    .roi-form-section > header span { font-size: 17px; }
    .roi-form-section > header small { max-width: none; text-align: left; }
    .roi-fields,
    .roi-fields-two,
    .roi-months { grid-template-columns: 1fr; }
    .roi-form-section:last-child .roi-fields,
    .roi-form-section:last-child:has(.roi-management) .roi-fields { grid-template-columns: 1fr; gap: 18px; }
    .roi-form-section:last-child:has(.roi-management) .roi-field-label { min-height: 22px; align-items: center; }
    .roi-fields:has(> .roi-field:nth-child(3)) > .roi-field .roi-field-label { min-height: 22px; align-items: center; }
    .roi-price-choice { grid-template-columns: 1fr; gap: 8px; }
    .roi-price-choice > label { min-height: 72px; }
    .roi-rental-choice { grid-template-columns: 1fr; gap: 8px; }
    .roi-rental-choice button { min-height: 96px; }
    .roi-investment-total { align-items: flex-start; flex-direction: column; gap: 12px; }
    .roi-investment-total strong { font-size: 30px; }
    .roi-purchase-costs { padding: 17px 15px; }
    .roi-purchase-summary { grid-template-columns: minmax(0, 1fr) minmax(116px, auto); gap: 14px; }
    .roi-purchase-summary > div { min-width: 0; }
    .roi-purchase-amount { min-width: 132px; }
    .roi-purchase-amount > strong { font-size: 21px; }
    .roi-purchase-amount dl { font-size: 8px; }
    .roi-purchase-summary > button { grid-column: 1 / -1; width: 100%; margin-bottom: 14px; }
    .roi-cost-fields { grid-template-columns: 1fr; }
    .roi-month-head,
    .roi-month { grid-template-columns: minmax(86px, 140px) 104px 54px; gap: 6px; justify-content: start; }
    .roi-month-head { display: grid; padding-bottom: 7px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
    .roi-month-head span:nth-child(n+2) { text-align: right; }
    .roi-month input { padding-right: 6px; padding-left: 6px; font-size: 16px; }
    .roi-breakdown { margin-top: 8px; padding: 22px 18px; }
    .roi-breakdown h3 { font-size: 25px; }
    .roi-help-popover { right: 16px; bottom: 16px; left: 16px; width: auto; max-height: calc(100dvh - 32px); padding: 48px 17px 18px; font-size: 13px; }
    .roi-help-close { top: 13px; right: 14px; font-size: 11px; }
  }
  @media (max-width: 350px) {
    .roi-calculator { padding: 24px 15px; }
    .roi-month-head,
    .roi-month { grid-template-columns: 110px 92px 48px; gap: 4px; }
    .roi-month input { padding-right: 4px; padding-left: 4px; font-size: 14px; }
  
  }
  
  
}
