/* HERO-CALM-0911: line lengths in em, not ch (see the note at the top of site.css): 1 ch = 0.47 em in the serif heading font, 0.63 em in Golos Text, so the page no longer re-wraps when a web font replaces its fallback. */
/* Calculator 2.0 page (CALC2-BUILD-A-0711, PART A). Loaded on the calculator page only (assets/calc2.css). Built on the site's own tokens (src/site.css): no colour, font or radius of its own.
   Family Guide: open, not boxed (§6.1); answer first (§8.1); colour only in its fixed places (§4.3: the website colour field, the primary button, links, ONE accent phrase);
   figures are type, never tiles; filament colours are data (§4.4). Motion (§9): transform and opacity only, the reveal is the page-level 320 ms (or the real reading time), nothing counts up,
   prefers-reduced-motion = instant. Logical properties throughout (EN / RU / AR with RTL). Design masters: design/calc2-0711 (kept in the repo as the reference).  */

.c2-page { padding: 28px 0 0; }
.c2-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.c2-eyebrow { font: 500 12px/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.c2-page h1 { font: 400 clamp(30px, 4.4vw, 44px)/1.12 var(--serif); letter-spacing: -0.01em; margin: 0 0 10px; text-wrap: balance; max-width: 8.46em; }
.c2-promise { font-size: 17px; line-height: 1.5; color: var(--ink-2); margin: 0 0 22px; max-width: 34em; text-wrap: pretty; }
[lang="ar"] .c2-eyebrow { letter-spacing: 0; text-transform: none; font-size: 13px; }
/* CALC-MOBILE-0811 (G-CMOB-1): "Use a file" | "Type the numbers": one switch of two equal halves under the heading and the promise, every tap target 46 px tall; the chosen half is the paper-coloured one with a ring, like the tab bar. */
.c2-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; background: var(--canvas); border-radius: 10px; max-width: 460px; margin: 0 0 18px; }
.c2-mode button { min-height: 46px; border: 0; border-radius: 8px; background: none; font: 500 15px/1.2 var(--sans); color: var(--ink-2); padding: 0 10px; cursor: pointer; }
.c2-mode button[aria-pressed="true"] { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(15,18,20,.08), 0 0 0 1px var(--hairline); }
.c2-mode button:focus-visible { outline: 2px solid var(--erp); outline-offset: 1px; }
.c2-app:not([data-ready="1"]) .c2-mode { visibility: hidden; }
[hidden] { display: none !important; }

/* ---------- the field ---------- */
.c2-drop { position: relative; background: var(--erp); color: #fff; border-radius: 12px; padding: 28px 24px 24px; display: grid; gap: 14px; }
.c2-drop-title { font: 400 30px/1.15 var(--serif); margin: 0; letter-spacing: -0.005em; text-wrap: balance; }
.c2-drop-sub { margin: 0; color: rgba(255,255,255,.86); font-size: 15px; line-height: 1.45; }
.c2-drop-btn { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 8px; background: #fff; color: var(--erp-strong); font: 600 16px/1 var(--sans); border: 0; cursor: pointer; }
.c2-drop-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (hover: hover) { .c2-drop-btn:hover { outline: 2px solid #fff; outline-offset: 3px; } }   /* CALC-MOBILE-0811 (G-CMOB-10): hover only where there is a real hover */
.c2-drop-formats { margin: 2px 0 0; font-size: 13px; color: rgba(255,255,255,.78); }
.c2-drop-hint { margin: 0; font-size: 13px; color: rgba(255,255,255,.78); }
.r2-keys { font-size: 13px; color: rgba(255,255,255,.78); }
.r2-drop-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.c2-title-desk, .c2-title-phone { display: none; }
.c2-alt { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 16px 0 0; }
.c2-link { font: 500 15px/1.4 var(--sans); color: var(--erp); text-decoration: underline; text-underline-offset: 4px; background: none; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer; }
.c2-tiny { font-size: 13px; color: var(--ink-3); margin: 0; line-height: 1.5; }
.c2-tiny .c2-link { font-size: 13px; padding: 0; min-height: 0; }
.c2-msg { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); min-height: 0; }
.c2-msg:empty { display: none; }
.c2-noscript { margin: 16px 0 0; color: var(--ink-2); font-size: 14px; }

/* the example under the field: the answer is on the page in the first second */
.c2-example { margin-top: 28px; border-top: 1px solid var(--ink); padding-top: 14px; display: flex; flex-direction: column; }
.c2-example .lbl { font: 500 13px/1.4 var(--sans); color: var(--ink-3); margin: 0 0 4px; }
.c2-ex-body { display: grid; gap: 8px; }
.c2-ex-body .r2-sentence, .c2-ex-body .r2-price p { margin-block: 0; }
.c2-ex-body .c2-ex-lbl { margin: 4px 0 0; }

/* ---------- the model: the slicer's own picture, revealed bottom-up as it is read (a cover moved with transform only) ---------- */
.r2-model { position: relative; overflow: hidden; margin: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; }   /* one cell that is exactly the frame: a picture is contained in it and never sets its size */
.r2-model svg, .r2-model img, .r2-model canvas { width: 100%; height: 100%; display: block; object-fit: contain; }
.r2-model canvas.r2-mesh { object-fit: fill; }
.r2-cover { position: absolute; inset: 0; background: var(--r2-stage, var(--paper)); transform: translateY(calc(var(--p, 1) * -100%));
  border-bottom: 1px solid rgba(15,18,20,.32); transition: transform 320ms linear; will-change: transform; }
.r2-model[data-done] .r2-cover { border-bottom-color: transparent; }
.r2-stack { width: 100%; height: 100%; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.c2-example .r2-model { width: 100%; height: 160px; margin-bottom: 12px; }

/* ---------- the answer ---------- */
.r2 { padding: 14px 0 0; }
.r2-head { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: end; gap: 0 12px; }
.r2-head .r2-model { width: 150px; height: 120px; }
.r2-lbl { font: 500 14px/1.4 var(--sans); color: var(--ink-2); margin: 0 0 2px; }
.r2-amount { font: 400 46px/1.02 var(--serif); letter-spacing: -0.015em; margin: 0; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.r2-per { font: 400 19px/1.3 var(--serif); color: var(--ink-2); margin: 2px 0 0; }
.r2-file { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin: 12px 0 0; padding: 0 0 10px; border-bottom: 1px solid var(--hairline); font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.r2-file b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.r2-file .c2-link { margin-inline-start: auto; padding: 0; min-height: 0; font-size: 13.5px; }
.r2-file.under { margin: 18px 0 0; padding: 0; border-bottom: 0; }   /* CALC-MOBILE-C-0811 (G-CMOB-22): on a phone the file's line is under the two main buttons, not between the price and them */
.r2-sentence { font: 400 18px/1.42 var(--serif); margin: 12px 0 0; text-wrap: pretty; }
.r2-sentence em { font-style: normal; color: var(--erp); }
.r2-bar { display: flex; gap: 2px; height: 6px; margin: 12px 0 6px; }
.r2-bar i { display: block; height: 100%; background: var(--erp-soft); }
.r2-bar i:first-child { background: var(--erp); border-start-start-radius: 3px; border-end-start-radius: 3px; }
.r2-bar i:last-child { border-start-end-radius: 3px; border-end-end-radius: 3px; }
.c2-qty { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); margin-top: 12px; }
.c2-qty button { background: none; border: 0; border-inline-end: 1px solid var(--hairline); padding: 8px 6px 9px; text-align: start; min-height: 58px; font: inherit; color: inherit; cursor: pointer; }
.c2-qty button:last-child { border-inline-end: 0; }
.c2-qty b { display: block; font: 500 13px/1.3 var(--sans); color: var(--ink-3); }
.c2-qty span { display: block; font: 400 17px/1.3 var(--serif); font-variant-numeric: tabular-nums; margin-top: 3px; }
.c2-qty button[aria-pressed="true"] { box-shadow: inset 0 -3px 0 var(--erp); }
.c2-qty button[aria-pressed="true"] b { color: var(--ink); }
.r2-peek { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; width: 100%; min-height: 50px; padding: 0; margin: 0; background: none; border: 0; border-bottom: 1px solid var(--hairline);
  font: 600 15px/1.3 var(--sans); color: var(--ink); text-align: start; cursor: pointer; }
.r2-peek span { font: 400 13.5px/1.3 var(--sans); color: var(--ink-3); }
.r2-peek svg { color: var(--ink-3); }
.r2-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 0; }
.c2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 8px; font: 600 15px/1 var(--sans); border: 1px solid var(--rule); background: var(--paper); color: var(--ink); width: 100%; }
.c2-btn.primary { background: var(--erp); border-color: var(--erp); color: #fff; }
[dir="rtl"] .ic-send { transform: scaleX(-1); }   /* CALC-MOBILE-C-0811 (G-CMOB-28): the paper plane points the way the text runs */
.c2-bridge { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--hairline); }
.c2-bridge p { font: 400 18px/1.45 var(--serif); margin: 0 0 6px; max-width: 28em; }
.c2-bridge .c2-link { padding: 4px 0; }
.r2-space { height: 96px; }
.r2-chips { display: flex; gap: 8px; overflow-x: auto; margin: 12px -20px 0; padding: 0 20px 2px; scrollbar-width: none; }
.c2-chip { flex: none; min-height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid var(--rule); background: var(--paper); font: 500 14px/1 var(--sans); color: var(--ink-2); display: inline-flex; align-items: center; cursor: pointer; }
.c2-chip[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* statements, filament rows */
.c2-h { font: 600 15px/1.4 var(--sans); margin: 28px 0 8px; }
.c2-h-lg { font: 400 26px/1.2 var(--serif); margin: 16px 0 4px; max-width: none; }
.c2-stmt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.c2-stmt td { padding: 7px 0; border-bottom: 1px solid var(--hairline); font-size: 14.5px; vertical-align: baseline; }
.c2-stmt td:last-child { text-align: end; white-space: nowrap; }
.c2-stmt td span { display: inline; margin-inline-start: 6px; font-size: 12.5px; color: var(--ink-3); }
.c2-stmt tr.total td { border-bottom: 0; border-top: 1px solid var(--ink); font-weight: 600; padding-top: 10px; }
.c2-rows { list-style: none; margin: 0; padding: 0; }
.c2-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--hairline); }
.c2-sw { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.c2-row-name { font-size: 15px; overflow-wrap: anywhere; }
.c2-row-name span { display: block; font-size: 13px; color: var(--ink-3); }
.c2-in { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule); border-radius: 8px; padding: 0 10px; min-height: 44px; font-variant-numeric: tabular-nums; background: var(--paper); }
.c2-in input { border: 0; outline: 0; background: none; font: 500 16px/1.2 var(--sans); width: 4.6em; min-width: 0; text-align: end; color: var(--ink); padding: 0; }
.c2-in i { font-style: normal; color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.c2-in:focus-within { border-color: var(--erp); box-shadow: 0 0 0 1px var(--erp); }
.c2-in.bad, .box.bad { border-color: #A82A20; }
.c2-note { border-inline-start: 3px solid var(--rule); padding-block: 2px; padding-inline-start: 12px; color: var(--ink-2); font-size: 14px; line-height: 1.5; margin: 14px 0 0; }

/* manual path + refused */
.r2-manual-empty { margin: 4px 0 0; }   /* G-CMOB-8: the type mode has the file mode's panel; this is only its quiet empty line */
.r2-mf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 12px; row-gap: 0; margin: 14px 0 6px; }
.r2-mf > .c2-field { display: grid; grid-row: span 3; grid-template-rows: subgrid; }   /* label, box and hint of the fields in one row line up even when a label wraps (Russian grams) */
.r2-mf > :nth-child(n+3) { margin-top: 12px; }
[data-m-form] { container-type: inline-size; }
/* G-CMOB-46: one row of five boxes only where each still shows four digits and its unit (time gets a double column for hours + minutes); narrower, two rows: grams + time, price + pieces */
.r2-mf > :nth-child(1) { grid-column: span 2; }   /* row 1: grams (a third) + time (two thirds: hours and minutes need the room); row 2: price + pieces */
.r2-mf > :nth-child(2) { grid-column: span 4; }
.r2-mf > :nth-child(n+3) { grid-column: span 3; }
@container (max-width: 329px) { .r2-mf > :nth-child(-n+2) { grid-column: 1 / -1; } }   /* a very narrow column (a 320 px phone): grams and time get a row each */
@container (min-width: 680px) { .r2-mf { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr); } .r2-mf > * { grid-column: auto; } .r2-mf > :nth-child(n+3) { margin-top: 0; } }
.c2-field label { display: block; font: 600 13px/1.4 var(--sans); margin: 0 0 4px; }
.box { display: flex; align-items: center; gap: 6px; min-height: 48px; border: 1px solid var(--rule); border-radius: 8px; padding: 0 12px; font-size: 16px; font-variant-numeric: tabular-nums; background: var(--paper); }
.box:focus-within { border-color: var(--erp); box-shadow: 0 0 0 1px var(--erp); }
.box input { border: 0; outline: 0; background: none; font: inherit; width: 100%; min-width: 0; color: var(--ink); padding: 0; }
.box i { font-style: normal; color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.box-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.c2-field .hint { font-size: 12px; color: var(--ink-3); margin: 4px 0 0; }
/* CALC-MOBILE-B-0811 (G-CMOB-14): the hint under a box is also its error line; every text it can show sits in the same grid cell (the others invisible), so the slot's height is the tallest of them and the fields never move. */
.r2-mf .hint { display: grid; line-height: 1.4; }
.r2-mf .hint > span { grid-area: 1 / 1; }
.r2-mf .hint .m-r { visibility: hidden; pointer-events: none; }
.c2-field .hint.c2-err { color: #A82A20; }
.c2-field-row { margin-top: 18px; }
.r2-refused { border-inline-start: 3px solid var(--ink); padding-inline-start: 14px; margin: 6px 0 0; }
.r2-refused h2 { font: 400 26px/1.2 var(--serif); margin: 0 0 6px; }
.r2-refused p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.r2-other { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); font-size: 13.5px; color: var(--ink-2); }
.r2-other li { padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.r2-other b { display: block; color: var(--ink); font-weight: 600; }

/* the whole-window drop overlay: one colour field, no dashed box */
.r2-overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: var(--erp); color: #fff; text-align: center; animation: c2-fade 120ms linear; }
.r2-overlay::before { content: ""; position: absolute; inset: 16px; border: 2px solid rgba(255,255,255,.55); border-radius: 16px; }
.r2-overlay h2 { font: 400 56px/1.1 var(--serif); margin: 0 0 12px; letter-spacing: -0.01em; }
.r2-overlay p { margin: 0; font-size: 17px; color: rgba(255,255,255,.9); }
.r2-overlay p + p { margin-top: 6px; font-size: 14px; color: rgba(255,255,255,.78); }
.r2-overlay .ic { width: 28px; height: 28px; margin-bottom: 18px; }
@keyframes c2-fade { from { opacity: 0; } to { opacity: 1; } }

/* sheets: the phone's details and the workshop (rises 240 ms, the scrim fades 180 ms) */
.c2-sheetwrap { position: fixed; inset: 0; z-index: 50; }
.c2-scrim { position: absolute; inset: 0; background: rgba(15,18,20,.38); opacity: 0; transition: opacity 180ms linear; }
.r2-sheet { position: absolute; inset-inline: 0; bottom: 0; max-height: 86vh; overflow: auto; background: var(--paper); border-radius: 12px 12px 0 0; padding: 8px 20px 30px; transform: translateY(100%); transition: transform 240ms cubic-bezier(.2,.8,.2,1); }
.c2-sheetwrap[data-open] .c2-scrim { opacity: 1; }
.c2-sheetwrap[data-open] .r2-sheet { transform: none; }
.c2-sheet-grip { width: 36px; height: 5px; border-radius: 3px; background: var(--rule); margin: 0 auto 12px; }
.c2-sheet-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 6px; }
.c2-sheet-head h2 { font: 400 26px/1.2 var(--serif); margin: 0; }
.c2-sheet-head button { background: none; border: 0; font: 600 15px/1 var(--sans); color: var(--erp); min-height: 44px; padding: 0 4px; cursor: pointer; }
.c2-set { list-style: none; margin: 0 0 6px; padding: 0; }
.c2-set li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--hairline); font-size: 15px; }
.c2-set li label small, .c2-set li > span small { display: block; font-size: 12px; color: var(--ink-3); }
.c2-set select { font: inherit; font-size: 15px; min-height: 44px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); padding: 0 8px; max-width: 55%; }
.c2-set-h { font: 500 12px/1.4 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 22px 0 2px; }
[lang="ar"] .c2-set-h, [lang="ru"] .c2-set-h { letter-spacing: 0.02em; }
.c2-toggle { width: 46px; height: 28px; border-radius: 14px; background: var(--rule); position: relative; flex: none; border: 0; cursor: pointer; }
.c2-toggle::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform 120ms linear; }
.c2-toggle.on { background: var(--erp); }
.c2-toggle.on::after { transform: translateX(18px); }
[dir="rtl"] .c2-toggle.on::after { transform: translateX(-18px); }
.c2-foot { margin-top: 18px; }
.c2-lock { overflow: hidden; }

/* below the fold: the method text of the page keeps its own (older) styling from site.css */
.c2-page .calc2-below { margin-top: 56px; }

@media (min-width: 900px) {
  .c2-page { padding-top: 52px; }
  .c2-app[data-state="first"] { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: 48px; align-items: stretch; grid-template-areas: "head head" "drop side" "alt alt" "msg msg"; }
  .c2-app[data-state="first"] .c2-first-block { grid-area: head; }
  .c2-app[data-state="first"] .c2-first-block h1 { max-width: none; }
  .c2-app[data-state="first"] .c2-drop-area { grid-area: drop; display: flex; flex-direction: column; }
  .c2-app[data-state="first"] .c2-drop-area .c2-drop { flex: 1; }
  .c2-app[data-state="first"] .c2-example-area { grid-area: side; position: relative; }   /* the card is laid over the cell: its height is the drop box's, never its own */
  .c2-app[data-state="first"] .c2-example-area .c2-example { position: absolute; inset: 0; margin-top: 0; }
  .c2-app[data-state="first"] .c2-alt { grid-area: alt; }
  .c2-app[data-state="first"] .c2-msg { grid-area: msg; }
  .c2-example .r2-model { flex: 1 1 0; min-height: 0; height: auto; }
  .c2-title-desk { display: block; }
  .c2-drop { padding: 36px 40px 32px; min-height: 340px; align-content: center; }   /* CALC-MOBILE-0811: 40 px shorter, the switch above it takes the room so the first screen still fits */
  .c2-drop-title { font-size: 40px; }
  .c2-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; column-gap: 64px; align-items: start; }
  .c2-example .r2-model { --r2-stage: var(--canvas); background: var(--canvas); border-radius: 12px; }   /* CALC2-FIX5: the picture is a panel the width of the card, level with the green box (no loose artwork with white on its right) */
  .r2 { padding-top: 0; }
  .r2-actions { grid-template-columns: auto auto; justify-content: start; }
  .c2-btn { width: auto; }
  .r2-sheet { inset-block: 0; inset-inline-start: auto; inset-inline-end: 0; width: 440px; max-height: none; border-radius: 0; transform: translateX(100%); }
  [dir="rtl"] .r2-sheet { transform: translateX(-100%); }
  .c2-sheetwrap[data-open] .r2-sheet { transform: none; }
}
@media (max-width: 899px) {
  .c2-title-phone { display: block; }
  .c2-page { padding-top: 10px; }
  .c2-app[data-state="first"] { display: flex; flex-direction: column; }
  .c2-app[data-state="first"] .c2-first-block { order: 0; }
  .c2-app[data-state="first"] .c2-drop-area { order: 1; }
  .c2-app[data-state="first"] .c2-alt { order: 2; margin-top: 12px; }
  .c2-app[data-state="first"] .c2-example-area { order: 3; margin-top: 24px; }
  .c2-app[data-state="first"] .c2-msg { order: 4; }
  .c2-first-block .c2-eyebrow { display: none; }
  .c2-app:is([data-state="first"], [data-state="manual"]) h1 { font-size: 28px; margin-bottom: 4px; }
  .c2-app:is([data-state="first"], [data-state="manual"]) .c2-promise { font-size: 15px; margin-bottom: 6px; }
  .c2-mode { margin-bottom: 8px; }
  .c2-mode button { min-height: 44px; }
  .c2-app[data-state="first"] .c2-drop { gap: 8px; padding: 16px 20px 12px; }
  .c2-app[data-state="first"] .c2-drop-title { font-size: 24px; }
  .c2-app[data-state="first"] .c2-drop-sub { font-size: 14.5px; }
}
@media (min-width: 900px) { .c2-example .r2-amount { font-size: 46px; } }
/* G-CMOB-1: the heading and the switch stay on screen in "Type the numbers". G-CMOB-16: on an answer and while reading only the switch stays (the heading is kept for screen readers). */
[data-state="reading"] .c2-first-block > :not(.c2-mode), [data-state="result"] .c2-first-block > :not(.c2-mode) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
[data-state="reading"] .c2-mode, [data-state="result"] .c2-mode { margin-bottom: 12px; }
/* Desktop: on an answer the switch sits at the end of the tab row, so the one-screen fit of the Cost tab (calc2.browser, 900 px) is not given up for it. */
@media (min-width: 900px) {
  .c2-app:is([data-state="reading"], [data-state="result"]) { position: relative; }
  .c2-app:is([data-state="reading"], [data-state="result"]) .c2-first-block { position: absolute; inset-block-start: 0; inset-inline-end: 0; width: 300px; z-index: 2; }
  .c2-app:is([data-state="reading"], [data-state="result"]) .c2-mode { margin: 0; }
  .c2-app:is([data-state="reading"], [data-state="result"]) .c2-mode button { min-height: 34px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .r2-cover { transition: none; }
  .r2-sheet, .c2-scrim, .c2-toggle::after { transition: none; }
  .r2-overlay { animation: none; }
  .c2-tabs, .c2-app[data-bar-away] .c2-tabs { transition: none; }
}
@media print { .r2-overlay, .c2-sheetwrap { display: none !important; } }

/* ===================== PART B (CALC2-BUILD-B-0711): tabs, What to charge, Farm, share, quote ===================== */
.c2-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--canvas); border-radius: 8px; padding: 3px; margin: 0 0 14px; }
.c2-tabs button { min-height: 40px; border: 0; background: none; border-radius: 6px; font: 500 14px/1.2 var(--sans); color: var(--ink-2); padding: 0 6px; cursor: pointer; }
.c2-tabs button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(15,18,20,.08), 0 0 0 1px var(--hairline); font-weight: 600; }
.c2-tabs button:focus-visible { outline: 2px solid var(--erp); outline-offset: 1px; }
.c2-tabs button:disabled { color: var(--ink-3); opacity: .55; cursor: default; }   /* the type mode before there is an answer: the tabs are there, only Cost works */
.c2-note.c2-est { border-inline-start-color: var(--erp); }
.c2-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.c2-chips-sm { margin-bottom: 10px; }
.c2-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 10px; }
.c2-in.wide { flex: 1; max-width: 60%; }
.c2-in.wide input { width: 100%; text-align: start; }
.c2-grid { display: flex; flex-direction: column; }
.c2-col { display: contents; }
.c2-blk { min-width: 0; order: var(--po, 0); }   /* phone: one column, ordered by the block's phone order; a desktop column keeps source order (sorted when drawn) */
.c2-where { margin: 6px 0 8px; }
.c2-side.c2-col { position: static; }

/* ---------- CALC2-FIX3-0811: the model stays on every tab as a slim strip (picture, name, key numbers, one way to choose another file) ---------- */
.r2-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; margin: 0 0 12px; padding: 0 0 10px; border-bottom: 1px solid var(--hairline); }
.r2-strip .r2-model { width: 56px; height: 44px; --r2-stage: var(--paper); border-radius: 6px; }
.r2-strip-t { margin: 0; min-width: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.r2-strip-t b { display: block; color: var(--ink); font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.r2-strip-t span { display: block; }
.r2-strip .c2-link { padding: 0; min-height: 0; font-size: 13.5px; white-space: nowrap; }
.r2-strip.big .r2-model { width: 100px; height: 76px; }
@media (max-width: 899px) { .r2-strip .c2-link { grid-column: 1 / -1; justify-self: start; } }
/* the printer picker, one small control under the estimate line */
.c2-est-box { margin: 0 0 6px; }
.c2-printer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); }
.c2-printer > span { flex: none; white-space: nowrap; }
.c2-pk-wrap { position: relative; flex: 0 1 auto; min-width: 0; max-width: 100%; }
.c2-pk { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; padding: 0 10px; font: 500 14px/1.2 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; cursor: pointer; text-align: start; max-width: 100%; }
.c2-pk::after { content: ""; flex: none; width: 6px; height: 6px; border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; }
.c2-pk[aria-expanded="true"]::after { transform: translateY(1px) rotate(225deg); }
.c2-pk .tx { display: grid; white-space: nowrap; }   /* the current name and, unseen, every name: the field is as wide as the longest one, so nothing is cut */
.c2-pk .tx > span { grid-area: 1 / 1; }
.c2-pk .tx .sz { visibility: hidden; height: 0; overflow: hidden; pointer-events: none; }
.c2-pk-list { position: absolute; z-index: 6; top: calc(100% + 4px); inset-inline-start: 0; width: max-content; min-width: 100%; max-width: min(92vw, 380px); max-height: min(70vh, 480px); overflow: auto; overscroll-behavior: contain; padding: 6px; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 18, 20, .14); outline: none; color: var(--ink); }
.c2-pk-list[hidden] { display: none; }
.c2-pk-up { position: relative; z-index: 30; }
.c2-pk-list .gl { padding: 8px 10px 4px; font: 500 11px/1.4 var(--sans); color: var(--ink-3); letter-spacing: .05em; text-transform: uppercase; }
html[lang="ar"] .c2-pk-list .gl, html[lang="ru"] .c2-pk-list .gl { letter-spacing: 0; text-transform: none; font-size: 12px; }
.c2-pk-list [role="group"] + [role="group"] { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--hairline); }
.c2-pk-list [role="option"] { position: relative; display: block; padding: 8px 32px 8px 10px; border-radius: 8px; cursor: pointer; }
.c2-pk-list [role="option"] .n { display: block; font: 500 14px/1.3 var(--sans); }
.c2-pk-list [role="option"] .e { display: block; margin-top: 1px; font: 400 12.5px/1.35 var(--sans); color: var(--ink-3); }
.c2-pk-list [role="option"][aria-selected="true"]::after { content: ""; position: absolute; inset-inline-end: 12px; top: 50%; width: 5px; height: 9px; border-inline-end: 2px solid var(--erp); border-block-end: 2px solid var(--erp); transform: translateY(-65%) rotate(45deg); }
.c2-pk-list [role="option"][data-active] { background: var(--wash, rgba(15, 18, 20, .05)); }
@media (hover: hover) { .c2-pk-list [role="option"]:hover { background: var(--wash, rgba(15, 18, 20, .05)); } }
.c2-pk:focus-visible, .c2-pk-list:focus-visible [data-active] { outline: 2px solid var(--erp); outline-offset: 2px; }
.c2-pk-list:focus-visible { outline: none; }
@media (max-width: 520px) { .c2-printer > span { flex-basis: 100%; } .c2-pk-wrap { flex: 1 1 100%; } .c2-pk { width: 100%; } .c2-pk-list { min-width: 100%; max-width: 100%; } }
.c2-own .c2-in input::placeholder { color: var(--ink-3); opacity: 1; }
.c2-est-box .c2-tiny { margin-top: 6px; }
/* a refused number: one short line under the box */
.c2-err { margin: 4px 0 0; font-size: 12.5px; line-height: 1.4; color: #A82A20; flex-basis: 100%; }
.c2-row { flex-wrap: wrap; }
.c2-set li { flex-wrap: wrap; }
.c2-row:not(:has(.c2-sw)) { grid-template-columns: 1fr auto; }
.c2-row .c2-err { grid-column: 1 / -1; padding-bottom: 8px; margin-top: -2px; }
.c2-note .c2-link { display: inline; padding: 0; min-height: 0; font-size: inherit; line-height: inherit; }
.c2-note { line-height: 1.45; }
.c2-verdict.close { color: var(--ink); }
.c2-stmt-stack td span { display: block; margin-inline-start: 0; }
.r2-tab .c2-grid > div > .r2-amount { margin-top: 6px; }
.c2-load { position: relative; height: 8px; background: var(--erp-soft); border-radius: 4px; margin: 16px 0 6px; }
.c2-load span { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--erp); border-radius: 4px 0 0 4px; }
.c2-load.over span { background: #A82A20; border-radius: 4px; }
.c2-load-legend { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.c2-verdict { font: 400 28px/1.2 var(--serif); margin: 14px 0 0; text-wrap: balance; }
.c2-verdict.bad { color: #A82A20; }
.c2-assume { margin: 8px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-2); }
.c2-assume li { padding: 6px 0; border-bottom: 1px solid var(--hairline); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.c2-assume li b { font-weight: 500; color: var(--ink); }
.c2-assume .c2-in { min-height: 36px; }
.c2-assume .c2-in input { width: 3.2em; }
.c2-stmt tr.minus td:last-child { color: var(--ink-2); }
.c2-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.c2-actions .c2-btn { width: auto; flex: 1 1 auto; padding: 0 12px; text-align: center; }
.c2-quiet { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; margin: 4px 0 0; }
.c2-card-preview { width: 100%; aspect-ratio: 4 / 5; border-radius: 8px; box-shadow: 0 0 0 1px var(--hairline); overflow: hidden; margin: 6px 0 14px; background: #fff; }
.c2-card-preview canvas { width: 100%; height: auto; display: block; }
.c2-logo-row { display: inline-flex; align-items: center; gap: 12px; }
.c2-logo-thumb { max-height: 36px; max-width: 120px; object-fit: contain; }
.c2-set li.c2-keep label { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 0; cursor: pointer; }   /* R6-1a: "Remember this logo on this device", off by default */
.c2-set li.c2-keep input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--ink); cursor: pointer; }
.c2-doc-preview { margin-top: 16px; width: 100%; border-radius: 6px; box-shadow: 0 0 0 1px var(--hairline); overflow: hidden; position: relative; }
.c2-doc-fit { position: relative; overflow: hidden; }
.c2-doc-fit .doc { position: absolute; top: 0; left: 0; }
.c2-doc-preview[data-crop] { box-shadow: none; border-radius: 6px 6px 0 0; border: 1px solid var(--hairline); border-bottom: 0; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }   /* CALC-MOBILE-C-0811 (G-CMOB-27) */
/* the quote document (A4 at 96 dpi, 794 x 1123): selling lines only; Made with Flintlamp + logo + link at the foot, always */
.doc { width: 794px; min-height: 1123px; box-sizing: border-box; background: #fff; color: var(--ink); padding: 64px 64px 48px; display: flex; flex-direction: column; font: 400 13px/1.45 var(--sans); text-align: start; direction: ltr; }
.doc .qhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; min-height: 40px; }
.doc .shop { font: 600 20px/1.2 var(--sans); }
.doc .logo { max-width: 160px; max-height: 56px; object-fit: contain; }
.doc h1 { font: 400 34px/1.15 var(--serif); margin: 48px 0 4px; max-width: none; letter-spacing: 0; }
.doc .sub { color: var(--ink-2); }
.doc .meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 30px; padding: 14px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.doc .meta b { display: block; font: 500 11px/1.4 var(--sans); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.doc .meta span { font-size: 14px; font-variant-numeric: tabular-nums; }
.doc table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.doc th { font: 500 11px/1.35 var(--sans); color: var(--ink-3); text-align: start; padding: 0 0 8px; border-bottom: 1px solid var(--ink); text-transform: uppercase; letter-spacing: .05em; vertical-align: bottom; }
.doc th.n, .doc td.n { text-align: end; }
.doc td { padding: 14px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; font-size: 14px; }
.doc .tot { display: flex; justify-content: flex-end; margin-top: 18px; }
.doc .tot div { min-width: 300px; display: flex; justify-content: space-between; border-top: 2px solid var(--ink); padding-top: 12px; font: 400 24px/1.2 var(--serif); }
.doc .tot div b { font: 500 13px/1.4 var(--sans); color: var(--ink-2); align-self: center; }
.doc .notes { margin-top: 36px; color: var(--ink-2); font-size: 12.5px; }
.doc .notes p { margin: 0 0 6px; }
.doc .made { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; align-items: center; color: var(--ink-3); font-size: 11px; }
.doc .made img { height: 22px; width: auto; }
.doc .made a { color: var(--ink-3); text-decoration: none; }
.doc .bi { display: block; }
.doc [dir="rtl"] { text-align: start; unicode-bidi: isolate; font-family: "IBM Plex Sans Arabic", "Noto Naskh Arabic", sans-serif; text-transform: none; letter-spacing: 0; }
.doc h1 .sub2 { display: block; font-size: 28px; color: var(--ink-2); }
.doc th [dir="rtl"], .doc .meta b [dir="rtl"] { text-transform: none; letter-spacing: 0; }
#c2-print { display: none; }
@media (min-width: 900px) {
  .c2-tabs { max-width: 420px; margin-bottom: 8px; padding: 2px; }
  .c2-tabs button { min-height: 34px; }
  .r2-tab .c2-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; column-gap: 64px; align-items: start; }
  /* the Cost tab keeps its one-screen fit at 1440 x 900 (calc2.browser.mjs): the answer, the sizes, the six lines, the buttons and the bridge are all above the fold */
  .r2-tab[data-view-id="result"] .c2-h { margin: 10px 0 2px; font-size: 14px; }
  .r2-tab[data-view-id="result"] .c2-stmt td { padding: 3px 0; }
  .r2-tab[data-view-id="result"] .c2-stmt tr.total td { padding-top: 7px; }
  .r2-tab[data-view-id="result"] .r2-bar { margin: 10px 0 4px; }
  .r2-tab[data-view-id="result"] .c2-bridge { margin-top: 10px; padding-top: 8px; }
  .r2-tab[data-view-id="result"] .r2-actions { margin-top: 10px; }
  .r2-tab[data-view-id="result"] .c2-bridge p { font-size: 16px; margin: 0 0 2px; }
  .r2-tab[data-view-id="result"] .r2-sentence { font-size: 19px; }
  .r2-tab[data-view-id="result"] .c2-qty { margin-top: 6px; }
  .r2-tab .c2-col { display: block; }
  .r2-tab .c2-side { position: sticky; top: 24px; }
  .r2-tab .r2-amount { font-size: 58px; }
  .r2-tab .c2-col > .c2-blk:first-child > .c2-h:first-child { margin-top: 0; }
  .r2-tab .c2-where { margin-top: 0; }
  .r2-strip .r2-model { width: 96px; height: 72px; }
  .r2-strip.big .r2-model { width: 150px; height: 100px; }
  .c2-card-preview { max-width: 380px; }
}
@media (max-width: 899px) {
  /* the tab bar is the reserved 72 px row at the foot of the screen (the one-screen fit was measured with it) */
  .c2-tabs { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; margin: 0; border-radius: 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--hairline); grid-auto-columns: 1fr; gap: 6px; }
  .c2-tabs { transition: transform 160ms var(--ease-move), opacity 160ms linear; }
  .c2-app[data-bar-away] .c2-tabs { transform: translateY(100%); opacity: 0; pointer-events: none; }   /* CALC-MOBILE-C-0811 (G-CMOB-23): the script also makes it inert, so it leaves the focus order and the reading order */
  .c2-tabs button { min-height: 48px; background: var(--canvas); }
  .c2-tabs button[aria-pressed="true"] { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--erp); color: var(--erp); }
  .r2-tab .r2-amount { font-size: 42px; }
  .c2-card-preview { width: min(100%, calc(42vh * 0.8)); margin-inline: auto; }   /* CALC-MOBILE-C-0811 (G-CMOB-27): the share card is as tall as the sheet allows, so Share image / Share link are above the foot of a 664 px screen */
  .r2-sheet { padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
  .c2-quiet { gap: 2px 12px; }
  .c2-quiet .c2-link { font-size: 14px; }
  .r2-actions .c2-btn { padding: 0 12px; }   /* CALC-MOBILE-0811 (G-CMOB-10): "Customer quote" fits one line in half of 375 px */
  /* CALC-MOBILE-C-0811 (G-CMOB-22): on What to charge and Farm the file strip is the picture, the name and the link: the numbers (already on Cost) stay in the page for a screen reader but are not drawn, so the first controls of the tab are above the bar on a 664 px screen */
  .r2-strip:not(.big) { grid-template-columns: auto minmax(0, 1fr); }
  .r2-strip:not(.big) .r2-model { grid-row: 1 / span 2; }
  .r2-strip:not(.big) .r2-strip-t span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .r2-strip:not(.big) .c2-link { grid-column: 2; justify-self: start; }
  /* CALC-MOBILE-0811 (G-CMOB-6): the foot of the answer is at least the fixed tab bar (65 px + the home-indicator inset) + 16 px, so the feedback link is never behind it */
  .r2-space { height: calc(65px + env(safe-area-inset-bottom, 0px) + 24px); }
}
@media print {
  html.c2-printing, html.c2-printing body { margin: 0 !important; padding: 0 !important; height: auto !important; min-height: 0 !important; overflow: visible !important; background: #fff !important; }
  html.c2-printing body > *:not(#c2-print) { display: none !important; }
  html.c2-printing #c2-print { display: block !important; margin: 0; padding: 0; }
  /* one page on any sheet (A4 or Letter) with the browser's own headers and footers on: the sheet size is the person's, the margin is 14 mm all round (room for Safari's and Chrome's header/footer lines), and the quote is set in the width that is left, never taller than 235 mm - the shortest printable height (Letter, 279 mm, minus 28 mm margins and a header line) - so it cannot start a second page */
  html.c2-printing #c2-print .doc { width: auto; max-width: none; height: auto; min-height: 0; max-height: 235mm; overflow: hidden; padding: 0; box-shadow: none; break-inside: avoid; break-after: avoid; page-break-after: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html.c2-printing #c2-print .doc h1 { margin-top: 28px; }
  html.c2-printing #c2-print .doc .meta { margin: 20px 0 22px; }
  html.c2-printing #c2-print .doc .notes { margin-top: 24px; }
  html.c2-printing #c2-print .doc .made { margin-top: 32px; }
  @page { size: auto; margin: 14mm; }
}

/* ---------- CALC2-BUILD-C-0711: the facts line, the quote-generator page and the slicer-file guide (same tokens; open, not boxed) ---------- */
.c2-facts { font-size: 14px; line-height: 1.45; color: var(--ink-3); margin: 6px 0 0; max-width: 34em; }
.c2-tool-page { padding-top: 28px; }
.c2-tool-page h1 { font: 400 clamp(30px, 4.4vw, 44px)/1.12 var(--serif); letter-spacing: -0.01em; margin: 0 0 14px; max-width: 10.34em; }
.c2-tool-page .lead { max-width: 40em; margin: 0 0 14px; }
.c2-tool-page .c2-facts { margin: 0 0 20px; }
.c2-tool-page .actions { margin: 0 0 8px; }
.c2-share-note { margin-top: 10px; }
.c2-app[data-mode="quote"][data-state] { display: block; }
.c2-ex-quote { margin: 44px 0 0; max-width: 34em; }
.c2-ex-quote h2, .c2-guide-table h2 { margin: 0 0 6px; }
.c2-ex-quote table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.c2-ex-quote th, .c2-ex-quote td { text-align: start; padding: 10px 0; border-top: 1px solid var(--hairline); font-size: 16px; font-weight: 400; }
.c2-ex-quote th { color: var(--ink-2); padding-inline-end: 16px; }
.c2-ex-quote td { font-variant-numeric: tabular-nums; }
.c2-ex-quote tr:last-child th, .c2-ex-quote tr:last-child td { border-bottom: 1px solid var(--hairline); }
.c2-guide-table { margin: 44px 0 0; }
.c2-guide-table table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.c2-guide-table th, .c2-guide-table td { text-align: start; vertical-align: top; padding: 12px 14px 12px 0; border-top: 1px solid var(--hairline); font-size: 15px; line-height: 1.45; font-weight: 400; }
.c2-guide-table thead th { font-size: 13px; color: var(--ink-3); font-weight: 500; border-top: 0; padding-bottom: 8px; }
.c2-guide-table tbody th { font-weight: 600; min-width: 11em; }
.c2-guide-table tbody tr:last-child th, .c2-guide-table tbody tr:last-child td { border-bottom: 1px solid var(--hairline); }
@media (max-width: 760px) {
  .c2-guide-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .c2-guide-table table, .c2-guide-table tbody, .c2-guide-table tr, .c2-guide-table th, .c2-guide-table td { display: block; }
  .c2-guide-table tr { border-top: 1px solid var(--hairline); padding: 12px 0; }
  .c2-guide-table th, .c2-guide-table td { border: 0 !important; padding: 2px 0; }
  .c2-guide-table td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--ink-3); margin-top: 8px; }
}
.c2-steps { margin: 14px 0 0; max-width: 40em; }
.c2-steps > div { padding: 12px 0; border-top: 1px solid var(--hairline); }
.c2-steps > div:last-child { border-bottom: 1px solid var(--hairline); }
.c2-steps dt { font-weight: 600; margin: 0 0 4px; }
.c2-steps dd { margin: 0; color: var(--ink-2); }

/* CALC2-POLISH-0711 (R43): the text under the tool is a four-step strip and folded rows; nothing above three lines is open on load, reading column about 62 characters, phone first. */
.c2-how { margin: 0 0 64px; }
.c2-how h2 { margin: 0 0 18px; }
.c2-how ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.c2-how li { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.c2-how-n { flex: none; width: 1.25em; text-align: center; font: 500 14px/1 var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.c2-how-ic { flex: none; display: inline-flex; color: var(--erp); }
.c2-how-t { font: 500 17px/1.4 var(--sans); max-width: 20.16em; text-wrap: balance; }
.c2-qa-sec { margin-top: 64px; }
.c2-how + .c2-qa-sec { margin-top: 0; }
.c2-qa { margin: 18px 0 0; border-top: 1px solid var(--hairline); max-width: 760px; }
.c2-fold { border-bottom: 1px solid var(--hairline); }
.c2-qa-sec + .c2-fold { margin-top: 40px; border-top: 1px solid var(--hairline); max-width: 760px; }
.c2-fold.c2-method { max-width: 760px; }
.c2-fold summary { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 8px 0; list-style: none; cursor: pointer; }
.c2-fold summary::-webkit-details-marker { display: none; }
.c2-fold summary h3, .c2-fold summary .c2-sum { flex: 1; margin: 0; font: 600 16px/1.4 var(--sans); }
.c2-fold summary .ic { flex: none; color: var(--ink-3); transition: transform 160ms var(--ease-move); }
.c2-fold[open] summary .ic { transform: rotate(90deg); }
[dir="rtl"] .c2-fold summary .ic { transform: scaleX(-1); }
[dir="rtl"] .c2-fold[open] summary .ic { transform: scaleX(-1) rotate(90deg); }
.c2-fold summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }
.c2-ans { padding: 0 0 20px; max-width: 39.06em; }
.c2-ans p { margin: 0 0 10px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.c2-ans .calc-method-lead { margin: 0 0 12px; font-size: 16px; max-width: none; }
.c2-ans .calc-method { max-width: none; }
.c2-ans .calc-method p { margin: 0 0 10px; }
.c2-ans .link { display: inline-block; margin-top: 2px; font-weight: 500; }
.c2-page .calc2-below .more-title { margin-top: 64px; }
.c2-steps dd { max-width: 39.06em; }
.c2-tool-page .lead { max-width: 39.06em; }
@media (min-width: 900px) {
  .c2-how ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; border-top: 0; }
  .c2-how li { flex-direction: column; align-items: flex-start; gap: 14px; min-height: 0; padding: 18px 0 0; border-bottom: 0; border-top: 1px solid var(--hairline); }
  .c2-how-n { width: auto; text-align: start; }
}
@media (prefers-reduced-motion: reduce) { .c2-fold summary .ic { transition: none; } }
/* CALC2-FIX2-0711: the model is the normal way in; the sliced file is a quiet upgrade, and "Choose another file" is always in reach */
.r2-pick { margin: 16px 0 8px; }
.c2-note.c2-est { font-weight: 400; color: var(--ink-2); }
.r2-refused + .r2-pick { margin-top: 8px; }
.c2-fold .r2-other { border-top: 0; }

/* ===================== CALC2-FIX5-0811: the large viewer on the Cost tab (G-C2T-15), the loading frame (G-C2T-17) ===================== */
/* by hand: drag (mouse: turn and tilt; finger: turn, a vertical swipe still scrolls the page), arrow keys; no wheel, no pinch */
.r2-model[data-hand] canvas.r2-mesh { cursor: grab; touch-action: pan-y; }
.r2-model[data-hand] canvas.r2-mesh[data-dragging] { cursor: grabbing; }
.r2-model canvas.r2-mesh:focus-visible { outline: 2px solid var(--erp); outline-offset: -3px; }
.r2-viewer-t { margin: 0; min-width: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.r2-viewer-t b { display: block; color: var(--ink); font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.r2-viewer-t span { display: block; }
.r2-viewer-t .c2-link { padding: 0; min-height: 0; font-size: 13.5px; }
.r2-viewer .r2-chips { margin: 10px 0 0; padding-inline: 0; }
.r2-file.live b { display: block; color: var(--ink); font-weight: 600; }
@media (min-width: 900px) {
  /* the model fills what the answer column leaves, so the two columns end level; the other tabs keep the slim strip */
  .r2-tab[data-view-id="result"] .c2-col:not(.c2-side), .r2-loading .c2-col:not(.c2-side) { display: grid; grid-template-rows: minmax(auto, 1fr) auto auto; align-self: stretch; }   /* grid, not flex: the first row takes what the other two leave, and never less than the viewer needs */
  .r2-tab[data-view-id="result"] .c2-col .c2-blk, .r2-loading .c2-col .c2-blk { order: 0; }
  .r2-tab[data-view-id="result"] .c2-side, .r2-loading .c2-side { align-self: start; }
  .c2-blk-viewer { display: grid; grid-template-rows: minmax(0, 1fr); min-height: 0; }
  .r2-viewer { display: grid; grid-template-rows: minmax(200px, 1fr); grid-auto-rows: auto; min-height: 0; }
  .r2-viewer-stage { position: relative; min-height: 200px; background: var(--canvas); border-radius: 12px; --r2-stage: var(--canvas); overflow: hidden; }
  .r2-viewer-stage > .r2-model { position: absolute; inset: 0; width: 100%; height: 100%; }
  .r2-viewer-stage > [data-slot] { position: absolute; inset: 0; }
  .r2-viewer-t { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: end; }
  .r2-viewer-t b, .r2-viewer-t span { grid-column: 1; }
  .r2-viewer-t .c2-link { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; }
}
/* loading: the answer's own frame, the numbers masked (same tab bar, same columns, same blocks: the page does not move when the answer arrives) */
.r2-loading { pointer-events: none; user-select: none; }
.r2-loading * { color: transparent !important; border-color: var(--hairline); }
.r2-loading :is(p, h2, .c2-qty b, .c2-qty span, .c2-row-name > *, .c2-chip, .c2-btn, .c2-link):not(.live, .live *) { background: var(--canvas); border-radius: 4px; box-shadow: none; }
.r2-loading :is(.r2-amount, .r2-sentence, .r2-lbl, .r2-per) { width: fit-content; }
.r2-loading svg, .r2-loading .c2-sw, .r2-loading .ic { visibility: hidden; }
.r2-loading input, .r2-loading select { background: transparent; }
.r2-loading .c2-tabs button { color: var(--ink-2) !important; background: none; }
.r2-loading .c2-tabs button[aria-pressed="true"] { color: var(--ink) !important; background: var(--paper); }
.r2-loading .live b, .r2-loading .live b * { color: var(--ink) !important; background: none; }
.r2-loading .live span { color: var(--ink-2) !important; background: none; }
.r2-loading .r2-model { --r2-stage: var(--canvas); }
.r2-loading .c2-bar i, .r2-loading .r2-bar i { background: var(--canvas); }

/* CALC2-FIX9-0811: the quiet "Found a problem or have an idea?" link and the small feedback sheet */
.c2-fb-link { margin-top: 18px; text-align: center; }
.c2-fb-link .c2-link { font-size: 13px; padding: 6px 0; min-height: 0; color: var(--ink-3); }
.c2-fb { display: flex; flex-direction: column; gap: 8px; }
.c2-fb label { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.c2-kinds { display: flex; gap: 8px; flex-wrap: wrap; }
.c2-kind { font: 500 15px/1.2 var(--sans); min-height: 44px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 22px; background: var(--paper); color: var(--ink-2); cursor: pointer; }
.c2-kind[aria-pressed="true"] { border-color: var(--erp); color: var(--erp); box-shadow: 0 0 0 1px var(--erp); }
.c2-fb textarea { font: 400 16px/1.45 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; min-height: 120px; resize: vertical; width: 100%; box-sizing: border-box; }
.c2-fb textarea:focus { outline: 0; border-color: var(--erp); box-shadow: 0 0 0 1px var(--erp); }
.c2-fb .c2-in.wide { max-width: none; width: 100%; box-sizing: border-box; }
.c2-fb .c2-err { margin: 0; font-size: 13.5px; }
.c2-fb-thanks { padding: 28px 0 6px; font-size: 18px; line-height: 1.45; color: var(--ink); outline: 0; }
.c2-fb-thanks p { margin: 0; }
/* LEGAL-RC-0811 (G-LPB-6): the point-of-use lines. Quiet, under the answer and under each tool; links keep the page colour. */
.c2-legal { margin-top: 10px; max-width: 46em; }
.c2-tool-line { margin: 28px 0 0; max-width: 46em; }
.c2-tiny.bq-any { margin: 14px 0 0; max-width: 46em; font-size: 15px; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }   /* WEB-QUOTE-ANY-1111: from the 3D-print quote to the quote maker for any business */
.c2-tool-line a { color: var(--ink-2); text-underline-offset: 3px; overflow-wrap: anywhere; }
/* CALC-SHARE-0911 (G-SHARE-2): a shared result is one read-only view, the share card as a page. The start block (title, switch) stays for screen readers only; no tabs, no inputs. */
[data-state="shared"] .c2-first-block { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.r2-shared { max-width: 34rem; padding-block: 8px 24px; }
.rs-file { display: flex; flex-direction: column; gap: 2px; margin: 0 0 18px; }
.rs-file b { font: 600 17px/1.35 var(--sans); overflow-wrap: anywhere; }
.rs-file span { font: 500 14px/1.4 var(--sans); color: var(--ink-2); }
.r2-shared .r2-amount { font-size: 58px; }
.r2-shared .r2-sentence { margin-top: 14px; }
.r2-shared .r2-bar { margin: 16px 0 10px; }
.r2-shared .c2-stmt td { font-size: 15.5px; padding: 9px 0; }
.rs-made { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 0; padding-top: 14px; border-top: 1px solid var(--hairline); }
.rs-made img { height: 28px; width: auto; display: block; }
.rs-made p { margin: 0; display: flex; flex-direction: column; align-items: flex-end; text-align: end; font: 600 13px/1.4 var(--sans); color: var(--ink); }
.rs-made p span { font-weight: 500; color: var(--ink-2); }
.r2-shared .c2-actions { margin-top: 20px; }
.r2-shared .c2-actions .c2-btn { flex: 1 1 100%; }
.rs-note { margin-top: 12px; }
@media (max-width: 899px) { .r2-shared .r2-amount { font-size: 46px; } .r2-shared .c2-stmt td { padding: 6px 0; font-size: 15px; } .rs-file { margin-bottom: 12px; } }

/* CALC-SHARE-0911 (G-SHARE-4/5): the small calm toast ("Image saved", "Link copied"): the site's ink, one line, above the sheet and the tab bar, never taking a tap. */
.c2-toast { position: fixed; z-index: 70; inset-inline: 16px; bottom: calc(24px + env(safe-area-inset-bottom)); width: fit-content; max-width: min(92vw, 420px); margin-inline: auto; padding: 11px 18px; border-radius: 12px; background: var(--ink); color: #fff; font: 500 14.5px/1.35 var(--sans); text-align: center; box-shadow: 0 10px 30px rgba(15, 18, 20, .22); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 160ms linear, transform 160ms ease-out; }
.c2-toast[data-show] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .c2-toast { transition: none; transform: none; } }
[data-share-msg] .c2-link { margin-inline-start: 4px; }

/* CALC-ADJUST-0911 (G-ADJ-1): the two adjust buttons under "How we got this" and the tappable breakdown lines */
.r2-adjust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 0; }
.c2-btn.quiet { background: transparent; border-color: var(--rule); color: var(--ink-2); font-weight: 500; }
.c2-btn.quiet svg { color: var(--ink-3); }
@media (hover: hover) { .c2-btn.quiet:hover { background: var(--canvas); color: var(--ink); } .c2-stmt-tap tr.c2-trow:hover td { background: var(--canvas); } }
.c2-btn.quiet:focus-visible, .c2-rowbtn:focus-visible { outline: 2px solid var(--erp); outline-offset: 2px; }
@media (min-width: 900px) { .r2-adjust { grid-template-columns: auto auto; justify-content: start; } .r2-tab[data-view-id="result"] .r2-adjust { margin-top: 8px; } }
@media (max-width: 899px) { .r2-adjust .c2-btn { padding: 0 12px; } }
.c2-stmt-tap tr.c2-trow { cursor: pointer; position: relative; }
.c2-stmt-tap td.c2-go { width: 22px; padding-inline-start: 6px; text-align: end; vertical-align: middle; color: var(--ink-3); }
.c2-stmt-tap td.c2-go svg { display: block; margin-inline-start: auto; opacity: .7; }
[dir="rtl"] .c2-stmt-tap .ic-forward { transform: scaleX(-1); }
.c2-rowbtn { display: block; width: 100%; padding: 0; margin: 0; background: none; border: 0; font: inherit; color: inherit; text-align: start; cursor: pointer; border-radius: 4px; }
@media (max-width: 899px), (pointer: coarse) { .c2-stmt-tap td { padding-block: 0; } .c2-stmt-tap tr.c2-trow td { height: 44px; } .c2-stmt-tap .c2-rowbtn { min-height: 44px; display: flex; flex-wrap: wrap; align-content: center; align-items: baseline; } .c2-stmt-tap tr.total td { height: 44px; } }
.c2-hl { background: var(--canvas); box-shadow: inset 0 0 0 2px var(--erp); border-radius: 8px; }
@media (max-width: 899px) { .r2-adjust { margin-top: 8px; } .r2-adjust .c2-btn { min-height: 44px; } .r2-peek { min-height: 44px; } .r2-adjust + .r2-actions { margin-top: 10px; } }   /* the pair fits between the breakdown row and Share on a 664 px phone (G-CMOB-22 still holds) */
@media (min-width: 900px) { .r2-adjust { display: inline-grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; } }   /* equal widths on a computer */
@media (min-width: 900px) { .r2-tab[data-view-id="result"] .r2-adjust .c2-btn, .r2-tab[data-view-id="result"] .r2-actions .c2-btn { min-height: 40px; } .r2-tab[data-view-id="result"] .c2-stmt-tap td { padding: 2px 0; } .r2-tab[data-view-id="result"] .r2-adjust { margin-top: 6px; } .r2-tab[data-view-id="result"] .r2-actions { margin-top: 8px; } .r2-tab[data-view-id="result"] .c2-bridge { margin-top: 8px; padding-top: 4px; } }   /* the one-screen fit at 1440 x 900 holds in RU and AR with the pair */
@media (min-width: 900px) { .r2-tab[data-view-id="result"] .c2-stmt-tap tr.total td { padding-top: 4px; } .r2-tab[data-view-id="result"] .r2-bar { margin: 8px 0 2px; } .r2-tab[data-view-id="result"] .c2-h { margin-top: 6px; } }

/* ---------- CALC-SIMPLE-0911: the first view is one calm answer ---------- */
/* the cost, then ONE suggested price (a tap to the What to charge tab), then Share / Customer quote, then the quiet pair; everything else is one tap away in "How we got this" and "Print details". Existing tokens only. */
.r2-charge { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 10px; width: 100%; min-height: 60px; margin: 14px 0 0; padding: 0; background: none; border: 0; border-block: 1px solid var(--hairline); text-align: start; color: var(--ink); font: inherit; cursor: pointer; }
.r2-charge-l { font: 500 14px/1.3 var(--sans); color: var(--ink-2); }
.r2-charge-v { font: 400 26px/1.1 var(--serif); letter-spacing: -0.01em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.r2-charge-v small { font: 400 14px/1.3 var(--sans); letter-spacing: 0; color: var(--ink-3); margin-inline-start: 4px; }
.r2-charge svg { color: var(--ink-3); }
.r2-charge:focus-visible { outline: 2px solid var(--erp); outline-offset: 2px; }
@media (hover: hover) { .r2-charge:hover { background: var(--canvas); } }
[dir="rtl"] .r2-charge .ic-forward, [dir="rtl"] .c2-bridge-link .ic-forward { transform: scaleX(-1); }
.r2-rnote { margin: 10px 0 0; }
.r2-legal-gap, .c2-legal { margin-top: 8px; }
.r2-peek { margin-top: 6px; }
.c2-bridge { margin: 20px 0 0; padding-top: 14px; }
.c2-bridge p { font: 400 17px/1.4 var(--serif); margin: 0 0 2px; }
.c2-bridge-link { display: inline-flex; align-items: center; gap: 6px; }
.c2-fold-assume { margin-top: 10px; }
@media (min-width: 900px) {
  .r2-tab[data-view-id="result"] .r2-charge { margin-top: 18px; }
  .r2-tab[data-view-id="result"] .r2-actions { margin-top: 18px; }
  .r2-tab[data-view-id="result"] .r2-adjust { margin-top: 10px; }
  .r2-tab[data-view-id="result"] .r2-peek { margin-top: 14px; }
  .r2-tab[data-view-id="result"] .c2-bridge { margin-top: 26px; padding-top: 16px; }
  .r2-tab[data-view-id="result"] .c2-bridge p { font-size: 17px; }
}
.c2-gap { height: 18px; }
@media (max-width: 899px) { .r2-later > .c2-bridge { margin-top: 76px; } }   /* a 390 x 664 phone: the bridge starts below the fold, so the first view is the answer only */
/* desk-site-02-2211 (G-SFG1611-7): the quiet line under the estimate */
.r2-uses { margin: 4px 0 0; color: var(--ink-3); }
