/* tb-build letter-postage-calculator 415a0d18444e */
/* letter-postage-calculator — ToolBoss deployment build. Source of truth: delivery/apps/letter-postage-calculator/app.css */
/* Fonts: same-origin WOFF2 uploaded through the WP Font Library (/wp-content/uploads/fonts). */
@font-face{font-family:'Golos Text';font-style:normal;font-weight:400 900;font-display:swap;src:url('/wp-content/uploads/fonts/golos-text-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Golos Text';font-style:normal;font-weight:400 900;font-display:swap;src:url('/wp-content/uploads/fonts/golos-text-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:100 800;font-display:swap;src:url('/wp-content/uploads/fonts/jetbrains-mono-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:100 800;font-display:swap;src:url('/wp-content/uploads/fonts/jetbrains-mono-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

#js-tool-container-letter-postage-calculator .lp { --bg:#f4f5f7; --card:#ffffff; --bill:#fffdf6; --ink:#141a21; --mute:#6b7480; --line:#e2e5ea; --accent:#1d4fd7; --accent-soft:#e8effe; --ring:rgba(29,79,215,.22); --price:#b4552b; --bad:#c92a2a; --sans:'IBM Plex Sans',system-ui,sans-serif; --mono:'JetBrains Mono',ui-monospace,monospace; display:grid;grid-template-columns:1fr 412px;gap:20px;align-items:stretch; color:var(--ink);font:15px/1.45 var(--sans);width:100%; }
html[data-theme="dark"] #js-tool-container-letter-postage-calculator .lp { --card:#171c23; --bill:#1d232c; --ink:#e8ecf1; --mute:#9aa4b2; --line:#2b333e; --accent:#7aa2ff; --accent-soft:#1d2a4a; --ring:rgba(122,162,255,.25); --price:#e8945f; --bad:#ff8a80; }
#js-tool-container-letter-postage-calculator .lp, #js-tool-container-letter-postage-calculator .lp *, #js-tool-container-letter-postage-calculator .lp *::before, #js-tool-container-letter-postage-calculator .lp *::after { box-sizing:border-box }
#js-tool-container-letter-postage-calculator .lp * { min-width:0 }
#js-tool-container-letter-postage-calculator .lp button { font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer }
#js-tool-container-letter-postage-calculator .lp-card { background:var(--card);border:1px solid var(--line);border-radius:22px;box-shadow:0 1px 2px rgba(20,26,33,.04),0 16px 40px -24px rgba(20,26,33,.16) }
#js-tool-container-letter-postage-calculator .lp-form { padding:22px 24px }
#js-tool-container-letter-postage-calculator .lp-lab { display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mute);margin:0 0 8px }
#js-tool-container-letter-postage-calculator .lp-lab em { font-style:normal;text-transform:none;letter-spacing:0;font-weight:400 }
#js-tool-container-letter-postage-calculator .lp-sec { margin-bottom:16px }
#js-tool-container-letter-postage-calculator .lp-sec:last-child { margin-bottom:0 }
#js-tool-container-letter-postage-calculator .lp-types { display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px }
#js-tool-container-letter-postage-calculator .lp button.lp-type { border:1.5px solid var(--line);border-radius:14px;padding:10px 12px;cursor:pointer;background:var(--card);text-align:left }
#js-tool-container-letter-postage-calculator .lp-type b { display:block;font-size:15px }
#js-tool-container-letter-postage-calculator .lp-type span { font-family:var(--mono);font-size:13px;color:var(--mute);font-variant-numeric:tabular-nums }
#js-tool-container-letter-postage-calculator .lp button.lp-type.on { border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 3px var(--ring) }
#js-tool-container-letter-postage-calculator .lp-type.on span { color:var(--accent);font-weight:700 }
#js-tool-container-letter-postage-calculator .lp-row3 { display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:10px }
#js-tool-container-letter-postage-calculator .lp-field { border:1.5px solid var(--line);border-radius:14px;padding:8px 12px;display:flex;align-items:center;gap:8px;background:var(--card) }
#js-tool-container-letter-postage-calculator .lp-field input { flex:1 !important; min-width:0 !important; border:0 !important; background:transparent !important; color:var(--ink) !important; font-family:var(--mono) !important; font-size:22px !important; font-weight:700 !important; font-variant-numeric:tabular-nums !important; outline:none !important; padding:0 !important }
#js-tool-container-letter-postage-calculator .lp-field input::placeholder { color:var(--mute) !important; opacity:.55 !important; font-weight:400 !important }
#js-tool-container-letter-postage-calculator .lp-field input:disabled { color:var(--mute) !important; cursor:not-allowed !important }
#js-tool-container-letter-postage-calculator .lp-field small { margin-left:auto;color:var(--mute);font-size:13px;white-space:nowrap }
#js-tool-container-letter-postage-calculator .lp-field:focus-within { border-color:var(--accent);box-shadow:0 0 0 3px var(--ring) }
#js-tool-container-letter-postage-calculator .lp-field.bad { border-color:var(--bad) }
#js-tool-container-letter-postage-calculator .lp-field.bad:focus-within { box-shadow:0 0 0 3px rgba(201,42,42,.18) }
#js-tool-container-letter-postage-calculator .lp-hint { margin:6px 2px 0;font-size:13px;color:var(--bad) }
#js-tool-container-letter-postage-calculator .lp-step { display:flex;align-items:center;gap:6px;border:1.5px solid var(--line);border-radius:14px;padding:6px;background:var(--card) }
#js-tool-container-letter-postage-calculator .lp-step button { display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#eef1f5;font-weight:700;font-size:18px;line-height:1 }
html[data-theme="dark"] #js-tool-container-letter-postage-calculator .lp-step button { background:#242c38 }
#js-tool-container-letter-postage-calculator .lp-step b { flex:1;text-align:center;font-family:var(--mono);font-size:20px;font-variant-numeric:tabular-nums;font-weight:700 }
#js-tool-container-letter-postage-calculator .lp-step small { color:var(--mute);font-size:12px;padding-right:6px }
#js-tool-container-letter-postage-calculator .lp-seg { display:flex;background:#eef1f5;border-radius:14px;padding:4px;gap:4px }
html[data-theme="dark"] #js-tool-container-letter-postage-calculator .lp-seg { background:#242c38 }
#js-tool-container-letter-postage-calculator .lp-seg button { flex:1;text-align:center;padding:9px 2px;border-radius:10px;font-size:13px;font-weight:600;color:var(--mute);white-space:nowrap }
#js-tool-container-letter-postage-calculator .lp-seg button.on { background:var(--card);color:var(--ink);box-shadow:0 1px 3px rgba(20,26,33,.14) }
#js-tool-container-letter-postage-calculator .lp-scale { background:#f6f8fb;border:1px solid var(--line);border-radius:14px;padding:12px 14px 10px }
html[data-theme="dark"] #js-tool-container-letter-postage-calculator .lp-scale { background:#12161d }
#js-tool-container-letter-postage-calculator .lp-scale svg { display:block;width:100%;height:auto }
#js-tool-container-letter-postage-calculator .lp-scale svg .lp-500 { font-family:var(--mono);fill:var(--mute) }
#js-tool-container-letter-postage-calculator .lp-scale p { margin:6px 0 0;font-size:13px;color:var(--mute) }
#js-tool-container-letter-postage-calculator .lp-scale p b { color:var(--ink);font-family:var(--mono);font-variant-numeric:tabular-nums;font-weight:600 }
#js-tool-container-letter-postage-calculator .lp-row2 { display:grid;grid-template-columns:1fr 1fr;gap:10px }
#js-tool-container-letter-postage-calculator .lp-chips { display:flex;gap:8px;flex-wrap:wrap }
#js-tool-container-letter-postage-calculator .lp button.lp-chip { border:1.5px solid var(--line);border-radius:999px;padding:8px 14px;font-size:13.5px;font-weight:600;background:var(--card);white-space:nowrap }
#js-tool-container-letter-postage-calculator .lp-chip small { font-family:var(--mono);font-weight:400;color:var(--mute);font-variant-numeric:tabular-nums }
#js-tool-container-letter-postage-calculator .lp button.lp-chip.on { background:var(--ink);border-color:var(--ink);color:var(--card) }
#js-tool-container-letter-postage-calculator .lp-chip.on small { color:var(--mute) }
#js-tool-container-letter-postage-calculator .lp-field.dis { background:#f4f6f9 }
html[data-theme="dark"] #js-tool-container-letter-postage-calculator .lp-field.dis { background:#12161d }
#js-tool-container-letter-postage-calculator .lp-field.dis input { color:#9aa2ad !important }
#js-tool-container-letter-postage-calculator .lp-formula { margin-top:16px;background:#141a21;color:#eef1f5;border-radius:14px;padding:12px 18px;font-family:var(--mono);font-size:14.5px;display:flex;gap:10px;align-items:center;font-variant-numeric:tabular-nums }
#js-tool-container-letter-postage-calculator .lp-formula i { font-style:normal;color:#8b95a3;font-size:12px;font-family:var(--sans);flex:none }
#js-tool-container-letter-postage-calculator .lp-right { display:flex;flex-direction:column;gap:16px }
#js-tool-container-letter-postage-calculator .lp-bill { background:var(--bill);border:1px solid var(--line);border-radius:22px;box-shadow:0 1px 2px rgba(20,26,33,.04),0 16px 40px -24px rgba(20,26,33,.16);padding:20px 22px;position:relative;flex:1 0 auto;display:flex;flex-direction:column }
#js-tool-container-letter-postage-calculator .lp-bill h3 { margin:0;font-family:var(--mono);font-size:12px;letter-spacing:.1em;color:var(--mute);font-weight:700 }
#js-tool-container-letter-postage-calculator .lp-bill h3 b { color:var(--accent) }
#js-tool-container-letter-postage-calculator .lp-rows { margin:12px 0 0;display:grid }
#js-tool-container-letter-postage-calculator .lp-rows { flex:1 0 auto;align-content:start }
#js-tool-container-letter-postage-calculator .lp-rows div { display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:7px 0;border-bottom:1px dotted #d8dce2;font-size:14.5px }
html[data-theme="dark"] #js-tool-container-letter-postage-calculator .lp-rows div { border-bottom-color:#2b333e }
#js-tool-container-letter-postage-calculator .lp-rows div span:first-child { color:var(--mute) }
#js-tool-container-letter-postage-calculator .lp-bill:not(.ghost) .lp-rows div span:first-child { color:#3c4450 }
html[data-theme="dark"] #js-tool-container-letter-postage-calculator .lp-bill:not(.ghost) .lp-rows div span:first-child { color:#c3cad4 }
#js-tool-container-letter-postage-calculator .lp-rows div b { font-family:var(--mono);font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap }
#js-tool-container-letter-postage-calculator .lp-perf { border-top:2px dashed #c9cfd7;margin:14px -22px 0;position:relative }
html[data-theme="dark"] #js-tool-container-letter-postage-calculator .lp-perf { border-top-color:#2b333e }
#js-tool-container-letter-postage-calculator .lp-total { display:flex;justify-content:space-between;align-items:flex-end;gap:8px;margin-top:10px }
#js-tool-container-letter-postage-calculator .lp-total small { display:block;font-size:12px;color:var(--mute);text-transform:uppercase;letter-spacing:.08em;font-weight:700 }
#js-tool-container-letter-postage-calculator .lp-total b { font-family:var(--mono);font-size:46px;line-height:1;color:var(--price);font-variant-numeric:tabular-nums;letter-spacing:-.02em;white-space:nowrap }
#js-tool-container-letter-postage-calculator .lp-party { margin-top:8px;display:inline-block;background:var(--accent-soft);color:var(--accent);font-size:13px;font-weight:600;border-radius:999px;padding:5px 12px }
#js-tool-container-letter-postage-calculator .lp-bill.ghost .lp-rows b, #js-tool-container-letter-postage-calculator .lp-bill.ghost .lp-total b, #js-tool-container-letter-postage-calculator .lp-alt.ghost .row b { opacity:.45 }
#js-tool-container-letter-postage-calculator .lp-alt { background:var(--card);border:1px solid var(--line);border-radius:22px;box-shadow:0 1px 2px rgba(20,26,33,.04),0 16px 40px -24px rgba(20,26,33,.16);padding:16px 20px }
#js-tool-container-letter-postage-calculator .lp-alt h4 { margin:0 0 6px;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--mute) }
#js-tool-container-letter-postage-calculator .lp-alt .row { display:flex;justify-content:space-between;align-items:center;gap:8px }
#js-tool-container-letter-postage-calculator .lp-alt .row b { font-family:var(--mono);font-size:26px;font-variant-numeric:tabular-nums }
#js-tool-container-letter-postage-calculator .lp-alt .save { display:inline-block;background:#e6f4ea;color:#0f7a4f;font-weight:700;font-size:13px;border-radius:999px;padding:4px 12px;white-space:nowrap }
html[data-theme="dark"] #js-tool-container-letter-postage-calculator .lp-alt .save { background:#123324;color:#51cf7a }
#js-tool-container-letter-postage-calculator .lp-alt .save.flat { background:#eef1f5;color:var(--mute) }
html[data-theme="dark"] #js-tool-container-letter-postage-calculator .lp-alt .save.flat { background:#242c38 }
#js-tool-container-letter-postage-calculator .lp-alt p { margin:8px 0 0;font-size:13px;color:var(--mute) }
@media (max-width:1020px) {
  #js-tool-container-letter-postage-calculator .lp { grid-template-columns:1fr }
  #js-tool-container-letter-postage-calculator .lp-right { display:grid;grid-template-columns:1fr 1fr;align-items:start }
}
@media (max-width:700px) {
  #js-tool-container-letter-postage-calculator .lp-formula { flex-wrap:wrap;font-size:13px }
  #js-tool-container-letter-postage-calculator .lp-right { grid-template-columns:1fr }
  #js-tool-container-letter-postage-calculator .lp-types { grid-template-columns:1fr }
  #js-tool-container-letter-postage-calculator .lp-row3 { grid-template-columns:1fr }
  #js-tool-container-letter-postage-calculator .lp-row2 { grid-template-columns:1fr }
  #js-tool-container-letter-postage-calculator .lp-total b { font-size:40px }
}

/* ===== ToolBoss host integration (id-scoped) ===== */
/* 1. Wrapper neutralised: the block is the tool itself, no theme card around it. Focus mode («На весь экран») keeps its own padding. */
#js-tool-container-letter-postage-calculator:not(.tb-focus-mode) { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; overflow: visible !important; contain: layout style !important; }
#js-tool-container-letter-postage-calculator > .js-premium-app-html-content { display: contents; padding: 0 !important; background: transparent !important; }
/* 1b. Focus mode: core.min.css forces `background:0 0!important` on `:has(.tb-zone)` wrappers — paint the fixed overlay with the page background. */
#js-tool-container-letter-postage-calculator.tb-focus-mode { background: var(--bg0, #f4f5f7) !important; }
html[data-theme="dark"] #js-tool-container-letter-postage-calculator.tb-focus-mode { background: var(--bg0, #0b0c10) !important; }
/* 2. .tb-zone on the app root switches the wrapper into zone layout (action links become the rounded end); the zone card itself is zeroed. */
#js-tool-container-letter-postage-calculator .tb-zone.lp { background: transparent !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; box-shadow: none !important; margin: 0 !important; font-size: 1rem; line-height: 1.55; }
/* 3. Theme control resets (tools-engine / semantic-dark force these with !important). Kept at (1,0,x) specificity so app rules win. */
#js-tool-container-letter-postage-calculator input:where(:not([type="range"], [type="checkbox"], [type="radio"])), #js-tool-container-letter-postage-calculator :where(select, textarea) { height: auto !important; border-radius: 0 !important; padding: 1px 2px !important; font-weight: inherit !important; }
#js-tool-container-letter-postage-calculator :where(select) { border-radius: 8px !important; }
#js-tool-container-letter-postage-calculator :where(input, select, textarea):focus { background-color: transparent !important; box-shadow: none !important; }
#js-tool-container-letter-postage-calculator :where(label) { color: inherit !important; }
#js-tool-container-letter-postage-calculator :where(table, thead, tbody, tr, th, td) { color: inherit; background: transparent; }
#js-tool-container-letter-postage-calculator :where([class*="val"], [class*="result"], [id*="res"]) { line-height: inherit !important; max-width: none !important; overflow-wrap: normal !important; word-break: normal !important; font-variant-numeric: inherit !important; }
