/* ökēn équipe · M3 · le lab (LAB). Prefix .m-lab-. Kit tokens only (--fs-*, --sp-*, --tap). */
.m-lab{display:flex;flex-direction:column;gap:var(--sp-3);min-height:0;flex:1 1 auto}
html[data-form="wall"] .m-lab{height:100%;overflow:hidden}
.m-lab > :last-child{flex:1 1 auto;min-height:0}
.m-lab-head{align-items:center}
.m-lab-tabs{display:flex;gap:var(--sp-2)}
.m-lab-sub{display:flex;align-items:baseline;justify-content:space-between;gap:var(--sp-3);flex-wrap:wrap;border-top:1px solid var(--ink);padding-top:var(--sp-2)}
.m-lab-col{display:flex;flex-direction:column;gap:var(--sp-3);min-height:0;min-width:0}
.m-lab-col > .scroll{flex:1 1 auto}
.m-lab-note{margin-top:auto;display:flex;align-items:center;gap:.6em;flex-wrap:wrap}
.m-lab-warn{color:var(--ink)}
.m-lab-warn::before{content:"";display:inline-block;width:.55em;height:.55em;background:var(--signal);margin-right:.5em;vertical-align:.08em}
b.m-lab-warn::before{width:.4em;height:.4em}
.m-lab-go{flex:none;font-size:var(--fs-title);margin-left:var(--sp-2)}

/* ---------- prep ---------- */
.m-lab-prep{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:var(--sp-6)}
.m-lab-sum{display:flex;align-items:center;gap:var(--sp-3);flex-wrap:wrap}
.m-lab-big{font-size:var(--fs-big);line-height:1;position:relative;padding:0 .12em;margin-right:var(--sp-2);font-weight:400}
.m-lab-first{flex-basis:100%}
.m-lab-big .pen{position:absolute;left:-22%;top:-18%;width:144%;height:136%;overflow:visible;pointer-events:none}
.m-lab-big .pen path{fill:none;stroke:var(--ink);stroke-width:2.2;vector-effect:non-scaling-stroke;stroke-linecap:round}
.m-lab-sum > span:not(.mono){font-size:var(--fs-name)}
.m-lab-prow{text-align:left;cursor:pointer}
.m-lab-pn{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-width:0}
.m-lab-pn .nm{font-size:var(--fs-name)}
.m-lab-pnum{flex:none;text-transform:uppercase}
.m-lab-pdo{flex:none;min-width:5.2em;text-align:right;font-family:var(--mono);font-size:var(--fs-name);color:var(--ink);letter-spacing:.04em}
.m-lab-prow.is-done .nm,.m-lab-prow.is-done .m-lab-pdo{color:var(--stone)}
.m-lab-drafts{display:flex;flex-direction:column;gap:var(--sp-1)}
.m-lab-board .m-lab-gl{padding:var(--sp-3) 0 var(--sp-1)}
.m-lab-board .m-lab-gl:first-child{padding-top:0}
.m-lab-sig{color:var(--ink)}
.m-lab-brow.is-out .nm{color:var(--ink)}
.m-lab-best{flex:none;display:inline-flex;gap:.6em;align-items:center}
.m-lab-act{flex:none;min-width:calc(var(--tap)*1.8)}

/* ---------- sheet ---------- */
.m-lab-sheet,.m-lab-bench{display:flex;flex-direction:column;gap:var(--sp-3);min-height:0}
.m-lab-shead{display:flex;align-items:center;gap:var(--sp-4);flex-wrap:wrap}
.m-lab-shead > div{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:4px}
.m-lab-back{flex:none}
.m-lab-sgrid,.m-lab-bgrid{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--sp-6)}
.m-lab-yield{display:flex;align-items:center;gap:var(--sp-3);flex-wrap:wrap}
.m-lab-tbl{display:flex;flex-direction:column;border-top:1px solid var(--ink)}
.m-lab-tr{display:grid;grid-template-columns:minmax(0,1fr) 7.5em 7.5em;gap:var(--sp-3);align-items:center;min-height:calc(var(--tap)*.75);padding:var(--sp-1) 0;border-bottom:1px solid var(--line)}
.m-lab-tr > :nth-child(2),.m-lab-tr > :nth-child(3){text-align:right}
.m-lab-tr b{font-weight:400;font-size:var(--fs-name)}
.m-lab-th{min-height:0;padding:var(--sp-1) 0}
.m-lab-tr.is-season > span:first-child::after{content:" · à goûter";font-family:var(--mono);font-size:var(--fs-lab);letter-spacing:.12em;text-transform:uppercase;color:var(--stone)}
.m-lab-tot{border-bottom:1px solid var(--ink)}
.m-lab-steps{counter-reset:none}
.m-lab-steps .row{align-items:center}
.m-lab-sn{flex:none;width:2.2em}
.m-lab-st{flex:1 1 auto;min-width:0}
.m-lab-tm{flex:none;font-family:var(--mono);font-size:var(--fs-mono);letter-spacing:.08em}
.m-lab-meta{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--sp-1) var(--sp-4);margin:0;padding-top:var(--sp-2)}
.m-lab-meta dt{padding-top:.3em}
.m-lab-meta dd{margin:0;display:flex;flex-direction:column;gap:4px;align-items:flex-start}
.m-lab-al{color:var(--ink);font-weight:400}
.m-lab-dn{text-transform:none;letter-spacing:.02em}
.m-lab-actions{display:flex;gap:var(--sp-2);flex-wrap:wrap;align-items:center}
.m-lab-tape{display:flex;flex-direction:column;gap:var(--sp-2)}
.m-lab-tapeline{font-size:var(--fs-title);color:var(--ink);letter-spacing:.06em;line-height:1.35;border-top:1px solid var(--ink);border-bottom:1px solid var(--ink);padding:var(--sp-3) 0}

/* ---------- r&d index ---------- */
.m-lab-idx{display:flex;flex-direction:column;gap:var(--sp-3);min-height:0}
.m-lab-cscroll{flex:1 1 auto;border-top:1px solid var(--ink)}
.m-lab-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-content:start}
.m-lab-card{display:flex;flex-direction:column;gap:6px;padding:var(--sp-3) var(--sp-3) var(--sp-3) 0;border-bottom:1px solid var(--line);min-height:calc(var(--tap)*2.4);text-align:left}
.m-lab-card + .m-lab-card{}
.m-lab-cn{font-size:var(--fs-title);font-weight:400;letter-spacing:-.02em;text-transform:lowercase;color:var(--ink)}
.m-lab-cm{font-size:var(--fs-body)}

/* ---------- bench ---------- */
.m-lab-lines{flex:1 1 auto}
.m-lab-line{gap:var(--sp-3)}
.m-lab-ln{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-width:0}
.m-lab-ln .lab{text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m-lab-gauges{display:flex;flex-direction:column;gap:var(--sp-2);border-top:1px solid var(--ink);padding-top:var(--sp-2)}
.m-lab-g{display:flex;flex-direction:column;gap:6px}
.m-lab-ghead{display:flex;justify-content:space-between;align-items:baseline}
.m-lab-gval{font-size:var(--fs-title);font-weight:400;line-height:1}
.m-lab-gbar{position:relative;height:calc(var(--sp-3)*1.4);border-bottom:1px solid var(--ink)}
.m-lab-zh{position:absolute;top:0;bottom:0;background:var(--sand)}
.m-lab-za{position:absolute;top:22%;bottom:22%;border:1px solid var(--ink)}
.m-lab-needle{position:absolute;top:-6px;bottom:-6px;width:3px;margin-left:-1.5px;background:var(--ink)}
.m-lab-off{color:var(--ink)}
.m-lab-off::before{content:"× "}
.m-lab-leg{display:flex;gap:var(--sp-4);flex-wrap:wrap}
.m-lab-leg span{display:inline-flex;align-items:center;gap:.6em}
.m-lab-ka{display:inline-block;width:1.6em;height:.8em;border:1px solid var(--ink)}
.m-lab-kh{display:inline-block;width:1.6em;height:.8em;background:var(--sand)}
.m-lab-read{display:flex;flex-direction:column;gap:4px}
.m-lab-read .lab{text-transform:uppercase}
.m-lab-cost{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-1) var(--sp-3);border-top:1px solid var(--line);padding-top:var(--sp-2)}
.m-lab-cost > div{display:flex;flex-direction:column;gap:2px}
.m-lab-cost b{font-size:var(--fs-title);font-weight:400}
.m-lab-cnote{grid-column:1/-1}
.m-lab-trials{display:flex;flex-direction:column;gap:var(--sp-1);min-height:0;flex:1 1 auto}
.m-lab-trials > .scroll{flex:1 1 auto}
.m-lab-trow .mono{flex:none;width:3em}
.m-lab-tc{flex:1 1 auto;min-width:0}
.m-lab-trow .lab{flex:none}
.m-lab-tn{padding:var(--sp-1) 0}

/* ---------- tasting sheet ---------- */
.m-lab-taste{display:flex;flex-direction:column;gap:var(--sp-2)}
.m-lab-sl{display:grid;grid-template-columns:8em minmax(0,1fr) 2em;align-items:center;gap:var(--sp-3);min-height:calc(var(--tap)*.9)}
.m-lab-range{-webkit-appearance:none;appearance:none;width:100%;height:var(--tap);background:transparent;margin:0}
.m-lab-range::-webkit-slider-runnable-track{height:1px;background:var(--ink)}
.m-lab-range::-webkit-slider-thumb{-webkit-appearance:none;width:calc(var(--tap)*.7);height:calc(var(--tap)*.7);border-radius:50%;background:var(--ink);margin-top:calc(var(--tap)*-.35)}
.m-lab-range::-moz-range-track{height:1px;background:var(--ink)}
.m-lab-range::-moz-range-thumb{width:calc(var(--tap)*.7);height:calc(var(--tap)*.7);border-radius:50%;background:var(--ink);border:0}
.m-lab-sl b{font-weight:400;font-size:var(--fs-title);text-align:right}
.m-lab-fixes{display:flex;flex-direction:column}
.m-lab-fix{gap:var(--sp-3)}
.m-lab-fix > span:nth-child(2){flex:1 1 auto;min-width:0}
.m-lab-fix .lab{flex:none;width:8em}
.m-lab-tobatch{display:flex;flex-direction:column;gap:var(--sp-3)}

/* ---------- tablet, phone ---------- */
html[data-form="tablet"] .m-lab-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-form="tablet"] .m-lab-prep,html[data-form="tablet"] .m-lab-sgrid,html[data-form="tablet"] .m-lab-bgrid{gap:var(--sp-4)}
html[data-form="phone"] .m-lab-prep,html[data-form="phone"] .m-lab-sgrid,html[data-form="phone"] .m-lab-bgrid{grid-template-columns:minmax(0,1fr);gap:var(--sp-5)}
html[data-form="phone"] .m-lab-cards{grid-template-columns:minmax(0,1fr)}
html[data-form="phone"] .m-lab-card{min-height:0}
html[data-form="phone"] .m-lab-pnum{display:none}
html[data-form="phone"] .m-lab-tr{grid-template-columns:minmax(0,1fr) 4.6em 5.4em;gap:var(--sp-2)}
html[data-form="phone"] .m-lab-sl{grid-template-columns:6.5em minmax(0,1fr) 1.5em}
html[data-form="phone"] .m-lab-fix{flex-wrap:wrap}
html[data-form="phone"] .m-lab-fix .lab{width:auto}
html[data-form="phone"] .m-lab-line .k-step button{width:44px;height:44px}
html[data-form="phone"] .m-lab-cost{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (prefers-reduced-motion: reduce){.m-lab *{transition:none!important}}

.rows > .row,.m-lab-cards > *{flex:none}
.m-lab-pdlc{display:none}
html[data-form="phone"] .m-lab-pdlc{display:inline}
html[data-form="phone"] .m-lab-brow{flex-wrap:nowrap}
html[data-form="phone"] .m-lab-best{display:none}
html[data-form="phone"] .m-lab-act{min-width:0}
.m-lab-tscroll{flex:1 1 auto}
.m-lab-bench .m-lab-lines{flex:0 1 auto}
.m-lab-bench .m-lab-actions{padding-top:var(--sp-2)}
.m-lab-cost{margin-top:auto}
.m-lab-head.is-sub{align-items:center;flex-wrap:nowrap}
.m-lab-head.is-sub .m-lab-shead{flex:1 1 auto;min-width:0;flex-wrap:nowrap}
.m-lab-head.is-sub .m-lab-shead .mono{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.m-lab-bench .m-lab-lines{flex:1 1 auto}
html[data-form="phone"] .m-lab-head.is-sub{flex-wrap:wrap}
html[data-form="phone"] .m-lab-head.is-sub .m-lab-shead{flex-wrap:wrap}
html[data-form="phone"] .m-lab-head.is-sub .m-lab-shead .mono{white-space:normal}

/* ---------- the doing mode (option c, 29 Nov 2026): tonight's row opened at its par; tick as you pour ---------- */
.m-lab-do{display:flex;flex-direction:column;gap:var(--sp-3);min-height:0}
.m-lab-dgrid{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:var(--sp-6)}
.m-lab-dtbl{flex:1 1 auto;border-top:1px solid var(--ink)}
.m-lab-drow{width:100%;box-sizing:border-box;text-align:left;cursor:pointer;gap:var(--sp-3);min-height:var(--tap);padding:calc(var(--sp-1)*.6) 0}
.m-lab-drow.m-lab-dth{min-height:0;cursor:default;padding:var(--sp-1) 0}
.m-lab-box{flex:none;width:max(44px,calc(var(--tap)*.62));height:max(44px,calc(var(--tap)*.62));border:1px solid var(--ink);display:inline-flex;align-items:center;justify-content:center}
.m-lab-box.is-head{border-color:transparent}
.m-lab-box .k-tick{width:86%;height:86%}
.m-lab-dn{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-width:0}
.m-lab-dn .nm{font-size:var(--fs-name)}
.m-lab-dn .lab{text-transform:uppercase}
.m-lab-damt{flex:none;min-width:5.4em;text-align:right;font-weight:400;font-size:var(--fs-title);font-family:var(--mono);letter-spacing:.02em;color:var(--ink)}
.m-lab-dth .m-lab-damt{font-size:var(--fs-lab);color:var(--stone);letter-spacing:.15em}
.m-lab-dbt{flex:none;width:13em;min-width:0;text-align:right;white-space:nowrap;display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.m-lab-dbn{max-width:100%;white-space:nowrap;text-transform:uppercase;line-height:1.3;overflow:hidden;text-overflow:ellipsis}
.m-lab-drow.is-on .nm,.m-lab-drow.is-on .m-lab-damt{color:var(--stone)}
.m-lab-drow.is-on .nm{text-decoration:line-through;text-decoration-thickness:1px}
.m-lab-drow.is-svc{cursor:default}
.m-lab-dsec{padding:var(--sp-3) 0 var(--sp-1)}
.m-lab-dcount{color:var(--ink)}
.m-lab-doright{gap:var(--sp-4)}
.m-lab-dqty{display:flex;align-items:center;gap:var(--sp-3);flex-wrap:wrap}
.m-lab-dqty .chips{display:flex;gap:var(--sp-1)}
.m-lab-dtots{display:grid;grid-template-columns:repeat(4,auto);justify-content:space-between;gap:var(--sp-2) var(--sp-4);border-top:1px solid var(--ink);padding-top:var(--sp-2)}
.m-lab-dtots > div{display:flex;flex-direction:column;gap:2px;min-width:0}
.m-lab-dtots b{font-weight:400;font-size:var(--fs-title);line-height:1.1;white-space:nowrap}
.m-lab-dtots .mono{text-transform:uppercase;font-size:var(--fs-lab);line-height:1.4}
.m-lab-lwrap{display:flex;flex-direction:column;gap:var(--sp-1)}
/* the label: 70 × 40, drawn at its ratio; printed at its size */
.m-lab-label{width:min(100%,calc(var(--u)*24));aspect-ratio:70/40;background:#fff;border:1px solid var(--ink);padding:4.5% 5%;display:flex;flex-direction:column;justify-content:space-between;color:var(--ink);box-sizing:border-box}
.m-lab-l1{display:flex;justify-content:space-between;align-items:baseline;gap:.6em;border-bottom:1px solid var(--ink);padding-bottom:3%}
.m-lab-l1 .ln{font-size:var(--fs-name);letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.m-lab-l1 .lc,.m-lab-lg .v{font-family:var(--mono);font-size:var(--fs-mono);letter-spacing:.06em;text-transform:none}
.m-lab-l1 .lc{text-transform:uppercase}
.m-lab-lg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2% 4%}
.m-lab-lg > div{display:flex;flex-direction:column;min-width:0}
.m-lab-label .k{font-family:var(--mono);font-size:var(--fs-lab);letter-spacing:.12em;text-transform:uppercase;color:var(--stone)}
.m-lab-l3{display:flex;align-items:flex-end;gap:.6em}
.m-lab-lline{flex:1 1 auto;border-bottom:1px solid var(--ink);min-height:1.3em;font-size:var(--fs-name);line-height:1}
.m-lab-l3 img{height:1.1em;width:auto;flex:none}
.m-lab-dfait{flex:1 1 auto;width:auto}
.m-lab-dth .m-lab-dn{text-transform:uppercase}
.m-lab-doright .m-lab-actions{flex-wrap:nowrap}
.m-lab-dfait.is-part{background:transparent;color:var(--ink)}
.m-lab-labels{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,calc(var(--u)*24)),1fr));gap:var(--sp-3)}
.m-lab-labels .m-lab-label{width:100%}
html[data-form="phone"] .m-lab-dgrid{grid-template-columns:minmax(0,1fr);gap:var(--sp-5)}
html[data-form="phone"] .m-lab-dbt{display:none}
.m-lab-dbt2{display:none}
.m-lab-dsub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-form="phone"] .m-lab-dsub{white-space:normal}
html[data-form="phone"] .m-lab-dbt2{display:inline}
html[data-form="phone"] .m-lab-dbtp{display:block;font-size:var(--fs-lab);letter-spacing:.08em;margin-top:2px}
html[data-form="phone"] .m-lab-dtbl{overflow:visible;max-height:none;flex:none}
html[data-form="phone"] .m-lab-dth .m-lab-damt{font-size:var(--fs-lab)}
html[data-form="phone"] .m-lab-damt{min-width:4.2em;font-size:var(--fs-name)}
html[data-form="phone"] .m-lab-label{width:100%}
html[data-form="phone"] .m-lab-labels{grid-template-columns:minmax(0,1fr)}
html[data-form="phone"] .m-lab-dtots{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-form="tablet"] .m-lab-dgrid{gap:var(--sp-4)}
.m-lab-prow.is-doing .m-lab-pdo{color:var(--ink)}
@media print{
  body > *:not(.k-sheet){display:none!important}
  .k-sheet{position:static!important;transform:none!important;box-shadow:none!important;border:0!important;width:auto!important;padding:0!important}
  .k-sheet .shead,.k-sheet .sact,.k-sheet > .mono,.m-lab-tape > .lab{display:none!important}
  .m-lab-labels{display:block}
  .m-lab-labels .m-lab-label{width:70mm;height:40mm;aspect-ratio:auto;page-break-after:always;font-size:8pt;--fs-name:10pt;--fs-mono:7pt;--fs-lab:5.5pt}
  @page{size:70mm 40mm;margin:0}
}

.m-lab-dex{display:inline-flex;align-items:center;gap:.6em;flex:none}

/* the doing mode, built in (29 Nov 2026, evening): the whole sheet fits the wall (nine lines, no inner scroll); bottle names read whole */
html[data-form="wall"] .m-lab-dgrid{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
.m-lab-drow{padding:calc(var(--sp-1)*.35) 0}
.m-lab-dn .nm{line-height:1.15}
.m-lab-dbt{width:15.5em;white-space:normal}
.m-lab-dbn{white-space:normal;overflow:visible;text-overflow:clip;text-align:right;line-height:1.25}
.m-lab-dcount{color:var(--ink)}
.m-lab-dnote{margin:var(--sp-1) 0 0;color:var(--stone)}
.m-lab-dtots .mono .tag{margin-left:.5em}
.m-lab-prow.is-off .nm{color:var(--stone)}
.m-lab-offl{padding-top:var(--sp-3)}
html[data-form="wall"] .m-lab-damt{font-size:var(--fs-name);min-width:4.6em}
html[data-form="wall"] .m-lab-dbt{width:21em}
html[data-form="wall"] .m-lab-dtots{grid-template-columns:repeat(4,minmax(0,1fr));justify-content:stretch}
html[data-form="wall"] .m-lab-dtots b{font-size:var(--fs-name)}
html[data-form="wall"] .m-lab-dth .m-lab-damt{font-size:var(--fs-lab)}
html[data-form="wall"] .m-lab-dbt{width:25em}
html[data-form="wall"] .m-lab-drow{min-height:var(--tap)}
html[data-form="wall"] .m-lab-dth{min-height:0;padding:calc(var(--sp-1)*.5) 0}
html[data-form="wall"] .m-lab-dgrid{grid-template-columns:minmax(0,1.75fr) minmax(0,1fr)}
html[data-form="wall"] .m-lab-dbt{display:block;text-align:right;line-height:1.35;white-space:normal}
html[data-form="wall"] .m-lab-dbn{display:inline}
html[data-form="wall"] .m-lab-dbn::before{content:" · "}
.m-lab-alsrc{display:block;color:var(--stone);margin-top:2px}
html[data-form="phone"] .m-lab-do .m-lab-dqty{margin-bottom:var(--sp-2)}

/* ---------- SPEC-2 · the section strip (pattern of le stock), section heads, pickers ---------- */
.m-lab-head{flex-wrap:nowrap;min-width:0}
.m-lab-head > h1,.m-lab-head > h2{flex:none}
.m-lab-strip{display:flex;gap:var(--sp-2);flex:1 1 auto;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;padding:2px 0}
.m-lab-strip::-webkit-scrollbar{display:none}
.m-lab-strip .chip{flex:none;white-space:nowrap}
.m-lab-head.is-sub{flex-wrap:wrap}
.m-lab-head.is-sub > .m-lab-shead{flex:1 1 100%;order:2}
.m-lab-head.is-sub > .m-lab-strip{order:1;flex-basis:100%}
html[data-form="wall"] .m-lab-head.is-sub{flex-wrap:nowrap}
html[data-form="wall"] .m-lab-head.is-sub > .m-lab-shead{flex:1 1 auto;order:0;min-width:0}
html[data-form="wall"] .m-lab-head.is-sub > .m-lab-strip{order:1;flex:0 1 auto;max-width:52%}
html[data-form="phone"] .m-lab-head{flex-wrap:wrap}
html[data-form="phone"] .m-lab-strip{flex-basis:100%;margin:0 calc(var(--sp-3) * -1);padding:2px var(--sp-3)}
.m-lab-secbody{display:flex;flex-direction:column;gap:var(--sp-3);min-height:0;min-width:0}
.m-lab-sechead{display:flex;flex-direction:column;gap:var(--sp-2)}
.m-lab-sht{display:flex;align-items:center;gap:var(--sp-4);flex-wrap:wrap}
.m-lab-subs{display:flex;gap:var(--sp-2);flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.m-lab-subs .chip{flex:none;white-space:nowrap}
.m-lab-subs::-webkit-scrollbar{display:none}
.m-lab-ghost{background:transparent!important;border-left:2px dashed var(--stone);width:0!important;margin-left:-1px!important}
/* touch pickers */
.m-lab-pkb{display:flex;flex-direction:column;gap:var(--sp-3);min-height:0}
.m-lab-pkg{display:flex;flex-wrap:wrap;gap:var(--sp-2)}
.m-lab-pks{max-height:min(62vh,640px)}
.m-lab-pki{width:100%;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:var(--tap);justify-content:center}
.m-lab-pki .nm{font-size:var(--fs-name)}
.m-lab-pki.is-on .nm::before{content:"→ "}

/* ---------- SPEC-2 · beside the rail (1 Dec 2026): the wall has 1920 less the rail, the tablet 1024 less the rail ---------- */
/* doing mode on the wall: the bottle to take out moves under its line (as on the phone), so names and amounts keep one line each */
html[data-form="wall"] .m-lab-dgrid{grid-template-columns:minmax(0,1fr) minmax(0,calc(var(--u)*29));gap:var(--sp-5)}
html[data-form="wall"] .m-lab-dbt{display:none}
html[data-form="wall"] .m-lab-dbt2{display:inline}
html[data-form="wall"] .m-lab-dsub{white-space:normal}
html[data-form="wall"] .m-lab-dbtp{display:block;font-size:var(--fs-lab);letter-spacing:.08em;margin-top:2px;white-space:nowrap}
html[data-form="wall"] .m-lab-damt{min-width:4.4em}
html[data-form="wall"] .m-lab-label{width:min(100%,calc(var(--u)*20))}
html[data-form="wall"] .m-lab-doright{gap:var(--sp-3)}
html[data-form="wall"] .m-lab-dtots{gap:var(--sp-1) var(--sp-3)}
html[data-form="wall"] .m-lab-dtots .mono{white-space:nowrap}
/* tablet: one column, read as a page (as the phone) */
html[data-form="tablet"] .m-lab-prep,html[data-form="tablet"] .m-lab-dgrid,html[data-form="tablet"] .m-lab-sgrid{grid-template-columns:minmax(0,1fr);gap:var(--sp-5)}
html[data-form="tablet"] .m-lab-dbt{display:none}
html[data-form="tablet"] .m-lab-dbt2{display:inline}
html[data-form="tablet"] .m-lab-dsub{white-space:normal}
html[data-form="tablet"] .m-lab-dbtp{display:block;font-size:var(--fs-lab);letter-spacing:.08em;margin-top:2px}
html[data-form="tablet"] .m-lab-dtbl{overflow:visible;max-height:none;flex:none}
html[data-form="tablet"] .m-lab-damt{min-width:4.4em;font-size:var(--fs-name)}
html[data-form="tablet"] .m-lab-dth .m-lab-damt{font-size:var(--fs-lab)}
html[data-form="tablet"] .m-lab-dtots{grid-template-columns:repeat(4,minmax(0,1fr))}
html[data-form="tablet"] .m-lab-do .m-lab-dqty{margin-bottom:var(--sp-2)}
.m-lab-strip.is-r{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 48px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 48px),transparent)}
.m-lab-strip.is-l{-webkit-mask-image:linear-gradient(90deg,transparent,#000 48px);mask-image:linear-gradient(90deg,transparent,#000 48px)}
.m-lab-strip.is-l.is-r{-webkit-mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent);mask-image:linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent)}
.m-lab-dtots .mono{display:flex;flex-wrap:wrap;align-items:center;gap:4px .5em}
.m-lab-dtots .mono .tag{margin-left:0}
html[data-form="wall"] .m-lab-dtots .mono{white-space:normal}
html[data-form="wall"] .m-lab-dsub{letter-spacing:.06em;line-height:1.3}
html[data-form="wall"] .m-lab-drow{padding:2px 0;gap:var(--sp-2)}
html[data-form="wall"] .m-lab-dn{gap:0}
html[data-form="wall"] .m-lab-damt{line-height:1.1}
html[data-form="wall"] .m-lab-dbtp{line-height:1.25;margin-top:0}
.m-lab-prow .m-lab-pnum,html[data-form="phone"] .m-lab-prow .m-lab-pnum{display:inline;text-transform:uppercase}
.m-lab-prow .nm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-form="phone"] .m-lab-prow .nm{white-space:normal}
.m-lab-head > h1{white-space:nowrap}
html[data-form="wall"] .m-lab-head.is-sub .m-lab-shead .mono{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.3}
html[data-form="wall"] .m-lab-head.is-sub > .m-lab-strip{max-width:46%}

/* ---------- SPEC-2 · les spécimens: the index and the status board ---------- */
.m-lab-idx{display:flex;flex-direction:column;gap:var(--sp-3);min-height:0}
.m-lab-ibar{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3);flex-wrap:wrap}
.m-lab-icols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--sp-4);min-height:0;flex:1 1 auto}
.m-lab-icols.is-board{grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--sp-3)}
.m-lab-icol{display:flex;flex-direction:column;min-height:0;min-width:0;border-top:1px solid var(--ink)}
.m-lab-icol > .m-lab-gl{padding:var(--sp-2) 0 var(--sp-1)}
.m-lab-icol > .scroll{flex:1 1 auto;min-height:0}
.m-lab-irow,.m-lab-bcard{text-align:left;cursor:pointer;gap:var(--sp-2)}
.m-lab-irow .lab,.m-lab-bcard .lab{text-transform:uppercase}
.m-lab-ist{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:none}
.m-lab-isc{font-size:var(--fs-lab)}
.m-lab-bcard .nm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-form="wall"] .m-lab-icols .m-lab-go{display:none}
html[data-form="tablet"] .m-lab-icols{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-form="tablet"] .m-lab-icols.is-board{grid-template-columns:repeat(3,minmax(0,1fr))}
html[data-form="phone"] .m-lab-icols,html[data-form="phone"] .m-lab-icols.is-board{grid-template-columns:minmax(0,1fr)}
html:not([data-form="wall"]) .m-lab-icol > .scroll{overflow:visible;max-height:none}

/* ---------- the specimen file ---------- */
.m-lab-spec{display:flex;flex-direction:column;gap:var(--sp-3);min-height:0}
.m-lab-sline{display:flex;align-items:center;gap:var(--sp-3) var(--sp-4);flex-wrap:wrap;border-top:1px solid var(--ink);padding-top:var(--sp-2)}
.m-lab-taste1{display:flex;align-items:baseline;gap:var(--sp-3);flex-wrap:wrap;flex:1 1 auto;min-width:0}
.m-lab-tst{font-size:var(--fs-name)}
.m-lab-formula{font-family:var(--mono);font-size:var(--fs-mono);color:var(--ink)}
.m-lab-formula sub{font-size:.75em}
.m-lab-schips,.m-lab-pages{display:flex;flex-wrap:wrap;gap:var(--sp-1) var(--sp-2);align-items:center}
.m-lab-sgrid3{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) minmax(0,1fr);gap:var(--sp-5);min-height:0;flex:1 1 auto}
.m-lab-scol{gap:var(--sp-2);padding-right:var(--sp-1)}
.m-lab-blk{display:block;border-top:1px solid var(--ink);padding-top:var(--sp-2);margin-top:var(--sp-2)}
.m-lab-scol > .m-lab-blk:first-child{margin-top:0}
.m-lab-bridge{font-size:var(--fs-body);line-height:1.45;margin:0}
.m-lab-book{margin:0;line-height:1.45}
.m-lab-mx{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-2)}
.m-lab-kv{display:grid;grid-template-columns:minmax(6em,auto) minmax(0,1fr);gap:var(--sp-1) var(--sp-3);margin:0}
.m-lab-kv dd{margin:0;line-height:1.4}
.m-lab-note1{align-items:flex-start;gap:var(--sp-2);min-height:0;line-height:1.4}
.m-lab-tg{flex:none;min-width:2.6em;color:var(--ink);border:1px solid var(--stone);text-align:center;padding:0 .3em;font-size:var(--fs-lab)}
.m-lab-big3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-3)}
.m-lab-big3 > div{display:flex;flex-direction:column;gap:2px}
.m-lab-big3 b{font-weight:400;font-size:var(--fs-h2);line-height:1.05}
.m-lab-read1{margin:0;line-height:1.45;color:var(--stone)}
.m-lab-kg{display:inline-block;width:0;height:1em;border-left:2px dashed var(--stone);margin-right:.5em;vertical-align:-.15em}
.m-lab-ab{display:flex;gap:var(--sp-1);flex-wrap:wrap}
.m-lab-tscroll2{overflow-x:auto;max-width:100%}
.m-lab-btbl{display:flex;flex-direction:column;min-width:0}
.m-lab-br{display:grid;grid-template-columns:minmax(7em,2.2fr) repeat(6,minmax(3.2em,1fr));gap:var(--sp-1);align-items:baseline;padding:6px 0;border-bottom:1px solid var(--line);font-size:var(--fs-lab)}
.m-lab-br > span:first-child{font-size:var(--fs-body);display:flex;flex-direction:column}
.m-lab-br .num{text-align:right;font-family:var(--mono)}
.m-lab-bth{border-bottom:1px solid var(--ink)}
.m-lab-bth > span{text-align:right}
.m-lab-bth > span:first-child{text-align:left;font-size:var(--fs-lab)}
.m-lab-btot{border-bottom:1px solid var(--ink)}
.m-lab-btot .m-lab-b2{grid-column:span 2}
.m-lab-bnote{text-transform:none;letter-spacing:.02em}
.m-lab-serves{display:inline-flex;align-items:center;gap:var(--sp-2)}
.m-lab-stsel{display:flex;flex-wrap:wrap;gap:var(--sp-1)}
.m-lab-next{flex-wrap:wrap;align-items:center}
.m-lab-scores .row{align-items:flex-start;min-height:0}
.m-lab-ssc{flex:none;min-width:3.2em;color:var(--ink)}
.m-lab-ctbl{overflow-x:auto}
.m-lab-cr{display:grid;grid-template-columns:minmax(6.5em,1.4fr) repeat(8,minmax(3.6em,1fr));gap:var(--sp-1);align-items:baseline;padding:6px 0;border-bottom:1px solid var(--line);min-width:44em;font-size:var(--fs-lab)}
.m-lab-cr .num{text-align:right;font-family:var(--mono)}
.m-lab-crh > span{text-align:right}
.m-lab-prep1{display:flex;flex-direction:column;gap:4px;padding:var(--sp-1) 0;border-bottom:1px solid var(--line)}
.m-lab-pt{font-weight:400;font-size:var(--fs-name)}
.m-lab-psteps{margin:4px 0 0;padding-left:1.4em;line-height:1.45}
.m-lab-still{align-self:flex-start}
/* wall: three columns that scroll inside; tablet and phone: one page */
html[data-form="tablet"] .m-lab-sgrid3,html[data-form="phone"] .m-lab-sgrid3{grid-template-columns:minmax(0,1fr);gap:var(--sp-4)}
html:not([data-form="wall"]) .m-lab-scol{overflow:visible;max-height:none}
html[data-form="phone"] .m-lab-big3 b{font-size:var(--fs-title)}
/* the score sheet */
.m-lab-ten{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px}
.m-lab-tc{min-height:var(--tap);border:1px solid var(--ink);background:transparent;font-family:var(--mono);font-size:var(--fs-name);color:var(--ink);cursor:pointer}
.m-lab-tc.is-on{background:var(--ink);color:var(--paper)}
.m-lab-tenv{font-weight:400;font-size:var(--fs-title)}
.m-lab-tnote,.m-lab-cname{width:100%;box-sizing:border-box;font:inherit;font-size:var(--fs-body);padding:var(--sp-1) var(--sp-2);border:1px solid var(--stone);background:transparent;color:var(--ink);border-radius:0;min-height:var(--tap)}

/* ---------- the bench ---------- */
.m-lab-bl{gap:var(--sp-2)}
.m-lab-bstart,.m-lab-bband{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap}
.m-lab-bband .chips{display:flex;flex-wrap:wrap;gap:var(--sp-1)}
.m-lab-swap{background:none;border:0;padding:0;text-align:left;cursor:pointer;font:inherit;color:inherit;display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-width:0;min-height:var(--tap);justify-content:center}
.m-lab-swap .nm{font-size:var(--fs-name);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;text-decoration-color:var(--line)}
.m-lab-x{flex:none;min-width:var(--tap)}
.m-lab-add{gap:var(--sp-2)}
.m-lab-pre{display:flex;gap:var(--sp-1);flex:none}
.m-lab-verdict{margin:0;font-size:var(--fs-name);line-height:1.3}
.m-lab-bout .m-lab-br{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr)}
.m-lab-p20 b{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
.m-lab-trow{gap:var(--sp-2)}
.m-lab-trow.is-on .nm::before{content:"→ "}
.m-lab-load,.m-lab-del{flex:none}
.m-lab-csteps{display:flex;flex-direction:column}
html[data-form="tablet"] .m-lab-bgrid{grid-template-columns:minmax(0,1fr)}
html:not([data-form="wall"]) .m-lab-br2,html:not([data-form="wall"]) .m-lab-bench .m-lab-lines{overflow:visible;max-height:none}
html[data-form="phone"] .m-lab-line{flex-wrap:wrap}
html[data-form="phone"] .m-lab-line .m-lab-ln{flex:1 1 100%}
.m-lab-formula sub{font-size:max(16px,.75em)}
.m-lab-inum{font-size:var(--fs-lab);white-space:nowrap}
.m-lab-irow .m-lab-pn > .lab{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.m-lab-big3 b{white-space:nowrap;font-size:var(--fs-title)}
html[data-form="wall"] .m-lab-big3 b{font-size:var(--fs-title)}
.m-lab-bstart,.m-lab-bband .chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.m-lab-bstart::-webkit-scrollbar,.m-lab-bband .chips::-webkit-scrollbar{display:none}
.m-lab-bstart > *,.m-lab-bband .chip{flex:none}
.m-lab-bband{flex-wrap:nowrap}
.m-lab-bband > .lab{flex:none;max-width:6em;line-height:1.2}
.m-lab-bench .m-lab-actions{flex-wrap:nowrap}
.m-lab-bl > *{flex:none}
.m-lab-bl > .m-lab-lines{flex:1 1 auto;min-height:calc(var(--tap)*3)}
html[data-form="phone"] .m-lab-bench .m-lab-actions{flex-wrap:wrap}
.m-lab-bench .m-lab-bl .m-lab-actions .btn{flex:1 1 auto;min-width:0;padding-left:var(--sp-2);padding-right:var(--sp-2)}
.m-lab-dilrow{flex-wrap:wrap;row-gap:var(--sp-1)}
.m-lab-dilrow > .m-lab-ln{flex:1 1 100%}
.m-lab-dilrow > .m-lab-pre{margin-left:auto}
/* narrow screens: the build and cost tables fold, each figure under its own small label; the numbers come before the story */
html:not([data-form="wall"]) .m-lab-spec .m-lab-bth,html:not([data-form="wall"]) .m-lab-crh{display:none}
html:not([data-form="wall"]) .m-lab-spec .m-lab-br,html:not([data-form="wall"]) .m-lab-cr{grid-template-columns:repeat(3,minmax(0,1fr));min-width:0;row-gap:6px}
html[data-form="tablet"] .m-lab-spec .m-lab-br,html[data-form="tablet"] .m-lab-cr{grid-template-columns:repeat(4,minmax(0,1fr))}
html:not([data-form="wall"]) .m-lab-spec .m-lab-br > span:first-child,html:not([data-form="wall"]) .m-lab-cr > span:first-child{grid-column:1/-1}
html:not([data-form="wall"]) .m-lab-spec .m-lab-br .num,html:not([data-form="wall"]) .m-lab-cr .num{text-align:left;display:flex;flex-direction:column;font-size:var(--fs-mono)}
html:not([data-form="wall"]) .m-lab-spec .m-lab-br .num::before,html:not([data-form="wall"]) .m-lab-cr .num::before{content:attr(data-k);font-size:var(--fs-lab);letter-spacing:.1em;text-transform:uppercase;color:var(--stone)}
html:not([data-form="wall"]) .m-lab-btot .m-lab-b2{grid-column:auto}
html:not([data-form="wall"]) [data-col=chiffres]{order:1}
html:not([data-form="wall"]) [data-col=suite]{order:2}
html:not([data-form="wall"]) [data-col=recit]{order:3}
.m-lab-rdesc{display:block;text-transform:none;letter-spacing:.02em;margin-top:2px}
.m-lab-tc{display:flex;align-items:center;justify-content:center;padding:0}
.m-lab-tenv{font-size:var(--fs-name);font-family:var(--mono)}
.m-lab-big3 .lab{white-space:nowrap}
.m-lab-big3 .lab{overflow:hidden;text-overflow:clip;letter-spacing:.08em}
.m-lab-big3{column-gap:var(--sp-4)}
.m-lab-big3 .lab{white-space:normal;line-height:1.2;min-height:2.4em}
html[data-form="wall"] .m-lab-big3 b{font-size:calc(var(--fs-title)*.88)}
.m-lab-views{display:inline-flex;gap:var(--sp-3);flex-wrap:wrap}
/* look round (chat): all nine pills on the wall, a detail view's head without the strip, totals with room, the index meta whole */
html[data-form="wall"] .m-lab-strip{gap:var(--sp-1)}
html[data-form="wall"] .m-lab-strip .chip{font-size:var(--fs-body);padding:0 var(--sp-2)}
html[data-form="wall"] .m-lab-head > h1{font-size:var(--fs-h2)}
.m-lab-head.is-sub > .m-lab-shead{flex:1 1 auto;min-width:0}
html[data-form="wall"] .m-lab-head.is-sub .m-lab-shead .mono{-webkit-line-clamp:3}
html[data-form="wall"] .m-lab-dtots{grid-template-columns:repeat(4,auto);justify-content:space-between;column-gap:var(--sp-4)}
html[data-form="wall"] .m-lab-dtots b{font-size:calc(var(--fs-name)*.85)}
.m-lab-irow .m-lab-pn > .lab{white-space:normal;overflow:visible}
.m-lab-bband .chips{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 48px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 48px),transparent);padding-right:48px}
.m-lab-bhead{flex-wrap:nowrap;align-items:baseline}
.m-lab-bline{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-form="phone"] .m-lab-bhead{flex-wrap:wrap}
html[data-form="phone"] .m-lab-bline{white-space:normal}
