/* Cabinet I: uncoated paper, brass rules, walnut rail and a matte green pad.
   The signed areas below contain the real order, moves, canvas and touch grid. */
main:has(> #bench:not([hidden]) .clip-study){background:#263c32;padding-block:max(3px,env(safe-area-inset-top)) max(3px,env(safe-area-inset-bottom));}
#bench .clip-study{
 --ink:#302f27;--ribbon:#345342;--bench-gap:0;--paper:#f3ead2;--rule:#bfac86;
 column-gap:0;row-gap:0;align-content:center;isolation:isolate;border:0;border-radius:0;
 grid-template-areas:'brand' 'head' 'order' 'rail' 'tray' 'sample' 'summary' 'actions';
 grid-template-rows:auto auto auto auto minmax(0,max-content) auto auto auto;
 padding:4px clamp(6px,2vw,14px);background:linear-gradient(102deg,#534238,#473a32 48%,#44372f 85%,#584538);
}
#bench .clip-study::before,#bench .clip-study::after{content:none;}
.clip-study .clip-brand{grid-area:brand;display:flex;align-items:center;gap:.45em;padding:0 5px 0 12px;border-bottom:2px solid #9f895f;background:#293e32;color:#f7eed1;font:500 clamp(17px,4.6vw,23px)/1.14 Georgia,serif;letter-spacing:.012em;}
.clip-study .clip-brand>span{color:#d2bc81;font-size:1.45em;}
.clip-study .clip-brand .mb-head-actions{margin-left:auto;}
#bench .clip-study #benchBack{min-width:54px;min-height:44px;padding:0 6px;border:0;border-radius:0;background:transparent;color:#f6edd4;box-shadow:none;font:600 12px/1.15 system-ui,sans-serif;}
#bench .clip-study .mb-head{display:grid;grid-template-columns:minmax(0,1fr) clamp(66px,21vw,88px) minmax(43px,auto);align-items:center;gap:2px;padding:8px clamp(6px,2vw,12px);border:0;border-radius:0;box-shadow:none;background:linear-gradient(110deg,#fbf3df,#ede2c7 70%,#e7d9b9);}
#bench .clip-study .mb-head small,.clip-sample small{font:700 clamp(9px,2.55vw,11px)/1.22 system-ui,sans-serif;letter-spacing:.12em;color:#67583e;}
#bench .clip-study .mb-head h2{margin:4px 0 0;color:#302e25;font:500 clamp(18px,5.3vw,25px)/1.08 Georgia,serif;}
#bench .clip-study .clip-plate{width:100%;height:auto;display:block;filter:none;}
#bench .clip-study .mb-turns{display:flex;flex-direction:column-reverse;justify-content:center;align-items:center;gap:0;min-width:40px;padding:0 4px 0 8px;border:0;border-left:1px solid #b7a785;border-radius:0;background:none;box-shadow:none;color:#3e392b;}
#bench .clip-study .mb-turns small{font:600 10px/1.2 system-ui,sans-serif;letter-spacing:.06em;color:inherit;}
#bench .clip-study .mb-turns strong{font:500 clamp(28px,8vw,36px)/1 Georgia,serif;color:inherit;font-variant-numeric:tabular-nums;}
#bench .clip-study .mb-order{display:block;padding:5px 7px 7px;border:0;border-top:1px solid #d7c8a8;border-radius:0;background:#f4ead2;box-shadow:none;}
#bench .clip-study #recipe{display:flex;align-items:stretch;flex-wrap:nowrap;gap:5px;}
#bench .clip-study #recipe>span{position:relative;display:block;white-space:nowrap;align-content:center;min-width:0;padding:3px 6px 3px 2px;color:#3d372b;border:1px solid #bba984;border-radius:4px;background:#faf4e1;box-shadow:none;}
#bench .clip-study #recipe :is(img,canvas){display:inline-block;vertical-align:middle;margin-inline-end:3px;width:clamp(23px,7vw,30px);height:auto;max-height:none;}
#bench .clip-study .clip-color{font:650 clamp(11px,3.4vw,14px)/1.15 system-ui,sans-serif;color:inherit;}
#bench .clip-study .clip-prefix{font:500 clamp(10px,2.8vw,12px)/1 system-ui,sans-serif;color:#5f553d;}
#bench .clip-study .clip-tally{font:700 clamp(15px,4.3vw,18px)/1.2 system-ui,sans-serif;color:inherit;}
#bench .clip-study #recipe>[data-filled=true]{border-color:#73866c;color:#294f37;}
#bench .clip-study .clip-rail{grid-area:rail;display:flex;align-items:center;justify-content:space-between;min-height:22px;padding:0 4px;color:#ede1c8;font:700 9px/1 system-ui,sans-serif;letter-spacing:.15em;text-transform:uppercase;}
#bench .clip-study .mb-tray{border:0;border-radius:5px;background:url('vitrine-art/nap.svg'),radial-gradient(ellipse at 23% 15%,#255049,#193e38 57%,#13312e);box-shadow:0 0 0 1px #a38a62,inset 2px 3px 7px #071d1b73;}
#bench .clip-study .mb-grid .mb-cell{border:0;border-radius:0;background:transparent;box-shadow:inset -1px -1px 0 #bddbc615;}
#bench .clip-study .mb-cell::before{content:none;}
#bench .clip-study .mb-cell[data-hint=yes],#bench .clip-study .mb-cell[data-idle-hint=yes]{outline:2px dashed #f6db9a;outline-offset:-4px;border-radius:8px;}
#bench .clip-study.clip-ids .clip-id::after,#bench .clip-study.clip-ids #recipe>span::after{content:attr(data-form);display:block;position:absolute;bottom:0;right:0;padding:1px 2px;background:#15332b;color:#fff3d6;font:700 10px/1 system-ui,sans-serif;letter-spacing:.02em;pointer-events:none;}
#bench .clip-study.clip-ids .clip-id::after{left:1px;right:auto;border-radius:2px;}
#bench .clip-study .lesson-swipe,#bench .clip-study .lesson-end{outline-color:#ffe9ae;border-radius:6px;}
#bench .clip-study.clip-ids #recipe>span::after{position:static;grid-column:1/-1;justify-self:start;border-radius:2px;}
#bench .clip-study :is(button,summary):focus-visible{outline:3px solid #f8d17c;outline-offset:-3px;box-shadow:inset 0 0 0 5px #3c422c;}
#bench .clip-study .mb-grid .mb-cell:focus-visible{border-radius:5px;outline:3px solid white;outline-offset:-4px;box-shadow:inset 0 0 0 6px #4a553b;}
#bench .clip-study .clip-sample{grid-area:sample;display:flex;align-items:center;gap:10px;background:#e9dec3;color:#413b2d;margin:8px 0 0;padding:5px 10px;border-block:1px solid #b9a37a;}
.clip-sample .clip-seat{display:grid;place-items:center;width:52px;height:38px;background:#21433b url('vitrine-art/nap.svg');border:1px solid #a88e61;border-radius:50%;}
.clip-sample .clip-seat :is(img,canvas){width:43px;height:43px;filter:drop-shadow(1px 2px 1px #081d18aa);}
.clip-sample div>*{display:block;}.clip-sample strong{font:500 clamp(15px,4.1vw,19px)/1.13 Georgia,serif;}.clip-sample div>span{font:500 11px/1.3 system-ui,sans-serif;color:#514b3b;}
#bench .clip-study .mb-status{color:#3c3b2e;min-height:32px;padding:5px 9px;border:0;border-radius:0;border-bottom:1px solid #c8b995;background:#f5ecd6;box-shadow:none;font:500 12px/1.25 system-ui,sans-serif;}
#bench .clip-study .mb-actions{padding:0 4px;background:#293f32;gap:5px;}
#bench .clip-study .mb-actions button,#bench .clip-study #benchFinish{min-height:44px;color:#fbf3dd;background:#304b3e;border:1px solid #627463;border-radius:3px;box-shadow:none;font:650 14px/1.2 system-ui,sans-serif;}
#bench .clip-study .mb-actions button{border:0;background:transparent;}
#bench .clip-study #benchGuide::before,#bench .clip-study [data-loupe]::before{content:'◇';background:none;color:#d9c58e;vertical-align:0;}
#bench .clip-study #mineralEnd,#bench .clip-study #benchMoreDialog{background:#f4ebd6;color:#3b372d;border:1px solid #ad9873;border-top:3px double #95805e;border-radius:5px;box-shadow:0 5px 12px #1c271f66;}
#bench .clip-study #setting,#bench .clip-study #resultMount{background:#24453c url('vitrine-art/nap.svg');border:1px solid #af996c;border-radius:50%;}
#bench .clip-study .mb-actions button:disabled,#bench .clip-study #benchBack:disabled{color:#e0dbca;opacity:.76;}
body:has(#bench:not([hidden]) .clip-study) .atelier-glint{display:none;}
@media(min-height:740px) and (orientation:portrait){
 #bench .clip-study::before{content:'';grid-row-end:brand-start;mask-image:none;background:transparent url('vitrine-art/register.svg') center bottom / min(100%,450px) auto no-repeat;}
 #bench .clip-study::after{content:'';grid-row-start:actions-end;mask-image:none;background:linear-gradient(90deg,transparent,#a89068 38%,transparent 44%,transparent 56%,#a89068 62%,transparent) center / min(72%,400px) 1px no-repeat,radial-gradient(ellipse,#c2a97e 0 1.7px,transparent 2px) center / 10px 8px no-repeat;}
}
@media(max-height:620px){#bench .clip-study{padding-block:0;}#bench .clip-study .mb-head{padding-block:4px;}#bench .clip-study .clip-rail{min-height:15px;}#bench .clip-study .clip-sample{margin-top:2px;padding-block:1px;}#bench .clip-study .mb-status{min-height:26px;padding-block:3px;}#bench .clip-study .mb-order{padding-block:3px;}}
@media(orientation:landscape) and (max-height:450px) and (min-width:500px){#bench .clip-study{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:'brand tray' 'head tray' 'order tray' 'sample tray' 'summary tray' 'actions tray';grid-template-rows:auto auto auto auto auto auto;column-gap:10px;padding:5px 8px;}#bench .clip-study .clip-rail{display:none;}#bench .clip-study .mb-tray{align-self:center;width:100%;height:auto;}#bench .clip-study .mb-tray::before{width:100%;}}
