.roc-savings { color: #172554; background: #f8faff; padding-bottom: 3rem; }
.roc-savings *, .roc-savings *::before, .roc-savings *::after { box-sizing: border-box; }
.roc-savings [hidden] { display: none !important; }
.roc-savings-hero { padding: 3rem 1rem; background: linear-gradient(120deg, #1e40af, #2563eb); color: #fff; text-align: center; }
.roc-savings-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); }
.roc-savings-hero p { max-width: 760px; margin: 1rem auto 0; font-size: 1.15rem; }
.roc-savings-wrap { width: min(1160px, 100%); margin: auto; padding: 1.5rem 1rem; }
.roc-savings-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem; align-items: start; }
.roc-savings-panel, .roc-savings-education { background: #fff; border: 1px solid #dbeafe; border-radius: 14px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 5px 16px rgba(37, 99, 235, .04); }
.roc-savings h2 { font-size: 1.55rem; color: #1e40af; margin-top: 0; }
.roc-savings h3 { font-size: 1.15rem; color: #1e40af; }
.roc-savings-field { margin: 0 0 1rem; }
.roc-savings-field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.roc-savings input, .roc-savings select { background: #fff; color: #172554; width: 100%; padding: .65rem .8rem; border: 1px solid #93b4e4; border-radius: 6px; font: inherit; min-height: 44px; }
.roc-savings input:focus-visible, .roc-savings select:focus-visible, .roc-savings button:focus-visible, .roc-savings a:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.roc-savings select:disabled { background: #eff6ff; color: #405c83; }
.roc-savings-help, .roc-savings-note { font-size: .92rem; color: #3c5679; line-height: 1.6; }
.roc-savings-help { margin-top: .3rem; display: block; }
.roc-savings-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.25rem; }
.roc-savings button { min-height: 44px; border: 2px solid #2563eb; border-radius: 7px; font: inherit; padding: .65rem 1.1rem; background: #2563eb; color: #fff; cursor: pointer; }
.roc-savings button[type=reset] { color: #1e40af; background: #fff; }
.roc-savings-error { border: 2px solid #1e40af; background: #eff6ff; padding: 1rem; margin: 1rem 0; color: #172554; }
.roc-savings-stats { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.roc-savings-stat { background: #eff6ff; padding: 1rem; border-radius: 9px; overflow-wrap: anywhere; }
.roc-savings-stat strong { display: block; color: #1e40af; font-size: 1.5rem; margin-top: .3rem; }
.roc-savings-primary { font-size: clamp(1.8rem, 4vw, 2.5rem); color: #1e40af; font-weight: 700; margin: .25rem 0 1rem; overflow-wrap: anywhere; }
.roc-savings-table-wrap { overflow-x: auto; margin: 1rem 0; }
.roc-savings table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.roc-savings th, .roc-savings td { padding: .7rem .6rem; border-bottom: 1px solid #dbeafe; text-align: right; white-space: nowrap; }
.roc-savings th:first-child { text-align: left; }
.roc-savings thead { background: #eff6ff; }
.roc-savings caption { caption-side: top; text-align: left; color: #172554; font-weight: 600; padding: .5rem 0; }
.roc-savings details { margin-top: 1rem; }
.roc-savings summary { cursor: pointer; color: #1e40af; padding: .5rem 0; }
.roc-savings-chart { width: 100%; height: auto; margin-top: 1.5rem; background: #f8faff; border-radius: 8px; }
.roc-savings-chart polyline { fill: none; stroke: #2563eb; stroke-width: 3; }
.roc-savings progress { width: 100%; height: 22px; accent-color: #2563eb; }
.roc-savings-comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.roc-savings fieldset { border: 1px solid #bfdbfe; border-radius: 8px; padding: 1rem; min-width: 0; }
.roc-savings legend { float: none; width: auto; padding: 0 .5rem; font-size: 1.1rem; color: #1e40af; font-weight: 600; }
.roc-savings-links { display: flex; flex-wrap: wrap; gap: .6rem 1.3rem; margin: 1rem 0; }
.roc-savings a { color: #1e40af; text-decoration: underline; }
.roc-savings .roc-savings-hero a { color: #fff; }
.roc-savings-formula { padding: .8rem; background: #eff6ff; border-radius: 6px; overflow-x: auto; font-family: ui-monospace, monospace; }
@media (max-width: 767px) { .roc-savings-layout, .roc-savings-comparison-grid { grid-template-columns: 1fr; } .roc-savings-panel, .roc-savings-education { padding: 1.1rem; } .roc-savings-wrap { padding: 1rem .75rem; } }
