/* THE STUDIO'S OWN PARTS (2026-10-30; since 2026-10-31 the look every tool shares is /tool-shell.css,
   loaded first): the stage that shows what is being made - a website full width, a desktop and a
   phone drawn at their own size and scaled, a game behind its Play cover - the start of an empty
   one, a game's scene picker, and the publishing sheet. The tool's own colour is --tc. */

/* the stage */
.st-frame{position:relative;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 30px 60px -30px rgba(0,0,0,.6),0 0 0 1px var(--line2);transition:width .25s ease,height .25s ease}
.st-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#fff}
.st-frame[data-shape="site"]{width:100%;height:100%}
.st-frame[data-shape="site"][data-device="tablet"]{width:min(100%,820px)}
.st-frame[data-shape="site"][data-device="phone"]{width:min(100%,390px);height:min(100%,844px)}
.st-frame[data-shape="game"]{width:100%;height:100%;background:#000}
.st-frame[data-shape="game"] iframe{background:#000}
.st-frame[data-shape="desktop"]{width:min(100%,calc((100dvh - 190px) * 1.6));aspect-ratio:16/10;max-height:100%;border-radius:12px}
.st-frame[data-shape="phone"]{width:min(100%,390px);height:min(100%,844px);border-radius:44px;border:10px solid #10131d;box-shadow:0 30px 60px -30px rgba(0,0,0,.7),0 0 0 1px var(--line2)}
.st-frame[data-shape="phone"] iframe{border-radius:34px}
.st-frame iframe.st-edit{background:#fff}
.st-live{position:absolute;inset:0;border:0;background:#fff;opacity:.97}
.st-cover{position:absolute;inset:0;display:grid;place-items:center;background:rgba(5,8,18,.55);cursor:pointer;border:0;color:#fff;font:800 22px var(--display)}
.st-cover span{display:inline-flex;align-items:center;gap:12px;padding:16px 26px;border-radius:999px;background:var(--gold);color:var(--on-gold);box-shadow:0 18px 40px -16px rgba(0,0,0,.6)}
.st-empty{max-width:440px;text-align:center;color:var(--muted)}
.st-empty img{width:220px;max-width:70%;margin:0 auto 16px;display:block}
.st-empty b{display:block;color:var(--ink);font:800 22px var(--display);margin-bottom:6px}
.st-first{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:18px}
.st-empty .st-ideas{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:16px}
.st-empty .st-ideas button{border:1px dashed var(--line2);background:none;color:var(--muted);border-radius:999px;padding:6px 12px;font:600 13.5px var(--body);cursor:pointer}
.st-empty .st-ideas button:hover{color:var(--gold);border-color:var(--gold)}
@media(max-width:1000px){.st-frame[data-shape="desktop"]{width:100%}}

/* a variable, from the part pointed at */
.st-vars{display:grid;gap:6px;margin-top:8px}
.st-var{display:flex;flex-direction:column;gap:2px;text-align:left;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:var(--soft);color:var(--ink);cursor:pointer;font:inherit}
.st-var:hover{border-color:var(--gold)}
.st-var small{color:var(--muted)}

/* publishing (Weave) */
.st-plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:14px}
.st-plan{display:flex;flex-direction:column;gap:10px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--soft)}
.st-plan.best{border-color:var(--gold)}
.st-plan h3{font-size:22px}
.st-plan .price b{font:800 28px var(--display)}
.st-plan .price span{color:var(--muted);font-weight:600}
.st-plan p{color:var(--muted);font-size:14px}
.st-plan ul{list-style:none;margin:0;padding:0;display:grid;gap:4px;font-size:14px}
.st-plan li::before{content:"✓ ";color:var(--ok);font-weight:800}
.st-plan li.no{color:var(--faint)}.st-plan li.no::before{content:"– ";color:var(--faint)}
.st-plan .btn{margin-top:auto}
.st-live-site{display:grid;gap:12px}
.st-live-site .url{font:700 18px var(--body);overflow-wrap:anywhere}
.st-live-site .url a{color:var(--gold)}
.st-dns{width:100%;border-collapse:collapse;font-size:14px}
.st-dns td{padding:8px 10px;border-top:1px solid var(--line)}
.st-dns code{font:600 13px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow-wrap:anywhere}

/* a game's scenes: each one 2D or 3D, picked when it is added */
.st-pick{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:0;margin:0;padding:0;border:0}
.st-pick legend{padding:0;margin-bottom:6px;font-size:14px;font-weight:700;color:var(--muted)}
.st-pick button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:14px 16px;border-radius:14px;border:1px solid var(--line);background:var(--soft);color:var(--ink);text-align:left;font:500 14px/1.4 var(--body);cursor:pointer}
.st-pick button b{display:flex;align-items:center;gap:8px;font:800 20px var(--display)}
.st-pick button span{color:var(--muted)}
.st-pick button:hover{border-color:var(--line2)}
.st-pick button[aria-pressed="true"]{border-color:var(--gold);background:color-mix(in srgb,var(--gold) 10%,var(--soft));box-shadow:inset 0 0 0 1px var(--gold)}
.st-pick button[aria-pressed="true"] b{color:var(--gold)}
.st-pick .tiny{grid-column:1/-1;margin:0}
@media(max-width:560px){.st-pick{grid-template-columns:1fr}}

/* a desktop's wallpapers */
.dr-wall .dr-swatch{height:44px}
/* a desktop's apps, in the Apps panel: their own icon */
.dr-app span{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;color:#fff;margin-bottom:6px}
.dr-app span svg{width:18px;height:18px}

/* a new one, started by hand: the looks to start from (studio-kits.js LOOKS) */
.th-looks{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:0;padding:0;border:0;min-width:0}
.th-looks legend{padding:0;margin-bottom:6px;font-size:14px;font-weight:700;color:var(--muted)}
.th-looks button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px;border-radius:14px;border:1px solid var(--line);background:var(--soft);color:var(--ink);text-align:left;font:inherit;cursor:pointer}
.th-looks button b{font-size:14.5px}
.th-looks button small{color:var(--muted);font-size:12.5px;line-height:1.3}
.th-looks button[aria-pressed="true"]{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}
