:root{--forest:#254b40;--forest-dark:#193b32;--brick:#ac573b;--sand:#e0b573;--rule:#d7d4c6;--ink:#292f29;--muted:#58635a;--paper:#fffdf6;--soft:#f0efe5;font:normal 16px/1.44 "Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",system-ui,sans-serif;color:var(--ink);color-scheme:light}
body{margin:0;background:#f6f5ee;color:var(--ink);-webkit-text-size-adjust:100%}
button,input,select,summary{font:inherit}button{cursor:pointer;touch-action:manipulation}
button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #a44928;outline-offset:3px}
button:disabled{opacity:.47}.site-top{border-bottom:1px solid var(--rule);background:#fcfbf4}
.site-bar,.studio{width:min(1160px,calc(100% - 64px));margin:auto}
.site-bar{min-height:66px;display:flex;align-items:center;gap:clamp(18px,4vw,58px)}
.brand{display:flex;align-items:center;gap:8px;color:#283e34;text-decoration:none;white-space:nowrap;font-size:1.12rem;font-weight:850;letter-spacing:-.065em}
.brand img{display:block;border-radius:9px}.site-bar nav,.head-tools{display:flex;align-items:center;gap:7px}.head-tools{margin-left:auto}
.site-bar button,.workbench button,.drawer button,.studio-footer button,.work-dialog button,#libraryDialog button{font-family:inherit;border:1px solid #c6c9b9;border-radius:7px;box-shadow:none;background:#fbfcf3;color:#31493d;font-weight:700;line-height:1.22}
.site-bar nav button{border-color:transparent;background:transparent;min-height:40px;padding:8px 13px}.site-bar nav button:hover,.site-bar nav button:first-child{background:#e9eddf}
.head-tools button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:37px;min-height:37px;padding:7px 10px;font-size:.88rem}.head-tools img{width:16px;height:16px;object-fit:contain}
.fullscreen-icon{width:16px;height:16px;background:linear-gradient(currentColor,currentColor) left top / 6px 2px,linear-gradient(currentColor,currentColor) left top / 2px 6px,linear-gradient(currentColor,currentColor) right top / 6px 2px,linear-gradient(currentColor,currentColor) right top / 2px 6px,linear-gradient(currentColor,currentColor) right bottom / 6px 2px,linear-gradient(currentColor,currentColor) right bottom / 2px 6px,linear-gradient(currentColor,currentColor) left bottom / 6px 2px,linear-gradient(currentColor,currentColor) left bottom / 2px 6px;background-repeat:no-repeat}
#fullToggle[aria-pressed=true]{background:var(--forest);color:white}
.studio{padding:17px 0 32px;--dot:#d9a94f}
.workshop-hero{position:relative;isolation:isolate;overflow:hidden;margin:0 0 17px;min-height:clamp(163px,16vw,214px);border-radius:16px;background:#eee1c6 url(assets/workshop/wax-still.webp) no-repeat 90% 50%/cover;border:1px solid #d3c6a9;display:flex;align-items:center}
.workshop-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#faf3e5f5,#faf2e4ec 18%,#faf2e4c9 33%,#f7f1e2a8 40%,transparent 57%)}
.hero-content{padding:18px clamp(18px,3.1vw,39px)}.hero-content h1{color:#273d31;margin:0;font-family:"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;font-size:clamp(1.95rem,3.65vw,3.2rem);font-weight:900;letter-spacing:-.08em;line-height:1.1}.hero-content p{font-size:clamp(.87rem,1.24vw,1rem);color:#494e3f;margin:7px 0 12px;line-height:1.42;letter-spacing:-.03em}
#heroRelay{color:#fff9e6;background:var(--forest);border:1px solid var(--forest);border-radius:7px;padding:8px 12px;font-size:.91rem;font-weight:750;min-height:36px}
.workspace{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr);gap:16px;align-items:start;scroll-margin-top:12px}
.workbench,.drawer{grid-column:auto;grid-row:auto;background:var(--paper);border:1px solid #c9cbbb;border-radius:15px;box-shadow:0 3px 8px #3b443610;min-width:0;padding:0;overflow:hidden}
.bench-head,.drawer-title{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 20px;background:var(--paper);border:0;margin:0}
.label-plate{display:block;min-width:0}.label-plate>span{font:700 .79rem/1.2 inherit;display:block;font-size:.8rem;font-weight:700;color:#886545;letter-spacing:-.01em;margin-bottom:2px}
.bench-head h2,.drawer-title h2{color:#293e33;font:850 clamp(1.3rem,2.5vw,1.74rem)/1.17 "Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;letter-spacing:-.06em;margin:0;word-break:keep-all}.drawer-title h2{font-size:1.33rem}
.bench-head-tools{display:flex;align-items:center;gap:11px}.bench-head-tools canvas{width:66px;height:21px;display:block}#favToggle{width:38px;height:38px;min-height:38px;font:500 1.50rem/1 system-ui;border-radius:50%;background:#fcfaf0;color:#85663e}#favToggle[aria-pressed=true]{background:#ffedba;color:#795018}
#mat{margin:0 12px;isolation:isolate;position:relative;aspect-ratio:1.95;width:auto;height:auto;min-height:248px;border:1px solid #d8c8ac;border-radius:12px;box-shadow:inset 0 1px 14px #b8926521;overflow:hidden;background:radial-gradient(ellipse at 27% 26%,#f8ecd6,#eee1c9 64%,#e3d1b6)}
#mat::before{opacity:.11}#mat .mat-stitch{inset:8px;border-radius:7px;border:1px dashed #bfae91;opacity:.7;z-index:-1}
#mat #toy,#mat #props{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}#props canvas{width:100%;height:100%;touch-action:none}
#mat .stamp-result{z-index:4;position:absolute;right:10px;bottom:10px;background:#2d5945;color:#fff7db;border:0;border-radius:13px;padding:5px 10px;font-size:.83rem;pointer-events:none;transform:none}
.bench-feedback{display:flex;align-items:center;gap:16px;padding:9px 17px 5px;min-height:31px;color:#536253}.readout{display:flex;gap:8px;align-items:center;max-width:52%;font-size:.78rem;font-weight:650}.pressure{width:clamp(55px,7vw,94px);height:6px;background:#e4e3d4;border-radius:5px;border:0;overflow:hidden}.pressure i{display:block;width:100%;height:100%;background:#ae7148;transform:scaleX(0);transform-origin:left}
#actionName{font:650 .78rem/1.35 "Apple SD Gothic Neo",system-ui,sans-serif;margin-left:auto;color:#626149;border:0;background:transparent;box-shadow:none;overflow-wrap:anywhere;text-align:right}
.tactile-note{padding:5px 17px 11px}.tactile-note p{margin:0;color:#394b3c;font-size:.97rem;font-weight:620}.tactile-note small{font-size:.85rem;margin:3px 0 0;color:#65715d}
.bench-instruments{background:#f2f2e8;border:0;border-top:1px solid var(--rule);padding:8px 12px;gap:6px;display:flex;align-items:center;flex-wrap:wrap}
.workbench .bench-instruments button,.drawer button,.dialog-head button{min-height:34px;padding:6px 10px;font-size:.86rem}
#renew{background:#e0e9d9;border-color:#b7c6ae;color:#294d37}.bench-instruments [aria-pressed=true],.bench-instruments [aria-expanded=true]{background:#dbe9d2}
.drawer{padding:12px 13px}.drawer-title{padding:2px 2px 11px}.drawer-select{display:block}.drawer-select select,.library-controls select,.library-controls input{display:block;width:100%;min-height:38px;padding:6px 10px;border:1px solid #c1c5b4;border-radius:7px;background:#f4f5e9;color:#304c3c;font-size:.9rem;font-weight:650}
.choices,.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:9px 0 0}
.drawer .choices button,.library-grid button,#libraryDialog .library-grid button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:3px;min-width:0;min-height:87px;width:auto;border:1px solid #d6d7c8;border-radius:9px;overflow:hidden;background:#faf9ef;padding:5px 3px 7px;box-shadow:none;text-align:center;font-size:.84rem;color:#3d4c40;line-height:1.23}
.drawer .choices button img,.library-grid button img{display:block;object-fit:contain;width:100%;height:clamp(45px,5.2vw,66px);image-rendering:auto;border:0;background:transparent}
.drawer .choices button[aria-pressed=true],#libraryDialog [data-choice][aria-pressed=true]{background:#e6efde;border:2px solid #537b59;padding:4px 2px 6px}
[data-choice][data-found=true]::after{content:'✓';position:absolute;right:4px;top:4px;font:800 .72rem/1.3 system-ui;color:#275c3c;background:#dbead4;border-radius:50%;width:15px;height:15px}
.drawer-pages{display:flex;align-items:center;justify-content:space-between;padding:7px 0}.drawer-pages span{font-size:.79rem;color:#636f60;font-variant-numeric:tabular-nums}
.drawer-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--rule);padding:10px 0 0;margin-top:3px}.stamp-count{font-size:.84rem;color:#5a6659;display:flex;align-items:center;gap:6px}.stamp-count b{color:#39533e;font-variant-numeric:tabular-nums}
#challengeOpen{width:100%;background:#304f41;color:#fff8e7;border:1px solid #304f41;padding:9px 15px;margin-top:10px;min-height:39px}
#lens{border-color:#b69560;box-shadow:0 0 0 2px #fff1d6,0 2px 7px #37281e3d}
.studio-footer{display:flex;align-items:flex-start;flex-wrap:wrap;gap:10px 18px;margin-top:16px;border-top:1px solid #d4d6c7;padding:13px 0;color:#59665a}.studio-footer details{flex:1;min-width:185px;margin:0}.studio-footer summary{cursor:pointer;font-size:.9rem;font-weight:700}.studio-footer p,.studio-footer a{font-size:.86rem;line-height:1.6;color:#4d6355}.studio-footer .credits div{display:flex;flex-wrap:wrap;gap:12px}
dialog{color:#2e4034;background:#fffdf5;border:1px solid #839b86;border-radius:14px;box-shadow:0 12px 32px #142e2839}dialog::backdrop{background:#203431aa}
#libraryDialog,.work-dialog{padding:0;width:min(800px,calc(100% - 24px));max-height:88dvh;overflow:auto}.work-dialog{width:min(520px,calc(100% - 24px))}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:9px;background:#f2f3e7;padding:13px 18px;border-bottom:1px solid var(--rule)}.dialog-head h2{font-size:1.38rem;color:#334735;letter-spacing:-.055em;line-height:1.2;margin:0}.dialog-head h2 span{font:650 .9rem/1.2 system-ui;color:#718269;letter-spacing:0}
.dialog-head button,.work-dialog button{padding:7px 12px;min-height:35px}.library-controls,.library-meta{display:flex;align-items:center;gap:9px;padding:10px 15px 0}.library-controls label:first-child{flex:1}.library-controls label:last-child{max-width:42%}.library-controls input{background:#fffef9;color:var(--ink);font-size:1rem}.library-meta{flex-wrap:wrap;justify-content:flex-end;font-size:.84rem;color:#4d6250}.library-meta span{margin-right:auto}.library-meta input{accent-color:var(--forest)}
#libraryGrid{margin:8px 0 0;padding:0 13px 14px;grid-template-columns:repeat(6,minmax(0,1fr));max-height:57dvh;overflow-y:auto;overscroll-behavior:contain}#libraryGrid button{min-height:88px}#emptyLibrary{padding:12px 17px}
.dialog-body{padding:16px 18px}.dialog-body>p:first-child{margin-top:0}.dialog-body p{font-size:.95rem;color:#4e5d4f}
#relayStrip{display:flex;gap:10px;align-items:center;padding:6px 12px;background:#f7e6bb;color:#614a2c;font-size:.88rem;margin:0 12px 6px;border-radius:6px}#relayStrip b{flex:1}#relayStrip span{font-variant-numeric:tabular-nums}#relayStop{padding:5px 8px;min-height:30px}.relay-list{display:grid;gap:8px}.relay-track{display:flex;gap:9px;align-items:center;text-align:left;width:100%}.relay-covers{display:flex;width:69px;align-items:center;flex-shrink:0}.relay-covers img{width:33px;height:33px;object-fit:cover;border-radius:50%;border:1px solid #d4c7a8;margin-right:-14px}.relay-track strong,.relay-track small{display:block}.relay-track small{font-size:.77rem;font-weight:550;color:#596755;margin-top:3px}.relay-track em{margin-left:auto;font-size:.8rem;font-style:normal;white-space:nowrap}.relay-result{padding:9px 12px;background:#deebd2;border-radius:7px;font-weight:750}
.stick-panel{display:flex;align-items:center;gap:8px;padding:6px 13px;background:#eef1e4;border-top:1px solid var(--rule)}.stick-base{width:61px;height:61px;position:relative;flex-shrink:0;border-radius:50%!important;touch-action:none;background:radial-gradient(#c1ceb8,#d9e1ce)!important;user-select:none}#stickKnob{left:50%;top:50%;position:absolute;display:block;width:24px;height:24px;border:2px solid #6c816b;border-radius:50%;background:#a8b8a1;transform:translate(-50%,-50%)}.stick-coach{flex:1}.stick-coach strong,.stick-coach small{display:block}.stick-coach small{font-size:.75rem;color:#5f705e}#stickTap,#stickGrip{min-height:40px;padding:6px 12px;touch-action:none}#stickGrip b{margin-right:4px}#stickGrip[aria-pressed=true]{background:#d9e8cf}.stick-cursor{position:absolute;left:50%;top:52%;z-index:3;pointer-events:none;width:19px;height:19px;border:2px solid #fffaf1;border-radius:50%;box-shadow:0 0 0 1px #40694b,0 1px 6px #26382755;transform:translate(-50%,-50%)}.stick-cursor.is-gripping{background:#e9c779aa}
[data-pad-focus]{outline:3px solid #b05e32!important;outline-offset:2px}.mobile-nav{display:none}
@media(min-width:1000px){.immersive .studio,.immersive .site-bar{width:min(94vw,1800px)}.immersive .workshop-hero{min-height:110px;height:14vh}.immersive #mat{max-height:62vh}.immersive{font-size:clamp(16px,1.24vw,28px)}}
@media(max-width:850px){.site-bar,.studio{width:calc(100% - 34px)}.workspace{grid-template-columns:minmax(0,1.5fr) minmax(235px,1fr);gap:10px}.drawer{padding:10px}.drawer .choices{gap:4px}.drawer .choices button{font-size:.78rem}.site-bar{gap:12px}.workshop-hero{min-height:157px}}
@media(max-width:650px){.site-bar,.studio{width:calc(100% - 20px)}.site-bar{min-height:53px;gap:4px}.site-bar nav{display:none}.brand{font-size:1rem}.brand img{width:29px;height:29px}.head-tools{gap:4px}.head-tools button{min-height:36px;padding:5px 8px;font-size:.81rem}.studio{padding:10px 0 calc(65px + env(safe-area-inset-bottom))}
  .workshop-hero{min-height:122px;margin-bottom:10px;border-radius:11px;background-position:67% center}.workshop-hero::before{background:linear-gradient(90deg,#fbf2e4f5,#fbf2e4e8 29%,#f8f0df44 62%,transparent 80%)}.hero-content{padding:11px 13px}.hero-content h1{font-size:clamp(1.35rem,5.6vw,2.14rem)}.hero-content p{font-size:.76rem;line-height:1.27;margin:5px 0 7px}#heroRelay{font-size:.77rem;min-height:30px;padding:5px 9px}
  .workspace{display:flex;flex-direction:column;align-items:stretch;gap:10px;scroll-margin-top:5px}.workbench,.drawer{border-radius:11px}.bench-head{padding:9px 12px}.bench-head h2{font-size:1.38rem}.label-plate>span{font-size:.73rem}.bench-head-tools{gap:3px}.bench-head-tools canvas{width:43px}#favToggle{width:35px;height:35px;min-height:35px}.drawer-title{padding:0 1px 7px}.drawer-title h2{font-size:1.16rem}
  #mat{min-height:0;aspect-ratio:1.40;margin:0 7px;border-radius:8px}.bench-feedback{padding:7px 9px 3px;gap:6px;min-height:27px}.tactile-note{padding:4px 9px 9px}.tactile-note p{font-size:.90rem}.bench-instruments{padding:6px 7px;gap:4px}.workbench .bench-instruments button{padding:6px 8px;min-height:36px;font-size:.8rem}
  .drawer-select select{font-size:1rem;min-height:41px}.drawer .choices button{font-size:.84rem;min-height:73px}.drawer .choices button img{height:46px}
  .mobile-nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;z-index:7;background:#fcfbf3f5;backdrop-filter:blur(8px);border-top:1px solid #c9cebc;padding:3px max(9px,env(safe-area-inset-left)) calc(3px + env(safe-area-inset-bottom));gap:5px}
  .mobile-nav button{width:32%;max-width:175px;min-height:41px;background:transparent;border:0;border-radius:6px;color:#355341;font-size:.9rem;font-weight:750}.mobile-nav button:first-child{background:#e9eee0}
  #libraryGrid{grid-template-columns:repeat(3,minmax(0,1fr));padding-inline:8px;gap:5px;max-height:56dvh}.library-controls,.library-meta{padding-inline:8px;gap:5px}.dialog-head{padding:10px 12px}.dialog-body{padding:13px}.studio-footer{margin-top:10px}.studio-footer details{min-width:130px}.relay-track{flex-wrap:wrap;gap:7px}.relay-covers{width:55px}.relay-covers img{width:28px;height:28px}.relay-track small{font-size:.70rem}
}
@media(max-width:355px){.site-bar,.studio{width:calc(100% - 12px)}.bench-instruments{gap:3px}.workbench .bench-instruments button{font-size:.76rem;padding:5px 6px}.brand{letter-spacing:-.06em}.mobile-nav button{min-height:39px}}
@media(orientation:landscape) and (max-height:550px){.workshop-hero{display:none}.site-bar{min-height:41px}.studio{padding-top:5px}.workspace{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(195px,1fr)}#mat{min-height:0;max-height:55dvh;aspect-ratio:auto;height:55dvh}.bench-head{padding:5px 12px}.mobile-nav{display:none}.drawer .choices button{min-height:54px}.drawer .choices button img{height:33px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}}
.stick-cursor.holding{background:#e9c779aa}
.bench-head{height:auto;min-height:62px}.bench-head .label-plate{display:block;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}.label-plate>span{font-family:inherit;line-height:1.2}.drawer .choices button span,.library-grid button span{overflow-wrap:anywhere}.bench-instruments button:active,.relay-track:active,.head-tools button:active{transform:translateY(1px)}
@media(max-width:650px){.bench-head{height:auto;min-height:55px}}

.hero-actions{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}
#heroPastry,#heroNature,#heroKeyboard{border:1px solid #968569;border-radius:7px;background:#fff8e5;color:#4e402b;font-size:.91rem;font-weight:750;padding:8px 12px;min-height:36px}
#heroPastry:hover,#heroNature:hover,#heroKeyboard:hover{background:#f6e5bf}
@media(max-width:650px){.hero-actions{gap:.35rem}.hero-actions button#heroPastry,.hero-actions button#heroNature,.hero-actions button#heroKeyboard{font-size:.81rem;padding:5px 9px;min-height:31px}}
