:root{--bg:#f4f6f6;--surface:#fff;--line:#e1e7e7;--line-2:#cbd5d6;--ink:#202a2d;--ink-2:#47575b;--muted:#607175;--accent:#087f8c;--accent-ink:#066873;--accent-soft:#e7f3f3;--good:#18753f;--bad:#b4233f;--warn-bg:#fff4e0;--warn-ink:#7a4d0b;--stage:#17282d;--stage-ink:#f4f8f8;--stage-muted:#bcd0d3;--wb:#a33a9b;--ozon:#2d64d8;font:14px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,select,summary{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,[role=listbox]:focus-visible{outline:2px solid var(--accent)}button,summary{cursor:pointer}button:disabled{opacity:.45;cursor:default}a{color:var(--accent-ink);text-underline-offset:3px}button{touch-action:manipulation}h1,h2,p,dl,dd{margin:0}h1{font-size:30px;line-height:1.2;font-weight:700;letter-spacing:-.035em}h2{font-size:16px;line-height:1.4;letter-spacing:-.015em;font-weight:650}svg{display:block}input{caret-color:var(--accent);min-width:0}[hidden]{display:none!important}[inert]{opacity:.6}::selection{background:#cce9e9}*{scrollbar-color:#adc2c5 transparent;scrollbar-width:thin}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.skip-link{position:fixed;top:-100px;left:20px;z-index:50;background:#fff;padding:12px}.skip-link:focus{top:10px}
.app-header{height:72px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.header-inner{max-width:1440px;margin:auto;padding:0 36px;height:100%;display:flex;align-items:center;gap:48px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-size:19px;font-weight:720;line-height:1.1;letter-spacing:-.03em}.brand-sub{display:block;font-size:10px;font-weight:500;letter-spacing:.035em;color:var(--muted);margin-top:3px}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--accent);color:#fff}.brand-mark svg{width:26px;height:26px}.market-nav{display:flex;background:var(--bg);padding:4px;border-radius:12px;gap:3px}.market-nav button{display:flex;align-items:center;gap:8px;min-height:36px;padding:7px 16px;border:0;border-radius:9px;background:none;color:var(--muted);font-weight:550}.market-nav button[aria-pressed=true]{background:#fff;color:var(--ink);box-shadow:0 1px 4px #17282d18}.market-nav i{height:7px;width:7px;border-radius:50%}.dot-wb{background:var(--wb)}.dot-ozon{background:var(--ozon)}.local-badge{margin-left:auto;font-size:12px;color:var(--muted);display:flex;align-items:center;gap:7px}.local-badge i,.status-dot{width:6px;height:6px;background:var(--accent);border-radius:50%;flex:none}
.calculator-container{max-width:1440px;margin:auto;padding:30px 36px 20px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:26px}.eyebrow{font-size:12px;color:var(--muted);margin-bottom:8px}.eyebrow span{color:var(--ink-2);font-weight:600}.page-description{color:var(--muted);font-size:13px;margin-top:9px}.page-actions{display:flex;align-items:center;gap:16px}.button{border:1px solid var(--line-2);background:#fff;color:var(--ink);border-radius:10px;min-height:42px;padding:9px 16px;font-size:13px;font-weight:600;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:8px}.button:hover{background:var(--bg)}.button.primary{color:#fff;background:var(--accent);border-color:var(--accent)}.button.primary:hover{background:var(--accent-ink)}.text-button{border:0;background:none;color:var(--muted);font-size:12px;padding:10px 0}.text-button:hover{color:var(--accent-ink)}
.calculator-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:24px;align-items:start}.input-column,.calculator-form{display:grid;gap:18px;min-width:0}.card,.unit-section:not(.unit-product-editor),.profit-card{background:var(--surface);border:1px solid var(--line);border-radius:16px}.product-panel,.calculator-form>.unit-section{padding:24px}.section-heading{display:flex;align-items:flex-start;gap:11px;margin-bottom:22px}.section-heading p{font-size:12px;color:var(--muted);margin-top:3px}.step{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:var(--accent-soft);color:var(--accent-ink);font-size:11px;font-weight:650;flex:none;margin-top:1px}.identity-row{display:flex;align-items:start;gap:12px}.identity-row>#productSlot{flex:1;min-width:0}.unit-product-editor .fields-grid{grid-template-columns:minmax(0,1.5fr) minmax(100px,1fr);gap:12px}.unit-product-editor .field-wide{grid-column:auto}#categorySlot{margin-top:20px;border-top:1px solid var(--line);padding-top:20px}#category{border:0;padding:0;background:none;border-radius:0}#category>h2{display:none}#category .fields-grid{grid-template-columns:1fr 1fr}#category .unit-supply{grid-column:1/-1}#category .field-wide{grid-column:auto}#category [data-field=H],#category [data-field=J],#category [data-field=K]{min-width:0}#category.unit-category-ozon [data-field=I]{grid-column:1/-1}
.fields-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 16px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field label,.unit-supply-caption{font-size:12px;line-height:1.4;color:var(--ink-2);display:block}.field>label{min-height:17px}.field input:not([type=radio]),.input-button{width:100%;min-height:44px;background:#fff;border:1px solid var(--line-2);border-radius:9px;padding:11px 12px;color:var(--ink);font-size:14px;line-height:20px;transition:border-color .15s,box-shadow .15s}.field input:focus,.input-button:focus-visible{border-color:var(--accent);box-shadow:0 0 0 3px #087f8c12}.field input[readonly]{background:var(--bg);border-color:var(--line);color:var(--muted)}.field input::placeholder{color:#8a999c}.input-wrap{position:relative}.input-wrap input{padding-right:38px!important}.input-wrap .unit{position:absolute;right:12px;top:12px;font-size:12px;color:var(--muted);pointer-events:none}.field-error{font-size:11px;color:var(--bad);line-height:1.4}.field-error:empty{display:none}.field[data-field-issue=input] input,.field[data-field-issue=missing] input,.field[data-field-issue=missing] .input-button{border-color:#ca7b88}.field[data-field-issue=model] .field-error{color:var(--warn-ink)}
.unit-supply-options{display:flex;gap:4px;background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:4px}.unit-supply-choice{position:relative;flex:1;min-width:0;text-align:center;cursor:pointer}.unit-supply-choice input{position:absolute;width:1px;height:1px;opacity:0}.unit-supply-choice span{display:block;padding:9px 8px;border-radius:7px;color:var(--muted);font-size:12px}.unit-supply-choice b{font-weight:550}.unit-supply-choice input:checked+span{background:#fff;color:var(--accent-ink);box-shadow:0 1px 4px #17282d12}.unit-supply-choice input:focus-visible+span{outline:2px solid var(--accent)}
#price .fields-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#price [data-field=AA] input,#price [data-field=X] input{font-weight:650}.unit-dimension-results{grid-template-columns:1fr 1fr;margin-top:18px}.unit-parameters{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}#services .fields-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#services .unit-parameters{grid-template-columns:repeat(3,minmax(0,1fr))}.unit-tax-heading{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:16px}.unit-tax-heading .section-heading{margin-bottom:22px}.unit-tax-basis{width:165px}.unit-tax-basis .field{gap:0}#tax>.fields-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#extra>.fields-grid{grid-template-columns:1fr 1fr}
.unit-category{position:relative;min-width:0}.unit-category-trigger{display:flex;align-items:center;text-align:left;gap:8px;cursor:pointer}.unit-category-value{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.unit-select-chevron{width:13px;height:13px;color:#819195;flex:none}.unit-category-unit{font-size:12px;color:var(--muted)}.unit-category-with-help .unit-category-trigger{padding-right:38px}.unit-category-with-help>.unit-help-button{position:absolute;right:30px;top:10px}.unit-category-with-help .unit-select-chevron{margin-left:6px}.unit-help-button{border:0;padding:2px;color:var(--muted);background:transparent;width:24px;height:24px;display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;border-radius:50%}.unit-help-button:hover{color:var(--accent);background:var(--accent-soft)}.unit-input-with-help{position:relative}.unit-input-with-help>.unit-help-button{position:absolute;right:8px;top:10px}
.unit-category-popover,.unit-tax-help{position:fixed;inset:auto;margin:0;background:#fff;border:1px solid var(--line-2);border-radius:12px;box-shadow:0 12px 36px #17282d24;color:var(--ink);z-index:100;padding:6px;overflow:hidden}.unit-category-popover{display:flex;flex-direction:column;max-height:320px}.unit-category-search-wrap{position:relative;flex:none;padding:4px 4px 8px}.unit-category-search{width:100%;font:inherit;min-height:38px;padding:8px 32px 8px 10px;border:1px solid var(--line-2);border-radius:8px}.unit-category-clear{border:0;background:transparent;position:absolute;right:10px;top:12px;padding:4px}.unit-category-clear svg{width:14px;height:14px}.unit-category-list{overflow:auto;position:relative;min-height:0}.unit-category-option{padding:9px 28px 9px 10px;border-radius:7px;position:relative;cursor:pointer;font-size:13px}.unit-category-option[data-active=true]{background:var(--accent-soft)}.unit-category-option[aria-selected=true]{color:var(--accent-ink);font-weight:600}.unit-select-check{position:absolute;width:15px;height:15px;right:8px;top:10px;color:var(--accent)}.unit-category-empty{padding:10px;font-size:12px;color:var(--muted)}.unit-tax-help{padding:14px;font-size:12px;line-height:1.6;max-width:420px}.unit-tax-help-copy{display:block;white-space:pre-line;overflow:auto}
.calculator-summary{position:sticky;top:96px;min-width:0;max-height:calc(100dvh - 116px);overflow:auto;padding-right:2px;scroll-margin-top:92px}.profit-card{overflow:hidden}.profit-hero{background:var(--stage);color:var(--stage-ink);padding:22px 24px}.summary-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:22px;font-weight:600}.supply-badge{background:#ffffff12;color:var(--stage-muted);padding:4px 9px;border-radius:6px;font-weight:500;font-size:11px}#summaryProfitLabel{color:var(--stage-muted);font-size:12px}.profit-value{display:block;font-size:38px;line-height:1.25;letter-spacing:-.035em;font-variant-numeric:tabular-nums;font-weight:650;margin-top:4px}.profit-value.gain{color:#8bdfbe}.profit-value.loss{color:#ffa5b6}.per-unit{font-size:11px;color:var(--stage-muted);margin-top:2px}.hero-prices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px;border-top:1px solid #ffffff20;padding-top:15px}.hero-prices span{display:block;font-size:10px;color:var(--stage-muted);margin-bottom:4px}.hero-prices strong{font-size:18px;font-weight:600;font-variant-numeric:tabular-nums}.profit-metrics{display:grid;grid-template-columns:1fr 1fr;padding:6px 20px;border-bottom:1px solid var(--line);gap:0 18px}.profit-metrics>div{display:flex;flex-direction:column;gap:5px;padding:13px 0}.profit-metrics span{font-size:11px;color:var(--muted);line-height:1.4}.profit-metrics strong{font-size:17px;font-weight:650;font-variant-numeric:tabular-nums}.receipt{padding:20px 22px 14px}.receipt-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.receipt-heading h2{font-size:14px}.receipt-heading>span{font-size:10px;color:var(--muted);white-space:nowrap}.receipt-caption{font-size:11px;color:var(--muted);margin-top:5px}.expense-bar{display:flex;height:6px;gap:2px;border-radius:4px;overflow:hidden;margin:17px 0 13px}.expense-bar span{flex-basis:0;min-width:0}.unit-receipt-group{border-bottom:1px solid var(--line);padding:11px 0}.unit-receipt-group>summary{display:grid;grid-template-columns:minmax(0,1fr) auto 48px;align-items:center;gap:8px;list-style:none;font-size:12px}.unit-receipt-group>summary::-webkit-details-marker{display:none}.unit-receipt-title{display:flex;align-items:center;gap:7px;font-weight:550;min-width:0}.unit-receipt-title:before{content:'';width:7px;height:7px;border-radius:2px;background:var(--receipt-color);flex:none}.unit-receipt-amount{font-weight:600;font-variant-numeric:tabular-nums}.unit-share{font-size:10px;color:var(--muted);text-align:right;font-variant-numeric:tabular-nums}.unit-receipt-group>summary .unit-share:after{content:'⌄';margin-left:4px}.unit-receipt-group[open]>summary .unit-share:after{content:'⌃'}.unit-receipt-group dl{padding:10px 0 0 14px}.unit-output{display:grid;grid-template-columns:minmax(0,1fr) auto 45px;gap:8px;padding:6px 0;align-items:start;font-size:11px}.unit-output dt{color:var(--muted)}.unit-output dd{font-variant-numeric:tabular-nums;text-align:right}.unit-output-total{font-weight:600}.totals-details{margin-top:14px;font-size:11px;color:var(--muted)}.totals-details>summary{padding:7px 0}.summary-links{font-size:11px;margin-top:10px}.summary-links .unit-output{display:block}.summary-links dd{text-align:left}.summary-links a{color:var(--accent-ink)}.tariff-note{display:flex;gap:7px;align-items:flex-start;background:var(--bg);padding:12px 22px;border-top:1px solid var(--line);font-size:10px;color:var(--muted);line-height:1.6}.tariff-note .status-dot{margin-top:5px}.method-link{display:flex;justify-content:space-between;text-decoration:none;color:var(--muted);font-size:12px;padding:14px 4px}.method-link:hover{color:var(--accent-ink)}.gain{color:var(--good)}.loss,.source-error{color:var(--bad)}.profit-hero .source-error{color:#ffa5b6;font-size:26px}
.save-message{font-size:12px;color:var(--accent-ink);margin-top:10px}.save-message:empty{display:none}.error-banner,.model-notice:not(:empty){font-size:12px;line-height:1.6;background:var(--warn-bg);color:var(--warn-ink);padding:14px;border-radius:10px;margin:12px 0}.model-notice ul{padding-left:18px;margin:8px 0}.model-notice li{margin-bottom:5px}.unit-issue-link{border:0;background:none;color:inherit;text-decoration:underline;padding:0;font-weight:600;text-align:left}.unit-issues-title{font-weight:600}.unit-issues-codes{font-size:11px}.unit-issue-link+span:before{content:' — '}
.saved-drawer{margin-top:28px;scroll-margin-top:90px;padding:0 24px}.saved-drawer>summary{display:flex;justify-content:space-between;align-items:center;list-style:none;padding:21px 0;font-weight:600;font-size:14px}.saved-drawer>summary::-webkit-details-marker{display:none}.drawer-note{font-size:12px;color:var(--muted);font-weight:400;margin-left:16px}.drawer-chevron{color:var(--muted)}.saved-drawer[open] .drawer-chevron{transform:rotate(180deg)}.saved-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;border-top:1px solid var(--line);padding:18px 0}.saved-toolbar h2{font-size:13px}.saved-export-actions{display:flex;gap:16px;align-items:center;font-size:11px;color:var(--muted)}.saved-table-wrap{overflow:auto;margin-bottom:24px}.saved-table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:12px}.saved-table th{text-align:left;background:var(--bg);color:var(--muted);font-weight:500;font-size:11px;padding:12px}.saved-table td{border-bottom:1px solid var(--line);padding:13px 12px}.saved-table th:first-child,.saved-table td:first-child{padding-left:10px}.saved-table input{accent-color:var(--accent);width:16px;height:16px;vertical-align:middle}.saved-table .is-selected{background:var(--accent-soft)}.inline-button{border:0;background:none;color:var(--accent-ink);padding:4px;font-size:12px;text-decoration:underline;text-underline-offset:3px}.inline-button-danger{color:var(--bad)}.saved-name{font-weight:550}.app-footer{display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:11px;padding:25px 0 8px}dialog{max-width:440px;width:calc(100% - 32px);padding:26px;border:1px solid var(--line);border-radius:16px;box-shadow:0 20px 70px #17282d30;color:var(--ink)}dialog::backdrop{background:#17282d66}dialog p{margin:12px 0 24px;color:var(--muted)}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}
@media(min-width:1450px){.calculator-grid{grid-template-columns:minmax(0,1fr) 408px}.calculator-container{padding-top:36px}.calculator-summary{top:102px}.fields-grid{gap:20px}}
@media(max-width:1150px){.header-inner{padding:0 24px}.calculator-container{padding:26px 24px}.calculator-grid{grid-template-columns:minmax(0,1fr) 340px;gap:20px}.product-panel,.calculator-form>.unit-section{padding:20px}.fields-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.identity-row{flex-wrap:wrap}.identity-row>#productSlot{flex-basis:100%}.unit-dimensions{grid-template-columns:repeat(3,minmax(0,1fr))}.receipt{padding:18px}.profit-hero{padding:20px}.page-actions{gap:12px;flex-direction:column;align-items:flex-end}}
@media(max-width:880px){.calculator-grid{grid-template-columns:1fr}.calculator-summary{position:static;max-height:none;overflow:visible}.calculator-container{max-width:740px}.header-inner{gap:20px}.local-badge{font-size:0;gap:0}.local-badge i{width:7px;height:7px}.page-heading{align-items:flex-start}h1{font-size:27px}.identity-row{flex-wrap:nowrap}.identity-row>#productSlot{flex-basis:auto}.unit-receipt-group>summary{grid-template-columns:1fr auto 70px}.profit-metrics{grid-template-columns:repeat(4,1fr)}.app-footer{padding-bottom:70px}}
@media(max-width:560px){.app-header{height:64px}.header-inner{padding:0 16px;gap:12px;justify-content:space-between}.brand{font-size:16px;gap:7px}.brand-mark{width:32px;height:32px;border-radius:9px}.brand-mark svg{width:22px;height:22px}.brand-sub{font-size:9px}.market-nav{padding:3px}.market-nav button{padding:7px 9px;font-size:12px;gap:5px;min-height:32px}.local-badge{display:none}.calculator-container{padding:22px 16px}.page-heading{gap:12px;flex-wrap:wrap;margin-bottom:20px}.page-heading .page-actions{flex-direction:row;width:100%}.page-actions .button{min-height:34px;padding:6px 12px;font-size:12px}h1{font-size:26px}.page-description{max-width:300px;font-size:12px}.eyebrow{font-size:11px}.product-panel,.calculator-form>.unit-section{padding:18px}.section-heading{margin-bottom:18px}.section-heading p{font-size:11px}.section-heading h2{font-size:15px}.identity-row{flex-wrap:wrap}.identity-row>#productSlot{flex-basis:100%}.unit-product-editor .fields-grid{grid-template-columns:1fr}.fields-grid,#price .fields-grid,#services .fields-grid,#tax>.fields-grid,#extra>.fields-grid{grid-template-columns:1fr 1fr;gap:16px 12px}#category .fields-grid{grid-template-columns:1fr}#category .field-wide{grid-column:1/-1}.field input:not([type=radio]),.input-button{font-size:16px;min-height:44px;padding:10px}.field label{font-size:11px}.field>label{min-height:30px}.unit-product-editor .field>label,#category .field>label{min-height:0}.unit-dimensions{grid-template-columns:repeat(3,minmax(0,1fr))}.unit-dimensions input{padding-right:26px!important}.input-wrap .unit{right:9px}.unit-parameters{gap:14px!important}#services .unit-parameters{grid-template-columns:1fr 1fr}.unit-tax-heading{display:block}.unit-tax-basis{width:100%;margin-bottom:18px}.unit-tax-heading .section-heading{margin-bottom:16px}.unit-category-trigger{font-size:13px}.profit-metrics{grid-template-columns:1fr 1fr}.hero-prices strong{font-size:20px}.saved-drawer{padding:0 18px}.saved-drawer>summary{font-size:13px}.drawer-note{display:block;margin:3px 0 0;font-size:11px}.saved-toolbar{align-items:flex-start}.saved-export-actions{align-items:flex-end;flex-direction:column;gap:8px}.saved-toolbar h2{white-space:nowrap}.app-footer{flex-direction:column;gap:6px;font-size:10px}.unit-category-popover{max-width:calc(100vw - 24px)}.unit-tax-help{max-width:calc(100vw - 24px)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Keep keyboard focus and touch actions clear of fixed navigation. */
html{scroll-padding-top:90px;scroll-padding-bottom:80px}
@media(max-width:560px){.market-nav button,.page-actions .button,.identity-row>#saveBtn,.text-button,.unit-supply-choice span{min-height:44px}.unit-category-option{min-height:44px}.app-footer{padding-bottom:calc(70px + env(safe-area-inset-bottom,0px))}}

/* Calculator workspace: compact entry, readable results, direct section access. */
.page-heading{margin-bottom:20px}.page-actions{flex-direction:row;flex-wrap:wrap;justify-content:flex-end;gap:10px}
.section-nav{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:22px;padding-bottom:16px;border-bottom:1px solid var(--line)}.section-nav a{display:flex;align-items:center;gap:7px;min-height:36px;padding:7px 12px;border-radius:7px;text-decoration:none;color:var(--ink-2);font-size:12px;font-weight:550}.section-nav a:hover,.section-nav a:focus-visible{background:var(--accent-soft);color:var(--accent-ink)}.section-nav span{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}
.identity-row{display:block}.unit-product-editor .fields-grid{grid-template-columns:minmax(0,1.5fr) minmax(100px,1fr)}.product-panel{border-top:3px solid var(--accent)}#categorySlot{margin-top:18px;padding-top:18px}.field label,.unit-supply-caption{font-size:13px}.field input[readonly]{border-style:dashed}.section-heading p{font-size:12px}.hero-prices span,.profit-metrics span{font-size:12px}.per-unit{font-size:12px}.receipt-heading>span,.receipt-caption,.unit-share,.tariff-note{font-size:11px}.unit-receipt-group>summary{min-height:34px;font-size:13px}.unit-output{font-size:12px}.unit-receipt-group dl{border-left:2px solid var(--line);margin:8px 0 2px 3px;padding:2px 0 2px 11px}.method-link{font-size:12px}.profit-hero{padding-top:20px}.summary-top{margin-bottom:16px}.profit-value{font-size:40px}.mobile-result-bar{display:none}
@media(max-width:1150px){.page-heading{align-items:flex-start}.page-actions{max-width:330px}.page-description{max-width:380px}.section-nav a{padding:7px 9px}.fields-grid{gap:18px 14px}}
@media(max-width:880px){.mobile-result-bar{position:fixed;bottom:0;left:0;right:0;z-index:9;background:var(--stage);color:var(--stage-ink);display:flex;align-items:center;gap:18px;padding:10px 24px calc(10px + env(safe-area-inset-bottom,0px));box-shadow:0 -3px 18px #17282d14}.mobile-back-link{color:var(--stage-muted);font-size:12px;text-decoration:none;min-height:44px;display:flex;align-items:center}.mobile-result-link{position:static;display:flex;align-items:center;justify-content:space-between;flex:1;gap:12px;padding:0 0 0 18px;border:0;border-left:1px solid #ffffff25;border-radius:0;box-shadow:none;background:transparent;color:var(--stage-ink);text-decoration:none;font-size:11px;min-width:0}.mobile-result-link strong{display:block;font-size:21px;font-weight:650;font-variant-numeric:tabular-nums;color:var(--stage-ink);overflow-wrap:anywhere}.mobile-result-link strong.loss,.mobile-result-link strong.source-error{color:#ffa5b6}.mobile-result-action{font-size:12px;color:var(--stage-muted);white-space:nowrap}.app-footer{padding-bottom:100px}.mobile-result-bar a:focus-visible{outline-color:var(--stage-ink)}.section-nav a{min-height:40px}}
@media(max-width:560px){.page-heading .page-actions{max-width:none;justify-content:flex-start;gap:8px}.page-actions .button{padding:10px 14px;font-size:13px}.page-description{font-size:13px}.section-nav{gap:4px;margin-bottom:16px;padding-bottom:12px}.section-nav a{font-size:12px;padding:6px 8px;min-height:36px;background:#fff;border:1px solid var(--line)}.section-nav span{display:none}.unit-product-editor .fields-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:12px}.field label{font-size:12px}.field>label{min-height:34px}.section-heading p{font-size:12px}.section-heading h2{font-size:16px}.mobile-result-bar{padding-left:16px;padding-right:16px;gap:12px}.mobile-result-link{padding-left:12px}.unit-receipt-group>summary{grid-template-columns:minmax(0,1fr) auto 54px;font-size:12px}.unit-receipt-title{gap:5px}.unit-output{grid-template-columns:minmax(0,1fr) auto 46px;gap:6px}.profit-value{font-size:38px}}

.product-panel>.section-heading .text-button{margin-left:auto;padding:4px 0;min-height:28px;flex:none;font-size:11px}.product-panel>.section-heading{gap:9px}.page-actions{max-width:none}.page-description{max-width:none}
@media(max-width:560px){.eyebrow{display:none}.calculator-container{padding-top:18px}.page-heading{margin-bottom:14px;gap:14px}.page-heading .page-actions{justify-content:flex-start}.page-description{font-size:12px;margin-top:7px}.section-nav{flex-wrap:nowrap;overflow-x:auto;gap:5px;padding-bottom:10px;margin-bottom:14px}.section-nav a{white-space:nowrap;flex:none}.product-panel>.section-heading{flex-wrap:wrap}.product-panel>.section-heading>div{flex:1;min-width:150px}.product-panel>.section-heading .text-button{min-height:28px}.product-panel .section-heading p{font-size:11px}}
/* Tax assumptions stay adjacent to the inputs they explain. */
.tax-explanation{margin-top:20px;padding:18px;background:var(--bg);border:1px solid var(--line);border-radius:12px}
.tax-note{font-size:13px;line-height:1.6;margin:0 0 14px;color:var(--muted)}
.tax-breakdown{margin:0;display:grid;gap:8px}
.tax-breakdown>div{display:flex;justify-content:space-between;gap:16px;font-size:14px}
.tax-breakdown dd{margin:0;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.tax-conditions{margin-top:14px;font-size:12px;line-height:1.6;color:var(--muted)}
.tax-conditions summary{color:var(--accent-ink);padding:4px 0}
.tax-conditions p{margin-top:10px}
