/* Authored Toybox grammar; retains every existing command and storage boundary. */
.toybox-garage{box-sizing:border-box;width:min(920px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:22px;border:3px solid #213f48;border-radius:24px;background:#fff1d4;color:#213f48;box-shadow:0 6px 0 #213f48,0 24px 65px #163b3c66;font-family:Tahoma,system-ui,sans-serif}
.toybox-garage .garage-head{top:-22px;background:#fff1d4;padding:8px 0 12px;border-bottom:1px dashed #85958a;z-index:2}
.toybox-garage .garage-head h2{font-size:clamp(20px,2.5vw,28px);font-weight:900}
.toybox-garage button,.toybox-garage select{font:inherit;border:2px solid #213f48;border-radius:12px;background:#fff8e8;color:#213f48;min-height:48px;padding:10px 14px;box-shadow:0 3px 0 #213f48;cursor:pointer}
.toybox-garage button:disabled{cursor:default;box-shadow:none;opacity:.6}
.toybox-garage button:not(:disabled):active{transform:translateY(2px);box-shadow:0 1px 0 #213f48}
.toybox-garage :focus-visible,.workshop-shortcuts :focus-visible{outline:3px solid #c34f32;outline-offset:4px}
.garage-account{display:grid;grid-template-columns:1fr auto;gap:4px 18px;align-items:center;padding:10px 0 12px}
.garage-account label{font-size:13px;flex-wrap:wrap}.garage-account strong{font-size:14px;margin:0;line-height:1.6}.garage-account .garage-live{grid-column:1/-1;margin:0;font-size:12px;line-height:1.6}
.toybox-garage .garage-layout{grid-template-columns:1.1fr 1fr;gap:18px}
.toybox-garage .garage-preview{border:2px solid #91aaa0;border-radius:18px;background:radial-gradient(ellipse at 50% 40%,#fff8e6,#e6edcf);padding:16px}
.toybox-garage .garage-preview svg{max-height:180px}
.toybox-garage .garage-preview h3{font-size:18px;line-height:1.5}
.toybox-garage .garage-preview p{min-height:26px}
.toybox-garage .garage-actions{margin:14px 0 4px;flex-wrap:wrap}.toybox-garage .garage-actions button{min-width:100px}
.toybox-garage .garage-primary{background:#ffdc68;color:#213f48;font-weight:bold}
.toybox-garage .garage-catalog{gap:12px;align-content:start}
.toybox-garage .garage-catalog button{position:relative;padding:14px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:139px;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.toybox-garage .garage-catalog svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;background:#f1d6a4;border-radius:8px;padding:4px;box-sizing:border-box}
.toybox-garage .garage-catalog button:nth-child(2) svg{background:#ffe18a}.toybox-garage .garage-catalog button:nth-child(3) svg{background:#bde1e8}.toybox-garage .garage-catalog button:nth-child(4) svg{background:#efbdc0}
.toybox-garage .garage-catalog small{margin:0;font-size:12px}
.toybox-garage .garage-catalog [aria-pressed=true]{background:#217c83;color:#fff7e5;border-color:#213f48}
.toybox-garage .garage-confirm{border:2px solid #213f48;background:#ffe5a5;margin-top:16px}.toybox-garage .garage-confirm button{margin:4px 8px 4px 0}
.toybox-garage details{margin-top:14px;padding-top:6px;border-top:1px dashed #85958a}
.toybox-garage summary{color:#213f48;font-weight:bold;cursor:pointer;list-style-position:inside;min-height:48px;box-sizing:border-box}
.toybox-garage textarea{box-sizing:border-box;max-width:100%;background:#fffaf0;border:2px solid #93aaa0;white-space:pre-wrap;overflow-wrap:anywhere}
.toybox-garage details>button,.toybox-garage details section>button{margin:8px 8px 4px 0}
.toybox-garage>small{font-size:12px;color:#486064}
.workshop-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.workshop-shortcuts button{margin:0!important;background:#f8e7c4!important;color:#213f48!important;border:2px solid #213f48!important;font-size:12px;padding:8px;line-height:1.6;white-space:normal}
.study-trip{border:3px solid #213f48;background:#fff1d4;box-shadow:0 6px 0 #213f48}.study-choices a{border:2px solid #213f48;box-shadow:0 3px 0 #213f48;background:#e1ead1}.study-choices .pit-choice{background:#ffe1b8;border-color:#213f48}
.study-trip>button{border:2px solid #213f48;background:#fff8e8;box-shadow:0 3px 0 #213f48;color:#213f48}.encore-stats summary{color:#213f48}.encore-card{border:2px solid #213f48;background:#fff6e0}.encore-card button{border:2px solid #213f48;color:#213f48}
@media(max-width:600px){.toybox-garage{padding:14px}.toybox-garage .garage-head{top:-14px;gap:8px}.toybox-garage .garage-head h2{font-size:18px}.toybox-garage .garage-head button{padding:8px;font-size:12px}.garage-account{grid-template-columns:1fr}.garage-account strong{font-size:13px}.toybox-garage .garage-layout{grid-template-columns:1fr;gap:12px}.toybox-garage .garage-preview{padding:10px}.toybox-garage .garage-preview svg{max-height:110px}.toybox-garage .garage-preview h3{font-size:16px}.toybox-garage .garage-preview p{margin:4px 0}.toybox-garage .garage-catalog button{min-height:115px;padding:10px;font-size:13px}.toybox-garage .garage-actions{margin:8px 0 2px}.workshop-shortcuts{grid-template-columns:1fr}.toybox-garage .garage-confirm button{width:100%;margin-right:0}}
@media(prefers-reduced-motion:reduce){.toybox-garage button:active{transform:none}.encore-card{animation:none}}
