.scratch-editor,.scratch-library{color:#14213d;background:#fff;border:1px solid #dce3ef;border-radius:22px;overflow:hidden}.scratch-library{padding:24px}.scratch-editor header,.scratch-library header{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.scratch-library header{justify-content:space-between}.scratch-library header>div,.scratch-projects article>div{display:flex;gap:10px;align-items:center}.scratch-library h2{font-size:26px;margin:0}.scratch-editor button,.scratch-import,.scratch-library button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:10px;border:1px solid #dce3ef;border-radius:12px;background:#fff;color:#14213d;cursor:pointer;font:inherit}.scratch-editor button:hover,.scratch-library button:hover{background:#fff4b5}.scratch-editor button:focus-visible,.scratch-import:focus-within,.scratch-library button:focus-visible{outline:3px solid #5878d7;outline-offset:2px}.scratch-editor header svg,.scratch-library svg{width:22px;height:22px;flex:none}.scratch-import{position:relative;overflow:hidden}.scratch-import input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}.scratch-projects{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px;margin-top:24px}.scratch-projects article{border:1px solid #dce3ef;border-radius:18px;padding:14px;background:#f7f9fc}.scratch-projects .scratch-project-open{width:100%;min-height:150px;display:flex;flex-direction:column;border:0;background:transparent}.scratch-project-open>svg{width:48px;height:48px;color:#5972c7}.scratch-project-open strong{font-size:20px;overflow-wrap:anywhere}.scratch-editor header{padding:10px 14px;background:#f6f8fc;border-bottom:1px solid #dce3ef;flex-wrap:nowrap}.scratch-editor header input{min-width:50px;flex:1 1;max-width:420px;font-family:inherit;font-size:18px;font-weight:600;color:#14213d;border:0;background:transparent;padding:10px}.scratch-editor header span{display:flex;align-items:center;gap:6px;margin-left:auto;white-space:nowrap;font-size:14px}.scratch-editor iframe{display:block;width:100%;height:max(650px,calc(100dvh - 200px));border:0;background:#fff}.scratch-editor:fullscreen{border:0;border-radius:0}.scratch-editor:fullscreen iframe{height:calc(100dvh - 68px)}.scratch-error{padding:12px 18px;background:#fff0ee;color:#9d2933;margin:0}.scratch-spin{animation:scratch-spin 1s linear infinite}@keyframes scratch-spin{to{transform:rotate(1turn)}}.scratch-editor button:disabled{opacity:.45;cursor:default}@media(max-width:640px){.scratch-library{padding:14px}.scratch-editor header{flex-wrap:wrap;gap:6px}.scratch-editor header input{max-width:none}.scratch-editor header span{font-size:12px}.scratch-editor iframe{height:75dvh;min-height:560px}}@media(prefers-reduced-motion:reduce){.scratch-spin{animation:none}}.trial-app:has(.scratch-editor){max-width:none;padding:0;min-height:100dvh}.scratch-library header>div{flex-wrap:wrap;max-width:100%}.scratch-home:has(.scratch-editor iframe:not([src*="readonly=1"]))>.trial-top .scratch-home-back{display:none}.trial-app:has(.scratch-editor)>.trial-top{height:64px;min-height:64px;margin:0;padding:8px 18px;box-sizing:border-box}.scratch-home .trial-top{gap:12px}.scratch-home .trial-top-right{min-width:0;gap:12px}.scratch-home-back{white-space:nowrap}.scratch-home-back svg{width:20px;height:20px;flex:none}.scratch-profile-name{display:flex;flex-direction:column;line-height:1.3;min-width:0}.scratch-profile-name small{font-size:11px;color:var(--muted)}.scratch-profile-name strong{font-size:13px;font-weight:650;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scratch-home .trial-profile>summary{width:44px;height:44px;cursor:pointer}.scratch-home .trial-profile{flex:none}@media(max-width:620px){.scratch-home .trial-brand{gap:8px}.scratch-home .trial-brand img{width:80px;height:auto}.scratch-home .trial-brand span{display:none}.scratch-home .trial-top-right{gap:8px}.scratch-home .scratch-home-back{padding:8px;min-height:44px;font-size:12px;gap:6px}.scratch-profile-name strong{display:none}.scratch-profile-name small{font-size:12px}.scratch-profile-name{margin-right:-4px}}@media(max-width:380px){.scratch-home .scratch-profile-name{display:none}}.trial-app:has(.scratch-editor) .scratch-attribution,.trial-app:has(.scratch-editor) .trial-kids-welcome{display:none}.trial-app .trial-activity-panel.trial-activity-editor{border:0;border-radius:0;padding:0;box-shadow:none;background:transparent;margin:0;max-width:none}.trial-app .trial-kids-space.is-active{max-width:none;padding:0;margin:0}.trial-app .scratch-editor{border:0;border-radius:0;box-shadow:none;height:calc(100dvh - 64px);display:flex;flex-direction:column;min-height:0}.trial-app .scratch-editor header{flex:none;flex-wrap:nowrap}.trial-app .scratch-editor iframe{flex:1 1;min-height:0;height:0}.trial-app .scratch-editor:fullscreen{height:100dvh}.trial-app .scratch-editor header input{max-width:none;text-align:center}.trial-upload-page{max-width:760px;margin:32px auto;padding:0 24px 48px}.trial-upload-page h1{font-size:28px;line-height:1.3}.trial-upload-page>p{line-height:1.6}.trial-upload-page>.trial-secondary{margin:8px 0 20px}.trial-upload-page select{display:block;max-width:100%;margin-top:8px;padding:10px;border:1px solid #ccd3df;border-radius:8px}.scratch-upload-control{position:relative;display:inline-flex;align-items:center;gap:10px;cursor:pointer}.scratch-upload-control input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.scratch-upload-control:focus-within{outline:3px solid #3655b8;outline-offset:4px}.scratch-revert{position:fixed;z-index:40;top:8px;right:88px;width:46px;height:46px;border:1px solid #dce3ef;border-radius:50%;background:#fff;color:#4357bc;display:grid;place-items:center;cursor:pointer;box-shadow:0 2px 8px #14213d18}.scratch-revert svg{width:23px;height:23px}.scratch-revert:focus-visible{outline:3px solid #5878d7;outline-offset:2px}.scratch-revert:disabled{opacity:.5;cursor:wait}.scratch-editor{position:relative;background:#4c97ff}.scratch-loading{position:absolute;inset:0;z-index:5;background:#4c97ff;color:#fff;display:grid;place-content:center;text-align:center;font:600 20px system-ui}.scratch-loading span{width:44px;height:44px;margin:0 auto 20px;border:5px solid #ffffff55;border-top-color:white;border-radius:50%;animation:scratch-spin 1s linear infinite}@media(prefers-reduced-motion:reduce){.scratch-loading span{animation:none}}