:root{--ui-focus:#176a62}
:focus-visible{outline:3px solid var(--ui-focus)!important;outline-offset:3px!important}
input,select,textarea{font-size:1rem!important;min-height:44px}button{touch-action:manipulation}button:disabled{cursor:wait;opacity:.65}
main,.panel,.calculator-panel,.input-wrap,.field,.result,.result-card,.metric,.card{min-width:0}.main-value,.net,.metric strong{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.skip-link{position:fixed;left:12px;top:-100px;z-index:20000;padding:12px 18px;background:#153c3b;color:#fff;border-radius:8px}.skip-link:focus{top:12px}
.result-actions{display:flex;gap:10px;flex-wrap:wrap;grid-column:1/-1;margin-top:18px}.result-actions button,.motion-control{min-height:44px;border:1px solid #acbdb8;border-radius:12px;background:#fff;color:#153c3b;padding:10px 16px;font:700 .9rem/1.4 system-ui;cursor:pointer}.result-actions button:first-child{background:#153c3b;color:#fff;border-color:#153c3b}.result-inputs{grid-column:1/-1;margin-top:18px;padding:12px 16px;border:1px solid #c8d6d1;border-radius:12px;background:#f5f8f5;color:#17302f;font-size:.9rem;text-align:left}.result-inputs summary{cursor:pointer;font-weight:750;min-height:24px}.result-inputs ul{padding-left:20px;overflow-wrap:anywhere}.motion-control{margin-top:14px}.copy-fallback{position:fixed;left:-9999px;top:0}.ui-status{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);max-width:min(90vw,560px);z-index:15000;padding:14px 18px;border-radius:14px;background:#153c3b;color:#fff;box-shadow:0 8px 30px #153c3b30;opacity:0;pointer-events:none;transition:opacity .15s}.ui-status.visible{opacity:1}
.reduce-motion *,.reduce-motion *::before,.reduce-motion *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.reduce-motion{scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:700px){.topbar>.back{font-size:.875rem;max-width:140px;white-space:normal}.workspace{padding-left:16px!important;padding-right:16px!important}.calculator-panel,.panel{padding:20px 16px!important}.resolve-tip{display:flex!important;gap:12px!important;align-items:center!important}.resolve-tip img{position:static!important;flex:0 0 48px;width:48px!important;height:auto!important}.resolve-tip p{min-width:0;margin:0!important}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}.result-actions button{flex:1 1 140px}.result-card{padding:20px 16px!important}.field label,.field small,.metric small,.source-note{font-size:.875rem!important}.source-note{line-height:1.5}.intro,.hero{gap:20px!important}.dedicated-hero,.hero{margin-bottom:24px!important}.mobile-menu-button{flex-direction:column;width:44px!important;height:44px!important}}
@media(max-width:380px){.metrics{grid-template-columns:1fr!important}.result-actions{flex-direction:column}.result-actions button{flex:auto}}

@media(max-width:700px){.topbar>.back{display:none}.account-header{flex-wrap:wrap;gap:12px!important;padding:16px!important}.account-header nav{gap:12px!important;flex-wrap:wrap}.account-header button,.account-header a.back{min-height:44px;display:inline-flex;align-items:center}.client-card,.saved-card,.auth-card{min-width:0}.saved-item{grid-template-columns:minmax(0,1fr) auto}.saved-item a{overflow-wrap:anywhere}.client-nav{margin-left:auto}}
.mobile-menu-panel[hidden]{display:none!important}

/* Full-silhouette avatars: no forced height, cropping, or negative offsets. */
img[src="/resolve-avatar.png"]{height:auto!important;object-fit:contain!important;object-position:center!important;border-radius:0!important}
.dedicated-hero-inner{padding:28px 32px!important;display:grid!important;grid-template-columns:minmax(0,1fr) 110px;gap:24px;align-items:center}
.dedicated-hero img{position:static!important;width:110px!important;max-height:180px;mix-blend-mode:normal}
body[data-calculator] .hero{padding:28px!important;display:grid!important;grid-template-columns:minmax(0,1fr) 110px;gap:24px;align-items:center}
body[data-calculator] .hero img{position:static!important;width:110px!important;max-height:180px}
.hero>img[src="/resolve-avatar.png"]{margin:0!important;max-height:240px;flex-shrink:0}
.mascot-card{padding:18px!important;display:grid!important;grid-template-columns:82px minmax(0,1fr);gap:18px}
.mascot-card img{position:static!important;width:82px!important;max-height:130px;mix-blend-mode:normal}
.account-intro img{position:static!important;display:block;width:120px!important;max-height:180px;margin:24px auto 0}
.verdict img{bottom:12px!important;left:16px!important;width:80px!important;max-height:125px}
.gate-avatar img{width:100%!important;max-height:180px}.resolve-walk img{max-height:112px}
.resolve-tip img{width:48px!important;flex:0 0 48px!important;max-height:72px;mix-blend-mode:normal!important}
@media(max-width:700px){.dedicated-hero-inner,body[data-calculator] .hero{padding:22px 18px!important;grid-template-columns:minmax(0,1fr) 72px;gap:14px}.dedicated-hero img,body[data-calculator] .hero img{width:72px!important;max-height:115px}.hero>img[src="/resolve-avatar.png"]{width:82px!important;max-height:130px}.hero h1,.dedicated-hero h1{overflow-wrap:anywhere;line-height:1.12}.mascot-card{grid-template-columns:64px minmax(0,1fr);gap:14px}.mascot-card img{width:64px!important}.account-intro img{width:88px!important;max-height:140px}.resolve-walk img{max-height:94px}.verdict{padding-left:20px!important}.verdict img{position:static!important;display:block!important;width:65px!important;margin:0 auto 14px;max-height:100px}}
.client-welcome img{height:auto!important;bottom:16px!important;right:35px!important;max-height:calc(100% - 32px);object-fit:contain!important}
@media(max-width:760px){.client-welcome{padding:26px 24px!important;display:grid!important;grid-template-columns:minmax(0,1fr) 88px;gap:16px;min-height:0}.client-welcome img{position:static!important;width:88px!important;max-height:none}}

/* Navigation and comfortable spacing across calculator routes. */
.tool-navigation{max-width:980px;margin:12px auto 20px;padding:16px 20px;background:#fff;border:1px solid #d4e1da;border-radius:18px;display:flex;gap:20px;align-items:center;justify-content:space-between;box-shadow:0 6px 22px #153c3b08}.tools-home{color:#153c3b;font-weight:750;text-decoration:none;min-height:44px;display:flex;align-items:center}.tool-jump{display:grid;grid-template-columns:minmax(170px,1fr) auto;gap:8px;align-items:center;max-width:440px;flex:1}.tool-jump label{grid-column:1/-1;font-size:.875rem;font-weight:650;color:#49615e}.tool-jump select{width:100%;min-width:0;border:1px solid #afc4bb;border-radius:10px;padding:10px;background:#f8fbf9;color:#17302f}.tool-jump button{min-height:44px;border:0;border-radius:10px;padding:10px 18px;background:#153c3b;color:#fff;font-weight:750;cursor:pointer}.switcher[hidden]{display:none!important}
.category-toolbar{flex-wrap:wrap!important;gap:8px!important;overflow:visible!important}.category-filter{white-space:normal!important;min-height:44px!important;padding:10px 14px!important;border-radius:12px!important}.category-filter.active{background:#153c3b!important;color:#fff!important}.tool-search{border-color:#a9beb4!important;background:#fff!important}.tool-search input{color:#17302f}.tool-search input::placeholder{color:#536c63;opacity:1}.tool-cards strong{line-height:1.3}.tool-cards span{line-height:1.5}.tool-cards a{border-color:#d4e1da;box-shadow:0 4px 14px #153c3b06}.tool-cards a:hover{border-color:#54877c;box-shadow:0 8px 20px #153c3b12}.category-heading{margin-top:24px}.tools-gallery{scroll-margin-top:24px}.client-nav a{display:inline-flex!important;align-items:center;min-height:44px;padding:9px 13px;background:#eaf3ee;border:1px solid #c6dacf;border-radius:11px}.mobile-menu-panel a:focus-visible,.mobile-menu-panel button:focus-visible{outline-offset:-4px!important}
@media(max-width:700px){.tool-navigation{margin:12px 16px 20px;padding:14px;display:grid;gap:8px}.tool-jump{width:100%;max-width:none;grid-template-columns:minmax(0,1fr) auto}.category-toolbar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.category-filter{font-size:.875rem!important;line-height:1.25!important}.tools-home{font-size:.9rem}.client-nav{gap:8px!important}.client-card{padding:22px 18px}.card-head{gap:12px;flex-wrap:wrap}.search-status{min-height:24px;font-size:.875rem;color:#49615e}.tool-controls{margin-bottom:16px}}

/* Keep the mobile workspace available beneath the category controls. */
@media(max-width:700px){
  .tool-controls{position:static;top:auto}
  .tools-gallery,.inline-workspace{scroll-margin-top:90px}
  .panel-heading>div{min-width:0}
  .panel-actions{flex-wrap:wrap}
  .tool-search input{min-width:0}
  .category-heading{flex-wrap:wrap;gap:8px}
}
/* Give long titles their own row on narrow phones and enlarged layouts. */
@media(max-width:420px){
  .dedicated-hero-inner,body[data-calculator] .hero,.client-welcome{grid-template-columns:minmax(0,1fr)!important}
  .dedicated-hero img,body[data-calculator] .hero img,.client-welcome img{justify-self:end}
  .hero h1,.dedicated-hero h1,.client-welcome h1{overflow-wrap:normal;word-break:normal;hyphens:auto}
}
/* A stopped animation must still deliver the result message. */
.reduce-motion .resolve-walk.walking img{left:calc(100% - 98px);transform:none}
.reduce-motion .resolve-walk.walking .walk-bubble{opacity:1;transform:none}
/* Keyboard, touch and enlarged text support. */
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #247c6e;outline-offset:3px}
.result-actions button,.privacy-actions button,.prepared-download{min-height:44px}
.prepared-download{display:inline-flex;align-items:center;padding:10px 16px;border:1px solid #a9c4b8;border-radius:10px;background:#f2f7f3;color:#153c3b;font-weight:750;text-decoration:underline}
input,select,textarea{scroll-margin-top:100px}
@media(max-width:700px){input,select,textarea{font-size:16px!important}.result-actions{flex-wrap:wrap}.result-actions button{flex:1 1 130px}.consent-actions{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

.field-help{color:#49615e;font-size:.9rem;line-height:1.5}.restore-example{min-height:44px;padding:10px 16px;border:1px solid #a9c4b8;border-radius:10px;background:#f2f7f3;color:#153c3b;font-weight:700;cursor:pointer}
.content-guide{max-width:1040px;margin:28px auto;padding:28px;background:#fff;border:1px solid #d4e1da;border-radius:20px;color:#17302f}.content-guide h2{font-size:clamp(1.35rem,3vw,1.9rem);line-height:1.25}.content-guide h3{margin-top:24px}.content-guide p{line-height:1.7;max-width:80ch}.content-guide a{color:#153c3b;font-weight:700}.worked-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:20px 0}.worked-metrics div{padding:16px;border-radius:12px;background:#edf5ef}.worked-metrics dt{font-size:.85rem;line-height:1.4}.worked-metrics dd{margin:6px 0 0;font-weight:800;font-size:1.1rem}.worked-formula{padding:14px;border-left:3px solid #247c6e;background:#f5f8f6;overflow-wrap:anywhere}.worked-faq details{border-top:1px solid #d4e1da;padding:14px 0}.worked-faq summary{cursor:pointer;font-weight:700;min-height:32px;line-height:1.5}.content-guide small{display:block;color:#49615e;line-height:1.5}@media(max-width:700px){.content-guide{margin:24px 16px;padding:20px}.worked-metrics{grid-template-columns:minmax(0,1fr)}}

.home-reviews{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:20px 0;padding:18px 22px;border:1px solid #bfd8cd;border-radius:18px;background:#edf5ef;color:#153c3b}.home-reviews p{margin:6px 0 0}.home-reviews a{display:inline-flex;align-items:center;min-height:44px;padding:12px 18px;border-radius:12px;background:#153c3b;color:#fff;font-weight:700;white-space:nowrap}.home-reviews a:focus-visible{outline:3px solid #247c6e;outline-offset:3px}@media(max-width:600px){.home-reviews{flex-direction:column;align-items:stretch;padding:16px}.home-reviews a{justify-content:center;white-space:normal}}
