html,body{max-width:100%;overflow-x:clip}.studio,.studio .surface,.studio .plane{min-width:0;min-height:0}.surface>.bar{scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.surface>.bar::-webkit-scrollbar{display:none}@media (min-width:701px) and (max-width:1180px){.studio:not(.tray-collapsed){grid-template-columns:clamp(174px,20vw,216px) minmax(0,1fr)}.studio.tray-collapsed{grid-template-columns:0 minmax(0,1fr)}.studio .drawer{padding:12px 8px 18px;overflow-y:auto}.drawer .materials{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.drawer .material{min-width:0;padding:5px 3px}.drawer .material span{overflow-wrap:anywhere;font-size:11px;line-height:1.3}.surface>.bar{top:max(8px,env(safe-area-inset-top));gap:3px;max-width:calc(100% - 20px);min-height:43px;padding:4px}.surface>.bar .timeline,.surface>.bar .utilities{gap:2px}.surface>.bar button{flex-shrink:0}.bar .utilities .float .toolbar-float-label{display:none}.bar .utilities .float{width:36px;min-width:36px;padding:0}.surface .collab-roster{max-width:min(178px,30%);top:76px}.studio-layer-panel{max-width:min(240px,32%)}.fold-controls{max-height:min(53dvh,370px);overflow-y:auto}}@media (min-width:701px) and (max-width:1180px) and (orientation:portrait){.studio:not(.tray-collapsed){grid-template-columns:178px minmax(0,1fr)}.surface>.bar{max-width:calc(100% - 14px)}.drawer .material{height:auto;min-height:72px}.surface .collab-roster{top:72px}.studio .studio-public-actions{bottom:28px;right:12px}}@media (orientation:landscape) and (max-width:950px) and (max-height:600px){.studio,.studio.tray-collapsed{height:100dvh;max-height:100dvh}.studio:not(.tray-collapsed){grid-template-columns:clamp(142px,22vw,185px) minmax(0,1fr)}.studio.tray-collapsed{grid-template-columns:0 minmax(0,1fr)}.studio .surface{min-width:0;overflow:hidden}.studio .drawer{height:100%;max-height:100dvh;padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}.surface>.bar{top:max(5px,env(safe-area-inset-top));width:max-content;max-width:calc(100% - 12px);min-height:38px;left:50%;overflow-x:auto}.surface .collab-roster{max-width:135px;max-height:100px;top:49px}.surface .fold-controls{max-height:calc(100dvh - 65px);top:49px;overflow-y:auto}.studio .studio-public-actions{bottom:max(10px,env(safe-area-inset-bottom));right:10px}.studio .studio-public-actions .release-now{max-width:145px;min-height:34px;padding:6px 9px;font-size:10px}.hint{text-overflow:ellipsis;max-width:min(285px,100% - 95px);overflow:hidden}}@media (max-width:700px) and (orientation:portrait){.studio-rotate-card{width:min(380px,100vw - 36px);max-height:calc(100dvh - 40px);overflow-y:auto}}@media (max-width:700px){.contest-contact-fields{grid-template-columns:minmax(0,1fr)}.contest-river-bottom{max-width:calc(100vw - 26px)}.entry-browser,.entry-collection,.entry-rafts,.entry-preview{min-width:0}.ceremony-panel{max-width:calc(100vw - 24px);max-height:min(70dvh,600px);overflow:auto}.studio-layer-panel{max-width:calc(100vw - 22px)}}@media (prefers-reduced-motion:reduce){.studio,.surface>.bar{transition:none}}@media (min-width:701px) and (max-width:1180px){.shelf-workspace{padding:clamp(25px,4vw,45px) 24px}.shelf-projects{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.entry-browser{grid-template-columns:minmax(0,1.15fr) minmax(220px,.85fr);gap:18px}.entry-rafts{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}@media (max-width:700px){.shelf-workspace{width:100%;padding:24px 16px}.shelf-heading{gap:16px}.shelf-heading form{flex-wrap:wrap;min-width:0;display:flex}.shelf-heading form input{flex:150px;width:100%;min-width:0}.shelf-projects{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:16px}.project-meta{flex-wrap:wrap;min-width:0}.entry-collection{padding-inline:clamp(12px,4vw,20px)}.entry-preview{min-height:clamp(240px,60vw,340px)}.entry-raft-scene{max-width:100%}}.mobile-craft-dock{display:none}@media (max-width:700px) and (orientation:portrait){.studio,.studio.tray-collapsed{height:100dvh;position:relative;grid-template-rows:none!important;grid-template-columns:none!important;display:block!important}.studio .surface{place-items:center;width:100%;height:100%;display:grid;overflow:hidden}.studio .plane{aspect-ratio:20/11;flex-shrink:0;width:max(100cqw,min(165cqw,165cqh - 363px));max-width:none;height:auto;margin-top:-25px}.studio .surface>.bar{left:10px;right:10px;top:max(10px,env(safe-area-inset-top));border-radius:17px;justify-content:flex-start;gap:3px;width:auto;max-width:none;min-height:48px;padding:5px 6px;overflow-x:auto;transform:none}.studio .bar button{flex-shrink:0;min-width:36px;min-height:36px;padding:6px}.studio .bar button svg{width:19px;height:19px}.studio .bar .timeline,.studio .bar .utilities{border:0;gap:2px;margin:0;padding:0}.studio .bar .zoom{gap:0;padding:0 3px}.studio .bar .zoom output{min-width:33px;font-size:11px}.studio .bar .zoom button{width:28px;min-width:28px}.studio .bar .toolbar-label,.studio .bar .toolbar-status-text,.studio .share-trigger>span,.studio .bar .toolbar-float-label{display:none}.studio .bar .saved{min-width:22px;padding:0 4px}.studio .bar .saved>svg{width:18px;height:18px}.studio .bar .float{width:36px;min-width:36px}.studio .tray-reopen{display:none}.studio .hand-tools{gap:5px;top:72px;left:10px}.studio .hand-tools button{min-height:38px;padding:7px 9px;font-size:11px}.mobile-craft-dock{z-index:20;left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:#203f91;background:#fff9eff5;border:1px solid #c7d2ea;border-radius:20px;gap:5px;padding:7px;display:flex;position:absolute;box-shadow:0 5px 24px #16336524}.mobile-craft-dock button{cursor:pointer;min-width:53px;min-height:54px;color:inherit;touch-action:manipulation;background:0 0;border:0;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:5px;display:flex}.mobile-craft-dock button[aria-pressed=true]{color:#304d3c;background:#e3ebd5;box-shadow:inset 0 0 0 1px #b8c7a5}.mobile-craft-dock button span{white-space:nowrap;font-size:10px}.mobile-craft-dock button img{object-fit:contain;width:30px;height:24px}.mobile-craft-dock .mobile-material-button{color:#fff;background:#203f91;flex-shrink:0;min-width:54px}.mobile-craft-tools{scrollbar-width:none;overscroll-behavior:contain;gap:3px;display:flex;overflow-x:auto}.mobile-craft-tools::-webkit-scrollbar{display:none}.studio .hint{left:14px;right:14px;bottom:calc(max(10px,env(safe-area-inset-bottom)) + 80px);pointer-events:none;white-space:normal;width:auto;max-width:none;padding:7px 10px;font-size:11px}.studio .hint b{font-size:11px}.studio .hint span{line-height:1.4}.studio .drawer{z-index:35;width:100%;height:auto;max-height:58dvh;padding:16px 16px max(20px,env(safe-area-inset-bottom));border:1px solid #cbd4e4;border-radius:24px 24px 0 0;position:absolute;inset:auto 0 0;overflow-y:auto;box-shadow:0 -12px 40px #102d4e33}.studio .drawer .tray-heading{z-index:2;background:#fff9ed;align-items:center;padding:12px 0;position:sticky;top:-16px}.studio .drawer .tray-close{min-width:40px;min-height:40px;transform:rotate(-90deg)}.studio .drawer .materials{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.studio .drawer .material{height:auto;min-height:96px;padding:8px 5px}.studio .drawer .material span{font-size:12px}.studio .drawer .category-toggle{min-height:44px;font-size:14px}.studio .drawer .category-toggle small{font-size:11px}.studio .tray-backdrop{z-index:34;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#10223c50;border:0;display:block;position:absolute;inset:0}.studio .fold-controls,.studio .surface[data-fold-side] .fold-controls{border-radius:18px;padding:14px;font-size:12px;position:absolute;bottom:158px;overflow-y:auto;width:auto!important;max-width:none!important;max-height:34dvh!important;top:auto!important;left:10px!important;right:10px!important}.studio .fold-controls button{min-height:40px}.studio .fold-controls input[type=range]{height:32px}.studio .selection,.studio .surface[data-fold-side] .selection{width:min(235px,100% - 20px);max-height:30dvh;font-size:12px;bottom:158px;left:auto;right:10px;overflow:auto;top:auto!important}.studio .selection button{min-height:40px}.studio .collab-roster{font-size:10px;max-width:155px!important;top:116px!important;left:auto!important;right:10px!important}.studio .collab-roster-collapsed{top:116px;right:10px}.studio-layer-panel{max-height:calc(100dvh - 280px);top:115px;right:10px}.studio .studio-public-actions{max-width:calc(100% - 24px);bottom:80px;right:12px}.studio .studio-public-actions button{min-height:44px}}@media (pointer:coarse){.studio button{touch-action:manipulation}.studio .surface input[type=range]{min-height:32px}}@media (max-width:700px) and (orientation:portrait){.studio .desk-tools{display:none}.studio .desk-actions{gap:5px;top:72px;left:10px}.studio .desk-actions button{min-height:38px;padding:7px 9px;font-size:11px}.studio .desk-actions button[aria-label=มือเปล่า]{display:none}.studio .plane{aspect-ratio:20/11;height:auto!important;transform:none!important}.studio .drawer .materials{grid-template-columns:repeat(3,minmax(0,1fr))}.studio .drawer .polaroid-upload-card{min-height:64px}.mobile-craft-dock img{pointer-events:none}}.material-tap-hint{display:none}@media (pointer:coarse){.studio .drawer .material{cursor:pointer;background:#fffcf4;transition:background .15s,transform .15s;border:1px solid #d3dded!important;border-radius:16px!important;box-shadow:0 3px #d3dcec!important}.studio .drawer .material.picked{background:#eef3ff;border:2px solid #2346a4!important}.studio .drawer .material:active{background:#e8f0ff;transform:translateY(2px);box-shadow:0 1px #c2cfe8!important}.studio .drawer .material-tap-hint{color:#345aa3;justify-content:center;align-items:center;gap:3px;margin:5px 0 1px;font-size:10px;font-weight:600;line-height:1.4;display:flex}.studio .drawer .material-tap-hint svg{width:12px;height:12px}.studio .drawer .material span{font-weight:500}.studio .drawer .tray-count{color:#66758d;margin-bottom:14px;font-size:12px;line-height:1.6}}
