.scroll-mode-tabs{display:flex;gap:6px;margin:0 0 20px;flex-wrap:wrap}.scroll-mode-tabs button,.scroll-chip-row button{min-height:36px;padding:6px 12px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--muted);font-family:inherit;font-size:13px;font-weight:600;cursor:pointer}.scroll-mode-tabs button[aria-pressed=true],.scroll-chip-row button[aria-pressed=true]{color:var(--green-dark);background:var(--green-soft);border-color:var(--green)}.scroll-chip-row{display:flex;gap:6px}.calc-scroll fieldset{border:0;padding:0;margin:0}.calc-scroll legend{font-size:12px;color:var(--muted);margin-bottom:6px}.calc-scroll .scroll-check{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;min-height:32px;color:var(--text)!important}.calc-scroll details label{margin:8px 0!important}.calc-scroll input[type=checkbox]{width:16px;height:16px;accent-color:var(--green)}.calc-scroll small,.calc-scroll .sf-hint{color:var(--muted);font-size:12px}.calc-scroll h3{font-size:14px;font-weight:600;margin:0 0 12px}.scroll-distribution{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.scroll-distribution>div{display:flex;flex-direction:column;gap:6px}.scroll-distribution span{font-size:12px;color:var(--muted)}.scroll-distribution strong{font-size:18px;font-weight:600;font-variant-numeric:tabular-nums}.scroll-budget-chance{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:12px;color:var(--muted);font-size:12px}.scroll-budget-chance strong{font-size:18px;color:var(--green-dark)}.scroll-finished{border:1px solid var(--line);border-radius:10px;padding:16px;margin:18px 0;background:var(--surface-soft)}.scroll-finished>div{display:flex;flex-wrap:wrap;gap:12px 24px}.scroll-finished span{display:flex;gap:12px;color:var(--muted);font-size:13px}.scroll-finished b{color:var(--text);font-weight:600;font-variant-numeric:tabular-nums}.scroll-costs>div{position:relative;display:flex;justify-content:space-between;gap:8px;padding:9px 0 14px;font-size:13px;overflow:hidden}.scroll-costs>div i{position:absolute;left:0;bottom:4px;height:3px;background:var(--green);border-radius:999px}.scroll-costs span{color:var(--muted)}.scroll-costs b{font-weight:600;font-variant-numeric:tabular-nums}.calc-scroll .scroll-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:12px 0 18px}.calc-scroll .scroll-metrics>div{padding:8px;min-width:0}.calc-scroll .scroll-metrics span{font-size:12px}.calc-scroll .scroll-metrics b{font-size:15px}.calc-scroll .sf-details{margin-top:10px}.calc-scroll .sf-details summary{padding:8px 0;cursor:pointer;font-size:13px;color:var(--green-dark);font-weight:600}.calc-scroll .calc-learning{margin-top:20px}.calc-scroll :is(p,li){overflow-wrap:anywhere}.calc-scroll .sf-error{color:var(--text);background:var(--surface-soft);border:1px solid var(--line);padding:16px;border-radius:6px}.calculator-reference-rail:has(a[href='/scroll']) nav{--calculator-tab-count:6}@media(max-width:820px){.calculator-reference-rail:has(a[href='/scroll']) nav{grid-template-columns:repeat(6,minmax(0,1fr))!important}.scroll-mode-tabs{gap:6px}.scroll-mode-tabs button{flex:1 0 calc(50% - 6px);padding:8px 4px;font-size:12px}.scroll-distribution{gap:8px}.scroll-distribution strong{font-size:15px}.calc-scroll .scroll-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.calc-scroll .sf-total strong{font-size:36px}.calc-scroll .sf-input{scroll-margin-top:110px}}@media(prefers-reduced-motion:reduce){.calc-scroll *{scroll-behavior:auto!important}}

#calculatorReference .scroll-kind-fields{grid-template-columns:1fr}.scroll-distribution span{min-height:34px}.scroll-distribution span small{display:block;font-size:12px;color:var(--muted)}

/* Keep the amount a direct child: shared calculator amount/unit styles depend on it. */
#calculatorReference .calc-scroll .sf-heading h1{font-size:24px!important;font-weight:700!important;line-height:1.35;margin:0 0 8px}
#calculatorReference .calc-scroll .sf-heading p{font-size:13px;line-height:1.6;color:var(--muted);margin:0}
#calculatorReference .calc-scroll .sf-results>h2{font-size:18px!important;font-weight:600!important;line-height:1.4;color:var(--text);margin:0 0 16px}
#calculatorReference .calc-scroll .scroll-total{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:baseline;column-gap:12px;row-gap:6px;margin:0 0 24px}
#calculatorReference .calc-scroll .scroll-total>span{grid-column:1/-1;font-size:12px;color:var(--muted);line-height:1.5}
#calculatorReference .calc-scroll .scroll-total>strong{grid-column:1;grid-row:2;font-size:40px!important;font-weight:700;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums}
#calculatorReference .calc-scroll .scroll-total-traces{grid-column:2;grid-row:2;font-size:12px;font-weight:400;line-height:1.5;color:var(--muted);font-variant-numeric:tabular-nums;overflow-wrap:normal}
#calculatorReference .calc-scroll .scroll-total-condition{grid-column:1/-1;grid-row:3;font-size:12px;line-height:1.5;color:var(--muted)}
@media(max-width:820px){#calculatorReference .calc-scroll .sf-heading h1{font-size:20px!important}#calculatorReference .calc-scroll .scroll-total>strong{font-size:32px!important}#calculatorReference .calc-scroll .sf-results>h2{font-size:18px!important}}
