#builder-panel{overflow-anchor:none;overflow-x:clip;overflow-clip-margin:8px}
/* Familiar file-window conventions, in the same ink, paper and cart colors. */
.builder-view-switch{display:flex;gap:4px;margin-left:auto;align-self:center;padding:4px;border:2px solid var(--border);border-radius:10px;background:var(--panel);box-shadow:3px 3px 0 #000}
.builder-view-switch button{min-height:34px;padding:6px 10px;border:0;box-shadow:none;background:transparent;font-size:12px}
.builder-view-switch button[aria-pressed=true]{background:var(--sage);border-radius:6px}
#builder-panel.explorer-mode #builder-fields{display:grid;grid-template-columns:minmax(0,1fr)}
#builder-panel.explorer-mode #builder-fields>.contents-panel{display:none}
#builder-panel.explorer-mode #builder-fields>.details{width:100%;min-width:0}
#builder-panel.explorer-mode .builder-grid{margin-bottom:20px}
#builder-panel .builder-explorer,.explorer-popup .builder-explorer{padding:0;overflow:clip;margin:0 0 24px;min-width:0;border:2px solid var(--border);border-radius:var(--radius-panel);box-shadow:4px 5px 0 #000;background:var(--panel);color:var(--ink)}
.builder-explorer[hidden]{display:none!important}
.builder-explorer *{box-sizing:border-box}
.explorer-button{display:inline-flex;justify-content:center;align-items:center;gap:7px;white-space:nowrap;font:inherit;line-height:1.25;color:var(--ink)}
.builder-explorer button,.explorer-context-menu button,.scratch-list button,.builder-view-switch button{font-size:12px;font-weight:650}
.explorer-button svg,.explorer-entry-art svg,.explorer-empty svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.explorer-titlebar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:2px solid var(--border);background:var(--sage)}
.explorer-titlebar h2{display:flex;align-items:center;gap:12px;margin:0;font-size:20px}
.explorer-title-badge{font-size:9px;font-weight:800;letter-spacing:.12em;border:1px solid currentColor;border-radius:4px;padding:4px 5px;background:var(--panel)}
.explorer-title-actions{display:flex;gap:8px;align-items:center}
.explorer-title-actions button{min-height:32px;padding:6px 9px;background:var(--panel)}
.explorer-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:10px 14px;background:var(--soft-grey);border-bottom:1px solid #c8c6bc}
.explorer-tools button{min-height:34px;padding:6px 9px;border:1.5px solid var(--border);box-shadow:2px 2px 0 #000;background:var(--panel)}
.explorer-tools .explorer-cart-action{background:var(--sage)}
.explorer-tools .explorer-file-action{background:var(--blue,#8ed0fb)}
.explorer-tool-divider{width:1px;height:26px;background:#b7b6ad;margin:0 3px}
.builder-explorer .explorer-button:disabled{opacity:.45;box-shadow:none;cursor:not-allowed}
.builder-explorer .explorer-button:not(:disabled):hover,.explorer-context-menu button:not(:disabled):hover{background:var(--mint,#9cefcd);color:var(--ink)}
.builder-explorer button:focus-visible,.builder-explorer [tabindex]:focus-visible,.explorer-context-menu button:focus-visible{outline:3px solid var(--lavender,#c9a1ff);outline-offset:2px}
.explorer-address{display:flex;align-items:center;gap:5px;padding:10px 14px 6px}
.explorer-address>.explorer-button{border:0;box-shadow:none;min-width:30px;min-height:32px;padding:4px;background:transparent}
.explorer-icon-only>span{position:absolute;width:1px;height:1px;padding:0;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}
.explorer-breadcrumbs{display:flex;align-items:center;gap:0;min-width:0;flex:1;overflow:auto;border:2px solid var(--border);border-radius:6px;min-height:36px;padding:0 5px;background:var(--panel);scrollbar-width:thin}
.explorer-breadcrumbs button,.explorer-scratch-crumbs button{border:0;box-shadow:none;background:transparent;border-radius:4px;min-height:28px;padding:3px 6px;font-size:12px}
.explorer-path-separator{color:#72736c}
.builder-explorer input.explorer-search{width:210px;min-width:120px;min-height:36px;height:36px;margin:0 0 0 6px;padding:6px 10px;border:2px solid var(--border);border-radius:6px;font-size:12px;background:var(--panel);color:var(--ink)}
.explorer-options{display:flex;align-items:center;gap:7px;padding:4px 14px 10px;border-bottom:2px solid var(--border)}
.explorer-view-buttons{display:flex;gap:4px;margin-right:auto}
.explorer-view-buttons button,.explorer-options>.explorer-button{border:0;box-shadow:none;background:transparent;min-height:30px;padding:5px 7px;font-size:11px}
.explorer-view-buttons button[aria-pressed=true]{background:var(--sage);outline:1px solid var(--border)}
.explorer-options .explorer-sort-label{font-size:11px;margin:0;white-space:nowrap}
.builder-explorer .explorer-options select{width:84px;min-height:28px;margin:0;padding:3px 5px;border:1px solid var(--border);border-radius:5px;font-size:11px;background:var(--panel)}
.explorer-sort-direction svg{width:15px;height:15px}
.explorer-sort-direction.descending svg{rotate:180deg}
.explorer-body{position:relative;display:grid;grid-template-columns:172px minmax(0,1fr) 38px;min-height:350px;max-height:620px;height:54vh;overflow:hidden}
.explorer-places{padding:12px 8px;background:var(--soft-grey);border-right:1px solid #c8c6bc;overflow:auto;min-width:0;scrollbar-width:thin}
.explorer-places button{width:100%;justify-content:flex-start;min-width:0;min-height:34px;padding:6px;border:0;box-shadow:none;background:transparent;white-space:normal;text-align:left;overflow-wrap:anywhere}
.explorer-places button svg{width:17px;height:17px}
.explorer-places .explorer-place-root{background:var(--sage);font-weight:800;margin-bottom:8px;border-radius:6px}
.explorer-folder-places button{font-size:11px;padding-left:12px}
.explorer-folder-places button.current{background:color-mix(in srgb,var(--mint) 30%,var(--panel));border-radius:5px}
.explorer-file-pane{min-width:0;overflow:hidden}
.explorer-files{height:100%;min-width:0;overflow:auto;padding:12px;outline-offset:-3px!important;scrollbar-width:thin;align-content:start}
.explorer-entry{position:relative;cursor:default;user-select:none;border:2px solid transparent;border-radius:6px;min-width:0;outline:none;color:var(--ink)}
.explorer-entry:hover{background:var(--soft-grey);border-color:#d5d3c9}
.explorer-entry.selected{background:var(--mint,#9cefcd);border-color:var(--border);box-shadow:2px 2px 0 #000}
.explorer-entry.cut{opacity:.45}
.explorer-entry-art{display:grid;place-items:center;flex:none;position:relative;color:var(--ink)}
.explorer-entry-art img{width:100%;height:100%;object-fit:contain;image-rendering:auto;border-radius:4px}
.explorer-entry-art.folder svg{fill:var(--sage);stroke-width:1.5}
.explorer-entry-art.game>svg{fill:color-mix(in srgb,var(--lavender) 25%,var(--panel))}
.explorer-entry-name{min-width:0;overflow-wrap:anywhere;line-height:1.35;font-size:12px}
.explorer-entry-type,.explorer-entry-size,.explorer-entry-author{display:none;font-size:11px;color:#686963;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.explorer-view-large{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:12px 9px}
.explorer-view-large .explorer-entry{display:flex;flex-direction:column;align-items:center;gap:8px;padding:10px 6px;text-align:center;min-height:132px}
.explorer-view-large .explorer-entry-art{width:76px;height:76px}
.explorer-view-large .explorer-entry-art svg{width:66px;height:66px;stroke-width:1.4}
.explorer-view-large .explorer-entry-name{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.explorer-view-small{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:5px}
.explorer-view-small .explorer-entry{display:flex;gap:8px;align-items:center;padding:6px;min-height:44px}
.explorer-view-small .explorer-entry-art{width:28px;height:28px}
.explorer-view-small .explorer-entry-art svg{width:26px;height:26px}
.explorer-view-small .explorer-entry-name{font-size:11px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.explorer-view-details{padding:0 8px 10px;display:flex;flex-direction:column;gap:3px}
.explorer-view-details .explorer-entry{display:grid;grid-template-columns:30px minmax(130px,1fr) 58px 70px 90px;align-items:center;gap:7px;padding:6px;min-height:43px;flex:none}
.explorer-view-details .explorer-entry-art{width:28px;height:28px}
.explorer-view-details .explorer-entry-art svg{width:25px;height:25px}
.explorer-view-details .explorer-entry-type,.explorer-view-details .explorer-entry-size,.explorer-view-details .explorer-entry-author{display:block}
.explorer-view-details .explorer-entry-size{text-align:right}
.explorer-columns{display:grid;grid-template-columns:minmax(167px,1fr) 58px 70px 90px;gap:7px;position:sticky;top:0;z-index:2;background:var(--soft-grey);border-bottom:1px solid #aaa99e;min-height:34px;padding:4px 8px;font-size:11px;align-items:center;flex:none}
.explorer-columns button{min-height:24px;padding:2px 0;justify-content:flex-start;border:0;box-shadow:none;background:none;text-align:left;font-size:11px}
.explorer-columns button:nth-child(3){justify-content:flex-end}
.explorer-empty{grid-column:1/-1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;min-height:260px;padding:24px;text-align:center;color:#65665e}
.explorer-empty svg{width:50px;height:50px;stroke-width:1.3}
.explorer-empty strong{font-size:15px;color:var(--ink)}
.explorer-empty p{font-size:12px;max-width:280px;margin:0;line-height:1.5}
.explorer-scratch-tab{position:relative;z-index:4;display:flex;flex-direction:column;justify-content:flex-start;padding:14px 6px;gap:10px;border:0!important;border-left:2px dashed var(--border)!important;border-radius:0!important;box-shadow:none!important;background:color-mix(in srgb,var(--lavender) 30%,var(--panel))!important;min-width:0}
.explorer-scratch-tab span{writing-mode:vertical-rl;font-size:12px;font-weight:700;letter-spacing:.02em}
.explorer-scratch{position:absolute;inset:0 38px 0 auto;z-index:3;width:min(var(--scratch-width,300px),calc(100% - 45px));display:flex;flex-direction:column;min-width:0;border-left:2px dashed var(--border);background:color-mix(in srgb,var(--lavender) 20%,var(--panel));box-shadow:-4px 0 0 #00000012;translate:calc(100% + 42px) 0;visibility:hidden;transition:translate .22s cubic-bezier(.2,.8,.2,1),visibility .22s}
.scratch-open .explorer-scratch{translate:0 0;visibility:visible}
.scratch-pinned .explorer-body{grid-template-columns:172px minmax(0,1fr) min(var(--scratch-width,300px),40%) 38px}
.scratch-pinned .explorer-file-pane{grid-column:2}
.scratch-pinned .explorer-scratch-tab{grid-column:4}
.scratch-pinned .explorer-scratch{position:relative;inset:auto;grid-row:1;grid-column:3;width:auto;translate:0;visibility:visible}
.explorer-scratch-heading{display:flex;align-items:center;gap:5px;padding:10px 12px 0}
.explorer-scratch-heading h3{margin:0 auto 0 0;font-size:14px}
.explorer-scratch-heading button{width:29px;min-width:29px;min-height:29px;padding:4px;border:0;box-shadow:none;background:transparent}
.explorer-scratch-heading button[aria-pressed=true]{background:var(--sage);outline:1px solid var(--border)}
.explorer-scratch-note{font-size:11px;line-height:1.5;margin:8px 12px 5px;color:#64605f}
.explorer-scratch-crumbs{display:flex;align-items:center;overflow:auto;flex:none;margin:3px 7px 5px;scrollbar-width:thin}
.explorer-scratch-crumbs button{font-size:10px}
.explorer-scratch-files{height:auto;flex:1;padding:8px;grid-template-columns:minmax(0,1fr);gap:5px}
.explorer-scratch-files .explorer-empty{min-height:180px;padding:15px}
.explorer-resize{position:absolute;inset:0 auto 0 -5px;width:10px;z-index:5;cursor:col-resize;touch-action:none}
.explorer-resize:hover,.explorer-resize:focus-visible{background:#9cefcd88}
.explorer-drop-target{outline:3px dashed var(--border)!important;outline-offset:-4px;background:var(--mint,#9cefcd)!important}
.explorer-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;padding:8px 14px;border-top:2px solid var(--border);background:var(--soft-grey);font-size:11px}
.explorer-help{padding:0;margin:0;border:0;position:relative;font-size:11px}
.explorer-help summary{font-size:11px;margin:0;padding:0;cursor:pointer}
.explorer-help p{position:absolute;right:0;bottom:calc(100% + 12px);width:min(340px,75vw);padding:14px;line-height:1.6;background:var(--panel);border:2px solid var(--border);border-radius:var(--radius-inset);box-shadow:3px 3px 0 #000;z-index:8;margin:0;font-size:12px}
.explorer-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.explorer-context-menu{position:fixed;z-index:1000;width:205px;padding:6px;border:2px solid var(--border);border-radius:var(--radius-inset);box-shadow:4px 4px 0 #000;background:var(--panel);color:var(--ink)}
.explorer-context-menu button{display:flex;justify-content:flex-start;width:100%;padding:8px;min-height:34px;border:0;box-shadow:none;background:transparent;font-size:12px;border-radius:4px}
.explorer-context-menu button:disabled{opacity:.4}
.explorer-name-dialog{width:min(390px,calc(100vw - 40px));border:2px solid var(--border);border-radius:var(--radius-dialog);box-shadow:5px 5px 0 #000;padding:24px;background:var(--panel);color:var(--ink)}
.explorer-name-dialog h2{font-size:22px;margin-bottom:20px}
.explorer-name-dialog label{display:block;font-size:13px}
.explorer-name-dialog input{display:block;width:100%;margin:6px 0 20px}
.explorer-name-dialog .actions{justify-content:flex-end}
.scratch-list{margin-top:18px;padding:12px 8px;border:2px dashed var(--border);border-radius:var(--radius-inset);background:color-mix(in srgb,var(--lavender) 20%,var(--panel))}
.scratch-list h3{font-size:14px;margin:0 0 6px}
.scratch-list>p{font-size:11px;line-height:1.5;margin:0 0 10px}
.scratch-list-item{display:flex;align-items:center;gap:6px;font-size:11px;min-width:0;margin:6px 0}
.scratch-list-item>svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;flex:none}
.scratch-list-item>span{flex:1;overflow-wrap:anywhere}
.scratch-list-item>button{width:28px;min-width:28px;min-height:28px;padding:4px;box-shadow:1px 1px 0 #000;background:var(--panel)}
.explorer-popup{margin:0;padding:14px;background:var(--bg);min-width:320px;color:var(--ink)}
.explorer-popup .builder-explorer{margin:0;min-height:calc(100vh - 34px)}
.explorer-popup .explorer-body{height:calc(100vh - 262px);max-height:none;min-height:260px}
.explorer-parent-closed{font-size:18px;max-width:520px;margin:80px auto;padding:30px;border:2px solid var(--border);box-shadow:4px 4px 0 #000;background:var(--panel)}
@media(max-width:1050px){.explorer-body{grid-template-columns:135px minmax(0,1fr) 38px}.scratch-pinned .explorer-body{grid-template-columns:135px minmax(0,1fr) min(var(--scratch-width,300px),40%) 38px}.explorer-view-buttons button{padding:5px}.explorer-view-buttons button svg{display:none}.explorer-view-details .explorer-entry{grid-template-columns:26px minmax(100px,1fr) 50px 64px}.explorer-view-details .explorer-entry-author{display:none}.explorer-columns{grid-template-columns:minmax(133px,1fr) 50px 64px}.explorer-columns>span{display:none}}
@media(max-width:760px){.builder-view-switch{margin-left:8px;margin-top:4px}.explorer-titlebar{padding:12px}.explorer-titlebar h2{font-size:18px;gap:8px}.explorer-title-badge{display:none}.explorer-title-actions button{font-size:11px;padding:5px}.explorer-tools{padding:9px;gap:5px}.explorer-tools button{font-size:11px;padding:6px}.explorer-tools .explorer-tool-divider{display:none}.explorer-address{flex-wrap:wrap;padding:9px}.explorer-breadcrumbs{min-width:calc(100% - 112px)}.builder-explorer input.explorer-search{width:100%;margin:5px 0 0}.explorer-options{padding:0 9px 8px;gap:5px;flex-wrap:wrap}.explorer-view-buttons{width:100%;margin-bottom:3px}.explorer-options .explorer-sort-label{margin-left:auto}.explorer-body,.scratch-pinned .explorer-body{grid-template-columns:minmax(0,1fr) 34px;height:55vh;min-height:340px}.explorer-places{display:none}.scratch-pinned .explorer-file-pane{grid-column:1}.scratch-pinned .explorer-scratch-tab{grid-column:2}.explorer-scratch,.scratch-pinned .explorer-scratch{position:absolute;inset:0 34px 0 auto;width:min(var(--scratch-width,300px),calc(100% - 40px));grid-column:auto;grid-row:auto}.explorer-files{padding:8px}.explorer-view-large{grid-template-columns:repeat(auto-fill,minmax(91px,1fr));gap:8px 5px}.explorer-view-large .explorer-entry{min-height:120px;padding:7px 4px}.explorer-view-large .explorer-entry-art{width:64px;height:64px}.explorer-view-details .explorer-entry{grid-template-columns:24px minmax(70px,1fr) 56px;gap:5px;padding:5px}.explorer-view-details .explorer-entry-type{display:none}.explorer-columns{grid-template-columns:minmax(99px,1fr) 56px;gap:5px;padding:4px 6px}.explorer-columns>button:nth-child(2){display:none}.explorer-view-details .explorer-entry-name{font-size:11px}.explorer-footer{padding:8px 10px}.explorer-popup{padding:8px}.explorer-popup .explorer-body{height:calc(100vh - 340px)}}
@media(prefers-reduced-motion:reduce){.explorer-scratch,.builder-explorer *{transition:none!important;scroll-behavior:auto!important}}

.explorer-files.active-pane{box-shadow:inset 0 0 0 1px #9cefcd55}

/* Keep the clicked file in place while its inspector changes above the window. */
#builder-panel.explorer-mode #builder-fields>.details{height:var(--settings-height,520px);min-height:384px;max-height:none;overflow-y:auto;scrollbar-gutter:stable;resize:none;overscroll-behavior:auto}
.explorer-folder-badge{position:absolute;right:-3px;bottom:-3px;display:grid;place-items:center;width:22px;height:18px;background:var(--sage);border:1.5px solid var(--border);border-radius:4px;box-shadow:1px 1px 0 #000}
.explorer-entry-art.folder .explorer-folder-badge svg{width:15px;height:15px;stroke-width:2;fill:none}
.explorer-view-small .explorer-folder-badge,.explorer-view-details .explorer-folder-badge{width:14px;height:12px;right:-2px;bottom:-2px;border-width:1px;border-radius:3px}
.explorer-view-small .explorer-entry-art.folder .explorer-folder-badge svg,.explorer-view-details .explorer-entry-art.folder .explorer-folder-badge svg{width:10px;height:10px}

.builder-explorer{position:relative}
.explorer-live.visible{position:absolute;left:14px;bottom:52px;z-index:9;width:auto;height:auto;max-width:calc(100% - 28px);clip:auto;overflow:visible;padding:10px 14px;border:2px solid var(--border);border-radius:var(--radius-inset);background:var(--panel);box-shadow:3px 3px 0 #000;font-size:12px;line-height:1.5}

#builder-panel #details{scroll-margin-top:calc(var(--site-header-height,110px) + 44px)}

/* Compact inspector and familiar folder navigation. */
#builder-panel #details .detail-overview{grid-template-columns:176px minmax(0,1fr);gap:20px}
#builder-panel #details .detail-art-column .artwork-card>.asset-image,#builder-panel #details .detail-art-column .cover-placeholder{width:176px;height:176px}
#builder-panel #details .detail-info-column>.form-grid{gap:12px;align-content:start}
#builder-panel #details .detail-info-column label{margin:0}
#builder-panel #details .detail-info-column input,#builder-panel #details .detail-info-column textarea{margin-top:4px}
#builder-panel #details .detail-info-column textarea{min-height:96px}
#builder-panel #details .detail-art-column>label{margin-top:12px;margin-bottom:0}
#builder-panel #details .art-actions{gap:5px}
#builder-panel #details .detail-art-column .art-actions>*{min-height:34px;padding:7px 9px}
.builder-explorer .explorer-title-actions .explorer-pop-circle{width:36px;height:36px;min-height:36px;padding:7px;border-radius:50%;display:grid;place-items:center}
.explorer-titlebar{padding:10px 14px}
.explorer-breadcrumbs{position:relative;padding-right:36px}
.builder-explorer .explorer-location-select{position:absolute;right:0;top:0;width:32px;height:100%;min-height:0;border:0;border-left:1px solid var(--border);border-radius:0;margin:0;padding:0;color:transparent;appearance:none;background:var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;cursor:pointer}
.explorer-location-select option{color:var(--ink);background:var(--panel)}
.explorer-places{padding:6px 4px}
.explorer-tree-row{display:flex;align-items:center;gap:5px;min-height:26px;padding:2px 5px 2px calc(3px + var(--tree-depth)*12px);border-radius:4px;font-size:11px;cursor:default;white-space:nowrap}
.explorer-tree-row:hover{background:var(--mint)}
.explorer-tree-row[aria-selected=true]{background:var(--sage)}
.explorer-tree-row>svg{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.explorer-tree-name{overflow:hidden;text-overflow:ellipsis}
.explorer-tree-spacer{width:16px;flex:none}
.explorer-places .explorer-tree-toggle{width:16px;min-width:16px;height:20px;min-height:20px;flex:none;padding:0;margin:0;display:grid;place-items:center;border:0;box-shadow:none;background:transparent}
.explorer-tree-toggle svg{width:12px;height:12px;transition:rotate .15s}
.explorer-tree-row[aria-expanded=true]>.explorer-tree-toggle svg{rotate:90deg}
.explorer-tree-toggle[hidden],.explorer-tree-spacer[hidden]{display:none}
@media(max-width:700px){#builder-panel #details .detail-overview{grid-template-columns:minmax(0,1fr);gap:14px}#builder-panel #details .detail-art-column .artwork-card>.asset-image,#builder-panel #details .detail-art-column .cover-placeholder{width:128px;height:128px}}

#builder-panel.explorer-mode #builder-fields>.details{padding:16px}
#builder-panel #details .detail-info-column label{display:flex;flex-direction:column;gap:4px}
#builder-panel #details .detail-info-column input,#builder-panel #details .detail-info-column textarea{margin:0}
/* Compact Explorer controls and user-sized panes. */
.scratch-list[hidden]{display:none!important}
.builder-view-switch{position:relative;border-radius:999px;height:48px;padding:4px;gap:0;isolation:isolate;cursor:pointer;align-self:flex-start}
.builder-view-switch:before{content:'';position:absolute;inset:4px auto 4px 4px;width:calc((100% - 8px)/2);border-radius:999px;background:var(--sage);z-index:-1;transition:transform .34s cubic-bezier(.34,1.4,.45,1)}
.builder-view-switch[data-mode=explorer]:before{transform:translateX(100%)}
.builder-view-switch button{width:94px;height:36px;min-height:36px;border-radius:999px;background:transparent!important;cursor:pointer;transform:none!important}
.builder-view-switch button[aria-pressed=true]{border-radius:999px;background:transparent}
.explorer-body{height:var(--explorer-height,540px);min-height:240px;max-height:none}
.explorer-places-resize{position:absolute;left:calc(var(--places-width,172px) - 4px);top:0;bottom:0;width:8px;z-index:5;cursor:col-resize;touch-action:none}
.explorer-places-resize:hover,.explorer-places-resize:focus-visible{background:var(--sage)}
.explorer-height-resize{height:12px;cursor:row-resize;touch-action:none;display:grid;place-items:center;background:var(--soft-grey);border-top:1px solid #c8c6bc}
.explorer-height-resize:after{content:'';width:42px;height:3px;border-radius:99px;background:var(--ink);opacity:.5}
@media(min-width:761px){.explorer-body{grid-template-columns:var(--places-width,172px) minmax(0,1fr) 38px}.scratch-pinned .explorer-body{grid-template-columns:var(--places-width,172px) minmax(0,1fr) min(var(--scratch-width,300px),40%) 38px}}
.explorer-popup .explorer-body{height:var(--explorer-height,540px)}
.explorer-entry,.explorer-tree-row,.builder-explorer button:not(:disabled),.builder-explorer select,.builder-explorer summary{cursor:pointer}
.explorer-breadcrumbs,.builder-explorer input.explorer-search,.builder-explorer .explorer-options select{border-radius:999px}
.explorer-breadcrumbs{padding-left:10px}
.explorer-location-select{border-radius:0 999px 999px 0}
.explorer-options{flex-wrap:wrap}
.explorer-view-buttons{flex-wrap:wrap}
.explorer-options button,.explorer-options button[aria-pressed=true]{border-radius:999px;border:0;box-shadow:none;outline:none}
.explorer-options button:focus-visible{outline:3px solid var(--lavender)!important}
.explorer-entry.selected{border-color:transparent;box-shadow:none}
.explorer-entry-sd-size{display:none;font-size:11px;color:#686963;white-space:nowrap;text-align:right}
.explorer-view-details{gap:0}
.explorer-view-details .explorer-entry{grid-template-columns:18px minmax(100px,1fr) 48px 64px 64px 80px;min-height:27px;padding:3px 5px;gap:7px;border:0;border-radius:3px}
.explorer-view-details .explorer-entry-art,.explorer-view-details .explorer-entry-art svg{width:18px;height:18px}
.explorer-view-details .explorer-entry-name{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.explorer-view-details .explorer-entry-sd-size{display:block}
.explorer-columns{grid-template-columns:minmax(125px,1fr) 48px 64px 64px 80px;padding:3px 5px;min-height:28px}
.explorer-columns button:nth-child(4){justify-content:flex-end}
.explorer-view-large,.explorer-view-extra,.explorer-view-huge{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,calc(var(--art-size) + 32px)),1fr));gap:10px}
.explorer-view-large{--art-size:64px}.explorer-view-extra{--art-size:128px}.explorer-view-huge{--art-size:256px}
.explorer-view-large .explorer-entry,.explorer-view-extra .explorer-entry,.explorer-view-huge .explorer-entry{display:flex;flex-direction:column;align-items:center;gap:8px;padding:8px;text-align:center;min-height:0}
.explorer-view-large .explorer-entry-art,.explorer-view-extra .explorer-entry-art,.explorer-view-huge .explorer-entry-art{width:var(--art-size);height:var(--art-size);max-width:100%}
.explorer-view-large .explorer-entry-art>svg,.explorer-view-extra .explorer-entry-art>svg,.explorer-view-huge .explorer-entry-art>svg{width:85%;height:85%}
.explorer-view-extra .explorer-entry-name,.explorer-view-huge .explorer-entry-name{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:1050px){.explorer-view-details .explorer-entry{grid-template-columns:18px minmax(80px,1fr) 48px 64px 64px}.explorer-columns{grid-template-columns:minmax(105px,1fr) 48px 64px 64px}}
@media(max-width:760px){.explorer-places-resize{display:none}.explorer-view-details .explorer-entry{grid-template-columns:18px minmax(65px,1fr) 56px 56px}.explorer-columns{grid-template-columns:minmax(90px,1fr) 56px 56px}.explorer-view-buttons{width:100%}}
@media(prefers-reduced-motion:reduce){.builder-view-switch:before{transition:none}}
/* Game inspector actions share the heading, leaving the form uncluttered. */
#details .game-detail-heading{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:16px}
#details .game-detail-heading h2{flex:1 1 150px;min-width:0;margin:0;overflow-wrap:anywhere}
#builder-panel #details .game-actions{flex:none;justify-content:flex-end;margin:0 0 0 auto;gap:8px}
.game-actions .labeled-action{display:flex;flex-direction:column;align-items:center;gap:5px;width:60px}
.game-actions .action-caption{font-size:11px;font-weight:700;line-height:1.3;text-align:center;white-space:nowrap}
#builder-panel #details .game-cover-section .artwork-card>.art-picker{border:3px solid var(--border);border-radius:12px;outline:none;box-shadow:3px 3px 0 #000;overflow:hidden}
#builder-panel #details .game-cover-section .art-picker img{border-radius:8px}
#builder-panel #details .game-cover-section .art-actions>*,#builder-panel #details .game-sd-actions>.button{box-shadow:2px 2px 0 #000}
#builder-panel #details .game-cover-section .art-actions>:active,#builder-panel #details .game-sd-actions>.button:active{box-shadow:none;transform:translate(2px,2px)}
#builder-panel #details .game-sd-actions{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:12px;margin-top:12px}
#builder-panel #details .game-sd-actions>.button{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;margin:0;min-width:0;padding:8px;font-size:12px}
.game-sd-actions .ui-icon{width:20px;height:20px;flex:none}
@media(max-width:420px){#builder-panel #details .game-actions{gap:6px}.game-actions .labeled-action{width:56px}}
/* Keep panel shadows and right-hand controls inside their layout tracks. */
#builder-panel{overflow-x:visible}
#builder-grid,#builder-fields,#builder-fields>.details,#details,.game-sd-section{min-width:0;max-width:100%}
#builder-fields{margin-inline:0}
#builder-panel.explorer-mode #builder-fields>.details{padding-right:22px}

.explorer-scratch-crumbs[hidden]{display:none}
.explorer-scratch-heading{padding-bottom:8px}
/* The window supplies the popup's size; only its contents scroll. */
.explorer-popup{box-sizing:border-box;height:100dvh;min-height:0;overflow:hidden}
.explorer-popup .builder-explorer{display:flex;flex-direction:column;height:100%;min-height:0}
.explorer-popup .builder-explorer>.explorer-body{height:auto;min-height:0;flex:1}
.explorer-popup .builder-explorer>:not(.explorer-body){flex-shrink:0}
#builder-panel #details .detail-overview:not(.game-overview){grid-template-columns:256px minmax(0,1fr)}
#builder-panel #details .detail-overview:not(.game-overview) .artwork-card>.asset-image{box-sizing:content-box;width:256px;height:256px;border:0;padding:0;outline:2px solid var(--border)}
#builder-panel #details .detail-overview:not(.game-overview) .asset-image>img{width:256px;height:256px;max-width:none;image-rendering:pixelated}
@media(max-width:1100px){#builder-panel #details .detail-overview:not(.game-overview){grid-template-columns:minmax(0,1fr)}}

#builder-panel #details .detail-overview:not(.game-overview) .detail-art-column{display:block}

/* Pop-out Explorer is the window surface, with scrolling inside its file panes. */
.explorer-popup{padding:0}
.explorer-popup .builder-explorer{margin:0;border:0;border-radius:0;box-shadow:none}
.explorer-files:is(.explorer-view-large,.explorer-view-extra,.explorer-view-huge){grid-auto-rows:max-content;grid-template-columns:repeat(auto-fill,minmax(calc(var(--art-size) + 32px),1fr))}
.explorer-files:is(.explorer-view-large,.explorer-view-extra,.explorer-view-huge) .explorer-entry-art{min-width:var(--art-size);min-height:var(--art-size);max-width:none}
.scratch-open .explorer-scratch-tab{display:none}
.scratch-open .explorer-scratch{right:0}
@media(min-width:761px){.scratch-open .explorer-body{grid-template-columns:var(--places-width,172px) minmax(0,1fr)}.scratch-open.scratch-pinned .explorer-body{grid-template-columns:var(--places-width,172px) minmax(0,1fr) min(var(--scratch-width,300px),40%)}}
@media(max-width:760px){.scratch-open .explorer-body{grid-template-columns:minmax(0,1fr)}}
.game-sd-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 24px}
.game-sd-intro{flex:1 1 230px;min-width:0}
.game-sd-intro h3{margin:0 0 8px;padding-top:0;border-top:0}
.game-sd-intro p{margin:0}
#builder-panel #details .game-sd-header .game-sd-actions{margin:0 0 0 auto;flex:none;justify-content:flex-end}

.explorer-source{width:auto;max-width:170px;margin:0;padding:6px 28px 6px 10px;font-size:12px;min-height:32px}
.explorer-title-actions{display:flex;align-items:center;gap:8px}
@media(max-width:480px){.explorer-source{max-width:135px}.explorer-title-actions .explorer-button:not(.explorer-pop-circle) span{display:none}}

/* Let moving panels carry their shadows; the page clips at the viewport edge. */
#builder-panel.explorer-layout-moving{overflow:visible}
