/* V2: one clear purpose per transparent card. Native engines stay authoritative. */
html body.sgs-mounted{background:#edf2ee!important;color:#1e3e34!important;overflow-x:hidden}
html body.sgs-mounted #creation20#creation20{margin:0!important;padding:0!important;max-width:none!important}
html body.sgs-mounted #creation20#creation20>:is(#ps-nav,#ps-native-heading,#ps-focus-tools,.ps-pager,.c20-hero,.c20-steps,.c20-bottom,.c20-layout){display:none!important}
html body.sgs-mounted #creation20#creation20>#ps-status:empty{display:none!important}
.sgs-studio{--ink:#254b38;position:relative;isolation:isolate;width:100%;height:var(--sgs-height,calc(100dvh - 64px));min-height:0!important;overflow:hidden!important;background:radial-gradient(ellipse at 0 2%,#d6e6dc,transparent 60%),radial-gradient(ellipse at 100% 80%,#eddfcb,transparent 60%),#eef2eb;color:var(--ink);font:400 14px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif;box-sizing:border-box}
.sgs-studio *{box-sizing:border-box}.sgs-studio [hidden]{display:none!important}
.sgs-ambient{position:absolute;z-index:-1;inset:-30%;background-position:center;background-size:cover;filter:blur(75px) saturate(.8);opacity:.11;pointer-events:none}
.sgs-top{height:40px;display:flex;align-items:center;justify-content:space-between;padding:4px 20px;color:#37584b}.sgs-brand{display:none}.sgs-context{font-size:11px;color:#50685f}.sgs-top button{padding:6px 0;min-height:32px;border:0;background:transparent;color:inherit;font:inherit;font-size:12px;cursor:pointer}.sgs-studio[data-phase=gateway]>.sgs-top{display:none}
.sgs-gateway{height:100%;display:flex;flex-direction:column;justify-content:center;padding:18px 0 12px;gap:12px;overflow:hidden}.sgs-gateway-heading{padding:0 28px;text-align:center;flex:0 0 auto}.sgs-gateway-heading small{font-size:11px;letter-spacing:.04em;color:#536e61}.sgs-gateway-heading h1{font-size:clamp(24px,3.4vw,40px);font-weight:650;line-height:1.25;letter-spacing:-.04em;margin:7px 0;color:#1f4135}.sgs-gateway-heading p{font-size:13px;margin:0;color:#4d695b}
.sgs-purpose-rail{display:flex;gap:20px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding:32px;scrollbar-width:none;padding:10px max(28px,calc((100% - 1000px)/2));min-height:0;flex:0 1 430px;overscroll-behavior-x:contain}.sgs-purpose-rail::-webkit-scrollbar{display:none}
.sgs-purpose-card{position:relative;flex:0 0 300px;min-width:0;height:100%;display:flex;flex-direction:column;padding:16px;border:1px solid #ffffffd9;border-radius:26px;background:linear-gradient(135deg,#fff7,#ffffff10);box-shadow:inset 0 1px #fff,0 12px 25px #3451410d;scroll-snap-align:center;backdrop-filter:blur(13px) saturate(115%);-webkit-backdrop-filter:blur(13px) saturate(115%)}.sgs-purpose-tag{position:absolute;left:18px;top:14px;font-size:10px;color:#456153;z-index:1;background:#ffffff50;padding:4px 8px;border-radius:20px}.sgs-purpose-image{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;overflow:hidden;padding:15px 0 4px}.sgs-purpose-image img{display:block;width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;border-radius:14px}.sgs-purpose-copy{flex:0 0 auto}.sgs-purpose-copy h2{font-size:21px;font-weight:650;letter-spacing:-.035em;line-height:1.3;margin:8px 0 12px;text-align:center;color:#244637}.sgs-purpose-copy button{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:46px;padding:11px 15px;border:1px solid #fff;border-radius:14px;background:#ffffff45;box-shadow:inset 0 1px #ffffffb3;color:#254536;font:600 13px/1.4 system-ui;cursor:pointer}.sgs-purpose-copy button:hover{background:#ffffff83}
.sgs-gateway-controls{display:flex;align-items:center;justify-content:center;gap:26px;flex:0 0 auto;font-size:11px;color:#627868}.sgs-gateway-controls button{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px solid #fff;background:#ffffff38;color:#365541;font-size:24px;cursor:pointer}.sgs-gateway-links{display:flex;justify-content:center;gap:20px;flex:0 0 auto;min-height:30px}.sgs-gateway-links button{min-height:30px;border:0;border-bottom:1px solid #809b8866;color:#476450;background:transparent;font:12px system-ui;cursor:pointer;padding:4px}
.sgs-work{position:absolute;left:0;right:0;top:40px;bottom:126px;display:flex;flex-direction:column;align-items:center;min-height:0;padding:0 24px 10px}.sgs-work-label{align-self:flex-start;z-index:1}.sgs-work-label small{font-size:10px;color:#5a7565}.sgs-work-label h1{font-size:18px;margin:1px 0 5px;font-weight:600;color:#2a4938}.sgs-preview-host{display:flex;align-items:center;justify-content:center;flex:1;width:100%;min-height:0}
html body.sgs-mounted #creation20#creation20 .sgs-preview-host #c20Preview{position:relative!important;inset:auto!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:7px;margin:0!important;padding:0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:hidden!important;color:#274536!important}html body.sgs-mounted #creation20#creation20 .sgs-preview-host #c20Preview[hidden]{display:none!important}
.sgs-preview-host #c20Preview>img,.sgs-preview-host #c20Preview>.c20-main-image,.sgs-preview-host #c20Preview>.c21-sketch,.sgs-preview-host #c20Preview>.c21-letter-preview{max-height:calc(100% - 35px)!important;max-width:min(100%,600px)!important;width:auto!important;object-fit:contain!important;border-radius:20px!important;mix-blend-mode:multiply}.sgs-preview-host #c20Preview>.c21-sketch,.sgs-preview-host #c20Preview>.c21-letter-preview{width:450px!important;aspect-ratio:1!important;min-height:0!important}.sgs-preview-host #c20Preview>.c21-sketch img,.sgs-preview-host #c20Preview>.c21-letter-preview img{object-fit:contain}.sgs-preview-host #c20Preview :is(h3,p){font-size:11px!important;line-height:1.4!important;color:#4e6c59!important;margin:0!important;text-align:center!important;max-width:460px}.sgs-preview-host #c20Preview>p:nth-of-type(2){display:none!important}.sgs-preview-host #c20Preview>button{display:none!important}.sgs-instruction{margin:7px 0 0!important;font-size:12px!important;text-align:center;color:#3e604b;flex:0 0 auto;max-width:560px;line-height:1.5}
.sgs-tools{position:absolute;left:0;right:0;bottom:0;height:122px;padding:10px 0 4px;background:linear-gradient(0deg,#eef1e780,#edf2eb00);z-index:3}.sgs-card-rail{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;padding:2px 24px 7px;scroll-snap-type:x proximity;scroll-padding:24px;scrollbar-width:none;overscroll-behavior-x:contain}.sgs-card-rail::-webkit-scrollbar{display:none}.sgs-card{flex:0 0 132px;min-height:88px;display:block;border:1px solid #ffffffde;border-radius:18px;background:linear-gradient(135deg,#ffffff65,#ffffff0d);box-shadow:inset 0 1px #fff,0 5px 12px #48624908;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);padding:11px 12px;text-align:left;color:#254b38;font:inherit;text-decoration:none;scroll-snap-align:start;cursor:pointer}.sgs-card.is-active{border-color:#88a390;background:#ffffff5c}.sgs-card:disabled,.sgs-card[aria-disabled=true]{opacity:.38;cursor:default}.sgs-card-tag:empty{display:none}.sgs-card-tag{display:block;font-size:9px;color:#6b8172;margin-bottom:3px}.sgs-card-row{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.sgs-card-row>img{width:29px;height:29px;object-fit:contain;border-radius:6px;mix-blend-mode:multiply}.sgs-card-number{font-size:12px;line-height:20px;color:#718877;font-weight:400}.sgs-card strong{display:block;font-size:14px;line-height:1.35;font-weight:650;white-space:normal;color:#2b4e3b}.sgs-card small{display:block;font-size:10px;line-height:1.4;color:#667f6c;margin-top:3px}.sgs-card-arrow{display:none}.sgs-swipe{display:block;text-align:center;font-size:11px;color:#6b8471;letter-spacing:4px;line-height:18px}
.sgs-source-choice{position:absolute;bottom:25px;left:50%;transform:translateX(-50%);width:min(460px,calc(100% - 40px));padding:15px;border:1px solid #ffffffc9;border-radius:22px;background:#ffffff40;backdrop-filter:blur(22px);box-shadow:inset 0 1px #fff}.sgs-source-choice h2{font-size:16px;color:#274c39;margin:0 0 12px;letter-spacing:-.03em}.sgs-source-choice>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sgs-source-choice>div button{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:90px;border:1px solid #fff;border-radius:14px;padding:12px;background:#ffffff35;color:#2a4b38;text-align:left;cursor:pointer}.sgs-source-choice button span{font-size:23px;font-weight:300}.sgs-source-choice strong{font:600 13px/1.4 system-ui}.sgs-continue{margin-top:12px;background:transparent;border:0;color:#2d513b;font:600 12px/1.4 system-ui;min-height:34px;cursor:pointer}
.sgs-native-sheet{position:absolute;inset:10px 18px 12px;z-index:8;max-width:600px;margin:auto;overflow:auto;overscroll-behavior:contain;border:1px solid #fff;border-radius:25px;background:#f4f8f0b8;backdrop-filter:blur(24px) saturate(115%);-webkit-backdrop-filter:blur(24px) saturate(115%);box-shadow:inset 0 1px #fff,0 15px 40px #264b3922;color:#294c38}.sgs-native-sheet>header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:13px 16px;border-bottom:1px solid #ffffff9e;background:#f2f6ef9c;backdrop-filter:blur(20px)}.sgs-native-sheet>header strong{font-size:15px}.sgs-native-sheet>header button{width:36px;height:36px;background:#ffffff50;border:1px solid #fff;border-radius:50%;font-size:23px;color:#305039;cursor:pointer}
html body.sgs-mounted #creation20#creation20 .sgs-native-host #c20Choices{display:block!important;margin:0!important;padding:16px!important;background:transparent!important;border:0!important;box-shadow:none!important;min-width:0!important;width:100%!important;max-height:none!important;overflow:visible!important;color:#2d4f3b!important}.sgs-native-host :is(h2,h3,label,legend,summary){color:#2a4d38!important;font-size:14px!important;line-height:1.5!important}.sgs-native-host p{color:#58705d!important;font-size:12px!important;line-height:1.5!important}.sgs-native-host :is(button,a.c20-button){min-height:44px!important;border:1px solid #fff!important;border-radius:14px!important;background:#ffffff45!important;color:#2d523d!important;font-size:13px!important;box-shadow:inset 0 1px #fff4!important}.sgs-native-host .c20-card{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;padding:9px!important;height:auto!important;min-width:0!important}.sgs-native-host .c20-card img{width:100%!important;height:auto!important;aspect-ratio:1!important;object-fit:contain!important;border-radius:8px!important}.sgs-native-host .c20-card strong{display:block!important;position:static!important;width:auto!important;height:auto!important;clip-path:none!important;font-size:11px!important;line-height:1.4!important;color:#244d37!important;white-space:normal!important}.sgs-native-host .c21-art-grid,.sgs-native-host .c20-grid,.sgs-native-host .pf-products{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;overflow:visible!important}.sgs-native-host :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea,select){max-width:100%!important;min-height:44px!important;border:1px solid #b3c6b8!important;border-radius:12px!important;background:#ffffff55!important;color:#244c36!important;padding:10px!important;font:inherit!important}.sgs-native-host .c20-check{display:flex;gap:9px;align-items:flex-start;line-height:1.6!important}.sgs-native-host input[type=checkbox]{accent-color:#476f52}.sgs-native-host .pf-selection{display:none!important}.sgs-native-host .c21-options{border:0!important;padding:0!important;margin:0 0 18px!important}.sgs-native-host .c21-options>div{display:flex!important;flex-wrap:wrap!important;gap:9px!important}.sgs-native-host .c21-options button{flex:1 0 90px;min-height:80px!important;padding:12px!important}.sgs-native-status{padding:0 16px 10px;font-size:12px;color:#355e43}
html body.sgs-mounted .c20-dialog{border:1px solid #fff!important;background:#f1f6edc9!important;backdrop-filter:blur(25px)!important;-webkit-backdrop-filter:blur(25px)!important;box-shadow:inset 0 1px #fff,0 15px 45px #23412f24!important;border-radius:24px!important;color:#274c36!important;max-height:calc(100dvh - 28px)!important;overflow:auto!important}html body.sgs-mounted .c20-dialog::backdrop{background:#263c3029!important;backdrop-filter:blur(4px)}html body.sgs-mounted .c20-dialog :is(h2,h3,label,legend,summary){color:#274b36!important}html body.sgs-mounted .c20-dialog p{color:#536f5b!important}html body.sgs-mounted .c20-dialog button{min-height:44px!important;border:1px solid #fff!important;background:#ffffff50!important;color:#294c36!important;border-radius:13px!important}html body.sgs-mounted .c20-dialog .c21-options{border:0!important}.c20-dialog .c21-options>div{display:flex;flex-wrap:wrap;gap:10px}html body.sgs-mounted .c20-dialog .c21-options button{flex:1 0 95px!important;min-height:80px!important}html body.sgs-mounted .c20-dialog button[aria-pressed=true]{background:#d8e8d685!important;border-color:#6b9576!important}html body.sgs-mounted .c20-dialog :is(input:not([type=checkbox]),textarea,select){background:#ffffff69!important;color:#2a4b35!important;border:1px solid #b5c7b9!important;border-radius:11px!important}
.sgs-blocked{position:absolute;inset:0;z-index:20;display:grid;align-content:center;justify-items:center;padding:24px;background:#eef4edf5;backdrop-filter:blur(30px);color:#2b523b;text-align:center}.sgs-blocked button{min-height:44px;border:1px solid #fff;border-radius:12px;background:#ffffff66;padding:10px 20px;color:inherit}.sgs-studio :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid #416b51!important;outline-offset:3px}
@media(min-width:1100px){.sgs-work{padding-left:10%;padding-right:10%}.sgs-work-label{position:absolute;top:10px;left:32px}.sgs-tools .sgs-card-rail{justify-content:center}}
@media(max-width:640px){.sgs-studio{min-height:0!important;max-height:none!important}.sgs-top{padding:3px 16px;height:36px}.sgs-top button{font-size:11px}.sgs-gateway{padding:12px 0 8px;gap:7px;justify-content:space-between}.sgs-gateway-heading{padding:0 16px}.sgs-gateway-heading h1{font-size:25px;margin:4px 0}.sgs-gateway-heading small{font-size:10px}.sgs-gateway-heading p{font-size:12px}.sgs-purpose-rail{padding:4px 28px;scroll-padding:28px;gap:15px;flex:1;min-height:0}.sgs-purpose-card{flex-basis:calc(100vw - 86px);max-width:310px;padding:12px;border-radius:23px}.sgs-purpose-tag{left:13px;top:9px;font-size:9px}.sgs-purpose-image{padding-top:20px}.sgs-purpose-copy h2{font-size:20px;margin:5px 0 9px}.sgs-purpose-copy button{font-size:12px;min-height:44px;padding:10px 12px}.sgs-gateway-controls{gap:18px;font-size:10px}.sgs-gateway-controls button{width:29px;height:29px}.sgs-gateway-links{min-height:26px}.sgs-gateway-links button{font-size:10px;min-height:26px}.sgs-work{top:36px;bottom:115px;padding:0 15px 5px}.sgs-work-label h1{font-size:16px}.sgs-work-label small{font-size:9px}.sgs-preview-host #c20Preview>.c21-sketch,.sgs-preview-host #c20Preview>.c21-letter-preview{width:100%!important;max-height:calc(100% - 20px)!important}.sgs-preview-host #c20Preview>p{font-size:9px!important}.sgs-preview-host #c20Preview>h3{display:none!important}.sgs-instruction{font-size:10px!important;margin-top:5px!important;max-width:290px}.sgs-tools{height:111px;padding:4px 0 2px}.sgs-card-rail{padding:2px 15px 5px;scroll-padding:15px;gap:9px}.sgs-card{flex-basis:112px;min-height:83px;padding:9px 11px;border-radius:16px}.sgs-card strong{font-size:13px}.sgs-card small{font-size:9px}.sgs-card-row>img{width:23px;height:23px}.sgs-card-number{font-size:10px;line-height:17px}.sgs-swipe{font-size:10px;line-height:15px}.sgs-source-choice{bottom:8px;padding:12px;width:calc(100% - 18px);border-radius:19px}.sgs-source-choice h2{font-size:15px;margin-bottom:9px}.sgs-source-choice>div{gap:8px}.sgs-source-choice>div button{min-height:80px;padding:10px;gap:10px}.sgs-source-choice strong{font-size:12px}.sgs-source-choice>div button span{font-size:20px}.sgs-studio[data-step="2"] .sgs-preview-host{opacity:.55}.sgs-studio[data-step="2"] .sgs-instruction{visibility:hidden}.sgs-native-sheet{inset:8px 10px;border-radius:20px}.sgs-native-sheet>header{padding:9px 13px}.sgs-native-host .c20-card strong{font-size:10px!important}}
@media(max-height:550px){.sgs-gateway-heading h1{font-size:22px}.sgs-gateway{gap:4px;padding-top:8px}.sgs-gateway-links{min-height:24px}.sgs-purpose-copy h2{font-size:18px;margin:3px 0 7px}.sgs-top{height:32px}.sgs-work{top:32px}}
@media(prefers-reduced-motion:reduce){.sgs-studio *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(prefers-reduced-transparency:reduce){.sgs-native-sheet,html body.sgs-mounted .c20-dialog{background:#f1f6ed!important}.sgs-card,.sgs-purpose-card{background:#eef4eb;backdrop-filter:none}.sgs-ambient{display:none}}
@media(forced-colors:active){.sgs-studio,.sgs-card,.sgs-purpose-card,.sgs-native-sheet{background:Canvas!important;color:CanvasText!important;border:1px solid CanvasText!important}.sgs-studio *{color:CanvasText!important}.sgs-ambient{display:none}.sgs-card.is-active{outline:2px solid Highlight}}
/* Native status remains visible, including failed saves and creation errors. */
.sgs-native-alert{position:absolute;left:18px;right:18px;bottom:126px;z-index:7;padding:0!important;background:#f8fff2b8;border-radius:10px;color:#355941;font-size:11px;backdrop-filter:blur(14px)}
.sgs-native-alert #c20Status{margin:0!important;padding:5px 9px!important;font-size:11px!important;line-height:1.5!important;color:inherit!important;min-height:0!important;background:transparent!important}
.sgs-native-alert:has(#c20Status:empty){display:none}
html body.sgs-mounted.sgs-native-gallery #creation20#creation20>.sgs-studio{display:none!important}
html body.sgs-mounted.sgs-native-gallery #creation20#creation20>#ps-nav#ps-nav{display:flex!important}
@media(max-width:640px){.sgs-native-alert{bottom:114px;font-size:10px}}
/* Production settings are individual reusable cards, rather than a long form. */
.sgs-native-host .c20-form{display:flex!important;gap:12px!important;overflow-x:auto!important;scroll-snap-type:x proximity;grid-template-columns:none!important;padding:6px 0 14px!important}
.sgs-native-host .c20-form>label{flex:0 0 205px!important;scroll-snap-align:start;display:flex!important;flex-direction:column!important;gap:10px!important;min-height:120px!important;padding:14px!important;border:1px solid #fff!important;border-radius:18px!important;background:#ffffff35!important;backdrop-filter:blur(15px)}

/* Match the native focus owner's ID specificity, including body-hosted dialogs.
   These rules change presentation only; native controls and handlers stay intact. */
html body.sgs-mounted.sgs-purpose-v2 :is(#creation20#creation20 .sgs-native-host,#creation20#creation20 .c20-dialog,.c20-dialog){
 color:#284d38!important;color-scheme:light!important;font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;
}
html body.sgs-mounted.sgs-purpose-v2 :is(#creation20#creation20 .sgs-native-host,#creation20#creation20 .c20-dialog,.c20-dialog) :is(.pf-source-selected,.pf-source-empty,.pf-source-choices,.pf-tools,.pf-selection,.pf-create-action,.pf-result-tools,.pf-result-head,.pf-versions,.pf-library,.pf-library-head,.pf-paid,.pf-trial,.c21-categories,.c21-options,.c20-confirm-list){
 background:transparent!important;color:#284d38!important;border-color:#b7ccbc!important;box-shadow:none!important;
}
html body.sgs-mounted.sgs-purpose-v2 :is(#creation20#creation20 .sgs-native-host,#creation20#creation20 .c20-dialog,.c20-dialog) :is(h1,h2,h3,h4,label,legend,summary,strong,b,span){
 color:#284d38!important;
}
html body.sgs-mounted.sgs-purpose-v2 :is(#creation20#creation20 .sgs-native-host,#creation20#creation20 .c20-dialog,.c20-dialog) :is(p,small,.c20-note,.c20-help,.pf-cost,.pf-gate){
 color:#486953!important;line-height:1.5!important;
}
html body.sgs-mounted.sgs-purpose-v2 :is(#creation20#creation20 .sgs-native-host,#creation20#creation20 .c20-dialog,.c20-dialog) :is(button,a.c20-button,.pf-upload){
 background:linear-gradient(135deg,#ffffff70,#ffffff30)!important;color:#284d38!important;border-color:#adc5b4!important;box-shadow:inset 0 1px #fff9!important;font-family:inherit!important;font-size:13px!important;line-height:1.4!important;
}
html body.sgs-mounted.sgs-purpose-v2 :is(#creation20#creation20 .sgs-native-host,#creation20#creation20 .c20-dialog,.c20-dialog) :is(button,a.c20-button)[aria-pressed=true]{
 background:#d5e7d9b3!important;border-color:#658b70!important;box-shadow:inset 0 0 0 1px #658b7040!important;
}
html body.sgs-mounted.sgs-purpose-v2 :is(#creation20#creation20 .sgs-native-host,#creation20#creation20 .c20-dialog,.c20-dialog) .c20-card>strong{
 background:transparent!important;padding:3px 0!important;margin:0!important;min-height:0!important;font-size:11px!important;line-height:1.4!important;
}
html body.sgs-mounted.sgs-purpose-v2 :is(#creation20#creation20 .sgs-native-host,#creation20#creation20 .c20-dialog,.c20-dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea,select){
 background:#ffffff80!important;color:#284d38!important;border-color:#adc5b4!important;font-family:inherit!important;font-size:16px!important;line-height:1.4!important;
}
html body.sgs-mounted.sgs-purpose-v2 :is(#creation20#creation20 .c20-dialog,.c20-dialog){
 background:#f1f7edc9!important;color:#284d38!important;border:1px solid #fff!important;backdrop-filter:blur(25px) saturate(110%)!important;-webkit-backdrop-filter:blur(25px) saturate(110%)!important;box-shadow:inset 0 1px #fff,0 14px 38px #264b3924!important;
}
html body.sgs-mounted.sgs-purpose-v2 :is(#creation20#creation20 .c20-dialog,.c20-dialog)>header{
 background:#f2f7eddb!important;color:#284d38!important;border-color:#b7ccbc!important;backdrop-filter:blur(20px)!important;-webkit-backdrop-filter:blur(20px)!important;
}
html body.sgs-mounted.sgs-purpose-v2 :is(#creation20#creation20 .c20-dialog,.c20-dialog)>header h2{
 font-size:20px!important;line-height:1.35!important;
}
html body.sgs-mounted.sgs-purpose-v2 :is(#creation20#creation20 .c20-dialog,.c20-dialog) .c21-options>div{
 display:flex!important;flex-wrap:wrap!important;gap:10px!important;
}
html body.sgs-mounted.sgs-purpose-v2 :is(#creation20#creation20 .c20-dialog,.c20-dialog) .c21-options button{
 flex:1 0 95px!important;min-height:80px!important;padding:12px!important;
}
/* The art card already opens the real artwork library. Do not repeat the
   source gateway above it. Legacy embedded controls lack these focus wrappers. */
html body.sgs-mounted.sgs-purpose-v2 #creation20#creation20 .sgs-native-sheet[data-tool=art] :is(.pf-source-choices,.pf-source-selected,.pf-source-empty,.pf-panel-head){
 display:none!important;
}
/* Wrapped tool names and their images fit without clipping the swipe cue. */
.sgs-tools{height:154px}.sgs-work{bottom:158px}.sgs-native-alert{bottom:158px}
@media(max-width:640px){.sgs-tools{height:142px}.sgs-work{bottom:146px}.sgs-native-alert{bottom:145px}}
@media(prefers-reduced-transparency:reduce){
 html body.sgs-mounted.sgs-purpose-v2 :is(#creation20#creation20 .c20-dialog,.c20-dialog){background:#f1f7ed!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 html body.sgs-mounted.sgs-purpose-v2 :is(#creation20#creation20 .c20-dialog,.c20-dialog)>header{background:#f2f7ed!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}
@media(forced-colors:active){
 html body.sgs-mounted.sgs-purpose-v2 :is(#creation20#creation20 .sgs-native-host,#creation20#creation20 .c20-dialog,.c20-dialog),
 html body.sgs-mounted.sgs-purpose-v2 :is(#creation20#creation20 .sgs-native-host,#creation20#creation20 .c20-dialog,.c20-dialog) :is(header,button,a,input,textarea,select,label,legend,summary,h1,h2,h3,h4,strong,b,span,p,small,.pf-source-selected,.pf-source-empty,.pf-source-choices,.pf-tools,.pf-selection,.pf-create-action,.pf-result-tools,.pf-result-head,.pf-versions,.pf-library,.pf-library-head,.pf-paid,.pf-trial,.c21-categories,.c21-options,.c20-confirm-list,.c20-card>strong){
  background:Canvas!important;color:CanvasText!important;border-color:CanvasText!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 }
 html body.sgs-mounted.sgs-purpose-v2 :is(#creation20#creation20 .sgs-native-host,#creation20#creation20 .c20-dialog,.c20-dialog) :is(button,a.c20-button)[aria-pressed=true]{outline:2px solid Highlight!important}
}
/* Embedded native editor has no focus dialogs. Reuse its exact fieldsets,
   showing only the settings selected by the corresponding function card. */
@supports selector(fieldset:has(button)){
 html body.sgs-mounted.sgs-purpose-v2 #creation20#creation20 .sgs-studio[data-mode=embedded] .sgs-native-sheet[data-tool=mood] #c20Choices>:not(fieldset:has([data-option=look])):not(fieldset:has([data-option=interpretation])),
 html body.sgs-mounted.sgs-purpose-v2 #creation20#creation20 .sgs-studio[data-mode=embedded] .sgs-native-sheet[data-tool=layout] #c20Choices>:not(fieldset:has([data-option=composition])),
 html body.sgs-mounted.sgs-purpose-v2 #creation20#creation20 .sgs-studio[data-mode=embedded] .sgs-native-sheet[data-tool=palette] #c20Choices>:not(fieldset:has([data-option=palette_choice])){
  display:none!important;
 }
}
html body.sgs-mounted.sgs-purpose-v2 #creation20#creation20 .sgs-studio[data-mode=embedded] .sgs-native-sheet[data-tool=confirm] #c20Choices>:is(fieldset.c21-options,h2),
html body.sgs-mounted.sgs-purpose-v2 #creation20#creation20 .sgs-studio[data-mode=embedded] .sgs-native-sheet[data-tool=text] #c20Choices>:not(.c20-finished){
 display:none!important;
}

/* The fixed workspace must not scroll when native focus changes. Sheets and rails own their scrolling. */
.sgs-studio{overflow:clip!important}

/* V3 uses the same sage material for the workspace, waiting scene and
   native space controls. The source art and the 3D canvas keep their colours. */
html body.sgs-mounted.sgs-purpose-v2{
 --sgs-sage:#eef2eb;--sgs-ink:#284d38;--sgs-muted:#506e5b;--sgs-line:#adc5b4;--sgs-selected:#6b9277;--sgs-surface:#f4f8efad;--sgs-glint:#ffffffb8;
}
html body.sgs-mounted.sgs-native-gallery #creation20#creation20{
 --ps-photo-surface:#eef2eb;--ps-photo-ink:#284d38;--ps-photo-line:#adc5b4;--ps-photo-muted:#506e5b;background:#eef2eb!important;color:#284d38!important;color-scheme:light;
}
html body.sgs-mounted.sgs-native-gallery #creation20#creation20 #ps-nav#ps-nav{
 --svm3-nav-panel:#f0f5ecad;--svm3-nav-button:#ffffff55;--svm3-nav-line:#adc5b4;--svm3-nav-active:#d5e7d9;background:#f0f5ecad!important;color:#284d38!important;border-color:#adc5b4!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
}
html body.sgs-mounted.sgs-native-gallery #creation20#creation20 #ps-nav#ps-nav :is(a,button,span,strong){color:#284d38!important}
html body.sgs-mounted.sgs-native-gallery #creation20#creation20 #ps-gallery :is(.ps-gallery-heading,.ps-studio-mode-help,.ps-gallery-list,.ps-gallery-item,.ps-gallery-actions,.ps-current-links,.ps-presets,.sv3-scene-toolbar,.ps-true3d-controls){
 color:#284d38!important;border-color:#adc5b4!important;
}
html body.sgs-mounted.sgs-native-gallery #creation20#creation20 #ps-gallery :is(.ps-gallery-list,.ps-gallery-item,.sv3-scene-toolbar,.ps-true3d-controls){
 background:#f1f7edad!important;box-shadow:inset 0 1px #ffffffb8!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
}
html body.sgs-mounted.sgs-native-gallery #creation20#creation20 #ps-gallery :is(.ps-presets button,.ps-studio-modes button,.ps-gallery-actions button,.ps-item-actions button,.ps-item-actions a,.ps-current-links a,.sv3-scene-toolbar>button,.ps-true3d-controls button,.sv3-scene-controls button){
 background:linear-gradient(135deg,#ffffff80,#ffffff30)!important;color:#284d38!important;border:1px solid #adc5b4!important;box-shadow:inset 0 1px #ffffffb8!important;font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;line-height:1.4!important;
}
html body.sgs-mounted.sgs-native-gallery #creation20#creation20 #ps-gallery :is(h1,h2,h3,p,b,strong,small,.ps-studio-mode-help,.ps-scene-selected){color:#284d38!important}
html body.sgs-mounted.sgs-native-gallery #creation20#creation20 #ps-gallery :is(.ps-presets button,.ps-studio-modes button)[aria-pressed=true],
html body.sgs-mounted.sgs-native-gallery #creation20#creation20 #ps-gallery .ps-gallery-item.is-selected{
 background:#d7e8dba8!important;border-color:#6b9277!important;box-shadow:inset 0 0 0 1px #6b92774d,inset 0 1px #fff!important;
}
html body.sgs-mounted.sgs-native-gallery #creation20#creation20 #ps-gallery .ps-scene-selected{
 background:#d4e8d8!important;color:#315e3f!important;border:1px solid #7da48a!important;box-shadow:0 2px 6px #284d3814!important;
}
html body.sgs-mounted #creation20#creation20 .sgs-preview-host #c20Preview .c21-wait-scene{
 background:linear-gradient(135deg,#dce9de99,#fff6)!important;border:1px solid #ffffffb8!important;box-shadow:inset 0 1px #fff,0 5px 18px #4862490b!important;
}
html body.sgs-mounted #creation20#creation20 .sgs-preview-host #c20Preview .c21-orbit{border-color:#8ea67c8a!important;box-shadow:none!important}
html body.sgs-mounted #creation20#creation20 .sgs-preview-host #c20Preview :is(.c21-mobile-progress,.c21-mobile-progress p,.c21-mobile-progress span,[data-scene-phase],[data-scene-clock],#c20Elapsed,#c21Phase){
 color:#3f634c!important;background:transparent!important;opacity:1!important;
}
/* A prior completion notice never covers a new purpose card's start button. */
html body.sgs-mounted #creation20#creation20 .sgs-studio[data-phase=gateway] .sgs-native-alert{display:none!important}
.sgs-source-choice strong,.sgs-card strong{word-break:keep-all;overflow-wrap:normal}

/* Reusable function icons stay legible without changing artwork thumbnails. */
.sgs-tool-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;color:#476d53}
.sgs-tool-icon svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.sgs-card-art{display:flex;align-items:center;gap:6px;min-height:32px;max-width:100%}
.sgs-card-art>img{display:block;width:28px;height:28px;object-fit:contain;mix-blend-mode:multiply;border-radius:5px}
.sgs-card-art .sgs-tool-icon{flex-basis:12px;width:12px;height:12px;align-self:flex-end;margin-bottom:2px}
.sgs-completion{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px 10px;flex:0 0 auto;max-width:100%;padding:4px 0;color:#355e43;font-size:12px;line-height:1.45}
.sgs-completion a{display:inline-flex;align-items:center;gap:5px;min-height:34px;padding:6px 9px;border:1px solid #b1c8b8;border-radius:11px;background:#ffffff45;color:#31573f;text-decoration:none;font-size:12px;line-height:1.4}
.sgs-save-status{font-size:11px;line-height:1.5;color:#506e5b}
.sgs-save-status[data-save-state=checking]{color:#526d5c}
.sgs-save-status[data-save-state=confirmed]{color:#28633c}
.sgs-save-status[data-save-state=error]{color:#8c432d}
.sgs-notice{position:absolute;top:44px;left:16px;right:16px;z-index:12;padding:10px 12px;max-height:calc(100% - 90px);overflow:auto;border:1px solid #b4cbb9;border-radius:14px;background:#f4f9f0ed;box-shadow:inset 0 1px #fff,0 8px 22px #284d3817;color:#31533e;font-size:12px;line-height:1.5;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.sgs-notice[data-state=error]{color:#8c432d;border-color:#cfad9c}

/* Pressed feedback is brief and local; it never moves the whole work surface. */
.sgs-studio :is(.sgs-card,.sgs-purpose-copy button,.sgs-source-choice button,.sgs-completion a,.sgs-back,.sgs-gateway-controls button,.sgs-gateway-links button){
 transition:background-color .12s ease,border-color .12s ease,box-shadow .12s ease;
}
.sgs-studio :is(.sgs-card,.sgs-purpose-copy button,.sgs-source-choice button,.sgs-completion a,.sgs-back,.sgs-gateway-controls button,.sgs-gateway-links button):active:not(:disabled):not([aria-disabled=true]){
 background-color:#d2e5d4!important;border-color:#73967e!important;box-shadow:inset 0 1px 5px #42694b24!important;
}
.sgs-card.is-active{border-color:#71967c;box-shadow:inset 0 1px #fff,inset 0 0 0 1px #71967c26}
.sgs-card.is-active .sgs-tool-icon{color:#2d603d}
@media(hover:hover) and (pointer:fine){
 .sgs-purpose-image img{transition:transform .16s ease,filter .16s ease}
 .sgs-purpose-card:hover .sgs-purpose-image img{transform:translateY(-2px) scale(1.012);filter:drop-shadow(0 5px 5px #31553f1a)}
 .sgs-studio :is(.sgs-card,.sgs-purpose-copy button,.sgs-source-choice button,.sgs-completion a):hover:not(:disabled):not([aria-disabled=true]){border-color:#82a68b;box-shadow:inset 0 1px #fff,0 4px 12px #31553f10}
}
html body.sgs-mounted.sgs-native-gallery #creation20#creation20 :is(button,a,input,summary):focus-visible,
.sgs-completion a:focus-visible{outline:2px solid #416b51!important;outline-offset:3px}
@media(max-width:640px){.sgs-completion{font-size:11px;padding:2px 0;gap:3px 7px}.sgs-completion a{font-size:11px;min-height:32px;padding:5px 8px}.sgs-save-status{font-size:11px}.sgs-notice{top:39px;left:12px;right:12px}}
@media(prefers-reduced-motion:reduce){
 .sgs-studio :is(button,a,.sgs-card,.sgs-purpose-image img){transition:none!important;animation:none!important;transform:none!important}
 .sgs-purpose-card:hover .sgs-purpose-image img{filter:none!important}
}
@media(prefers-reduced-transparency:reduce){
 html body.sgs-mounted.sgs-native-gallery #creation20#creation20 #ps-nav#ps-nav,
 html body.sgs-mounted.sgs-native-gallery #creation20#creation20 #ps-gallery :is(.ps-gallery-list,.ps-gallery-item,.sv3-scene-toolbar,.ps-true3d-controls){background:#eef4eb!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 .sgs-notice{background:#f4f9f0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}
@media(forced-colors:active){
 html body.sgs-mounted.sgs-native-gallery #creation20#creation20,
 html body.sgs-mounted.sgs-native-gallery #creation20#creation20 #ps-nav#ps-nav,
 html body.sgs-mounted.sgs-native-gallery #creation20#creation20 #ps-nav#ps-nav :is(a,button,span,strong),
 html body.sgs-mounted.sgs-native-gallery #creation20#creation20 #ps-gallery :is(.ps-gallery-list,.ps-gallery-item,.ps-gallery-actions button,.ps-studio-modes button,.ps-presets button,.ps-item-actions button,.ps-item-actions a,.ps-current-links a,.ps-scene-selected,.sv3-scene-toolbar,.sv3-scene-toolbar>button,.ps-true3d-controls,.ps-true3d-controls button),
 html body.sgs-mounted.sgs-native-gallery #creation20#creation20 #ps-gallery :is(h1,h2,h3,p,b,strong,small,.ps-studio-mode-help),
 .sgs-completion,.sgs-completion a,.sgs-save-status,.sgs-save-status[data-save-state],.sgs-notice,.sgs-notice[data-state]{background:Canvas!important;color:CanvasText!important;border-color:CanvasText!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 html body.sgs-mounted.sgs-native-gallery #creation20#creation20 #ps-gallery :is(.ps-presets button,.ps-studio-modes button)[aria-pressed=true],
 .sgs-card.is-active{outline:2px solid Highlight!important}
 .sgs-purpose-card:hover .sgs-purpose-image img{transform:none!important;filter:none!important}
}
/* Reserve the icon plus a two-line action name on wide screens as well. */
@media(min-width:641px){.sgs-tools{height:162px}.sgs-work{bottom:166px}.sgs-native-alert{bottom:166px}}

.sgs-completion>[data-archive-retry]{min-height:32px;border:1px solid #b1c8b8;border-radius:11px;background:#ffffff45;color:#31573f;padding:5px 8px;font:inherit;font-size:11px;cursor:pointer}
.sgs-completion>[data-archive-retry]:focus-visible{outline:2px solid #416b51;outline-offset:3px}

/* Status follows the active work or sheet instead of covering an action. */
.sgs-studio .sgs-work>.sgs-native-alert{position:static!important;inset:auto!important;flex:0 1 auto;width:100%;max-height:72px;overflow:auto;margin:4px 0 0;z-index:auto}
.sgs-studio .sgs-native-sheet>.sgs-native-alert{position:sticky!important;inset:auto 0 0!important;margin:8px 12px;width:auto;max-height:88px;overflow:auto;z-index:3;background:#f5faeff2}
.sgs-native-alert:has(#c20Status:empty):has(#boxSyncNote:not(:empty):not([hidden])){display:block}
.sgs-studio:is([data-step="4"],[data-step="5"]) .sgs-instruction{display:none!important}
html body.sgs-mounted.sgs-native-gallery #creation20#creation20 #ps-gallery .ps-true3d-canvas:not(:has(canvas)){background:#e5eee1!important}
html body.sgs-mounted.sgs-native-gallery #creation20#creation20 #ps-gallery .ps-true3d-message{background:#edf4e8dc!important;color:#355d42!important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}

.sgs-studio .sgs-native-alert[data-redundant=true]{display:none!important}
@media(max-width:640px){.sgs-tools{height:154px}.sgs-work{bottom:158px}}

html body.sgs-mounted #creation20#creation20 .sgs-preview-host #c20Preview>button[data-motion]{display:block!important;flex:0 0 auto;min-height:28px!important;padding:4px 9px!important;border:1px solid #abc3b0;border-radius:10px;background:#ffffff50;color:#365e43;font:11px system-ui}
