/* The approved Pencil Studio workbench. Keep the piece editor in its dialog. */
.studio-page body{display:block;min-height:100dvh;background:var(--table)}
.studio-page .site-header{height:72px;min-height:72px}
.studio-page .studio-toolbar{position:relative;display:block;height:228px;padding:40px 64px 24px;border:0;background:var(--table)}
.studio-page .studio-library-menu{position:absolute;z-index:10;top:206px;left:64px;width:160px;padding:8px;border:1px solid var(--line);border-radius:7px;background:var(--paper);box-shadow:var(--shadow)}
.studio-page .studio-library-menu[hidden]{display:none}
.studio-page .studio-library-menu button{display:block;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:5px;background:transparent;text-align:left;font:600 14px/20px var(--font-ui)}
.studio-page .studio-library-menu button:hover{background:var(--control)}
.studio-page .studio-back{display:none}
.studio-page .studio-toolbar h1{margin:0;font:500 44px/48px var(--font-title);letter-spacing:-.025em}
.studio-page .studio-toolbar h1 span{display:block;margin:24px 0 0;color:var(--muted);font:400 16px/24px var(--font-ui);letter-spacing:0}
.studio-page .studio-tools{display:flex;align-items:center;justify-content:flex-start;gap:8px;margin-top:24px}
.studio-page .studio-tools button{flex:none;width:auto;min-height:44px;padding:10px 16px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink);font:600 14px/20px var(--font-ui)}
.studio-page .studio-tools button:hover{background:#f7f5ef}
.studio-page .studio-tools #studio-library{border-color:var(--line)}
.studio-page .studio-tools button[hidden]{display:none!important}
.studio-page .studio-tools #studio-library{display:inline-flex}
.studio-page .studio-tools #studio-ideas,.studio-page .studio-tools #studio-manage,.studio-page .studio-tools #studio-finish,.studio-page .studio-tools #studio-place{display:none}
.studio-page .workspace{display:grid;grid-template-columns:230px minmax(0,1fr) 240px;gap:20px;width:calc(100% - 128px);height:760px;min-height:760px;margin:0 64px 40px;overflow:visible}
.studio-page .studio-library-panel{align-self:stretch;min-width:0;max-height:none;padding:20px;border:0;background:var(--paper);overflow-y:auto}
.studio-page .studio-library-panel .eyebrow,.studio-page .studio-library-panel>p:first-of-type,.studio-page .studio-library-panel #draft-library-status,.studio-page .studio-library-panel #draft-new,.studio-page .studio-library-panel #draft-library-refresh{display:none}
.studio-page .studio-library-panel h2{margin:0 0 12px;font:600 16px/22px var(--font-ui);letter-spacing:0}
.studio-page .studio-library-panel #draft-list{display:grid;gap:12px}
.studio-page .studio-library-panel .draft-library-row{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:0;padding:0;border:0}
.studio-page .studio-library-panel .draft-library-card{display:flex;align-items:center;justify-content:space-between;width:100%;height:100px;min-height:100px;padding:16px 0 15px!important;gap:16px!important;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;text-align:left}
.studio-page .studio-library-panel .draft-library-card:hover{background:#f8f6ef}
.studio-page .studio-library-panel .draft-library-image{display:none}
.studio-page .studio-library-panel .draft-library-card>span:nth-child(2){display:flex;flex:0 0 103px;flex-direction:column;min-width:0;gap:4px}
.studio-page .studio-library-panel .draft-library-card strong{display:block;overflow:hidden;max-width:103px;white-space:nowrap;text-overflow:ellipsis;font:600 16px/22px var(--font-ui)}
.studio-page .studio-library-panel .draft-library-card small{display:block;max-width:103px;margin:0;color:var(--muted);font:400 14px/21px var(--font-ui)}
.studio-page .studio-library-panel .draft-library-open{display:inline-flex;align-items:center;justify-content:center;flex:0 0 71px;width:71px;height:44px;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:7px;background:var(--paper);font:600 14px/20px var(--font-ui);white-space:nowrap}
.studio-page .studio-library-panel .draft-library-delete{align-self:center;height:44px;min-height:44px;padding:10px 18px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink);font:600 14px/20px var(--font-ui);white-space:nowrap}
.studio-page .studio-library-panel #studio-ideas{display:none}
.studio-page .workspace .world{position:relative;min-width:0;height:760px;min-height:760px;background:var(--table);overflow:hidden}
.studio-page .world-top-controls,.studio-page .world-bottom,.studio-page .world .hint{display:none!important}
.studio-page .studio-canvas-header{position:absolute;z-index:4;top:0;left:0;right:0;padding:0;pointer-events:none}
.studio-page .studio-canvas-header h2{margin:0;color:var(--ink);font:500 24px/30px var(--font-title)}
.studio-page .studio-canvas-header #studio-status{margin:11px 0 0;color:var(--muted);font:400 14px/21px var(--font-ui)}
.studio-page .studio-canvas-header #studio-retry,.studio-page .studio-canvas-header #studio-undo-bar{pointer-events:auto}
.studio-page .studio-canvas-header #studio-retry{margin:4px 0;padding:0;min-height:28px;font-size:12px}
.studio-page .studio-canvas-header #studio-technique{display:none}
.studio-page .world .scene{position:absolute;top:74px;left:50%;width:min(620px,calc(100% - 24px));height:550px;transform:translateX(-50%);background:transparent}
.studio-page #scene [data-draft-index]:focus{outline:none}
.studio-page #scene [data-draft-index]:focus-visible>use,.studio-page #scene [data-draft-index][data-selected="true"]>use{filter:url(#piece-selection-outline)}
.studio-page .studio-piece-actions{position:absolute;z-index:5;top:636px;left:0;display:flex;gap:8px}
.studio-page .studio-piece-actions[hidden]{display:none}
.studio-page .studio-piece-actions button{display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:44px;padding:10px 16px;border-radius:7px;font:600 14px/20px var(--font-ui)}
.studio-page .studio-piece-actions .primary{background:var(--deep);color:var(--paper);border:1px solid var(--deep)}
.studio-page .studio-piece-actions .secondary{background:var(--paper);border:1px solid var(--line);color:var(--ink)}
.studio-page .studio-mobile-rename,.studio-page .studio-select-hint{display:none}
.studio-page .world .build-dock{display:none}
.studio-page .world:has(.placement-actions:not([hidden])) .build-dock{display:flex;z-index:7;bottom:20px;max-width:440px}
.studio-page .world:has(.placement-actions:not([hidden])) .studio-piece-actions{display:none}
.studio-page .studio-cost-panel{align-self:start;justify-self:stretch;height:364px;max-height:none;margin-top:198px;padding:20px;border:0;background:var(--paper);overflow:hidden}
.studio-page .studio-cost-panel h2{margin:0 0 11px;font:500 24px/29px var(--font-title);letter-spacing:-.02em;white-space:nowrap}
.studio-page .studio-summary-figures{display:grid;gap:12px}
.studio-page .studio-summary-figures>div{display:flex;align-items:center;justify-content:space-between;min-height:24px;gap:8px;color:var(--muted);font:400 14px/24px var(--font-ui)}
.studio-page .studio-summary-figures strong{color:var(--ink);font:600 14px/24px var(--font-data)}
.studio-page .studio-summary-note{margin:12px 0;color:var(--ink);font:400 14px/21px var(--font-ui)}
.studio-page .studio-cost-panel .studio-metrics,.studio-page .studio-cost-panel #studio-coverage,.studio-page .studio-cost-panel #studio-place,.studio-page .studio-mobile-total{display:none!important}
.studio-page .studio-cost-panel #studio-finish,.studio-page .studio-cost-panel #studio-manage{display:flex;justify-content:center;align-items:center;width:100%;min-height:44px;margin:0;padding:10px;border:1px solid var(--line);border-radius:7px;background:var(--paper);font:600 14px/20px var(--font-ui)}
.studio-page .studio-cost-panel #studio-finish{margin-top:12px;border-color:var(--deep);background:var(--deep);color:var(--paper)}
.studio-page .studio-cost-panel #studio-manage{margin-top:12px}
.studio-page .studio-empty{top:43%}
.studio-page .studio-empty button{pointer-events:auto}
@media(min-width:1200px) and (max-width:1350px){
 .studio-page .workspace{grid-template-columns:210px minmax(0,1fr) 224px;gap:16px;width:calc(100% - 80px);margin-inline:40px}
 .studio-page .studio-toolbar{padding-inline:40px}
 .studio-page .studio-library-menu{left:40px}
}
@media(max-width:1199px){
 .studio-page{--studio-art-height:clamp(225px,57.7vw,440px)}
 .studio-page .site-header{height:56px;min-height:56px}
 .studio-page .studio-toolbar{height:201px;padding:24px 24px 0}
 .studio-page .studio-toolbar h1{font-size:34px;line-height:37px}
 .studio-page .studio-toolbar h1 span{margin-top:24px;font:400 16px/24px var(--font-ui)}
 .studio-page .studio-tools{margin-top:24px;gap:8px}
 .studio-page .studio-tools button{padding-inline:16px;white-space:nowrap}
 .studio-page .studio-tools #studio-rename{display:none}
 .studio-page .studio-library-menu{display:none}
 .studio-page .workspace{display:flex;flex-direction:column;gap:0;width:calc(100% - 48px);height:auto;min-height:0;margin:0 24px 24px}
 .studio-page .studio-library-panel[hidden]{display:none}
 .studio-page .workspace .world{flex:none;width:100%;height:calc(458px + var(--studio-art-height));min-height:calc(458px + var(--studio-art-height))}
 .studio-page .world .scene{top:74px;width:min(100% - 12px,620px);height:var(--studio-art-height)}
 .studio-page .studio-piece-actions{top:calc(86px + var(--studio-art-height))}
 .studio-page .studio-mobile-rename{position:absolute;z-index:5;top:calc(142px + var(--studio-art-height));left:0;display:block;width:100%;min-height:44px;border:1px solid var(--line);border-radius:7px;background:var(--paper);font:600 14px/20px var(--font-ui)}
 .studio-page .studio-mobile-rename[hidden]{display:none}
 .studio-page .studio-select-hint{position:absolute;top:calc(198px + var(--studio-art-height));left:0;display:block;margin:0;color:var(--muted);font:400 14px/21px var(--font-ui)}
 .studio-page .studio-select-hint[hidden]{display:none}
 .studio-page .studio-cost-panel{display:grid;grid-template-columns:1fr auto;align-items:center;align-self:auto;gap:12px;width:100%;height:auto;max-height:none;margin:24px 0 0;padding:0;border:0;background:transparent;overflow:visible}
 .studio-page .studio-cost-panel h2,.studio-page .studio-cost-panel .studio-summary-note,.studio-page .studio-summary-figures{display:none}
 .studio-page .studio-cost-panel .studio-metrics{display:flex!important;grid-column:1;grid-row:1;flex-direction:row;align-items:center;gap:4px;margin:0;max-width:none;color:var(--muted);font:400 16px/24px var(--font-ui);text-align:left}
 .studio-page .studio-cost-panel .studio-metrics strong{color:var(--ink);font:400 16px/24px var(--font-ui)}
 .studio-page .studio-cost-panel #studio-footprint,.studio-page .studio-cost-panel #studio-cost,.studio-page .studio-cost-panel #studio-balance{display:none}
 .studio-page .studio-cost-panel .studio-metrics::after{content:'· Balance covers ' attr(data-covered);color:var(--muted)}
 .studio-page .studio-mobile-total{display:block!important;grid-column:2;grid-row:1;color:var(--ink);font:600 14px/21px var(--font-data)}
 .studio-page .studio-cost-panel #studio-finish{grid-column:1/-1;grid-row:2;margin:0;width:100%;min-height:44px}
 .studio-page .studio-cost-panel #studio-manage{display:none}
 .studio-page .world:has(.placement-actions:not([hidden])) .build-dock{bottom:12px;width:calc(100% - 16px)}
 .studio-page .studio-empty{top:177px;width:min(285px,92%)}
 .studio-page .studio-empty-mark,.studio-page .studio-empty #studio-prompt,.studio-page .studio-empty #studio-empty-note{display:none}
 .studio-page .studio-empty h2{margin:0 0 7px;font:500 23px/26px var(--font-title)}
 .studio-page .studio-empty p{margin:0 0 8px;font:400 12px/16px var(--font-ui)}
 .studio-page .studio-empty button{min-height:40px}
}
@media(max-width:420px){.studio-page .site-header{padding-inline:14px!important}.studio-page .site-header .brand{font-size:20px}.studio-page .studio-piece-actions button{padding-inline:15px}}

/* Studio frame m2Qpdc: the draft library borders a full-height working canvas. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1200px){
 .studio-page body{height:100dvh;min-height:0;overflow:hidden}
 .studio-page .studio-toolbar{display:none!important}
 .studio-page .workspace{position:relative;display:grid;grid-template-columns:246px minmax(0,1fr);gap:0;width:100%;height:calc(100dvh - 72px);min-height:0;margin:0;overflow:hidden}
 .studio-page .studio-library-panel{position:relative;display:block;align-self:stretch;height:100%;padding:0;border:0;border-right:1px solid var(--line);background:var(--paper);overflow-y:auto}
 .studio-page .studio-sidebar-header{display:block;padding:18px;border-bottom:1px solid var(--line)}
 .studio-page .studio-sidebar-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
 .studio-page .studio-sidebar-title-row h2{margin:0;font:600 18px/24px var(--font-title)}
 .studio-page .studio-sidebar-add{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:6px;background:var(--deep);color:var(--paper);font:500 22px/1 var(--font-ui)}
 .studio-page .studio-sidebar-search{display:flex;align-items:center;gap:8px;height:36px;padding:0 10px;border:1px solid var(--line);border-radius:7px;background:var(--table)}
 .studio-page .studio-sidebar-search .ui-icon{width:14px;height:14px;flex:none;color:var(--muted)}
 .studio-page .studio-sidebar-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font:400 12px/18px var(--font-ui)}
 .studio-page .studio-sidebar-search input::placeholder{color:var(--muted)}
 .studio-page .studio-library-panel #draft-library-title{display:none}
 .studio-page .studio-library-panel #draft-list{display:grid;gap:8px;padding:10px}
 .studio-page .studio-library-panel .draft-library-row{position:relative;display:block;min-width:0;margin:0;padding:0;border:0}
 .studio-page .studio-library-panel .draft-library-row[hidden]{display:none}
 .studio-page .studio-library-panel .draft-library-card{display:flex;align-items:center;justify-content:flex-start;gap:10px!important;width:100%;height:68px;min-height:68px;padding:10px!important;border:1px solid transparent;border-radius:8px;background:transparent;text-align:left}
 .studio-page .studio-library-panel .draft-library-card[data-current="true"]{border-color:var(--line);background:var(--table)}
 .studio-page .studio-library-panel .draft-library-card:hover{background:var(--table)}
 .studio-page .studio-library-panel .draft-library-image{display:grid;place-items:center;flex:none;width:40px;height:40px;overflow:hidden;border-radius:6px;background:#e6eee5}
 .studio-page .studio-library-panel .draft-library-image svg{width:100%;height:100%}
 .studio-page .studio-library-panel .draft-library-card>span:nth-child(2){display:flex;flex:1;flex-direction:column;min-width:0;gap:3px}
 .studio-page .studio-library-panel .draft-library-card strong{max-width:100%;font:600 13px/18px var(--font-ui)}
 .studio-page .studio-library-panel .draft-library-card small{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:400 11px/15px var(--font-ui)}
 .studio-page .studio-library-panel .draft-library-open{display:none}
 .studio-page .studio-library-panel .draft-library-delete{position:absolute;top:50%;right:9px;display:grid;place-items:center;width:30px;height:30px;min-height:30px;padding:0;transform:translateY(-50%);border:0;background:var(--paper);font-size:0;opacity:0;pointer-events:none}
 .studio-page .studio-library-panel .draft-library-delete::before{content:'';width:15px;height:15px;background:#9b4735;mask:url('/icons/trash-2.svg') center/contain no-repeat;-webkit-mask:url('/icons/trash-2.svg') center/contain no-repeat}
 .studio-page .studio-library-panel .draft-library-row:hover .draft-library-delete,.studio-page .studio-library-panel .draft-library-row:focus-within .draft-library-delete{opacity:1;pointer-events:auto}
 .studio-page .studio-sidebar-ideas{display:block;width:calc(100% - 20px);min-height:38px;margin:8px 10px;padding:8px 10px;border:0;border-radius:7px;background:transparent;color:var(--muted);text-align:left;font:500 12px/18px var(--font-ui)}
 .studio-page .studio-sidebar-ideas:hover{background:var(--table);color:var(--ink)}
 .studio-page .workspace .world{position:relative;width:100%;height:100%;min-height:0;overflow:hidden;background:var(--table)}
 .studio-page .world .scene{position:absolute;inset:0;width:100%;height:100%;transform:none;background:transparent}
 .studio-page .studio-canvas-header{top:18px;left:24px;right:auto;width:260px}
 .studio-page .studio-canvas-header h2{font:600 24px/30px var(--font-title)}
 .studio-page .studio-canvas-header #studio-status{margin-top:2px;color:var(--muted);font:700 10px/16px var(--font-ui);letter-spacing:.07em;text-transform:uppercase}
 .studio-page .world-top-controls{display:flex!important;top:18px;left:50%;right:auto;width:max-content;transform:translateX(-50%)}
 .studio-page .world-top-controls .current-location{display:none}
 .studio-page .world .world-location{display:flex!important;margin:0}
 .studio-page .studio-canvas-actions{position:absolute;z-index:5;top:18px;right:24px;display:flex;gap:8px}
 .studio-page .studio-canvas-actions[hidden]{display:none}
 .studio-page .studio-canvas-actions button{display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:0;border:1px solid var(--line);border-radius:7px;background:var(--paper)}
 .studio-page .studio-canvas-actions button:disabled{opacity:.5}
 .studio-page .studio-canvas-actions .ui-icon{width:16px;height:16px}
 .studio-page .studio-piece-actions{position:absolute;top:auto;bottom:24px;left:50%;display:flex;gap:4px;align-items:center;padding:8px;transform:translateX(-50%);border-radius:10px;background:var(--paper);box-shadow:0 8px 24px #263a3020}
 .studio-page .studio-piece-actions button{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:10px 12px;border:0;border-radius:7px;background:transparent;color:var(--ink);font:600 13px/20px var(--font-ui)}
 .studio-page .studio-piece-actions button::before{content:'';display:block;flex:none;width:14px;height:14px;background:currentColor;mask-position:center;mask-size:contain;mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat}
 .studio-page .studio-piece-actions #studio-select-piece::before{mask-image:url('/icons/mouse-pointer-2.svg');-webkit-mask-image:url('/icons/mouse-pointer-2.svg')}
 .studio-page .studio-piece-actions #studio-add-piece::before{mask-image:url('/icons/plus.svg');-webkit-mask-image:url('/icons/plus.svg')}
 .studio-page .studio-piece-actions #studio-duplicate-piece::before{mask-image:url('/icons/copy.svg');-webkit-mask-image:url('/icons/copy.svg')}
 .studio-page .studio-piece-actions #studio-delete-piece::before{mask-image:url('/icons/trash-2.svg');-webkit-mask-image:url('/icons/trash-2.svg')}
 .studio-page .studio-piece-actions #studio-select-piece{background:var(--table)}
 .studio-page .studio-piece-actions #studio-add-piece{border:0;background:transparent;color:var(--ink)}
 .studio-page .studio-piece-actions #studio-delete-piece{color:#b64d37}
 .studio-page .studio-piece-actions button:hover{background:var(--table)}
 .studio-page .studio-piece-actions button:disabled{opacity:.4}
 .studio-page .studio-cost-panel{position:absolute;z-index:4;right:24px;bottom:24px;display:block;width:218px;height:auto;max-height:none;margin:0;padding:14px;border:1px solid var(--line);border-radius:9px;background:var(--paper);box-shadow:0 5px 16px #263a3014}
 .studio-page .studio-cost-panel h2{margin:0 0 8px;font:600 16px/22px var(--font-title)}
 .studio-page .studio-summary-figures{gap:4px}
 .studio-page .studio-summary-figures>div{min-height:20px;font:400 12px/20px var(--font-ui)}
 .studio-page .studio-summary-figures strong{font:600 12px/20px var(--font-data)}
 .studio-page .studio-summary-note{display:none}
 .studio-page .studio-cost-panel #studio-finish,.studio-page .studio-cost-panel #studio-manage{min-height:36px;margin-top:8px;padding:7px;font:600 12px/18px var(--font-ui)}
 .studio-page .world.studio-preview .studio-piece-actions,.studio-page .workspace:has(.world.studio-preview) .studio-cost-panel{visibility:hidden}
 .studio-page .studio-empty{top:50%}
}
@media(max-width:1199px){
 .studio-page .studio-canvas-actions{display:none!important}
 .studio-page .studio-piece-actions{gap:6px;max-width:100%}
 .studio-page .studio-piece-actions #studio-select-piece{display:none}
 .studio-page .studio-piece-actions button{min-height:44px;padding:10px 12px}
 .studio-page .studio-piece-actions #studio-undo-piece{display:grid;place-items:center;width:44px;padding:10px;border:1px solid var(--line);border-radius:7px;background:var(--paper)}
 .studio-page .studio-piece-actions #studio-undo-piece .ui-icon{width:16px;height:16px}
}
@media(max-width:420px){.studio-page .studio-piece-actions button{padding-inline:9px;font-size:12px}}
