/* First lesson: original inked workshop. SVGs are editable vector masters, not texture overlays. */
main:has(> #bench:not([hidden]) .clip-study){background:#294a55;padding-block:2px;}
#bench .clip-study{--ink:#253c4b;--ribbon:#207267;--bench-gap:6px;padding:6px;background:#d99063 url('redraw-art/worktop.svg') left top/400px 250px repeat;isolation:isolate;}
#bench .clip-study::before,#bench .clip-study::after{mask-image:none;opacity:1;inset-inline:-2px;background-repeat:no-repeat;}
#bench .clip-study::before{grid-row-end:head-start;background:url('redraw-art/window.svg') center bottom/100% 100% no-repeat;}
#bench .clip-study::after{grid-row-start:actions-end;background:url('redraw-art/drawer.svg') center top/100% auto no-repeat;}
/* Signed display card, padded brooch pad and a separate departure tab. */
#bench .clip-study .mb-head{position:relative;display:grid;grid-template-columns:clamp(83px,27vw,114px) minmax(0,1fr) max-content;align-items:center;gap:5px;padding:4px 4px 3px 3px;border:2px solid #344750;border-radius:24px 7px 18px 8px;background:linear-gradient(110deg,#ffdea0 0 32%,#ffedbd 33% 80%,#f0cc94 100%);box-shadow:1px 3px 0 #90554c;color:#203847;}
#bench .clip-study .mb-head small{font:750 9px/1.2 system-ui,sans-serif;letter-spacing:.08em;color:#37605c;}
#bench .clip-study .mb-head h2{margin:1px 0 0;font:750 clamp(17px,4.7vw,22px)/1.04 Georgia,serif;color:#253c4b;}
#bench .clip-study .clip-plate{box-sizing:border-box;width:100%;height:auto;border:2px solid #344750;border-radius:45% 43% 40% 48%;background:radial-gradient(ellipse at 35% 20%,#40858b,#215060 90%);box-shadow:inset 0 0 0 2px #63a9a3,1px 2px 0 #a26d53;}
#bench .clip-study .mb-actions button,#bench .clip-study #benchBack,#bench .clip-study #benchFinish{font:750 14px/1.1 system-ui,sans-serif;color:#fff4d5;background:#285f69;border:2px solid #293f4d;border-radius:15px 7px 13px 7px;box-shadow:inset 1px 2px 0 #72a89c,1px 3px 0 #805447;min-height:44px;}
#bench .clip-study #benchBack{font-size:12px;min-width:52px;padding:0 4px;background:#ad4c42;box-shadow:inset 0 2px 0 #f59771,1px 2px 0 #b98460;}
#bench .clip-study .mb-order{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;background:none;border:0;box-shadow:none;padding:0;}
#bench .clip-study #recipe{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;min-width:0;}
#bench .clip-study #recipe>span{display:block;position:relative;min-width:0;border:1.8px solid #5f4f48;border-radius:6px 13px 6px 12px;background:#fff0c9;box-shadow:1px 2px 0 #865b48;padding:2px 1px 2px clamp(29px,9vw,40px);font:600 12px/16px system-ui;color:#344454;}
#bench .clip-study #recipe img{position:absolute;left:0;top:50%;width:clamp(27px,8.4vw,36px);height:auto;transform:translateY(-50%);}
#bench .clip-study .clip-color{display:inline-block;width:100%;font:725 clamp(11px,3.4vw,13px)/15px system-ui,sans-serif;color:#263c46;}
#bench .clip-study .clip-prefix{font:500 11px/15px system-ui;color:#50453c;}
#bench .clip-study .clip-tally{font:800 17px/18px system-ui;color:#773b47;}
#bench .clip-study .mb-turns{min-width:46px;display:grid;place-content:center;justify-items:center;gap:0;border:2px solid #353c4c;border-radius:45% 45% 35% 35%;padding:2px 6px;background:#873f58;box-shadow:inset 1px 2px 0 #d27b81,1px 2px 0 #845349;color:#fff5ca;}
#bench .clip-study .mb-turns small{font:750 9px/10px system-ui;letter-spacing:.04em;color:inherit;}
#bench .clip-study .mb-turns strong{font:800 23px/23px Georgia;color:inherit;}
#bench .clip-study .mb-tray{border:0;border-radius:18px;background:transparent url('redraw-art/tray.svg') center/100% 100% no-repeat;box-shadow:2px 4px 0 #885c50;}
#bench .clip-study .mb-cell{border-color:transparent;box-shadow:none;}
#bench .clip-study .mb-status{background:#ffe8b7 url('redraw-art/tongs.svg') 3px center/40px 32px no-repeat;border:1.6px solid #845647;border-radius:4px 13px 8px 4px;color:#293e4a;box-shadow:1px 2px 0 #a26954;padding:3px 5px 3px 46px;font:600 12px/1.22 system-ui,sans-serif;}
#bench .clip-study #mineralEnd,#bench .clip-study #benchMoreDialog{background:#ffedc5;color:#273e49;border:2px solid #364752;border-radius:15px 6px 18px 7px;box-shadow:2px 4px 0 #754e44;}
#bench .clip-study #resultMount,#bench .clip-study #setting{background:#327077;border-radius:50% 46%;}
#bench .clip-study .mb-actions button:disabled,#bench .clip-study #benchBack:disabled{opacity:1;background:#655965;color:#fff0d6;box-shadow:1px 2px 0 #805447;}
@media(max-height:620px){#bench .clip-study{--bench-gap:4px;}#bench .clip-study::before{background:#367886 url('redraw-art/sill.svg') center bottom/100% 100% no-repeat;}#bench .clip-study .mb-head{padding-block:1px;}#bench .clip-study .mb-status{min-height:31px;}}
#bench .clip-study #benchGuide::before,#bench .clip-study [data-loupe]::before{content:'✦';background:none;color:#ffdc92;vertical-align:0;}
#bench .clip-study .mb-cell[data-mark]:not([data-mark="0"])::after{background:#ffce76;color:#243b49;content:'✧';border-radius:50%;}
#bench .clip-study .mb-cell::before{content:none;}
#bench .clip-study .mb-cell[aria-pressed=true]{outline:3px dashed #ffdf8f;border-radius:30%;outline-offset:-4px;}
/* Lesson uses its own vector stones and sockets for selection/cut/collection feedback. */
body:has(#bench:not([hidden]) .clip-study) .atelier-glint{display:none;}
