/* Pygmalion / Créer Image V2
   Single-page, UI-only experiment. Image generation, billing, modes and routes unchanged.
   Intentionally scoped to body.pyg-create-image-v2; other tools remain untouched. */
body.pyg-create-image-v2{
 --imgv-bg:#0d1119;--imgv-surface:#171c27;--imgv-elevated:#202735;
 --imgv-border:#313b4b;--imgv-accent:#94a9eb;--imgv-text:#f1f3fb;
 --imgv-muted:#a7b3c9;
 background:radial-gradient(ellipse 950px 480px at 77% -12%,#24204a77,transparent 75%),#0d1119;
 color:var(--imgv-text);color-scheme:dark;
}
body.pyg-create-image-v2 .site-header{
 width:min(1470px,calc(100% - 36px));height:66px;top:5px;
 border-color:#ffffff1e;border-radius:15px;
 background:#171c27ed;box-shadow:0 12px 35px #0004;
}
body.pyg-create-image-v2 .brand-mark{
 color:#e1e6f2;border:1px solid #7f92bc66;
 background:linear-gradient(145deg,#2c2758,#171c32);
 box-shadow:none;
}
body.pyg-create-image-v2 .top-nav a:hover,
body.pyg-create-image-v2 .nav-dropdown-trigger:hover{color:#fff}
body.pyg-create-image-v2 .page-shell{
 width:min(1470px,calc(100% - 44px));padding-top:36px;padding-bottom:94px;
}
body.pyg-create-image-v2 .creator{max-width:none;width:100%;margin:0 auto}
body.pyg-create-image-v2 .image-v2-heading{
 display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px;
}
.image-v2-heading-main{display:flex;align-items:center;gap:18px;min-width:0}
.image-v2-heading-icon{
 display:grid;place-items:center;flex:0 0 54px;height:54px;border-radius:14px;
 color:#e1e6f2;background:linear-gradient(145deg,#30284d,#20273a);
 border:1px solid #7f92bc44;
}
.image-v2-heading-icon svg{width:28px;height:28px}
.image-v2-kicker{font-size:.62rem;font-weight:850;letter-spacing:.14em;color:#e1e6f2}
body.pyg-create-image-v2 .image-v2-heading h1{
 margin:4px 0 5px;font-size:clamp(2rem,3vw,3.05rem);line-height:1.1;letter-spacing:-.055em;
 color:#fff;
}
body.pyg-create-image-v2 .image-v2-heading p{margin:0;color:#afbad0;font-size:.91rem}
.image-v2-history-link,
.image-v2-preview-heading>a{
 display:inline-flex;gap:8px;align-items:center;
 padding:10px 13px;border-radius:9px;border:1px solid #5159768a;
 background:#1d2431;color:#d8e0f1;font-size:.78rem;font-weight:750;white-space:nowrap;
}
.image-v2-history-link:hover,.image-v2-preview-heading>a:hover{color:#fff;border-color:#7f92bc;background:#293049}
.image-v2-history-link span,.image-v2-preview-heading>a span{color:#b3c3f1}
body.pyg-create-image-v2 .image-v2-workbench{
 display:grid;grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr);
 gap:17px;align-items:start;
}
body.pyg-create-image-v2 .image-v2-workbench>.creation-form,
body.pyg-create-image-v2 .image-v2-preview-panel{
 min-width:0;border:1px solid #353c4b;border-radius:17px;
 background:linear-gradient(165deg,#191f2c,#131925);
 box-shadow:0 16px 42px #0003,inset 0 1px #ffffff08;
}
body.pyg-create-image-v2 .image-v2-workbench>.creation-form{
 padding:23px 24px 20px;margin:0;
}
.image-v2-section-label{display:flex;align-items:center;gap:12px;margin:0 0 13px;color:#edf2ff}
.image-v2-section-label>div{display:flex;flex-direction:column;gap:3px}
.image-v2-section-label strong{font-size:.9rem;font-weight:820}
.image-v2-section-label small{color:#98a7c4;font-size:.69rem;line-height:1.4}
.image-v2-step{
 flex:0 0 29px;height:29px;display:grid;place-items:center;
 border-radius:9px;border:1px solid #7f92bc80;
 color:#e1e6f2;background:#33315c;
 font-size:.69rem;font-weight:800;
}
body.pyg-create-image-v2 .generation-mode-choice{margin:0 0 23px;gap:10px}
body.pyg-create-image-v2 .generation-mode-choice legend{display:none}
body.pyg-create-image-v2 .generation-mode-choice span{
 min-height:78px;border:1px solid #3c4556;border-radius:10px;
 background:#111925;color:#e9f1ff;padding:14px 16px;box-shadow:none;
}
body.pyg-create-image-v2 .generation-mode-choice b{color:#f2f5ff;font-size:.84rem}
body.pyg-create-image-v2 .generation-mode-choice small{color:#9daac1;font-size:.72rem}
body.pyg-create-image-v2 .generation-mode-choice input:checked+span{
 background:#302a52;border-color:#7f92bc;box-shadow:0 0 0 1px #667bae4d;
}
body.pyg-create-image-v2 .generation-mode-choice label{cursor:pointer}
body.pyg-create-image-v2 .generation-mode-choice input:focus-visible+span{outline:2px solid #7f92bc;outline-offset:3px}
body.pyg-create-image-v2 .prompt-label{color:#f0f2ff;font-size:.85rem;margin:0 0 9px}
body.pyg-create-image-v2 textarea[name="prompt"]{
 width:100%;min-height:166px;max-height:550px;
 border:1px solid #414b5c;border-radius:11px;
 background:#111724;color:#eef3ff;
 padding:17px;font-size:.91rem;line-height:1.65;
}
body.pyg-create-image-v2 textarea[name="prompt"]:focus,
body.pyg-create-image-v2 .image-v2-orientation select:focus,
body.pyg-create-image-v2 .quality-field select:focus{
 border-color:#7f92bc;box-shadow:0 0 0 3px #667bae26;outline:none;
}
body.pyg-create-image-v2 textarea[name="prompt"]::placeholder{color:#8893a8}
body.pyg-create-image-v2 .source-image-field{
 background:#151e31;border:1px solid #414a69;border-radius:11px;
 margin-bottom:15px;padding:16px;
}
body.pyg-create-image-v2 .source-image-field>label{color:#f1f4ff}
body.pyg-create-image-v2 .source-image-field>label small{color:#a6b3cb}
body.pyg-create-image-v2 .source-image-field input[type=file]{
 width:100%;border:1px dashed #6b7b9d;border-radius:9px;background:#0f1626;
 color:#b8c7e0;
}
body.pyg-create-image-v2 .source-image-field input[type=file]::file-selector-button{
 margin-right:12px;padding:9px 12px;border-radius:7px;
 border:1px solid #7f92bc;background:#2d2b50;color:#f0efff;cursor:pointer;
}
body.pyg-create-image-v2 .image-edit-help{
 background:#252239;border-left-color:#7f92bc;color:#e1e6f2;border-radius:7px;
}
body.pyg-create-image-v2 .image-edit-help small{color:#bfc4d7}
body.pyg-create-image-v2 .image-v2-section-label--settings{
 margin-top:24px;padding-top:22px;border-top:1px solid #ffffff15;
}
body.pyg-create-image-v2 .quality-field,
body.pyg-create-image-v2 .image-v2-orientation{
 display:block;margin:12px 0 0;color:#d9e3f4;font-size:.82rem;font-weight:760;
}
body.pyg-create-image-v2 .quality-field .quality-field-heading{color:#e8efff}
body.pyg-create-image-v2 .quality-field select,
body.pyg-create-image-v2 .image-v2-orientation select{
 display:block;width:100%;height:48px;min-height:48px;margin:8px 0 0;
 border:1px solid #3f485b;border-radius:9px;background:#101825;
 color:#f0f3fb;font-weight:650;padding:0 12px;
}
body.pyg-create-image-v2 .quality-field select option,
body.pyg-create-image-v2 .image-v2-orientation select option{background:#161e2b;color:#f2f5ff}
body.pyg-create-image-v2 .advanced-options{
 margin-top:21px;padding:0 12px;border:1px solid #353d4e;border-radius:10px;
 background:#151c2a;
}
body.pyg-create-image-v2 .advanced-options summary{
 padding:15px 2px;color:#edf0fc;cursor:pointer;
}
body.pyg-create-image-v2 .advanced-options summary:hover{color:#e1e6f2}
body.pyg-create-image-v2 .advanced-options .options-grid{padding:0 2px 15px}
body.pyg-create-image-v2 .advanced-options .options-grid input{background:#101725;color:#f4f5fd}
body.pyg-create-image-v2 .creation-cost-summary{
 display:flex;flex-wrap:wrap;gap:9px;align-items:center;
 margin:22px 0 0;padding:13px 14px;
 background:#171f30;border:1px solid #3a455e;border-radius:10px;
 color:#aebbd2;font-size:.81rem;
}
body.pyg-create-image-v2 .creation-cost-summary strong{color:#e1e6f2}
body.pyg-create-image-v2 .creation-cost-summary p{
 text-align:left;white-space:normal;color:#ffc0b9;
}
body.pyg-create-image-v2 .create-button{
 display:flex;width:100%;min-height:55px;position:static;
 margin-top:13px;border-radius:10px;
 background:linear-gradient(105deg,#536a9e,#536a9e);
 box-shadow:0 8px 26px #667bae33;
 font-size:.9rem;letter-spacing:0;
}
body.pyg-create-image-v2 .create-button:hover{background:linear-gradient(105deg,#536a9e,#9cadcf)}
body.pyg-create-image-v2 .create-button:focus-visible,
body.pyg-create-image-v2 a:focus-visible{outline:2px solid #7f92bc;outline-offset:3px}
body.pyg-create-image-v2 .create-button:disabled{opacity:.6;cursor:wait}
body.pyg-create-image-v2 .image-v2-preview-panel{
 padding:18px;position:sticky;top:92px;
}
.image-v2-preview-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:17px}
.image-v2-preview-heading h2{margin:3px 0 0;color:#f5f6ff;font-size:1.07rem;letter-spacing:-.025em}
.image-v2-panel-eyebrow{font-size:.6rem;font-weight:850;letter-spacing:.15em;color:#b3c3f1}
.image-v2-preview-heading>a{font-size:.72rem;padding:8px 10px}
.image-v2-preview-canvas{
 min-height:clamp(440px,54vw,650px);
 overflow:hidden;position:relative;isolation:isolate;
 border-radius:13px;border:1px solid #3d4660;
 background:radial-gradient(circle at 54% 39%,#282c33 0,#1a2442 21%,#0d1831 53%,#0c1422 80%);
 display:flex;flex-direction:column;justify-content:space-between;align-items:center;
}
.image-v2-preview-canvas::before{
 content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;
 background:linear-gradient(140deg,#ffffff0b,transparent 40%,#ffffff08 70%,transparent);
}
.image-v2-preview-shape{
 position:relative;width:min(62%,310px);aspect-ratio:1;margin:auto auto 12px;
 display:grid;place-items:center;
}
.image-v2-shape-core{
 width:44%;aspect-ratio:1;display:block;border-radius:28%;
 border:1px solid #7f92bc66;transform:rotate(45deg);
 background:radial-gradient(circle at 29% 25%,#9cadcf,#536a9e 47%,#232958 100%);
 box-shadow:0 0 55px #667bae44,0 0 110px #667bae33,inset 0 1px #ffffff44;
}
.image-v2-shape-ring{
 position:absolute;width:75%;height:75%;border:1px solid #8b89ff55;
 border-radius:23%;transform:rotate(45deg);pointer-events:none;
}
.image-v2-shape-ring--two{width:99%;height:99%;border-color:#a3b4ff2a;transform:rotate(-18deg)}
.image-v2-preview-message{
 width:calc(100% - 34px);max-width:450px;margin:0 0 22px;
 padding:16px;text-align:center;
 border:1px solid #ffffff20;background:#121b2be8;
 border-radius:13px;box-shadow:0 8px 27px #0003;
}
.image-v2-preview-message strong{color:#f1f4ff;font-size:.85rem}
.image-v2-preview-message p{margin:6px 0 0;font-size:.74rem;line-height:1.65;color:#adb8d1}
.image-v2-ready-dot{width:7px;height:7px;display:inline-block;margin-right:6px;border-radius:50%;background:#6cdbb1;box-shadow:0 0 11px #62d6b260}
.image-v2-preview-foot{
 display:flex;align-items:flex-start;gap:14px;margin-top:14px;padding:13px 11px;
 background:#1c2534;border:1px solid #394356;border-radius:11px;
}
.image-v2-preview-foot>span{color:#e1e6f2;font-size:1.3rem}
.image-v2-preview-foot p{margin:0;display:flex;flex-direction:column;gap:5px}
.image-v2-preview-foot strong{color:#ebefff;font-size:.78rem}
.image-v2-preview-foot small{color:#a7b5cc;font-size:.71rem;line-height:1.55}
body.pyg-create-image-v2 .creation-loader{
 background:#090e19f7;backdrop-filter:blur(12px);
}
body.pyg-create-image-v2 .loader-orb{background:linear-gradient(130deg,#536a9e,#536a9e);color:#fff}
body.pyg-create-image-v2 .progress-track{background:#253047}
body.pyg-create-image-v2 .progress-track>span{background:linear-gradient(90deg,#5f6ff0,#9cadcf)}
body.pyg-create-image-v2 .field-error{color:#ffafac}
@media(max-width:1060px){
 body.pyg-create-image-v2 .image-v2-workbench{grid-template-columns:minmax(0,1fr) minmax(0,.9fr)}
 body.pyg-create-image-v2 .image-v2-workbench>.creation-form{padding:17px}
 body.pyg-create-image-v2 .image-v2-preview-panel{padding:13px}
 .image-v2-preview-canvas{min-height:425px}
}
@media(max-width:820px){
 body.pyg-create-image-v2 .page-shell{width:calc(100% - 24px);padding-top:21px}
 body.pyg-create-image-v2 .image-v2-workbench{display:flex;flex-direction:column;gap:15px}
 body.pyg-create-image-v2 .image-v2-workbench>*{width:100%}
 body.pyg-create-image-v2 .image-v2-preview-panel{position:static}
 .image-v2-preview-canvas{min-height:300px}
 .image-v2-preview-shape{width:160px;margin:23px auto 16px}
 body.pyg-create-image-v2 .site-header{width:calc(100% - 18px)}
 body.pyg-create-image-v2 .image-v2-heading{align-items:flex-start}
 .image-v2-heading-icon{flex-basis:43px;height:43px}
 body.pyg-create-image-v2 .image-v2-heading h1{font-size:clamp(1.8rem,5vw,2.7rem)}
 body.pyg-create-image-v2 .image-v2-heading p{font-size:.82rem}
}
@media(max-width:540px){
 body.pyg-create-image-v2 .image-v2-heading{gap:9px}
 .image-v2-heading-main{gap:10px}
 .image-v2-heading-icon{display:none}
 .image-v2-history-link{font-size:.68rem;padding:9px}
 body.pyg-create-image-v2 .image-v2-workbench>.creation-form{padding:15px}
 body.pyg-create-image-v2 .generation-mode-choice{grid-template-columns:1fr 1fr}
 body.pyg-create-image-v2 .generation-mode-choice span{padding:10px;min-height:70px}
 body.pyg-create-image-v2 textarea[name="prompt"]{min-height:143px}
 .image-v2-preview-heading>a{font-size:.66rem}
 body.pyg-create-image-v2 .creation-cost-summary{padding:12px}
 body.pyg-create-image-v2 .create-button{
   position:sticky;bottom:84px;z-index:24;
   box-shadow:0 0 0 6px #0e141de8,0 10px 25px #667bae33;
 }
}
@media(prefers-reduced-motion:reduce){
 body.pyg-create-image-v2 .create-button,
 body.pyg-create-image-v2 .generation-mode-choice span{transition:none}
}

/* Tile controls: real select stays enabled for pricing/POST; only the visual selector changes. */
body.pyg-create-image-v2 .quality-field.is-tile-enhanced select,
body.pyg-create-image-v2 .image-v2-orientation.is-tile-enhanced select{
    position:absolute!important;width:1px!important;height:1px!important;
    padding:0!important;margin:0!important;border:0!important;
    opacity:0!important;pointer-events:none!important;
    clip-path:inset(50%);white-space:nowrap;overflow:hidden;
}
body.pyg-create-image-v2 .quality-field.is-tile-enhanced,
body.pyg-create-image-v2 .image-v2-orientation.is-tile-enhanced{
    margin:13px 0 8px;display:block;position:relative;
}
body.pyg-create-image-v2 .image-v2-tile-group{display:none}
body.pyg-create-image-v2 .image-v2-tile-group.is-tile-enhanced{
    display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:9px;
}
body.pyg-create-image-v2 .image-v2-tile-group--orientation.is-tile-enhanced{
    grid-template-columns:repeat(4,minmax(0,1fr));
}
body.pyg-create-image-v2 .image-v2-option-tile{
    min-width:0;min-height:92px;display:flex;flex-direction:column;
    align-items:center;justify-content:center;gap:7px;text-align:center;
    padding:11px 7px;cursor:pointer;
    border:1px solid #434c5d;border-radius:10px;background:#121a28;
    color:#ccd6eb;box-shadow:inset 0 1px #ffffff07;
    transition:background .18s,border-color .18s,box-shadow .18s,transform .18s;
    font-family:inherit;
}
body.pyg-create-image-v2 .image-v2-option-tile:hover{
    border-color:#7f92bc;background:#23253f;transform:translateY(-1px);
}
body.pyg-create-image-v2 .image-v2-option-tile.is-selected{
    background:linear-gradient(150deg,#353059,#26253f);
    border-color:#7f92bc;color:#fff;
    box-shadow:inset 0 0 0 1px #667bae40,0 0 18px #667bae22;
}
body.pyg-create-image-v2 .image-v2-option-tile:focus-visible{
    outline:2px solid #7f92bc;outline-offset:3px;
}
body.pyg-create-image-v2 .image-v2-option-tile:disabled{
    opacity:.38;cursor:not-allowed;transform:none;
}
body.pyg-create-image-v2 .image-v2-option-icon{
    font-size:1.6rem;line-height:1;color:#abb6cf;
    display:grid;place-items:center;min-height:27px;
}
body.pyg-create-image-v2 .image-v2-option-tile.is-selected .image-v2-option-icon{
    color:#e1e6f2;
}
body.pyg-create-image-v2 .image-v2-option-title{
    font-size:.76rem;font-weight:800;line-height:1.2;
    max-width:100%;overflow-wrap:anywhere;
}
body.pyg-create-image-v2 .image-v2-option-detail{
    min-height:1em;color:#93a3c2;
    font-size:.65rem;line-height:1.25;
}
body.pyg-create-image-v2 .image-v2-option-tile.is-selected .image-v2-option-detail{
    color:#e1e6f2;
}
body.pyg-create-image-v2 .image-v2-tile-group--orientation .image-v2-option-icon{
    font-family:system-ui,sans-serif;
    font-weight:650;
}
body.pyg-create-image-v2 .image-v2-tile-group--orientation .image-v2-option-tile{
    min-height:84px;
}
body.pyg-create-image-v2 .image-v2-tile-group--orientation{
    margin-bottom:8px;
}
@media(max-width:540px){
    body.pyg-create-image-v2 .image-v2-tile-group.is-tile-enhanced{
        grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;
    }
    body.pyg-create-image-v2 .image-v2-tile-group--orientation.is-tile-enhanced{
        grid-template-columns:repeat(4,minmax(0,1fr));
    }
    body.pyg-create-image-v2 .image-v2-option-tile{
        min-height:79px;padding:8px 3px;gap:5px;
    }
    body.pyg-create-image-v2 .image-v2-option-icon{font-size:1.35rem}
    body.pyg-create-image-v2 .image-v2-option-title{font-size:.68rem}
    body.pyg-create-image-v2 .image-v2-option-detail{font-size:.58rem}
}
@media(prefers-reduced-motion:reduce){
    body.pyg-create-image-v2 .image-v2-option-tile{transition:none;transform:none}
}

/* Single, progressively disclosed settings panel. Quality, format and style remain real form fields. */
body.pyg-create-image-v2 .image-v2-settings {
    margin-top:22px;
    border:1px solid #3d4657;
    border-radius:12px;
    background:#171e2c;
    overflow:hidden;
}
body.pyg-create-image-v2 .image-v2-settings > summary {
    display:flex;align-items:center;gap:12px;
    min-height:72px;padding:13px 16px;
    cursor:pointer;list-style:none;user-select:none;
    transition:background .18s ease;
}
body.pyg-create-image-v2 .image-v2-settings > summary::-webkit-details-marker{display:none}
body.pyg-create-image-v2 .image-v2-settings > summary::marker{content:""}
body.pyg-create-image-v2 .image-v2-settings > summary:hover{background:#20283a}
body.pyg-create-image-v2 .image-v2-settings > summary:focus-visible {
    outline:2px solid #7f92bc;outline-offset:-3px;border-radius:11px;
}
body.pyg-create-image-v2 .image-v2-settings[open] {
    background:linear-gradient(160deg,#1a2231,#151b29);
    border-color:#7f92bc5c;
}
body.pyg-create-image-v2 .image-v2-settings .image-v2-step {
    background:#262b4d;color:#e1e6f2;flex-shrink:0;
}
body.pyg-create-image-v2 .image-v2-settings-summary-copy {
    min-width:0;display:flex;flex:1;flex-direction:column;gap:5px;
}
body.pyg-create-image-v2 .image-v2-settings-summary-copy strong {
    color:#f3f5ff;font-size:.88rem;font-weight:800;
}
body.pyg-create-image-v2 .image-v2-settings-summary-copy small {
    color:#a9b5ca;font-size:.72rem;line-height:1.45;
    overflow-wrap:anywhere;
}
body.pyg-create-image-v2 .image-v2-settings-chevron {
    flex:0 0 auto;display:grid;place-items:center;
    width:28px;height:28px;border-radius:8px;
    color:#e1e6f2;background:#292c4a;
    font-size:1.08rem;transition:transform .2s ease;
}
body.pyg-create-image-v2 .image-v2-settings[open] .image-v2-settings-chevron {
    transform:rotate(180deg);
}
body.pyg-create-image-v2 .image-v2-settings:not([open]) > .image-v2-settings-body {
    display:none;
}
body.pyg-create-image-v2 .image-v2-settings-body {
    padding:6px 16px 17px;
    border-top:1px solid #ffffff12;
}
body.pyg-create-image-v2 .image-v2-settings-body .quality-field {
    margin:10px 0 8px;
}
body.pyg-create-image-v2 .image-v2-settings-body .image-v2-orientation {
    margin-top:19px;
}
body.pyg-create-image-v2 .image-v2-style-field {
    display:block;margin-top:19px;
    color:#d9e3f4;font-size:.82rem;font-weight:760;
}
body.pyg-create-image-v2 .image-v2-style-field input {
    display:block;width:100%;min-height:48px;
    margin-top:8px;padding:0 13px;
    border:1px solid #424b5c;border-radius:9px;
    background:#101825;color:#f2f4fd;
}
body.pyg-create-image-v2 .image-v2-style-field input:focus {
    outline:none;border-color:#7f92bc;
    box-shadow:0 0 0 3px #667bae26;
}
body.pyg-create-image-v2 .image-v2-style-field input::placeholder {
    color:#8c9ab3;
}
@media(max-width:540px){
    body.pyg-create-image-v2 .image-v2-settings > summary {
        min-height:66px;padding:11px 12px;gap:9px;
    }
    body.pyg-create-image-v2 .image-v2-settings-body{padding:6px 12px 15px}
    body.pyg-create-image-v2 .image-v2-settings-summary-copy small{font-size:.67rem}
}
@media(prefers-reduced-motion:reduce){
    body.pyg-create-image-v2 .image-v2-settings > summary,
    body.pyg-create-image-v2 .image-v2-settings-chevron{transition:none}
}

/* Image creator: in-place launch, progress and completed media. */
body.pyg-create-image-v2 .image-v2-preview-canvas{
    min-height:clamp(440px,54vw,650px);
}
body.pyg-create-image-v2 .image-v2-preview-canvas > [hidden] {
    display:none!important;
}
body.pyg-create-image-v2 .image-v2-standby {
    display:flex;flex:1;flex-direction:column;
    align-items:center;justify-content:space-between;
    width:100%;min-height:inherit;
}
body.pyg-create-image-v2 .image-v2-live-state,
body.pyg-create-image-v2 .image-v2-error-state{
    width:100%;min-height:inherit;
    padding:35px 24px;
    display:flex;flex-direction:column;justify-content:center;align-items:center;
    text-align:center;gap:14px;
}
body.pyg-create-image-v2 .image-v2-live-orb {
    width:124px;height:124px;border-radius:32px;
    display:grid;place-items:center;
    margin-bottom:15px;
    color:#e1e6f2;font-size:2.3rem;
    border:1px solid #7f92bc5a;
    background:radial-gradient(circle at 38% 25%,#536a9e,#282c33 56%,#1e2550 100%);
    box-shadow:0 0 30px #667bae3a,0 0 90px #667bae30;
    animation:imageV2GentlyBreathe 2.4s ease-in-out infinite;
}
@keyframes imageV2GentlyBreathe {
    0%,100%{box-shadow:0 0 25px #667bae35,0 0 70px #667bae26;transform:scale(1)}
    50%{box-shadow:0 0 39px #667bae5b,0 0 110px #667bae41;transform:scale(1.035)}
}
body.pyg-create-image-v2 .image-v2-live-state>strong,
body.pyg-create-image-v2 .image-v2-error-state>strong{
    max-width:420px;color:#f5f4ff;font-weight:800;font-size:1.15rem;
}
body.pyg-create-image-v2 .image-v2-live-state>p,
body.pyg-create-image-v2 .image-v2-error-state>p{
    color:#b4c1dd;font-size:.88rem;line-height:1.65;
    max-width:430px;margin:0;
}
body.pyg-create-image-v2 .image-v2-live-state>small{
    color:#8494b1;font-size:.71rem;line-height:1.6;
}
body.pyg-create-image-v2 .image-v2-live-state>a,
body.pyg-create-image-v2 .image-v2-error-state>a{
    color:#e1e6f2;text-decoration:underline;text-underline-offset:3px;
    font-size:.78rem;
}
body.pyg-create-image-v2 .image-v2-live-progress{
    width:min(410px,100%);margin:16px 0;
}
body.pyg-create-image-v2 .image-v2-live-progress-values{
    display:flex;justify-content:space-between;gap:15px;margin-bottom:10px;
    color:#a9b8d5;font-size:.74rem;
}
body.pyg-create-image-v2 .image-v2-live-progress-values b{
    font-variant-numeric:tabular-nums;color:#e1e6f2;
}
body.pyg-create-image-v2 .image-v2-live-track{
    height:9px;border:1px solid #5a5a91;border-radius:99px;
    background:#111b37;overflow:hidden;
}
body.pyg-create-image-v2 .image-v2-live-track>span{
    display:block;height:100%;border-radius:inherit;
    background:linear-gradient(90deg,#536a9e,#9cadcf);
    transition:width .4s ease;
}
body.pyg-create-image-v2 .image-v2-ready-state{
    width:100%;padding:19px;display:flex;
    flex-direction:column;gap:14px;align-items:stretch;justify-content:center;
}
body.pyg-create-image-v2 .image-v2-ready-heading{
    display:flex;align-items:center;gap:9px;color:#f0f5ff;
    font-size:.88rem;font-weight:800;
}
body.pyg-create-image-v2 .image-v2-ready-heading>span{
    display:grid;place-items:center;width:23px;height:23px;
    border:1px solid #64cd9e66;background:#1b533c;color:#a4efc3;
    border-radius:50%;font-size:.77rem;
}
body.pyg-create-image-v2 .image-v2-generated-gallery{
    display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));
    gap:11px;width:100%;min-height:150px;
}
body.pyg-create-image-v2 .image-v2-generated-image{
    margin:0;overflow:hidden;min-width:0;
    display:flex;justify-content:center;align-items:center;
    background:#0d1421;border-radius:11px;border:1px solid #48516b;
}
body.pyg-create-image-v2 .image-v2-generated-image img{
    display:block;max-width:100%;width:100%;height:auto;
    max-height:620px;object-fit:contain;
}
body.pyg-create-image-v2 .image-v2-result-actions{
    display:flex;flex-wrap:wrap;gap:9px;width:100%;
}
body.pyg-create-image-v2 .image-v2-action{
    display:inline-flex;align-items:center;justify-content:center;
    min-height:43px;min-width:0;padding:8px 13px;
    border:1px solid #7f92bc;border-radius:9px;
    color:#f4f2ff;font-size:.78rem;font-weight:800;
    background:#252b48;
    transition:background .17s ease,border-color .17s ease;
}
body.pyg-create-image-v2 .image-v2-action:hover{background:#33355d;border-color:#7f92bc;color:#fff}
body.pyg-create-image-v2 .image-v2-action--primary{background:#536a9e;border-color:#7f92bc}
body.pyg-create-image-v2 .image-v2-action--primary:hover{background:#536a9e}
body.pyg-create-image-v2 .image-v2-error-state>span{color:#e1e6f2;font-size:2rem}
body.pyg-create-image-v2 .image-v2-empty-output{color:#b8c5dc;text-align:center;line-height:1.6;font-size:.83rem}
@media(max-width:820px){
    body.pyg-create-image-v2 .image-v2-standby,
    body.pyg-create-image-v2 .image-v2-live-state,
    body.pyg-create-image-v2 .image-v2-error-state{min-height:330px}
    body.pyg-create-image-v2 .image-v2-live-orb{width:90px;height:90px;margin-bottom:4px}
    body.pyg-create-image-v2 .image-v2-live-state{padding:22px 15px}
    body.pyg-create-image-v2 .image-v2-ready-state{padding:11px}
}
@media(prefers-reduced-motion:reduce){
    body.pyg-create-image-v2 .image-v2-live-orb{animation:none}
    body.pyg-create-image-v2 .image-v2-live-track>span{transition:none}
}


/* === Motion layer / image workspace ===
   Entry, feedback and reveal are transform/opacity-based where practical.
   Never infer generation completion from these visual effects. */
@keyframes pygImageEnter {
    from { opacity:0; transform:translate3d(0,14px,0); }
    to   { opacity:1; transform:translate3d(0,0,0); }
}
@keyframes pygImageResultReveal {
    from { opacity:0; transform:translate3d(0,12px,0) scale(.985); }
    to   { opacity:1; transform:translate3d(0,0,0) scale(1); }
}
@keyframes pygImageTileSelect {
    0% { box-shadow:0 0 0 0 rgba(153,135,255,.42); }
    55% { box-shadow:0 0 0 5px rgba(153,135,255,.10); }
    100% { box-shadow:inset 0 0 0 1px #667bae40,0 0 18px #667bae22; }
}
@keyframes pygImageRingOrbit {
    from { transform:rotate(45deg); }
    to { transform:rotate(405deg); }
}
@keyframes pygImageRingCounter {
    from { transform:rotate(-18deg); }
    to { transform:rotate(-378deg); }
}
@keyframes pygImageCoreFloat {
    0%,100% { transform:translateY(0) rotate(45deg); }
    50% { transform:translateY(-7px) rotate(45deg); }
}
@keyframes pygImageProgressLight {
    from { transform:translateX(-170%); }
    to { transform:translateX(170%); }
}
body.pyg-create-image-v2 .image-v2-heading {
    animation:pygImageEnter .46s cubic-bezier(.2,.8,.2,1) both;
}
body.pyg-create-image-v2 .image-v2-workbench > .creation-form {
    animation:pygImageEnter .52s .08s cubic-bezier(.2,.8,.2,1) both;
}
body.pyg-create-image-v2 .image-v2-workbench > .image-v2-preview-panel {
    animation:pygImageEnter .56s .17s cubic-bezier(.2,.8,.2,1) both;
}
body.pyg-create-image-v2 .image-v2-heading-icon {
    transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
body.pyg-create-image-v2 .image-v2-heading-main:hover .image-v2-heading-icon {
    transform:translateY(-2px) rotate(-3deg);
    border-color:#7f92bc99;
    box-shadow:0 7px 22px #667bae30;
}
body.pyg-create-image-v2 .image-v2-preview-shape .image-v2-shape-core {
    animation:pygImageCoreFloat 7.5s ease-in-out infinite;
}
body.pyg-create-image-v2 .image-v2-preview-shape .image-v2-shape-ring--one {
    animation:pygImageRingOrbit 32s linear infinite;
}
body.pyg-create-image-v2 .image-v2-preview-shape .image-v2-shape-ring--two {
    animation:pygImageRingCounter 44s linear infinite;
}
body.pyg-create-image-v2 .image-v2-settings[open] .image-v2-settings-body {
    animation:pygImageEnter .22s ease-out both;
}
body.pyg-create-image-v2 .image-v2-option-tile.is-selected {
    animation:pygImageTileSelect .28s ease-out both;
}
body.pyg-create-image-v2 .image-v2-option-tile:active {
    transform:scale(.977);
}
body.pyg-create-image-v2 .create-button {
    position:relative;isolation:isolate;overflow:hidden;
    transition:transform .22s ease,box-shadow .22s ease,filter .22s ease;
}
body.pyg-create-image-v2 .create-button::after {
    content:"";position:absolute;z-index:0;
    top:-35%;left:0;width:36%;height:170%;
    background:linear-gradient(90deg,transparent,#ffffff28,transparent);
    transform:translateX(-165%) skewX(-22deg);
    transition:transform .72s cubic-bezier(.2,.7,.1,1);
    pointer-events:none;
}
body.pyg-create-image-v2 .create-button:hover::after {
    transform:translateX(410%) skewX(-22deg);
}
body.pyg-create-image-v2 .create-button > * { position:relative;z-index:1; }
body.pyg-create-image-v2 .create-button:hover:not(:disabled) {
    transform:translateY(-2px);
    box-shadow:0 12px 31px rgba(113,91,235,.34);
}
body.pyg-create-image-v2 .create-button:active:not(:disabled) {
    transform:translateY(0) scale(.99);
}
body.pyg-create-image-v2 .image-v2-preview-canvas [data-image-state="progress"]:not([hidden]),
body.pyg-create-image-v2 .image-v2-preview-canvas [data-image-state="error"]:not([hidden]) {
    animation:pygImageEnter .30s ease-out both;
}
body.pyg-create-image-v2 .image-v2-preview-canvas [data-image-state="result"]:not([hidden]) {
    animation:pygImageResultReveal .48s cubic-bezier(.2,.75,.2,1) both;
}
body.pyg-create-image-v2 .image-v2-generated-image {
    animation:pygImageResultReveal .48s cubic-bezier(.2,.75,.2,1) both;
}
body.pyg-create-image-v2 .image-v2-generated-image:nth-child(2) { animation-delay:.07s; }
body.pyg-create-image-v2 .image-v2-generated-image:nth-child(3) { animation-delay:.14s; }
body.pyg-create-image-v2 .image-v2-generated-image:nth-child(n+4) { animation-delay:.18s; }
body.pyg-create-image-v2 .image-v2-live-track>span {
    position:relative;overflow:hidden;
}
body.pyg-create-image-v2 .image-v2-live-track>span::after {
    content:"";position:absolute;inset:0;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.42),transparent);
    animation:pygImageProgressLight 2.6s ease-in-out infinite;
    pointer-events:none;
}
body.pyg-create-image-v2 .image-v2-history-link,
body.pyg-create-image-v2 .image-v2-preview-heading > a,
body.pyg-create-image-v2 .image-v2-action {
    transition:color .18s ease,background .18s ease,border-color .18s ease,transform .18s ease;
}
body.pyg-create-image-v2 .image-v2-history-link:hover,
body.pyg-create-image-v2 .image-v2-preview-heading > a:hover,
body.pyg-create-image-v2 .image-v2-action:hover {
    transform:translateY(-1px);
}
@media(prefers-reduced-motion:reduce){
    body.pyg-create-image-v2 .image-v2-heading,
    body.pyg-create-image-v2 .image-v2-workbench > .creation-form,
    body.pyg-create-image-v2 .image-v2-workbench > .image-v2-preview-panel,
    body.pyg-create-image-v2 .image-v2-preview-shape *,
    body.pyg-create-image-v2 .image-v2-settings[open] .image-v2-settings-body,
    body.pyg-create-image-v2 .image-v2-option-tile.is-selected,
    body.pyg-create-image-v2 .image-v2-preview-canvas [data-image-state]:not([hidden]),
    body.pyg-create-image-v2 .image-v2-generated-image,
    body.pyg-create-image-v2 .image-v2-live-track>span::after {
        animation:none!important;
    }
    body.pyg-create-image-v2 .create-button,
    body.pyg-create-image-v2 .create-button::after,
    body.pyg-create-image-v2 .image-v2-option-tile,
    body.pyg-create-image-v2 .image-v2-history-link,
    body.pyg-create-image-v2 .image-v2-preview-heading > a,
    body.pyg-create-image-v2 .image-v2-action,
    body.pyg-create-image-v2 .image-v2-heading-icon {
        transition:none!important;
    }
    body.pyg-create-image-v2 .create-button:hover,
    body.pyg-create-image-v2 .create-button:active,
    body.pyg-create-image-v2 .image-v2-option-tile:active,
    body.pyg-create-image-v2 .image-v2-history-link:hover,
    body.pyg-create-image-v2 .image-v2-preview-heading > a:hover,
    body.pyg-create-image-v2 .image-v2-action:hover,
    body.pyg-create-image-v2 .image-v2-heading-main:hover .image-v2-heading-icon {
        transform:none!important;
    }
}

/* Preserve the existing mobile sticky create action after motion enhancements. */
@media(max-width:540px){
    body.pyg-create-image-v2 .create-button{
        position:sticky;
        bottom:84px;
        z-index:24;
    }
}

/* Bibliothèque privée pour Image to Image : deux actions légères et persistantes. */
body.pyg-create-image-v2 .prism-create-page--image .source-image-picker-row{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;
 padding:10px;border:1px dashed #6b7b9d;border-radius:9px;background:#0f1626;
}
body.pyg-create-image-v2 .prism-create-page--image .source-image-picker-action{
 display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:43px;
 margin:0;padding:9px 12px;border-radius:8px;border:1px solid #65769f;
 background:#272d48;color:#f0efff;font:inherit;font-size:.81rem;font-weight:700;
 cursor:pointer;text-align:center;transition:background .15s,border-color .15s;
}
body.pyg-create-image-v2 .prism-create-page--image .source-image-picker-action:hover{
 background:#364064;border-color:#99addd;
}
body.pyg-create-image-v2 .prism-create-page--image .source-image-picker-action:focus-visible,
body.pyg-create-image-v2 .prism-create-page--image .source-image-library-dialog button:focus-visible{
 outline:2px solid #b9c9ff;outline-offset:3px;
}
body.pyg-create-image-v2 .prism-create-page--image .source-image-picker-action span{
 font-size:1.15em;
}
body.pyg-create-image-v2 .prism-create-page--image .source-image-picker-native-input{
 position:absolute!important;width:1px!important;height:1px!important;
 padding:0!important;margin:0!important;opacity:0!important;
 overflow:hidden!important;clip-path:inset(50%)!important;border:0!important;
}
body.pyg-create-image-v2 .prism-create-page--image .source-image-picker-row:has(+ .source-image-picker-native-input:focus-visible){
 outline:2px solid #b9c9ff;outline-offset:3px;
}
body.pyg-create-image-v2 .prism-create-page--image .source-image-preview{
 margin-top:10px;
}
body.pyg-create-image-v2 .prism-create-page--image .source-image-library-dialog{
 position:fixed;inset:0;margin:auto;width:min(580px,calc(100vw - 28px));
 max-width:none;max-height:min(85vh,760px);padding:20px;
 border:1px solid #526183;border-radius:15px;background:#171e2d;color:#f1f3fb;
 box-shadow:0 24px 80px #0009;overflow-y:auto;
}
body.pyg-create-image-v2 .source-image-library-dialog:not([open]){display:none!important}
body.pyg-create-image-v2 .source-image-library-dialog::backdrop{background:#060b17b9;backdrop-filter:blur(3px)}
body.pyg-create-image-v2 .source-image-library-header{display:flex;justify-content:space-between;gap:12px;align-items:start}
body.pyg-create-image-v2 .source-image-library-header h2{font-size:1.1rem;margin:0;color:#f8f9ff}
body.pyg-create-image-v2 .source-image-library-header p{font-size:.75rem;color:#a9b6d0;margin:5px 0 0}
body.pyg-create-image-v2 .source-image-library-close{
 border:1px solid #56617b;background:#242c40;color:#fff;border-radius:8px;
 min-width:34px;height:34px;font-size:1.3rem;cursor:pointer;
}
body.pyg-create-image-v2 .source-image-library-search{display:block;margin:16px 0 12px}
body.pyg-create-image-v2 .source-image-library-search input{
 width:100%;height:42px;border-radius:9px;border:1px solid #536180;
 background:#111827;color:#f0f3ff;padding:0 12px;font-size:.88rem;
}
body.pyg-create-image-v2 .source-image-library-grid{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;
}
body.pyg-create-image-v2 .source-image-library-item{
 min-width:0;overflow:hidden;background:#101725;border:1px solid #364562;
 border-radius:9px;padding:0;color:#dce5fa;cursor:pointer;text-align:left;
}
body.pyg-create-image-v2 .source-image-library-item:hover{border-color:#9aadf4;background:#26314b}
body.pyg-create-image-v2 .source-image-library-item:disabled{opacity:.5;cursor:wait}
body.pyg-create-image-v2 .source-image-library-item img{
 display:block;width:100%;aspect-ratio:1;object-fit:cover;background:#090e18;
}
body.pyg-create-image-v2 .source-image-library-item span{
 display:block;font-size:.7rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px;
}
body.pyg-create-image-v2 .source-image-library-message{
 min-height:1.1rem;margin:0 0 8px;color:#b8c5df;font-size:.78rem;
}
body.pyg-create-image-v2 .source-image-library-footer{display:flex;justify-content:center}
body.pyg-create-image-v2 .source-image-library-footer button{
 margin-top:13px;border:1px solid #627497;border-radius:9px;background:#26314b;
 color:#f0f3ff;padding:9px 15px;cursor:pointer;
}
@media(max-width:480px){
 body.pyg-create-image-v2 .source-image-library-dialog{padding:13px}
 body.pyg-create-image-v2 .source-image-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.pyg-create-image-v2 .source-image-picker-row{gap:7px;padding:8px}
}
