/* mesa-lin.css — GENERATED by tools/mesa-lin.cjs: assets/css/mesa-opt.css (the mould of «La mesa de corte») less the rules of the
   glass optimiser's own parts, then tools/mesa-lin.src.css (what is the bar cutting optimiser's own). Do not edit: change one of
   those two and run  node tools/mesa-lin.cjs */
/* mesa-opt.css — «La mesa de corte» in the glass cutting optimiser (r1290, 11-11-2026); the mould of the bar and panel
   ones too (tools/mesa-lin.cjs, tools/mesa-panel.cjs copy it, less the glass lines: ONE RULE PER LINE). After base.css and
   mesa.css (its --mc-* tokens). Markup: tools/mesa-opt.cjs; live parts: assets/js/cut-mesa.js. 1 the band (header and
   title on the material's colour, the result at the right); 2 the workbench: list on paper, plan on an ink table; 3 the
   result in full, in a strip; 4 the page in full-width sections. Rules start at #mesa, beside it or at a window; each
   !important answers an inline style. Screen only but one print block. Dark: the same on ink. Contrast measured
   (WCAG 2.x): 7.0 or more for text, 3.1 the field line. */
@media screen{
#mesa, main:has(> #mesa){ --mo-gut:max(18px, 3.2vw, var(--sa,0px)); --mo-pad:clamp(16px, 2vw, 30px); --mo-line:color-mix(in srgb, var(--ink) 18%, transparent); --mo-dim:#bdbab2; }

/* ---------- 1. the band ---------- */
/* the site's header on the band: the same header, in ink on the material's colour, not stuck to the window */
.site-head:has(~ main > #mesa){ position:relative; background:var(--mc-mint); border-bottom:0; color-scheme:light;
  --ink:#0b0f0e; --ink-2:#0b0f0e; --ink-3:#2a3330; --paper:#f4f1ea; --paper-2:#e9e5da; --surface:#fff; --surface-2:#faf8f3; --rule:#d8d3c6; --rule-2:#0b0f0e;
  --glass:#0b0f0e; --glass-deep:#0b0f0e; --glass-tint:#f4f1ea; color:#0b0f0e; }
.site-head:has(~ main > #mesa) > .wrap{ max-width:none; padding-inline:max(18px, 3.2vw, var(--sa,0px)); }
.site-head:has(~ main > #mesa) :is(.nav > a, .nav-dd, .brand){ color:#0b0f0e; }
.site-head:has(~ main > #mesa) :is(.nav > a, .nav-dd):hover, .site-head:has(~ main > #mesa) .nav-drop.open > .nav-dd{ background:rgba(11,15,14,.1); }
.site-head:has(~ main > #mesa) .sfp-btn{ background:transparent; border-color:rgba(11,15,14,.55); color:#0b0f0e; }
.site-head:has(~ main > #mesa) .sfp-btn kbd{ border-color:rgba(11,15,14,.55); color:#0b0f0e; }
.site-head:has(~ main > #mesa) .nav > a:last-of-type{ background:transparent; border:2px solid #0b0f0e; border-radius:999px; color:#0b0f0e; font-weight:800; padding:6px 16px; }
.site-head:has(~ main > #mesa) .nav > a:last-of-type:hover{ background:#0b0f0e; color:#f4f1ea; }
.site-head:has(~ main > #mesa) :is(a, button):focus-visible{ outline:3px solid #0b0f0e; outline-offset:2px; }
.site-head:has(~ main > #mesa) .menu-btn{ color:#0b0f0e; border-color:#0b0f0e; background:transparent; }

main.wrap:has(> #mesa){ max-width:none; padding:0; }
/* the padding answers the inline padding-bottom of the header's section */
#mesa > .hero{ display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:4vw; align-items:end; margin:0; padding:4px var(--mo-gut) 16px !important;
  background:var(--mc-mint); color:#0b0f0e; border-bottom:3px solid #0b0f0e; color-scheme:light;
  --ink:#0b0f0e; --ink-2:#0b0f0e; --ink-3:#0b0f0e; --glass:#0b0f0e; --glass-deep:#0b0f0e; --mc-focus:#0b0f0e; --mc-edge:#0b0f0e; --mc-cut:#0b0f0e; --mc-on-cut:#f4f1ea; }
#mesa > .hero::after{ display:none; }
#mesa .mo-hl{ min-width:0; }
#mesa .hero .eyebrow{ margin:0; color:#0b0f0e; font-size:.74rem; font-weight:700; letter-spacing:.13em; text-transform:uppercase; }
#mesa .hero h1{ margin:6px 0 0; max-width:20em; font-weight:800; font-stretch:100%; font-size:clamp(1.5rem, 2.25vw, 2.2rem); line-height:1.02; letter-spacing:-.025em; color:#0b0f0e; text-wrap:balance; }
#mesa .mo-sub{ margin:8px 0 0; max-width:42em; font-size:.98rem; line-height:1.35; color:#0b0f0e; }
#mesa :is(.mo-more, .mo-set){ border:0; border-radius:0; padding:0; margin:0; background:none; }
#mesa :is(.mo-more, .mo-set)[open] > summary{ margin-bottom:0; }
#mesa .mo-more{ display:inline; }
#mesa .mo-more > summary{ display:inline; list-style:none; cursor:pointer; font-weight:700; text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:2px; padding:12px 0; border-radius:2px; }
#mesa .mo-more > summary::-webkit-details-marker{ display:none; }
#mesa .mo-more > summary:focus-visible{ outline:3px solid #0b0f0e; outline-offset:2px; }
#mesa .mo-more-in{ margin:12px 0 4px; padding-top:12px; border-top:1.5px solid rgba(11,15,14,.35); }
#mesa .mo-more-in .answer{ margin:0 0 12px; padding:0; background:none; border:0; border-radius:0; box-shadow:none; max-width:none; }
#mesa .mo-more-in :is(p, .hint, .answer){ color:#0b0f0e; }
#mesa .mo-more-in .cta-row{ margin:0 0 10px; }
#mesa .mo-more-in .cta.ghost{ border-color:#0b0f0e; color:#0b0f0e; }
/* the result */
#mesa .mo-res{ min-width:0; }
#mesa .mo-pill{ display:inline-flex; align-items:center; gap:8px; max-width:100%; min-height:32px; margin:0 0 10px; padding:5px 14px 5px 9px; border-radius:999px; background:#0b0f0e; color:#f4f1ea; font-size:.9rem; font-weight:700; line-height:1.2; }
#mesa .mo-pill i{ flex:0 0 18px; width:18px; height:18px; border-radius:50%; background:#f4f1ea; display:grid; place-items:center; }
#mesa .mo-pill.ok i{ background:var(--mc-mint); }
#mesa .mo-pill.ok i::after{ content:""; width:8px; height:4px; border-left:2.5px solid #0b0f0e; border-bottom:2.5px solid #0b0f0e; transform:rotate(-45deg) translateY(-1px); }
#mesa .mo-pill.warn i{ background:var(--mc-amber); }
#mesa .mo-pill.no i{ background:var(--mc-coral); }
#mesa .mo-fig{ display:flex; align-items:end; gap:clamp(18px, 3vw, 46px); margin:0; }
#mesa .mo-fig > div{ display:grid; }
#mesa .mo-fig dt{ order:2; margin-top:12px; font-size:.74rem; font-weight:700; letter-spacing:.13em; text-transform:uppercase; }
#mesa .mo-fig dd{ margin:0; font-stretch:62%; font-weight:900; font-size:clamp(3.2rem, 6.2vw, 6.2rem); line-height:.8; letter-spacing:-.01em; font-variant-numeric:tabular-nums; white-space:nowrap; }
#mesa .mo-fig dd small{ font-size:.42em; margin-left:.06em; }

/* ---------- 2. the workbench ---------- */
/* the padding answers the inline padding of the section */
#mesa > #tool{ padding:0 !important; margin:0; }
#mesa .calc{ display:grid; grid-template-columns:minmax(0,1fr); align-items:start; gap:0; border:0; border-radius:0; box-shadow:none; background:var(--paper); overflow:visible; position:relative; }
#mesa .calc::before{ content:""; display:block; position:static; height:auto; grid-column:1 / -1; grid-row:2 / 4; align-self:stretch; background:#0b0f0e; z-index:auto; }
#mesa .calc > .results{ display:contents; }
#mesa .calc > .results > *{ grid-column:1 / -1; order:6; margin-inline:var(--mo-gut); min-width:0; }

/* the list, on paper */
#mesa .calc > form{ grid-column:1; grid-row:1; padding:18px var(--mo-gut) 22px; min-width:0; }
#mesa fieldset{ margin:0; }
#mesa #f > fieldset:first-of-type{ display:flex; flex-wrap:wrap; gap:0 8px; align-items:center; }
#mesa #f > fieldset:first-of-type > *{ flex:0 0 100%; min-width:0; }
#mesa #f > fieldset:first-of-type > legend{ display:flex; align-items:baseline; gap:12px; float:left; width:100%; margin:0 0 10px; padding:0; border:0; font-size:1.25rem; font-weight:800; font-stretch:100%; letter-spacing:-.01em; color:var(--ink); }
#mesa legend::before{ display:none; }
/* «these sizes are an example»: an ink bar with the way out of it */
/* the rows: a swatch in the colour of the size's pieces, width, height, how many */
/* the rows are drawn by the page script at the end of the document: their room is kept until then (r1021) */
#mesa .p{ border-top:1.5px solid var(--mo-line); padding:3px 0; }
/* the first three boxes of a row, whatever their type (assets/js/cut-units.js makes them text boxes for inches) */
/* add a size, paste a list, the rows' extras */
/* the settings, folded, each with its value in sight */
#mesa #f > fieldset:has(> .mo-set){ margin-top:14px; border-top:3px solid var(--mc-edge); }
#mesa #f > fieldset:has(> .mo-set) > legend, #mesa .mo-set > fieldset > legend{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; float:left; padding:0; margin:0; border:0; }
#mesa .mo-set{ border-bottom:1.5px solid var(--mo-line); }
#mesa .mo-more > summary{ background:none; }
#mesa .mo-set > summary{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; min-height:44px; padding:11px 0; list-style:none; cursor:pointer; font-weight:700; color:var(--ink); }
#mesa .mo-set > summary::-webkit-details-marker{ display:none; }
#mesa .mo-set > summary::after{ content:"+"; flex:0 0 .7em; font-weight:800; text-align:right; }
#mesa .mo-set[open] > summary::after{ content:"–"; }
#mesa .mo-set-v{ margin-left:auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:500; color:var(--ink-3); font-variant-numeric:tabular-nums; }
#mesa .mo-set > summary:hover .mo-set-t{ text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:2px; }
#mesa .mo-set > :is(.mo-set-in, fieldset){ padding:2px 0 16px; }
#mesa .mo-set .cu-units{ margin:0 0 12px; }
#mesa .mo-notes{ margin-top:14px; font-size:.86rem; color:var(--ink-3); }
#mesa .mo-notes :is(.note, .hint){ margin:0 0 8px !important; padding:0; border:0; background:none; font-size:inherit; color:inherit; }
#mesa .mo-notes .mobhint{ display:none; }
#mesa .mo-notes a{ display:inline-block; padding:10px 0; margin:-10px 0; }

/* the table, on ink (r1294). Its parts are inside #moTable, one box that follows the reader down the list; that box
   is inside #moInk, the ink panel itself: a real block as tall as the list beside it, which is what keeps the
   sticky table inside the ink in every browser */
#mesa .calc > .results > #moInk{ grid-row:3; order:0; margin:0; min-width:0; background:#0b0f0e; }
#mesa #moInk > #moTable{ margin:0; padding:14px var(--mo-gut) 18px; display:grid; grid-template-columns:minmax(0,1fr); gap:10px 12px; align-items:start; position:relative; background:#0b0f0e; color:#f4f1ea; color-scheme:dark; }
#mesa .calc > .results > #verdict:not(.ok){ grid-row:2; order:0; margin:14px var(--mo-gut) 0; }
#mesa #moTable > *{ min-width:0; margin:0; }
/* the plan's buttons: pills with a paper edge; the secondary ones in «More» (assets/js/cut-more.js) */
/* a message of the row (link copied, job saved…) and a verdict that is not «well cut» stay with the plan */
#mesa #verdict:not(.ok){ position:relative; border-radius:10px; }
#mesa #verdict:not(.ok):not(.warn):not(.no){ background:#161d1b; color:#f4f1ea; border:1.5px solid rgba(244,241,234,.3); }
#mesa #verdict:not(.ok):not(.warn):not(.no) :is(strong, small){ color:#f4f1ea; }
#mesa #verdict:not(.ok):not(.warn):not(.no) .dot{ background:#f4f1ea; box-shadow:none; }
/* the plan: one sheet at a time, large; the others are a tab or a thumbnail away */

/* ---------- 3. what the result says in full, in a strip under the table (and under Pro) ---------- */
#mesa .calc > .results::before{ content:""; grid-column:1 / -1; grid-row:4; order:0; border-top:3px solid var(--mc-edge); }
#mesa .calc > .results > #obraLink{ order:3; }   /* r3130: after #cutBuy (Elam, r3010) */
/* r1295: «well cut» is in the band; here for a screen reader only (a live region). Thin rules, no boxes. */
#mesa .calc > .results > #verdict.ok{ position:absolute; width:1px; height:1px; margin:0; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
#mesa .calc > .results > .metrics{ order:4; margin-top:30px; }
#mesa .calc > .results > #cutCost{ order:5; margin-top:30px; }
#mesa .calc > .results > :is(#cutTotal, #fix){ order:6; }
#mesa .calc > .results > :is(.metrics, #cutCost, #cutTotal, #fix, #m-echo, p.hint, .addspec, .addspec-link, #cs, [data-subscribe], .note){ max-width:1240px; width:calc(100% - 2 * var(--mo-gut)); justify-self:center; margin-bottom:14px; }
#mesa .metrics{ gap:0 28px; align-content:start; border:0; border-radius:0; background:none; }
#mesa .metric{ padding:14px 0 12px; border:0; border-top:1.5px solid var(--mo-line); border-radius:0; background:none; box-shadow:none; }
#mesa .metric details{ margin:6px 0 0; padding:0; border:0; border-radius:0; background:none; }
#mesa .metric details > summary{ display:inline-block; min-height:44px; padding:11px 0; margin:-6px 0; }
/* the band already gives the first two figures (how many, what yield): here they keep their line (the label, what it is
   counted from and «See the working») and lose the figure; the strip's own figures are the ones the band does not give */
#mesa .metrics > .metric:nth-child(-n+2){ order:2; padding:10px 0 6px; }
#mesa .metrics > .metric:nth-child(-n+2) > :is(.v, .bar){ display:none; }
#mesa .metrics > .metric:nth-child(n+3){ order:1; }
#mesa #cutCost{ padding:0; border:0; border-radius:0; background:none; }
#mesa #cutCost h3{ margin:0 0 4px; padding:14px 0 0; border-top:1.5px solid var(--mo-line); font-size:1.25rem; font-weight:800; letter-spacing:-.01em; }
#mesa #cutCost .cc-order{ margin:12px 0 0; padding:0; border:0; border-top:1.5px solid var(--mo-line); border-bottom:1.5px solid var(--mo-line); border-radius:0; background:none; }
#mesa #cutCost .cc-order > summary{ min-height:44px; padding:11px 0; }
#mesa #cutTotal{ margin-top:8px; }
#mesa .calc > .results > p.hint{ margin:0 auto 14px !important; }   /* answers its inline margin */
#mesa .calc > .results > :last-child{ margin-bottom:34px; }
#mesa .metrics{ grid-template-columns:repeat(2, minmax(0,1fr)); }
#mesa #tool > :is(.sfcmp, .pro-note, .sub-moment){ margin-inline:var(--mo-gut); }
#mesa #tool > .pro-note{ max-width:1240px; margin:0 auto 30px; width:calc(100% - 2 * var(--mo-gut)); }
#mesa #tool > .sfcmp.cmp-wide{ max-width:1240px; width:calc(100% - 2 * var(--mo-gut)); margin:0 auto 20px; }

/* ---------- Pro: a ticket (assets/js/cut-pro.js writes the card and its own styles, which these outrank) ----------
   the price on ink at the left, what it unlocks for THIS job in the middle, the button and the consent box of
   pro.js at the right. Nothing of the card's logic is here. */
/* the consent box of pro.js, whole, small, under the button (its sizes and margins are inline styles) */
@media (min-width:900px){
}

/* ---------- from a laptop up: the list at the left, the table at the right, both in one screen ---------- */
@media (min-width:1000px){
  #mesa .calc{ grid-template-columns:minmax(360px, 30vw) minmax(0,1fr); grid-template-rows:auto auto 1fr; }
  #mesa .calc::before{ grid-column:2; grid-row:1 / 4; }
  #mesa .calc > .results::before{ grid-row:4; }
  #mesa .calc > form{ grid-column:1; grid-row:1 / 4; align-self:stretch; padding:18px var(--mo-pad) 24px var(--mo-gut); border-right:3px solid var(--mc-edge); min-height:calc(100vh - 236px); }
  #mesa .calc > .results > #verdict:not(.ok){ grid-column:2; grid-row:1; margin:14px var(--mo-gut) 0 var(--mo-pad); }
  /* the ink panel takes the table's row and the rest of the list's height; the table inside it stays in sight while
     the list or a setting is longer than the screen, and stops at the panel's foot. It never is taller than the
     window (the plan's height is the window's less 404 px) */
  #mesa .calc > .results > #moInk{ grid-column:2; grid-row:2 / 4; align-self:stretch; }
  #mesa #moInk > #moTable{ position:sticky; top:0; padding:14px var(--mo-gut) 16px var(--mo-pad); grid-template-columns:minmax(0,1fr) auto; }
  /* the figures under the list, the cost of the glass under the table: the two columns of the workbench go on */
  #mesa .calc > .results > .metrics{ grid-column:1; width:auto; max-width:none; justify-self:stretch; margin-left:var(--mo-gut); margin-right:var(--mo-pad); }
  #mesa .calc > .results > #cutCost{ grid-column:2; width:auto; max-width:760px; justify-self:start; margin-left:var(--mo-pad); margin-right:var(--mo-gut); }
  /* one line, so the plan keeps its height in every language; what does not fit is a sideways scroll away */
}
@media (min-width:1000px) and (max-width:1359px){
}
/* ---------- a phone: the band with the title and the three figures, the list, then the table ---------- */
@media (max-width:999px){
  #mesa > .hero{ grid-template-columns:minmax(0,1fr); row-gap:12px; padding-top:10px !important; }
  #mesa .mo-fig dd{ font-size:min(15vw, 5.4rem); }
  #mesa .mo-fig{ gap:clamp(12px, 5vw, 40px); }
  #mesa .mo-fig dt{ margin-top:8px; }
  .site-head:has(~ main > #mesa) .nav > a:last-of-type{ border:0; padding:8px 11px; border-radius:var(--r-ctl); font-weight:520; }
}
@media (max-width:560px){
  #mesa .mo-pill{ font-size:.86rem; }
}

/* the fixed bar of assets/js/running.js says the figures again: not while the band's own are in sight (the class
   is set by assets/js/cut-mesa.js; the bar is fixed, so nothing moves when it comes and goes) */
html.mo-figs-in body .sfrun{ display:none; }

/* ---------- 4. the rest of the page: full-width sections with an ink edge ---------- */
main > #mesa ~ section{ margin:0; padding:26px max(var(--mo-gut), calc(50% - 600px)); border-top:3px solid var(--mc-edge); max-width:none; }
main > #mesa ~ section.prose > :is(h2, details){ max-width:none; }
main > #mesa ~ section :is(h2){ font-size:clamp(1.45rem, 1rem + 1.5vw, 2.1rem); font-weight:800; letter-spacing:-.025em; line-height:1.05; }
main > #mesa ~ section.prose h2::before{ display:none; }
main > #mesa ~ section > details.sf-sec{ border:0; border-radius:0; margin:0; padding:0; background:none; }
main > #mesa ~ section > details.sf-sec > summary{ min-height:44px; }
main > #mesa ~ section > details.sf-sec > :not(summary){ max-width:900px; }
main > #mesa ~ section > details.sf-sec > :is(table, .tbl-wrap, figure){ max-width:none; }
main > #mesa ~ section:not(:has(> details.sf-sec)) > :is(p, ul, ol, dl){ max-width:900px; }
body > main:has(> #mesa) + section.sf-hu{ border-top:3px solid var(--mc-edge); padding-top:26px; margin-top:0 !important; }   /* answers its inline margin */

/* ---------- r1320: no plan (html.mo-noplan; html.mo-empty with an empty list too, assets/js/mesa-plan.js): no «—»
   figures, no buttons for a plan that is not there; an empty list is an invitation */
html.mo-noplan #mesa .mo-fig{ display:none; }
html.mo-empty #mesa :is(.mo-pill, .mo-table, .verdict, .metrics){ display:none !important; }
@media (max-width:979px){ html.mo-empty body #mesa .mo-res{ padding:0; border:0; box-shadow:none; background:none; } }
@media (max-width:480px){ html.mo-empty body #mesa > .hero{ padding-bottom:4px !important; } }   /* int4: «Paste your list» whole on 390 × 844 in de, fr */
#mesa .mo-void-say{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin:0; max-width:38ch; font-size:1.05rem; font-weight:700; line-height:1.3; }
#mesa .mo-void{ padding:28px var(--mo-gut) 36px; color:#f4f1ea; }
#mesa :is(.mo-void, .mo-void-say)[hidden]{ display:none; }
#mesa .mo-void-t{ margin:0 0 6px; max-width:none; font-size:clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); font-weight:800; letter-spacing:-.02em; line-height:1.08; color:inherit; }
#mesa .mo-void-s{ margin:0 0 18px; max-width:44ch; color:#bdbab2; }
#mesa .mo-void-b{ display:flex; flex-wrap:wrap; gap:10px; }
#mesa :is(.mo-void, .mo-void-say) button{ min-height:44px; padding:0 16px; border:2px solid currentColor; border-radius:999px; background:none; color:inherit; font:inherit; font-size:.95rem; font-weight:800; cursor:pointer; }
#mesa .mo-void .mo-void-ex{ background:#f4f1ea; border-color:#f4f1ea; color:#0b0f0e; }
#mesa .mo-void button:focus-visible{ outline:3px solid var(--mc-lilac); outline-offset:2px; }
#mesa .mo-void-say button:focus-visible{ outline:3px solid #0b0f0e; outline-offset:2px; }


/* ---------- r1321: under stress ----------
   Figures that do not fit in the band's line (1234 sheets, 11402,16 m of edge banding) go to a second line instead
   of leaving the page; on a 320 px phone the three captions are tighter, so the usual figures stay in one line. */
#mesa .mo-fig{ flex-wrap:wrap; row-gap:14px; }
/* r3872: tighter captions keep the three figures in one line as they fill in (CLS at 360 px, es/it) */
@media (max-width:420px){
  #mesa .mo-fig dt{ font-size:.64rem; letter-spacing:.07em; }
}
@media (max-width:340px){
  #mesa .mo-fig{ column-gap:8px; }
  #mesa .mo-fig dt{ font-size:.62rem; letter-spacing:.03em; }
}
/* 44 px for a finger where a row of buttons inside a fold, «What it does» on the band and two lone links had less */
@media (max-width:999px){
  #mesa .seg button, #mesa .mo-set .btn{ min-height:44px; }
  #mesa .mo-more > summary{ padding:14px 0; }
  #mesa .addspec-link{ display:inline-flex; align-items:center; min-height:44px; }
  #mesa .jobrow{ grid-template-columns:minmax(0,1fr) auto; }
  #mesa #rackFs .row{ align-items:end; }
  #mesa .jobrow .lrm{ min-width:44px; min-height:44px; }
}
/* the keyboard: a ring that shows on the ink (the plan and the thumbnails are boxes that scroll, which Tab stops at)
   and on any ground («Clear it and start with mine» sits on ink in one tool and on the trade's colour in another) */
#mesa #plan:focus-visible{ outline:3px solid var(--mc-lilac); outline-offset:-3px; }
#mesa :is(#cutClear, #pcrClear):focus-visible{ outline:3px solid #0b0f0e; outline-offset:2px; box-shadow:0 0 0 7px #f4f1ea; }
/* dark: the band keeps its colour, so what «What it does» unfolds on it keeps its ink (it was light grey on the
   band, 1.1 to 1); and the text of the button that sends the link, white on the light accent */
@media (prefers-color-scheme: dark){
  #mesa .hero .mo-more-in :is(p, li){ color:#0b0f0e !important; }   /* answers a colour written in the paragraph */
  #mesa .subform button{ color:#0b0f0e; }
}
/* glass, nine sheets or more: the row of sheet numbers takes the table's whole width (it had what the plan's buttons
   left, three numbers at a time) and the buttons go under it; the plan gives up that row's height */
@media (min-width:1000px){
}

/* ---------- r1323: the templates and the jobs under the list (#exLists, #jobLinks): a caption and a row of pills,
   said with #f to answer the older negative margins of a note's links; assets/js/mesa-plan.js tidies the «·» */
#mesa #f :is(#exLists, #jobLinks){ display:flex; flex-wrap:wrap; align-items:center; gap:8px; max-width:none; margin:14px 0 0 !important; padding:12px 0 0; border:0; border-top:1.5px solid var(--mo-line); border-radius:0; background:none; box-shadow:none; font-size:.82rem; line-height:1.35; color:var(--ink-3); }
#mesa #f #exLists + #jobLinks{ margin-top:12px !important; padding-top:0; border-top:0; }
#mesa #f :is(#exLists, #jobLinks) > .mo-tpl-t{ flex:0 0 100%; margin:0 0 -2px; }
#mesa #f :is(#exLists, #jobLinks) > a{ display:inline-flex; align-items:center; min-height:32px; margin:0; padding:4px 12px; border:1.5px solid var(--mc-edge); border-radius:999px; background:none; color:var(--ink); font-size:.86rem; font-weight:700; line-height:1.2; text-decoration:none; }
#mesa #f :is(#exLists, #jobLinks) > a:hover{ background:var(--ink); border-color:var(--ink); color:var(--paper); }
#mesa #f :is(#exLists, #jobLinks) > a:focus-visible{ outline:3px solid var(--ink); outline-offset:2px; }
@media (max-width:999px){
  #mesa #f :is(#exLists, #jobLinks) > a{ min-height:44px; }
}

/* ---------- r1327: an empty list hides the phone's foot bar (.sfab) and the bar of figures; at 320 px the citation
   line and a long German heading break */
html.mo-empty body :is(.sfab, .sfrun){ display:none !important; }
main:has(> #mesa) ~ .site-foot .sf-cite{ overflow-wrap:anywhere; }
main > #mesa ~ section :is(h2, h3, summary){ overflow-wrap:break-word; hyphens:auto; }
main > #mesa ~ section summary > :is(h2, h3){ min-width:0; }   /* a flex item: it may be narrower than its longest word, which then breaks */

/* ---------- dark: the same structure on ink ---------- */
@media (prefers-color-scheme: dark){
  #mesa{ --mo-line:rgba(244,241,234,.2); }
  #mesa .calc{ background:#161d1b; }
  #mesa .calc::before{ background:#0b0f0e; box-shadow:inset 0 0 0 1px rgba(244,241,234,.14); }
}
}
@media screen and (prefers-reduced-motion: reduce){ #mesa *{ scroll-behavior:auto; } }
/* print (r1303): the calculator's printed sheet of base.css (body.sf-psheet) said for the sections of #mesa; the table's
   boxes are not there on paper and the folds are open, without a box */
@media print{
  body.sf-psheet #mesa > section:not(:has(.calc)), body.sf-psheet #mesa > section > :not(.calc){ display:none !important; }
  body.sf-psheet #mesa > section{ padding:0 !important; margin:0 !important; }
  #mesa :is(#moInk, #moTable){ display:contents; }
  #mesa :is(.results, #moTable) > *{ order:4; }
  #mesa #cutExTag{ order:0; }
  #mesa #verdict{ order:1; }
  #mesa :is(.mo-set, .mo-more) > summary{ display:none; }
  #mesa details.mo-set{ margin:0; padding:0; border:0; background:none; }
  #mesa details.mo-set::details-content{ content-visibility:visible; display:block; }
  /* r1324: a sheet is not cut in two by the foot of a page (its caption and an empty frame stayed there and the
     drawing went on, cut, under the next sheet's): the sheets are blocks, each kept whole */
}
/* r1302: the bar at the foot of a phone (assets/js/site.js, .sfab) is one button, «See the plan», while the table is out
   of sight (assets/js/mesa-plan.js adds the button and sets the class); with the table in sight it is the site's own */
@media screen{
.sfab > .sfab-plan{ display:none; }
html.mo-plan-away body .sfab > :not(.sfab-plan){ display:none; }
html.mo-plan-away body .sfab > .sfab-plan{ display:inline-flex; flex:1 1 0; background:#0b0f0e; border-color:#0b0f0e; color:#f4f1ea; font-weight:800; }
html.mo-plan-away body .sfab > .sfab-plan:focus-visible{ outline:3px solid #7c5cff; outline-offset:2px; }
@media (prefers-color-scheme: dark){ html.mo-plan-away body .sfab > .sfab-plan{ border-color:#f4f1ea; } }
}
/* r3844: Print in mint, order outlined */
/* r3872: /envelope/'s mould in what shows once the tool is used: ink edges 2.5 px, pills, hard shadows, windows */
@media screen{
#mesa :is(input:not([type=checkbox],[type=radio],[type=range],[type=file]),select,textarea){border:2.5px solid var(--mc-edge)}
#mesa :is(.ladd,.addspec,.rtag-b,.pd-row button,.sawt button){border:2.5px solid var(--mc-edge);border-radius:999px}
#mesa :is(.subform button,.sf-sfav button,.lrm,.pcr-b,.pcr-e .btn),body #okeys .btn{border-radius:999px}
#mesa :is(.work-body,.note,.sfx,.pd,.jl-help,.pcmp,.pcr-more,.pcx-d,.subbox,.cp-p,.cc-text),main>#mesa~section .formula{border:2.5px solid var(--mc-edge);border-radius:8px}
#mesa .tq-card{border:2.5px solid #0b0f0e;border-radius:8px;box-shadow:6px 6px 0 var(--mc-mat)}
#mesa .jl-ex code{border-radius:0}
#mesa .jobopen{border:2.5px solid var(--mc-edge);border-radius:8px}
/* :is(body,#_) beats body[data-area] without :has(); a shadow edge keeps the bar 64 px */
:is(body,#_) :is(.sfab,.sfrun.two){box-shadow:0 -2.5px 0 var(--mc-edge)}
:is(body,#_) :is(.sfab button,.sfrun.two>.sfrun-pr){border:2.5px solid var(--mc-edge);border-radius:999px}
body :is(#okeys,.lpv,.rtag-dlg){border:2.5px solid var(--mc-edge);border-radius:8px;box-shadow:8px 8px 0 var(--mc-mat)}
body :is(.rtag-acts,.rtag-f,.lpv-bar) button{border:2.5px solid var(--mc-edge);border-radius:999px}
body .rtag-f input{border:2.5px solid var(--mc-edge)}
:is(body,#_) :is(.sf-fs-tip,.pp-tip){border:2.5px solid #f4f1ea;border-radius:8px;box-shadow:4px 4px 0 var(--mc-mat)}
body #opk :is(.opk-bar,.opd-tools){font-family:var(--font)}
body #opk .opk-bar h2{font-size:1.4rem}
body :is(#opk .opk-bar,.rtag-dlg,.lpv) h2{font-weight:900;font-stretch:75%}
body .rtag-acts .rtag-main{background:var(--mc-mint);border-color:var(--mc-edge);color:#0b0f0e}
body #opk :is(button,.opk-buy){border:2.5px solid #0b0f0e;border-radius:999px}
body #opk .opk-bar button{border-color:#f4f1ea}
body #opk .opk-bar .opk-print{background:var(--mc-mint);border-color:var(--mc-mint);color:#0b0f0e}
body #opk :is(.opd-tools,.opd-ctl,.opk-pro){border:2.5px solid #0b0f0e;border-radius:8px}
body #opk :is(.opd-tools,.opd-ctl,.opk-pro) :is(select,input,textarea){border:2.5px solid #0b0f0e}
}

/* mesa-lin.src.css — what is the bar cutting optimiser's own in «La mesa de corte» (r1296, 11-11-2026).
   The source of the last part of assets/css/mesa-lin.css (tools/mesa-lin.cjs puts the mould's sheet before it).
   Screen only, every rule at #mesa or at a page that has it, as in the mould. The band takes the material's
   colour from mesa.css (--mc-mat: coral for metal; ink on coral 6.8:1). */
@media screen{
.site-head:has(~ main > #mesa){ background:var(--mc-mat); }
#mesa > .hero{ background:var(--mc-mat); }
#mesa .mo-pill.ok i{ background:var(--mc-mat); }

/* the list: the page's own box of lines (reference, length, quantity), as a ruled sheet */
#mesa #f > fieldset:first-of-type .field{ margin:0; }
#mesa #f > fieldset:first-of-type .field > label{ display:block; margin:0 0 6px; font-size:.72rem; font-weight:700; letter-spacing:.11em; text-transform:uppercase; color:var(--ink-3); }
#mesa #list{ display:block; width:100%; min-height:236px; margin:0; padding:10px 4px; border:0; border-top:1.5px solid var(--mo-line); border-bottom:1.5px solid var(--rule-2); border-radius:0; background:transparent; box-shadow:none;
  font-size:1.05rem; font-weight:600; line-height:1.55; color:var(--ink); font-variant-numeric:tabular-nums; }
#mesa #list:focus{ outline:0; background:var(--surface); border-bottom-color:var(--ink); box-shadow:inset 0 -3px 0 var(--ink); }
#mesa #readas{ margin:6px 0 0; font-size:.86rem; color:var(--ink-3); }
#mesa #f .btnrow{ display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 0; }
#mesa #f .btnrow .btn{ min-height:44px; padding:0 14px; border:2px solid var(--mc-edge); border-radius:999px; background:transparent; color:var(--ink); font-size:.9rem; font-weight:800; }
#mesa #f .btnrow #ex{ background:var(--mc-cut); border-color:var(--mc-cut); color:var(--mc-on-cut); }
#mesa #f > .mo-set:first-of-type{ margin-top:14px; border-top:3px solid var(--mc-edge); }
#mesa .mo-set > .seg{ margin:2px 0 16px; }

/* the table: the print button and the plan, each bar a strip with its cuts in colour */
#mesa #moTable > .btnrow{ display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; min-height:44px; }
#mesa #moTable .btn{ min-height:44px; padding:0 14px; border:2px solid #f4f1ea; border-radius:999px; background:transparent; color:#f4f1ea; font-size:.9rem; font-weight:800; box-shadow:none; }
#mesa #moTable .btn:hover{ background:#f4f1ea; border-color:#f4f1ea; color:#0b0f0e; transform:none; }
#mesa #moTable .btn:focus-visible{ outline:3px solid var(--mc-lilac); outline-offset:2px; }
#mesa #plan{ min-height:120px; padding:0; border:0; border-radius:0; background:none; color:#f4f1ea; --text:#f4f1ea; --dim:#bdbab2; --ink:#f4f1ea; --ink-2:#f4f1ea; --ink-3:#bdbab2; }
#mesa #plan svg{ display:block; width:100%; height:auto; }
#mesa #plan .pc-key{ margin:10px 0 0; color:#bdbab2; }
#mesa .calc > .results > #cuts{ order:5; margin-top:30px; max-width:1240px; width:calc(100% - 2 * var(--mo-gut)); justify-self:center; }
#mesa .calc > .results > .sfx{ max-width:1240px; width:calc(100% - 2 * var(--mo-gut)); justify-self:center; margin-bottom:14px; }
#mesa #tool > .lead{ max-width:1240px; width:calc(100% - 2 * var(--mo-gut)); margin:0 auto 10px; }
@media (min-width:1000px){
  #mesa #moInk > #moTable{ grid-template-columns:minmax(0,1fr); }
  /* many bars: the plan scrolls inside the table, which stays whole in the window */
  #mesa #moInk > #moTable > #plan{ max-height:calc(100vh - 322px); overflow-y:auto; scrollbar-width:thin; }
  /* the drawing is as wide as the table (assets/js/linearcut-ui.js draws it at the width of its box, r1296): the
     example’s ten bars are whole in the first screen; more bars keep that size and scroll inside the table */
  #mesa .calc > .results > #cuts{ grid-column:2; width:auto; max-width:none; justify-self:stretch; margin-left:var(--mo-pad); margin-right:var(--mo-gut); }
}@media (max-width:999px){ #mesa #moTable > .btnrow{ order:1; } }   /* r3930: the plan first */
}
/* r1303: on paper this page is its report alone (#report: the page's own print rule hides the header, the footer and
   every `main > section`). The mould's box holds the header and the tool and is not a section: it is hidden here, as
   they were before the mould. */
@media print{
#mesa{ display:none; }
}
/* r1320: no plan, no buttons for it (html.mo-noplan and html.mo-empty: assets/js/mesa-plan.js) */
@media screen{
html.mo-noplan #mesa #moTable > .btnrow{ display:none; }
}
/* r1322: with a few bars the plan sat at the top of a tall black table. On a desktop the table is as tall as what
   is seen of its panel and the plan (its bars, then its key) is centred in it; the print button stays at the top.
   Many bars fill the table as before and scroll inside it. */
@media screen and (min-width:1000px){
  #mesa #moInk > #moTable{ min-height:calc(100vh - 236px); grid-template-rows:auto 1fr; }
  #mesa #moInk > #moTable > #plan{ align-self:center; }
}
/* r1590: «Example list · Paste a cutting list» over the list, on a phone only and while the list is the example */
#mesa #linEx{ display:flex; align-items:center; flex-wrap:wrap; gap:8px 10px; margin:0 0 10px; padding:6px 6px 6px 14px; border:0; border-radius:10px; background:var(--mc-cut); color:var(--mc-on-cut); }
#mesa #linEx[hidden]{ display:none; }
#mesa #linEx b{ flex:1 1 6em; }
#mesa #linEx button{ min-height:44px; padding:0 14px; border:0; border-radius:999px; background:var(--mc-mat); color:#0b0f0e; font:inherit; font-weight:800; }
#mesa #linEx button:focus-visible{ outline:3px solid #0b0f0e; outline-offset:2px; box-shadow:0 0 0 7px #f4f1ea; }
/* r1820: «Paste your list» on every screen, the bars' main button, at least 128 px wide (r1590: an easy target) */
#mesa #linEx #linPaste{ min-width:128px; }

/* r3891: contrast measured in both themes (tools/audit/contraste.mjs); said after the mould so it wins */
@media screen{
html.mo-plan-away body .sfab > .sfab-plan:focus-visible{ outline:3px solid #7c5cff; outline-offset:2px; }
:is(body,#_#_) ::placeholder{ color:color-mix(in srgb, currentColor 70%, transparent); opacity:1; }
}
@media screen and (prefers-color-scheme: dark){ html.mo-plan-away body .sfab > .sfab-plan{ border-color:#f4f1ea; } }
/* r3945: since r3886 the middle caption reads «aprovechado con retales» / «used incl. offcuts»; on a 320 px phone its
   one line was wider than the three figures leave, so «desperdicio» went to a second line. There each figure is as
   wide as its number (the column takes the min-content: the number does not wrap, the caption does) and the numbers
   share the top line, with the captions under them. Bigger figures than fit still wrap to a second line (r1321). */
@media (max-width:340px){
  #mesa .mo-fig{ align-items:start; }
  #mesa .mo-fig > div{ grid-template-columns:min-content; }
}
/* f26 (02-12-2026): r3886 made the middle caption longer («used incl. offcuts», «utilisé avec chutes», «aprovechado con retales»):
   on a phone the third figure went to a second line, and in French and Italian only once the web font arrived (CLS 0.058 on
   ui-lcp-mesa-r2540). Under 480 px each caption word goes on its own line: the same number of lines with either font, and the
   three usual figures back in one line. */
@media (max-width:480px){
  #mesa .mo-fig dt{ width:min-content; }
}
