.calculator-main{padding-top:29px;padding-bottom:65px}.breadcrumbs{display:flex;align-items:center;gap:11px;flex-wrap:wrap;font-size:11px;line-height:1.8;color:#6b775e;margin-bottom:34px}.breadcrumbs a:hover{text-decoration:underline;text-underline-offset:4px}.breadcrumbs>span[aria-hidden]{color:#a3ad97}.calculator-heading{display:flex;justify-content:space-between;align-items:center;gap:30px;margin-bottom:34px}.calculator-heading .eyebrow{font-size:9px;letter-spacing:1.5px;color:#5d7550}.calculator-heading .mini-dot{background:#86a451}.calculator-heading h1{font-size:46px;font-weight:550;line-height:1.13;letter-spacing:-2px;margin:15px 0 15px}.calculator-heading p{font-size:14px;line-height:1.85;max-width:690px;color:var(--muted)}.page-save{background:transparent;border:1px solid #d8e0ce;border-radius:8px;display:flex;align-items:center;gap:8px;padding:11px 14px;font-size:11px;white-space:nowrap;flex-shrink:0}.page-save:hover{background:#edf3e5}.page-save .icon{width:17px;height:17px}.page-save[aria-pressed=true]{background:#edf4dd;color:#4b702b}.page-save[aria-pressed=true] .icon{fill:#d5f478}.calculator-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:48px;align-items:start}.calculator-column{min-width:0}.calculator-workspace{background:#fff;border:1px solid #dce4d4;border-radius:17px;padding:30px;box-shadow:0 7px 30px #173c3204}.workspace-top{display:flex;align-items:center;gap:13px;margin-bottom:29px}.workspace-top .tool-icon{width:43px;height:43px}.workspace-top .tool-icon .icon{width:23px;height:23px}.workspace-top h2{font-size:19px;font-weight:600;letter-spacing:-.5px;margin-bottom:6px}.workspace-top p{font-size:11px;color:var(--muted)}.free-badge{margin-left:auto;background:#eef4e4;color:#566f40;border:1px solid #dfe9d1;font-size:9px;padding:6px 9px;border-radius:5px;white-space:nowrap}.calculator-workspace .dialog-fields{gap:20px}.calculator-workspace .dialog-field{font-size:12px;gap:10px}.calculator-workspace .dialog-field input,.calculator-workspace .dialog-field select,.calculator-workspace .dialog-field textarea{padding:14px 13px;font-size:17px;background:#fdfefa}.calculation-actions{display:flex;align-items:center;gap:20px;margin-top:25px}.calculation-actions .button-dark{padding:14px 24px;min-width:185px;font-size:13px}.calculation-actions .icon{width:18px;height:18px}.reset-button{background:transparent;color:#64725a;font-size:12px;padding:12px}.reset-button:hover{text-decoration:underline}.page-result{margin-top:28px;padding:25px;background:#edf4e2;border:1px solid #dfe9d0;border-radius:11px}.page-result-top{display:flex;justify-content:space-between;align-items:center;gap:14px}.page-result-top>span{text-transform:uppercase;font-size:9px;letter-spacing:1.5px;color:#566b43;font-weight:600}.page-result-top button{display:flex;align-items:center;gap:7px;background:transparent;color:#5b7345;font-size:10px;white-space:nowrap;padding:4px}.page-result-top .icon{width:15px;height:15px}.page-result output{display:block;font-size:43px;letter-spacing:-1px;margin:13px 0 9px;overflow-wrap:anywhere}.page-result p{font-size:12px;line-height:1.85;color:#5d704d;white-space:pre-line}.page-assumption{font-size:11px;line-height:1.85;color:var(--muted);margin-top:19px}.page-guide{border:1px solid #dce4d4;border-radius:13px;background:#f2f5ed;padding:23px}.page-guide h2{font-size:13px;font-weight:600;margin-bottom:13px}.page-guide a{display:flex;align-items:center;justify-content:space-between;font-size:12px;padding:11px 0;color:#64745a;border-bottom:1px solid #dfe6d6}.page-guide a:last-child{border-bottom:0}.page-guide a:hover{color:#173c32}.page-guide .icon{width:13px;height:13px}.ad-space{text-align:center;isolation:isolate}.ad-label{display:block;color:#707a68;font-size:9px;letter-spacing:1px;margin-bottom:10px}.ad-placeholder{border:1px dashed #d5ddcd;border-radius:5px;background:#f3f5ef;display:flex;align-items:center;justify-content:center;color:#747f68;font-size:11px;min-height:250px}.ad-sidebar{margin-top:40px;margin-bottom:30px}.local-note{display:flex;align-items:flex-start;gap:10px;padding:13px 5px;color:#64725a}.local-note .icon{width:17px;height:17px;margin-top:2px}.local-note p{font-size:11px;line-height:1.8}.guide-section{margin-top:41px;scroll-margin-top:28px}.guide-eyebrow{font-size:9px;letter-spacing:1.4px;color:#6b7d57;font-weight:600;margin-bottom:14px}.guide-section h2{font-size:25px;font-weight:500;letter-spacing:-.7px;margin-bottom:20px}.guide-section p{font-size:13px;line-height:1.95;color:#62705a}.instruction-list{list-style:none;counter-reset:instruction;margin:0;padding:0;display:grid;gap:15px}.instruction-list li{display:flex;gap:13px;align-items:flex-start;color:#62705a;font-size:13px;line-height:1.8;counter-increment:instruction}.instruction-list li:before{content:counter(instruction);display:grid;place-items:center;flex-shrink:0;width:25px;height:25px;border-radius:50%;background:#eaf0e0;color:#5e7646;font-size:11px}.formula-box{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:13px;background:#edf1e7;border:1px solid #dfe6d5;padding:20px 22px;border-radius:9px;margin:0 0 18px}.formula-box code{font-family:'Cascadia Mono',Consolas,monospace}.worked-example{background:#173c32;color:#fafbf7;padding:28px;border-radius:13px;margin-top:36px;scroll-margin-top:28px}.worked-example>.eyebrow{font-size:8px;color:#c7d9ab;letter-spacing:1.5px}.worked-example h2{font-size:20px;font-weight:500;line-height:1.5;letter-spacing:-.4px;margin:13px 0}.example-answer{padding:15px 0 17px;border-bottom:1px solid #ffffff25;color:#d5f478;font-size:21px;line-height:1.6}.worked-example p{margin-top:16px;font-size:12px;color:#cbd7c5;line-height:1.95}.faq-section details{border-bottom:1px solid #dfe5d7;padding:0}.faq-section summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:18px;font-size:13px;line-height:1.8;padding:18px 0}.faq-section summary::-webkit-details-marker{display:none}.faq-section summary:focus-visible{outline:2px solid #739c45;outline-offset:4px}.faq-section summary .icon{width:17px;height:17px;transition:transform .2s}.faq-section details[open] summary .icon{transform:rotate(180deg)}.faq-section details p{padding-bottom:18px;font-size:12px;line-height:1.9}.ad-content{max-width:820px;margin:54px auto 0;padding-top:10px}.ad-content .ad-placeholder{min-height:110px}.related-section{padding-top:54px;margin-top:45px;border-top:1px solid #dfe5d6}.related-section .section-heading h2{font-size:29px}.related-section .tool-card{min-height:195px}.new-tab-note{font-size:10px;color:#68765e;margin-top:21px;text-align:center;line-height:1.8}
@media(max-width:1100px){.calculator-layout{gap:30px;grid-template-columns:minmax(0,1fr) 280px}.calculator-workspace{padding:25px}.calculator-heading h1{font-size:39px}.free-badge{display:none}.worked-example{padding:24px}.page-result{padding:22px}}
@media(max-width:850px){.calculator-layout{grid-template-columns:1fr;gap:35px}.calculator-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:25px;align-items:start}.ad-sidebar{margin:0}.page-guide{height:100%}.local-note{grid-column:1/-1;justify-content:center;padding:0}.calculator-heading h1{font-size:36px}.calculator-heading{align-items:flex-start}.page-save{margin-top:25px}.ad-content{margin-top:35px}.related-section .tools-grid{grid-template-columns:repeat(3,1fr)}.related-section .tool-open{padding:18px 16px}.related-section .tool-card p{max-width:100%}.related-section .tool-category{font-size:7px}.related-section .tool-card-top{gap:8px}.related-section .bookmark-button{right:7px;top:9px}.related-section .tool-card h3{font-size:14px}}
@media(max-width:640px){.calculator-main{padding-top:22px;padding-bottom:40px}.breadcrumbs{font-size:10px;gap:8px;margin-bottom:26px}.calculator-heading{display:block;margin-bottom:25px}.calculator-heading .eyebrow{font-size:8px;letter-spacing:1.15px}.calculator-heading h1{font-size:34px;letter-spacing:-1.35px;line-height:1.15;margin:15px 0 14px}.calculator-heading p{font-size:13px;line-height:1.85}.page-save{margin-top:18px;padding:9px 12px;font-size:10px}.calculator-workspace{padding:22px 19px;border-radius:13px}.workspace-top{gap:11px;margin-bottom:25px}.workspace-top h2{font-size:18px}.workspace-top p{font-size:10px}.workspace-top .tool-icon{width:38px;height:38px}.calculator-workspace .dialog-fields{gap:17px;grid-template-columns:1fr}.calculator-workspace .dialog-field{font-size:12px}.calculator-workspace .dialog-field input,.calculator-workspace .dialog-field select,.calculator-workspace .dialog-field textarea{font-size:16px;padding:13px 11px}.calculation-actions{gap:13px;margin-top:22px}.calculation-actions .button-dark{flex:1;min-width:0;padding:14px 16px}.reset-button{font-size:11px;padding:12px 7px}.page-result{padding:19px 16px;margin-top:23px}.page-result-top{gap:9px}.page-result-top>span{font-size:8px;letter-spacing:1px;line-height:1.7}.page-result-top button{font-size:9px}.page-result output{font-size:36px;margin:12px 0}.page-result p{font-size:11px;line-height:1.85}.page-assumption{font-size:10px;line-height:1.9}.calculator-sidebar{grid-template-columns:1fr;gap:25px;max-width:100%}.page-guide{padding:22px}.ad-sidebar{max-width:300px;width:100%;margin:10px auto 0}.local-note{font-size:10px}.guide-section{margin-top:32px}.guide-section h2{font-size:23px;line-height:1.4;letter-spacing:-.7px;margin-bottom:17px}.guide-eyebrow{font-size:8px}.instruction-list{gap:16px}.instruction-list li{font-size:12px;line-height:1.9;gap:12px}.guide-section p{font-size:12px;line-height:1.95}.formula-box{font-size:11px;padding:17px 15px;line-height:1.9}.worked-example{margin-top:30px;padding:23px 20px}.worked-example h2{font-size:18px;line-height:1.6}.example-answer{font-size:18px}.worked-example p{font-size:11px;line-height:1.9}.faq-section summary{font-size:12px;padding:17px 0}.faq-section details p{font-size:11px}.ad-content{margin-top:40px}.ad-content .ad-placeholder{min-height:100px}.related-section{padding-top:34px;margin-top:35px}.related-section .section-heading h2{font-size:27px}.related-section .section-heading>.text-button{display:inline-flex}.related-section .tools-grid{grid-template-columns:1fr}.related-section .tool-open{padding:21px}.related-section .tool-card h3{font-size:17px}.related-section .tool-category{font-size:9px}.related-section .tool-card-top{gap:11px}.related-section .bookmark-button{right:16px;top:20px}.new-tab-note{font-size:10px;max-width:300px;margin:20px auto 0}}
.page-result.has-details output,.page-result.has-details>p{display:none}.result-details{margin-top:16px}.result-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.result-tile{display:flex;flex-direction:column;gap:5px;padding:17px 18px 15px;background:var(--white);border:1px solid #dfe9d0;border-radius:10px}.result-tile strong{font-size:40px;font-weight:400;letter-spacing:-1px;line-height:1;font-variant-numeric:tabular-nums}.result-tile span{font-size:10px;letter-spacing:1.2px;text-transform:uppercase;color:#566b43;font-weight:600}.result-facts{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:10px}.result-facts li{display:flex;align-items:center;gap:10px;font-size:13px;line-height:1.5;color:var(--text)}.result-facts .icon{width:18px;height:18px;color:#5b7345}.result-totals{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px;margin-top:18px;padding-top:15px;border-top:1px solid #dfe9d0;font-size:12px;color:#5d704d;font-variant-numeric:tabular-nums}.result-totals span:not(:first-child)+span::before{content:"·";margin-right:14px;color:#a7b996}.result-totals-label{font-size:9px;letter-spacing:1.5px;text-transform:uppercase;font-weight:600;color:#566b43}
@media(max-width:640px){.result-tiles{gap:8px}.result-tile{padding:13px 12px 12px}.result-tile strong{font-size:30px}.result-tile span{font-size:9px;letter-spacing:.8px}.result-facts li{font-size:12px;align-items:flex-start}.result-facts .icon{margin-top:1px}.result-totals{font-size:11px;gap:4px 10px}.result-totals span:not(:first-child)+span::before{margin-right:10px}.result-totals-label{flex-basis:100%}}
.field-label-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:22px}.field-today{display:inline-flex;align-items:center;gap:6px;background:var(--soft);color:#4f6a3b;border:1px solid #dfe9d0;border-radius:999px;padding:4px 10px;font-size:11px;white-space:nowrap}.field-today:hover{background:#e5eed8}.field-today .icon{width:13px;height:13px}.field-hint{font-size:11px;line-height:1.5;color:var(--muted)}.calculator-workspace input[type=date]{font-variant-numeric:tabular-nums;cursor:text}.calculator-workspace .dialog-field input:hover{border-color:#6f8559}.calculator-workspace .dialog-field input:focus-visible{outline:none;border-color:#709c38;box-shadow:0 0 0 3px #e3efcf}.calculator-workspace .dialog-field input:user-invalid{border-color:#d9a58f}.live-status{display:inline-flex;align-items:center;gap:9px;font-size:12px;color:#5b7345}.live-dot{width:8px;height:8px;border-radius:50%;background:#8bc34a;box-shadow:0 0 0 4px #e3efcf}.calculation-actions:has(.live-status){justify-content:space-between;margin-top:20px}.page-result{transition:opacity .15s ease}.page-result.is-stale{opacity:.45}
@media(prefers-reduced-motion:reduce){.page-result{transition:none}}
@media(max-width:640px){.field-hint{font-size:10px}.field-today{font-size:10px;padding:4px 9px}.live-status{font-size:11px}}
.result-stage{display:flex;align-items:center;gap:16px;margin-bottom:16px}.stage-character{width:72px;height:72px;flex-shrink:0;border-radius:50%;box-shadow:0 0 0 4px var(--white),0 0 0 5px #dfe9d0}.result-stage-text{display:flex;flex-direction:column;gap:4px;min-width:0}.result-stage-text strong{font-size:20px;font-weight:600;letter-spacing:-.4px}.result-stage-text span{font-size:12px;color:#5d704d}.result-stage.is-new .stage-character{animation:stage-pop .35s cubic-bezier(.34,1.56,.64,1)}
@keyframes stage-pop{from{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.result-stage.is-new .stage-character{animation:none}}
@media(max-width:640px){.result-stage{gap:13px;margin-bottom:14px}.stage-character{width:58px;height:58px}.result-stage-text strong{font-size:17px}.result-stage-text span{font-size:11px}}
.is-centered .calculator-heading{flex-direction:column;align-items:center;text-align:center;gap:20px;max-width:760px;margin:6px auto 30px}.is-centered .calculator-heading .eyebrow{justify-content:center}.is-centered .calculator-heading p{margin:0 auto}.is-centered .page-save{margin:0 auto}.calculator-stage{max-width:760px;margin:0 auto 64px}.is-centered .breadcrumbs{justify-content:center}
@media(max-width:850px){.is-centered .calculator-heading{align-items:center}.is-centered .page-save{margin-top:0}}
@media(max-width:640px){.is-centered .calculator-heading{display:flex;gap:16px;margin-bottom:22px}.is-centered .page-save{margin-top:0}.calculator-stage{margin-bottom:44px}}
.is-centered .calculator-column>:first-child{margin-top:0;padding-top:0}
.calculator-stage{max-width:1060px;margin:0 auto 52px}.is-centered .calculator-heading{margin-bottom:46px}
@media(min-width:851px){.is-centered .calculator-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);grid-template-rows:auto auto 1fr;grid-template-areas:"top result" "form result" "note result";column-gap:34px;align-items:start;padding:28px 30px}.is-centered .workspace-top{grid-area:top;margin-bottom:22px}.is-centered #calculator-form{grid-area:form}.is-centered .page-result{grid-area:result;margin-top:0}.is-centered .page-assumption{grid-area:note;margin-top:16px}.is-centered .calculation-actions{margin-top:16px}.is-centered .calculator-workspace .dialog-fields{gap:16px}}
.calculator-main.is-centered{padding-top:28px}
@media(min-width:851px){.is-centered .calculator-workspace{padding:24px 28px}.is-centered .stage-character{width:62px;height:62px}.is-centered .result-stage{margin-bottom:14px}.is-centered .page-result{padding:20px 22px}}
.workspace-top .page-save{margin:0 0 0 auto;padding:8px 12px;align-self:flex-start}
.page-result .result-totals{color:var(--ink);font-weight:600}.result-totals-label{color:#3f5a30}.result-totals span:not(:first-child)+span::before{color:#6f8a58}
.workspace-top .page-save{background:var(--lime);border:1px solid #bfdf5c;color:var(--ink);font-weight:600;font-size:12px;padding:9px 14px;cursor:pointer;box-shadow:0 2px 0 #b3d34f;transition:background .15s ease,color .15s ease,border-color .15s ease,transform .1s ease,box-shadow .1s ease}.workspace-top .page-save:hover{background:#c8ec5e}.workspace-top .page-save:active{transform:translateY(2px);box-shadow:0 0 0 #b3d34f}.workspace-top .page-save .icon{width:16px;height:16px;stroke-width:2}.workspace-top .page-save[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff;box-shadow:0 2px 0 #0d261f}.workspace-top .page-save[aria-pressed=true]:hover{background:#244e40}.workspace-top .page-save[aria-pressed=true] .icon{fill:var(--lime);stroke:var(--lime)}
@media(prefers-reduced-motion:reduce){.workspace-top .page-save{transition:none}.workspace-top .page-save:active{transform:none}}
.is-centered .field-today,.is-centered .reset-button,.is-centered .page-result-top #copy-result{display:inline-flex;align-items:center;gap:6px;background:var(--white);border:1px solid #a9c58a;color:var(--ink);font-weight:600;border-radius:8px;cursor:pointer;box-shadow:0 2px 0 #c9dbb3;transition:background .15s ease,border-color .15s ease,transform .1s ease,box-shadow .1s ease}
.is-centered .field-today{font-size:11px;padding:5px 10px}.is-centered .reset-button{font-size:12px;padding:8px 16px}.is-centered .page-result-top #copy-result{font-size:11px;padding:6px 11px}
.is-centered .field-today:hover,.is-centered .reset-button:hover,.is-centered .page-result-top #copy-result:hover{background:#eef6e2;border-color:#8bb065;text-decoration:none}
.is-centered .field-today:active,.is-centered .reset-button:active,.is-centered .page-result-top #copy-result:active{transform:translateY(2px);box-shadow:0 0 0 #c9dbb3}
.is-centered .field-today .icon,.is-centered .page-result-top #copy-result .icon{width:14px;height:14px;stroke-width:2}
@media(prefers-reduced-motion:reduce){.is-centered .field-today,.is-centered .reset-button,.is-centered .page-result-top #copy-result{transition:none}.is-centered .field-today:active,.is-centered .reset-button:active,.is-centered .page-result-top #copy-result:active{transform:none}}
.is-centered input[type=date]::-webkit-calendar-picker-indicator{cursor:pointer;width:18px;height:18px;padding:7px;margin-left:8px;border-radius:8px;border:1px solid #a9c58a;color:transparent;opacity:1;background:#e3efcf url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173C32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E") center/17px no-repeat;box-shadow:0 2px 0 #c9dbb3;transition:background-color .15s ease,transform .1s ease,box-shadow .1s ease}
.is-centered input[type=date]::-webkit-calendar-picker-indicator:hover{background-color:#d3e7b5}
.is-centered input[type=date]::-webkit-calendar-picker-indicator:active{transform:translateY(2px);box-shadow:0 0 0 #c9dbb3}
.is-centered .calculator-workspace input[type=date]{padding-top:9px;padding-bottom:9px}
@media(prefers-reduced-motion:reduce){.is-centered input[type=date]::-webkit-calendar-picker-indicator{transition:none}.is-centered input[type=date]::-webkit-calendar-picker-indicator:active{transform:none}}
.page-result .result-totals{background:var(--ink);color:#fff;border:0;border-radius:10px;padding:13px 16px;margin-top:16px}.page-result .result-totals-label{color:var(--lime)}.page-result .result-totals span:not(:first-child)+span::before{color:#8fb36a}
@media(max-width:640px){.page-result .result-totals{padding:12px 14px}}
.result-details{container-type:inline-size}
@container (max-width:420px){.page-result .result-totals-label{flex-basis:100%}.page-result .result-totals{gap:5px 10px}.page-result .result-totals span:not(:first-child)+span::before{margin-right:10px}}
.birthday-countdown{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;padding:10px 12px 10px 14px;background:var(--white);border:1px solid #dfe9d0;border-radius:10px}.countdown-head{display:flex;align-items:center;gap:10px;min-width:0}.countdown-head .icon{width:22px;height:22px;color:#5b7345}.countdown-text{display:flex;flex-direction:column;gap:2px;min-width:0}.countdown-text strong{font-size:13px;font-weight:600;color:var(--ink)}.countdown-text span{font-size:11px;color:#5d704d}.countdown-units{display:flex;gap:5px;flex-shrink:0}.countdown-unit{display:flex;flex-direction:column;align-items:center;min-width:40px;padding:5px 4px 4px;background:#f1f8e2;border-radius:7px}.countdown-unit strong{font-size:17px;font-weight:600;line-height:1.1;color:var(--ink);font-variant-numeric:tabular-nums}.countdown-unit small{font-size:8px;letter-spacing:.8px;text-transform:uppercase;font-weight:600;color:#566b43}.birthday-countdown+.result-facts{margin-top:12px}
@container (max-width:420px){.birthday-countdown{flex-wrap:wrap}.countdown-units{width:100%}.countdown-unit{flex:1}}
@container (max-width:420px){.birthday-countdown{gap:8px;padding:9px 10px;margin-top:12px}.countdown-head .icon{width:18px;height:18px}.countdown-text{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:0 8px}.countdown-unit{padding:3px 4px}.countdown-unit strong{font-size:15px}.birthday-countdown+.result-facts{margin-top:10px}.result-stage{margin-bottom:12px}.result-tile{padding-top:13px;padding-bottom:11px}}
.stage-character .char-head{transform-box:view-box;transform-origin:32px 47px;animation:char-sway 3.2s ease-in-out infinite alternate}.stage-character .char-eyes{transform-box:fill-box;transform-origin:center;animation:char-blink 4.2s infinite}.stage-character .char-body{transform-box:view-box;transform-origin:32px 64px;animation:char-breathe 3.2s ease-in-out infinite alternate}
.stage-character[data-stage=baby] .char-head{animation:char-wobble 2.2s ease-in-out infinite alternate}.stage-character[data-stage=baby] .char-curl{transform-box:fill-box;transform-origin:20% 100%;animation:char-curl 1.1s ease-in-out infinite alternate}
.stage-character[data-stage=child] .char-head{animation:char-bounce 1.6s ease-in-out infinite}
.stage-character[data-stage=teen] .char-head{animation:char-nod .55s ease-in-out infinite alternate}.stage-character[data-stage=teen] .char-body{animation-duration:1.1s}
.stage-character[data-stage=senior] .char-head{animation-duration:4.6s;animation-name:char-sway-soft}.stage-character[data-stage=senior] .char-eyes{animation-duration:5.4s}
@keyframes char-sway{from{transform:rotate(-3deg)}to{transform:rotate(3deg)}}@keyframes char-sway-soft{from{transform:rotate(-1.8deg)}to{transform:rotate(1.8deg)}}@keyframes char-wobble{from{transform:rotate(-6deg)}to{transform:rotate(6deg)}}@keyframes char-curl{from{transform:rotate(-14deg)}to{transform:rotate(12deg)}}@keyframes char-bounce{0%,100%{transform:translateY(0) rotate(0)}30%{transform:translateY(-2px) rotate(-2deg)}60%{transform:translateY(0) rotate(2deg)}}@keyframes char-nod{from{transform:rotate(0) translateY(0)}to{transform:rotate(4deg) translateY(1px)}}@keyframes char-blink{0%,91%,100%{transform:scaleY(1)}94%{transform:scaleY(.1)}97%{transform:scaleY(1)}}@keyframes char-breathe{from{transform:scaleY(1)}to{transform:scaleY(1.025)}}
@media(prefers-reduced-motion:reduce){.stage-character .char-head,.stage-character .char-eyes,.stage-character .char-body,.stage-character .char-curl{animation:none}}
.result-facts .fact-label{font-size:9px;letter-spacing:1.2px;text-transform:uppercase;font-weight:600;color:#566b43;margin-right:10px}.result-facts li strong{font-weight:600;color:var(--ink)}
.result-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.is-centered .page-result-top #share-card{display:inline-flex;align-items:center;gap:6px;background:var(--ink);border:1px solid var(--ink);color:#fff;font-weight:600;font-size:11px;padding:6px 11px;border-radius:8px;cursor:pointer;box-shadow:0 2px 0 #0d261f;transition:background .15s ease,transform .1s ease,box-shadow .1s ease}.is-centered .page-result-top #share-card:hover{background:#244e40}.is-centered .page-result-top #share-card:active{transform:translateY(2px);box-shadow:0 0 0 #0d261f}.is-centered .page-result-top #share-card .icon{width:14px;height:14px;stroke-width:2;color:var(--lime)}
.card-dialog{width:min(460px,calc(100% - 32px));padding:28px}.card-dialog h2{font-size:26px}.card-dialog .dialog-description{margin-bottom:18px}.card-preview{aspect-ratio:1080/1350;max-height:calc(100dvh - 330px);margin:0 auto;border-radius:14px;overflow:hidden;background:var(--meadow,#edf4e2) linear-gradient(110deg,#edf4e2 30%,#f6faef 50%,#edf4e2 70%) 0 0/200% 100%;animation:card-loading 1.2s linear infinite;border:1px solid #dfe9d0}.card-preview img{display:block;width:100%;height:100%;object-fit:contain}.card-preview:has(img[src]){animation:none;background:#fafbf7}.card-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.card-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 14px;font-size:13px;font-weight:600;border-radius:9px;cursor:pointer}.card-actions .icon{width:17px;height:17px;stroke-width:2}.card-share{background:var(--lime);color:var(--ink);border:1px solid #bfdf5c;box-shadow:0 2px 0 #b3d34f}.card-share:hover{background:#c8ec5e}.card-actions button:disabled{opacity:.5;cursor:progress}
@keyframes card-loading{to{background-position:-200% 0}}
@media(prefers-reduced-motion:reduce){.card-preview{animation:none}.is-centered .page-result-top #share-card{transition:none}}
@media(max-width:640px){.card-dialog{padding:22px 18px}.card-dialog h2{font-size:22px}.card-preview{max-height:calc(100dvh - 300px)}}
.result-zodiac{display:flex;align-items:center;gap:10px;margin-left:auto;padding:6px 12px 6px 6px;background:var(--white);border:1px solid #dfe9d0;border-radius:999px;flex-shrink:0}.zodiac-image{width:44px;height:44px;flex-shrink:0}.result-zodiac-text{display:flex;flex-direction:column;line-height:1.2}.result-zodiac-text small{font-size:8px;letter-spacing:1.2px;text-transform:uppercase;font-weight:600;color:#566b43}.result-zodiac-text strong{font-size:14px;font-weight:600;color:var(--ink)}.result-zodiac-text span{font-size:10px;color:#5d704d}.result-stage.is-new .zodiac-image{animation:stage-pop .35s cubic-bezier(.34,1.56,.64,1)}
@container (max-width:420px){.result-zodiac{padding:4px 10px 4px 4px;gap:8px}.zodiac-image{width:36px;height:36px}.result-zodiac-text span{display:none}.result-stage-text strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){.result-stage.is-new .zodiac-image{animation:none}}
@media(min-width:851px){.is-centered .page-result{padding:18px 22px}.is-centered .result-details{margin-top:12px}.is-centered .result-stage{margin-bottom:12px}.is-centered .birthday-countdown{margin-top:12px}}
.page-result-top>span{white-space:nowrap}
@media(max-width:640px){.result-actions{flex-wrap:nowrap;gap:6px}.is-centered .page-result-top #copy-result,.is-centered .page-result-top #share-card{padding:6px 9px;font-size:10px;gap:5px}}
@container (max-width:340px){.result-stage{flex-wrap:wrap;row-gap:10px}.result-zodiac{margin-left:0;flex-basis:100%;border-radius:12px}.result-zodiac-text{flex-direction:row;align-items:baseline;gap:8px}.result-zodiac-text span{display:inline}}
.card-dialog{width:min(780px,calc(100% - 32px))}.card-layout{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:26px;align-items:start}.card-layout .card-preview{max-height:calc(100dvh - 230px);width:100%}.card-preview.is-drawing img[src]{opacity:.55;transition:opacity .15s ease}.card-side{display:flex;flex-direction:column;gap:18px;min-width:0}
.card-personal{border:1px solid #dfe9d0;border-radius:14px;padding:16px 18px 18px;background:var(--white);display:flex;flex-direction:column;gap:16px;margin:0;min-width:0}.card-personal legend{font-size:10px;letter-spacing:1.4px;text-transform:uppercase;font-weight:700;color:#5d7550;padding:0 6px;margin-left:-6px}
.card-field{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#52654b;min-width:0}.card-field input[type=text]{width:100%;padding:11px 12px;font-size:15px;color:var(--ink);background:#fdfefa;border:1px solid #82976d;border-radius:8px}.card-field input[type=text]:focus-visible{outline:none;border-color:#709c38;box-shadow:0 0 0 3px #e3efcf}.card-field small{font-size:11px;line-height:1.5;color:var(--muted)}
.card-photo-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.card-photo-thumb{width:46px;height:46px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;background:#edf4e2 center/cover no-repeat;border:1px dashed #a9c58a;color:#7f9a68}.card-photo-thumb .icon{width:18px;height:18px}.card-photo-thumb.has-photo{border:2px solid var(--white);box-shadow:0 0 0 1px #a9c58a}.card-photo-thumb.has-photo .icon{display:none}
.card-photo-button,.card-photo-remove{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer;color:var(--ink);background:var(--white);border:1px solid #a9c58a;box-shadow:0 2px 0 #c9dbb3}.card-photo-button:hover,.card-photo-remove:hover{background:#eef6e2}.card-photo-button .icon{width:15px;height:15px;stroke-width:2}.card-photo-remove{color:#8a3b23;border-color:#e2b8a6;box-shadow:0 2px 0 #f0d3c6}.card-photo-remove:hover{background:#fff3ec}
.card-photo-row:has(#card-photo:focus-visible) .card-photo-button{outline:3px solid #709c38;outline-offset:3px}
.card-side .card-actions{margin-top:0}
@media(max-width:700px){.card-layout{grid-template-columns:1fr;gap:16px}.card-layout .card-preview{max-height:42dvh;width:auto}.card-side{gap:14px}.card-personal{padding:14px}}
@media(max-width:700px){.card-layout .card-preview{max-height:33dvh}.card-dialog .dialog-description{margin-bottom:14px}}
.result-generation b{font-weight:600;color:var(--ink)}
.birthday-countdown{border:2px solid var(--ink);box-shadow:0 3px 0 var(--ink)}.countdown-text strong{font-size:14px;font-weight:800;letter-spacing:-.2px}.countdown-text span{font-weight:600;color:var(--ink)}.countdown-head .icon{color:var(--ink);stroke-width:2.2}.countdown-unit{background:var(--lime);border:1px solid #b9dc55}.countdown-unit strong{font-weight:800}.countdown-unit small{font-weight:700;color:var(--ink)}
.guide-section p+p,.guide-section p+.guide-table,.guide-section .guide-table+p,.guide-section .guide-list+p,.guide-section .instruction-list+p,.guide-section p+.instruction-list,.guide-section p+.guide-list,.guide-section p+.formula-box{margin-top:14px}.guide-section strong{color:var(--ink);font-weight:600}.guide-section p code{font-size:12px;background:#edf1e7;border-radius:5px;padding:1px 6px}
.guide-list{margin:0;padding-left:20px;display:grid;gap:9px;font-size:13px;line-height:1.8;color:#62705a}.guide-list li::marker{color:#86a451}
.guide-table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;border:1px solid #dfe6d5;border-radius:11px;overflow:hidden;background:var(--white)}.guide-table th{text-align:left;font-size:10px;letter-spacing:1.2px;text-transform:uppercase;font-weight:700;color:#5d7550;background:#edf1e7;padding:11px 16px}.guide-table td{padding:10px 16px;border-top:1px solid #e8ede2;color:var(--text)}.guide-table td:first-child{color:var(--ink);font-weight:600}.guide-table tbody tr:nth-child(even) td{background:#fafbf7}
@media(max-width:640px){.guide-table{font-size:12px}.guide-table th,.guide-table td{padding:9px 11px}.guide-list{font-size:12px}}
.dialog-field[hidden]{display:none}
.mode-picker{border:0;margin:0;padding:0;min-width:0;grid-column:1/-1}.mode-picker legend{font-size:12px;color:#52654b;margin-bottom:10px;padding:0}.mode-options{display:flex;flex-wrap:wrap;gap:7px}.mode-option{position:relative;cursor:pointer}.mode-option input{position:absolute;opacity:0;width:100%;height:100%;inset:0;margin:0;cursor:pointer}.mode-option span{display:inline-flex;align-items:center;padding:8px 13px;border-radius:999px;border:1px solid #a9c58a;background:var(--white);color:var(--ink);font-size:12px;font-weight:600;box-shadow:0 2px 0 #c9dbb3;transition:background .15s ease,color .15s ease,border-color .15s ease}.mode-option:hover span{background:#eef6e2}.mode-option input:checked+span{background:var(--ink);border-color:var(--ink);color:#fff;box-shadow:0 2px 0 #0d261f}.mode-option input:focus-visible+span{outline:3px solid #709c38;outline-offset:3px}
.page-result.has-breakdown>p{display:none}.page-result.has-breakdown output{margin-bottom:4px}
.percent-sentence{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:14px!important;line-height:1.5!important;color:var(--ink)!important;font-weight:600;margin:0}.percent-trend{display:inline-flex;align-items:center;gap:4px;padding:3px 9px 3px 7px;border-radius:999px;font-size:11px;font-weight:700}.percent-trend .icon{width:13px;height:13px;stroke-width:2.4}.percent-trend.is-up{background:#d5f478;color:var(--ink)}.percent-trend.is-down{background:#f8d9cc;color:#7a2e18}.percent-trend.is-down .icon{transform:rotate(90deg)}
.percent-bar{height:12px;margin-top:16px;border-radius:999px;background:var(--white);border:1px solid #c9dbb3;overflow:hidden}.percent-bar-fill{display:block;height:100%;background:var(--ink);border-radius:999px;transition:width .3s ease}.percent-scale{display:flex;justify-content:space-between;font-size:10px;color:#566b43;margin-top:5px}
.percent-steps-label{display:block;margin-top:16px;font-size:9px;letter-spacing:1.4px;text-transform:uppercase;font-weight:700;color:#566b43}.percent-steps{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}.percent-steps li{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px;color:var(--ink);background:var(--white);border:1px solid #dfe9d0;border-radius:8px;padding:8px 12px;overflow-wrap:anywhere}
.percent-extras{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.percent-extra{display:flex;flex-direction:column;gap:2px;padding:8px 12px;border-radius:10px;background:var(--ink);color:#fff;min-width:110px}.percent-extra small{font-size:10px;color:var(--lime);font-weight:600}.percent-extra strong{font-size:16px;font-weight:700;font-variant-numeric:tabular-nums}
@media(prefers-reduced-motion:reduce){.percent-bar-fill,.mode-option span{transition:none}}
@media(max-width:640px){.mode-option span{padding:7px 11px;font-size:11px}.percent-steps li{font-size:12px}}
/* Loan: principal/interest use a validated pair (dataviz validator: CVD ΔE 23.9, ≥3:1 on white and #edf4e2). */
:root{--principal:#2e8b57;--interest:#6250d6}
.key{display:inline-block;width:10px;height:10px;border-radius:3px;flex-shrink:0}.key-principal{background:var(--principal)}.key-interest{background:var(--interest)}
.loan-extra-line{font-size:12px!important;font-weight:600;color:var(--ink)!important;margin:0 0 4px!important}
.loan-split{display:flex;gap:2px;height:14px;margin-top:12px}.loan-split-segment{display:block;min-width:4px;height:100%}.loan-split-segment:first-child{border-radius:4px 0 0 4px}.loan-split-segment:last-child{border-radius:0 4px 4px 0}.loan-split-segment:only-child{border-radius:4px}.loan-split-segment.is-principal{background:var(--principal)}.loan-split-segment.is-interest{background:var(--interest)}
.loan-legend{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px 18px}.loan-legend li{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--text)}.loan-legend strong{color:var(--ink);font-weight:700;font-variant-numeric:tabular-nums}.loan-legend small{color:#566b43;font-size:11px}
.loan-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}.loan-stat{display:flex;flex-direction:column;gap:3px;padding:12px 13px;background:var(--white);border:1px solid #dfe9d0;border-radius:10px;min-width:0}.loan-stat small{font-size:9px;letter-spacing:1.2px;text-transform:uppercase;font-weight:700;color:#566b43}.loan-stat strong{font-size:17px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.loan-stat span{font-size:11px;color:#5d704d}
.loan-saving{display:flex;align-items:center;gap:10px;margin-top:12px!important;padding:10px 13px;border-radius:10px;background:var(--ink);color:#fff!important;font-size:12px!important;line-height:1.5!important;font-weight:600}.loan-saving .icon{width:18px;height:18px;color:var(--lime);flex-shrink:0}
@container (max-width:420px){.loan-stats{grid-template-columns:1fr 1fr}.loan-stat:last-child{grid-column:1/-1}}
.schedule-card{margin-top:22px;background:var(--white);border:1px solid #dce4d4;border-radius:17px;padding:26px 28px;transition:opacity .15s ease}.schedule-card.is-stale{opacity:.45}.schedule-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap;margin-bottom:14px}.schedule-head h2{font-size:22px;font-weight:600;letter-spacing:-.5px;margin:8px 0 6px}.schedule-head p{font-size:12px;color:var(--muted);line-height:1.6;max-width:560px}
.schedule-legend{list-style:none;margin:0;padding:0;display:flex;gap:16px;font-size:12px;color:var(--text)}.schedule-legend li{display:flex;align-items:center;gap:7px}
.schedule-chart{position:relative;width:100%}.schedule-svg{display:block;width:100%;height:auto;overflow:visible}.chart-grid{stroke:#e8ede2;stroke-width:1}.chart-baseline{stroke:#c9d3be;stroke-width:1}.chart-axis{font-size:11px;fill:#566b43;font-family:Arial,Helvetica,sans-serif}.chart-principal{fill:var(--principal)}.chart-interest{fill:var(--interest)}.chart-hit{fill:transparent}.chart-bar{cursor:default;outline:none}.chart-bar.is-active .chart-hit,.chart-bar:focus-visible .chart-hit{fill:#173c320d}.chart-bar:focus-visible .chart-hit{stroke:#709c38;stroke-width:2}
.chart-tip{position:absolute;z-index:2;pointer-events:none;display:flex;flex-direction:column;gap:4px;min-width:170px;padding:10px 12px;background:var(--white);border:1px solid #c9d3be;border-radius:10px;box-shadow:0 10px 30px #173c321f;font-size:12px}.chart-tip[hidden]{display:none}.chart-tip-title{font-size:11px;font-weight:700;color:#566b43}.chart-tip-row{display:flex;align-items:center;gap:7px}.chart-tip-row i{display:inline-block;width:12px;height:2px;border-radius:1px}.chart-tip-row i.key-principal{background:var(--principal)}.chart-tip-row i.key-interest{background:var(--interest)}.chart-tip-row strong{color:var(--ink);font-variant-numeric:tabular-nums}.chart-tip-row small{color:#5d704d}.chart-tip-note{color:#5d704d;font-size:11px;border-top:1px solid #e8ede2;padding-top:5px;margin-top:2px}
.schedule-table-wrap{margin-top:18px;max-height:420px;overflow:auto;border-radius:11px}.schedule-table{font-variant-numeric:tabular-nums}.schedule-table th{position:sticky;top:0;z-index:1}.schedule-table td:not(:first-child),.schedule-table th:not(:first-child){text-align:right}
.schedule-toggle{margin-top:14px;display:inline-flex;align-items:center;gap:6px;background:var(--white);border:1px solid #a9c58a;color:var(--ink);font-weight:600;font-size:12px;padding:8px 14px;border-radius:8px;cursor:pointer;box-shadow:0 2px 0 #c9dbb3}.schedule-toggle:hover{background:#eef6e2}
@media(prefers-reduced-motion:reduce){.schedule-card{transition:none}}
@media(max-width:640px){.schedule-card{padding:20px 16px;border-radius:13px}.schedule-head h2{font-size:19px}.schedule-table{font-size:11px}.schedule-table th,.schedule-table td{padding:8px 9px}}
/* Tools with a tall form put the assumptions note under the result instead, so the card fits on a laptop screen. */
@media(min-width:851px){:is(body[data-tool="loan"],body[data-tool="tip"]) .is-centered .calculator-workspace{grid-template-areas:"top result" "form result" "form note"}:is(body[data-tool="loan"],body[data-tool="tip"]) .is-centered .page-assumption{margin-top:12px}}
.loan-extra-line{margin-bottom:0!important}@media(min-width:851px){body[data-tool="loan"] .loan-stats{margin-top:12px}body[data-tool="loan"] .loan-stat{padding:10px 12px}body[data-tool="loan"] .loan-saving{margin-top:10px!important;padding:8px 12px}}
@media(max-width:640px){body[data-tool="loan"] .calculator-workspace .dialog-fields{grid-template-columns:1fr 1fr;gap:14px 10px}body[data-tool="loan"] .calculator-workspace .dialog-field input,body[data-tool="loan"] .calculator-workspace .dialog-field select{padding:11px 10px;font-size:16px}body[data-tool="loan"] .field-hint{font-size:10px;line-height:1.4}}
@media(max-width:640px){body[data-tool="loan"] .calculator-workspace .dialog-field:has(#field-start){grid-column:1/-1}}
.mode-options{gap:6px 5px}.mode-option span{padding:6px 11px;font-size:11.5px}.mode-picker legend{margin-bottom:8px}
/* Quick-pick presets under a field (tip %, discount %, raise %). */
.field-presets{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}.field-preset{background:var(--white);border:1px solid #a9c58a;color:var(--ink);font-weight:600;font-size:11px;padding:5px 10px;border-radius:999px;cursor:pointer;box-shadow:0 2px 0 #c9dbb3}.field-preset:hover{background:#eef6e2}.field-preset[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff;box-shadow:0 2px 0 #0d261f}
/* Share sits next to Copy result, styled like it. */
.is-centered .page-result-top #share-link{display:inline-flex;align-items:center;gap:6px;background:var(--white);border:1px solid #a9c58a;color:var(--ink);font-weight:600;font-size:11px;padding:6px 11px;border-radius:8px;cursor:pointer;box-shadow:0 2px 0 #c9dbb3}.is-centered .page-result-top #share-link:hover{background:#eef6e2}.is-centered .page-result-top #share-link:active{transform:translateY(2px);box-shadow:none}.is-centered .page-result-top #share-link .icon{width:14px;height:14px;stroke-width:2}
@media(max-width:640px){.is-centered .page-result-top #share-link{padding:6px 9px;font-size:10px;gap:5px}}
/* "More percentage calculators" strip under the calculator. */
.tool-family{margin-top:22px;padding:20px 22px;background:var(--white);border:1px solid #dce4d4;border-radius:17px}.tool-family-title{font-size:12px;letter-spacing:1.4px;text-transform:uppercase;font-weight:700;color:#566b43;margin:0 0 12px}.tool-family ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}.tool-family a{display:inline-flex;align-items:center;gap:8px;padding:6px 12px 6px 6px;border:1px solid #dfe9d0;border-radius:999px;background:#fbfcf8;color:var(--ink);font-size:12px;font-weight:600;text-decoration:none;transition:background .15s ease,border-color .15s ease}.tool-family a:hover{background:#eef6e2;border-color:#a9c58a}.tool-family .tool-icon{width:26px;height:26px;border-radius:50%}.tool-family .tool-icon .icon{width:14px;height:14px}
@media(max-width:640px){.tool-family{padding:16px 14px;border-radius:13px}.tool-family a{font-size:11px}}
/* Pie chart maker. */
.pie-wrap{display:flex;align-items:center;gap:20px;margin-top:14px;flex-wrap:wrap}.pie-chart{position:relative;width:190px;height:190px;flex-shrink:0}.pie-svg{display:block;width:100%;height:100%}.pie-slice{cursor:default;outline:none;transition:opacity .15s ease}.pie-svg:has(.pie-slice.is-active) .pie-slice:not(.is-active){opacity:.45}.pie-slice:focus-visible{stroke:#173c32;stroke-width:3}
.pie-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;text-align:center;padding:0 52px}.pie-center strong{font-size:20px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums;line-height:1.1}.pie-center span{font-size:10px;color:#566b43;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.pie-legend{list-style:none;margin:0;padding:0;display:grid;gap:7px;flex:1;min-width:170px}.pie-legend li{display:grid;grid-template-columns:12px minmax(0,1fr) auto;column-gap:8px;align-items:center;font-size:12px;color:var(--text)}.pie-key{width:12px;height:12px;border-radius:3px}.pie-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pie-legend strong{color:var(--ink);font-variant-numeric:tabular-nums}.pie-legend small{grid-column:2/-1;font-size:11px;color:#5d704d;font-variant-numeric:tabular-nums}.pie-legend small:empty{display:none}
.pie-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.pie-download{display:inline-flex;align-items:center;gap:6px;background:var(--white);border:1px solid #a9c58a;color:var(--ink);font-weight:600;font-size:11px;padding:7px 12px;border-radius:8px;cursor:pointer;box-shadow:0 2px 0 #c9dbb3}.pie-download:hover{background:#eef6e2}.pie-download .icon{width:14px;height:14px;stroke-width:2}
@media(prefers-reduced-motion:reduce){.pie-slice,.tool-family a{transition:none}}
/* A wide field with presets puts them beside the input on desktop, saving a row. */
@media(min-width:851px){.is-centered .dialog-field.wide:has(.field-presets){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;align-items:center}.is-centered .dialog-field.wide:has(.field-presets)>.field-label-row,.is-centered .dialog-field.wide:has(.field-presets)>.field-hint{grid-column:1/-1}.is-centered .dialog-field.wide:has(.field-presets) .field-presets{margin-top:0;flex-wrap:nowrap}}
.percent-steps{gap:5px}.percent-steps li{padding:6px 11px}.percent-steps-label{margin-top:14px}
/* Collapsed "More options" for less-used fields. Closed it takes one grid cell; open, it spans the row. */
.more-options{align-self:end;min-width:0}.more-options summary{display:inline-flex;align-items:center;gap:6px;list-style:none;cursor:pointer;font-size:12px;font-weight:600;color:var(--ink);padding:9px 12px;border:1px dashed #a9c58a;border-radius:8px;background:#fbfcf8;margin-bottom:6px}.more-options summary::-webkit-details-marker{display:none}.more-options summary::before{content:"+";font-weight:700;color:#566b43}.more-options[open] summary::before{content:"−"}.more-options summary:hover{background:#eef6e2}.more-options summary:focus-visible{outline:3px solid #709c38;outline-offset:3px}.more-options[open]{grid-column:1/-1}.more-options-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:6px}
@media(max-width:640px){.more-options-fields{grid-template-columns:1fr}}
/* Presets in a field's label row (small, so a half-width field keeps its height). */
.field-label-row .field-presets{margin:0;gap:4px;flex-wrap:nowrap}.field-label-row .field-preset{padding:3px 8px;font-size:10px;box-shadow:0 1px 0 #c9dbb3}
/* Phones: long result labels wrap instead of pushing Copy/Share off-screen. */
@media(max-width:640px){.page-result-top>span{white-space:normal;min-width:0;flex:1}.result-actions{flex-shrink:0}}
/* Phones: the tip form keeps two short fields per row so the answer shows on the first screen. */
@media(max-width:640px){body[data-tool="tip"] .calculator-workspace .dialog-fields{grid-template-columns:1fr 1fr;gap:14px 10px}body[data-tool="tip"] .calculator-workspace .dialog-field input,body[data-tool="tip"] .calculator-workspace .dialog-field select{padding:11px 10px;font-size:16px}body[data-tool="tip"] .field-hint{font-size:10px;line-height:1.4}}
/* Secondary modes: smaller, borderless chips in a "More" row under the main tabs. A selected one turns dark like a tab. */
.mode-more{margin-top:8px;align-items:center;gap:2px 4px}.mode-more-label{font-size:11px;font-weight:700;color:#566b43;margin-right:4px}.mode-more .mode-option span{padding:4px 8px;font-size:11px;border-color:transparent;background:transparent;box-shadow:none;text-decoration:underline;text-decoration-color:#a9c58a;text-underline-offset:3px}.mode-more .mode-option:hover span{background:#eef6e2;text-decoration-color:var(--ink)}.mode-more .mode-option input:checked+span{text-decoration:none}
/* Loan comparison: table first, then bars on one scale. */
.loan-compare{margin-top:12px;font-size:12px}.loan-compare th,.loan-compare td{padding:7px 10px}.loan-compare thead th{text-transform:none;letter-spacing:0;font-size:12px;color:var(--ink)}.loan-compare tbody th{font-weight:600;color:#566b43;text-align:left;font-size:11px}.loan-compare td{text-align:right;font-variant-numeric:tabular-nums}.loan-compare thead th:not(:first-child){text-align:right}.loan-compare td.is-cheaper{font-weight:700;color:var(--ink)}.compare-badge{display:block;margin-top:2px;font-size:9px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:#2e6b45}
.compare-bars{display:grid;gap:7px;margin-top:12px}.compare-bar{display:grid;grid-template-columns:52px 1fr;align-items:center;gap:8px}.compare-bar-name{font-size:11px;font-weight:600;color:var(--text)}.compare-bar .loan-split{margin-top:0;height:12px}.compare-legend{margin-top:8px;font-size:11px}
/* Loan page: the tabs speak for themselves, so the mode question is for screen readers only. */
:is(body[data-tool="loan"],body[data-tool="date"],body[data-tool="length"]) .mode-picker legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.loan-compare th,.loan-compare td{padding:6px 10px}
.compare-bars{margin-top:10px}.compare-legend{margin-top:6px}
/* Loan comparison inputs: one column per loan. */
.input-grid{border:0;margin:0;padding:0;min-width:0;grid-column:1/-1}.input-grid legend{font-size:12px;color:#52654b;margin-bottom:8px;padding:0}.input-grid-scroll{overflow-x:auto}.input-grid table{width:100%;border-collapse:separate;border-spacing:6px 6px;margin:-6px}.input-grid thead th{font-size:11px;font-weight:700;color:var(--ink);text-align:left;padding:0 2px}.input-grid thead small{font-weight:400;color:var(--muted)}.input-grid tbody th{font-size:11px;font-weight:600;color:#52654b;text-align:left;white-space:nowrap;padding-right:4px}.input-grid tbody th select{display:block;margin-top:3px;font-size:11px;padding:3px 4px;border:1px solid #82976d;border-radius:6px;background:#fdfefa;color:var(--ink)}.input-grid input{width:100%;min-width:0;padding:8px 9px;font-size:14px;color:var(--ink);background:#fdfefa;border:1px solid #82976d;border-radius:7px}.input-grid input::placeholder{color:#8a948c}.input-grid input:focus-visible{outline:none;border-color:#709c38;box-shadow:0 0 0 3px #e3efcf}.input-grid .field-hint{display:block;margin-top:4px}
@media(max-width:640px){.input-grid input{font-size:16px;padding:8px 7px}.input-grid tbody th{white-space:normal;max-width:70px}}
/* Loan comparison results. */
.loan-compare-scroll{overflow-x:auto;margin-top:12px}.loan-compare{margin-top:0;font-size:12px;min-width:100%}.loan-compare thead th{vertical-align:bottom}.loan-compare tbody th{max-width:120px;line-height:1.3}.loan-compare td{vertical-align:top}.loan-compare td small{display:block;font-size:10px;color:#5d704d;font-weight:400;white-space:nowrap}.loan-compare td.is-best{font-weight:700;color:var(--ink);background:#f1f8e2!important}.loan-compare td.is-best .icon{width:12px;height:12px;stroke-width:2.6;color:#2e6b45;margin-right:3px;vertical-align:-1px}
.compare-badge{display:block;width:max-content;margin:3px 0 0 auto;padding:1px 6px;border-radius:999px;font-size:8.5px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;background:#e3efcf;color:#2e5a3c}.compare-badge.is-cost{background:var(--ink);color:var(--lime)}
.compare-bars{display:grid;gap:6px;margin-top:12px}.compare-bars-title{font-size:9px;letter-spacing:1.4px;text-transform:uppercase;font-weight:700;color:#566b43}.compare-bar{display:grid;grid-template-columns:minmax(50px,auto) 1fr auto;align-items:center;gap:8px}.compare-bar-name{font-size:11px;font-weight:600;color:var(--text);max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compare-track{height:12px;border-radius:4px;background:var(--white);border:1px solid #dfe9d0;overflow:hidden}.compare-fill{display:block;height:100%;background:var(--interest);border-radius:0 4px 4px 0}.compare-fill.is-best{background:var(--principal)}.compare-bar strong{font-size:11px;font-variant-numeric:tabular-nums;color:var(--ink)}
.input-grid table{border-spacing:0;margin:0}.input-grid th,.input-grid td{padding:3px}.input-grid-scroll{overflow-x:auto;overflow-y:hidden}
.loan-compare tbody th{text-transform:none;letter-spacing:0;font-size:11px;font-weight:600;color:#566b43;background:transparent}.loan-compare thead th{font-size:12px;line-height:1.25}.compare-term{display:block;font-size:10px;font-weight:400;color:#5d704d;white-space:nowrap}.compare-badge{margin-top:4px}
.compare-mini{display:block;height:6px;margin:5px 0 3px auto;width:100%;max-width:110px;border-radius:3px;background:#e8ede2;overflow:hidden}.compare-mini i{display:block;height:100%;margin-left:auto;background:var(--interest);border-radius:3px}.compare-mini.is-best i{background:var(--principal)}
.loan-compare td small{white-space:normal;line-height:1.35}.loan-compare{table-layout:fixed}.loan-compare tbody th{width:28%}
/* Loan comparison, v3: verdict banner and a ranked list. */
.compare-verdict{display:flex;flex-direction:column;gap:3px;margin-top:14px;padding:14px 16px;border-radius:12px;background:var(--ink);color:#fff}.compare-verdict strong{font-size:17px;font-weight:700;letter-spacing:-.2px}.compare-verdict span{font-size:12px;color:var(--lime);font-weight:600}
.page-result .compare-note{margin:10px 0 0!important;font-size:12px!important;line-height:1.5!important;color:var(--text)!important}
.compare-list{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:8px}.compare-item{padding:10px 12px;background:var(--white);border:1px solid #dfe9d0;border-radius:11px}.compare-item.is-best{border:2px solid var(--principal);padding:9px 11px}
.compare-item-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.compare-item-name{display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-items:center;min-width:0}.compare-rank{grid-row:span 2;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:700;background:#e8ede2;color:var(--ink)}.compare-item.is-best .compare-rank{background:var(--principal);color:#fff}.compare-item-name strong{font-size:13px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compare-item-name small{font-size:11px;color:#5d704d}
.compare-item-cost{text-align:right;flex-shrink:0}.compare-item-cost strong{display:block;font-size:16px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums;line-height:1.2}.compare-item-cost small{font-size:10px;color:#5d704d}
.compare-item-bar{height:6px;margin:8px 0 7px;border-radius:3px;background:#eef2e9;overflow:hidden}.compare-item-bar span{display:block;height:100%;border-radius:3px;background:var(--interest)}.compare-item.is-best .compare-item-bar span{background:var(--principal)}
.compare-item-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;font-size:11px;color:var(--text);font-variant-numeric:tabular-nums}.compare-tags{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}.compare-tag{padding:2px 7px;border-radius:999px;font-size:9px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;background:#e3efcf;color:#2e5a3c}.compare-tag.is-cost{background:var(--principal);color:#fff}.compare-extra{font-size:11px;font-weight:600;color:#7a2e18}
.compare-verdict{padding:11px 14px;margin-top:12px}.compare-verdict strong{font-size:15px}.compare-list-title{display:block;margin-top:12px;font-size:9px;letter-spacing:1.3px;text-transform:uppercase;font-weight:700;color:#566b43}.compare-list{margin-top:6px;gap:6px}.compare-item{padding:8px 11px}.compare-item.is-best{padding:7px 10px}
.compare-item-top{align-items:center}.compare-item-name{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}.compare-rank{align-self:center;width:20px;height:20px;font-size:10px}.compare-item-cost{font-size:15px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums;flex-shrink:0}.compare-item-bar{margin:6px 0 5px}
.compare-item{padding:6px 10px}.compare-item.is-best{padding:5px 9px}.compare-verdict{margin-top:10px}.compare-list-title{margin-top:10px}


/* Quick pick dropdown under a date field. */
.date-quick{margin-top:2px;width:100%;padding:6px 9px;font-size:12px;font-weight:600;color:var(--ink);background:#fbfcf8;border:1px dashed #a9c58a;border-radius:8px;cursor:pointer}.date-quick:hover{background:#eef6e2}.date-quick:focus-visible{outline:3px solid #709c38;outline-offset:2px}
.calculator-workspace .dialog-field select.date-quick{padding:6px 9px;font-size:12px;font-weight:600;background:#fbfcf8;border:1px dashed #a9c58a}

/* Length converter results: everyday size, size comparison bars, and the other units in three groups. */
.length-fraction{font-weight:500;color:#45533a}
.length-line{display:flex;align-items:center;gap:6px;margin:4px 0 0;font-size:13px;color:#45533a}.length-everyday svg{width:16px;height:16px;flex:none;fill:none;stroke:#2e8b57;stroke-width:2}
.length-compare{display:grid;grid-template-columns:40px 1fr;align-items:center;gap:3px 8px;margin-top:8px}.length-compare-row{display:contents}.length-compare-label{font-size:11px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}.length-compare-track{height:8px;border-radius:999px;background:rgba(23,38,30,.08);overflow:hidden}.length-compare-fill{display:block;height:100%;border-radius:999px;background:#2e8b57}.length-compare-caption{grid-column:1/-1;font-size:11px;color:#566b43}
.length-steps-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;margin-top:12px}.length-steps-head .percent-steps-label{margin-top:0}.length-estimate{font-size:11px;color:#566b43}
.length-groups{margin-top:10px}.length-groups>.percent-steps-label{margin:0 0 6px}.length-group{display:grid;grid-template-columns:78px 1fr;align-items:start;gap:8px;margin-top:5px}.length-group-name{font-size:11px;font-weight:700;color:#45533a;padding-top:5px}.length-units{display:flex;flex-wrap:wrap;gap:4px}
.length-unit{display:inline-flex;align-items:center;min-width:0;padding:3px 8px;border:1px solid rgba(23,38,30,.12);border-radius:8px;background:#fff;color:var(--ink);font:inherit;text-align:left}.length-unit strong{font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
button.length-unit{cursor:pointer;transition:border-color .15s,box-shadow .15s}button.length-unit:hover{border-color:#2e8b57;box-shadow:0 0 0 2px rgba(46,139,87,.15)}button.length-unit:focus-visible{outline:2px solid #2e8b57;outline-offset:2px}
@media(max-width:640px){.length-group{grid-template-columns:1fr;gap:3px}.length-group-name{padding-top:0}}
@media(min-width:851px){.length-compare{grid-template-columns:34px minmax(0,1fr) 170px}.length-compare-label{grid-column:1}.length-compare-track{grid-column:2}.length-compare-caption{grid-column:3;grid-row:1/3;line-height:1.35}}
/* Average results: stat tiles, a dot plot with mean (solid) and median (dashed) lines, weight bars, and what-if scores. */
.average-insight{margin:4px 0 0;font-size:13px;color:#45533a}
.average-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:12px}.average-stats.is-weighted,.average-stats.is-needed{grid-template-columns:repeat(3,minmax(0,1fr))}.average-stat{display:flex;flex-direction:column;gap:1px;min-width:0;padding:6px 10px;border-radius:10px;background:#fff;border:1px solid rgba(23,38,30,.1)}.average-stat small{font-size:10px;font-weight:600;color:#566b43}.average-stat strong{font-size:14px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.average-plot{margin:12px 0 0}.average-plot-svg{display:block;width:100%;height:auto;max-height:84px}.average-axis{stroke:rgba(23,38,30,.25);stroke-width:1}.average-dot{fill:#2e8b57;fill-opacity:.85}.average-mean-line{stroke:var(--ink);stroke-width:2}.average-median-line{stroke:#6250d6;stroke-width:2;stroke-dasharray:4 3}.average-tick{font-size:9px;fill:#566b43;font-variant-numeric:tabular-nums}
.average-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:11px;font-weight:600;color:#45533a;margin-top:2px}.average-legend span{display:inline-flex;align-items:center;gap:6px}.average-legend span::before{content:"";width:16px;border-top:2px solid var(--ink)}.average-legend .is-median::before{border-top:2px dashed #6250d6}
.average-weights{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:5px}.average-weights li{display:grid;grid-template-columns:minmax(0,9em) 1fr 3.4em;align-items:center;gap:8px;font-size:12px}.average-weight-label{font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.average-weight-track{height:8px;border-radius:999px;background:rgba(23,38,30,.08);overflow:hidden}.average-weight-fill{display:block;height:100%;border-radius:999px;background:#2e8b57}.average-weight-share{text-align:right;color:#566b43;font-variant-numeric:tabular-nums}.average-weight-more{display:block!important;color:#566b43}
.average-whatif{margin-top:12px}.average-whatif .percent-steps-label{margin-top:0}.average-whatif-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.average-whatif-chip{padding:4px 10px;border-radius:999px;background:#fff;border:1px solid rgba(23,38,30,.12);font-size:12px;color:#45533a;font-variant-numeric:tabular-nums}.average-whatif-chip strong{color:var(--ink)}.average-whatif-chip.is-reached{border-color:#2e8b57;background:#e9f5ee}
@media(max-width:640px){.average-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.average-stats.is-weighted,.average-stats.is-needed{grid-template-columns:repeat(3,minmax(0,1fr))}}
.average-facts{margin:6px 0 0;font-size:12px;color:#566b43;font-variant-numeric:tabular-nums}.average-plot{margin-top:8px}.average-plot-svg{max-height:none}.average-whatif-label{align-self:center;font-size:11px;font-weight:600;color:#566b43;margin-right:2px}
.average-legend .average-facts{margin:0 0 0 auto;font-weight:500;color:#566b43}.average-legend .average-facts::before{content:none}.average-stat{padding:5px 10px}
/* On phones, the score-needed target and count sit side by side so the answer stays on screen. */
@media(max-width:640px){body[data-tool="average"] .dialog-fields{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-tool="average"] .dialog-fields>*{grid-column:1/-1}body[data-tool="average"] .dialog-fields>:is(:has(#field-target),:has(#field-remaining)){grid-column:auto}}
body[data-tool="average"] #field-pairs{min-height:120px}
/* Temperature results: a feel badge, and a thermometer bar from cold blue to hot orange with labelled reference ticks. */
.temp-feel{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;background:var(--ink);color:#fff;font-size:11px;font-weight:700}
.temp-scale{margin:10px 0 0;padding-bottom:30px;position:relative}.temp-track{position:relative;height:10px;border-radius:999px;background:linear-gradient(90deg,#2f6fb5 0%,#8cc6e8 25%,#f1d36b 45%,#ef8a3c 70%,#c2410c 100%)}
.temp-marker{position:absolute;top:50%;width:16px;height:16px;border-radius:50%;background:var(--ink);border:3px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transform:translate(-50%,-50%)}.temp-marker.is-below,.temp-marker.is-above{border-color:#f1d36b}
.temp-ticks{position:absolute;left:0;right:0;top:14px;height:28px}.temp-tick{position:absolute;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;line-height:1.2;white-space:nowrap;padding-top:4px;border-left:0}.temp-tick::before{content:"";position:absolute;top:-4px;left:50%;height:6px;border-left:1px solid rgba(23,38,30,.4)}.temp-tick b{font-size:10px;color:var(--ink)}.temp-tick small{font-size:10px;color:#566b43;font-variant-numeric:tabular-nums}
.temp-oven{margin:6px 0 0;font-size:12px;font-weight:600;color:#45533a}
/* Ratio results: the equation with the missing value highlighted, a stacked bar of the parts (2px gaps), its legend, and shares. */
.ratio-equation{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:12px}.ratio-term{min-width:44px;padding:6px 10px;border-radius:10px;background:#fff;border:1px solid rgba(23,38,30,.12);text-align:center;font-size:18px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}.ratio-term.is-missing{background:var(--ink);color:#fff;border-color:var(--ink)}.ratio-sign{font-size:18px;font-weight:700;color:#566b43}
.ratio-bar{display:flex;gap:2px;height:14px;margin-top:12px;border-radius:999px;overflow:hidden}.ratio-segment{display:block;min-width:4px;height:100%}
.ratio-legend{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;color:#45533a}.ratio-legend li,.ratio-shares li{display:inline-flex;align-items:center;gap:6px}.ratio-legend li::before,.ratio-shares li::before{content:"";width:10px;height:10px;border-radius:3px;background:var(--swatch);flex:none}.ratio-legend b{color:var(--ink)}
.ratio-shares{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:4px}.ratio-shares li{display:grid!important;grid-template-columns:10px minmax(0,1fr) auto auto;gap:8px;font-size:13px}.ratio-share-name{font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ratio-shares strong{font-variant-numeric:tabular-nums;color:var(--ink)}.ratio-shares small{font-size:11px;color:#566b43;min-width:8.5em;text-align:right}
/* On phones, the four proportion boxes form a 2 × 2 grid, like A : B over C : D. */
@media(max-width:640px){body[data-tool="ratio"] .dialog-fields{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-tool="ratio"] .dialog-fields>*{grid-column:1/-1}body[data-tool="ratio"] .dialog-fields>:is(:has(#field-a),:has(#field-b),:has(#field-c),:has(#field-d)){grid-column:auto}}
/* Simple interest results: a stacked growth chart (starting amount + interest) in the loan colours. */
.interest-chart{margin:12px 0 0}.interest-chart-svg{display:block;width:100%;height:56px}.interest-bar-principal{fill:var(--principal)}.interest-bar-interest{fill:var(--interest)}
.interest-chart-axis{display:flex;justify-content:space-between;gap:10px;margin-top:4px;font-size:11px;color:#566b43;font-variant-numeric:tabular-nums}
.calculator-workspace .dialog-field select.field-inline-select{width:auto;height:24px;min-height:0;margin-left:auto;padding:2px 26px 2px 10px;font-size:12px;border-radius:8px}
.interest-chart-svg{height:34px}.interest-chart + .loan-legend{margin-top:6px}
:is(body[data-tool="interest"]) .mode-picker legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
/* On phones, the simple interest inputs pair up two to a row so the answer stays on screen. */
@media(max-width:640px){body[data-tool="interest"] .dialog-fields{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-tool="interest"] .dialog-fields>*{grid-column:1/-1}body[data-tool="interest"] .dialog-fields>:is(:has(#field-amount),:has(#field-known),:has(#field-principal),:has(#field-rate),:has(#field-time)){grid-column:auto}body[data-tool="interest"] .dialog-field select:not(.field-inline-select){font-size:14px;padding-right:28px}}
