.layout>article:has(.selected-calculator){min-width:0}
.selected-calculator{min-width:0}.selected-calculator *{min-width:0}.selected-calculator [hidden]{display:none!important}.selected-calculator .card-head h2{font-size:1.35rem}.selected-note{padding:12px 16px;background:var(--brand-soft);border-left:3px solid var(--brand);border-radius:8px;color:var(--muted);font-size:.9rem}.selected-form{margin-top:20px}.selected-group{border:0;margin:0 0 22px;padding:0}.selected-group>legend{font-size:1.03rem;font-weight:800;margin-bottom:12px;padding:0}.selected-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.selected-calculator .field{display:flex;flex-direction:column;gap:5px}.selected-calculator input,.selected-calculator select{box-sizing:border-box;max-width:100%;width:100%;padding:11px 12px;border:1px solid #b9c7d9;background:white;color:var(--ink);border-radius:9px;font:inherit;min-height:44px}.selected-calculator input:focus,.selected-calculator select:focus{outline:2px solid var(--brand);outline-offset:2px}.selected-calculator label{font-size:.88rem;font-weight:700}.selected-calculator small{font-size:.78rem;line-height:1.5;color:var(--muted)}.selected-calculator button{min-height:44px;white-space:normal}.selected-calculator [aria-invalid=true]{border-color:#b42318;outline-color:#b42318}.selected-advanced,.selected-storage{border:1px solid var(--line);border-radius:12px;margin:16px 0;padding:0 16px}.selected-calculator summary,.selected-faq summary{cursor:pointer;font-weight:750;padding:14px 0}.selected-advanced .selected-group{margin:4px 0 18px}.selected-row{border:1px solid var(--line);border-radius:12px;padding:14px;margin-bottom:12px;background:var(--surface)}.selected-row .selected-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.selected-row-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.selected-row-head .secondary{padding:5px 10px;font-size:.8rem;min-height:36px}.selected-buttons{display:flex;flex-wrap:wrap;gap:8px}.selected-storage .selected-buttons{margin:14px 0}.selected-upload{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 12px;border:1px solid var(--line);border-radius:9px;cursor:pointer}.selected-upload input{width:auto;max-width:210px;padding:0;border:0;font-size:.8rem;min-height:30px}.selected-error{padding:14px 16px;border:1px solid #f2b8b2;border-radius:10px;background:#fff0ee;color:#8b2118;margin:16px 0}.selected-result{border-top:1px solid var(--line);margin-top:24px;padding-top:24px;overflow-wrap:anywhere}.selected-answer{padding:22px;border:1px solid #b9d1fc;border-radius:15px;background:linear-gradient(130deg,#edf4ff,#f4faf8)}.selected-answer h3{margin:0 0 8px;font-size:1rem}.selected-value{display:block;font-size:clamp(1.45rem,3vw,2rem);line-height:1.3;letter-spacing:-.025em}.selected-answer p{margin:10px 0 0;font-size:.92rem}.selected-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.selected-metric{border:1px solid var(--line);border-radius:10px;padding:13px;background:#fff}.selected-metric span{display:block;color:var(--muted);font-size:.8rem}.selected-metric strong{display:block;font-size:1.08rem;margin-top:4px}.selected-result h3{font-size:1rem;margin:22px 0 10px}.selected-result .selected-answer h3{margin-top:0}.selected-result ol{padding-left:22px}.selected-result li{margin:7px 0;font-size:.9rem}.selected-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:10px;max-width:100%;margin:14px 0;overscroll-behavior-x:contain}.selected-table{border-collapse:collapse;width:100%;font-size:.85rem;white-space:nowrap}.selected-table th,.selected-table td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line)}.selected-table th{background:var(--surface);font-weight:750}.selected-table caption{text-align:left;font-weight:750;padding:12px;white-space:normal}.selected-result details>summary{color:var(--brand)}.selected-result table tr:last-child td{border-bottom:0}.selected-examples{border-top:1px solid var(--line);margin-top:22px;padding-top:16px}.selected-examples h3{font-size:1rem}.selected-share{margin:15px 0}.selected-share input{margin-top:7px;font-size:.8rem}.selected-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.selected-chart{margin:18px 0}.selected-chart svg{display:block;width:100%;height:auto;max-height:260px;background:var(--surface);border-radius:10px}.selected-chart figcaption{font-size:.8rem;color:var(--muted);margin-top:8px}.selected-chart text{fill:#42516c;font-size:12px}.selected-legend{display:flex;gap:18px;flex-wrap:wrap;font-size:.8rem}.selected-legend span:before{content:'';display:inline-block;width:18px;height:3px;vertical-align:middle;background:#2459d8;margin-right:7px}.selected-legend span:nth-child(2):before{background:#078b73}.selected-fraction-bar{display:block;width:100%;height:22px}.selected-warning{border-left:3px solid #b97510;padding:10px 14px;background:#fff7e8;border-radius:6px;font-size:.9rem}.selected-faq details{border-bottom:1px solid var(--line)}.selected-calculator [data-selected-status]{font-size:.85rem;color:var(--muted)}
@media(max-width:650px){.selected-fields,.selected-row .selected-fields{grid-template-columns:minmax(0,1fr)}.selected-metrics{grid-template-columns:minmax(0,1fr)}.selected-answer{padding:16px}.selected-calculator .actions{display:flex;flex-wrap:wrap;gap:8px}.selected-calculator .actions button{flex:1 1 140px}.selected-row-head{align-items:center}.selected-advanced,.selected-storage{padding:0 12px}.selected-value{font-size:1.55rem}}
@media print{.site-header,.site-footer,.selected-storage,.selected-examples,.selected-buttons,.selected-form .actions,.selected-share,.selected-row-head button,[data-add-row],.selected-faq,.ad-slot{display:none!important}.selected-calculator,.selected-result,.selected-answer{box-shadow:none;border-color:#aaa}.selected-advanced:not([open]){display:none}.selected-table-wrap{overflow:visible}.selected-table{white-space:normal;font-size:9pt}.selected-answer,.selected-metric{break-inside:avoid}.selected-chart{break-inside:avoid}}

.resistor-art{position:relative;display:flex;align-items:center;justify-content:center;min-height:100px;margin:1rem 0}.resistor-wire{position:absolute;left:0;right:0;height:8px;background:#92969b}.resistor-body{position:relative;display:flex;justify-content:space-around;gap:10px;padding:0 16px;width:260px;max-width:85%;height:72px;background:#e7cda2;border:2px solid #8d7656;border-radius:22px}.resistor-band{width:22px;padding:0;border:1px solid #363636;border-radius:0;min-width:0}.resistor-band:focus-visible{outline:3px solid #2459d8;outline-offset:4px}.resistor-sequence{font-weight:650;text-align:center}
.resistor-black{background:#222222}.resistor-brown{background:#854d2e}.resistor-red{background:#d82432}.resistor-orange{background:#ed7d16}.resistor-yellow{background:#f1d332}.resistor-green{background:#218447}.resistor-blue{background:#225ac4}.resistor-violet{background:#8a41ac}.resistor-grey{background:#92969b}.resistor-white{background:#f7f7ef}.resistor-gold{background:#c8a447}.resistor-silver{background:#c5cbd0}body:has(.selected-calculator) .verification-strip{display:grid;grid-template-columns:40px minmax(0,1fr)}body:has(.selected-calculator) .verification-strip>a{grid-column:2;margin-left:0}body:has(.selected-calculator) .verification-strip>div{min-width:0}body:has(.selected-calculator) .page-head h1{font-size:clamp(1.65rem,3vw,2.35rem);line-height:1.18;letter-spacing:-.025em;overflow-wrap:anywhere}body:has(.selected-calculator) .breadcrumbs{white-space:normal;flex-wrap:wrap;overflow-wrap:anywhere}
/* v1.47.0: bounded multiline measurement entry and accessible diagrams. */
.selected-calculator textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:130px;padding:11px 12px;border:1px solid #b9c7d9;border-radius:9px;background:#fff;color:var(--ink);font:inherit;line-height:1.6;resize:vertical}.selected-calculator textarea:focus{outline:2px solid var(--brand);outline-offset:2px}.selected-calculator .field:has(textarea){grid-column:1/-1}.audio-circuit{margin:18px 0}.audio-circuit svg{display:block;width:100%;min-width:560px;height:auto;color:var(--brand)}.audio-circuit figcaption{font-size:.8rem;line-height:1.5;color:var(--muted)}.audio-chart svg,.audio-box svg{color:var(--brand)}
@media print{.audio-circuit svg{min-width:0!important}.footer-book{display:none!important}}

/* v1.48.0: narrow-screen guidance for keyboard-focusable, horizontally scrollable tables. */
.selected-scroll-hint{display:none}@media(max-width:600px){.selected-scroll-hint{display:block;font-size:.78rem;color:var(--muted);margin:16px 0 5px}}@media print{.selected-scroll-hint{display:none!important}}

/* v1.53.0: fixed monthly panels preserve the existing visual system. */
.budget-actual-row>summary{display:list-item;padding:6px 0;min-height:44px;overflow-wrap:anywhere}.budget-actual-row>summary strong{margin-right:12px}.budget-actual-row [data-row-summary]{font-size:.8rem;font-weight:500;color:var(--muted)}.budget-actual-row[open]>summary{margin-bottom:14px}.budget-actual-row .field[data-field-wrap="status"],.budget-actual-row .field[data-field-wrap="note"]{grid-column:1/-1}.budget-actual-row summary:focus-visible{outline:2px solid var(--brand);outline-offset:4px;border-radius:4px}@media print{.budget-actual-row{break-inside:avoid}.budget-actual-row>summary{display:block}}

/* v1.54.0 — navigation, inline validation, reversible edits and bounded mobile controls. */
.selected-quick-nav{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 8px}
.selected-quick-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:9px;font-size:.9rem;font-weight:700;text-decoration:none;color:var(--brand);background:var(--surface)}
.selected-quick-nav a:focus-visible,.selected-section-picker button:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
.selected-ux-state{font-size:.84rem;color:var(--muted);margin:8px 0 16px;line-height:1.5}
[data-calc-state=invalid] .selected-ux-state{color:#8b2118;font-weight:650}
[data-calc-state=pending] #result{opacity:.62}
.selected-section-picker{border:1px solid var(--line);border-radius:12px;padding:12px;margin:16px 0}
.selected-section-picker>div{display:flex;align-items:center;gap:10px;margin-top:7px}
.selected-section-picker select{flex:1;width:0}.selected-section-picker button{flex:0 0 auto}
.selected-result-heading{font-size:1.25rem;margin:24px 0 12px;scroll-margin-block:100px 150px}
.selected-result-heading:focus{outline:2px solid var(--brand);outline-offset:6px;border-radius:4px}
.selected-result-heading+#result{margin-top:0;padding-top:12px}
.selected-field-error{font-size:.88rem;font-weight:600;line-height:1.5;margin:3px 0;color:#8b2118}
.selected-error button{margin-top:10px;background:white;color:#8b2118;border-color:#cf776f}
.selected-calculator input,.selected-calculator select,.selected-calculator textarea,.selected-calculator button,.selected-examples{scroll-margin-block:110px 150px}
.selected-undo-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border:1px solid #d6b373;background:#fff8e8;border-radius:12px;padding:14px;margin:16px 0}
.selected-undo-bar p{flex:1 1 220px;margin:0;font-size:.9rem;line-height:1.5}.selected-undo-bar small{flex-basis:100%}
.selected-row-tools{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:12px;margin:8px 0 15px}
.selected-row-tools p{font-size:.86rem;margin:0 0 9px;color:var(--muted)}
.selected-row-head{flex-wrap:wrap;align-items:flex-start}.selected-row-head>strong{flex:1 1 150px;overflow-wrap:anywhere;line-height:1.5}
.selected-row-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.selected-row-head .secondary{min-height:44px;font-size:.82rem}
.selected-row:has([data-ux-row-fields][hidden]) .selected-row-head{margin-bottom:0}
.selected-mobile-dock{display:none}
@media(max-width:650px){
 .selected-quick-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.selected-quick-nav a{padding:8px}
 .selected-row-head{display:block}.selected-row-actions{justify-content:flex-start;margin-top:10px}
 .selected-row-actions button{flex:1 1 72px;padding:8px 5px!important;overflow-wrap:anywhere}
 .selected-section-picker>div{flex-wrap:wrap}.selected-section-picker select{flex:1 1 150px;width:100%}
 .selected-mobile-dock{display:block;position:fixed;bottom:0;left:0;right:0;z-index:80;padding:9px max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#fff;border-top:1px solid #c2cddc;box-shadow:0 -3px 18px #14203315}
 .selected-mobile-dock>p{font-size:.83rem;font-weight:650;line-height:1.35;margin:0 0 7px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
 .selected-mobile-dock>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .selected-mobile-dock button{font-size:.87rem;padding:8px 5px;min-height:44px;white-space:normal}
 html.selected-dock-visible{scroll-padding-bottom:150px}
 html.selected-dock-visible body{padding-bottom:130px}
}
@media print{.selected-quick-nav,.selected-ux-state,.selected-undo-bar,.selected-section-picker,.selected-row-tools,.selected-row-actions,.selected-mobile-dock{display:none!important}.selected-row [data-ux-row-fields][hidden]{display:grid!important}html.selected-dock-visible body{padding-bottom:0}#result{opacity:1!important}}
@media(max-width:650px){
 .selected-mobile-dock>.selected-dock-status{display:flex;align-items:center;gap:8px;margin:0 0 7px}
 .selected-dock-status>p{flex:1;font-size:.83rem;font-weight:650;line-height:1.35;margin:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
 .selected-dock-status>button{flex:0 0 auto;max-width:125px;font-size:.8rem}
}

.selected-benefit-editor{grid-column:1/-1;min-width:0}.selected-benefit-editor fieldset{min-width:0;padding:14px;margin:12px 0;border:1px solid var(--line);border-radius:12px}.selected-benefit-editor label{display:block;margin:10px 0}.selected-benefit-editor input,.selected-benefit-editor select,.selected-benefit-editor button{min-height:44px;max-width:100%;margin:5px}

.selected-chart [data-brief-plot] text{font-size:16px}@media(max-width:600px){.selected-chart [data-brief-plot] text{font-size:22px}}

.hk-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:22rem;overflow:auto}.hk-preview button{margin:.3rem;min-height:44px;min-width:44px}

/* Solar: readable chart labels with keyboard-accessible horizontal scrolling. */
.solar-intro{border-left:4px solid #078b73;padding:1rem;background:#f1f8f5}.solar-intro p{margin:.5rem 0}.solar-legend{display:flex;flex-wrap:wrap;gap:.6rem 1.2rem;margin:.75rem 0}.solar-legend span{display:inline-flex;align-items:center;gap:.4rem}.solar-legend i{display:inline-block;width:1rem;height:.25rem}.solar-chart svg{width:100%;height:auto}.solar-plot{max-width:100%;overflow-x:auto}.solar-plot svg{display:block;min-width:620px}.solar-chart text{font-size:14px}.solar-chart figcaption{font-size:.875rem}

/* Technical guide tables retain their own scroll region on narrow screens. */
#ic-guide [hidden]{display:none!important}#ic-guide .selected-table-wrap{max-width:100%;overflow-x:auto}#ic-guide .selected-table{min-width:620px}#ic-guide .field{max-width:32rem}

/* Lottery game links stay separate from a saved calculation. */
[data-lottery-short-share]{display:grid;gap:8px;margin-top:14px}
[data-lottery-short-share] button{justify-self:start}
.selected-quick-nav a[data-lottery-game][aria-current="true"]{background:var(--brand);color:#fff}
@media print{[data-lottery-short-share]{display:none!important}}
.selected-stop-track{display:flex;height:1.5rem;background:var(--soft,#eef2f6);border-radius:.35rem;overflow:hidden;max-width:100%}.selected-stop-reaction{background:#72b3d2}.selected-stop-brake{background:#164e63}.selected-stop-row p{margin:.6rem 0 .2rem}

/* Decision links stay in normal flow and never replace financial inputs. */
.selected-calculator [data-decision-mode][aria-pressed="true"]{border-color:var(--brand);background:var(--brand-soft);color:var(--brand)}
.selected-decision-return{margin:10px 0 0}
.selected-decision-return button{min-height:44px;max-width:100%;font:inherit;font-size:.9rem;line-height:1.5;white-space:normal;text-align:left}
#calculator-questions:focus-visible{outline:3px solid var(--brand);outline-offset:4px}
@media print{.selected-decision-return{display:none!important}}
