.painting-study{display:grid;gap:1rem;max-width:1040px;margin-inline:auto;color:inherit;min-width:0}
.painting-study button,.painting-study fieldset{min-width:0;font:inherit}.painting-study button{touch-action:manipulation}
.refonte-crop{display:block;width:100%;aspect-ratio:1.5;overflow:hidden;background:transparent}.refonte-crop>svg{display:block;width:100%;height:100%}
.refonte-reference{margin:0;display:grid;gap:.6rem}.refonte-reference>.refonte-crop{max-height:46vh;max-height:46dvh;max-width:min(750px,calc(46vh * var(--refonte-crop-ratio,1.5)));max-width:min(750px,calc(46dvh * var(--refonte-crop-ratio,1.5)));margin:auto}.refonte-reference figcaption{font-size:.94rem;line-height:1.5;max-width:75ch;margin:auto}
.refonte-pieces{display:flex;flex-wrap:wrap;gap:.7rem;align-items:flex-start}.refonte-piece-holder,.refonte-pieces>.refonte-piece{flex:1 1 130px;max-width:240px;min-width:0}
.refonte-piece{display:grid!important;gap:.35rem;align-content:start;overflow:hidden;padding:.5rem!important;width:100%}.refonte-piece>.refonte-crop{pointer-events:none}.refonte-piece>span:last-child{font-size:.9rem;line-height:1.35}
.refonte-piece[aria-pressed=true],.refonte-choice[aria-pressed=true],.refonte-views [aria-pressed=true]{outline:2px solid currentColor;outline-offset:2px;background:rgba(170,131,69,.24)}
.refonte-piece-holder .refonte-rotate{font-size:.84rem;margin-top:.35rem}.refonte-instruction{margin:0;font-size:.94rem;line-height:1.5}
.refonte-slots{display:grid;grid-template-columns:repeat(var(--refonte-columns,3),minmax(0,1fr));gap:.2rem;align-items:stretch}.refonte-slot{padding:0!important;overflow:hidden;min-height:120px;display:flex;flex-direction:column;justify-content:center;gap:.2rem;background:rgba(65,48,28,.1)}
.refonte-slot .refonte-crop{width:100%;flex:1 0 auto}.refonte-slot-name,.refonte-slot small{padding:.2rem .45rem;font-size:.85rem}.refonte-slot-name{font-weight:600}
.refonte-quadrants{grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
.refonte-layers{gap:.65rem}.refonte-layers .refonte-slot:nth-child(2){transform:translateY(.35rem)}.refonte-layers .refonte-slot:nth-child(3){transform:translateY(.7rem)}
.refonte-reserve{grid-template-columns:1fr 2fr 1fr;grid-template-areas:'north north north' 'west blank east' 'south south south';gap:0;background:#ece6d6}
.refonte-reserve [data-slot=north]{grid-area:north}.refonte-reserve [data-slot=east]{grid-area:east}.refonte-reserve [data-slot=south]{grid-area:south}.refonte-reserve [data-slot=west]{grid-area:west}.refonte-reserve-center{grid-area:blank;min-height:150px;display:grid;place-items:center;color:#6b6357;font-style:italic;padding:1rem;background:#f2ead8}
.refonte-settings{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.8rem}.refonte-settings fieldset{border:1px solid currentColor;border-radius:10px;padding:.8rem;display:flex;flex-wrap:wrap;gap:.45rem;align-content:start}.refonte-settings legend{padding:0 .35rem;font-weight:600}.refonte-settings button{flex:1 1 90px;line-height:1.35;font-size:.92rem;padding:.6rem}
.refonte-views,.refonte-gestures,.refonte-actions,.refonte-controls{display:flex;flex-wrap:wrap;gap:.6rem}.refonte-gestures button{flex:1 1 190px}.refonte-actions{padding-top:.7rem;border-top:1px solid #a18c6755}.refonte-actions button{flex:1 1 180px}
.refonte-gesture-trace,.refonte-roll-trace{margin:.3rem 0;padding-left:1.5rem;line-height:1.7;max-height:12rem;overflow:auto}.refonte-loading{padding:.8rem;border:1px solid #b88640;background:#47351d;color:#fff4d7;border-radius:.6rem;line-height:1.5}.refonte-loading button{margin-left:.5rem}
.refonte-proof-pair{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.refonte-print-grid{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid #645039;background:#e2d2af}.refonte-print-cell{aspect-ratio:1;border:1px solid #63533b55!important;border-radius:0!important;padding:0!important;display:grid;place-items:center;overflow:hidden;color:#443520}.refonte-print-cell[data-material=ink]{background:#302a21}.refonte-print-cell[data-material=cut]{background:#c1a778}.refonte-print-cell .refonte-crop{height:100%;aspect-ratio:1!important}
.refonte-packing-board{width:min(100%,540px);aspect-ratio:1;margin:auto;background:#d8c6a0;box-shadow:inset 0 0 0 3px #5c4e38;overflow:hidden}.refonte-packing-board>svg{width:100%;height:100%;display:block}.refonte-controls>.refonte-piece{width:auto;flex:1 1 130px}
.refonte-shadow-parts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.refonte-shadow-card h4{margin:.5rem 0;font-size:.9rem}.refonte-shadow-shape{aspect-ratio:1;background:#dbc99c;box-shadow:inset 0 0 0 1px #695239;overflow:hidden}.refonte-shadow-shape svg{display:block;width:100%;height:100%}.refonte-shadow-comparison{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.refonte-shadow-comparison h4{font-size:.95rem;min-height:2.5em}.refonte-shadow-surface{display:grid;grid-template-columns:repeat(4,1fr);max-width:280px;aspect-ratio:1;background:#dec890;box-shadow:inset 0 0 0 3px #705335}.refonte-shadow-surface span{display:block}.refonte-shadow-surface span[data-filled=true]{background:#27201e}.refonte-shadow-surface.target span[data-filled=true]{background:#534432}.refonte-registration{position:relative;aspect-ratio:.592;width:min(100%,350px);margin:1rem auto;background:#eee1bb;border:2px solid #786446;overflow:hidden;isolation:isolate}.refonte-print-layer{position:absolute;inset:0;mix-blend-mode:multiply;transform-origin:center}.refonte-lanterns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}.refonte-lanterns figure{margin:0;overflow:hidden}.refonte-lanterns figcaption{font-size:.88rem;padding:.4rem}
.refonte-volume{grid-template-columns:repeat(3,minmax(0,1fr))}.refonte-volume fieldset{display:grid;gap:.3rem;padding:.4rem}.refonte-volume legend{font-size:.85rem}.refonte-volume button{padding:.4rem;font-size:.8rem}
.refonte-fold-stage{perspective:650px;min-height:340px;display:grid;place-items:center;overflow:hidden}.refonte-fold-cube{width:140px;height:140px;position:relative;transform-style:preserve-3d;transform:rotateX(-18deg) rotateY(28deg)}.refonte-fold-face{position:absolute;inset:0;backface-visibility:visible;border:1px solid #67543f;transform-origin:center;transition:transform .3s ease;background:#c2b08c}.refonte-fold-face .refonte-crop{height:100%;aspect-ratio:1!important}.refonte-fold-face strong{position:absolute;inset:0;display:grid;place-items:center;font-size:1.5rem;color:#382b20;text-shadow:0 1px #fff9}
.refonte-ribbons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem}.refonte-ribbon-holder{display:grid;gap:.4rem;min-width:0;text-align:center}.refonte-ribbon-window{height:300px;overflow:hidden;background:#c3a36a}.refonte-ribbon-window>.refonte-crop{height:100%;aspect-ratio:auto!important}.refonte-ribbon-holder button{font-size:.85rem;padding:.55rem}
@media(max-width:600px){.painting-study{gap:.75rem}.refonte-slots{grid-template-columns:repeat(2,minmax(0,1fr))}.refonte-seams{grid-template-columns:repeat(var(--refonte-columns,3),minmax(0,1fr))}.refonte-slot{min-height:90px}.refonte-slot-name,.refonte-slot small{font-size:.72rem}.refonte-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.refonte-reserve{grid-template-columns:1fr 1.8fr 1fr}.refonte-reserve-center{min-height:90px;font-size:.8rem}.refonte-reference>.refonte-crop{max-height:35dvh;max-width:min(750px,calc(35dvh * var(--refonte-crop-ratio,1.5)))}.refonte-settings{grid-template-columns:1fr}.refonte-volume{grid-template-columns:repeat(3,minmax(0,1fr))}.refonte-pieces{gap:.45rem}.refonte-piece-holder,.refonte-pieces>.refonte-piece{flex-basis:100px}.refonte-proof-pair{gap:.5rem}.refonte-ribbon-window{height:220px}.refonte-fold-stage{min-height:290px;transform:scale(.83)}}
@media(prefers-reduced-motion:reduce){.refonte-fold-face{transition:none}}
