/* PixelDeck V67 – Creator Lab, collaboration and creator platform UI */
.v67-kicker{display:block;color:var(--accent,#9be64d);font:800 .7rem/1.2 ui-monospace,monospace;letter-spacing:.15em;text-transform:uppercase;margin-bottom:.35rem}
.v67-shell{display:grid;gap:1rem;max-width:1480px;margin:0 auto}
.v67-hero{position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;padding:clamp(1.1rem,3vw,2rem);background:linear-gradient(135deg,color-mix(in srgb,var(--panel,#0d1d13) 88%,var(--accent,#9be64d)),var(--panel,#0d1d13));border:2px solid color-mix(in srgb,var(--accent,#9be64d) 48%,transparent);box-shadow:8px 8px 0 color-mix(in srgb,var(--accent,#9be64d) 12%,transparent)}
.v67-hero:after{content:"";position:absolute;inset:auto -20px -35px auto;width:180px;height:180px;background:repeating-conic-gradient(from 45deg,var(--accent,#9be64d) 0 25%,transparent 0 50%) 0/28px 28px;opacity:.08;transform:rotate(12deg);pointer-events:none}
.v67-hero>*{position:relative;z-index:1}
.v67-hero h1{font-size:clamp(1.55rem,4vw,3rem);margin:.15rem 0}.v67-hero p{max-width:70ch;margin:.35rem 0;color:var(--muted,#b7c9bd)}
.v67-tabbar{display:flex;gap:.55rem;flex-wrap:wrap}.v67-tabbar button{min-height:42px}.v67-tabbar button.active{background:var(--accent,#9be64d);color:#07120b;border-color:var(--accent,#9be64d)}
.v74-editor-entry{border-color:color-mix(in srgb,var(--accent,#9be64d) 72%,#fff)!important;background:linear-gradient(135deg,var(--accent,#9be64d),color-mix(in srgb,var(--accent2,#5df7d4) 72%,#fff))!important;color:#07120b!important;box-shadow:4px 4px 0 #0008!important;font-weight:950;white-space:nowrap}.v74-editor-entry:hover{translate:0 -2px;box-shadow:4px 6px 0 #0008!important}
.v67-lab-grid{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:1rem}.v67-controls{align-self:start;position:sticky;top:84px}.v67-control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.v67-control-grid label{min-width:0}.v67-control-grid .wide{grid-column:1/-1}
.v67-dropzone{display:grid;place-items:center;min-height:140px;padding:1rem;border:2px dashed color-mix(in srgb,var(--accent,#9be64d) 55%,transparent);background:color-mix(in srgb,var(--accent,#9be64d) 5%,transparent);text-align:center;cursor:pointer}.v67-dropzone:hover,.v67-dropzone.drag{background:color-mix(in srgb,var(--accent,#9be64d) 12%,transparent)}.v67-dropzone input{display:none}.v67-dropzone b{display:block;margin:.35rem}
.v67-stage{display:grid;place-items:center;min-height:420px;overflow:auto;background-color:#0b1010;background-image:linear-gradient(45deg,#151d1b 25%,transparent 25%),linear-gradient(-45deg,#151d1b 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#151d1b 75%),linear-gradient(-45deg,transparent 75%,#151d1b 75%);background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0}.v67-stage canvas{max-width:100%;max-height:70vh;image-rendering:pixelated;border:1px solid color-mix(in srgb,var(--accent,#9be64d) 35%,transparent);box-shadow:0 18px 60px #0008;touch-action:none}
.v67-timeline{display:flex;gap:.45rem;overflow-x:auto;padding:.65rem 0}.v67-frame-thumb{flex:0 0 70px;width:70px;height:70px;padding:3px;background:#09120e;border:2px solid transparent;image-rendering:pixelated}.v67-frame-thumb.active{border-color:var(--accent,#9be64d)}.v67-frame-thumb canvas{width:100%;height:100%;image-rendering:pixelated}
.v67-export-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem}.v67-export-row button{min-height:44px}
.v67-file-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;margin:.7rem 0}.v67-file-meta span{padding:.55rem;background:#0003;border:1px solid #ffffff12;font-size:.78rem;overflow-wrap:anywhere}
.v67-palette{display:flex;gap:.35rem;flex-wrap:wrap}.v67-palette button{width:32px;height:32px;padding:0;border:2px solid #fff3}.v67-palette button.active{outline:3px solid var(--accent,#9be64d);outline-offset:2px}
.v67-map-wrap{display:grid;grid-template-columns:minmax(180px,300px) minmax(0,1fr);gap:1rem}.v67-map-wrap .v67-stage{min-height:360px}.v67-map-wrap canvas{image-rendering:pixelated;max-width:100%;touch-action:none}
.v67-event-card{display:none;margin-top:1rem;padding:1rem;border:2px solid color-mix(in srgb,var(--accent,#9be64d) 55%,transparent);background:linear-gradient(120deg,color-mix(in srgb,var(--accent,#9be64d) 13%,var(--panel,#0d1d13)),var(--panel,#0d1d13))}.v67-event-card.ready{display:block}.v67-event-head{display:flex;align-items:center;justify-content:space-between;gap:1rem}.v67-event-head strong{font-size:1.1rem}.v67-event-icon{font-size:2rem}.v67-quest-row{display:grid;grid-template-columns:minmax(0,1fr) 90px 44px;gap:.65rem;align-items:center;margin-top:.65rem}.v67-progress{height:9px;background:#0006;border:1px solid #ffffff1c}.v67-progress i{display:block;height:100%;background:var(--accent,#9be64d)}
.v67-home-recommendations{margin-top:1rem}.v67-empty{padding:2rem;text-align:center;border:1px dashed #ffffff2a;color:var(--muted,#aebdb3)}
.v67-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}.v67-metric{padding:1rem;border:1px solid #ffffff18;background:linear-gradient(145deg,#ffffff08,transparent)}.v67-metric b{display:block;font-size:clamp(1.5rem,4vw,2.4rem);color:var(--accent,#9be64d)}.v67-metric span{font-size:.8rem;color:var(--muted,#aebdb3)}
.v67-chart{display:flex;align-items:flex-end;gap:3px;height:230px;padding:1rem 0;border-bottom:1px solid #ffffff24}.v67-chart-day{display:flex;align-items:flex-end;gap:1px;flex:1;height:100%;min-width:3px}.v67-chart-day i{display:block;flex:1;min-width:2px;background:var(--accent,#9be64d);opacity:.9}.v67-chart-day i+ i{background:#5df7d4;opacity:.65}
.v67-table{width:100%;border-collapse:collapse}.v67-table th,.v67-table td{text-align:left;padding:.7rem;border-bottom:1px solid #ffffff14}.v67-table th{color:var(--muted,#aebdb3);font-size:.72rem;text-transform:uppercase;letter-spacing:.08em}
.v67-split{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.4fr);gap:1rem}.v67-form{display:grid;gap:.7rem}.v67-card-list{display:grid;gap:.7rem}.v67-community-card{padding:1rem;border:1px solid #ffffff18;background:#ffffff05}.v67-community-card header{display:flex;justify-content:space-between;align-items:flex-start;gap:.8rem}.v67-community-card h3{margin:.15rem 0}.v67-chips{display:flex;flex-wrap:wrap;gap:.35rem;margin:.6rem 0}.v67-chip{display:inline-flex;padding:.25rem .45rem;background:color-mix(in srgb,var(--accent,#9be64d) 13%,transparent);border:1px solid color-mix(in srgb,var(--accent,#9be64d) 30%,transparent);font-size:.72rem}.v67-card-actions{display:flex;gap:.45rem;flex-wrap:wrap;margin-top:.75rem}
.v67-security-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.v67-status{display:inline-flex;gap:.35rem;align-items:center;padding:.3rem .5rem;border:1px solid #ffffff1c}.v67-status.ok{color:#9be64d}.v67-status.warn{color:#ffd84d}.v67-device{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:.7rem;align-items:center;padding:.75rem 0;border-bottom:1px solid #ffffff15}.v67-device-icon{display:grid;place-items:center;width:38px;height:38px;background:#ffffff0a;border:1px solid #ffffff15}.v67-device small{display:block;color:var(--muted,#aebdb3)}
.v67-detail-module{margin-top:1rem}.v67-detail-module:empty{display:none}.v67-version{padding:.7rem 0;border-top:1px solid #ffffff16}.v67-version-head{display:flex;justify-content:space-between;gap:.7rem}.v67-hash{display:block;padding:.65rem;background:#0005;border:1px solid #ffffff15;font:11px/1.5 ui-monospace,monospace;word-break:break-all}.v67-similar-panel{margin-top:1rem}
.v67-draft-toast{position:fixed;left:max(1rem,env(safe-area-inset-left));bottom:calc(5.3rem + env(safe-area-inset-bottom));z-index:1200;max-width:360px;padding:1rem;background:var(--panel,#0d1d13);border:2px solid var(--accent,#9be64d);box-shadow:8px 8px 0 #0008}.v67-draft-toast .v67-card-actions{margin-bottom:0}
.v67-toast-note{font-size:.76rem;color:var(--muted,#aebdb3)}
.profile-frame-winter_aurora{box-shadow:0 0 0 3px #dff7ff,0 0 24px #78dfff}.profile-frame-newyear_firework{box-shadow:0 0 0 3px #ffd84d,0 0 25px #ff70c8}.profile-frame-easter_bloom{box-shadow:0 0 0 3px #ff9fda,0 0 24px #9be64d}.profile-frame-halloween_crypt{box-shadow:0 0 0 3px #ff8b39,0 0 24px #9b5cff}.profile-frame-spring_bloom{box-shadow:0 0 0 3px #ff9fcf,0 0 24px #9be64d}.profile-frame-summer_wave{box-shadow:0 0 0 3px #5df7d4,0 0 24px #ffd84d}.profile-frame-autumn_maple{box-shadow:0 0 0 3px #ff8b39,0 0 24px #d2b15a}
.cosmetic-frame-winter_aurora{border-color:#dff7ff;box-shadow:0 0 24px #78dfff}.cosmetic-frame-newyear_firework{border-color:#ffd84d;box-shadow:0 0 25px #ff70c8}.cosmetic-frame-easter_bloom{border-color:#ff9fda;box-shadow:0 0 24px #9be64d}.cosmetic-frame-halloween_crypt{border-color:#ff8b39;box-shadow:0 0 24px #9b5cff}.cosmetic-frame-spring_bloom{border-color:#ff9fcf;box-shadow:0 0 24px #9be64d}.cosmetic-frame-summer_wave{border-color:#5df7d4;box-shadow:0 0 24px #ffd84d}.cosmetic-frame-autumn_maple{border-color:#ff8b39;box-shadow:0 0 24px #d2b15a}

@media(max-width:980px){.v67-lab-grid,.v67-map-wrap,.v67-split{grid-template-columns:1fr}.v67-controls{position:static}.v67-stage{min-height:320px}.v67-security-grid{grid-template-columns:1fr}.v67-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.v67-hero{align-items:flex-start;flex-direction:column}.v67-hero .v67-tabbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.v67-hero .v67-tabbar button{width:100%;min-width:0;padding-inline:.5rem}.v67-lab-grid{gap:.7rem}.v67-control-grid{grid-template-columns:1fr 1fr}.v67-export-row{grid-template-columns:1fr 1fr}.v67-file-meta{grid-template-columns:1fr}.v67-stage{min-height:260px;padding:.4rem}.v67-stage canvas{max-height:58vh}.v67-metric-grid{gap:.5rem}.v67-metric{padding:.75rem}.v67-table{display:block;overflow-x:auto;white-space:nowrap}.v67-quest-row{grid-template-columns:minmax(0,1fr) 70px 34px}.v67-device{grid-template-columns:36px minmax(0,1fr)}.v67-device button{grid-column:2}.v67-lab-nav{display:none}.v67-home-recommendations{margin-inline:-.25rem}}
@media(prefers-reduced-motion:reduce){.v67-hero:after{display:none}}

/* PixelDeck V68 — professional editor, reliable navigation and uniform media */
html,body{overflow-x:clip}
.topbar{z-index:2200!important;isolation:isolate;overflow:visible!important}
#nav.nav,.nav-more{overflow:visible!important}
.nav-more-menu{z-index:2300!important;isolation:isolate;max-height:min(72vh,620px);overflow-y:auto;overscroll-behavior:contain}
.modal{z-index:6000!important}.theme-panel{z-index:5000!important}.toast{z-index:7000!important}

#view-editor{max-width:1740px;margin:0 auto}
.editor-pro-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:16px;padding:clamp(18px,3vw,30px);border:1px solid color-mix(in srgb,var(--theme-accent,#9be64d) 45%,transparent);border-radius:16px;background:linear-gradient(135deg,color-mix(in srgb,var(--theme-panel,#102d1a) 94%,#10192c),color-mix(in srgb,var(--theme-bg,#06110a) 95%,#081f28));box-shadow:0 22px 70px #0006,inset 0 1px #ffffff10;overflow:hidden;position:relative}
.editor-pro-header:after{content:"";position:absolute;right:-34px;bottom:-46px;width:210px;height:150px;opacity:.09;background:repeating-conic-gradient(from 45deg,var(--theme-accent,#9be64d) 0 25%,transparent 0 50%) 0/24px 24px;transform:rotate(-8deg);pointer-events:none}
.editor-pro-header>div{position:relative;z-index:1}.editor-pro-kicker{display:block;color:var(--theme-accent,#9be64d);font-size:10px;font-weight:950;letter-spacing:.18em}.editor-pro-header h1{margin:6px 0;font-size:clamp(25px,3.6vw,46px);line-height:1}.editor-pro-header p{max-width:800px;margin:0;color:var(--muted,#b7c9bd)}
.editor-pro-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.editor-document-status{padding:10px 12px;border:1px solid #ffffff18;border-radius:8px;color:var(--theme-accent,#9be64d);background:#0004;font-size:11px;font-weight:900}.editor-project-load{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}

.editor-layout{grid-template-columns:290px minmax(460px,1fr) 350px;gap:14px;align-items:start}.editor-layout>.panel{border-width:1px!important;border-radius:14px!important;box-shadow:0 18px 48px #0005!important}.editor-sidebar,.upload-panel{top:92px;max-height:calc(100dvh - 110px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.editor-sidebar{padding:15px}.editor-sidebar-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.editor-sidebar-heading h2{margin:0}.editor-sidebar .tool-group{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.editor-primary-tools .tool{min-height:43px;padding:8px 7px;border:1px solid #ffffff12;border-radius:8px;background:#ffffff05;color:var(--text,#efffe1);box-shadow:none;text-align:left;font-size:11px}.editor-primary-tools .tool:hover{border-color:color-mix(in srgb,var(--theme-accent,#9be64d) 45%,transparent);background:color-mix(in srgb,var(--theme-accent,#9be64d) 8%,transparent)}.editor-primary-tools .tool.active{border-color:var(--theme-accent,#9be64d);color:#07120b;background:var(--theme-accent,#9be64d);box-shadow:3px 3px 0 #0007}
.editor-color-grid{display:grid;grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr);gap:7px;align-items:end;margin:12px 0}.editor-color-grid label{min-width:0;font-size:10px}.editor-color-grid input[type=color]{width:100%!important;height:42px!important;border-width:2px!important;border-radius:7px}.editor-color-swap{display:grid;place-items:center;width:36px;height:42px;padding:0;border:1px solid #ffffff20;border-radius:7px;color:var(--text,#fff);background:#ffffff08}
.editor-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;align-items:end}.editor-option-grid label{min-width:0}.editor-compact-check{display:flex!important;min-height:42px;padding:8px!important;border:1px solid #ffffff12;border-radius:7px;background:#ffffff04}.editor-selection-actions{padding:8px;border:1px dashed color-mix(in srgb,var(--theme-accent,#9be64d) 28%,transparent);border-radius:9px;background:#0002}
.editor-reference-panel{margin:12px 0;padding:10px;border:1px solid #ffffff16;border-radius:9px;background:#0002}.editor-reference-panel summary{cursor:pointer;font-weight:900;color:var(--theme-accent,#9be64d)}.editor-reference-panel[open] summary{margin-bottom:10px}.editor-palette-presets{margin-top:12px;padding-top:10px;border-top:1px solid #ffffff12}.editor-palette-presets h3{font-size:12px}.editor-palette-presets #palettePresetButtons{display:grid;grid-template-columns:1fr;gap:6px}.editor-palette-presets .palette-preset-btn{display:flex;align-items:center;gap:8px;min-height:38px;border:1px solid #ffffff12;border-radius:7px;background:#ffffff04;color:inherit;box-shadow:none}

.canvas-panel{min-width:0;padding:12px!important}.canvas-panel>.panel-head{padding:4px 2px 12px!important}.editor-canvas-actions{display:flex;align-items:center;gap:9px;color:var(--muted,#b7c9bd);font-size:10px}.editor-canvas-viewport{position:relative;display:block;width:100%;height:clamp(440px,68dvh,790px);overflow:auto;overscroll-behavior:contain;padding:28px;background-color:#080e0b;background-image:linear-gradient(45deg,#111b16 25%,transparent 25%),linear-gradient(-45deg,#111b16 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#111b16 75%),linear-gradient(-45deg,transparent 75%,#111b16 75%);background-size:22px 22px;background-position:0 0,0 11px,11px -11px,-11px 0;box-shadow:inset 0 0 0 1px #ffffff0c,inset 0 18px 80px #0007;border-radius:10px;scrollbar-width:thin}
.editor-canvas-stage{--grid-cell:16px;position:relative;isolation:isolate;flex:0 0 auto;margin:auto;background-color:transparent;box-shadow:0 24px 70px #000b,0 0 0 2px color-mix(in srgb,var(--theme-accent,#9be64d) 38%,transparent);background-image:linear-gradient(45deg,#d9e0dc 25%,transparent 25%),linear-gradient(-45deg,#d9e0dc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d9e0dc 75%),linear-gradient(-45deg,transparent 75%,#d9e0dc 75%);background-color:#aab3ae;background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}
.editor-canvas-stage:after{content:"";position:absolute;inset:0;z-index:4;pointer-events:none;opacity:0;background-image:linear-gradient(to right,rgba(4,16,9,.28) 1px,transparent 1px),linear-gradient(to bottom,rgba(4,16,9,.28) 1px,transparent 1px);background-size:var(--grid-cell) var(--grid-cell)}.editor-canvas-stage.grid-on:after{opacity:1}
#pixelCanvas{position:absolute!important;inset:0;z-index:2;display:block;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;margin:0!important;border:0!important;box-shadow:none!important;image-rendering:pixelated;image-rendering:crisp-edges;touch-action:none;background:transparent;cursor:crosshair}#pixelCanvas[data-tool=pan]{cursor:grab}#pixelCanvas[data-tool=pan]:active{cursor:grabbing}#pixelCanvas[data-tool=picker]{cursor:copy}
.editor-reference-image{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:contain;image-rendering:pixelated;pointer-events:none}.editor-selection-overlay{position:absolute;z-index:5;pointer-events:none;border:2px dashed #fff;background:#5df7d41a;box-shadow:0 0 0 1px #000,0 0 16px #5df7d466;animation:editorMarquee .65s steps(2) infinite}.editor-selection-overlay.hidden{display:none}@keyframes editorMarquee{50%{border-color:#07120b}}
.editor-statusbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 4px 0;color:var(--muted,#b7c9bd);font-size:10px}.editor-statusbar>:first-child{color:var(--theme-accent,#9be64d);font-weight:900}.editor-shortcut-grid{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 12px;align-items:center}.editor-shortcut-grid kbd{padding:6px 8px;border:1px solid #ffffff25;border-bottom-width:3px;border-radius:6px;background:#0005;color:var(--theme-accent,#9be64d);font:900 11px ui-monospace,monospace}.editor-shortcuts-modal .modal-card{max-width:520px}

.artwork-image-wrap{aspect-ratio:1;overflow:hidden}.artwork-image{display:block;width:100%!important;height:100%!important;aspect-ratio:1;object-fit:contain!important}.artwork-grid>.artwork-card,.artwork-grid>article{min-width:0}

@media(max-width:1180px){.editor-layout{grid-template-columns:280px minmax(0,1fr)}.upload-panel{grid-column:1/-1;position:static;max-height:none;overflow:visible}.editor-canvas-viewport{height:min(70dvh,720px)}}
@media(max-width:900px){.editor-pro-header{align-items:flex-start;flex-direction:column}.editor-pro-header-actions{justify-content:flex-start}.editor-layout{grid-template-columns:1fr}.editor-sidebar,.upload-panel{position:static;max-height:none;overflow:visible}.canvas-panel{grid-row:1}.editor-sidebar{grid-row:2}.upload-panel{grid-row:3}.editor-canvas-viewport{height:min(64dvh,640px);padding:18px}.editor-sidebar .tool-group{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.editor-pro-header{padding:16px;border-radius:11px}.editor-pro-header h1{font-size:27px}.editor-pro-header-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.editor-document-status{grid-column:1/-1;text-align:center}.editor-canvas-viewport{height:56dvh;min-height:360px;padding:12px}.editor-primary-tools .tool{font-size:10px;text-align:center}.editor-sidebar .tool-group{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-option-grid{grid-template-columns:1fr}.editor-statusbar{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.editor-selection-overlay{animation:none}}

/* V69 — screen-filling studio workspace */
.editor-fullscreen-btn{white-space:nowrap}
body.editor-fallback-fullscreen{overflow:hidden!important}
body.editor-fallback-fullscreen>.topbar,body.editor-fallback-fullscreen>.mobile-bottom-nav,body.editor-fallback-fullscreen>.site-footer{visibility:hidden!important;pointer-events:none!important}
#view-editor.editor-app-fullscreen{position:fixed!important;inset:0;z-index:8000;display:flex!important;flex-direction:column;width:100vw!important;height:100dvh!important;max-width:none!important;margin:0!important;padding:8px!important;background:var(--theme-bg,#06111d);color:var(--text,#efffe1);overflow:hidden}

@media(min-width:1181px){
  body.editor-workspace{height:100dvh;overflow:hidden}
  body.editor-workspace main{width:100%;max-width:none!important;height:calc(100dvh - 72px);margin:0!important;padding:8px 10px 10px!important;overflow:hidden}
  body.editor-workspace #view-editor.visible{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;max-width:none;margin:0}
  body.editor-workspace .editor-pro-header{flex:0 0 auto;align-items:center;min-height:64px;margin-bottom:8px;padding:8px 12px;border-radius:10px}
  body.editor-workspace .editor-pro-kicker{display:none}
  body.editor-workspace .editor-pro-header h1{margin:0 0 3px;font-size:clamp(20px,1.7vw,29px)}
  body.editor-workspace .editor-pro-header p{max-width:min(48vw,760px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
  body.editor-workspace .editor-pro-header-actions{flex-wrap:nowrap}
  body.editor-workspace .editor-pro-header-actions button,
  body.editor-workspace .editor-project-load,
  body.editor-workspace .editor-document-status{min-height:40px;padding:8px 10px;font-size:10px}
  body.editor-workspace .editor-layout{flex:1;grid-template-columns:290px minmax(0,1fr) 350px;width:100%;height:auto;min-height:0;gap:10px;align-items:stretch}
  body.editor-workspace .editor-layout>.panel{height:100%;min-height:0;border-radius:10px!important}
  body.editor-workspace .editor-sidebar,
  body.editor-workspace .upload-panel{position:static;top:auto;max-height:none;overflow-x:hidden;overflow-y:auto}
  body.editor-workspace .canvas-panel{display:flex;flex-direction:column;min-height:0;overflow:hidden}
  body.editor-workspace .canvas-panel>.panel-head{flex:0 0 auto;padding-bottom:8px!important}
  body.editor-workspace .canvas-panel>.panel-head h2{margin:0;font-size:18px}
  body.editor-workspace .canvas-panel>.panel-head .hint{max-width:64ch;margin:4px 0 0;font-size:9px}
  body.editor-workspace .editor-canvas-viewport{flex:1;width:100%;height:auto;min-height:0;padding:18px}
  body.editor-workspace .editor-statusbar{flex:0 0 auto}
}

#view-editor:fullscreen{display:flex!important;flex-direction:column;width:100vw;height:100dvh;max-width:none;margin:0;padding:8px;background:var(--theme-bg,#06111d);color:var(--text,#efffe1);overflow:hidden}
#view-editor:fullscreen .editor-pro-header{flex:0 0 auto;align-items:center;min-height:62px;margin-bottom:8px;padding:7px 11px;border-radius:9px}
#view-editor:fullscreen .editor-pro-kicker{display:none}
#view-editor:fullscreen .editor-pro-header h1{margin:0 0 3px;font-size:clamp(20px,1.65vw,28px)}
#view-editor:fullscreen .editor-pro-header p{max-width:min(48vw,760px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}
#view-editor:fullscreen .editor-pro-header-actions{flex-wrap:nowrap}
#view-editor:fullscreen .editor-pro-header-actions button,
#view-editor:fullscreen .editor-project-load,
#view-editor:fullscreen .editor-document-status{min-height:38px;padding:7px 9px;font-size:10px}
#view-editor:fullscreen .editor-layout{display:grid;flex:1;width:100%;height:auto;min-height:0;gap:9px;align-items:stretch}
#view-editor:fullscreen .editor-layout>.panel{height:100%;min-height:0;border-radius:9px!important}
#view-editor:fullscreen .editor-sidebar,
#view-editor:fullscreen .upload-panel{position:static;top:auto;max-height:none;overflow-x:hidden;overflow-y:auto}
#view-editor:fullscreen .canvas-panel{display:flex;flex-direction:column;min-height:0;overflow:hidden}
#view-editor:fullscreen .canvas-panel>.panel-head{flex:0 0 auto;padding-bottom:7px!important}
#view-editor:fullscreen .canvas-panel>.panel-head h2{margin:0;font-size:18px}
#view-editor:fullscreen .canvas-panel>.panel-head .hint{margin:3px 0 0;font-size:9px}
#view-editor:fullscreen .editor-canvas-viewport{flex:1;width:100%;height:auto;min-height:0;padding:16px}
#view-editor:fullscreen .editor-statusbar{flex:0 0 auto}

@media(min-width:1181px){#view-editor:fullscreen .editor-layout{grid-template-columns:290px minmax(0,1fr) 350px}}
@media(max-width:1180px){#view-editor:fullscreen,#view-editor.editor-app-fullscreen{overflow:auto}#view-editor:fullscreen .editor-pro-header-actions,#view-editor.editor-app-fullscreen .editor-pro-header-actions{flex-wrap:wrap}#view-editor:fullscreen .editor-layout,#view-editor.editor-app-fullscreen .editor-layout{flex:0 0 auto;height:auto;min-height:calc(100dvh - 90px)}#view-editor:fullscreen .editor-layout>.panel,#view-editor.editor-app-fullscreen .editor-layout>.panel{height:auto}#view-editor:fullscreen .editor-canvas-viewport,#view-editor.editor-app-fullscreen .editor-canvas-viewport{height:min(68dvh,720px);min-height:420px}}
@media(max-width:600px){#view-editor:fullscreen{padding:5px}#view-editor:fullscreen .editor-pro-header{align-items:flex-start}#view-editor:fullscreen .editor-pro-header p{display:none}#view-editor:fullscreen .editor-pro-header-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}#view-editor:fullscreen .editor-document-status{grid-column:1/-1;text-align:center}#view-editor:fullscreen .editor-canvas-viewport{height:58dvh;min-height:340px}}

/* V70 — layers, animation, custom canvases and focused workspace */
#view-editor{--editor-tools-width:300px;--editor-publish-width:370px}
.editor-layout-toggle{display:inline-flex!important}.editor-canvas-size-panel,.editor-palette-lab,.editor-layers-panel,.editor-project-library,.editor-animation-panel,.editor-tile-preview{margin-top:12px;padding:11px;border:1px solid color-mix(in srgb,var(--theme-accent,#9be64d) 24%,#ffffff12);border-radius:10px;background:linear-gradient(145deg,#ffffff06,#0002)}
.editor-canvas-size-panel h3,.editor-layers-panel h2{margin:0 0 9px;font-size:13px}.editor-canvas-size-panel>.wide{margin-top:8px}.editor-palette-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:10px;color:var(--muted,#b7c9bd)}.editor-palette-lab .tool-group{grid-template-columns:repeat(2,minmax(0,1fr))}
.editor-layers-panel>header,.editor-animation-panel>header{display:flex;align-items:center;justify-content:space-between;gap:10px}.editor-layers-panel>header>div:first-child{min-width:0}.editor-layers-panel small,.editor-animation-panel header span{display:block;color:var(--muted,#b7c9bd);font-size:9px}.editor-layer-actions,.editor-animation-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.editor-layer-actions button,.editor-animation-actions button{min-height:34px;padding:6px 8px;font-size:9px}.editor-layer-list{display:grid;gap:5px;max-height:260px;overflow:auto;margin:10px 0;padding:3px;scrollbar-width:thin}.editor-layer-row{display:grid;grid-template-columns:29px 29px minmax(0,1fr) auto;align-items:center;gap:4px;padding:5px;border:1px solid #ffffff12;border-radius:7px;background:#0003;cursor:pointer}.editor-layer-row.active{border-color:var(--theme-accent,#9be64d);background:color-mix(in srgb,var(--theme-accent,#9be64d) 11%,transparent)}.editor-layer-row button{width:29px;height:29px;min-height:0;padding:0;border:0;background:transparent;color:var(--text,#fff);box-shadow:none}.editor-layer-row input{min-width:0;height:32px;padding:5px 7px;border-color:transparent;background:transparent}.editor-layer-row span{font-size:8px;color:var(--muted,#b7c9bd)}.editor-publish-divider{margin:14px 0;border:0;border-top:1px solid #ffffff15}
.editor-project-library summary,.editor-tile-preview summary{cursor:pointer;color:var(--theme-accent,#9be64d);font-size:11px;font-weight:900}.editor-project-library[open] summary,.editor-tile-preview[open] summary{margin-bottom:9px}.editor-project-library-modal .modal-card{max-width:660px}.editor-local-project-list{display:grid;gap:8px;max-height:60vh;overflow:auto}.editor-local-project-list article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:9px;border:1px solid #ffffff15;border-radius:8px;background:#ffffff05}.editor-local-project-list article.recovery{border-color:color-mix(in srgb,var(--theme-accent,#9be64d) 55%,transparent)}.editor-local-project-list small{display:block;margin-top:3px;color:var(--muted,#b7c9bd);font-size:9px}
.editor-animation-panel{flex:0 0 auto;margin-top:8px;padding:8px}.editor-animation-panel>header>div:first-child{display:flex;align-items:center;gap:8px}.editor-animation-panel .editor-animation-actions label{display:flex;align-items:center;gap:5px}.editor-animation-panel input[type=number]{width:62px;height:34px;padding:5px}.editor-frame-timeline{display:flex;gap:7px;min-height:76px;overflow-x:auto;margin:7px 0;padding:4px;scrollbar-width:thin}.editor-frame{position:relative;flex:0 0 70px;width:70px;height:70px;padding:3px;border:2px solid #ffffff16;border-radius:7px;background:#07100c;box-shadow:none}.editor-frame.active{border-color:var(--theme-accent,#9be64d);box-shadow:0 0 0 2px color-mix(in srgb,var(--theme-accent,#9be64d) 15%,transparent)}.editor-frame img{display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.editor-frame span{position:absolute;right:2px;bottom:2px;min-width:18px;padding:2px;background:#000c;color:#fff;font-size:8px}.editor-tile-preview canvas{display:block;width:min(100%,260px);aspect-ratio:1;margin:auto;border:1px solid #ffffff18;background:#09100d;image-rendering:pixelated}
.editor-guide-overlay{position:absolute;inset:0;z-index:4;pointer-events:none;background:linear-gradient(to right,transparent calc(50% - 1px),#ffdf5daa calc(50% - 1px),#ffdf5daa calc(50% + 1px),transparent calc(50% + 1px)),linear-gradient(to bottom,transparent calc(50% - 1px),#ffdf5daa calc(50% - 1px),#ffdf5daa calc(50% + 1px),transparent calc(50% + 1px));box-shadow:inset 0 0 0 1px #ffdf5d88}.editor-guide-overlay.hidden{display:none}.editor-canvas-stage,#pixelCanvas{contain:layout paint style}.editor-canvas-stage{will-change:width,height}
body.editor-workspace #view-editor .editor-layout,#view-editor:fullscreen .editor-layout,#view-editor.editor-app-fullscreen .editor-layout{grid-template-columns:var(--editor-tools-width) minmax(0,1fr) var(--editor-publish-width)}
#view-editor.tools-collapsed .editor-sidebar{display:none!important}body.editor-workspace #view-editor.tools-collapsed .editor-layout,#view-editor.tools-collapsed:fullscreen .editor-layout,#view-editor.editor-app-fullscreen.tools-collapsed .editor-layout{grid-template-columns:minmax(0,1fr) var(--editor-publish-width)}
#view-editor.publish-collapsed .upload-panel{display:none!important}body.editor-workspace #view-editor.publish-collapsed .editor-layout,#view-editor.publish-collapsed:fullscreen .editor-layout,#view-editor.editor-app-fullscreen.publish-collapsed .editor-layout{grid-template-columns:var(--editor-tools-width) minmax(0,1fr)}
body.editor-workspace #view-editor.tools-collapsed.publish-collapsed .editor-layout,#view-editor.tools-collapsed.publish-collapsed:fullscreen .editor-layout,#view-editor.editor-app-fullscreen.tools-collapsed.publish-collapsed .editor-layout{grid-template-columns:minmax(0,1fr)}
#view-editor.tools-collapsed #toggleToolsPanelBtn,#view-editor.publish-collapsed #togglePublishPanelBtn{border-color:var(--theme-accent,#9be64d);color:var(--theme-accent,#9be64d);background:color-mix(in srgb,var(--theme-accent,#9be64d) 10%,transparent)}
@media(max-width:1180px){#view-editor .editor-layout{grid-template-columns:minmax(250px,300px) minmax(0,1fr)}#view-editor .upload-panel{grid-column:1/-1}#view-editor.publish-collapsed .upload-panel{display:none!important}#view-editor.tools-collapsed .editor-layout,#view-editor.tools-collapsed.publish-collapsed .editor-layout{grid-template-columns:minmax(0,1fr)}.editor-animation-panel>header{align-items:flex-start;flex-direction:column}}
@media(max-width:900px){#view-editor .editor-layout,#view-editor.tools-collapsed .editor-layout,#view-editor.publish-collapsed .editor-layout,#view-editor.tools-collapsed.publish-collapsed .editor-layout{grid-template-columns:minmax(0,1fr)}#view-editor .canvas-panel{grid-row:1}#view-editor .editor-sidebar{grid-row:2}#view-editor .upload-panel{grid-row:3}.editor-layout-toggle{display:inline-flex!important}.editor-animation-actions{width:100%}.editor-frame-timeline{min-height:70px}.editor-frame{flex-basis:64px;width:64px;height:64px}}

/* V79.2: unmistakable artwork / asset entry point */
.v65-primary-actions .upload-hero-cta{position:relative;isolation:isolate;flex:1.45;min-height:68px!important;padding:12px 20px!important;overflow:hidden;border:3px solid #f4ff9b!important;border-radius:12px!important;background:linear-gradient(115deg,#dfff57 0%,#76ffd6 58%,#55dfff 100%)!important;color:#04120c!important;box-shadow:7px 7px 0 #020804,0 0 0 2px rgba(118,255,214,.18),0 0 36px rgba(118,255,214,.4)!important;transform:translateY(-2px);animation:uploadCtaGlow 2.8s ease-in-out infinite}
.v65-primary-actions .upload-hero-cta::after{content:'';position:absolute;z-index:-1;inset:-40% auto -40% -35%;width:30%;transform:skewX(-18deg);background:rgba(255,255,255,.42);animation:uploadCtaSweep 3.8s ease-in-out infinite;pointer-events:none}
.v65-primary-actions .upload-hero-cta:hover,.v65-primary-actions .upload-hero-cta:focus-visible{transform:translate(-2px,-4px) scale(1.015);filter:saturate(1.08) brightness(1.04);box-shadow:10px 10px 0 #020804,0 0 48px rgba(118,255,214,.68)!important}
.v65-primary-actions .upload-hero-cta .direct-upload-icon{display:grid;width:40px;height:40px;flex:0 0 auto;place-items:center;border-radius:10px;background:#06150e;color:#dfff57;font-size:30px!important;font-weight:1000;box-shadow:3px 3px 0 rgba(0,0,0,.28)}
.v65-primary-actions .upload-hero-cta strong{font-size:clamp(15px,1.35vw,19px);font-weight:1000;letter-spacing:.01em}.v65-primary-actions .upload-hero-cta small{font-size:9px;letter-spacing:.08em;opacity:.72}
@keyframes uploadCtaGlow{0%,100%{filter:saturate(1)}50%{filter:saturate(1.12) brightness(1.035)}}
@keyframes uploadCtaSweep{0%,58%{left:-35%;opacity:0}68%{opacity:.8}88%,100%{left:125%;opacity:0}}
@media(max-width:700px){.v65-primary-actions{flex-direction:column}.v65-primary-actions .upload-hero-cta{width:100%;min-height:72px!important;order:-1}.v65-primary-actions .v65-discover-btn{width:100%}}
@media(prefers-reduced-motion:reduce){.v65-primary-actions .upload-hero-cta,.v65-primary-actions .upload-hero-cta::after{animation:none}}

/* V80.8: the primary upload action gets enough room at every desktop width. */
.hero-actions.v65-primary-actions{display:grid!important;grid-template-columns:minmax(0,1.55fr) minmax(132px,.75fr)!important;gap:12px!important}
.v65-primary-actions .upload-hero-cta{width:100%!important;min-width:0!important;min-height:78px!important;padding:12px 14px!important;display:grid!important;grid-template-columns:38px minmax(0,1fr);align-items:center!important;justify-content:center!important;gap:12px;text-align:center!important}
.v65-primary-actions .upload-hero-cta .direct-upload-icon{position:static;transform:none;width:38px;height:38px}
.v65-primary-actions .upload-hero-cta .direct-upload-copy{display:flex;min-width:0;width:100%;flex-direction:column;align-items:center;justify-content:center;line-height:1.08}
.v65-primary-actions .upload-hero-cta strong{display:block;width:100%;font-size:clamp(14px,1.2vw,18px);line-height:1.12;white-space:normal;overflow:visible;text-align:center}
.v65-primary-actions .upload-hero-cta small{display:block;width:100%;margin-top:6px;font-size:9px;line-height:1.15;letter-spacing:.055em;white-space:normal;text-align:center}
.v65-primary-actions .v65-discover-btn{width:100%;min-width:0}
@media(max-width:700px){.hero-actions.v65-primary-actions{grid-template-columns:1fr!important}.v65-primary-actions .upload-hero-cta{padding-inline:14px!important}.v65-primary-actions .v65-discover-btn{min-height:54px}}
@media(max-width:600px){.editor-pro-header-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-pro-header-actions>*{width:100%;min-width:0}.editor-pro-header-actions .editor-document-status{grid-column:1/-1}.editor-animation-panel{margin-inline:-4px;padding:7px}.editor-animation-panel>header{display:block}.editor-animation-panel>header>div:first-child{justify-content:space-between;margin-bottom:6px}.editor-animation-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.editor-animation-actions button{min-width:0;padding:6px 4px}.editor-animation-panel .editor-animation-actions label{display:grid;grid-template-columns:auto 1fr}.editor-animation-panel input[type=number]{width:100%}.editor-local-project-list article{grid-template-columns:minmax(0,1fr) auto}.editor-local-project-list article .danger-soft{grid-column:2}.editor-layer-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;margin-top:6px}.editor-layers-panel>header{align-items:flex-start;flex-direction:column}.editor-canvas-viewport{touch-action:none}.editor-palette-lab .tool-group{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V71: track/cel timeline, transform controls, brushes and tilemap studio */
.editor-frame-timeline{display:block;min-height:92px;overflow:auto}.editor-cel-matrix{display:grid;grid-template-columns:120px repeat(var(--cel-count),64px);grid-auto-rows:58px;gap:4px;align-items:stretch;min-width:max-content}.editor-cel-corner,.editor-cel-track{position:sticky;left:0;z-index:3;display:flex;align-items:center;padding:7px;border:1px solid #ffffff18;border-radius:7px;background:color-mix(in srgb,var(--panel,#142319) 94%,#000);color:var(--muted,#b7c9bd);font-size:8px;text-align:left}.editor-cel-corner{z-index:4;letter-spacing:.12em}.editor-cel-track.active{border-color:var(--theme-accent,#9be64d);color:var(--text,#fff)}.editor-cel-matrix .editor-frame{position:relative;width:64px;height:58px;min-height:0;flex:none}.editor-cel-matrix .editor-frame img{height:100%}.editor-cel-matrix .editor-frame span{display:grid;line-height:1.05}.editor-cel-matrix .editor-frame small{font-size:6px;color:#b9d7ca}.editor-cel{position:relative;width:64px;height:58px;min-height:0;padding:5px;border:1px solid #ffffff18;border-radius:7px;background:#050b08;box-shadow:none}.editor-cel img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.editor-cel.empty{background:repeating-conic-gradient(#ffffff08 0 25%,transparent 0 50%) 0/10px 10px}.editor-cel.active{border:2px solid var(--theme-accent,#9be64d);box-shadow:inset 0 0 0 1px #000,0 0 12px color-mix(in srgb,var(--theme-accent,#9be64d) 30%,transparent)}
.editor-animation-tagbar{display:grid;grid-template-columns:repeat(4,minmax(110px,1fr));gap:6px;margin:8px 0;padding:8px;border:1px solid #ffffff12;border-radius:8px;background:#0002}.editor-animation-tagbar label{display:grid;gap:3px;font-size:8px}.editor-animation-tagbar input,.editor-animation-tagbar select{height:32px;padding:5px 7px}.editor-animation-tagbar button{min-height:32px;padding:5px 8px;font-size:8px}
.editor-selection-overlay.transformable{pointer-events:auto;border-style:solid;animation:none}.editor-transform-handle,.editor-transform-move{display:none;position:absolute;z-index:2;min-width:0;min-height:0;padding:0;border:2px solid #07120b;background:var(--theme-accent,#9be64d);box-shadow:0 0 0 1px #fff}.editor-selection-overlay.transformable .editor-transform-handle,.editor-selection-overlay.transformable .editor-transform-move{display:block}.editor-transform-handle{width:13px;height:13px}.editor-transform-handle.nw{left:-7px;top:-7px;cursor:nwse-resize}.editor-transform-handle.ne{right:-7px;top:-7px;cursor:nesw-resize}.editor-transform-handle.sw{left:-7px;bottom:-7px;cursor:nesw-resize}.editor-transform-handle.se{right:-7px;bottom:-7px;cursor:nwse-resize}.editor-transform-handle.rotate{left:50%;top:-31px;width:21px;height:21px;translate:-50% 0;border-radius:50%;cursor:grab;color:#07120b;font:900 12px/16px monospace}.editor-transform-move{inset:9px;width:auto;height:auto;border:0;background:transparent;box-shadow:none;cursor:move}
.editor-custom-brushes,.editor-tilemap-studio{margin-top:12px;padding:9px;border:1px solid #ffffff16;border-radius:9px;background:#0002}.editor-custom-brush-list,.editor-tileset-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(58px,1fr));gap:6px;margin:8px 0;max-height:190px;overflow:auto}.editor-custom-brush,.editor-tile{display:grid;place-items:center;gap:3px;min-width:0;min-height:62px;padding:5px;border:1px solid #ffffff18;background:#07100c;box-shadow:none}.editor-custom-brush.active,.editor-tile.active{border-color:var(--theme-accent,#9be64d);box-shadow:0 0 0 1px var(--theme-accent,#9be64d)}.editor-custom-brush img,.editor-tile img{width:38px;height:38px;object-fit:contain;image-rendering:pixelated}.editor-custom-brush span,.editor-tile span{max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:7px;white-space:nowrap}.editor-tile.collision{background:repeating-linear-gradient(135deg,#ff5e7920 0 5px,#07100c 5px 10px)}.editor-tilemap-controls,.editor-project-exchange{display:flex;align-items:end;gap:6px;flex-wrap:wrap;margin:8px 0}.editor-tilemap-controls label{display:grid;gap:3px}.editor-tilemap-controls button,.editor-project-exchange>*{min-height:34px;padding:6px 8px;font-size:8px}
.editor-command-card{width:min(760px,calc(100vw - 24px));max-height:min(760px,calc(100vh - 24px));display:flex;flex-direction:column}.editor-command-search{margin-bottom:8px}.editor-command-list{display:grid;gap:4px;overflow:auto}.editor-command-row{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:6px}.editor-command-row>button{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:8px 10px;border:1px solid #ffffff16;background:#0003;box-shadow:none;text-align:left}.editor-command-row>button:hover{border-color:var(--theme-accent,#9be64d)}.editor-command-row kbd{padding:3px 6px;border:1px solid #ffffff24;border-radius:4px;background:#0006;color:var(--muted,#b7c9bd)}.editor-command-row>input{height:42px}.editor-command-row.hidden{display:none}
@media(max-width:760px){.editor-animation-tagbar{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-cel-matrix{grid-template-columns:92px repeat(var(--cel-count),56px)}.editor-cel-matrix .editor-frame,.editor-cel{width:56px}.editor-command-row{grid-template-columns:minmax(0,1fr)}.editor-command-row>input{height:36px}.editor-tilemap-controls>*{flex:1 1 120px}}
@media(max-width:480px){.editor-animation-tagbar{grid-template-columns:minmax(0,1fr)}.editor-cel-matrix{grid-template-columns:78px repeat(var(--cel-count),52px);grid-auto-rows:52px}.editor-cel-matrix .editor-frame,.editor-cel{width:52px;height:52px}.editor-custom-brush-list,.editor-tileset-list{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* V72: compact, collapsible and vertically resizable animation dock */
body.editor-workspace .editor-animation-panel,#view-editor:fullscreen .editor-animation-panel,#view-editor.editor-app-fullscreen .editor-animation-panel{--animation-dock-height:210px;position:relative;display:flex;flex:0 0 var(--animation-dock-height);flex-direction:column;width:100%;height:var(--animation-dock-height);min-height:132px;max-height:min(52dvh,560px);overflow:hidden;transition:flex-basis .16s ease,height .16s ease,min-height .16s ease}
.editor-animation-resize-handle{position:absolute;z-index:8;top:-7px;left:50%;width:88px;height:13px;min-width:0;min-height:0;padding:0;translate:-50% 0;border:0;background:transparent;box-shadow:none;cursor:ns-resize;touch-action:none}
.editor-animation-resize-handle::before{content:"";position:absolute;top:4px;left:14px;right:14px;height:4px;border-radius:4px;background:color-mix(in srgb,var(--theme-accent,#9be64d) 58%,#ffffff);box-shadow:0 0 0 1px #0009,0 0 10px color-mix(in srgb,var(--theme-accent,#9be64d) 28%,transparent)}
.editor-animation-resize-handle:hover::before,.editor-animation-resize-handle:focus-visible::before{background:var(--theme-accent,#9be64d);box-shadow:0 0 0 2px #fff,0 0 14px color-mix(in srgb,var(--theme-accent,#9be64d) 55%,transparent)}
.editor-animation-panel.resizing{transition:none;user-select:none}.editor-animation-panel>header{flex:0 0 auto;min-height:39px}.editor-animation-panel>header>div:first-child{white-space:nowrap}.editor-animation-panel>header .editor-animation-actions{justify-content:flex-end}.editor-animation-dock-button{white-space:nowrap}.editor-animation-body{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:auto;scrollbar-width:thin}.editor-animation-body>.editor-animation-tagbar{flex:0 0 auto}.editor-animation-body>.editor-frame-timeline{flex:1 1 auto;min-height:82px}.editor-animation-footer{position:sticky;z-index:5;bottom:0;flex:0 0 auto;padding-top:5px;background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--panel,#142319) 96%,#000) 24%)}
.editor-animation-panel.settings-collapsed .editor-animation-tagbar{display:none}.editor-animation-panel.settings-collapsed .editor-animation-body>.editor-frame-timeline{margin-top:5px}.editor-animation-panel.collapsed{flex-basis:45px!important;height:45px!important;min-height:45px!important;max-height:45px!important}.editor-animation-panel.collapsed .editor-animation-body{display:none}.editor-animation-panel.collapsed .editor-animation-resize-handle{cursor:n-resize}.editor-animation-panel.collapsed>header{height:100%;min-height:0}.editor-animation-panel.collapsed>header .editor-animation-actions>*:not(.editor-animation-dock-button){display:none}.editor-animation-panel.collapsed #toggleAnimationSettingsBtn{display:none}.editor-animation-panel.collapsed #animationStatus{display:inline-block;margin-left:8px}.editor-animation-panel.collapsed .editor-animation-resize-handle::before{background:var(--theme-accent,#9be64d)}
body.animation-dock-resizing{cursor:ns-resize!important;user-select:none!important}body.animation-dock-resizing *{cursor:ns-resize!important}
@media(max-width:1180px){body.editor-workspace .editor-animation-panel,#view-editor:fullscreen .editor-animation-panel,#view-editor.editor-app-fullscreen .editor-animation-panel{--animation-dock-height:190px;max-height:46dvh}.editor-animation-panel>header .editor-animation-actions{display:flex;width:auto}}
@media(max-width:900px){body.editor-workspace .editor-animation-panel,#view-editor:fullscreen .editor-animation-panel,#view-editor.editor-app-fullscreen .editor-animation-panel{height:auto;min-height:0;max-height:none;flex-basis:auto}.editor-animation-panel .editor-animation-resize-handle{display:none}.editor-animation-panel .editor-animation-body{max-height:360px}.editor-animation-panel.collapsed{height:48px!important;min-height:48px!important;max-height:48px!important;flex-basis:48px!important}.editor-animation-panel>header .editor-animation-actions{width:100%}}
@media(max-width:600px){.editor-animation-panel>header .editor-animation-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-animation-panel>header .editor-animation-actions label{grid-template-columns:minmax(0,1fr) 62px}.editor-animation-panel .editor-animation-body{max-height:310px}.editor-animation-panel.settings-collapsed .editor-animation-body{max-height:230px}.editor-animation-panel.collapsed>header{display:flex;align-items:center}.editor-animation-panel.collapsed>header>div:first-child{margin:0}.editor-animation-panel.collapsed>header .editor-animation-actions{display:flex;width:auto}.editor-animation-panel.collapsed #toggleAnimationPanelBtn{width:auto}}

/* V73: animation dock can be removed completely and restored from the canvas header */
.editor-animation-panel.dock-hidden{display:none!important;flex:0 0 0!important;width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important}
.editor-show-animation{white-space:nowrap;border-color:color-mix(in srgb,var(--theme-accent,#9be64d) 62%,#fff)!important;color:var(--theme-accent,#9be64d)!important;background:color-mix(in srgb,var(--theme-accent,#9be64d) 10%,transparent)!important}
.editor-show-animation.hidden{display:none!important}
@media(max-width:600px){.editor-canvas-actions{flex-wrap:wrap;justify-content:flex-end}.editor-show-animation{width:auto!important;min-width:0;padding-inline:7px!important}}

/* V75: public community palette collection inside Palette Lab */
.v75-community-palettes{display:grid;gap:14px;margin-top:16px;padding:clamp(14px,2vw,22px);border:2px solid color-mix(in srgb,var(--accent,#9be64d) 34%,transparent);background:linear-gradient(145deg,color-mix(in srgb,var(--panel,#0d1d13) 96%,#000),color-mix(in srgb,var(--accent,#9be64d) 5%,var(--panel,#0d1d13)));box-shadow:8px 8px 0 #0005}.v75-community-palettes>header{display:flex;align-items:end;justify-content:space-between;gap:18px}.v75-community-palettes>header h2{margin:2px 0 4px;font-size:clamp(21px,3vw,34px)}.v75-community-palettes>header p{max-width:780px;margin:0;color:var(--muted,#b7c9bd)}.v75-community-palettes>header input{width:min(380px,100%);min-height:44px}
.v75-palette-filterbar{display:flex;gap:7px;flex-wrap:wrap}.v75-palette-filterbar button{min-height:38px;padding:7px 12px;border:1px solid #ffffff1b;background:#0003;color:var(--text,#fff);box-shadow:none}.v75-palette-filterbar button.active{border-color:var(--accent,#9be64d);color:#07120b;background:var(--accent,#9be64d);box-shadow:3px 3px 0 #0008}
.v75-palette-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}.v75-palette-card{position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;padding:12px;border:1px solid #ffffff18;border-radius:11px;background:linear-gradient(145deg,#ffffff07,#0003);box-shadow:0 12px 30px #0004}.v75-palette-card.weekly{margin-bottom:4px;border:2px solid color-mix(in srgb,var(--accent,#9be64d) 72%,#fff);background:linear-gradient(135deg,color-mix(in srgb,var(--accent,#9be64d) 13%,var(--panel,#0d1d13)),var(--panel,#0d1d13));box-shadow:6px 6px 0 color-mix(in srgb,var(--accent,#9be64d) 20%,#000)}.v75-weekly-label{position:absolute;z-index:2;top:8px;left:8px;padding:5px 8px;background:#07120bdd;color:var(--accent,#9be64d);font-size:9px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}
.v75-palette-strip{display:flex;width:100%;height:72px;overflow:hidden;border:2px solid #0009;border-radius:7px;box-shadow:inset 0 0 0 1px #fff2}.v75-palette-strip i{display:block;flex:1 1 0;min-width:5px;height:100%}.v75-palette-card-head{display:flex;align-items:start;justify-content:space-between;gap:10px;margin-top:10px}.v75-palette-card-head h3{margin:0;font-size:16px}.v75-palette-card-head>span{padding:4px 6px;border:1px solid #ffffff18;background:#0003;color:var(--muted,#b7c9bd);font-size:8px;white-space:nowrap}.v75-palette-author{min-height:0!important;padding:2px 0!important;color:var(--accent,#9be64d)!important;font-size:9px!important}.v75-palette-author:disabled{opacity:.8;cursor:default}.v75-palette-card>p{flex:1;margin:8px 0;color:var(--muted,#b7c9bd);font-size:11px;line-height:1.5}.v75-palette-tags{display:flex;gap:5px;flex-wrap:wrap}.v75-palette-tags button{min-height:0;padding:3px 6px;border:1px solid color-mix(in srgb,var(--accent,#9be64d) 28%,transparent);border-radius:999px;background:color-mix(in srgb,var(--accent,#9be64d) 7%,transparent);color:var(--accent,#9be64d);font-size:8px;box-shadow:none}.v75-palette-stats{display:flex;gap:13px;margin:9px 0;color:var(--muted,#b7c9bd);font-size:9px}.v75-palette-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.v75-palette-actions button{min-width:0;min-height:34px;padding:5px 6px;font-size:8px;box-shadow:none}.v75-palette-actions button.active{border-color:var(--accent,#9be64d);color:var(--accent,#9be64d);background:color-mix(in srgb,var(--accent,#9be64d) 11%,transparent)}.v75-palette-actions .primary{grid-column:span 2}.v75-palette-loading,.v75-comment-loading{padding:26px;text-align:center;color:var(--accent,#9be64d)}
.v75-manual-color{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:7px;margin-top:12px;padding-top:12px;border-top:1px solid #ffffff16}.v75-manual-color label{display:grid;gap:4px}.v75-manual-color input[type=color]{width:100%;height:42px}.v75-publish-box{margin-top:10px;padding:9px;border:1px solid color-mix(in srgb,var(--accent,#9be64d) 30%,transparent);background:#0002}.v75-publish-box summary{cursor:pointer;color:var(--accent,#9be64d);font-weight:900}.v75-publish-form{display:grid;gap:8px;margin-top:10px}.v75-publish-form label{display:grid;gap:4px}.v75-publish-form textarea{min-height:76px;resize:vertical}.v75-editable-color{position:relative}.v75-editable-color span{display:grid;place-items:center;position:absolute;inset:0;background:#0000;color:transparent;font-weight:950}.v75-editable-color:hover span,.v75-editable-color:focus-visible span{background:#0009;color:#fff}
.v75-palette-comments{margin-top:8px}.v75-comment-list{display:grid;gap:5px}.v75-comment-list article{position:relative;padding:8px;border:1px solid #ffffff12;border-radius:7px;background:#0003}.v75-comment-list article>div{display:flex;justify-content:space-between;gap:8px}.v75-comment-list article small{color:var(--muted,#b7c9bd);font-size:8px}.v75-comment-list article p{margin:5px 22px 0 0;font-size:10px;line-height:1.45}.v75-comment-list article>.link-btn{position:absolute;right:6px;bottom:5px}.v75-comment-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;margin-top:7px}.v75-comment-form input,.v75-comment-form button{min-height:38px}
.v75-profile-palette-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}.v75-profile-palette{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:8px;padding:7px;border:1px solid #ffffff14;border-radius:8px;background:#0003}.v75-profile-colorbar{display:flex;width:96px;height:48px;min-height:0;padding:0;overflow:hidden;border:1px solid #000;box-shadow:none}.v75-profile-colorbar i{flex:1;height:100%}.v75-profile-palette b,.v75-profile-palette small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v75-profile-palette small{margin-top:3px;color:var(--muted,#b7c9bd);font-size:8px}
@media(max-width:760px){.v75-community-palettes>header{align-items:stretch;flex-direction:column}.v75-community-palettes>header input{width:100%}.v75-palette-grid{grid-template-columns:1fr}.v75-palette-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.v75-palette-actions .primary{grid-column:auto}.v75-palette-strip{height:58px}}
@media(max-width:440px){.v75-community-palettes{margin-inline:-5px;padding:10px}.v75-palette-filterbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.v75-palette-filterbar button{width:100%;min-width:0}.v75-manual-color{grid-template-columns:1fr}.v75-comment-form{grid-template-columns:1fr}.v75-profile-palette-grid{grid-template-columns:1fr}}
.gallery-discovery-nav,.gallery-district-nav{position:relative;overflow:hidden}.gallery-discovery-nav{border-color:rgba(220,196,124,.6)!important;background:linear-gradient(120deg,rgba(220,196,124,.22),rgba(255,255,255,.06))!important;color:#fff2bf!important;box-shadow:0 0 20px rgba(220,196,124,.13)}.gallery-district-nav{border-color:rgba(110,231,255,.58)!important;background:linear-gradient(120deg,rgba(110,231,255,.2),rgba(217,194,122,.1))!important;color:#f7fdff!important;box-shadow:0 0 22px rgba(110,231,255,.16)}.gallery-discovery-nav::after,.gallery-district-nav::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 34%,rgba(255,255,255,.18),transparent 66%);transform:translateX(-120%);animation:gallery-district-nav-shine 4.6s ease-in-out infinite;pointer-events:none}.gallery-discovery-nav:hover{border-color:#f5da8a!important;box-shadow:0 0 28px rgba(220,196,124,.22)}@keyframes gallery-district-nav-shine{0%,65%{transform:translateX(-120%)}90%,100%{transform:translateX(120%)}}
