/* Guided gift builder: one stage, one inspector, no mirrored rails. */
body.studio-v2{--bg:#FBF8F7;--panel:#FFF;--input:#FFF3F7;--text:#29252A;--muted:#6C6268;--line:#E9D7DE;--blue:#A13B61;--hover:#85304F;--button:#A13B61;--button-text:#FFF;--panel-shadow:0 14px 44px #43253409;--stage:#F4F4F5;background:var(--bg);color:var(--text);font-family:Lato,"Noto Sans SC",sans-serif;font-size:14px;display:block;height:auto;min-height:100vh;overflow:auto;color-scheme:light}
body.studio-v2:not(.light){--bg:#1C191B;--panel:#252124;--input:#302329;--text:#F6EFF2;--muted:#C8BAC0;--line:#494047;--blue:#FFA0C3;--hover:#FFB5D0;--button:#F5A0BF;--button-text:#301722;--panel-shadow:0 14px 44px #130C1240;--stage:#161616;color-scheme:dark}
.studio-v2 *{box-sizing:border-box}.studio-v2 [hidden]{display:none!important}.studio-v2 button,.studio-v2 input,.studio-v2 select,.studio-v2 textarea{font-family:inherit}.studio-v2 button{cursor:pointer;color:var(--text);border:1px solid var(--line);border-radius:11px;background:var(--panel);min-height:44px;padding:8px 13px;line-height:1.25;font-size:13px;font-weight:700}.studio-v2 button:hover:not(:disabled){background:var(--input);border-color:var(--blue)}.studio-v2 button:disabled{cursor:not-allowed;opacity:.5}.studio-v2 button.primary{background:var(--button);border-color:var(--button);color:var(--button-text)}.studio-v2 button.primary:hover:not(:disabled){background:var(--hover);border-color:var(--hover)}.studio-v2 :focus-visible{outline:3px solid var(--blue);outline-offset:3px}.studio-v2 ::selection{background:#EDD0DC;color:#29252A}.studio-v2 input,.studio-v2 textarea{caret-color:var(--blue)}.studio-v2 *{scrollbar-color:var(--line) transparent;scrollbar-width:thin}
.studio-header{position:relative;z-index:30;width:100%;height:auto;min-height:88px;display:grid!important;grid-template-columns:190px 1fr auto;align-items:center;gap:24px;padding:12px 30px;background:var(--panel);border-bottom:1px solid var(--line)}.studio-v2 .brand{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:160px;width:160px;padding:8px 0;text-decoration:none}.studio-v2 .brand img{width:160px;height:auto;object-fit:contain}.studio-v2 .brand>span{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:700}.studio-v2 .brand-logo-light{display:none}.studio-v2.light .brand-logo-light{display:block}.studio-v2.light .brand-logo-dark{display:none}
.chapter-nav{display:flex;gap:4px;justify-content:center;align-items:center}.studio-v2 .chapter-nav button{display:flex;align-items:center;gap:10px;min-height:44px;border:0;background:transparent;padding:10px 17px;color:var(--muted);font-size:14px}.chapter-nav .chapter-mark{display:grid;place-items:center;width:23px;height:23px;border:1px solid var(--line);border-radius:50%;font-size:11px;font-variant-numeric:tabular-nums}.studio-v2 .chapter-nav button[aria-selected=true]{color:var(--text);background:var(--input)}.chapter-nav button[aria-selected=true] .chapter-mark{background:var(--blue);color:#fff;border-color:var(--blue)}.studio-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.studio-actions>button{min-width:40px}.studio-actions #undo,.studio-actions #redo,.studio-actions #load,.studio-actions #theme{font-size:0;padding:10px;width:40px;height:40px}.studio-actions #undo svg,.studio-actions #redo svg,.studio-actions #load svg,.studio-actions #theme svg{width:18px;height:18px;display:block}.studio-actions #theme span{display:none}.studio-actions #save{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:10px;background:var(--input)}.studio-v2 button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}.studio-v2 .language-control{margin:0}.studio-v2 #languageMenuTrigger{width:40px;padding:10px;font-size:0;gap:0}.studio-v2 #languageMenuTrigger>span,.studio-v2 #languageMenuTrigger>.menu-chevron{display:none}.studio-v2 #languageMenuTrigger .language-globe{width:18px;height:18px}.studio-v2 .dropdown-menu{background:var(--panel);border-color:var(--line);min-width:210px;box-shadow:0 12px 32px #20101B20}.studio-v2 .dropdown-menu button{border:0;background:none;width:100%;text-align:left;font-size:13px;min-height:44px}.studio-v2 .dropdown-menu button:hover{background:var(--input)}
.builder-main{display:block!important;min-height:calc(100vh - 145px);width:100%}.gallery-page{max-width:1240px;padding:52px 40px 64px;margin:0 auto}.gallery-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:30px;margin-bottom:30px}.gallery-heading h1{font-size:38px;line-height:1.12;letter-spacing:-.025em;margin:0 0 15px;max-width:16em;font-weight:800}.gallery-heading p{font-size:15px;line-height:1.6;max-width:58ch;color:var(--muted);margin:0}.studio-v2 .quiet-button{white-space:nowrap;background:transparent;min-height:44px}.start-paths{display:flex;gap:12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:16px 0;margin:0 0 36px}.studio-v2 .start-paths button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;flex:1;background:var(--panel)}.start-paths svg{color:var(--blue)}.gallery-content{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:18px 24px}.gallery-content>.field{margin:0}.gallery-content>p,.gallery-content>#featureCatalogResults,.gallery-content>button{grid-column:1/-1}.gallery-content>p{margin:0;color:var(--muted);line-height:1.5}.studio-v2 .gallery-content .feature-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 24px}.studio-v2 .feature-template{display:flex;align-items:flex-start;text-align:left;border:0;padding:0 0 10px;background:transparent;gap:7px;min-width:0;overflow:hidden;border-radius:14px}.studio-v2 .feature-template:hover{background:var(--input);outline:1px solid var(--blue);outline-offset:7px}.studio-v2 .feature-thumbnail{background:var(--input);border-radius:14px;aspect-ratio:1.28;width:100%;min-height:180px;color:var(--muted);overflow:hidden}.studio-v2 .feature-template img{display:block;width:100%;height:auto;aspect-ratio:1.28;object-fit:cover;border-radius:14px}.studio-v2 .feature-template>strong{font-size:17px;line-height:1.4;padding:4px 5px 0}.studio-v2 .feature-template>span:not(.feature-thumbnail){padding:0 5px;font-size:13px;color:var(--muted)}.studio-v2 .feature-template-swatches{justify-content:flex-start;min-height:24px;align-items:center}.studio-v2 .feature-template-swatches i{width:15px;height:15px}.studio-v2 #featureCatalogResults>.row{margin-top:30px;justify-content:center}.studio-v2 #featureCatalogResults>.row>span{padding:0 14px}.gallery-content>button{justify-self:start}
.editor-page{padding:0 24px 22px}.editor-topline{display:flex;align-items:center;gap:16px;padding:14px 4px;min-height:56px;color:var(--muted);font-size:12px}.studio-v2 .text-button{border:0;padding:5px 0;background:none;color:var(--blue);min-height:32px}.editor-topline .local-note{margin-left:auto}.editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 372px;gap:18px;align-items:start}.product-stage{min-width:0;position:sticky;top:12px;display:grid;grid-template-rows:minmax(420px,1fr) auto auto;height:calc(100vh - 174px);min-height:590px;overflow:visible}.studio-v2 #viewport{min-width:0;min-height:0;height:auto;position:relative;overflow:hidden;background:var(--stage);border-radius:18px 18px 0 0;display:block;isolation:isolate}.studio-v2 #viewport>canvas{display:block;width:100%;height:100%}.studio-v2 .viewport-label{top:22px;left:24px;right:auto;max-width:calc(100% - 48px);padding:0;background:none;box-shadow:none;border:0;pointer-events:none;display:flex;flex-direction:column;gap:5px;color:var(--text)}.studio-v2 .viewport-label strong{font-size:18px;line-height:1.3;font-weight:700}.studio-v2 .viewport-label span{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;max-width:65ch;line-height:1.5}.studio-v2 .view-dock{padding:12px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;min-height:70px;background:var(--panel);border:0;border-top:1px solid var(--line);border-radius:0;overflow:visible;position:relative;z-index:10}.studio-v2 .view-dock .view-options{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.studio-v2 .view-dock label{font-size:12px;color:var(--muted);white-space:nowrap;display:flex;gap:5px;align-items:center}.studio-v2 .view-dock button{font-size:13px;min-height:44px;padding:7px 9px}.studio-v2 .seg{display:flex;gap:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--input)}.studio-v2 .seg button{border:0;border-radius:0;background:transparent}.studio-v2 .seg button.active{background:var(--blue);color:#fff}.studio-v2:not(.light) .seg button.active{color:#24191F}.studio-v2 .plate-choices{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.studio-v2 .plate-choices>span{display:none}.studio-v2 .plate-choices .dropdown-menu{bottom:calc(100% + 8px);top:auto;max-height:400px;overflow:auto;left:0;right:auto;min-width:290px}.studio-v2 .selection-hud,.studio-v2 .part-selection{display:block;width:auto;margin:0;padding:0}.studio-v2 #partSelectionMenu{max-width:260px}.studio-v2 .view-dock details{position:relative}.studio-v2 .view-dock summary{cursor:pointer;font-size:13px;min-height:44px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:8px;padding:8px}.studio-v2 .view-dock details[open]>div{position:absolute;bottom:calc(100% + 6px);right:0;min-width:230px;background:var(--panel);padding:12px;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 28px #1C101D20}.stage-meta{display:flex;align-items:center;gap:10px;padding:13px 18px;background:var(--panel);border-radius:0 0 18px 18px;color:var(--muted)}.stage-meta>div{display:flex;flex-direction:column;gap:3px;min-width:0}.stage-meta strong{font-size:13px;color:var(--text)}.stage-meta div>span{font-size:13px;line-height:1.4}.stage-meta>span:last-child{margin-left:auto;font-size:13px;text-align:right;max-width:110px;line-height:1.5}.stage-meta .swatch{width:22px;height:22px;border-radius:7px;flex:none}
.inspector{display:block;background:var(--panel);border:1px solid var(--line);border-radius:19px;box-shadow:var(--panel-shadow);min-width:0;padding:22px 20px 0;overflow:visible}.inspector-heading h1{font-size:26px;letter-spacing:-.02em;line-height:1.2;margin:0 0 8px}.inspector-heading p{font-size:13px;color:var(--muted);line-height:1.55;margin:0 0 22px}.inspector-nav{display:flex;gap:5px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:16px}.studio-v2 .inspector-nav button{font-size:12px;padding:8px 10px;min-height:38px;background:none;border-color:transparent}.studio-v2 .inspector-nav button[aria-selected=true]{background:var(--input);border-color:var(--line);color:var(--blue)}.inspector-subnav{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:18px}.inspector-subnav:empty{display:none}.studio-v2 .inspector-subnav button{min-height:34px;font-size:12px;padding:7px 10px}.studio-v2 .inspector-subnav button.active{border-color:var(--blue);color:var(--blue)}.studio-v2 #controls,.studio-v2 #sourceControls{padding:0;border:0;overflow:visible;height:auto;max-height:none;display:block}.studio-v2 #controls>h3:first-child,.studio-v2 #sourceControls>h3:first-child{font-size:16px;margin:0 0 15px}.studio-v2 h3{font-family:inherit;font-size:15px;line-height:1.4;margin:26px 0 12px}.studio-v2 .field{display:block;margin:17px 0}.studio-v2 .field>span{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:13px;margin-bottom:9px;line-height:1.45;color:var(--text)}.studio-v2 .field b{font-size:12px;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}.studio-v2 input[type=text],.studio-v2 input[type=number],.studio-v2 select,.studio-v2 textarea{border:1px solid var(--line);border-radius:9px;background:var(--input);color:var(--text);width:100%;padding:11px 12px;font-size:14px;min-height:44px}.studio-v2 input::placeholder,.studio-v2 textarea::placeholder{color:var(--muted);opacity:1}.studio-v2 input[type=range]{width:100%;accent-color:var(--blue);height:22px}.studio-v2 input[type=checkbox]{accent-color:var(--blue)}.studio-v2 .hint,.studio-v2 .note{color:var(--muted);font-size:13px;line-height:1.6;margin:12px 0}.studio-v2 .check{font-size:13px;min-height:44px;gap:10px;display:flex;align-items:center}.studio-v2 .divider{height:1px;border:0;background:var(--line);margin:25px 0}.studio-v2 .source-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:22px;padding:0;border:0}.studio-v2 .source-tabs button{display:flex;flex-direction:row;align-items:center;justify-content:center;min-height:44px;padding:8px 5px;gap:5px;font-size:12px}.studio-v2 .source-tabs button.active{background:var(--input);color:var(--blue);border-color:var(--blue)}.studio-v2 .source-tabs svg{width:15px;height:15px}.studio-v2 .choice-grid{gap:7px}.studio-v2 .choice-grid button{padding:9px 5px;min-height:44px;font-size:12px}.studio-v2 .choice-grid button.active,.studio-v2 .samples button.active{border-color:var(--blue);background:var(--input);color:var(--blue)}.studio-v2 .choice-grid button[data-choice=font]{overflow:hidden}.studio-v2 .dropzone{padding:22px 10px;border-color:var(--line);background:var(--input);border-radius:12px;line-height:1.5}.studio-v2 .sample-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.studio-v2 .sample-gallery img{aspect-ratio:1;object-fit:contain}.studio-v2 .wide{width:100%;margin:8px 0;min-height:44px}.studio-v2 .row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.studio-v2 .row input[type=color]{width:44px;flex:none}.studio-v2 .row>button{flex:1}.inspector-next{border-top:1px solid var(--line);padding:18px 0;margin-top:22px;position:sticky;bottom:0;background:var(--panel);z-index:4}.inspector-next button{width:100%;min-height:46px}.studio-v2 .v2-key-palette{display:grid;gap:8px;margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid var(--line)}.v2-key-colour{display:flex;align-items:center;gap:12px;font-size:13px}.v2-key-colour input{flex:none}.v2-key-colour.selected{background:var(--input);border-radius:8px;padding:6px}.v2-key-colour small{color:var(--muted)}
.review-facts{display:grid;grid-template-columns:1fr 1fr;gap:18px 12px;margin:0 0 24px}.review-facts>div{display:grid;gap:5px}.review-facts dt{font-size:12px;color:var(--muted)}.review-facts dd{font-size:15px;margin:0;font-weight:700;line-height:1.5}.review-swatches{display:flex;gap:6px;flex-wrap:wrap}.review-swatches span{width:22px;height:22px;border-radius:6px;border:1px solid #8886}.v2-check-list{display:grid;gap:0}.v2-check{padding:16px 0;border-top:1px solid var(--line)}.v2-check h3{display:flex;justify-content:space-between;gap:10px;margin:0 0 7px;font-size:14px}.v2-check h3 span{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.v2-check p{font-size:12px;line-height:1.6;color:var(--muted);margin:0}.v2-check.blocked h3 span{color:#B54555}.v2-check .fix-button{margin-top:10px;font-size:12px;min-height:40px}.v2-export-note{font-size:12px;line-height:1.65;padding:14px;background:var(--input);border-radius:10px;margin:18px 0}.v2-download-actions{display:grid;gap:8px;margin:18px 0}.v2-download-actions button{min-height:44px}.v2-small-actions{display:flex;gap:8px;flex-wrap:wrap}.v2-small-actions button{flex:1;min-height:44px;font-size:12px}.studio-footer{display:flex!important;gap:20px;justify-content:space-between;align-items:center;height:auto;min-height:50px;background:none;border:0;padding:12px 30px;color:var(--muted);font-size:11px}.studio-footer button{border:0;background:none;font-size:11px;min-height:32px}.studio-v2 dialog{background:var(--panel);color:var(--text);border:0;border-radius:16px;padding:24px;width:min(860px,calc(100vw - 32px));max-height:90vh}.studio-v2 dialog::backdrop{background:#1C101D88}.studio-v2 .dialog-head{margin-bottom:22px}.studio-v2 .dialog-head h2{font-size:24px;line-height:1.25}.studio-v2 .dialog-head button{min-width:44px;min-height:44px}.studio-v2 #modalBody{padding:0}.studio-v2 #toast{background:var(--text);color:var(--panel);border:0;border-radius:10px;font-size:13px;max-width:min(90vw,600px);line-height:1.5;z-index:1500}.skip-link{position:absolute;left:16px;top:-80px;z-index:3000;background:var(--panel);color:var(--text);padding:14px}.skip-link:focus{top:10px}.studio-v2 .feature-check-row{border-left-width:1px!important}.studio-v2 .feature-notice{border-left-width:1px!important}.studio-v2 .feature-bulk-list{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:1500px){.editor-grid{grid-template-columns:minmax(0,1fr) 408px;gap:32px}.inspector{padding:28px 28px 0}.editor-page{padding:0 36px 28px}.gallery-page{max-width:1340px}}
@media(max-width:1190px){.studio-header{grid-template-columns:170px 1fr;gap:8px 18px;padding:10px 22px}.chapter-nav{grid-column:1/-1;grid-row:2;justify-content:center;border-top:1px solid var(--line);padding-top:7px}.studio-actions{grid-column:2;grid-row:1}.editor-grid{grid-template-columns:minmax(0,1fr) 350px;gap:18px}.product-stage{height:calc(100vh - 210px);min-height:570px}.stage-meta>span:last-child{display:none}.editor-page{padding:0 16px 18px}.studio-v2 .view-dock .view-options{justify-content:center}.gallery-page{padding-top:38px}}
@media(max-width:850px){.editor-grid{grid-template-columns:minmax(0,1fr)}.product-stage{position:relative;top:auto;height:520px;min-height:0;grid-template-rows:minmax(260px,1fr) auto auto}.inspector{max-width:none;padding:24px 24px 0}.inspector-nav{position:sticky;top:0;background:var(--panel);z-index:8;padding-top:10px;margin-top:-10px}.inspector-next{position:static}.editor-topline .local-note{display:none}.gallery-page{padding:32px 24px 44px}.gallery-heading h1{font-size:34px}.studio-v2 .gallery-content .feature-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.studio-v2 .feature-thumbnail{min-height:140px}.studio-footer{padding:12px 24px}.studio-v2 .view-dock button,.studio-v2 .view-dock summary{min-height:40px}.studio-v2 .view-dock label{min-height:40px}}
@media(max-width:520px){body.studio-v2{font-size:14px}.studio-header{padding:10px 16px;grid-template-columns:160px 1fr;gap:8px}.studio-v2 .brand{width:160px;min-width:160px}.studio-v2 .brand>span{font-size:10px}.studio-actions{gap:5px}.studio-actions #load,.studio-actions #undo,.studio-actions #redo{display:none}.studio-v2 #save{font-size:0;width:40px;padding:10px}.studio-v2 #save svg{width:18px;height:18px}.studio-v2 #giftsMenuTrigger{min-height:40px;padding:8px;font-size:11px}.studio-actions{flex-wrap:wrap;max-width:170px}.studio-v2 #languageMenuTrigger{width:34px;padding:7px}.studio-v2 .chapter-nav button{font-size:13px;padding:9px 12px;gap:7px;min-height:44px;flex:1;justify-content:center}.chapter-nav .chapter-mark{width:21px;height:21px}.chapter-nav{width:100%;gap:2px}.gallery-page{padding:30px 18px 38px}.gallery-heading{display:block;margin-bottom:24px}.gallery-heading h1{font-size:31px;max-width:12em}.gallery-heading p{font-size:14px}.gallery-heading .quiet-button{margin-top:18px}.start-paths{display:grid;grid-template-columns:1fr;margin-bottom:24px;gap:8px;padding:12px 0}.studio-v2 .start-paths button{justify-content:flex-start;min-height:46px;padding-left:16px}.gallery-content{grid-template-columns:1fr;gap:14px}.studio-v2 .gallery-content .feature-card-grid{gap:22px 14px}.studio-v2 .feature-template>strong{font-size:15px}.studio-v2 .feature-template>span:not(.feature-thumbnail){font-size:11px}.studio-v2 .feature-thumbnail{min-height:110px}.studio-v2 .feature-template-swatches i{width:13px;height:13px}.editor-page{padding:0 10px 16px}.editor-topline{font-size:11px;gap:12px;padding:10px 4px}.product-stage{height:490px;border-radius:14px}.studio-v2 #viewport{border-radius:14px 14px 0 0}.studio-v2 .viewport-label{top:16px;left:16px;max-width:calc(100% - 32px)}.studio-v2 .viewport-label strong{font-size:16px}.studio-v2 .viewport-label span{font-size:11px}.studio-v2 .view-dock{padding:9px;gap:6px}.studio-v2 .view-dock button,.studio-v2 .view-dock summary{min-height:44px;padding:7px 9px}.studio-v2 .view-dock label{min-height:44px}.studio-v2 .plate-choices .dropdown-menu{min-width:270px;max-width:calc(100vw - 44px)}.studio-v2 .view-dock .view-options{gap:4px 8px}.stage-meta{padding:12px 14px}.stage-meta strong{font-size:12px}.stage-meta div>span{font-size:10px}.inspector{padding:22px 18px 0;border-radius:14px}.inspector-heading h1{font-size:25px}.studio-v2 .inspector-nav button{min-height:44px;padding:8px 9px}.studio-v2 .inspector-subnav button{min-height:44px}.studio-v2 .choice-grid button{min-height:44px}.studio-footer{padding:12px 18px;gap:8px;flex-wrap:wrap}.studio-footer>span:nth-child(2){display:none}.studio-v2 dialog{padding:20px;width:calc(100vw - 20px)}.studio-v2 .feature-bulk-list{grid-template-columns:1fr}.studio-v2 .feature-photo-review{grid-template-columns:1fr}.studio-v2 .field>span{font-size:13px}}
@media(prefers-reduced-motion:no-preference){.editor-page,.gallery-page{animation:v2-arrive .24s cubic-bezier(.16,1,.3,1)}@keyframes v2-arrive{from{filter:blur(1px);opacity:.92}to{filter:blur(0);opacity:1}}}
@media(prefers-reduced-motion:reduce){.studio-v2 *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(max-width:520px){.studio-v2 .studio-header{grid-template-columns:1fr auto;position:relative}.studio-v2 .studio-actions{grid-column:1/-1;grid-row:2;justify-content:flex-start;max-width:none;flex-wrap:nowrap;gap:6px}.studio-v2 .studio-actions #load,.studio-v2 .studio-actions #undo,.studio-v2 .studio-actions #redo{display:block}.studio-v2 .studio-actions>button,.studio-v2 .studio-actions #languageMenuTrigger{width:44px;min-height:44px;height:44px}.studio-v2 .studio-actions>.menu-wrap:not(.language-control){position:absolute;right:16px;top:22px}.studio-v2 .chapter-nav{grid-row:3}.studio-v2 #giftsMenuTrigger{min-height:44px}.studio-v2 .studio-actions #save{width:44px}.studio-v2 .studio-actions .language-control{margin-left:auto}}

.studio-v2 .builder-main{height:auto}.studio-v2 .chapter-nav,.studio-v2 .inspector-nav{margin-left:0}.studio-v2 .brand>span{margin-left:0}.gallery-heading>div:last-child{display:flex;flex-direction:column;gap:10px;align-items:flex-end}.studio-v2 .gallery-import{border:0;background:none;color:var(--muted);font-size:12px;min-height:40px;padding:4px 0}@media(max-width:520px){.gallery-heading>div:last-child{align-items:flex-start;margin-top:15px}.gallery-heading .quiet-button{margin-top:0}}

.studio-v2 .studio-header{position:sticky;top:0}.studio-v2 .product-stage{top:104px}@media(max-width:1190px){.studio-v2 .product-stage{top:154px}}@media(max-width:850px){.studio-v2 .product-stage{position:relative;top:auto}}

/* The chapter labels and inline header icons supersede the old toolbar rules. */
.studio-v2 .chapter-nav .chapter-label{font-size:14px;white-space:nowrap}
.studio-v2 .studio-actions :is(#undo,#redo,#load,#save,#theme)::before{content:none}
@media(max-width:520px){.studio-v2 .chapter-nav .chapter-label{font-size:13px}}

.start-mode-nav{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 16px}
.studio-v2 .start-mode-nav button{border:1px solid var(--line);border-radius:11px;background:var(--panel);color:var(--text);min-height:44px;padding:8px 15px;font-weight:700}
.studio-v2 .start-mode-nav button:hover,.studio-v2 .start-mode-nav button[aria-selected=true]{border-color:var(--blue)}
.studio-v2 .start-mode-nav button[aria-selected=true]{background:var(--input);color:var(--blue)}
.studio-v2 #startNewPanel .start-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0;max-width:840px;border:0;padding:0;column-gap:28px}
.studio-v2 #startNewPanel .start-paths button{justify-content:flex-start;min-height:76px;min-width:0;gap:13px;padding:10px 6px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;text-align:left}
.studio-v2 #startNewPanel .start-paths button:hover{background:var(--input)}
.start-paths button>span{flex:1;min-width:0}
.start-paths strong,.start-paths small{display:block}
.start-paths strong{font-size:16px}
.start-paths small{font-size:13px;font-weight:400;margin-top:4px;color:var(--muted)}
.start-paths .start-arrow{width:16px;height:16px;margin-left:auto}
.studio-v2 .view-dock .view-options{padding:4px 5px}
.studio-v2 .source-tabs button{display:grid;grid-template-columns:15px minmax(0,1fr);align-items:center;justify-items:start;gap:7px;min-height:44px;padding:8px 9px;text-align:left;line-height:1.2}
.studio-v2 .source-tabs button svg{margin:0;align-self:center}
.stage-meta{align-items:flex-start}
.stage-meta>div{flex:1;min-width:0}
.stage-meta #shapeLabel,.stage-meta #dimensionLabel,.stage-meta #designParts{
  display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.45
}
.text-size-controls{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.text-size-controls label{flex:1;min-width:0;margin-bottom:0}
.text-size-steps{display:flex;gap:5px}
.studio-v2 .text-size-steps button{min-width:44px;min-height:44px;padding:6px;font-size:17px}
.studio-v2 .v2-check h3 .check-status{width:25px;height:25px;display:inline-grid;place-items:center;padding:0;border-radius:50%;flex:none}
.check-status svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.v2-check.pass .check-status{color:#246744;background:#e8f4ec}
.v2-check.blocked .check-status{color:#9b2847;background:#fceaf0}
.v2-check.review .check-status{color:#7b501f;background:#fbf0dc}
.studio-v2:not(.light) .v2-check.pass .check-status{color:#b8e9ca;background:#254032}
.studio-v2:not(.light) .v2-check.blocked .check-status{color:#f4b7c9;background:#512f3c}
.studio-v2:not(.light) .v2-check.review .check-status{color:#f2d3a7;background:#473b2c}
@media(max-width:620px){
  .product-stage{height:auto;grid-template-rows:clamp(260px,72vw,340px) auto auto}
  .studio-v2 #startNewPanel .start-paths{grid-template-columns:1fr}
  .studio-v2 #startNewPanel .start-paths button{min-height:64px}
}

.studio-v2 #startNewPanel .start-paths{max-width:100%;column-gap:36px}
.studio-v2 #startNewPanel .start-paths button{min-height:99px;padding:14px 10px;gap:16px}
.studio-v2 #startNewPanel .start-paths button>svg:first-child{width:38px;height:38px;stroke-width:1.45}
.start-paths strong{font-size:19px}
.start-paths small{font-size:14px}
.quick-palettes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.studio-v2 .quick-palettes button{display:flex;align-items:center;gap:7px;text-align:left;min-height:44px;padding:8px}
.palette-dots{display:flex;gap:2px;flex:none}
.palette-dots i{width:11px;height:11px;border-radius:50%;border:1px solid var(--line)}
.studio-v2 .quick-palettes button[aria-pressed=true],.studio-v2 button[data-place-artwork][aria-pressed=true]{border-color:var(--blue);background:var(--input)}
.studio-v2 #plateVisibility[aria-checked=true]{background:var(--input);border-color:var(--blue)}
#viewport canvas.placement-active{cursor:move}
@media(max-width:520px){
  .studio-v2 #startNewPanel .start-paths button{min-height:82px}
  .studio-v2 #startNewPanel .start-paths button>svg:first-child{width:32px;height:32px}
}

.lucide-filters{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:10px;align-items:end}
.lucide-filters .field{min-width:0;margin-bottom:4px}
.studio-v2 .lucide-category-label select{display:block;width:100%;min-height:44px;margin-top:7px;padding:8px;background:var(--input);color:var(--text);border:1px solid var(--line);border-radius:6px}
@media(max-width:340px){.lucide-filters{grid-template-columns:1fr}}

.quick-palettes{max-height:230px;overflow:auto;padding:3px;scrollbar-gutter:stable}
.placement-tools{display:flex;gap:6px;align-items:center;justify-content:center;flex-wrap:wrap;flex-basis:100%;padding:0 0 7px;border-bottom:1px solid var(--line)}
.placement-tools .hint{margin:0;font-size:11px;line-height:1.4}
.studio-v2 .placement-tools button{min-height:36px}
@media(max-width:520px){.studio-v2 .placement-tools button{min-height:44px}}

.studio-v2 .start-paths .start-thumbnail {
  flex: none;
  display: block;
  width: 88px;
  height: 68px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--input);
}

@media (max-width: 520px) {
  .studio-v2 .start-paths .start-thumbnail {
    width: 68px;
    height: 54px;
  }
}

.prepare-page{max-width:1100px;margin:0 auto;padding:42px 30px 54px}
.prepare-heading{margin-bottom:24px}
.prepare-heading h1{font-size:clamp(28px,4vw,42px);line-height:1.12;margin:0 0 10px;letter-spacing:-.025em}
.prepare-heading p,.prepare-page p{line-height:1.55}
.prepare-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,310px);gap:26px;align-items:start}
.prepare-tool-content,.prepare-aside{min-width:0}
.prepare-tool-content{padding:18px 0;border-top:1px solid var(--line)}
.prepare-tool-content h2,.prepare-aside h2{font-size:18px;margin:0 0 8px}
.prepare-tool-content .field{max-width:560px}
.studio-v2 .prepare-aside{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:14px;padding:0 18px 14px;overflow:visible}
.prepare-aside section{padding:17px 0;border-bottom:1px solid var(--line)}
.prepare-aside p{color:var(--muted);font-size:13px}
.prepare-aside a{overflow-wrap:anywhere}
.prepare-aside .text-button{margin-top:12px}
.prepare-aside a{color:var(--blue);font-weight:700;display:inline-flex;align-items:center;min-height:44px;text-underline-offset:4px}
.prepare-design-name{display:block;margin:9px 0;overflow-wrap:anywhere}
.prepare-aside .review-swatches{margin-bottom:12px}
.studio-v2 .inspector-next{display:flex;flex-wrap:wrap;gap:8px}
.studio-v2 .chapter-nav button{padding-inline:11px}
@media(min-width:1091px) and (max-width:1220px){
  .studio-v2 .chapter-nav{grid-row:2;grid-column:1/-1}
}
@media(max-width:680px){
  .prepare-page{padding:24px 16px 36px}
  .prepare-layout{grid-template-columns:1fr;gap:18px}
}
@media(max-width:520px){
  .studio-v2 .chapter-nav button{padding-inline:3px;min-width:0;gap:0}
  .studio-v2 .chapter-nav .chapter-mark{display:none}
  .studio-v2 .chapter-nav .chapter-label{font-size:12px}
}

.studio-v2 #shareDesign{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;min-height:44px}
@media(max-width:520px){
 .studio-v2 .studio-actions #shareDesign{position:absolute;top:22px;right:16px;width:auto;padding-inline:10px}
}

.studio-v2 .import-colour-grid button[data-import-hex],
.studio-v2 .import-colour-grid button[data-import-hex]:hover:not(:disabled){
  background:var(--swatch);border-radius:50%;padding:0;min-height:0
}

.preview-view-bar{display:flex;justify-content:flex-end;padding-bottom:2px}
.studio-v2 .preview-angles button{min-width:44px;min-height:44px;padding:7px 12px;font-size:13px;font-weight:700}
.studio-v2 .preview-angles button:focus-visible{outline-offset:-3px}

/* Shared visual structure with the name builder, using Clicker controls. */
  .studio-v2 .studio-header.name-style-header {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  min-height: 0;
  padding: 9px max(14px, calc((100% - 1120px) / 2)) 12px;
}
.studio-v2 .name-style-header .brand {
  grid-column: 1;
  grid-row: 1;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: auto;
  min-width: 0;
  padding: 0;
}
.studio-v2 .name-style-header .brand img { width: 118px; flex: none; }
.studio-v2 .name-style-header .brand > span {
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  color: #a13b61;
  white-space: nowrap;
}
.studio-v2 .name-style-header .studio-actions {
  grid-column: 2;
  grid-row: 1;
  flex-wrap: nowrap;
  gap: 3px;
  max-width: none;
}
.studio-v2 .name-style-header .studio-actions > :is(#shareDesign, #undo, #redo, #load, #save, #theme),
.studio-v2 .name-style-header .studio-actions #languageMenuTrigger {
  position: static;
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
}
.studio-v2 .name-style-header .studio-actions > :is(#shareDesign, #undo, #redo, #load, #save, #theme):hover:not(:disabled),
.studio-v2 .name-style-header .studio-actions #languageMenuTrigger:hover {
  border-color: var(--line);
  background: var(--input);
}
.studio-v2 .name-style-header .studio-actions > :is(#shareDesign, #undo, #redo, #load, #save, #theme) svg { width: 18px; height: 18px; }
.studio-v2 .name-style-header #shareDesign > span { display: none; }
.studio-v2 .name-style-header #languageCurrent { display: inline; font-size: 12px; font-weight: 700; }
.studio-v2:not(.light) .name-style-header .brand > span { color: #ffa0c3; }
.studio-v2 .name-style-header .chapter-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: center;
  justify-self: center;
  width: auto;
  max-width: 100%;
  padding: 0;
  border: 0;
}
.studio-v2 .name-style-header .chapter-nav button { flex: 0 1 auto; }
.studio-v2 .name-style-header .chapter-mark { display: grid; }
@media (min-width: 1250px) {
  .studio-v2 .studio-header.name-style-header {
    grid-template-columns: minmax(205px, 1fr) auto minmax(320px, 1fr);
    padding-inline: 24px;
  }
  .studio-v2 .name-style-header .chapter-nav { grid-column: 2; grid-row: 1; }
  .studio-v2 .name-style-header .studio-actions { grid-column: 3; justify-self: end; }
}

.studio-v2 .gallery-page, .studio-v2 .prepare-page {
  max-width: 1168px;
  margin-inline: auto;
}
.studio-v2 #startNewPanel .start-paths {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
}
.studio-v2 #startNewPanel .start-paths button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 45%);
  grid-template-areas: "words image";
  text-align: left;
  align-items: center;
  gap: 8px 14px;
  min-height: 168px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
}
.studio-v2 #startNewPanel .start-paths button:hover { border-color: var(--blue); }
.studio-v2 .start-paths button > span { grid-area: words; align-self: center; justify-items: start; }
.studio-v2 .start-paths .start-thumbnail {
  grid-area: image;
  width: 100%;
  height: 132px;
}
.studio-v2 .start-paths .start-arrow { margin: 8px 0 0; }
.studio-v2 .gallery-content .feature-card-grid { gap: 14px; }
.studio-v2 .gallery-content .feature-template {
  gap: 7px;
  padding: 8px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.studio-v2 .gallery-content .feature-template:hover { border-color: var(--blue); }
.studio-v2 .gallery-content .feature-thumbnail { aspect-ratio: 4 / 3; min-height: 0; }

.studio-v2 .preview-view-bar {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 0;
}
.studio-v2 .prepare-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.studio-v2 .prepare-layout > section {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--panel);
  box-shadow: var(--panel-shadow);
}
.studio-v2 .prepare-layout h2 { margin: 0 0 8px; font-size: 23px; line-height: 1.2; letter-spacing: -.02em; }
.prepare-download-actions { margin-top: 8px; }
.studio-v2 .prepare-download-actions .v2-download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
}
.studio-v2 .prepare-download-actions .v2-download-actions button { min-height: 44px; }
.studio-v2 .prepare-download-actions .v2-export-note {
  margin: 6px 0 0;
  padding: 0;
  color: var(--muted);
  background: none;
}
.studio-v2 .prepare-order-card p { color: var(--muted); }
.studio-v2 .prepare-order-card a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--blue);
  text-underline-offset: 4px;
}
.studio-v2 .prepare-layout > .text-button { justify-self: start; }

@media (max-width: 700px) {
  .studio-v2 .studio-header.name-style-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .studio-v2 .name-style-header .studio-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
  }
  .studio-v2 .name-style-header .chapter-nav { grid-row: 3; }
  .studio-v2 .name-style-header .studio-actions .language-control { margin-left: 0; }
  .studio-v2 #startNewPanel .start-paths { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .studio-v2 .name-style-header .brand { gap: 6px; }
  .studio-v2 .name-style-header .brand img { width: 90px; }
  .studio-v2 .name-style-header .brand > span { padding-inline-start: 6px; }
  .studio-v2 .name-style-header .studio-actions > :is(#shareDesign, #undo, #redo, #load, #save, #theme),
  .studio-v2 .name-style-header .studio-actions #languageMenuTrigger { width: 38px; min-width: 38px; }
  .studio-v2 .name-style-header .chapter-nav { gap: 4px; }
  .studio-v2 .name-style-header .chapter-nav button { gap: 3px; padding-inline: 4px; }
  .studio-v2 .name-style-header .chapter-mark { width: 16px; height: 16px; }
  .studio-v2 #startNewPanel .start-paths button { min-height: 132px; padding: 12px; }
  .studio-v2 .start-paths .start-thumbnail { height: 98px; }
}

.studio-v2 .choice-grid button:has(.block-sample) { min-height: 104px; }
.studio-v2 .block-sample {
  width: min(100%, 118px);
  height: 72px;
  margin: 0 auto 8px;
}
.studio-v2 .sample-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.studio-v2 .sample-cards button {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 6px;
  min-width: 0;
  padding: 6px 6px 9px;
  text-align: center;
  overflow-wrap: anywhere;
}
.studio-v2 .sample-cards button[aria-pressed=true] {
  border-color: var(--blue);
  background: var(--input);
}
.studio-v2 .sample-cards img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 6px;
  background: var(--stage);
}
.studio-v2 .picture-cards img { padding: 7px; }
.studio-v2 .sample-more { margin: 10px 0 0; min-height: 44px; }
.studio-v2 #modal:has(.expanded-sample-gallery) { width: min(780px, calc(100% - 28px)); }
.studio-v2 .expanded-sample-gallery .sample-cards {
  grid-template-columns: repeat(auto-fit, minmax(min(128px, 45%), 1fr));
}

.studio-v2 .import-current-colour{display:inline-block;width:18px;height:18px;vertical-align:middle;border-radius:50%;border:1px solid var(--line);background:var(--swatch)}

.studio-v2 #clickerQuote{display:grid;gap:8px;margin:12px 0 16px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.studio-v2 #clickerQuote h3,.studio-v2 #clickerQuote p,.studio-v2 #clickerQuote .field{margin:0}
.studio-v2 #clickerQuote button{justify-self:start;min-height:44px}
.studio-v2 #clickerQuoteQuantity{max-width:120px;min-height:44px}
.studio-v2 .quote-switch-options{display:grid;gap:2px;border:0;padding:0;margin:0}
.studio-v2 .quote-switch-options legend{font-weight:700}
.studio-v2 .quote-switch-options label{display:flex;align-items:center;gap:8px;min-height:44px}
.studio-v2 .clicker-quote-breakdown{display:grid;gap:7px;margin:14px 0}.studio-v2 .clicker-quote-breakdown>div{display:flex;justify-content:space-between;gap:16px}.studio-v2 .clicker-quote-breakdown dd{margin:0;font-variant-numeric:tabular-nums}.studio-v2 .clicker-quote-total{border-top:1px solid var(--line);padding-top:9px;font-weight:800}.studio-v2 [data-v2-action="shop-quote"][hidden]{display:none!important}

/* Name Tag Studio's control rhythm, scoped to the Clicker builder. */
.studio-v2 .name-style-header .chapter-nav { gap: 5px; }
.studio-v2 .name-style-header .chapter-nav button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.studio-v2 .name-style-header .chapter-nav button[aria-selected=true] {
  border-color: var(--blue);
  background: var(--input);
  color: var(--blue);
}
.studio-v2 .name-style-header .chapter-nav button[aria-selected=true] .chapter-mark {
  border-color: var(--button);
  background: var(--button);
  color: var(--button-text);
}
.studio-v2 .gallery-heading h1, .studio-v2 .prepare-page h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -.035em;
}
.studio-v2 .gallery-heading p { max-width: 60ch; line-height: 1.5; color: var(--text); }
.studio-v2 .inspector-nav button {
  min-width: 0;
  overflow-wrap: anywhere;
}
.studio-v2 .v2-check { border-radius: 12px; }
.studio-v2 #modal {
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--panel-shadow);
}
.studio-v2 #clickerQuote :is(button, p, dd) { overflow-wrap: anywhere; }
.studio-v2 .clicker-quote-breakdown dd { font-variant-numeric: tabular-nums; }
@media (max-width: 650px) {
  .studio-v2 .name-style-header .chapter-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .studio-v2 .name-style-header .chapter-nav button {
    justify-content: center;
    gap: 4px;
    padding: 4px 2px;
  }
  .studio-v2 .name-style-header .chapter-nav .chapter-label {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .studio-v2 .name-style-header .chapter-mark { width: 18px; height: 18px; flex: none; }
  .studio-v2 .prepare-layout > section { padding: 15px; }
  .studio-v2 .inspector :is(input:not([type=range], [type=checkbox], [type=radio], [type=color]), textarea, select) {
    font-size: 16px;
  }
}
@media (max-width: 390px) {
  .studio-v2 .name-style-header .chapter-nav button { flex-direction: column; }
}
@media (max-width: 420px) {
  .studio-v2 #modalBody > .shape-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .studio-v2 #modalBody > .shape-grid button {
    overflow-wrap: normal;
  }
}

.template-category-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 18px; }
.studio-v2 .template-category-tabs button { min-height:44px; background:var(--panel); color:var(--text); }
.studio-v2 .template-category-tabs button[aria-pressed=true] { background:var(--input); border-color:var(--blue); color:var(--blue); }

.prepare-design-preview { display:grid; place-items:center; min-height:220px; margin:0 0 12px; border-radius:12px; background:var(--bg); color:var(--muted); }
.studio-v2.light .prepare-design-preview { background:#f4f4f5; }
.prepare-design-preview[hidden] { display:none; }
.prepare-design-preview img { display:block; width:auto; max-width:100%; max-height:280px; object-fit:contain; }

.studio-v2 #plateGridToggle { display:none; }
.loop-positions { margin:0; padding:0; border:0; }
.loop-positions > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:6px; }
.loop-positions button { min-height:44px; }
.loop-positions button[aria-pressed=true] { background:var(--input); color:var(--blue); border-color:var(--blue); }
.switch-preview { height:clamp(200px,46vh,380px); overflow:hidden; border-radius:10px; background:var(--stage); }

/* Keep the starting choice distinct from the catalogue filters. */
.start-mode-nav { width:fit-content; padding:5px; margin-bottom:30px; border-radius:14px; background:var(--input); }
.studio-v2 .start-mode-nav button { border-color:transparent; background:transparent; }
.studio-v2 .start-mode-nav button[aria-selected=true] { background:var(--panel); border-color:var(--line); }
.template-filters { grid-column:1/-1; padding:20px 0 16px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.template-filters h2 { margin:0 0 12px; font-size:14px; line-height:1.4; color:var(--muted); }
.template-filters .template-category-tabs { margin:0; }
@media(max-width:520px) { .start-mode-nav { margin-bottom:24px; } .template-filters { padding:16px 0; } }
@media (max-width: 600px) {
  .template-filters { min-width: 0; padding-block: 10px; }
  .template-filters h2 { margin-bottom: 6px; }
  .template-filters .template-category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 3px 2px;
    scrollbar-width: thin;
  }
  .template-category-tabs button { flex: none; }
}

.preview-sticky-region { display: contents; }
@media (max-width: 850px) {
  .studio-v2:has(#editorPage:not([hidden])) .studio-header { position: relative; }
  .studio-v2 .editor-grid > .product-stage { display: contents; }
  .studio-v2 .editor-grid { --preview-height: clamp(140.4px, 32.5svh, 240.5px); row-gap: 8px; }
  .studio-v2 .preview-sticky-region {
    display: block;
    position: sticky;
    top: 4px;
    z-index: 12;
    background: var(--stage);
    border-radius: 12px;
  }
  .studio-v2 .preview-sticky-region #viewport { height: var(--preview-height); border-radius: inherit; }
  .studio-v2 .inspector :is(input, select, textarea, button) { scroll-margin-block-start: calc(var(--preview-height) + 16px); }
}
@media (min-width: 560px) and (max-width: 850px) and (orientation: landscape) and (max-height: 510px) {
  .studio-v2 .editor-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr); }
  .studio-v2 .editor-grid > .product-stage { display: grid; position: sticky; top: 4px; height: auto; grid-template-rows: clamp(136.5px, 63.7svh, 286px) auto auto; }
  .studio-v2 .preview-sticky-region { position: relative; top: auto; }
  .studio-v2 .preview-sticky-region #viewport { height: 100%; }
}
@media (max-width: 650px) {
  .short-visual-viewport .studio-v2 .preview-sticky-region { position: relative; top: auto; }
  .short-visual-viewport .studio-v2 .inspector :is(input, select, textarea, button) { scroll-margin-block-start: 12px; }
}

.studio-v2 .name-style-header .header-promo { grid-column: 1 / -1; grid-row: 4; margin: 0; color: var(--blue); text-align: center; font-size: 13px; font-weight: 700; }
html:has(meta[name="mm3288-clicker-quote"]:not([content="enabled"])) .header-promo { display: none; }
.studio-v2 .clicker-promo-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.studio-v2 .clicker-promo-controls .field { flex: 1 1 145px; margin: 0; }
.studio-v2 #clickerPromoStatus { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.studio-v2 #clickerPromoStatus:empty, .studio-v2 .clicker-promo-controls [hidden] { display: none; }

.studio-v2 .pocket-pal-heads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.studio-v2 .pocket-pal-heads button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 4px 4px 8px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.studio-v2 .pocket-pal-heads button[aria-pressed=true] {
  border-color: var(--blue);
  background: var(--input);
  color: var(--blue);
}
.pocket-pal-heads img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
}

/* Match the Name Studio ordering panel. */
.studio-v2 .quote-switch-options{border-top:1px solid var(--line);margin:15px 0 0;padding:4px 0 0;display:block;min-width:0}
.studio-v2 .quote-switch-options legend{font-weight:800;padding-right:8px}
.studio-v2 .quote-switch-options label{display:inline-flex;margin-right:14px;gap:7px}
.studio-v2 .quote-switch-options input{accent-color:var(--accent);width:17px;height:17px;flex:none}
.studio-v2 .clicker-quote-feedback{display:flex;align-items:center;gap:10px;min-height:32px;margin:12px 0 4px}
.studio-v2 .clicker-quote-feedback p{margin:0;min-height:0}
.studio-v2 .clicker-quote-spinner{display:inline-block;flex:none;width:19px;height:19px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:clicker-quote-spin .8s linear infinite}
.studio-v2 .clicker-quote-spinner[hidden]{display:none}
.studio-v2 .clicker-quote-elapsed{font-size:12px;color:var(--muted);white-space:nowrap}
.studio-v2 .clicker-quote-breakdown{max-width:480px;margin:16px 0}
.studio-v2 .clicker-quote-total{padding-top:12px;font-size:18px}
.studio-v2 .clicker-quote-total dd{color:var(--accent);font-size:22px;line-height:1.2}
@keyframes clicker-quote-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.studio-v2 .clicker-quote-spinner{animation:none}}
.fixed-sample-preview{aspect-ratio:2/1;overflow:hidden;border-radius:12px;display:grid;place-items:center;background:#2b231f}
.fixed-sample-preview img,.fixed-sample-preview canvas{display:block;width:100%;height:100%;object-fit:contain}
.fixed-sample-colours{display:flex;flex-wrap:wrap;gap:10px 18px;margin:10px 0 14px;border:1px solid var(--line);border-radius:10px}
.fixed-sample-colours label{display:flex;align-items:center;gap:6px}
.fixed-sample-colours input{width:2.1rem;height:1.7rem;padding:1px;cursor:pointer}
.fixed-sample-status{font-size:.88rem}
.fixed-sample-intro{justify-content:space-between;align-items:center;flex-wrap:wrap;gap:4px 12px;margin-bottom:8px}
.fixed-sample-intro p{margin:4px 0}
.fixed-sample-intro label{font-size:.85rem}

/* Gallery pagination stays compact while retaining first and last page access. */
.studio-v2 #featureCatalogResults .catalog-pagination { display:flex; justify-content:center; align-items:center; gap:4px; margin:20px 0; }
.studio-v2 .catalog-pagination button { flex:none; min-width:44px; min-height:44px; padding:8px; font-variant-numeric:tabular-nums; }
.studio-v2 .catalog-pagination button[aria-current=page] { border-color:var(--blue); color:var(--blue); background:var(--input); }
.studio-v2 .catalog-pagination button:disabled { opacity:.45; cursor:default; }
.studio-v2 .catalog-pagination .catalog-ellipsis { text-align:center; min-width:18px; color:var(--muted); }
@media(max-width:520px) { .studio-v2 #featureCatalogResults .catalog-pagination { gap:2px; } .studio-v2 .catalog-pagination button { min-width:36px; padding:6px; } .studio-v2 .catalog-pagination .catalog-ellipsis { min-width:12px; } }

.studio-v2 .pocket-loop-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.studio-v2 .pocket-loop-options button { min-height: 44px; padding: 10px; }
.studio-v2 .pocket-loop-options button[aria-pressed=true] { border-color: var(--blue); background: var(--input); color: var(--blue); }
.studio-v2 .pocket-loop-options button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Compact mobile header: the tools open as a floating panel. */
.mobile-tools-toggle { display:none; }
@media (max-width:700px) {
  .studio-v2 .studio-header.name-style-header { grid-template-columns:auto minmax(0,1fr) 44px; gap:2px 8px; padding:5px 12px 7px; }
  .studio-v2 .name-style-header .brand { grid-column:1; grid-row:1; }
  .studio-v2 .name-style-header .brand img { width:90px; }
  .studio-v2 .name-style-header .brand > span { display:none; }
  .studio-v2 .name-style-header .header-promo { grid-column:2; grid-row:1; text-align:center; font-size:11px; line-height:1.2; }
  .studio-v2 .mobile-tools-toggle { display:grid; place-items:center; grid-column:3; grid-row:1; width:44px; min-height:44px; padding:0; font-size:21px; }
  .studio-v2 .name-style-header .studio-actions { display:none; position:absolute; top:51px; right:12px; z-index:35; grid-column:auto; grid-row:auto; padding:6px; gap:2px; border:1px solid var(--line); border-radius:12px; background:var(--panel); box-shadow:var(--panel-shadow); }
  .studio-v2 .mobile-tools-toggle[aria-expanded=true] + .studio-actions { display:flex; }
  .studio-v2 .name-style-header .studio-actions > :is(#shareDesign,#undo,#redo,#load,#save,#theme), .studio-v2 .name-style-header .studio-actions #languageMenuTrigger { width:38px; min-width:38px; height:44px; }
  .studio-v2 .name-style-header .chapter-nav { grid-column:1/-1; grid-row:2; width:100%; }
  .studio-v2 .name-style-header .chapter-nav button { flex-direction:row; min-height:40px; padding:4px 2px; gap:3px; }
  .studio-v2 .name-style-header .chapter-mark { width:16px; height:16px; }
}

.alphabet-placement{margin-top:1rem;border-top:1px solid var(--line,#d0c9c4);padding-top:.75rem}
[data-alphabet-pad]{display:block;width:min(100%,190px);height:auto;margin:.5rem auto;touch-action:none;cursor:crosshair;background:var(--panel,#faf9f7);border:1px solid var(--line,#c6c1ba);border-radius:8px}
[data-alphabet-marker]{stroke:#172530;stroke-width:.52;fill:#fff;filter:drop-shadow(0 0 .16px white)}
.alphabet-coordinates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
.alphabet-coordinates input{width:100%;min-width:0}
.yuanbao-controls{display:grid;gap:.75rem;padding:.6rem 0}
.yuanbao-controls .hint{margin:0}
.yuanbao-slider{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.2rem .5rem}
.yuanbao-slider input{grid-column:1/-1;width:100%;min-height:30px}
.yuanbao-slider output{font-variant-numeric:tabular-nums}
.yuanbao-toggle{display:flex;gap:.6rem;align-items:center;min-height:44px}
.yuanbao-controls button{min-height:44px}
@media(max-width:600px){.yuanbao-slider input{min-height:44px}}
.studio-v2 [data-yuanbao-finish]:not([hidden]){position:absolute;bottom:10px;right:10px;z-index:3;min-height:44px;background:var(--panel,#fff);box-shadow:0 2px 8px #0002}

/* Photo Minis entry page */
.clicker-entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.1rem;
  margin-top: .65rem;
}
.clicker-entry-links a,
.clicker-examples a { color: inherit; }
.clicker-entry-links a { text-underline-offset: .2em; }
.clicker-examples {
  margin-bottom: 1.25rem;
}
.clicker-examples h2 {
  margin: 0 0 .5rem;
  font-size: 1rem;
}
.clicker-examples ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 9rem));
  gap: .75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.clicker-examples a {
  display: grid;
  gap: .4rem;
  font-weight: 600;
  text-underline-offset: .2em;
}
.clicker-examples img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: .55rem;
}
.yuanbao-bore{display:grid;grid-template-columns:auto 1fr;gap:0 .8rem;border:0;border-top:1px solid var(--line);min-width:0;margin:0;padding:.5rem 0 0}
.yuanbao-bore legend{padding:0 .5rem 0 0;font-weight:600}
.yuanbao-bore>label:not(.yuanbao-slider){display:flex;align-items:center;gap:.4rem;min-height:44px}
.yuanbao-bore .yuanbao-slider{grid-column:1/-1}
