/* Product inputs share the composer's neutral glass material. */
.pk-dialog.ws-dialog{width:min(580px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:24px;border:1px solid #c0c9d445;border-radius:28px;background:linear-gradient(145deg,#24292ff5,#101317f7 50%,#1c2228f5);color:#f2f3f3;box-shadow:0 30px 100px #000b,inset 0 1px 1px #ffffff18;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);overscroll-behavior:contain}
.pk-dialog::backdrop{background:#030609a8;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.pk-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.pk-dialog>header h2{font-size:23px;letter-spacing:-.035em;font-weight:500;margin:0}
.pk-dialog>header .ws-icon{width:36px;height:36px;min-height:36px;padding:8px;border-radius:50%;background:#ffffff08;border:1px solid #ffffff15}
.pk-dialog form{display:block;margin:0}
.pk-dialog svg,.pk-products svg{width:22px;height:22px;flex:none}
.pk-intro{font-size:13px;line-height:1.6;color:#aeb6c0;margin:0 0 18px}
.pk-saved-products{margin:0 0 16px;border:1px solid #b6c0cc26;border-radius:14px;background:#0d111540}
.pk-saved-products summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;font-size:13px;cursor:pointer;color:#dce1e6}
.pk-saved-products summary::after{content:'⌄';font-size:17px;color:#aeb6c0}
.pk-saved-products summary>span{margin-left:auto;color:#aeb6c0}
.pk-saved-products>p{padding:0 15px 14px;margin:0;color:#aeb6c0;font-size:12px;line-height:1.6}
.pk-saved-products a{color:#e6ebf2;text-underline-offset:3px}
.pk-saved-list{display:grid;max-height:220px;overflow-y:auto;padding:0 7px 7px;gap:4px}
.pk-saved-list button{display:flex;align-items:center;gap:12px;width:100%;padding:10px;border:0;border-radius:10px;background:none;text-align:left;color:#eef1f3;cursor:pointer}
.pk-saved-list img{width:44px;height:44px;object-fit:contain;border-radius:8px;background:#0003}
.pk-saved-list strong{display:block;font-size:13px;font-weight:500}
.pk-saved-list small{display:block;margin-top:4px;font-size:11px;color:#aeb6c0}
.pk-upload{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;min-height:94px;padding:18px;border:1px dashed #c2cdda45;border-radius:18px;background:linear-gradient(145deg,#30394535,#0a0e1244);color:#e9edf1;text-align:left;cursor:pointer;box-shadow:inset 0 1px 1px #ffffff0b}
.pk-upload>svg{width:30px;height:30px;padding:5px;background:#ffffff09;border-radius:50%}
.pk-upload>span{display:grid;gap:7px}
.pk-upload strong{font-size:14px;font-weight:500}
.pk-upload strong small{color:#aab4bf;font-size:11px;margin-left:6px;font-weight:400}
.pk-upload>span>span{font-size:11px;color:#aeb6c0}
.pk-photo-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}
.pk-photo-list:empty{display:none}
.pk-photo{position:relative;min-width:0}
.pk-photo>button:first-child{display:block;position:relative;width:100%;aspect-ratio:1;border:1px solid #bac7d32a;border-radius:12px;background:#090d1180;padding:6px;cursor:pointer;overflow:hidden}
.pk-photo img{display:block;width:100%;height:100%;object-fit:contain;border-radius:7px}
.pk-photo>button[aria-pressed=true]{border-color:#e8edf3;box-shadow:0 0 0 1px #e8edf333}
.pk-photo>button>span{position:absolute;bottom:5px;right:5px;display:grid;place-items:center;width:20px;height:20px;border:1px solid #b5c1cf80;border-radius:50%;background:#161c23;color:#f3f5f8;font-size:12px}
.pk-photo .pk-remove-photo{position:absolute;right:-5px;top:-5px;display:grid;place-items:center;width:24px;height:24px;padding:4px;background:#282f38;border:1px solid #aeb9c63d;border-radius:50%;color:#e9eef4;cursor:pointer}
.pk-photo .pk-remove-photo svg{width:13px;height:13px}
.pk-photo-hint{font-size:11px;line-height:1.6;color:#aeb6c0;margin:9px 0 0}
.pk-photo-hint:empty{display:none}
.pk-fields{display:grid;gap:8px;margin-top:20px}
.pk-dialog .pk-fields label{display:flex;flex-direction:row;align-items:center;justify-content:space-between;font-size:12px;color:#dbe0e6;margin:0}
.pk-fields label:not(:first-child){margin-top:10px!important}
.pk-fields label>span{font-size:11px;color:#98a3b0}
.pk-dialog .pk-fields :is(input,textarea,select){width:100%;border:1px solid #b4c0d12b;border-radius:12px;background:#090e1459;color:#eef1f5;padding:12px 14px;font:inherit;font-size:14px;line-height:1.5;margin:0;box-shadow:inset 0 1px 2px #0002}
.pk-fields textarea{min-height:104px;resize:vertical;max-height:220px}
.pk-fields :is(input,textarea)::placeholder{color:#8e99a6}
.pk-fields select option{background:#191f27;color:#edf2f6}
.pk-dialog .pk-save-choice{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;margin:18px 0 0;font-size:12px;color:#c5cdd6;cursor:pointer;text-align:left}
.pk-save-choice input{appearance:auto;width:16px;height:16px;accent-color:#e8ecf1;margin:0;flex:none}
.pk-error{font-size:12px;line-height:1.6;color:#efc0af;margin:12px 0 0}
.pk-error:empty{display:none}
.pk-dialog footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid #b6c0cc1f}
.pk-primary,.pk-secondary{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:0 17px;border-radius:12px;font:inherit;font-size:12px;font-weight:500;cursor:pointer}
.pk-primary{border:1px solid #ffffff75;background:linear-gradient(140deg,#fafbf9,#e4e7e4);color:#171b20;box-shadow:0 0 20px #e6edf00f}
.pk-secondary{border:1px solid #bdc8d52f;background:#242d3833;color:#d6dde6}
.pk-primary:disabled{opacity:.45;cursor:wait}
.pk-dialog :is(button,input,textarea,select,summary,a):focus-visible,.pk-products :is(button,a):focus-visible{outline:2px solid #e9eef5;outline-offset:3px}
.pk-products{margin-top:44px;padding-top:26px;border-top:1px solid var(--line);color:var(--text)}
.pk-products>header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}
.pk-products h2{font-size:21px;letter-spacing:-.035em;font-weight:500;margin:0}
.pk-products header p{font-size:13px;color:var(--muted);margin:8px 0 0;line-height:1.6}
.pk-products-empty{padding:20px 0;font-size:13px;color:var(--muted)}
.pk-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.pk-product-card{display:flex;align-items:center;gap:18px;min-width:0;padding:16px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,#20272e50,#0c101460);color:var(--text);text-align:left;cursor:pointer}
.pk-product-card>img,.pk-product-symbol{display:grid;place-items:center;width:76px;height:76px;flex:none;background:#ffffff04;border-radius:12px;object-fit:contain}
.pk-product-card>span:nth-child(2){min-width:0;flex:1}
.pk-product-card strong{display:block;font-size:14px;font-weight:500;overflow-wrap:anywhere}
.pk-product-card small{display:block;margin-top:5px;font-size:10px;color:var(--muted)}
.pk-product-card>span>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;color:var(--muted);margin-top:8px;line-height:1.6}
.pk-edit-label{font-size:11px;color:var(--muted)}
.mc-quick-starts button[aria-pressed=true]{border-color:#edf2f6b3;background:linear-gradient(145deg,#5a66765e,#242c386e);color:#fff;box-shadow:inset 0 1px 1px #ffffff3b,0 0 0 1px #e6eef318}
.marketing-studio .mc-glass .mc-main{grid-template-rows:auto;align-content:start}
.mc-ad-context{display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:0;padding:0 4px}
.mc-ad-context>span{font-size:11px;font-weight:500;letter-spacing:.01em;color:#b1bbc6;white-space:nowrap}
.mc-ad-context>button{display:flex;align-items:center;gap:8px;min-height:36px;max-width:70%;border:1px solid #b4bfcd23;border-radius:10px;background:#20283244;color:#d6dee7;padding:6px 10px;cursor:pointer;font:inherit;font-size:11px;min-width:0}
.mc-ad-context button>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mc-ad-context button>small{font-size:10px;white-space:nowrap;color:#9eabb9}
.marketing-studio .mc-ad-context svg{width:15px;height:15px;flex:none}
.mc-main>.mc-reference-list{justify-content:flex-start;margin:0;gap:6px}
.mc-main>.ms-ugc-panel{padding:12px 0 0;margin:0;border-top:1px solid #aab8c427;background:none;display:grid;grid-template-columns:1fr 2fr}
.mc-main>.ms-ugc-panel>.ms-script-label{grid-column:1/-1;margin:0 0 6px;font-size:11px;color:#aab5c2}
.mc-main>.ms-ugc-panel .ms-ugc-choices{grid-row:2}
.mc-main>.ms-ugc-panel .ms-creators{grid-row:2}
.mc-main>.ms-ugc-panel .ms-creators[open]{grid-column:1/-1}
.mc-main>.ms-ugc-panel .ms-creators[open]~.ms-ugc-choices{grid-row:3}
.mc-main>.ms-ugc-panel .ms-choices>summary{background:#222b364d;border:1px solid #b4c0cf1a}
.mc-main>.ms-extra-direction{margin:0;padding:0;border:0}
.marketing-studio .mc-main>.ms-extra-direction .prompt-input{position:static;width:100%;height:90px;min-height:90px;margin:8px 0 0;padding:12px;border:1px solid #b4c0cf26;border-radius:12px;background:#11172055;font-size:14px;resize:vertical}
@media(hover:hover){.pk-saved-list button:hover,.pk-secondary:hover{background:#ffffff0d}.pk-upload:hover{background:#ffffff08;border-color:#c4cdd76b}.pk-product-card:hover{border-color:#c4ced64d}.pk-primary:hover{filter:brightness(1.04)}}
@media(max-width:720px){.pk-dialog.ws-dialog{width:calc(100vw - 24px);padding:20px;border-radius:24px;max-height:calc(100dvh - 24px)}.pk-dialog>header h2{font-size:22px}.pk-dialog .pk-fields :is(input,textarea,select){font-size:16px}.pk-photo-list{gap:8px}.pk-photo-hint{font-size:10px}.pk-products>header{align-items:flex-start;gap:12px}.pk-products header p{max-width:220px;font-size:12px}.pk-products h2{font-size:20px}.pk-products .pk-secondary{white-space:nowrap;padding:0 12px;font-size:11px}.pk-product-grid{grid-template-columns:1fr}.mc-ad-context{flex-direction:column;align-items:stretch;gap:8px}.mc-ad-context>button{max-width:none;min-height:40px}.mc-ad-context>span{font-size:11px}.mc-main>.ms-ugc-panel{grid-template-columns:1fr;gap:10px}.mc-main>.ms-ugc-panel .ms-creators{grid-row:2;grid-column:1}.mc-main>.ms-ugc-panel .ms-ugc-choices{grid-row:3;grid-column:1}.mc-main>.ms-ugc-panel .ms-creators[open]~.ms-ugc-choices{grid-row:3}}
@media(prefers-reduced-transparency:reduce){.pk-dialog.ws-dialog{background:#171c22;backdrop-filter:none;-webkit-backdrop-filter:none}.pk-dialog::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(prefers-reduced-motion:reduce){.pk-dialog *{transition:none!important;animation:none!important}}
.mc-ad-context{flex-wrap:wrap}
.mc-ad-context>span:first-child{display:flex;align-items:center;gap:10px;min-width:0}
.mc-ad-context>span>small{overflow:hidden;text-overflow:ellipsis;font-size:11px;max-width:190px;color:#e0e6ec;font-weight:400}
.mc-product-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;min-width:0}
.mc-product-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 11px;border:1px solid #c6d0dd35;border-radius:10px;background:linear-gradient(145deg,#34415144,#171e2844);color:#e0e7ef;font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}
.mc-product-actions .mc-product-details{padding:7px 0;border:0;background:none;color:#abb6c3;font-size:11px}
.mc-product-actions button:disabled{opacity:.5;cursor:wait}
.mc-product-actions button:focus-visible{outline:2px solid #e3ebf4;outline-offset:3px}
.mc-ad-context>.mc-product-feedback{flex-basis:100%;font-size:11px;font-weight:400;color:#efc6b2;line-height:1.6;white-space:normal}
.mc-product-feedback:empty{display:none}
.marketing-studio .mc-glass.floating-composer[data-composer].mc-file-hover{outline:2px solid #e4edf8;outline-offset:5px;box-shadow:0 0 40px #b8d3f02b,inset 0 0 50px #c7d7eb0a}
.mc-file-hover .mc-prompt-well::after{content:'Drop product photos to add them';position:absolute;inset:0;z-index:5;display:grid;place-items:center;padding:20px;border:1px dashed #dce8f2a3;border-radius:inherit;background:#171e28ee;color:#eff4fa;font-size:15px;pointer-events:none;text-align:center}
@media(hover:hover){.mc-product-actions button:hover:not(:disabled){border-color:#d9e4f663;background-color:#ffffff08}.mc-product-actions .mc-product-details:hover{color:#f0f4f9}}
@media(max-width:720px){.mc-product-actions{justify-content:flex-start;flex-wrap:wrap;gap:6px 14px}.mc-product-actions button{min-height:40px;font-size:12px}.mc-ad-context>span>small{max-width:170px}.mc-product-actions .mc-product-details{font-size:11px}.mc-file-hover .mc-prompt-well::after{inset:0;height:auto;bottom:0;left:0;right:0;border-radius:inherit;background:#171e28ee}}

/* Product entry is a clear drop target and opens the optional product picker. */
.mc-ad-context{align-items:stretch;gap:8px}
.mc-ad-context>span:first-child{flex-basis:100%}
.mc-ad-context>.mc-product-card{display:flex;align-items:center;gap:14px;width:100%;max-width:none;min-height:78px;padding:14px 18px;border:1px dashed #c5d0dc70;border-radius:16px;background:linear-gradient(120deg,#39434e55,#222a3338);text-align:left;color:#edf1f6;transition:background-color 140ms,border-color 140ms}
.mc-product-card .mc-product-card-icon{display:grid;place-items:center;width:44px;height:44px;flex:none;border:1px solid #c6d0dc35;border-radius:12px;background:#c3d0e012}
.marketing-studio .mc-product-card-icon svg{width:25px;height:25px}
.mc-product-card .mc-product-card-copy{display:flex;flex:1;flex-direction:column;gap:5px;white-space:normal;overflow:visible}
.mc-product-card-copy strong{font-size:14px;font-weight:550}
.mc-product-card-copy small{font-size:12px;color:#b6c0cc;white-space:normal;line-height:1.4}
.mc-product-card:focus-visible{outline:2px solid #e3ebf4;outline-offset:3px}
.mc-file-hover .mc-product-card{border-color:#f1f6fc;background-color:#c3d0e020}
.marketing-studio .mc-prompt-well :is(.prompt-input,#ms-script){padding:1.7cqw;}
.mc-prompt-well::after{display:none}
@media(hover:hover){.mc-ad-context>.mc-product-card:hover{border-color:#e3ebf4aa;background-color:#b7c8db12}}
@media(max-width:600px){.mc-ad-context>.mc-product-card{padding:12px;gap:12px}.mc-product-card-copy strong{font-size:14px}.mc-product-card-copy small{font-size:11px}.marketing-studio .mc-prompt-well :is(.prompt-input,#ms-script){padding:16px}}
.mc-file-hover .mc-prompt-well::after{display:grid}

.mc-ad-context{display:grid;grid-template-columns:minmax(0,1fr)}
.mc-ad-context>.mc-product-card{min-width:0;box-sizing:border-box}
.mc-ad-context .mc-product-card-copy{white-space:normal;min-width:0}


/* Reference placement: compact product card inside the right side of the prompt. */
.mc-prompt-well>.mc-ad-context{position:absolute;right:16px;top:12px;bottom:12px;width:156px;padding:0;display:flex;align-items:stretch;z-index:2}
.mc-prompt-well>.mc-ad-context>span:first-child{display:none}
.mc-prompt-well .mc-ad-context>.mc-product-card{min-height:0;height:100%;padding:10px;gap:8px;flex-direction:column;justify-content:center;text-align:center;border:1px solid #c5d0dc40;border-radius:14px;background:linear-gradient(145deg,#ffffff0d,#ffffff04);box-shadow:inset 0 1px 0 #ffffff08}
.mc-prompt-well .mc-product-card-icon{width:30px;height:30px;background:#ffffff0c;border:1px solid #ffffff14;border-radius:50%;color:#edf1f6}
.mc-prompt-well .mc-product-card-icon svg{width:22px;height:22px}
.mc-prompt-well .mc-product-card-copy{flex:0;gap:3px}
.mc-prompt-well .mc-product-card-copy strong{font-size:13px;line-height:1.3;font-weight:550;color:#f0f3f6;overflow:hidden;text-overflow:ellipsis}
.mc-prompt-well .mc-product-card-copy small{font-size:11px;line-height:1.4;color:#bbc2ca}
.mc-prompt-well .mc-product-card>svg{display:none}
.marketing-studio .mc-prompt-well:has(.mc-ad-context) :is(.prompt-input,#ms-script){padding-right:195px;min-height:120px}
.mc-prompt-well .mc-product-feedback{position:absolute;right:0;top:100%;width:240px;white-space:normal;background:#171c22;border-radius:8px;padding:8px}
.mc-prompt-well .mc-product-feedback:empty{display:none}
@media(max-width:600px){.mc-prompt-well>.mc-ad-context{width:116px;right:10px;top:12px;bottom:12px}.marketing-studio .mc-prompt-well:has(.mc-ad-context) :is(.prompt-input,#ms-script){padding-right:142px;min-height:160px}.mc-prompt-well .mc-product-card-copy strong{font-size:12px}.mc-prompt-well .mc-product-card-copy small{font-size:10px}}

.pk-paths{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:5px;margin:0 0 18px;border:1px solid #ffffff14;border-radius:14px;background:#0003}
.pk-paths button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px;border:1px solid transparent;border-radius:10px;background:none;color:#aeb7c1;font:inherit;font-size:13px;cursor:pointer}
.pk-paths button[aria-pressed=true]{background:#ffffff0e;border-color:#ffffff26;color:#f2f4f6;box-shadow:0 2px 8px #0002}
.pk-paths svg{width:18px;height:18px}
.pk-dialog [hidden]{display:none!important}
.pk-upload{min-height:138px}
.pk-upload>span>small{font-size:10px;color:#929da9}
.pk-upload.is-dragging{border-color:#edf3fa;background:#ffffff12}
.pk-optional{margin-top:18px;padding-top:16px;border-top:1px solid #ffffff16}
.pk-optional summary{cursor:pointer;font-size:13px;color:#dbe1e7}
.pk-optional summary>span{display:inline-block;margin-left:8px;padding:3px 7px;border-radius:6px;background:#ffffff08;color:#aeb7c2;font-size:11px}
.pk-optional .pk-fields{margin-top:16px}
.pk-empty-saved{padding:26px 14px;text-align:center;color:#abb5c1;font-size:13px;line-height:1.6;border:1px solid #ffffff16;border-radius:14px}
.pk-saved-list{padding:0;gap:6px}
.pk-saved-list button{border:1px solid #ffffff16;background:#ffffff03}
.pk-saved-list button[aria-pressed=true]{border-color:#dde5ee8c;background:#ffffff0b}
.pk-paths button:focus-visible,.pk-optional summary:focus-visible{outline:2px solid #e4ebf4;outline-offset:3px}

.pk-saved-heading{display:flex;justify-content:space-between;gap:12px;margin:0 0 12px;font-size:12px;color:#d2d9e0}
.pk-saved-heading>span:last-child{font-size:11px;color:#929eab}
.pk-dialog [data-product-path="saved"]>.pk-fields{margin:0 0 18px}
.pk-saved-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:370px;overflow-y:auto;padding:2px}
.pk-saved-grid button{min-width:0;display:flex;flex-direction:column;gap:8px;align-items:stretch;padding:8px;border:1px solid #ffffff1c;border-radius:14px;background:#ffffff04;color:#edf1f5;text-align:left;font:inherit;cursor:pointer}
.pk-saved-image{position:relative;display:grid;place-items:center;aspect-ratio:1.2;background:#080c104a;border-radius:9px;overflow:hidden}
.pk-saved-image img{width:100%;height:100%;object-fit:contain}
.pk-saved-grid strong{font-size:12px;font-weight:500;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pk-saved-grid small{font-size:10px;color:#a7b2be;margin-top:-4px}
.pk-saved-check{display:none;position:absolute;right:6px;top:6px;width:20px;height:20px;place-items:center;border-radius:50%;background:#edf1f5;color:#151a20;font-size:12px}
.pk-saved-grid button[aria-pressed=true]{border-color:#e5edf2a3;background:#ffffff0b}
.pk-saved-grid button[aria-pressed=true] .pk-saved-check{display:grid}
.pk-view-all{display:block;width:100%;margin-top:12px;min-height:38px;border:1px solid #ffffff1c;border-radius:10px;background:#ffffff04;color:#d7dfe8;font:inherit;font-size:12px;cursor:pointer}
.pk-empty-saved .pk-secondary{margin-top:14px}
.pk-saved-grid button:focus-visible,.pk-view-all:focus-visible{outline:2px solid #e4ebf4;outline-offset:2px}
@media(hover:hover){.pk-saved-grid button:hover,.pk-view-all:hover{background:#ffffff0b;border-color:#ffffff45}}
@media(max-width:600px){.pk-saved-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:330px}}

/* Make saving a product an obvious, comfortably sized option. */
.pk-dialog .pk-save-choice{display:flex;min-height:54px;padding:14px 16px;margin-top:18px;border:1px solid #bfcbd444;border-radius:13px;background:#ffffff06;color:#e2e8ef;font-size:13px;font-weight:500;gap:12px;transition:background-color 140ms,border-color 140ms}
.pk-dialog .pk-save-choice input{width:20px;height:20px;cursor:pointer;accent-color:#e8edf2}
.pk-dialog .pk-save-choice:has(input:checked){border-color:#dce5ee99;background:#ffffff12;color:#f5f7fa;box-shadow:inset 0 1px 0 #ffffff0c}
.pk-dialog .pk-save-choice:focus-within{outline:2px solid #e3ebf4;outline-offset:3px}
@media(hover:hover){.pk-dialog .pk-save-choice:hover{background:#ffffff0d;border-color:#d8e2ed70}}

.mc-with-creator>.mc-ad-context{width:320px;gap:8px}
.mc-with-creator .mc-ad-context>.mc-product-card{flex:1;width:0;min-width:0}
.marketing-studio .mc-with-creator:has(.mc-ad-context) #ms-script{padding-right:355px}
.mc-main>.ms-ugc-panel>.ms-creators{display:none}
.mc-main>.ms-ugc-panel{grid-template-columns:1fr}
.mc-creator-dialog .ms-creator-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.mc-creator-dialog .ms-creator-grid button{border:1px solid #ffffff26;border-radius:14px;background:#ffffff06;color:#eee;padding:8px;display:flex;flex-direction:column;gap:6px;align-items:center;cursor:pointer}
.mc-creator-dialog .ms-creator-grid img{width:100%;height:130px;object-fit:cover;border-radius:9px}
.mc-creator-dialog .ms-creator-grid small{color:#aab4c0}
@media(max-width:600px){.mc-with-creator>.mc-ad-context{position:static;width:auto;margin:0 12px 12px;height:100px}.mc-with-creator{flex-direction:column}.marketing-studio .mc-with-creator:has(.mc-ad-context) #ms-script{padding-right:16px;min-height:120px}.mc-creator-dialog .ms-creator-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.mc-main>.ms-ugc-panel[hidden]{display:none!important}

/* Gallery navigation is separate from the text-free media tiles. */
.ms-gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:18px 0 22px}
.ms-gallery-toolbar .ms-filters{margin:0;flex-wrap:wrap}
.ms-media-switch{display:flex;flex:none;gap:4px;padding:4px;border:1px solid #c6d0db2b;border-radius:12px;background:#11161b80}
.ms-media-switch button{display:flex;align-items:center;gap:7px;padding:9px 13px;min-height:38px;border:1px solid transparent;border-radius:8px;background:none;color:#a8b1bd;font:inherit;font-size:12px;cursor:pointer}
.ms-media-switch button[aria-pressed=true]{background:#ffffff10;border-color:#ffffff20;color:#f2f5f8}
.ms-media-switch svg{width:17px;height:17px}
.ms-media-switch button:focus-visible{outline:2px solid #e4ebf4;outline-offset:2px}
.ms-media-only .ms-recipe-image{display:block;aspect-ratio:4/5;height:auto}
.ms-media-only .ms-recipe-image video{width:100%;height:100%;object-fit:cover;display:block}
.ms-media-placeholder{display:grid;place-items:center;width:100%;height:100%;background:radial-gradient(ellipse at 40% 15%,#30384255,transparent 75%),#11161b;box-shadow:inset 0 1px 0 #ffffff0a;border:1px solid #c2cdd622;border-radius:inherit}
.ms-media-placeholder svg{width:34px;height:34px;color:#65717e;stroke-width:1}
.ms-media-only{padding:0!important;overflow:hidden;border-radius:14px}
@media(max-width:600px){.ms-gallery-toolbar{align-items:flex-start;gap:12px;flex-direction:column}.ms-media-switch{align-self:flex-end}.ms-gallery-toolbar .ms-filters{gap:5px}}

/* Compact neutral template controls, matching the reference. */
.ms-gallery-heading h2{font-size:18px;letter-spacing:-.02em}
.ms-gallery-toolbar{margin:16px 0 16px;gap:16px;align-items:center}
.ms-gallery-toolbar .ms-filters{display:flex;gap:7px;align-items:center}
.ms-gallery-toolbar .ms-filters button{display:flex;align-items:center;gap:6px;min-height:32px;padding:7px 12px;border:1px solid transparent;border-radius:999px;background:#ffffff08;color:#969da5;font-size:11px;white-space:nowrap}
.ms-gallery-toolbar .ms-filters button[aria-pressed=true]{background:#ffffff25;border-color:#ffffff0e;color:#f4f5f6}
.ms-gallery-toolbar .ms-filters svg{width:14px;height:14px;flex:none}
.ms-media-switch{padding:3px;border:0;border-radius:999px;background:#ffffff08;gap:2px}
.ms-media-switch button{border:0;min-height:28px;padding:6px 10px;border-radius:999px;font-size:11px;gap:6px}
.ms-media-switch button[aria-pressed=true]{background:#ffffff25;color:#f4f5f6}
.ms-media-switch svg{width:13px;height:13px}
@media(max-width:1100px){.ms-gallery-toolbar{align-items:flex-start;flex-direction:column}.ms-media-switch{align-self:flex-end}}
@media(hover:hover){.ms-gallery-toolbar .ms-filters button:hover,.ms-media-switch button:hover{background-color:#ffffff18;color:#f4f5f6}}

/* More legible template navigation with comfortable targets. */
.explore-masonry{columns:4;column-gap:14px}
.explore-media-tile{display:block;position:relative;break-inside:avoid;width:100%;aspect-ratio:var(--tile-ratio);padding:0;margin:0 0 14px;border:0;border-radius:14px;overflow:hidden;background:#12161b;cursor:pointer;isolation:isolate}
.explore-media-tile img{display:block;width:100%;height:100%;object-fit:cover;transition:filter 160ms ease}
.explore-media-tile video{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.explore-media-tile:hover img{filter:brightness(1.06)}
.explore-media-tile:focus-visible{outline:2px solid #e6e9ed;outline-offset:3px}
.explore-template-dialog{width:min(1060px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:24px;border:1px solid #c0c9d445;border-radius:24px;background:linear-gradient(145deg,#24292ff5,#101317fa 60%);color:#f2f3f3;box-shadow:0 30px 100px #000b,inset 0 1px 1px #ffffff18;backdrop-filter:blur(24px)}
.explore-template-dialog::backdrop{background:#030609b8;backdrop-filter:blur(8px)}
.explore-template-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.explore-template-dialog h2{font-size:20px;letter-spacing:-.025em;font-weight:500;margin:0}
.explore-template-dialog>header button{width:34px;height:34px;flex:none;border:1px solid #ffffff20;background:#ffffff08;border-radius:50%;font-size:24px;cursor:pointer}
.explore-preview-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:24px}
.explore-preview-media{background:#08090b;border-radius:14px;overflow:hidden;min-height:340px;height:min(62vh,560px);display:grid;place-items:center}
.explore-preview-media iframe{width:100%;height:100%;border:0;display:block}
.explore-preview-media>video{width:100%;height:100%;object-fit:contain}
.explore-preview-media>img{width:100%;height:100%;object-fit:contain;max-height:min(62vh,560px)}
.explore-preview-details{min-width:0;display:flex;flex-direction:column}
.explore-preview-tags{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:22px}
.explore-preview-tags span{padding:7px 9px;border:1px solid #ffffff18;border-radius:8px;background:#ffffff07;color:#c4cbd4;font-size:12px}
.explore-preview-details label{font-size:13px;margin-bottom:10px;color:#e3e6ea}
.explore-preview-details textarea{resize:vertical;min-height:220px;flex:1;width:100%;padding:14px;border:1px solid #c0c9d425;border-radius:12px;background:#080c1259;color:#d7dce3;font:inherit;font-size:13px;line-height:1.65}
.explore-preview-credit{color:#8f99a5;font-size:11px;line-height:1.6;margin:14px 0}
.explore-preview-credit a{color:#c3cbd6;text-decoration:underline;text-underline-offset:3px}
.explore-preview-details footer{display:flex;gap:10px;margin-top:6px}
.explore-preview-details footer button{padding:11px 18px;border-radius:10px;border:1px solid #ffffff26;background:#ffffff0a;color:#d7dce3;font-size:13px;cursor:pointer}
.explore-preview-details footer .explore-copy-template{background:#eeeef0;color:#121316;font-weight:500;border-color:transparent}
@media(min-width:1900px){.explore-masonry{columns:5}}
@media(max-width:1100px){.explore-masonry{columns:3}}
@media(max-width:800px){.explore-preview-layout{grid-template-columns:1fr}.explore-preview-media{height:340px;min-height:0}.explore-template-dialog{padding:18px}.explore-masonry{columns:2;column-gap:10px}.explore-media-tile{margin-bottom:10px;border-radius:10px}}
@media(prefers-reduced-motion:reduce){.explore-media-tile img{transition:none}}
.ms-gallery-toolbar .ms-filters{gap:8px}
.ms-gallery-toolbar .ms-filters button{min-height:40px;padding:9px 14px;gap:8px;font-size:13px;color:#bec5ce;background:#ffffff0c;border-color:#ffffff10}
.ms-gallery-toolbar .ms-filters svg{width:17px;height:17px}
.ms-gallery-toolbar .ms-filters button[aria-pressed=true]{background:#ffffff22;border-color:#d8e1eb50;color:#fff;box-shadow:inset 0 1px 0 #ffffff10}
.ms-media-switch{padding:4px;background:#ffffff0b;border:1px solid #ffffff16}
.ms-media-switch button{min-height:36px;padding:8px 12px;font-size:13px;color:#b9c2cd;gap:7px}
.ms-media-switch svg{width:16px;height:16px}
.ms-media-switch button[aria-pressed=true]{background:#ffffff25;color:#fff;box-shadow:inset 0 1px 0 #ffffff12}
@media(min-width:1101px) and (max-width:1500px){.ms-gallery-toolbar{gap:12px}.ms-gallery-toolbar .ms-filters{gap:6px}.ms-gallery-toolbar .ms-filters button{padding:9px 11px;font-size:12px}.ms-media-switch button{padding:8px 10px;font-size:12px}}

@media(max-width:600px){.mc-with-creator>.mc-ad-context{display:flex;flex-direction:row;flex-wrap:nowrap;align-self:stretch;flex:none;min-height:100px}.mc-with-creator .mc-ad-context>.mc-product-card{width:auto;flex:1 1 0;height:100px}}



/* Balanced label, credit token and arrow, with restrained readiness styling. */
.marketing-studio .mc-controls .generate-control{gap:9px;padding:0 12px;font-family:var(--sans,Inter,Arial,sans-serif);font-size:15px;font-weight:500;line-height:1;letter-spacing:0;white-space:nowrap;transition:background 160ms ease,border-color 160ms ease,color 160ms ease}
.mc-credit-badge{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:26px;padding:0 7px;border:0;border-radius:7px;background:#171c270a;color:inherit;font-family:inherit;font-size:12px;font-weight:500;line-height:1;letter-spacing:0;font-variant-numeric:lining-nums tabular-nums;white-space:nowrap}
.mc-credit-badge [data-generation-cost]{display:block;line-height:1}
.marketing-studio .mc-controls .mc-credit-badge svg{display:block;width:13px;height:13px;flex:none;stroke-width:1.6}
.mc-generate-arrow{display:inline-flex;align-items:center;flex:none;opacity:.8}
.marketing-studio .mc-controls .mc-generate-arrow svg{display:block;width:16px;height:16px}
.marketing-studio .mc-controls .generate-control:not(:disabled){background:radial-gradient(ellipse at 100% 0%,#b38aee4d,transparent 65%),linear-gradient(105deg,#17151e 0%,#171322 55%,#42315d 100%);color:#f5f2fb;border-color:rgba(180,157,229,.55);box-shadow:inset 0 1px 1px #ffffff30,inset -1px 0 1px #c4a2ff24,0 3px 12px #0002;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.marketing-studio .generate-control:not(:disabled) .mc-credit-badge{background:#ffffff10;color:#f6efff}
@media(hover:hover){.marketing-studio .mc-controls .generate-control:not(:disabled):hover{background:radial-gradient(ellipse at 100% 0%,#c79bff60,transparent 65%),linear-gradient(105deg,#1c1825 0%,#20182e 55%,#4c376b 100%);border-color:rgba(214,197,248,.7);box-shadow:inset 0 1px 1px #ffffff38,inset -1px 0 1px #c4a2ff30,0 3px 12px #0002}}
.marketing-studio .mc-controls .generate-control:focus-visible{outline:2px solid #d6c3e9;outline-offset:3px}
@media(max-width:600px){.marketing-studio .mc-controls .generate-control{font-size:13px;gap:6px;padding:0 7px}.mc-credit-badge{font-size:11px;padding:0 6px;gap:4px;min-height:24px}.marketing-studio .mc-controls .mc-credit-badge svg{width:12px;height:12px}.marketing-studio .mc-controls .mc-generate-arrow svg{width:14px;height:14px}}
@media(prefers-reduced-motion:reduce){.marketing-studio .mc-controls .generate-control{transition:none}}

.marketing-studio .mc-controls .mc-credit-badge svg,.marketing-studio .mc-controls .mc-generate-arrow svg{min-width:0;min-height:0}


.marketing-studio .mc-glass.floating-composer[data-composer] .mc-controls .mc-credit-badge svg{width:13px;height:13px;min-width:13px;min-height:13px}
.marketing-studio .mc-glass.floating-composer[data-composer] .mc-controls .mc-generate-arrow svg{width:16px;height:16px;min-width:16px;min-height:16px}
@media(max-width:600px){.marketing-studio .mc-glass.floating-composer[data-composer] .mc-controls .mc-credit-badge svg{width:12px;height:12px;min-width:12px;min-height:12px}.marketing-studio .mc-glass.floating-composer[data-composer] .mc-controls .mc-generate-arrow svg{width:14px;height:14px;min-width:14px;min-height:14px}}


/* The studio is a focused, centered creation workspace. */
.marketing-studio{box-sizing:border-box;min-height:100svh;display:flex;flex-direction:column;padding-bottom:32px}
.marketing-studio>.ms-header{flex:none}
.marketing-studio>.ms-creation{flex:1;width:100%;margin:0 auto;display:flex;flex-direction:column;justify-content:center;padding:40px 0;box-sizing:border-box}
@media(max-width:600px){.marketing-studio{min-height:calc(100svh - 60px);padding-bottom:20px}.marketing-studio>.ms-creation{margin:0 auto;padding:28px 0 12px}}

.marketing-studio{display:grid;grid-template-rows:auto 1fr}
.marketing-studio>.ms-creation{display:block;align-self:center;flex:none;min-width:0}


/* Greeting and composer form one centered creative workspace. */
.marketing-studio{grid-template-rows:1fr}
.marketing-studio .ms-greeting{display:flex;justify-content:center;align-items:center;text-align:center;margin:0 auto 32px;max-width:900px}
.marketing-studio .ms-greeting h1{font-family:var(--sans,Inter,sans-serif);font-size:clamp(26px,2.6vw,38px);font-weight:450;line-height:1.25;letter-spacing:-.035em;text-wrap:balance;color:#edf0f3}
@media(max-width:600px){.marketing-studio .ms-greeting{margin-bottom:24px;padding:0 8px}.marketing-studio .ms-greeting h1{font-size:26px;line-height:1.3}}

/* Use the same responsive type scale as the surrounding generation controls. */
.marketing-studio .mc-controls .generate-control{font-size:clamp(12px,1.28cqw,18px);gap:8px;padding:0 10px}
.marketing-studio .generate-control .mc-credit-badge{font-size:inherit;font-weight:400;gap:5px;min-height:28px;padding:0 7px}
.marketing-studio .mc-glass.floating-composer[data-composer] .mc-controls .mc-credit-badge svg{width:1em;height:1em;min-width:1em;min-height:1em}
.marketing-studio .mc-controls .mc-generate-arrow{opacity:1}
.marketing-studio .mc-glass.floating-composer[data-composer] .mc-controls .mc-generate-arrow svg{width:20px;height:20px;min-width:20px;min-height:20px;stroke-width:1.8}
@media(max-width:850px){.marketing-studio .mc-controls .generate-control{font-size:13px}}
@media(max-width:600px){.marketing-studio .mc-controls .generate-control{gap:4px;padding:0 5px}.marketing-studio .generate-control .mc-credit-badge{gap:3px;padding:0 4px;min-height:26px}.marketing-studio .mc-glass.floating-composer[data-composer] .mc-controls .mc-generate-arrow svg{width:18px;height:18px;min-width:18px;min-height:18px}}


/* Preserve the masonry tile while using creator-authorized streaming players. */
.explore-media-tile iframe{position:absolute;inset:0;width:100%;height:100%;border:0;pointer-events:none}

.explore-media-tile iframe{opacity:0;transition:opacity .2s ease}.explore-media-tile iframe.is-playing{opacity:1}
/* Explore preview: quiet media canvas and a focused prompt-to-studio action. */
.explore-template-dialog{width:min(1120px,calc(100vw - 48px));padding:24px;border-radius:22px;background:var(--panel,#14171c);color:var(--text,#f2f3f3);box-shadow:0 32px 100px #0009,inset 0 1px 0 #ffffff0d}
.explore-template-dialog>header{margin-bottom:24px;gap:24px}
.explore-template-dialog h2{font-size:18px;font-weight:500;line-height:1.4;max-width:85%;text-wrap:balance}
.explore-template-dialog>header button{width:40px;height:40px;font-size:25px;line-height:1;color:var(--text,#f2f3f3);transition:background 150ms ease,transform 150ms ease}
.explore-template-dialog>header button:hover{background:#ffffff15}
.explore-template-dialog button:active{transform:scale(.98)}
.explore-preview-layout{grid-template-columns:minmax(0,1.2fr) minmax(300px,1fr);gap:28px}
.explore-preview-media{height:min(65vh,600px);min-height:380px;border-radius:14px;background:#08090b}
.explore-preview-media>img{max-height:100%}
.explore-preview-details{gap:18px;padding:4px 0;min-height:0}
.explore-prompt-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.explore-prompt-heading label{margin:0;font-size:14px;font-weight:500}
.explore-prompt-heading>span{font-size:12px;color:var(--muted,#a3aab4)}
.explore-preview-details textarea{min-height:200px;padding:16px;resize:none;font-family:var(--sans,Inter,Arial,sans-serif);font-size:14px;line-height:1.75;color:var(--text,#eef0f3);background:#ffffff04;border-color:#ffffff12;border-radius:12px;flex:1}
.explore-model-field{display:grid;gap:9px}
.explore-model-field label{margin:0;color:var(--muted,#a3aab4);font-size:12px}
.explore-model-field select{width:100%;min-height:44px;padding:10px 12px;border:1px solid #ffffff20;border-radius:10px;background:#ffffff08;color:var(--text,#eef0f3);font:inherit;font-size:14px;color-scheme:dark;cursor:pointer}
.explore-source-details{font-size:12px;color:var(--muted,#a3aab4)}
.explore-source-details summary{cursor:pointer;width:fit-content;padding:4px 0}
.explore-source-details>div{display:flex;flex-wrap:wrap;gap:8px 16px;line-height:1.6;padding-top:10px}
.explore-source-details a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.explore-source-details span{flex-basis:100%}
.explore-preview-details footer{margin-top:0}
.explore-preview-details footer .explore-use-prompt{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:48px;border:1px solid #ffffff30;border-radius:12px;background:#eeeef0;color:#15171b;font:inherit;font-size:14px;font-weight:500;box-shadow:inset 0 1px 0 #fff8;transition:background 150ms ease,transform 150ms ease}
.explore-use-prompt svg{width:19px;height:19px}
.explore-preview-details footer .explore-use-prompt:hover{background:#fff}
.explore-template-dialog :is(button,select,textarea,summary,a):focus-visible{outline:2px solid #d3c1ee;outline-offset:3px}
@media(max-width:800px){.explore-preview-layout{grid-template-columns:1fr;gap:22px}.explore-template-dialog{width:calc(100vw - 24px);padding:18px;max-height:calc(100dvh - 24px);border-radius:18px}.explore-template-dialog>header{margin-bottom:18px}.explore-preview-media{height:36dvh;min-height:220px}.explore-preview-details textarea{min-height:180px;flex:none}.explore-template-dialog h2{font-size:16px}.explore-preview-details{gap:16px}}
@media(prefers-reduced-transparency:reduce){.explore-template-dialog{background:#17191e;backdrop-filter:none}.explore-template-dialog::backdrop{backdrop-filter:none;background:#000c}}
@media(prefers-reduced-motion:reduce){.explore-template-dialog button{transition:none!important;transform:none!important}}
/* Fit the preview canvas to the source instead of letterboxing it. */
.explore-preview-layout{align-items:start}
.explore-preview-media{position:relative;width:min(100%,calc(min(65dvh,600px) * var(--preview-aspect)));aspect-ratio:var(--preview-aspect);height:auto;min-height:0;justify-self:center;margin:0;background:transparent;display:block}
.explore-preview-media>:is(img,video,iframe){display:block;width:100%;height:100%;max-height:none;border:0;object-fit:contain}
.explore-preview-media>iframe{position:absolute;inset:0;pointer-events:none}
.explore-preview-details{min-height:420px}
.explore-model-label{color:var(--muted,#a3aab4);font-size:12px}
.explore-created-model{color:var(--text,#eef0f3);font-size:14px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:800px){.explore-preview-media{width:min(100%,calc(50dvh * var(--preview-aspect)));height:auto;min-height:0}.explore-preview-details{min-height:0}}
.explore-model-field{min-width:0;grid-template-columns:minmax(0,1fr)}.explore-created-model{min-width:0;max-width:100%;white-space:normal}

/* Recreate lives in the media preview, with the same quiet surfaces as Studio. */
.explore-recreate-dialog{position:relative;width:min(1120px,calc(100vw - 48px));padding:28px 40px;border-radius:24px;background:#121315;border-color:#ffffff14}
.explore-preview-close{position:absolute;z-index:2;top:18px;right:18px;width:34px;height:34px;border:0;border-radius:50%;background:#ffffff09;color:var(--text);font:inherit;font-size:23px;line-height:1;cursor:pointer}
.explore-preview-close:hover{background:#ffffff15}
.explore-recreate-dialog .explore-preview-layout{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:clamp(32px,5vw,78px);align-items:center}
.explore-recreate-dialog .explore-preview-media{width:min(100%,calc(min(72dvh,660px) * var(--preview-aspect)));border-radius:12px}
.explore-recreate-form{margin:0;gap:22px;padding:42px 4px 24px;min-height:0}
.explore-recreate-form h2{max-width:100%;margin:0 0 10px;font-size:20px;font-weight:550;letter-spacing:-.035em;line-height:1.3}
.explore-replace-field,.explore-edit-field{display:grid;gap:9px;min-width:0}
.explore-recreate-form label{display:flex;align-items:center;justify-content:space-between;margin:0;font-size:14px;color:#a8a9af;font-weight:400;line-height:1.5}
.explore-edit-field label>span{font-size:11px;color:#74767f}
.explore-product-upload{position:relative;display:grid;place-items:center;min-height:150px;width:100%;padding:24px 16px 18px;border:1px dashed #ffffff24;border-radius:14px;background:#ffffff06;color:var(--text);font:inherit;cursor:pointer;transition:background 150ms ease,border-color 150ms ease}
.explore-product-upload:hover,.explore-product-upload.is-dragging{background:#ffffff0b;border-color:#c5bad178}
.explore-product-required{position:absolute;top:9px;right:9px;padding:3px 7px;border-radius:6px;background:#ffffff07;color:#8c8e96;font-size:10px;line-height:1.3}
.explore-product-content{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;max-width:100%}
.explore-product-plus{display:grid;place-items:center;width:28px;height:28px;margin-bottom:2px;border:1px solid #ffffff28;border-radius:50%;background:radial-gradient(ellipse at 70% 0%,#ffffff29,transparent 70%),#ffffff09;box-shadow:inset 0 1px 2px #ffffff12;color:#d5d5dc;font-size:20px}
.explore-product-plus svg{width:15px;height:15px}
.explore-product-content strong{max-width:100%;font-size:13px;font-weight:500;line-height:1.4;overflow-wrap:anywhere}
.explore-product-content small{color:#8e9099;font-size:11px;font-weight:400;line-height:1.5}
.explore-product-thumbs{display:flex;justify-content:center;gap:5px}
.explore-product-thumbs img{width:48px;height:48px;border:1px solid #ffffff16;border-radius:7px;object-fit:cover}
.explore-product-upload.has-product{border-style:solid;background:#ffffff08}
.explore-recreate-form .explore-edit-field textarea{width:100%;min-height:114px;resize:vertical;flex:none;padding:14px 16px;background:#ffffff06;border:1px solid #ffffff20;border-radius:12px;font:inherit;font-size:14px;line-height:1.65;box-sizing:border-box}
.explore-edit-field textarea::placeholder{color:#82848c;opacity:1}
.explore-recreate-status{margin:0;color:#c5b4d8;font-size:12px;line-height:1.5}
.explore-recreate-status:empty{display:none}
.explore-recreate-form footer{margin:0}
.explore-recreate-form footer .explore-use-prompt{min-height:46px;border-radius:11px;font-size:14px}
.explore-recreate-form footer .explore-use-prompt:disabled{cursor:not-allowed;background:#e2e0e8;color:#55535e;opacity:.55;box-shadow:none}
.explore-recreate-form .explore-model-field{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;font-size:11px}
.explore-recreate-form .explore-model-label,.explore-recreate-form .explore-created-model{font-size:11px;color:#8d8f98;line-height:1.6}
.explore-recreate-form .explore-source-details{margin-top:-14px;font-size:11px;color:#737680}
.explore-product-picker{border:1px solid #ffffff14;border-radius:12px;padding:12px;background:#1b1c20}
.explore-product-picker[hidden]{display:none}
.explore-picker-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;color:#9c9fa8;font-size:11px}
.explore-picker-heading button{border:0;background:none;color:#d9d9df;font:inherit;cursor:pointer}
.explore-saved-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:220px;overflow:auto}
.explore-saved-products button{display:flex;flex-direction:column;align-items:stretch;gap:7px;min-width:0;padding:5px;border:1px solid #ffffff13;border-radius:8px;background:#ffffff03;color:var(--text);font:inherit;font-size:11px;text-align:left;cursor:pointer}
.explore-saved-products button:hover,.explore-saved-products button[aria-pressed=true]{border-color:#b6a4d688;background:#ffffff09}
.explore-saved-products img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:5px}
.explore-saved-products span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.explore-picker-upload,.explore-picker-more{display:block;width:100%;min-height:36px;margin-top:10px;border:1px solid #ffffff1c;border-radius:8px;background:#ffffff06;color:#dedee5;font:inherit;font-size:12px;cursor:pointer}
.explore-no-products{margin:0 0 10px;color:#999ca6;font-size:12px}
.mc-inspiration-reference{display:flex;align-items:center;gap:9px;max-width:100%;padding:6px 10px;border:1px solid #ffffff1c;border-radius:9px;background:#ffffff05;color:#ccd0d7}
.mc-inspiration-reference img{width:32px;height:38px;object-fit:cover;border-radius:4px}
.mc-inspiration-reference>svg{width:20px;height:20px;flex:none}
.mc-inspiration-reference span{display:grid;gap:3px;min-width:0;font-size:12px;line-height:1.4}
.mc-inspiration-reference small{font-size:10px;color:#979da8}
@media(min-width:801px){.explore-recreate-dialog .explore-preview-media{align-self:center}}
@media(max-width:800px){.explore-recreate-dialog{width:calc(100vw - 24px);padding:24px 18px;max-height:calc(100dvh - 24px)}.explore-recreate-dialog .explore-preview-layout{grid-template-columns:1fr;gap:24px}.explore-recreate-dialog .explore-preview-media{width:min(100%,calc(44dvh * var(--preview-aspect)))}.explore-recreate-form{padding:0;gap:20px}.explore-recreate-form h2{font-size:19px;margin:0 0 4px}.explore-preview-close{top:10px;right:10px}.explore-product-upload{min-height:138px}.explore-recreate-form .explore-source-details{margin-top:-10px}}
@media(prefers-reduced-motion:reduce){.explore-product-upload{transition:none}}

.pk-brand-editor .pk-brand-context{display:grid;gap:8px;margin:0 0 18px;color:var(--muted);font-size:12px}.pk-brand-editor .pk-brand-context select{margin:0;width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--text);font:inherit;font-size:13px}.pk-brand-editor footer{display:flex;gap:8px;flex-wrap:wrap}.pk-brand-editor footer [data-product=cancel]{margin-right:auto}.pk-brand-editor footer button{white-space:nowrap;font-size:12px}.pk-brand-editor footer button:disabled{opacity:.45;cursor:wait}
@media(max-width:520px){.pk-brand-editor footer{display:grid;grid-template-columns:1fr 1fr}.pk-brand-editor footer [data-product=cancel]{grid-column:1/-1;justify-self:start}.pk-brand-editor footer button{min-height:44px;padding:10px}.pk-brand-editor .pk-brand-context select{font-size:16px}}

/* Product creation: photos first, essential details always visible. */
.pk-details{margin-top:22px;padding-top:4px}
.pk-details .pk-fields{margin-top:0}
.pk-dialog .pk-upload{min-height:190px;flex-direction:column;text-align:center;gap:14px;border-radius:20px}
.pk-dialog .pk-upload>svg{width:44px;height:44px;padding:10px;border:1px solid #ffffff20;background:#ffffff0c}
.pk-dialog .pk-upload strong{font-size:17px;letter-spacing:-.3px}
.pk-dialog .pk-upload>span>span{font-size:12px}
.pk-dialog .pk-fields input[aria-invalid=true]{border-color:#e6aaa0}
.pk-dialog .pk-fields textarea{min-height:84px}
@media(max-width:720px){.pk-dialog .pk-upload{min-height:164px}.bk-product-start .bk-start-action{min-height:56px;font-size:15px}}
