@font-face{font-family:"Bricolage Grotesque";src:url("/assets/fonts/bricolage-seance.woff2") format("woff2");font-weight:200 800;font-stretch:75% 100%;font-display:swap}
@font-face{font-family:"Figtree";src:url("/assets/fonts/figtree-latin-400-normal.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Figtree";src:url("/assets/fonts/figtree-latin-500-normal.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Figtree";src:url("/assets/fonts/figtree-latin-600-normal.woff2") format("woff2");font-weight:600 700;font-display:swap}

/* VOICE  outil du quotidien, calme, phrases courtes, tutoiement (design system Meuble)
   IDEA   le plan du menuisier : le meuble dessiné de face, ses cotes en bleu, et le chiffre qui parle
   PICTURE la vue de face du meuble, recalculée à chaque réglage, avec l'espace mesuré en pointillés
   COLOUR fond bg, surface blanche, encre ink, une seule couleur active : chalk ; bois et alu en matière
   TYPE   Bricolage Grotesque resserrée pour titres et chiffres, Instrument Sans pour le texte
   LAYOUT téléphone : aperçu en haut, réglages dessous, bouton fixe en bas ; ordinateur : aperçu à gauche, réglages à droite */
:root{
  --bg:#F5F6F8; --surface:#FFFFFF; --ink:#15181D; --mute:#5F6670; --faint:#A3A9B1; --line:#E2E5EA;
  --chalk:#2A4FE4; --chalk-soft:#E5EAFC; --ok:#25693F; --ok-soft:#E2F1E7; --warn:#8A500A; --warn-soft:#F8ECD9; --bad:#B3261E; --bad-soft:#F9E3E1; --edge:#8A919B; --on-chalk:#FFFFFF;
  --wood:#D8BF8E; --wood-top:#EBD9B3; --wood-back:#C9AE7B; --wood-line:rgba(70,52,25,.55); --alu:#A9B1BC; --alu-d:#7C8592; --alu-line:#4A515C; --hw:#3B4048;
  --display:"Bricolage Grotesque","Arial Narrow",system-ui,sans-serif; --body:"Figtree",system-ui,-apple-system,"Segoe UI",sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){
  --bg:#0F1114; --surface:#181B20; --ink:#F1F2F4; --mute:#A2A9B3; --faint:#5F6670; --line:#2A2E35;
  --chalk:#8299FF; --chalk-soft:#1D2648; --ok:#6FCB94; --ok-soft:#173225; --warn:#E3A657; --warn-soft:#3A2A14; --bad:#F28B82; --bad-soft:#3B1C1A; --edge:#6B7380; --on-chalk:#0F1114;
  --wood:#AE9468; --wood-top:#C9B48C; --wood-back:#8E774F; --wood-line:rgba(10,8,4,.7); --alu:#7F8896; --alu-d:#A9B1BC; --alu-line:#C9CED6; --hw:#C9CED6; color-scheme:dark}}
:root[data-theme=dark]{
  --bg:#0F1114; --surface:#181B20; --ink:#F1F2F4; --mute:#A2A9B3; --faint:#5F6670; --line:#2A2E35;
  --chalk:#8299FF; --chalk-soft:#1D2648; --ok:#6FCB94; --ok-soft:#173225; --warn:#E3A657; --warn-soft:#3A2A14; --bad:#F28B82; --bad-soft:#3B1C1A; --edge:#6B7380; --on-chalk:#0F1114;
  --wood:#AE9468; --wood-top:#C9B48C; --wood-back:#8E774F; --wood-line:rgba(10,8,4,.7); --alu:#7F8896; --alu-d:#A9B1BC; --alu-line:#C9CED6; --hw:#C9CED6; color-scheme:dark}
*{box-sizing:border-box;min-width:0}
html,body{height:100%;margin:0}
body{background:var(--bg);color:var(--ink);font:16px/1.45 var(--body);-webkit-font-smoothing:antialiased;overflow:hidden}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-align:left}
button:disabled{cursor:default;opacity:.35}
:focus-visible{outline:2px solid var(--chalk);outline-offset:3px;border-radius:6px}
h1,h2,h3,p{margin:0}
a{color:var(--chalk);text-underline-offset:3px}
.num{font-family:var(--display);font-stretch:78%;font-variant-numeric:tabular-nums}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
#app{height:100%;max-width:1180px;margin:0 auto;display:flex;flex-direction:column;background:var(--bg);padding-top:env(safe-area-inset-top,0px)}
.scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.pad{padding:4px max(20px,env(safe-area-inset-left,0px)) 28px max(20px,env(safe-area-inset-right,0px))}
@media (min-width:700px){#app[data-s=home] .pad,#app[data-s=start] .pad,#app[data-s=plan] .pad,#app[data-s=buy] .pad,#app[data-s=cut] .pad,#app[data-s=notice] .pad,#app[data-s=step] .pad,#app[data-s=photo] .pad,#app[data-s=done] .pad{max-width:720px;width:100%;margin:0 auto}}
.top{display:flex;align-items:center;gap:8px;min-height:56px;padding:4px 12px}
.top .tt{flex:1;text-align:center;font-weight:600;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand{font-family:var(--display);font-weight:700;font-size:22px;letter-spacing:-.03em;padding-left:8px}
.icon{width:44px;height:44px;display:grid;place-items:center;border-radius:50%}
.icon svg,.hub svg,.resume svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.txt{min-height:44px;padding:0 10px;color:var(--chalk);font-weight:600;font-size:15px;white-space:nowrap}
.sp{width:44px}
.cnt{min-width:44px;text-align:right;padding-right:8px;color:var(--mute)}
.h1{font-family:var(--display);font-weight:620;font-size:clamp(32px,8vw,44px);line-height:1;letter-spacing:-.03em;text-wrap:balance;margin:14px 0 0}
.h2{font-family:var(--display);font-weight:620;font-size:30px;line-height:1.05;letter-spacing:-.025em;text-wrap:balance;margin:8px 0 0}
.h3{font-size:15px;font-weight:600;margin:24px 0 8px}
.lede{color:var(--mute);font-size:16px;margin:10px 0 0;max-width:60ch}
.fine{color:var(--mute);font-size:13px;margin:14px 0 0}
.lab{font-size:14px;font-weight:600;margin:16px 0 8px}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0 12px}
.chips button{min-height:44px;padding:0 16px;border-radius:999px;background:var(--surface);color:var(--mute);font-weight:500;box-shadow:inset 0 0 0 1px var(--line)}
.chips button[aria-checked=true]{background:var(--ink);color:var(--bg);box-shadow:none}
.tgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.tcard{display:flex;flex-direction:column;gap:4px;padding:10px 10px 14px;border-radius:18px;background:var(--surface)}
.tcard .thumb{display:block;height:130px;border-radius:12px;background:var(--bg);padding:8px}
.tcard .thumb svg{width:100%;height:100%}
.tcard b{font-weight:600;font-size:15px;line-height:1.2;margin-top:6px}
.tcard small{color:var(--mute);font-size:13px;line-height:1.3}
.tcard .meta{color:var(--mute);font-size:15px}
.resume{display:flex;align-items:center;gap:12px;width:100%;margin:18px 0 0;padding:10px 12px 10px 10px;border-radius:18px;background:var(--surface)}
.resume>span:nth-child(2){flex:1;display:flex;flex-direction:column}
.resume small{color:var(--mute);font-size:13px}.resume b{font-weight:600}
.rthumb{width:56px;height:56px;border-radius:12px;background:var(--bg);padding:5px;flex:none}.rthumb svg{width:100%;height:100%}
.plus{display:flex;align-items:center;gap:12px;width:100%;margin:12px 0 0;padding:16px;border-radius:18px;border:1.5px dashed var(--edge)}
.plus>span:nth-child(2){flex:1;display:flex;flex-direction:column}.plus small{color:var(--mute);font-size:14px}
.pi{width:44px;height:44px;border-radius:12px;background:var(--chalk-soft);color:var(--chalk);display:grid;place-items:center;flex:none}
.pi svg,.drop svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linejoin:round}
.badge{font-size:12px;font-weight:700;color:var(--chalk);background:var(--chalk-soft);padding:4px 10px;border-radius:999px;white-space:nowrap}
.dots{display:flex;gap:6px;margin:6px 0 0}.dots i{width:28px;height:4px;border-radius:2px;background:var(--line)}.dots i.on{background:var(--ink)}.dots i.cur{background:var(--chalk)}
.fields3{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:18px 0 0}
.field{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.field label{font-size:14px;font-weight:600}
.field small{color:var(--mute);font-size:13px;line-height:1.3}
.inp{display:flex;align-items:center;background:var(--surface);border-radius:14px;box-shadow:inset 0 0 0 1.5px var(--edge);padding-right:14px}
.inp:focus-within{box-shadow:inset 0 0 0 2px var(--chalk)}
.inp input{flex:1;width:100%;height:52px;border:0;background:none;color:var(--ink);padding:0 14px;font:600 26px var(--display);font-stretch:78%;font-variant-numeric:tabular-nums;outline:none}
.inp span{color:var(--mute)}
.link{display:block;color:var(--chalk);font-weight:600;margin:18px 0 0;min-height:44px;text-decoration:underline;text-underline-offset:4px}
.cards{display:grid;gap:8px;margin:14px 0 0}
.opt{display:flex;flex-direction:column;gap:3px;padding:14px 16px;border-radius:16px;background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--line)}
.opt[aria-checked=true]{box-shadow:inset 0 0 0 2px var(--chalk);background:color-mix(in srgb,var(--chalk-soft) 45%,var(--surface))}
.opt b{font-weight:600;font-size:16px}.opt small{color:var(--mute);font-size:14px}
.cards.big .opt{padding:18px}
.facts{display:flex;gap:18px;margin-top:10px}.facts span{display:flex;flex-direction:column;font-size:13px;color:var(--mute)}.facts em{font-style:normal;color:var(--ink);font-size:22px;font-weight:600;line-height:1.1}
.dock{padding:10px max(20px,env(safe-area-inset-right,0px)) calc(env(safe-area-inset-bottom,0px) + 14px) max(20px,env(safe-area-inset-left,0px));border-top:1px solid var(--line);background:var(--bg)}
.row2{display:grid;grid-template-columns:auto 1fr;gap:8px}
.btn{min-height:52px;border-radius:16px;background:var(--ink);color:var(--bg);font-weight:600;font-size:17px;display:flex;align-items:center;justify-content:center;text-align:center;padding:0 18px;width:100%}
.btn.soft{background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line);margin-top:12px}
.row2 .btn.soft{margin:0}
.btn.mini{min-height:44px;width:auto;font-size:14px;border-radius:12px;padding:0 14px;margin:0}
.seg{display:flex;gap:4px;padding:4px;border-radius:14px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);margin:12px 0 0;flex-wrap:wrap}
.seg button{flex:1 1 0;min-height:44px;border-radius:10px;font-weight:500;font-size:14px;color:var(--mute);text-align:center;padding:0 8px}
.seg button[aria-checked=true],.seg button[aria-selected=true]{background:var(--ink);color:var(--bg)}
.row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;padding:8px 0;border-bottom:1px solid var(--line);width:100%}
.row>span:first-child{display:flex;flex-direction:column}.row b{font-weight:600}.row small{color:var(--mute);font-size:13px}
.rowact{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.stp{display:flex;align-items:center;gap:2px;background:var(--surface);border-radius:14px;padding:3px;box-shadow:inset 0 0 0 1px var(--line);flex:none}
.stp button{width:44px;height:44px;border-radius:11px;font-size:22px;text-align:center}
.stp output{min-width:30px;text-align:center;font:600 22px var(--display);font-stretch:80%}
.sw{width:46px;height:28px;border-radius:14px;background:var(--edge);position:relative;flex:none;transition:background .2s}
.sw::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:transform .2s}
.tog[aria-checked=true] .sw{background:var(--chalk)}.tog[aria-checked=true] .sw::after{transform:translateX(18px)}
/* configurateur */
.cfg{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.pic{flex:none;height:36vh;min-height:210px;display:flex;flex-direction:column;padding:0 16px 8px;border-bottom:1px solid var(--line)}
.pic>svg{flex:1;min-height:0;width:100%}
.status{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center;font-size:13px;color:var(--mute);padding-top:6px}
.status em{font-style:normal;color:var(--ink);font-weight:600;font-size:16px}
.pill{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:13px;padding:4px 10px;border-radius:999px}
.pill i{width:8px;height:8px;border-radius:50%;background:currentColor}
.pill.ok{background:var(--ok-soft);color:var(--ok)}.pill.warn{background:var(--warn-soft);color:var(--warn)}.pill.bad{background:var(--bad-soft);color:var(--bad)}
.ctl{flex:1;min-height:0;overflow-y:auto;padding:8px 20px 24px}
@media (min-width:900px){.cfg{flex-direction:row}.pic{width:56%;height:auto;border-bottom:0;border-right:1px solid var(--line);padding:16px 24px}.ctl{padding:16px 28px 28px}#app[data-s=config] .dock{max-width:none}}
.checks{display:flex;flex-direction:column;gap:8px;margin:4px 0 6px}
.chk{padding:12px 14px;border-radius:16px}
.chk b{font-weight:700;font-size:15px}.chk p{font-size:14px;margin-top:3px}
.chk.warn{background:var(--warn-soft)}.chk.warn b{color:var(--warn)}
.chk.bloque{background:var(--bad-soft)}.chk.bloque b{color:var(--bad)}
.chk.info{background:var(--chalk-soft)}.chk.info b{color:var(--chalk)}
.fx{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.chk .btn.soft{background:var(--surface)}
.tabs{display:flex;gap:2px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--line);margin:8px -4px 0;position:sticky;top:-8px;background:var(--bg);z-index:2}
.tabs::-webkit-scrollbar{display:none}
.tabs button{flex:none;min-height:46px;padding:0 12px;font-weight:600;font-size:15px;color:var(--mute);position:relative}
.tabs button[aria-selected=true]{color:var(--ink)}.tabs button[aria-selected=true]::after{content:"";position:absolute;left:10px;right:10px;bottom:-1px;height:2px;background:var(--chalk)}
.panel{padding-top:6px}
.calc{display:flex;flex-direction:column;gap:3px;margin:14px 0 0;padding:12px 14px;border-radius:14px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
.calc small{color:var(--mute);font-size:13px}
/* dessin */
.furn .wood{fill:var(--wood);stroke:var(--wood-line);stroke-width:1.2;vector-effect:non-scaling-stroke}
.furn .front{fill:var(--wood-top);stroke:var(--wood-line);stroke-width:1.2;vector-effect:non-scaling-stroke}
.furn .back{fill:var(--wood-back);opacity:.35}
.furn .stiff{fill:var(--wood-back);stroke:var(--wood-line);vector-effect:non-scaling-stroke}
.furn .alu{fill:var(--alu);stroke:var(--alu-line);stroke-width:1;vector-effect:non-scaling-stroke}
.furn .gus{fill:var(--alu-d)}
.furn .hw,.furn .hwp{fill:var(--hw)}
.furn .knob{fill:var(--hw);opacity:.75}
.furn .hl{fill:var(--chalk-soft);stroke:var(--chalk);stroke-width:2.2}
.furn .dim{opacity:.28}
.furn .space{fill:none;stroke:var(--chalk);stroke-width:1.3;stroke-dasharray:6 6;vector-effect:non-scaling-stroke;opacity:.8}
.furn .floor{stroke:var(--faint);stroke-width:1;vector-effect:non-scaling-stroke}
.furn .dimg line{stroke:var(--chalk);stroke-width:1.4;vector-effect:non-scaling-stroke}
.furn .dimg text{fill:var(--chalk);font-family:var(--display);font-weight:600;font-stretch:78%}
.furn .dimg .dep{fill:var(--mute)}
/* plan, listes */
.planhead{display:grid;grid-template-columns:110px minmax(0,1fr);gap:16px;align-items:center;margin-top:8px}
.planhead p{color:var(--mute);font-size:14px}.planhead p.num{font-size:20px;color:var(--ink);margin-top:4px}
.pthumb{height:120px;border-radius:16px;background:var(--surface);padding:8px}.pthumb svg{width:100%;height:100%}
.hubs{display:flex;flex-direction:column;gap:8px;margin-top:20px}
.hub{display:flex;align-items:center;gap:12px;width:100%;padding:16px;border-radius:18px;background:var(--surface)}
.hub>span:first-child{flex:1;display:flex;flex-direction:column}.hub b{font-weight:600;font-size:18px}.hub small{color:var(--mute);font-size:14px}
.hs{font:600 16px var(--display);font-stretch:80%;color:var(--mute)}
.note{margin:14px 0 0;padding:12px 14px;border-radius:14px;background:var(--surface);font-size:14px;box-shadow:inset 0 0 0 1px var(--line)}
.note.ok{background:var(--ok-soft);box-shadow:none}.note.warn{background:var(--warn-soft);box-shadow:none}.note.bad{background:var(--bad-soft);box-shadow:none}
.note b{display:block;font-size:13px;margin-bottom:2px}
.note.ok b{color:var(--ok)}.note.bad b{color:var(--bad)}
.inline{color:var(--chalk);font-weight:600;text-decoration:underline;text-underline-offset:3px;min-height:24px}
.list{list-style:none;margin:8px 0 0;padding:0}
.list li button{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:8px 0;border-bottom:1px solid var(--line)}
.list svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2.4;stroke-linecap:round}
.list .lt{flex:1;display:flex;flex-direction:column}.list .lt b{font-weight:600;font-size:15px}.list .lt small{color:var(--mute);font-size:13px}
.box{width:26px;height:26px;border-radius:8px;box-shadow:inset 0 0 0 2px var(--edge);display:grid;place-items:center;flex:none;font-style:normal;font:600 14px var(--display)}
[aria-checked=true] .box,.box.ok{background:var(--ok);box-shadow:none;color:var(--on-chalk)}
.q{font-size:20px;font-weight:600;white-space:nowrap}
.steps .box{color:var(--mute)}
.tools{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:4px;font-size:15px}
.cap{font-size:13px;color:var(--mute);margin:14px 0 6px}
.cutsvg,.barsvg{width:100%;height:auto;display:block}
.cutsvg .sheet,.barsvg .sheet{fill:var(--surface);stroke:var(--faint);stroke-width:1;vector-effect:non-scaling-stroke}
.cutsvg .pc{fill:var(--wood-top);stroke:var(--wood-line);vector-effect:non-scaling-stroke}
.barsvg .pcal{fill:var(--alu);stroke:var(--alu-line);vector-effect:non-scaling-stroke}
.cutsvg text,.barsvg text{fill:var(--ink);font-family:var(--display);font-weight:600}
/* montage */
.prog{display:flex;gap:3px;padding:0 20px}.prog i{flex:1;height:3px;border-radius:2px;background:var(--line)}.prog i.on{background:var(--ink)}.prog i.cur{background:var(--chalk)}
.pchips{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.pchip{display:flex;align-items:center;gap:8px;padding:5px 10px 5px 5px;border-radius:12px;background:var(--surface);font-size:14px}
.pchip b{display:grid;place-items:center;min-width:26px;height:26px;border-radius:7px;background:var(--chalk);color:var(--on-chalk);font-weight:700}
.body{font-size:17px;line-height:1.5;margin-top:12px}
.hw{margin:10px 0 0;padding-left:20px;font-size:15px;color:var(--mute)}
.drop{display:grid;place-items:center;min-height:180px;margin-top:16px;border-radius:20px;border:1.5px dashed var(--edge);cursor:pointer;overflow:hidden;text-align:center;padding:16px}
.drop span{display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--mute)}.drop b{color:var(--ink)}.drop small{font-size:13px}
.drop.has{border:0;padding:0}.drop img{width:100%;max-height:300px;object-fit:cover}
.drop:focus-within{outline:2px solid var(--chalk)}
.adj{list-style:none;margin:8px 0 4px;padding:0;display:grid;gap:4px;font-size:13px;line-height:1.4;color:var(--mute)}
.adj b{color:var(--chalk);font-weight:700;margin-right:4px}
.spic{margin:10px 0 0;height:270px;display:flex;flex-direction:column;border-radius:20px;background:var(--surface);padding:12px}
.spic svg{flex:1;min-height:0;width:100%}
.spic figcaption{font-size:13px;color:var(--mute);text-align:center;padding-top:6px}
.iso polygon,.iso circle{stroke-width:1;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.iso .i-wood polygon{stroke:var(--wood-line)}.iso .i-wood .ft{fill:var(--wood)}.iso .i-wood .tp{fill:var(--wood-top)}.iso .i-wood .rt{fill:var(--wood-back)}
.iso .i-alu polygon{stroke:var(--alu-line)}.iso .i-alu .ft{fill:var(--alu)}.iso .i-alu .tp{fill:color-mix(in srgb,var(--alu) 55%,#fff)}.iso .i-alu .rt{fill:var(--alu-d)}
.iso .i-back polygon{fill:var(--wood-back);stroke:var(--wood-line);opacity:.7}
.iso .i-hw polygon,.iso circle.i-hw{fill:var(--hw);stroke:var(--hw)}
.iso .i-gus{fill:var(--alu-d)}
.iso .hl polygon,.iso polygon.hl,.iso circle.hl{stroke:var(--chalk);stroke-width:1.8}
.iso .hl .ft{fill:color-mix(in srgb,var(--chalk) 28%,var(--surface))}.iso .hl .tp{fill:color-mix(in srgb,var(--chalk) 14%,var(--surface))}.iso .hl .rt{fill:color-mix(in srgb,var(--chalk) 42%,var(--surface))}
.iso .ghost polygon,.iso circle.ghost{fill:none;stroke:var(--edge);stroke-dasharray:3 4;opacity:.55}
#toast{position:fixed;left:16px;right:16px;top:calc(env(safe-area-inset-top,0px) + 60px);max-width:520px;margin:0 auto;background:var(--ink);color:var(--bg);padding:14px 16px;border-radius:16px;font-size:15px;opacity:0;transform:translateY(8px);transition:opacity .25s,transform .25s;pointer-events:none;z-index:50}
#toast.on{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* mesure : gros chiffres */
.mscreen{display:flex;flex-direction:column}
.mprog{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:14px 0 0}
.mprog button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 10px;min-height:48px;border-radius:12px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);font-size:13px;color:var(--mute);text-align:left}
.mprog button span{font-size:15px;color:var(--ink);font-weight:600}
.mprog button.cur{box-shadow:inset 0 0 0 1.5px var(--chalk);color:var(--chalk)}
.mask{margin-top:18px}
.mvis{display:flex;justify-content:center;align-items:center;height:clamp(110px,19vh,170px);margin:4px 0 0;overflow:hidden}
.msvg{height:100%;width:auto;max-width:100%;display:block}
.mask:focus{outline:none}
.mscreen .lede{font-size:14px;margin-top:4px}
.mscreen .mask{font-size:26px;margin-top:14px}
.msvg .mback{fill:none;stroke:var(--faint);stroke-width:1;stroke-dasharray:3 4;vector-effect:non-scaling-stroke}
.msvg .mfront{fill:var(--chalk-soft);fill-opacity:.45;stroke:var(--edge);stroke-width:1.2;vector-effect:non-scaling-stroke}
.msvg .mdim{stroke:var(--faint);stroke-width:1.2;vector-effect:non-scaling-stroke}
.msvg .mdim.on{stroke:var(--chalk);stroke-width:2}
.msvg .medge{stroke:var(--chalk);stroke-width:3;stroke-linecap:round;vector-effect:non-scaling-stroke}
.msvg .mdimt{fill:var(--mute);font-family:var(--display);font-weight:600;font-stretch:78%}
.msvg .mdimt.on{fill:var(--chalk)}
.readout{display:flex;align-items:baseline;justify-content:center;gap:8px;margin:2px 0 0}
.readout .v{font-family:var(--display);font-stretch:75%;font-weight:500;font-size:clamp(56px,16vw,76px);line-height:.9;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.readout .v.empty{color:var(--faint)}
.readout .u{font-size:20px;color:var(--mute)}
.caret{display:inline-block;width:3px;height:56px;background:var(--chalk);margin-left:2px;align-self:center;animation:blink 1s steps(2) infinite}
@keyframes blink{50%{opacity:0}}
@media (prefers-reduced-motion:reduce){.caret{animation:none}}
.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:12px 0 0}
.keypad button{display:grid;place-items:center;height:48px;border-radius:14px;font-family:var(--display);font-size:26px;font-weight:500;font-stretch:85%;color:var(--ink);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
.keypad button:active{background:var(--chalk-soft)}
.keypad svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.stdbtn{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:48px;margin:10px 0 24px;padding:0 16px;border-radius:14px;background:var(--chalk-soft);color:var(--chalk);font-size:15px}
.stdbtn span{color:var(--ink);font-weight:600}
.btn.idle{opacity:.45}
