:root{color-scheme:dark;--m-ink:#f4f5ff;--m-muted:#b9c4e4;--m-line:#425480;--m-blue:#182c60;--m-gold:#ffe284}*{box-sizing:border-box}body{margin:0;background:#0c1530;color:var(--m-ink);font:16px/1.55 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button,a,input,textarea,summary{font:inherit}button,a,summary{-webkit-tap-highlight-color:transparent}button,summary{cursor:pointer}button,a.m27-primary,.m27-upload{border:1px solid var(--m-line);border-radius:13px;background:#233967;color:var(--m-ink);padding:11px 16px;text-decoration:none}button:disabled{opacity:.45;cursor:default}button:hover:not(:disabled),button[aria-pressed=true]{border-color:var(--m-gold);background:#2e4380}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--m-gold);outline-offset:3px}.m27-primary,button.m27-primary{background:var(--m-gold);border-color:var(--m-gold);color:#17234a;font-weight:750}.m27-primary:hover:not(:disabled){background:#ffecb0}input,textarea{max-width:100%;background:#101f45;border:1px solid #53658c;color:var(--m-ink);border-radius:10px;padding:12px}textarea{width:100%;min-height:90px;resize:vertical}input[type=checkbox]{accent-color:#ffda75;width:20px;height:20px;flex:0 0 20px}.m27-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 4%;background:#0b1230;border-bottom:1px solid #354467}.m27-brand{font:700 25px Georgia,serif;letter-spacing:2px;color:var(--m-gold);text-decoration:none}.m27-brand small{display:block;font:8px system-ui;letter-spacing:1px}.m27-top nav{display:flex;gap:20px;align-items:center;overflow-x:auto;white-space:nowrap}.m27-top nav a{font-size:14px;color:#dbe3ff;text-decoration:none}.m27-top nav button{font-size:13px}#memory27{max-width:1440px;margin:auto;padding:22px 4% 32px}.m27-toolbar{display:flex;gap:14px;align-items:center;font-size:13px;color:var(--m-muted)}.m27-toolbar>span{flex:1}.m27-toolbar button{padding:8px 12px}.m27-hero{padding:32px 0 16px}.m27-eyebrow{color:#f4cc71;font-size:11px;font-weight:800;letter-spacing:2px}.m27-hero h1{font-size:clamp(27px,3.1vw,44px);line-height:1.25;margin:12px 0;color:#fff}.m27-hero p{color:var(--m-muted);margin:12px 0}#m27Steps{display:flex;gap:8px;overflow-x:auto}#m27Steps button{flex:1;min-width:max-content;background:#111e40;display:flex;align-items:center;gap:10px;font-size:13px}#m27Steps b{display:inline-grid;place-content:center;width:24px;height:24px;border-radius:50%;background:#334573;color:#dce7ff}#m27Steps button[aria-current=step]{border-color:#ffd77d;background:#243466;color:#ffe198}#m27Steps button[aria-current=step] b{background:#ffe198;color:#122046}#m27Status{color:#ffe6a4;min-height:24px;margin:14px 0}#m27Stage{scroll-margin-top:15px;outline:none}.m27-filters,.m27-options{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px}.m27-filters button,.m27-options button{padding:9px 14px;font-size:14px}.m27-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.m27-card{display:flex;flex-direction:column;text-align:left;border-radius:20px;padding:0;overflow:hidden;background:#192950;min-width:0;transition:transform .18s,border-color .18s}.m27-card:hover:not(:disabled){transform:translateY(-3px)}.m27-product-image{aspect-ratio:1;overflow:hidden;background:radial-gradient(ellipse at 48% 48%,#35457b,#1b2a55 74%)}.m27-products .m27-card:nth-child(4n+2) .m27-product-image{background:radial-gradient(ellipse at 48% 48%,#485777,#223447 74%)}.m27-products .m27-card:nth-child(4n+3) .m27-product-image{background:radial-gradient(ellipse at 48% 48%,#514778,#30264a 74%)}.m27-products img{display:block;width:100%;height:100%;object-fit:contain;padding:9px}.m27-card strong{padding:12px 15px 2px;font-size:16px;overflow-wrap:anywhere}.m27-card>span{padding:0 15px 14px;font-size:12px;color:#b7c7ef}.m27-note{font-size:13px;color:var(--m-muted);line-height:1.65}.m27-selection{display:grid;grid-template-columns:minmax(180px,270px) 1fr;gap:26px;align-items:center;margin-bottom:26px;border-radius:22px;background:#18264d;padding:18px}.m27-selection>img{width:100%;height:245px;object-fit:contain}.m27-selection h2{margin:0}.m27-selection p{color:var(--m-muted)}.m27-selection button{margin:10px 0 0}.m27-upload{display:inline-block;position:relative;overflow:hidden}.m27-upload input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}.m27-upload:focus-within{outline:3px solid #ffe284}.m27-scroll-head{display:flex;gap:8px;align-items:center;margin:12px 0}.m27-scroll-head span{flex:1;font-size:13px;color:var(--m-muted)}.m27-scroll-head button{padding:6px 14px}.m27-art-grid{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,auto);grid-auto-columns:calc((100% - 54px)/4);gap:18px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding-bottom:16px}.m27-art-grid .m27-card{scroll-snap-align:start}.m27-art-grid img{width:100%;aspect-ratio:1;object-fit:contain;background:#243456}.m27-art-grid strong{font-size:13px;padding-bottom:12px}.m27-work{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:30px}.m27-work-picture,.m27-controls{background:#142449;border:1px solid #34486e;border-radius:24px;padding:24px;min-width:0}.m27-work h2{margin-top:0}.m27-work-picture{align-self:start}.m27-work-picture>p{color:var(--m-muted)}.m27-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px}.m27-compare figure{margin:0;min-width:0}.m27-compare img{width:100%;aspect-ratio:1;object-fit:contain;border-radius:18px;background:#263666}.m27-compare figcaption{font-size:13px;color:var(--m-muted);padding:8px 3px}.m27-checks{display:grid;gap:10px;margin:25px 0}.m27-checks label{display:flex;gap:9px;align-items:flex-start;font-size:14px}.m27-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.m27-actions>a{display:inline-block;color:#d8e4ff;border:1px solid #4b5d86;border-radius:13px;padding:10px 15px;text-decoration:none}.m27-actions>a.m27-primary{color:#17234a}.m27-result-picture{border:0;padding:0;background:radial-gradient(ellipse at center,#3f4b7d,#1b2c52);width:100%;border-radius:18px}.m27-result-picture img{display:block;width:100%;max-height:580px;object-fit:contain}.m27-result-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.m27-result-actions button{min-height:66px}.m27-extra{border-top:1px solid #47567d;padding:20px 0;margin:20px 0}.m27-extra summary{color:var(--m-gold);margin-bottom:16px}.m27-draft-small{width:150px;height:150px;object-fit:contain}.m27-dialog{width:min(1080px,calc(100% - 32px));max-height:92dvh;border:1px solid #657ab1;background:#111f42;color:#f2f4ff;border-radius:25px;padding:24px;overflow:auto;box-shadow:0 25px 100px #0009}.m27-dialog::backdrop{background:#000a;backdrop-filter:blur(5px)}.m27-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:15px;position:sticky;top:-24px;background:#111f4afa;z-index:3;padding:14px 0}.m27-dialog>header h2{font-size:22px;margin:0}.m27-dialog>header button{white-space:nowrap}.m27-enlarged{width:100%;max-height:66dvh;object-fit:contain}.m27-sample-layout{display:grid;grid-template-columns:1.3fr 1fr;align-items:center;gap:30px}.m27-sample-main{width:100%;max-height:65dvh;object-fit:contain}.m27-blank{width:100%;max-height:190px;object-fit:contain}.m27-room-options{display:flex;gap:10px;margin:8px 0 16px}.m27-room-stage{position:relative;width:100%;aspect-ratio:3/2;overflow:hidden;border-radius:16px;isolation:isolate}.m27-room-bg{position:absolute;width:100%;height:100%;object-fit:cover;inset:0}.m27-room-product{position:absolute;transform:translate(-50%,-100%);padding:0;border:0!important;background:transparent!important;touch-action:none;cursor:grab;filter:drop-shadow(4px 10px 6px #0005);line-height:0}.m27-room-product:active{cursor:grabbing}.m27-room-product img{width:100%;height:auto;display:block;pointer-events:none}.m27-room-product:focus-visible{outline:2px dashed #ffe284;outline-offset:5px}.m27-pdf-intro{display:grid;grid-template-columns:220px 1fr;gap:25px;align-items:center}.m27-pdf-intro img{width:100%;height:220px;object-fit:contain}.m27-spec{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}.m27-spec label{display:grid;gap:7px}.m27-dialog iframe{width:100%;height:60dvh;border:1px solid #68769c;border-radius:12px;background:#293757}#creationQueue26{max-width:1325px!important;margin:10px auto 50px!important;width:92%!important}#creationQueue26 .cq26-eyebrow{display:none}.m27-room-feedback{color:var(--m-gold)}
@media(max-width:900px){.m27-products{grid-template-columns:repeat(3,minmax(0,1fr))}.m27-work{gap:18px}.m27-controls,.m27-work-picture{padding:18px}.m27-top{flex-wrap:wrap;gap:12px}.m27-top nav{width:100%;gap:18px}.m27-art-grid{grid-auto-columns:calc((100% - 36px)/3)}}
@media(max-width:600px){body{font-size:14px}.m27-top{padding:13px 16px}.m27-brand{font-size:22px}.m27-top nav{gap:15px}.m27-top nav a{font-size:12px}.m27-top nav button{padding:6px 10px}#memory27{padding:14px 14px 24px}.m27-toolbar{font-size:11px;gap:8px}.m27-toolbar button{font-size:11px;padding:7px 9px}.m27-hero{padding-top:24px}.m27-hero h1{font-size:27px;max-width:350px}.m27-hero p{font-size:13px}#m27Steps{gap:5px}#m27Steps button{flex:1;min-width:0;flex-direction:column;gap:4px;padding:8px 3px;font-size:10px;white-space:nowrap}#m27Steps b{width:21px;height:21px;font-size:11px}.m27-filters{flex-wrap:nowrap;overflow-x:auto;gap:7px;margin-bottom:16px;padding-bottom:5px}.m27-filters button{flex:0 0 auto;font-size:12px;padding:8px 11px}.m27-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.m27-card{border-radius:16px}.m27-card strong{font-size:13px;padding:9px 10px 2px}.m27-card>span{font-size:10px;padding:0 10px 11px}.m27-selection{grid-template-columns:100px 1fr;gap:12px;padding:13px}.m27-selection>img{height:130px}.m27-selection h2{font-size:18px}.m27-selection p{font-size:12px}.m27-selection button,.m27-upload{font-size:11px;padding:9px 10px}.m27-art-grid{grid-auto-columns:calc((100% - 11px)/2);gap:11px}.m27-art-grid strong{font-size:11px}.m27-work{grid-template-columns:1fr;gap:14px}.m27-work-picture,.m27-controls{padding:16px;border-radius:18px}.m27-result-picture img{max-height:360px}.m27-work h2{font-size:21px}.m27-options button{font-size:12px;padding:9px 11px}.m27-checks label{font-size:12px}.m27-dialog{padding:14px;width:calc(100% - 16px);border-radius:20px;max-height:94dvh}.m27-dialog>header{top:-14px;padding:12px 0}.m27-dialog>header h2{font-size:18px}.m27-dialog>header button{font-size:12px;padding:8px 11px}.m27-sample-layout{grid-template-columns:1fr;gap:8px}.m27-sample-main{max-height:47dvh}.m27-pdf-intro{grid-template-columns:100px 1fr;gap:14px}.m27-pdf-intro img{height:130px}.m27-spec{grid-template-columns:1fr}.m27-dialog iframe{height:53dvh}.m27-actions button,.m27-room-options button{font-size:12px;padding:9px 12px}.m27-result-actions{gap:8px}.m27-result-actions button{font-size:12px;min-height:55px}.m27-note{font-size:11px}#creationQueue26{margin-bottom:30px!important}.m27-hero h1,.m27-dialog h2,.m27-card strong{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.m27-card{transition:none}}
/* Keep the child workshop animation light on mobile graphics. */
body[data-creation-route=memory] .cq26-dialog::backdrop{backdrop-filter:none}
body[data-creation-route=memory] .cq26-piece{filter:none;mix-blend-mode:normal;opacity:.18}
body[data-creation-route=memory] .cq26-scene:after{inset:0}
/* One visible task at a time; finished samples remain the starting point. */
[hidden]{display:none!important}.m27-top{padding:10px 4%;gap:12px}.m27-top nav{gap:16px}#memory27{padding-top:14px}.m27-toolbar{margin-bottom:14px}.m27-hero{padding:6px 0 14px}.m27-hero h1{font-size:clamp(25px,2.5vw,34px);margin:10px 0}.m27-hero p{margin:8px 0;font-size:14px}#m27Steps{margin-bottom:18px}#m27Status:empty{display:none}#m27Status{margin:8px 0;min-height:0}#m27Stage{scroll-margin-top:12px}.m28-stage-title{font-size:24px;line-height:1.3;margin:0 0 16px}.m27-product-image{position:relative;width:100%}.m27-products img.m28-base-thumb{position:absolute;right:10px;bottom:10px;width:58px;height:58px;padding:4px;border:1px solid #7182a9;border-radius:11px;background:#e7e9ef}.m28-product-pair{display:grid;grid-template-columns:1fr 36px 1.35fr;gap:12px;align-items:center;margin:8px 0 22px}.m28-product-pair figure{margin:0;min-width:0;border:1px solid #405779;border-radius:18px;background:#203353;padding:10px;text-align:center}.m28-product-pair figure:first-child{background:#e8e9ef;color:#293953}.m28-product-pair img{width:100%;height:min(48dvh,360px);object-fit:contain;display:block}.m28-product-pair>span{text-align:center;font-size:27px;color:var(--m-gold)}.m28-product-pair figcaption{font-size:14px;padding:8px}.m28-pick{width:100%;min-height:52px}.m28-source-head{display:flex;align-items:center;gap:20px;margin-bottom:18px}.m28-source-head>img{width:95px;height:95px;object-fit:contain;background:#253865;border-radius:16px}.m28-source-head>div{flex:1;min-width:0}.m28-source-head h2{font-size:24px;line-height:1.3;margin:0 0 8px}.m28-source-head p{margin:0;color:var(--m-muted);font-size:14px}.m28-search-row{display:flex;gap:12px}.m28-search-row input{flex:1;min-width:0}.m28-create-view{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,1fr);gap:28px;align-items:start}.m28-main-visual{position:relative;min-width:0}.m28-visual-label{position:absolute;top:12px;left:12px;z-index:1;background:#102345e8;color:#ffe298;padding:5px 12px;border-radius:20px;font-size:13px;pointer-events:none}.m28-create-view .m27-result-picture img{height:340px;max-height:45dvh;padding:12px}.m28-create-tools{min-width:0}.m28-create-tools>h3{font-size:15px;margin:14px 0 9px}.m28-create-tools>h3:first-child{margin-top:0}.m28-create-tools .m27-options{margin-bottom:12px}.m28-create-tools>.m27-note{margin:12px 0}.m28-inputs{display:grid;grid-template-columns:1fr 26px 1fr;gap:10px;align-items:center}.m28-inputs>span{text-align:center;color:var(--m-gold)}.m28-inputs button{display:grid;justify-items:center;gap:4px;min-width:0;padding:10px 8px;background:#1b2e55}.m28-inputs img{height:100px;width:100%;object-fit:contain}.m28-inputs span{font-size:12px;color:var(--m-muted)}.m28-inputs b{font-size:13px;color:var(--m-gold)}.m28-actiondock{display:grid;gap:9px;margin-top:18px}.m28-actiondock button{min-height:49px}.m28-create-tools>[data-edit-look]{width:100%}.m28-version-grid{display:flex;gap:8px;overflow-x:auto;margin-top:12px;padding:2px 2px 7px}.m28-version-grid button{flex:0 0 92px;padding:5px;font-size:11px;display:grid}.m28-version-grid img{height:64px;width:100%;object-fit:contain}.m28-confirm{display:flex;align-items:center;gap:25px;padding:10px 0}.m28-confirm img{width:130px;height:130px;object-fit:contain}.m28-confirm h3{font-size:18px;margin:0 0 10px}.m28-confirm strong{font-size:24px;color:var(--m-gold)}.m28-confirm p{font-size:13px;color:var(--m-muted)}.m28-confirm-check{display:flex;align-items:flex-start;gap:12px;margin:18px 0 24px;font-size:14px;line-height:1.8}.m28-confirm-check input{margin-top:3px}.m27-dialog:has(.m28-confirm){max-width:600px}.m27-dialog>[data-confirm-start],.m27-dialog>[data-look-apply]{width:100%}.m28-edit-look{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:15px 0}.m28-edit-look h3{font-size:15px;margin:0 0 9px}.m28-edit-look .m27-options{margin-bottom:20px}.m28-layout-preview{position:relative;background:#ececf1;aspect-ratio:1;border-radius:18px;overflow:hidden}.m28-layout-preview>img{width:100%;height:100%;object-fit:contain}.m28-layout-preview>div{position:absolute;left:32%;top:35%;width:36%;height:36%;background:#dfe6f3b3;border:2px dashed #7183a7;display:grid;place-items:center;border-radius:9px}.m28-layout-preview>div img{width:100%;height:100%;object-fit:contain}.m28-layout-preview[data-composition=flow]>div{left:25%;width:50%}.m28-layout-preview[data-look=soft]>div{border-radius:50%}.m28-layout-preview[data-look=bold]>div{border-width:4px}.m28-layout-preview[data-palette=berry]>div{background:#f3b4d7c9}.m28-layout-preview[data-palette=ice]>div{background:#b7f0e6c9}.m28-layout-preview[data-palette=ink]>div{background:#303e60c9}.m27-options button[data-option=palette_choice]:before{content:'';display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:6px;vertical-align:-1px;background:linear-gradient(135deg,#f6e69f,#8cc9e2,#e8a5c7)}.m27-options button[data-value=berry]:before{background:#eb94be}.m27-options button[data-value=ice]:before{background:#a3e0da}.m27-options button[data-value=ink]:before{background:#23293b;border:1px solid #8793ad}.m28-letter-preview{container-type:inline-size;position:relative;width:100%;height:340px;background:#dce4eb;border-radius:18px;overflow:hidden}.m28-letter-preview>img{width:100%;height:100%;object-fit:contain;padding:12px}.m28-letter{position:absolute;left:20%;right:20%;font-size:clamp(10px,calc(var(--letter-ratio)*100cqw),42px);line-height:1.25;text-align:center;overflow-wrap:anywhere;white-space:pre-wrap;text-shadow:0 0 2px #fff}.m28-letter span{display:block}.m28-letter[data-position=top]{top:24%}.m28-letter[data-position=center]{top:50%;transform:translateY(-50%)}.m28-letter[data-position=bottom]{bottom:25%}.m28-font-clean{font-family:Arial,sans-serif}.m28-font-round{font-family:ui-rounded,'Arial Rounded MT Bold',sans-serif;font-weight:750}.m28-font-serif{font-family:Georgia,serif}.m28-color{display:flex;gap:12px;align-items:center;font-size:14px}.m28-color input{width:70px;height:44px;padding:5px}.m28-menu{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.m28-menu a{padding:18px;border:1px solid #536587;border-radius:14px;color:var(--m-ink);text-decoration:none}.m28-menu a:hover{border-color:var(--m-gold)}#creationQueue26.cq26-empty-board{display:none!important}
@media(max-width:700px){.m28-create-view{grid-template-columns:1fr;gap:13px}.m28-stage-title{font-size:20px;margin-bottom:12px}.m28-create-view .m27-result-picture img{height:215px;max-height:none;padding:8px}.m28-inputs img{height:65px}.m28-inputs button{padding:6px}.m28-inputs b,.m28-inputs span{font-size:11px}.m28-create-tools>.m27-note{margin:7px 0}.m28-actiondock{margin-top:10px;gap:7px}.m28-actiondock button{min-height:46px}.m28-edit-look{grid-template-columns:1fr;gap:12px}.m28-layout-preview{max-width:210px;margin:auto}.m28-edit-look .m27-options{margin-bottom:12px}.m28-product-pair{grid-template-columns:1fr 22px 1.2fr;gap:5px}.m28-product-pair img{height:200px}.m28-product-pair figure{padding:4px;border-radius:12px}.m28-product-pair figcaption{font-size:11px;padding:8px 0}.m28-product-pair>span{font-size:20px}.m28-letter-preview{height:225px}.m28-source-head{gap:12px;flex-wrap:wrap;margin-bottom:12px}.m28-source-head>img{width:60px;height:65px}.m28-source-head h2{font-size:19px;margin-bottom:5px}.m28-source-head p{font-size:12px}.m28-source-head .m27-upload{width:100%;text-align:center;font-size:13px}.m28-search-row{gap:7px}.m28-search-row button{font-size:11px;padding:8px}.m28-confirm{gap:15px}.m28-confirm img{width:95px;height:95px}.m28-confirm h3{font-size:16px}.m28-confirm-check{font-size:13px}.m27-products img.m28-base-thumb{width:40px;height:40px;right:6px;bottom:6px}.m28-create-tools textarea{min-height:66px}.m28-create-tools>h3{margin:9px 0 5px}.m28-version-grid{margin-top:6px}.m28-version-grid button{flex-basis:70px}.m28-version-grid img{height:48px}.m28-menu a{padding:13px;font-size:14px}}
@media(max-width:600px){.m27-top{flex-wrap:nowrap;gap:8px}.m27-top nav{width:auto;gap:8px;overflow:visible}.m27-top nav>a{display:none}.m27-top nav button{min-height:40px}.m27-top .m27-brand small{font-size:6px}.m27-toolbar{margin-bottom:12px}.m27-hero{padding:0 0 12px}.m27-hero h1{font-size:25px}.m27-hero p{font-size:12px}#m27Steps{margin-bottom:14px}#m27Steps button{padding:6px 2px}#memory27{padding-top:10px}.m27-filters{margin-bottom:10px}.m27-art-grid{grid-auto-columns:calc((100% - 11px)/2.15)}.m28-create-tools>[data-edit-look]{min-height:42px}.m28-actiondock{position:sticky;bottom:0;background:#0c1530;padding:7px 0;z-index:2}.m27-result-actions button{min-height:52px}}

.m27-actions>a.m27-primary{background:var(--m-gold);border-color:var(--m-gold);color:#17234a}
/* Shared product placement: touch, mouse and keyboard use the same scene. */
.s29-entry{border-top:1px solid #45567a;margin-top:26px;padding-top:14px}.s29-entry-title{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:12px}.s29-entry-title h3{font-size:18px;margin:0}.s29-entry-title button{font-size:13px}.s29-scene-strip{display:flex;gap:10px;overflow-x:auto;padding:3px 2px 12px;scroll-snap-type:x proximity}.s29-scene-strip button{display:grid;flex:1 0 125px;min-width:0;padding:0;overflow:hidden;text-align:center;scroll-snap-align:start}.s29-scene-strip img{width:100%;height:72px;object-fit:cover}.s29-scene-strip span{font-size:12px;padding:6px 4px}.s29-dialog{width:min(1260px,calc(100% - 22px));padding:16px;max-height:96dvh}.s29-dialog>header{top:-16px;padding:8px 0 14px}.s29-dialog .s29-scene-strip img{height:62px}.s29-workspace{display:grid;grid-template-columns:210px minmax(0,1fr);gap:18px}.s29-library{min-width:0;border:1px solid #425c83;border-radius:15px;padding:10px;align-self:stretch}.s29-pool-tabs{display:flex;gap:5px;margin-bottom:10px}.s29-pool-tabs button{font-size:12px;padding:8px;flex:1}.s29-source-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;overflow-y:auto;max-height:430px;padding:3px}.s29-source-grid button{padding:4px;min-width:0;background:#243659;cursor:grab}.s29-source-grid img{height:76px;object-fit:contain;width:100%;pointer-events:none}.s29-source-grid b{display:block;font-size:10px;line-height:1.3;padding:4px 0;overflow-wrap:anywhere}.s29-source-grid small{font-size:10px;color:#ffe284}.s29-source-grid>p{grid-column:1/-1;font-size:13px}.s29-main{min-width:0}.s29-stage{position:relative;aspect-ratio:3/2;border-radius:15px;overflow:hidden;background:#263c62;isolation:isolate;outline:none}.s29-background{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}.s29-object{position:absolute;transform:translate(-50%,-100%) rotate(var(--turn,0deg));transform-origin:center center;padding:0;border:1px solid transparent;border-radius:3px;background:transparent!important;touch-action:none;line-height:0;cursor:grab;min-height:0}.s29-object img{width:100%;height:auto;display:block;pointer-events:none;filter:drop-shadow(2px 5px 3px #16203a30)}.s29-object[aria-pressed=true]{outline:2px dashed #ffe284;outline-offset:3px;border-color:transparent}.s29-object:active{cursor:grabbing}.s29-controls,.s29-zones,.s29-footer{display:flex;flex-wrap:wrap;gap:7px}.s29-controls button,.s29-zones button{font-size:12px;padding:8px 10px;min-height:40px}.s29-hint{margin:7px 0;font-size:12px;color:var(--m-muted)}.s29-selected>p{font-size:13px;margin:8px 0}.s29-selected em{color:#ffe284;font-size:11px;font-style:normal}.s29-footer{border-top:1px solid #42577e;padding-top:14px;margin-top:14px}.s29-footer button{flex:1;font-size:13px;min-height:47px;white-space:nowrap}.s29-dialog>[data-scene-feedback]{font-size:13px;color:#ffe284;min-height:20px;margin:5px 0}.s29-open-store{color:#ffe284;text-underline-offset:3px}.s29-conflict{display:flex;gap:8px}.s29-conflict button{font-size:12px}.m27-toolbar [data-space-open]{color:#ffe284}
@media(min-width:1000px){.s29-stage{max-height:55dvh;aspect-ratio:3/2;width:auto;margin:0 auto}.s29-main{max-width:calc(55dvh * 1.5 + 8px);width:100%}.s29-workspace{grid-template-columns:220px minmax(0,1fr);justify-items:center}.s29-library{width:100%}}
@media(max-width:700px){.s29-dialog{padding:10px;width:calc(100% - 10px);max-height:97dvh;border-radius:16px}.s29-dialog>header{top:-10px;padding:8px 0}.s29-dialog>header h2{font-size:18px}.s29-workspace{display:flex;flex-direction:column;gap:12px}.s29-main{order:0}.s29-library{order:1;padding:8px}.s29-source-grid{grid-template-columns:none;grid-template-rows:repeat(2,auto);grid-auto-flow:column;grid-auto-columns:80px;max-height:240px;overflow-x:auto;overflow-y:hidden}.s29-source-grid img{height:58px}.s29-source-grid b{font-size:10px}.s29-source-grid>p{grid-column:1/-1;min-width:280px}.s29-scene-strip{gap:7px}.s29-scene-strip button{flex:0 0 104px}.s29-scene-strip img,.s29-dialog .s29-scene-strip img{height:58px}.s29-scene-strip span{font-size:11px}.s29-entry-title h3{font-size:16px}.s29-entry-title button{font-size:11px;padding:8px}.s29-footer{display:grid;grid-template-columns:1fr 1fr;gap:7px}.s29-footer button{font-size:12px;white-space:normal;padding:9px}.s29-controls{gap:5px}.s29-controls button{font-size:11px;padding:8px}.s29-zones button{font-size:11px}.s29-dialog>.m27-note{font-size:10px}.m27-toolbar{flex-wrap:wrap}.m27-toolbar>span{min-width:70px}}

.m27-step-0>.s29-entry{margin:0 0 18px;border-top:0;padding-top:0}

@media(min-width:1000px){.s29-dialog .s29-scene-strip img{height:48px}.s29-dialog>.s29-scene-strip{padding-bottom:9px}.s29-stage{max-height:42dvh}.s29-main{max-width:calc(42dvh * 1.5)}.s29-source-grid{max-height:calc(42dvh + 42px)}.s29-footer{margin-top:10px;padding-top:10px}.s29-dialog>.m27-note{margin:6px 0;font-size:11px}.s29-dialog>[data-scene-feedback]{margin:2px 0}.s29-dialog>header{padding:0 0 10px}.s29-hint{margin:4px 0}.s29-selected>p{margin:4px 0}.s29-controls button,.s29-zones button{min-height:34px;padding:6px 9px}}
@media(max-width:700px){.s29-dialog>.s29-footer{position:sticky;bottom:-10px;z-index:5;background:#111f42;padding:9px 0 10px;box-shadow:0 -8px 16px #111f4266}.s29-dialog>.s29-footer button{min-height:42px;padding:7px}}

/* V32: make the complete collection visible, with child-first category ordering. */
#m32Library{scroll-margin-top:16px;min-width:0}
#memory27 .m32-source-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px}
#memory27 .m32-source-actions .m27-upload{font-size:13px;padding:8px 12px;min-height:40px;background:#233967;color:var(--m-ink)}
#memory27 .m32-ip-categories{display:grid;grid-auto-flow:column;grid-auto-columns:112px;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:3px 2px 12px;margin:0 0 12px}
#memory27 .m32-ip-category{display:flex;flex-direction:column;align-items:stretch;text-align:center;padding:5px;min-width:0;border-radius:12px;scroll-snap-align:start;overflow:hidden}
#memory27 .m32-category-photos{display:block;width:100%;aspect-ratio:1.4;background:#192950;border-radius:8px;overflow:hidden}
#memory27 .m32-category-photos img{display:block;width:100%;height:100%;object-fit:contain}
#memory27 .m32-category-all{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
#memory27 .m32-category-all img{min-height:0;min-width:0}
#memory27 .m32-ip-category strong{font-size:12px;line-height:1.4;margin-top:5px;overflow-wrap:anywhere}
#memory27 .m32-ip-category small{font-size:11px;color:var(--m-muted)}
#memory27 .m32-library-hint{margin:8px 0 0}
#memory27 .m27-art-grid{grid-template-columns:none;grid-template-rows:repeat(2,auto);grid-auto-flow:column;grid-auto-columns:calc((100% - 64px)/5.2);gap:14px}
#memory27 .m27-art-grid .m27-card>span{font-size:11px;padding:0 12px 10px}
#memory27 .m27-art-grid .m27-card strong{padding:9px 12px 4px}
#memory27 .m27-art-grid .m27-card img{height:auto;aspect-ratio:1;object-fit:contain}
@media(max-width:700px){
 #memory27 .m32-ip-categories{grid-auto-columns:86px;gap:8px}
 #memory27 .m32-ip-category strong{font-size:11px}
 #memory27 .m32-source-actions{gap:8px}
 #memory27 .m32-source-actions>*{flex:1 1 140px;text-align:center}
 #memory27 .m32-source-actions .m27-upload{font-size:12px;min-height:44px}
 #memory27 .m27-art-grid{grid-auto-columns:calc((100% - 12px)/2.12);gap:10px}
}
