/* AI Outfit & Pose Changer — independent styles; does not modify old tools. */
.opc-body{--opc-text:#172337;--opc-muted:#60718b;--opc-border:#e1e8f1;--opc-ref-border:#b7c7dc;--opc-blue:#327dff;--opc-panel:#fff;--opc-page:#f6f8fc;--opc-soft:#f8fbff;--opc-tab:#edf3fc;color:var(--opc-text);background:var(--opc-page)}
html[data-theme="dark"] body.opc-body,body.opc-body.dark{
 --opc-text:#e5ecfb;--opc-muted:#a1b0c7;--opc-border:#34435c;--opc-ref-border:#60728d;
 --opc-blue:#88b2ff;--opc-panel:#182438;--opc-page:#101a2a;
 --opc-soft:#22324b;--opc-tab:#223550;
}
.opc-body [hidden]{display:none!important}
.opc-body button,.opc-body input,.opc-body select,.opc-body textarea{font:inherit}
.opc-body button{cursor:pointer}
.opc-page{max-width:1392px;margin:0 auto;padding:28px 20px 70px}
.opc-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:34px;align-items:center;padding:52px 28px 42px;min-height:340px;overflow:hidden}
.opc-eyebrow{display:inline-block;color:#477ce5;font-size:11px;font-weight:750;letter-spacing:.14em}
.opc-hero h1{margin:15px 0 16px;max-width:790px;font-size:clamp(35px,3.9vw,55px);letter-spacing:-.042em;line-height:1.12;font-weight:790;color:var(--opc-text)}
.opc-hero p{margin:0 0 22px;max-width:660px;color:var(--opc-muted);font-size:16px;line-height:1.75}
.opc-hero-actions{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.opc-hero-actions a{color:#315fbb;font-weight:650;font-size:13px;text-decoration:none}
.opc-hero-actions .opc-primary-link{display:inline-flex;align-items:center;gap:16px;color:#fff;background:#2563eb;border-radius:12px;padding:14px 23px;box-shadow:0 12px 26px #3c7df529}
.opc-perks{display:flex;flex-wrap:wrap;gap:14px;margin-top:25px;color:var(--opc-muted);font-size:12px}
.opc-perks span::before{content:'✓';font-weight:750;color:#477ceb;margin-right:6px}
.opc-hero-visual{position:relative;display:flex;align-items:center;justify-content:center;gap:20px;min-height:300px}
.opc-hero-visual::before{content:'';position:absolute;inset:5% 6%;border-radius:36%;background:radial-gradient(ellipse,#b9d2fc80,transparent 72%);filter:blur(10px)}
.opc-hero-pose,.opc-hero-outfit{position:relative;width:43%;max-width:244px;aspect-ratio:3/4.05;border:7px solid #fff;border-radius:24px;overflow:hidden;background:#fff;box-shadow:0 20px 44px #29395020}
.opc-hero-pose{transform:rotate(-5deg)}
.opc-hero-outfit{transform:rotate(5deg)}
.opc-hero-visual img{width:100%;height:100%;object-fit:cover}
.opc-hero-symbol{position:absolute;z-index:1;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:white;color:#507fff;font-weight:800;font-size:30px;box-shadow:0 7px 22px #263c6533}
.opc-workbench{scroll-margin-top:85px}
.opc-workbench-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:stretch}
.opc-panel{min-width:0;border:1px solid var(--opc-border);background:var(--opc-panel);border-radius:28px;box-shadow:0 15px 38px #344f7a0b}
.opc-settings{padding:24px}
.opc-reference-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.opc-ref{display:block;position:relative;min-width:0;width:100%;aspect-ratio:2/3;box-sizing:border-box;border:1px solid var(--opc-ref-border);border-radius:16px;background:#f8fbff;overflow:hidden;cursor:pointer}
.opc-ref:hover,.opc-ref:focus-within{border-color:#75a5fa;box-shadow:0 0 0 2px #4c91fc17}
.opc-person>input,.opc-outfit>input,.opc-pose>input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.opc-person .opc-ref-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:none}
.opc-person.has-image .opc-ref-preview{display:block}
.opc-ref-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:5px;padding:13px;color:#627793}
.opc-ref-placeholder svg{width:33px;height:33px}
.opc-ref-placeholder strong{font-size:13px;color:#334a70}
.opc-ref-placeholder small{font-size:11px}
.opc-person.has-image .opc-ref-placeholder{display:none}
.opc-ref-choice{border:0;display:block;position:absolute;inset:0;width:100%;height:100%;padding:0;background:transparent}
.opc-ref-choice img{width:100%;height:100%;object-fit:cover;display:none}
.opc-ref.has-image .opc-ref-choice img{display:block}
.opc-ref-empty{position:absolute;top:48%;left:0;right:0;color:#667d9b;font-weight:650;font-size:12px;text-align:center}
.opc-ref.has-image .opc-ref-empty{display:none}
.opc-ref-upload{z-index:2;position:absolute;right:7px;bottom:7px;padding:5px 8px;border-radius:8px;background:#ffffffeb;color:#3d6fc6;border:1px solid #c9daf9;box-shadow:0 2px 6px #17233712;font-size:10px;font-weight:720;cursor:pointer}
.opc-ref-upload:hover{background:#e9f1ff}
.opc-pose-angle-wrap{min-height:0}
.opc-angle-row{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:4px;margin-top:7px}
.opc-angle-row button{background:#f9fbfe;border:1px solid var(--opc-border);color:#61718c;border-radius:7px;font-size:10px;font-weight:650;padding:4px 8px;min-width:0;line-height:1.3}
.opc-angle-row button.active{color:#3176f5;border-color:#8fb7ff;background:#ebf3ff}
.opc-angle-row:empty{display:none}
.opc-pose-angle-wrap[hidden]{display:none!important}
.opc-pose-angle-wrap:not([hidden]){margin-bottom:10px}
.opc-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px;margin-bottom:10px}
.opc-options select,.opc-settings textarea{background:#fff;color:var(--opc-text);border:1px solid #dfe7f0;border-radius:11px;outline:0;box-sizing:border-box;width:100%}
.opc-options select{height:41px;padding:0 10px;font-size:12px}
.opc-settings textarea{display:block;min-height:83px;resize:vertical;padding:12px;font-size:12px;line-height:1.5}
.opc-settings textarea::placeholder{color:#8290a5}
.opc-options select:focus,.opc-settings textarea:focus{border-color:#75a6fa;box-shadow:0 0 0 3px #4d90fa17}
.opc-generate{width:100%;border:0;border-radius:12px;min-height:52px;color:#fff;background:#2563eb;font-size:16px;font-weight:750;margin-top:16px}
.opc-generate:disabled{opacity:.65;cursor:wait}
.opc-credits{display:flex;justify-content:flex-end;gap:12px;margin-top:12px;font-size:12px;color:#687b99}
.opc-credits strong{color:#283d5e}
.opc-status{margin:9px 0 0;min-height:15px;font-size:12px;line-height:1.45;color:#476ea9}
.opc-results{padding:20px;display:flex;flex-direction:column}
.opc-result-stage{position:relative;flex:1;display:grid;place-items:center;overflow:hidden;background:linear-gradient(180deg,rgba(96,165,250,.05),rgba(148,163,184,.06));border:1px solid var(--opc-border);border-radius:20px;min-height:560px}
/* Match the subtle 32px mosaic used by the existing Pose/Costume result stages. */
.opc-mosaic{position:absolute;inset:0;display:block;padding:0;opacity:.58;background-image:conic-gradient(from 90deg,rgba(115,147,195,.11) 25%,rgba(115,147,195,.025) 0 50%,rgba(115,147,195,.11) 0 75%,rgba(115,147,195,.025) 0);background-size:32px 32px;background-position:0 0}
.opc-result-empty,.opc-result-loading{position:relative;z-index:1;max-width:340px;padding:25px;text-align:center}
.opc-result-empty{color:#597091}
.opc-result-empty h2{font-size:18px;margin:12px 0 9px;color:#354968}
.opc-result-empty p,.opc-result-loading p{margin:0;line-height:1.65;font-size:13px;color:#687b99}
.opc-result-icon{display:grid;place-items:center;margin:0 auto;width:58px;height:58px;border-radius:19px;color:#5f88d2;font-size:26px;background:#fff;box-shadow:0 7px 20px #334c7213}
.opc-result-loading{display:flex;align-items:center;flex-direction:column;gap:12px}
.opc-result-loading strong{font-size:17px}
.opc-result-loading span{font-size:14px;font-variant-numeric:tabular-nums;color:#5978af}
.opc-spinner{width:44px;height:44px;border-radius:50%;border:4px solid #d7e5ff;border-top-color:#6680f6;animation:opc-spin .85s linear infinite}
@keyframes opc-spin{to{transform:rotate(360deg)}}
.opc-result-done{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:1}
.opc-result-done img{max-width:100%;max-height:100%;height:auto;width:auto;object-fit:contain;cursor:zoom-in}
.opc-section{scroll-margin-top:80px;margin-top:67px}
.opc-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:18px}
.opc-section-heading h2{margin:0 0 7px;font-size:clamp(23px,2.5vw,30px);letter-spacing:-.035em}
.opc-section-heading p{margin:0;color:var(--opc-muted);font-size:13px}
.opc-gallery-tabs{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--opc-border);border-radius:15px;background:var(--opc-tab);padding:5px;margin:0 0 15px}
.opc-gallery-tabs button{min-width:134px;padding:12px 24px;border:1px solid transparent;border-radius:11px;background:transparent;font-weight:780;font-size:15px;color:var(--opc-muted);transition:background .15s,border .15s,color .15s}
.opc-gallery-tabs button.active{background:#2563eb;color:#fff;border-color:#738bf2;box-shadow:0 5px 15px #3c77c32b}
.opc-categories{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;padding:4px 1px 9px}
.opc-categories button{border:1px solid #dce6f3;border-radius:999px;background:#fff;white-space:nowrap;flex:0 0 auto;padding:6px 12px;font-size:11px;font-weight:650;color:#647691}
.opc-categories button.active{color:#2f76f7;border-color:#97bafa;background:#eaf2ff}
.opc-gallery-grid,.opc-modal-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.opc-image-tile{display:block;position:relative;aspect-ratio:3/4;overflow:hidden;padding:0;border:1px solid #dfe6ef;border-radius:13px;background:#fff}
.opc-image-tile img{display:block;width:100%;height:100%;object-fit:contain}
.opc-image-tile:hover,.opc-image-tile:focus-visible{border-color:#6499ff;box-shadow:0 0 0 2px #4c8aff24}
.opc-image-tile.selected{border-color:#538cfa}
.opc-empty-list{grid-column:1/-1;padding:24px;text-align:center;font-size:13px;color:#70829b}
.opc-gallery-more,.opc-modal-more{display:flex;justify-content:center;margin-top:21px}
.opc-gallery-more button,.opc-modal-more button{border:1px solid #d5e3f7;border-radius:10px;padding:10px 25px;background:#fff;color:#4b77bf;font-size:12px;font-weight:750}
.opc-gallery-more button:hover,.opc-modal-more button:hover{border-color:#7bafff}
.opc-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.opc-steps article,.opc-copy article{border:1px solid var(--opc-border);background:var(--opc-panel);border-radius:18px;padding:25px}
.opc-steps article>span{font-size:12px;color:#4b85e9;font-weight:800}
.opc-steps h3{margin:13px 0 9px;font-size:17px}
.opc-steps p,.opc-copy p,.opc-copy li{margin:0;color:var(--opc-muted);font-size:13px;line-height:1.85}
.opc-copy{display:grid;grid-template-columns:1.1fr .9fr;gap:16px}
.opc-copy h2{font-size:22px;line-height:1.3;margin:0 0 13px}
.opc-copy h3{font-size:18px;margin:0 0 13px}
.opc-copy p+p{margin-top:12px}
.opc-copy ul{padding-left:21px;margin:0}
.opc-copy li+li{margin-top:5px}
.opc-faq{display:grid;gap:9px}
.opc-faq details{border:1px solid var(--opc-border);border-radius:12px;background:#fff;padding:16px 19px}
.opc-faq summary{cursor:pointer;font-size:14px;font-weight:650;color:#26374d}
.opc-faq p{font-size:13px;color:var(--opc-muted);line-height:1.75;margin:12px 0 0}
.opc-related{display:flex;gap:10px;flex-wrap:wrap}
.opc-related a{border:1px solid var(--opc-border);border-radius:12px;padding:11px 15px;background:#fff;color:#4a74b5;text-decoration:none;font-size:12px;font-weight:650}
.opc-modal-open{overflow:hidden}
.opc-modal{position:fixed;inset:0;z-index:10020;display:none;align-items:center;justify-content:center;padding:15px;background:#1b2d49ad;backdrop-filter:blur(4px)}
.opc-modal.open{display:flex}
.opc-modal-inner{display:flex;flex-direction:column;width:min(890px,100%);height:min(760px,93dvh);max-height:93dvh;overflow:hidden;background:var(--opc-panel);color:var(--opc-text);border:1px solid var(--opc-border);border-radius:22px;box-shadow:0 28px 65px #0b1a3455}
.opc-modal-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:5px 16px}
.opc-modal-head button{max-width:32px;max-height:32px}
.opc-modal-head h2{font-size:17px;margin:0;letter-spacing:-.025em}
.opc-modal-head button,.opc-lightbox>button{border:1px solid var(--opc-border);background:var(--opc-soft);color:var(--opc-muted);border-radius:12px;font-size:26px;line-height:1;width:38px;height:38px}
.opc-modal-body{display:flex;flex:1;min-height:0;flex-direction:column}
.opc-modal-categories{flex:0 0 auto;overflow-x:auto;overflow-y:hidden;white-space:nowrap;padding:10px 16px 9px;border-bottom:1px solid var(--opc-border);scrollbar-width:thin}
.opc-modal-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.opc-modal-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:200px;align-content:start;gap:10px;padding:16px;min-height:0;overflow:visible}
.opc-modal-grid .opc-image-tile{display:block;width:100%;height:100%;min-width:0;min-height:0;aspect-ratio:auto;border:1px solid var(--opc-border);border-radius:12px;padding:0;overflow:hidden;background:#fff}
.opc-modal-grid .opc-image-tile img{display:block;width:100%;height:100%;object-fit:contain}
.opc-modal-more{flex:0 0 auto;margin:0;padding:9px 16px 12px}
.opc-lightbox{position:fixed;inset:0;z-index:10030;background:#07132beb;display:flex;align-items:center;justify-content:center;padding:25px}
.opc-lightbox img{max-height:93vh;max-width:96vw;object-fit:contain}
.opc-lightbox>button{position:absolute;right:18px;top:18px;z-index:1}
.opc-busy .opc-ref-upload{pointer-events:none;opacity:.5}
@media(max-width:1100px){
 .opc-page{padding:20px 15px 55px}
 .opc-hero{gap:12px;padding:35px 18px}
 .opc-gallery-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:760px){
 .opc-page{padding:8px 12px 45px}
 .opc-hero{display:block;padding:28px 6px 32px;min-height:0}
 .opc-hero h1{font-size:clamp(29px,7vw,38px);margin:10px 0 12px}
 .opc-hero p{font-size:13px;margin-bottom:18px}
 .opc-hero-visual{display:none}
 .opc-perks{gap:9px;margin-top:18px;font-size:10px}
 .opc-workbench-grid{display:block}
 .opc-panel{border-radius:20px}
 .opc-settings{padding:14px}
 .opc-reference-grid{gap:6px}
 .opc-ref-placeholder{padding:6px}
 .opc-ref-upload{right:4px;bottom:4px;padding:4px 5px}
 .opc-options{gap:8px}
 .opc-options select{font-size:11px}
 .opc-settings textarea{min-height:72px;font-size:12px}
 .opc-credits{font-size:11px}
 .opc-results{display:none;margin-top:10px;padding:10px}
 .opc-show-result .opc-results{display:flex}
 .opc-result-stage{min-height:340px;max-height:610px}
 .opc-result-empty h2{font-size:16px}
 .opc-section{margin-top:42px}
 .opc-section-heading h2{font-size:23px}
 .opc-gallery-tabs{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:6px;padding:5px}
 .opc-gallery-tabs button{min-width:0;font-size:14px;padding:11px 16px}
 .opc-categories{gap:5px;padding-bottom:8px}
 .opc-categories button{font-size:10px;padding:5px 9px}
 .opc-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .opc-image-tile{border-radius:9px}
 .opc-steps{grid-template-columns:1fr;gap:9px}
 .opc-steps article,.opc-copy article{padding:17px}
 .opc-copy{grid-template-columns:1fr;gap:10px}
 .opc-modal{padding:7px;align-items:center}
 .opc-modal-inner{width:100%;max-height:94dvh;border-radius:20px}
 .opc-modal-head{padding:4px 12px}
 .opc-modal-head h2{font-size:18px}
 .opc-modal-grid{padding:9px;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:150px;gap:7px}
 .opc-modal-categories{padding:7px 9px}
 .opc-modal-more{padding:8px}
}
/* Follow the site's manual light/dark switch, never the operating-system preference. */
html[data-theme="dark"] body.opc-body .opc-hero h1,body.opc-body.dark .opc-hero h1{color:var(--opc-text)}
html[data-theme="dark"] body.opc-body .opc-ref,body.opc-body.dark .opc-ref,
html[data-theme="dark"] body.opc-body .opc-image-tile,body.opc-body.dark .opc-image-tile,
html[data-theme="dark"] body.opc-body .opc-options select,body.opc-body.dark .opc-options select,
html[data-theme="dark"] body.opc-body .opc-settings textarea,body.opc-body.dark .opc-settings textarea{background:var(--opc-soft);color:var(--opc-text)}
html[data-theme="dark"] body.opc-body .opc-ref-upload,body.opc-body.dark .opc-ref-upload,
html[data-theme="dark"] body.opc-body .opc-categories button,body.opc-body.dark .opc-categories button,
html[data-theme="dark"] body.opc-body .opc-faq details,body.opc-body.dark .opc-faq details,
html[data-theme="dark"] body.opc-body .opc-related a,body.opc-body.dark .opc-related a{background:#273a55;color:#c8d6ec}
html[data-theme="dark"] body.opc-body .opc-result-stage,body.opc-body.dark .opc-result-stage{background:linear-gradient(180deg,rgba(96,165,250,.06),rgba(148,163,184,.04))}
html[data-theme="dark"] body.opc-body .opc-mosaic,body.opc-body.dark .opc-mosaic{opacity:.52;background-image:conic-gradient(from 90deg,rgba(139,168,217,.10) 25%,rgba(139,168,217,.025) 0 50%,rgba(139,168,217,.10) 0 75%,rgba(139,168,217,.025) 0)}
html[data-theme="dark"] body.opc-body .opc-result-empty h2,body.opc-body.dark .opc-result-empty h2,
html[data-theme="dark"] body.opc-body .opc-credits strong,body.opc-body.dark .opc-credits strong,
html[data-theme="dark"] body.opc-body .opc-faq summary,body.opc-body.dark .opc-faq summary{color:var(--opc-text)}
html[data-theme="dark"] body.opc-body .opc-modal-head,body.opc-body.dark .opc-modal-head{border-color:var(--opc-border)}
html[data-theme="dark"] body.opc-body .opc-modal-grid .opc-image-tile,body.opc-body.dark .opc-modal-grid .opc-image-tile{background:#e9edf4}

#opcCost{color:#b42335}
html[data-theme="dark"] #opcCost,body.dark #opcCost{color:#ff929f}
