/* One content frame for every page; calculator children retain their own grids. */
:root{--fixer-page-width569:1280px;--fixer-page-gutter569:clamp(12px,2.5vw,40px)}
@media screen{
html body main.flex-1{width:100%!important;max-width:calc(var(--fixer-page-width569) + 2 * var(--fixer-page-gutter569))!important;box-sizing:border-box!important;margin-inline:auto!important;padding-inline:var(--fixer-page-gutter569)!important}
html body main.flex-1>.tab-content,html body main.flex-1>#contentHost,html body main.flex-1>[id^="page-"]{width:100%!important;max-width:var(--fixer-page-width569)!important;min-width:0!important;margin-inline:auto!important;box-sizing:border-box!important}
html body .site-doc-wrap{width:100%!important;max-width:calc(var(--fixer-page-width569) + 2 * var(--fixer-page-gutter569))!important;box-sizing:border-box!important;margin-inline:auto!important;padding-inline:var(--fixer-page-gutter569)!important}
html body .site-doc-card{width:100%!important;max-width:var(--fixer-page-width569)!important;min-width:0!important;box-sizing:border-box!important;margin-inline:auto!important}
html body #currency{padding-inline:clamp(14px,2vw,28px)!important}
#currency .fixer-tool-upgrade-panel{display:none!important}
}
/* Shared result hierarchy, without moving controls or changing calculations. */
.tab-content :is(.printable-result,[id$="ResultContent"],#fxhResult,#fx563-result,[id^="fx56"][id$="-result"],.p542-result){min-width:0;max-width:100%;box-sizing:border-box;font-size:1rem;line-height:1.65;overflow-wrap:break-word;word-break:normal}
.tab-content :is(.printable-result,#fxhResult,#fx563-result,[id^="fx56"][id$="-result"]) h3{font-size:1.125rem;font-weight:750;margin-block:20px 10px;line-height:1.4}
.tab-content :is(.printable-result,#fxhResult,#fx563-result,[id^="fx56"][id$="-result"]) :is(p,li){line-height:1.7;margin-block:8px}
.tab-content :is(.printable-result,#fxhResult,#fx563-result,[id^="fx56"][id$="-result"]) table,.fx563-table table{width:100%;border-collapse:separate;border-spacing:0;line-height:1.6;font-size:.95rem}
.tab-content :is(.printable-result,#fxhResult,#fx563-result,[id^="fx56"][id$="-result"]) :is(td,th),.fx563-table :is(td,th){padding:12px 14px;text-align:start;vertical-align:top;border-bottom:1px solid #e2e8f0;white-space:normal;word-break:normal;overflow-wrap:break-word;font-variant-numeric:tabular-nums}
.fx563-table{border:1px solid #e2e8f0;border-radius:12px;margin-block:12px;overflow-x:auto;overscroll-behavior-x:contain}.fx563-table th{background:#f1f5f9;font-weight:750}.fx563-table td:first-child{font-weight:650}.fx563-table td:not(:first-child){unicode-bidi:plaintext}
#fx567-summary:not(:empty){padding:24px;border-radius:20px;box-shadow:0 8px 26px #4f46e50b}
.fx-result-hero569{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding-block:18px;border-bottom:1px solid #c7d2fe}.fx-result-hero569 p{font-size:1rem;font-weight:650;margin:0}.fx-result-hero569 strong{font-size:clamp(1.7rem,4vw,2.5rem);font-weight:850;line-height:1.3;max-width:100%;overflow-wrap:anywhere}.fx-result-hero569 span{font-size:.85rem;font-weight:700;padding:4px 10px;background:#e0e7ff;border-radius:20px}
.fx-result-metrics569{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-block:18px}.fx-result-metric569{min-width:0;padding:14px;background:#ffffffb3;border:1px solid #dbe3ef;border-radius:12px}.fx-result-metric569 dt{font-size:.9rem;line-height:1.5;color:#475569}.fx-result-metric569 dd{font-size:1.1rem;font-weight:750;line-height:1.6;margin:8px 0 0;overflow-wrap:anywhere;unicode-bidi:plaintext;font-variant-numeric:tabular-nums}.fx-result-comparison569{padding-top:16px;border-top:1px solid #c7d2fe}.fx-result-comparison569 h4{font-size:1rem;font-weight:750}.fx-result-note569{margin-top:18px;padding-top:14px;border-top:1px solid #c7d2fe;font-size:.9rem;line-height:1.75;color:#475569}
#fx567-reports{display:flex;align-items:center;gap:10px;flex-wrap:wrap}#fx567-reports>label{margin:0;font-size:.9rem}#fx567-reports>select{width:auto;flex:1 1 180px}#fx567-reports>p{flex-basis:100%;font-size:.9rem;margin-block:6px}#fx563-planner button{min-height:44px;border-radius:10px}#fx567-controls{padding:12px;border:1px solid #c7d2fe;border-radius:14px}
.dark .fx-result-metric569{background:#0f172a;border-color:#475569}.dark :is(.fx-result-metric569 dt,.fx-result-note569){color:#cbd5e1}.dark .fx-result-hero569 span{background:#312e81;color:#e0e7ff}.dark .fx563-table,.dark .fx563-table :is(td,th){border-color:#475569}.dark .fx563-table th{background:#1e293b}
@media(max-width:640px){.fx-result-metrics569{grid-template-columns:1fr;gap:10px}.fx-result-metric569{padding:12px}#fx567-summary:not(:empty){padding:16px}.fx563-table :is(td,th){padding:10px;min-width:100px}#fx567-reports>button{flex:1 1 160px}#fx567-reports>select{max-width:100%}}
@media print{
html body main.flex-1,html body .site-doc-wrap,html body .site-doc-card{width:100%!important;max-width:none!important;padding-inline:0!important;margin:0!important}
.fx563-table{overflow:visible!important;border-radius:0;max-width:none!important}.fx563-table table{width:100%!important;min-width:0!important;table-layout:fixed}.fx563-table :is(td,th){min-width:0!important;padding:8px!important;font-size:11pt!important;white-space:normal!important;overflow-wrap:anywhere!important;color:#111!important;background:white!important}tr,.fx-result-metric569,.fx-result-hero569{break-inside:avoid;page-break-inside:avoid}thead{display:table-header-group}h2,h3,h4{break-after:avoid}#fx567-summary:not(:empty){background:white!important;color:#111!important;border-color:#bbb;box-shadow:none;padding:12px}.fx-result-metrics569{grid-template-columns:repeat(3,minmax(0,1fr))}.fx-result-metric569{background:white!important;border-color:#ccc!important}.fx-result-note569,.fx-result-metric569 dt{color:#333!important}.tab-content .printable-result{overflow:visible!important;max-height:none!important}
}

.tab-content .printable-result :is(.text-xs,.text-sm){font-size:.95rem;line-height:1.65}

/* Editable hourly VAT rate: subtle border, visible keyboard focus. */
#freelance #fxhVatRate{border:1px solid #cbd5e1!important;border-radius:7px!important;background:#fff!important;padding:7px 8px!important;min-height:38px!important;box-sizing:border-box!important;color:#0f172a!important;font-weight:650!important}
#freelance #fxhVatRate:hover:not(:disabled){border-color:#94a3b8!important}
#freelance #fxhVatRate:focus-visible{outline:2px solid #818cf8!important;outline-offset:2px!important;border-color:#6366f1!important}
.dark #freelance #fxhVatRate{background:#0f172a!important;color:#f1f5f9!important;border-color:#475569!important}
#freelance #fxhVatRate:disabled{opacity:.55}
@media screen{
html body main.flex-1>.tab-content.fixer-has-panel{padding-inline:clamp(14px,2vw,28px)!important}
.tab-content .fixer-tool-upgrade-panel{position:static!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;margin-block:20px!important}
.tab-content>.p542-shell{max-width:none!important;margin-inline:0!important;padding-inline:0!important}
}

.fx572-warning:not([hidden]){padding:12px 14px;margin-block:12px;border:1px solid #fbbf24;border-radius:12px;background:#fffbeb;color:#92400e;line-height:1.7}.dark .fx572-warning:not([hidden]){background:#422006;color:#fef3c7;border-color:#92400e}#fx572-choose{box-sizing:border-box;width:min(580px,calc(100vw - 28px));max-height:85dvh;overflow:auto;border:1px solid #c7d2fe;border-radius:18px;padding:20px;background:white;color:#0f172a}#fx572-choose::backdrop{background:#0f172a88}#fx572-choose h3{font-size:1.15rem;font-weight:750}#fx572-choose p{line-height:1.7;margin-block:14px;overflow-wrap:anywhere}#fx572-choose button{min-height:44px;padding:10px;margin:5px;border:1px solid #c7d2fe;border-radius:10px}#fx572-choose button:disabled{opacity:.45}.dark #fx572-choose{background:#0f172a;color:#f1f5f9}@media print{#fx572-choose{display:none}}

#fx565-advanced details[id^="fx573-"]{border:1px solid rgba(99,102,241,.2);border-radius:14px;padding:14px;margin-block:12px;min-width:0}#fx565-advanced details[id^="fx573-"] summary{font-weight:700;cursor:pointer}#fx565-advanced details[id^="fx573-"] textarea{width:100%;box-sizing:border-box;min-height:110px;resize:vertical}#fx565-advanced details[id^="fx573-"] label{display:block;margin-block:10px 4px}#fx565-advanced details[id^="fx573-"] input,#fx565-advanced details[id^="fx573-"] select{max-width:100%;min-width:0;box-sizing:border-box}#fx565-advanced details[id^="fx573-"] button,.fx573-scenarios button{min-height:44px;margin:6px}.fx573-scenarios{display:flex;gap:6px;flex-wrap:wrap}@media print{#fx565-advanced details[id^="fx573-"]{break-inside:auto}#fx565-advanced details[id^="fx573-"] summary{display:block}.fx573-scenarios{display:none}}

#fx574-analysis,#fx574-demo{padding:16px;margin-block:14px;border:1px solid #94a3b8;border-radius:14px;min-width:0}#fx574-analysis label{display:block;margin-block:12px 6px}#fx574-analysis input{width:100%;max-width:100%;min-height:44px}#fx574-analysis button{min-height:44px;margin-block:14px}#fx574-completeness{line-height:1.7;overflow-wrap:break-word}@media print{#fx574-analysis,#fx574-demo{border-color:#cbd5e1}#fx574-analysis-result tr{break-inside:avoid}#fx574-demo p{display:block!important}}

#fx575-cost{padding:16px;margin-block:14px;border:1px solid #94a3b8;border-radius:14px;min-width:0}#fx575-cost label{display:block;margin-block:12px 6px}#fx575-cost input{width:100%;max-width:100%;min-height:44px}#fx575-cost button{min-height:44px;margin-block:14px}.fx575-field-error{color:#b91c1c;font-size:.9rem;line-height:1.6}.dark .fx575-field-error{color:#fca5a5}#currency :is(button,input,select,summary,textarea):focus-visible{outline:3px solid #6366f1;outline-offset:3px}#fx575-remember{width:20px;min-height:20px;accent-color:#4f46e5}@media print{.fx575-field-error{color:#991b1b}#fx575-cost-result tr,#fx575-dates-result tr{break-inside:avoid}}

:is(#fx576-ledger,#fx576-budget,#fx576-conditions){padding:16px;margin-block:14px;border:1px solid #94a3b8;border-radius:14px;min-width:0}:is(#fx576-ledger,#fx576-budget,#fx576-conditions) label{display:block;margin-block:12px 6px}:is(#fx576-ledger,#fx576-budget,#fx576-conditions) :is(textarea,input,select){width:100%;max-width:100%;min-height:44px;box-sizing:border-box}:is(#fx576-ledger,#fx576-budget,#fx576-conditions) button{min-height:44px;margin-block:14px}@media print{:is(#fx576-ledger-result,#fx576-budget-result,#fx576-conditions-result) tr{break-inside:avoid}}

#currency :is(#fx577-future,#fx577-checklist,.fx577-start){padding:16px;margin-block:14px;border:1px solid #94a3b8;border-radius:14px;min-width:0}#currency :is(#fx577-future,#fx577-checklist) label{display:block;margin-block:12px 6px}#currency #fx577-future input{width:100%;min-height:44px;box-sizing:border-box}#currency #fx577-checklist input{width:20px;height:20px;accent-color:#4f46e5}#currency .fx577-entry-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px;margin-block:14px;border:1px solid #94a3b8;border-radius:12px;min-width:0}#currency .fx577-entry-card label{display:block;margin-block:0 6px}#currency .fx577-entry-card :is(input,select){width:100%;min-height:44px;min-width:0;box-sizing:border-box}#currency .fx577-entry-card button{justify-self:start;min-height:44px}#currency .fx577-row-editor>button{min-height:44px;margin-block:12px}#currency .fx577-csv{padding-block:12px}#currency .fx577-csv textarea{width:100%;box-sizing:border-box}@media(max-width:400px){#currency .fx577-entry-card{grid-template-columns:minmax(0,1fr)}}@media print{[data-fx-editor577]{display:none!important}#fx577-future-result tr,#fx577-checklist-result tr{break-inside:avoid}}

#currency :is(#fx578-staged,#fx578-savings){padding:16px;margin-block:14px;border:1px solid #94a3b8;border-radius:14px;min-width:0}#currency :is(#fx578-staged,#fx578-savings) label{display:block;margin-block:12px 6px}#currency :is(#fx578-staged,#fx578-savings) :is(input,select){width:100%;min-height:44px;min-width:0;box-sizing:border-box}#currency .fx578-card{padding:14px;margin-block:14px;border:1px solid #94a3b8;border-radius:12px;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#currency .fx578-card label{align-self:end}#currency #fx578-decision{padding:14px;border-top:1px solid #94a3b8;margin-block-start:16px;line-height:1.7}#currency #fx578-decision ul{padding-inline-start:22px}#currency :is(#fx578-staged,#fx578-savings) button{min-height:44px;margin-block:14px}@media(max-width:600px){#currency .fx578-card{display:block}}@media print{#fx578-decision p,#fx578-staged-result tr,#fx578-savings-result tr{break-inside:avoid}}
