.lac-page { max-width: 1240px; margin: 0 auto; padding: calc(var(--headerHeight, 4rem) + 6rem) 24px 80px; }
.lac-page-heading { margin-bottom: 36px; }
.lac-back { color: #495d59; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.lac-page-heading h1 { color: #1c352f; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.6; margin: 18px 0 4px; }
.lac-page-heading p { color: #495d59; margin: 0; font-size: 18px; }
.lac { --lac-ink: #1c352f; --lac-muted: #495d59; --lac-line: #d3e2da; --lac-soft: #f2f7f4; --lac-accent: #ffc53c; --lac-switch-on: #34c759; --lac-switch-off: #e5e5ea; --lac-switch-on-text: #207347; --lac-switch-off-text: #6b7280; --lac-error: #98322f; color: var(--lac-ink); font-family: inherit; font-size: 16px; line-height: 1.8; width: 100%; text-align: right; }
.lac *, .lac *::before, .lac *::after { box-sizing: border-box; }
.lac [hidden] { display: none !important; }
.lac button, .lac input, .lac select { font: inherit; }
.lac button, .lac input, .lac select, .lac a { -webkit-tap-highlight-color: transparent; }
.lac button:focus-visible, .lac input:focus-visible, .lac select:focus-visible, .lac a:focus-visible, .lac-back:focus-visible { outline: 3px solid #31889b; outline-offset: 4px; }
.lac-preview { background: #fff5d6; border-right: 4px solid #d5a013; padding: 12px 18px; font-size: 13px; border-radius: 8px; margin: 0 0 24px; color: #624700; }
.lac-intro { color: var(--lac-muted); max-width: 75ch; margin: 0 0 24px; }
.lac-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; border: 1px solid var(--lac-line); border-radius: 14px; max-width: 520px; margin-bottom: 28px; background: var(--lac-soft); }
.lac .lac-tab { display: block; border: 0; border-radius: 9px; background: transparent; color: var(--lac-muted); min-height: 48px; padding: 10px 16px; cursor: pointer; transition: background .18s, color .18s; font-size: 16px; }
.lac .lac-tab[aria-selected="true"] { background: var(--lac-ink); color: #fff; font-weight: 700; }
.lac-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border: 1px solid var(--lac-line); border-radius: 24px; overflow: clip; background: #fff; }
.lac-inputs { padding: 34px; min-width: 0; }
.lac-field { margin-bottom: 24px; }
.lac-field label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; font-weight: 600; font-size: 15px; }
.lac-field label span { color: var(--lac-muted); font-weight: 400; font-size: 13px; }
.lac .lac-field input, .lac .lac-field select { width: 100%; min-height: 54px; border: 1px solid #a4b9ad; border-radius: 10px; background-color: #fff; color: var(--lac-ink); padding: 10px 14px; box-shadow: none; }
.lac .lac-field select { cursor: pointer; padding-inline-end: 32px; }
.lac .lac-field input { font-size: 21px; font-weight: 600; text-align: left; font-variant-numeric: tabular-nums; }
.lac .lac-field input::placeholder { color: #65736c; font-size: 16px; font-weight: 400; }
.lac .lac-field input[aria-invalid="true"] { border-color: var(--lac-error); }
.lac-hint, .lac-error { font-size: 13px; line-height: 1.9; display: block; margin-top: 6px; }
.lac-hint { color: var(--lac-muted); }
.lac-error { color: var(--lac-error); }
.lac-error:empty { display: none; }
.lac-switch { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-height: 48px; cursor: pointer; width: fit-content; font-weight: 600; }
.lac-switch input { position: absolute; opacity: 0; width: 48px; height: 44px; inset-inline-start: 0; margin: 0; cursor: pointer; }
.lac-switch-track { flex: 0 0 48px; width: 48px; height: 28px; direction: ltr; border-radius: 20px; background: var(--lac-switch-off); border: 1px solid var(--lac-switch-off); transition: background .18s; pointer-events: none; }
.lac-switch-track::after { content: ''; display: block; width: 20px; height: 20px; background: #fff; border-radius: 50%; margin: 3px; transform: translateX(0); transition: transform .18s; }
.lac-switch input:checked:not(:disabled) + .lac-switch-track { background: var(--lac-switch-on); border-color: var(--lac-switch-on); }
.lac-switch input:checked + .lac-switch-track::after { background: #fff; transform: translateX(20px); }
.lac-switch input:focus-visible + .lac-switch-track { outline: 3px solid #31889b; outline-offset: 4px; }
.lac-switch:has(input:disabled) { cursor: default; }
.lac-switch input:disabled { cursor: default; }
.lac-switch input:disabled + .lac-switch-track { opacity: .55; border-style: dashed; }
.lac-switch-state { color: var(--lac-switch-off-text); font-size: 13px; min-width: 5ch; }
.lac-switch input:checked:not(:disabled) ~ .lac-switch-state { color: var(--lac-switch-on-text); }
.lac-reinvest-help { margin: 6px 0 0; }
.lac-results { min-width: 0; padding: 34px; background: var(--lac-soft); border-inline-start: 1px solid var(--lac-line); }
.lac-fund-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-size: 17px; }
.lac-fund-heading img { width: 48px; height: 48px; object-fit: contain; padding: 4px; border-radius: 12px; background: #fff; }
.lac-rates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lac-rates > div { border: 1px solid var(--lac-line); background: #fff; border-radius: 12px; padding: 12px 14px; }
.lac-rates span { display: block; color: var(--lac-muted); font-size: 12px; }
.lac-rates strong { display: block; font-size: 24px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.lac-rates .lac-rate-missing strong { font-size: 16px; color: var(--lac-muted); overflow-wrap: anywhere; }
.lac-rates .lac-rate-active { border-color: var(--lac-ink); box-shadow: inset 0 3px 0 var(--lac-ink); }
.lac-basis { color: var(--lac-muted); font-size: 12px; margin: 10px 0 24px; }
.lac-result-main { border-bottom: 1px solid var(--lac-line); padding-bottom: 20px; margin-bottom: 8px; }
.lac-result-main > span { display: block; font-size: 14px; margin-bottom: 4px; }
.lac-result-main > div { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; }
.lac-result-main strong { font-size: clamp(26px, 3vw, 40px); font-weight: 700; line-height: 1.8; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.lac-result-main div > span { color: var(--lac-muted); font-size: 13px; }
.lac-breakdown { margin: 0; }
.lac-breakdown > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; }
.lac-breakdown dt { font-size: 14px; }
.lac-breakdown dd { margin: 0; font-size: 18px; font-weight: 600; text-align: left; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.lac-breakdown small, .lac-difference small { display: block; color: var(--lac-muted); font-size: 11px; font-weight: 400; }
.lac-difference { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--lac-line); padding-top: 18px; margin-top: 10px; }
.lac-difference > span { font-size: 14px; max-width: 22ch; }
.lac-difference > div { text-align: left; }
.lac-difference strong { font-size: 25px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.lac-difference[data-sign="negative"] strong { color: var(--lac-error); }
.lac-result-note { font-size: 12px; line-height: 1.9; margin: 18px 0 0; color: var(--lac-muted); }
.lac-result-note:empty { display: none; }
.lac-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.lac-footnote { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--lac-muted); font-size: 12px; line-height: 1.9; margin-top: 20px; }
.lac-footnote a { color: var(--lac-ink); text-decoration: underline; text-underline-offset: 3px; }
.lac-note { padding: 24px; background: var(--lac-soft); border-radius: 12px; }
@media (max-width: 760px) {
    .lac-page { padding: calc(var(--headerHeight, 4rem) + 4rem) 16px 48px; }
    .lac-page-heading { margin-bottom: 24px; }
    .lac-grid { grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
    .lac-inputs, .lac-results { padding: 24px; }
    .lac-results { border-inline-start: 0; border-top: 1px solid var(--lac-line); }
    .lac-tabs { max-width: none; }
    .lac .lac-tab { padding-inline: 8px; font-size: 14px; }
    .lac-result-main strong { font-size: 30px; }
}
@media (max-width: 380px) {
    .lac-inputs, .lac-results { padding: 18px; }
    .lac-rates { gap: 8px; }
    .lac-rates > div { padding: 10px; }
    .lac-rates span { font-size: 11px; }
    .lac-breakdown dd { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .lac *, .lac *::after { transition: none !important; } }
