/* Generated by scripts/build-style-bundles.mjs. Edit the source stylesheets. */
/* image-workbench.css */
/* Tool67 universal image-card tools v1.5.17 */
.t67-ict-card{position:relative!important}
.t67-ict-tools{position:absolute;top:8px;right:8px;z-index:8;display:flex;flex-direction:column;gap:5px;opacity:0;transform:translateX(4px);transition:opacity .14s ease,transform .14s ease;pointer-events:none}
.t67-ict-card:hover>.t67-ict-tools,.t67-ict-card:focus-within>.t67-ict-tools{opacity:1;transform:none;pointer-events:auto}
.t67-ict-btn{width:30px;height:30px;border:1px solid rgba(255,255,255,.72);border-radius:8px;background:rgba(17,24,39,.82);color:#fff;display:grid;place-items:center;padding:0;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.16);backdrop-filter:blur(4px)}
.t67-ict-btn:hover{background:#111827}.t67-ict-btn:active{background:#6b7280}.t67-ict-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.t67-ict-btn.is-danger:hover{background:#b42318}.t67-ict-btn[disabled]{opacity:.38;cursor:not-allowed}
.t67-ict-toast{position:fixed;left:50%;bottom:24px;z-index:10020;transform:translateX(-50%);max-width:min(520px,calc(100% - 28px));padding:9px 12px;border-radius:9px;background:#111827;color:#fff;font:12px/1.45 Inter,system-ui,sans-serif;box-shadow:0 12px 30px rgba(0,0,0,.22)}
.t67-ict-modal{position:fixed;inset:0;z-index:10010;display:grid;place-items:center;background:rgba(5,10,18,.76);padding:18px}
/* Only crop dialogs omit the redundant top bar; other image editors retain it. */
.t67-ict-modal.is-crop-mode .t67-ict-head{display:none!important}
.t67-ict-modal.is-crop-mode .t67-ict-dialog{grid-template-rows:minmax(0,1fr) auto}
.t67-ict-modal.is-crop-mode .t67-ict-crop-img{max-height:80vh}
.t67-ict-modal[hidden]{display:none!important}.t67-ict-dialog{width:min(1100px,100%);max-height:94vh;border:1px solid #293142;border-radius:14px;background:#111827;color:#fff;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.42)}
.t67-ict-head,.t67-ict-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:#151d29}.t67-ict-head b{font-size:13px}.t67-ict-head span{font-size:11px;color:#9ca3af}.t67-ict-foot{justify-content:flex-end}.t67-ict-action{border:1px solid #354052;border-radius:8px;background:#1f2937;color:#fff;padding:7px 11px;font:600 11px/1 Inter,system-ui;cursor:pointer}.t67-ict-action.primary{background:#fff;color:#111827;border-color:#fff}.t67-ict-action:hover{filter:brightness(1.08)}
.t67-ict-close{width:31px;height:31px;border:1px solid #354052;border-radius:8px;background:#1f2937;color:#fff;font-size:19px;line-height:1;cursor:pointer}
.t67-ict-body{min-height:280px;overflow:auto;display:grid;place-items:center;padding:14px;background:#0b1018}
.t67-ict-zoom-img{display:block;max-width:100%;max-height:78vh;width:auto;height:auto;object-fit:contain}
.t67-ict-crop-wrap{position:relative;display:inline-block;line-height:0;user-select:none;touch-action:none}.t67-ict-crop-img{display:block;max-width:min(92vw,980px);max-height:72vh;width:auto;height:auto;object-fit:contain}.t67-ict-shade{position:absolute;inset:0;background:rgba(0,0,0,.44);pointer-events:none}.t67-ict-crop-box{position:absolute;border:2px solid #fff;box-shadow:0 0 0 9999px rgba(0,0,0,.42);cursor:move;touch-action:none}.t67-ict-crop-box:before{content:"";position:absolute;inset:33.333%;border:0 solid rgba(255,255,255,.42);border-left-width:1px;border-right-width:1px;pointer-events:none}.t67-ict-crop-box:after{content:"";position:absolute;left:0;right:0;top:33.333%;bottom:33.333%;border-top:1px solid rgba(255,255,255,.42);border-bottom:1px solid rgba(255,255,255,.42);pointer-events:none}
.t67-ict-handle{position:absolute;width:14px;height:14px;border:2px solid #fff;background:#111827;border-radius:3px}.t67-ict-handle.nw{left:-7px;top:-7px;cursor:nwse-resize}.t67-ict-handle.ne{right:-7px;top:-7px;cursor:nesw-resize}.t67-ict-handle.sw{left:-7px;bottom:-7px;cursor:nesw-resize}.t67-ict-handle.se{right:-7px;bottom:-7px;cursor:nwse-resize}
@media(hover:none){.t67-ict-tools{opacity:.88;transform:none;pointer-events:auto}.t67-ict-btn{width:29px;height:29px}}
@media(max-width:620px){.t67-ict-modal{padding:8px}.t67-ict-dialog{max-height:98vh}.t67-ict-crop-img{max-width:94vw;max-height:70vh}.t67-ict-tools{top:6px;right:6px}}


/* v1.5.18 frameless image preview */
html.t67-ict-lightbox-open,html.t67-ict-lightbox-open body{overflow:hidden}
.t67-ict-lightbox{position:fixed;inset:0;z-index:10030;display:flex;align-items:center;justify-content:center;padding:14px;background:rgba(4,8,14,.82);cursor:zoom-out}
.t67-ict-lightbox[hidden]{display:none!important}
.t67-ict-lightbox img{display:block;width:auto;height:auto;max-width:calc(100vw - 28px);max-height:calc(100vh - 28px);object-fit:contain;border:0;border-radius:0;box-shadow:none;background:transparent;cursor:default}
@media(max-width:620px){.t67-ict-lightbox{padding:6px}.t67-ict-lightbox img{max-width:calc(100vw - 12px);max-height:calc(100vh - 12px)}}


/* Tool67 unified image workbench — scoped, no global body reset */
.t67-iwb-host{--iwb-bg:#f5f7fb;--iwb-card:#fff;--iwb-line:#dfe5ef;--iwb-text:#111827;--iwb-muted:#64748b;--iwb-soft:#f7f9fc;--iwb-danger:#b42318;margin:18px auto 34px;color:var(--iwb-text)}
.t67-iwb-host *{box-sizing:border-box}
.t67-iwb-host .ve-shell{width:100%;max-width:var(--t67-page-max,1440px);margin:0 auto;padding:0 var(--t67-page-gutter,24px)}
.t67-iwb-host .ve-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:18px;align-items:start}
.t67-iwb-host .ve-card{background:var(--iwb-card);border:1px solid var(--iwb-line);border-radius:14px;box-shadow:0 12px 28px rgba(15,23,42,.045)}
.t67-iwb-host .ve-side,.t67-iwb-host .ve-main{padding:16px;max-width:none!important;margin:0!important;min-width:0!important;width:auto!important}
.t67-iwb-host .ve-main{min-height:unset;display:flex;flex-direction:column;justify-self:stretch!important;align-self:stretch!important}
.t67-iwb-drop-wrap{display:grid;gap:8px}.t67-iwb-ref-toggle-row{display:flex;justify-content:flex-end;margin-top:-2px}.t67-iwb-ref-toggle{border:0;background:transparent;color:#64748b;font-size:10px;line-height:1;padding:0;cursor:pointer}.t67-iwb-ref-toggle:hover{color:#111827}.t67-iwb-ref-wrap[hidden]{display:none!important}.t67-iwb-ref-wrap.is-collapsed{display:none}
.t67-iwb-drop{position:relative;display:grid;place-items:center;min-height:132px;padding:12px;border:1px dashed #bac5d3;border-radius:12px;background:#fafbfd;transition:border-color .14s,background .14s,transform .14s;overflow:hidden;text-align:center}
.t67-iwb-drop:hover,.t67-iwb-drop.drag{border-color:#111827;background:#f4f6f8;transform:translateY(-1px)}
.t67-iwb-drop-main{min-height:176px;background:#eef2f7}
.t67-iwb-ref-zone .t67-iwb-drop{min-height:96px;background:#fafbfd}
.t67-iwb-drop.is-filled{min-height:116px;padding:6px;border-style:solid;background:#f8fafc}
.t67-iwb-drop-inner{display:grid;gap:5px;justify-items:center;align-items:center;color:var(--iwb-muted)}
.t67-iwb-drop-inner b{font-size:13px;color:var(--iwb-text)}
.t67-iwb-drop-inner span{font-size:10.5px;line-height:1.45}
.t67-iwb-drop-icon{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--iwb-line);border-radius:10px;background:#fff;color:#334155}
.t67-iwb-drop-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.t67-iwb-file-input{position:absolute;inset:0;opacity:0;cursor:pointer;z-index:1}
.t67-iwb-ref-grid{display:grid;gap:6px;width:100%;height:100%}
.t67-iwb-ref-grid[data-count="1"]{grid-template-columns:1fr}.t67-iwb-ref-grid[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}.t67-iwb-ref-grid[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}.t67-iwb-ref-grid[data-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.t67-iwb-ref-card{position:relative;z-index:3;min-width:0;border:1px solid var(--iwb-line);border-radius:9px;overflow:hidden;background:#fff;min-height:60px}
.t67-iwb-ref-card img{display:block;width:100%;height:100%;min-height:60px;max-height:112px;object-fit:cover}.t67-iwb-ref-grid[data-count="4"] .t67-iwb-ref-card img{max-height:76px}
.t67-iwb-ref-remove{position:absolute;right:5px;top:5px;z-index:4;width:23px;height:23px;border:0;border-radius:50%;background:rgba(17,24,39,.88);color:#fff;font-size:15px;line-height:23px;text-align:center;cursor:pointer}.t67-iwb-ref-remove:hover{background:#000}
.t67-iwb-input-row{display:grid;gap:6px}
.t67-iwb-prompt{width:100%;min-height:94px;max-height:280px;resize:vertical;padding:10px 11px;border:1px solid #d7dde7;border-radius:10px;background:#fff;color:var(--iwb-text);font:inherit;font-size:11.5px;line-height:1.55;outline:none}.t67-iwb-prompt:focus{border-color:#7b8797;box-shadow:0 0 0 2px rgba(15,23,42,.05)}
.t67-iwb-settings{margin-top:3px;border:1px solid var(--iwb-line);border-radius:9px;background:#f8fafc}.t67-iwb-settings summary{list-style:none;cursor:pointer;padding:7px 9px;font-size:10.5px;font-weight:700;color:#334155}.t67-iwb-settings summary::-webkit-details-marker{display:none}.t67-iwb-settings summary::after{content:'▿';float:right;color:#64748b}.t67-iwb-settings[open] summary::after{content:'▵'}
.t67-iwb-settings-body{padding:0 9px 9px;border-top:1px solid #e5e9ef;display:grid;gap:7px}.t67-iwb-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.t67-iwb-field{display:grid;gap:3px}.t67-iwb-field label{font-size:10px;font-weight:700;color:#334155}.t67-iwb-select{width:100%;min-height:32px;border:1px solid #d7dde7;border-radius:7px;padding:0 7px;background:#fff;color:var(--iwb-text);font:inherit;font-size:10.5px;outline:none}.t67-iwb-select:focus{border-color:#7b8797;box-shadow:0 0 0 2px rgba(15,23,42,.05)}
.t67-iwb-samples{display:flex;flex-wrap:wrap;gap:5px}.t67-iwb-chip{border:1px solid #d7dde7;border-radius:999px;background:#fff;color:#334155;font-size:9.5px;font-weight:700;padding:4px 8px;cursor:pointer}.t67-iwb-chip:hover{border-color:#111827;color:#111827}
.t67-iwb-actions{display:grid;gap:6px;margin-top:10px}.t67-iwb-start,.t67-iwb-host .ve-btn{border:0;border-radius:8px;min-height:40px;padding:0 14px;background:#000;color:#fff;font-weight:700;font-size:12px;cursor:pointer}.t67-iwb-host .ve-btn:active{background:#6b7280}.t67-iwb-host .ve-btn:disabled{background:#c5cbd3;color:#f8fafc;cursor:not-allowed}.t67-iwb-credit{font-size:9px;color:var(--iwb-muted);line-height:1.4}
.t67-iwb-library-slot{margin-bottom:12px}.t67-iwb-library-slot[hidden]{display:none!important}.t67-iwb-library-slot.is-disabled{opacity:.56;filter:saturate(.72)}.t67-iwb-library-slot.is-disabled .hair-pick,.t67-iwb-library-slot.is-disabled .hs-pick,.t67-iwb-library-slot.is-disabled .pp-pick,.t67-iwb-library-slot.is-disabled .sk-pick,.t67-iwb-library-slot.is-disabled .pa-pick,.t67-iwb-library-slot.is-disabled .ct-style-card{pointer-events:none}
/* Restore desktop library density: 8 per row, 16 initially from legacy scripts. */
.t67-iwb-library-slot .hair-style-grid,.t67-iwb-library-slot .hs-style-grid,.t67-iwb-library-slot .pp-style-grid,.t67-iwb-library-slot .sk-style-picker,.t67-iwb-library-slot .pa-style-picker,.t67-iwb-library-slot .ct-style-grid,.t67-iwb-library-slot #ctStylePicker{grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:10px!important}
.t67-iwb-library-slot>.section-head,.t67-iwb-library-slot>.sk-style-summary,.t67-iwb-library-slot>.pa-style-summary,.t67-iwb-library-slot>.hair-style-summary,.t67-iwb-library-slot>.hs-style-summary{margin-top:0}.t67-iwb-library-slot .hair-library-top,.t67-iwb-library-slot .hs-library-top,.t67-iwb-library-slot .pp-style-top{margin-top:0}.t67-iwb-library-slot>section{margin:0!important;padding:0!important;width:auto!important;max-width:none!important}
.t67-iwb-section-block{margin-top:10px}.t67-iwb-inline-tabs-field .hair-gender-tabs,.t67-iwb-inline-tabs-field .pp-style-tabs{display:flex;flex-wrap:wrap;gap:6px}.t67-iwb-inline-tabs-field .hair-gender-tabs button,.t67-iwb-inline-tabs-field .pp-style-tabs button{min-height:28px;padding:0 10px;border-radius:999px;font-size:10px}.t67-iwb-result-title{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:7px}.t67-iwb-result-title b{font-size:12px}.t67-iwb-grid-note{font-size:10px;color:var(--iwb-muted)}
.t67-iwb-grid-holder{border:1px solid var(--iwb-line);border-radius:10px;background:#fff;padding:8px}.t67-iwb-grid-holder.is-empty-grid{min-height:0;height:100%;padding:0;overflow:hidden;background:#fcfdff}.t67-iwb-grid-surface{height:100%;min-height:100px;border-radius:10px;background-image:linear-gradient(135deg,rgba(255,255,255,.55),rgba(255,255,255,0) 46%),linear-gradient(to right,rgba(148,163,184,.17) 1px,transparent 1px),linear-gradient(to bottom,rgba(148,163,184,.17) 1px,transparent 1px);background-size:100% 100%,24px 24px,24px 24px;background-position:0 0,-1px -1px,-1px -1px}
.t67-iwb-gallery{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.t67-iwb-gallery[data-count="1"] .ve-preview-card,.t67-iwb-gallery[data-count="1"] .ve-result-card{grid-column:span 6}.t67-iwb-gallery[data-count="2"] .ve-preview-card,.t67-iwb-gallery[data-count="2"] .ve-result-card{grid-column:span 3}.t67-iwb-gallery[data-count="3"] .ve-preview-card,.t67-iwb-gallery[data-count="3"] .ve-result-card{grid-column:span 2}.t67-iwb-gallery[data-count="4"] .ve-preview-card,.t67-iwb-gallery[data-count="4"] .ve-result-card{grid-column:span 3}.t67-iwb-gallery[data-count="5"] .ve-preview-card:nth-child(-n+3),.t67-iwb-gallery[data-count="5"] .ve-result-card:nth-child(-n+3){grid-column:span 2}.t67-iwb-gallery[data-count="5"] .ve-preview-card:nth-child(n+4),.t67-iwb-gallery[data-count="5"] .ve-result-card:nth-child(n+4){grid-column:span 3}.t67-iwb-gallery[data-count="6"] .ve-preview-card,.t67-iwb-gallery[data-count="6"] .ve-result-card{grid-column:span 2}
.t67-iwb-host .ve-preview-card,.t67-iwb-host .ve-result-card{position:relative;min-width:0;border:1px solid var(--iwb-line);border-radius:9px;overflow:hidden;background:#fff}.t67-iwb-host .ve-preview-media,.t67-iwb-host .ve-result-media{aspect-ratio:4/5;background:#eef2f6;display:grid;place-items:center}.t67-iwb-host .ve-preview-media img,.t67-iwb-host .ve-result-media img{display:block;width:100%;height:100%;object-fit:contain;background:#f7f9fc}.t67-iwb-gallery[data-count="1"] .ve-preview-media,.t67-iwb-gallery[data-count="1"] .ve-result-media{aspect-ratio:auto;min-height:300px;max-height:560px;padding:8px}.t67-iwb-gallery[data-count="1"] .ve-preview-media img,.t67-iwb-gallery[data-count="1"] .ve-result-media img{width:auto;height:auto;max-width:100%;max-height:540px;margin:auto}.t67-iwb-host .ve-preview-foot,.t67-iwb-host .ve-result-foot{display:grid;gap:2px;padding:7px}.t67-iwb-host .ve-preview-foot b,.t67-iwb-host .ve-result-foot b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t67-iwb-host .ve-preview-foot span,.t67-iwb-host .ve-result-foot span{font-size:9px;color:var(--iwb-muted)}
.t67-iwb-host .ve-progress{margin-top:10px;border-radius:10px;padding:10px}.t67-iwb-host .ve-progress[hidden],.t67-iwb-host .ve-compare[hidden]{display:none!important}.t67-iwb-host .ve-progress-head{display:flex;justify-content:space-between;gap:10px;font-size:11px}.t67-iwb-host .ve-progress-head strong{font-weight:750}.t67-iwb-host .ve-bar{height:8px;border-radius:999px;background:#e8edf3;overflow:hidden;margin-top:7px}.t67-iwb-host .ve-fill{height:100%;width:0;background:#111827;transition:width .25s;background-image:linear-gradient(90deg,rgba(255,255,255,.1) 0 25%,rgba(255,255,255,.34) 50%,rgba(255,255,255,.1) 75%);background-size:120px 100%;animation:t67iwbShift 1.4s linear infinite}.t67-iwb-host .ve-progress-meta{min-height:14px;margin-top:5px;color:var(--iwb-muted);font-size:9.5px}@keyframes t67iwbShift{to{background-position:120px 0}}
.t67-iwb-host .ve-compare{margin-top:10px;border:1px solid var(--iwb-line);border-radius:10px;padding:10px;background:#fff}.t67-iwb-host .ve-section-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:7px}.t67-iwb-host .ve-section-title b{font-size:12px}.t67-iwb-host .ve-section-title span{font-size:10px;color:var(--iwb-muted)}.t67-iwb-host .ve-compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.t67-iwb-host .ve-compare-grid>div{display:grid;gap:2px;border:1px solid #e5e9ef;border-radius:8px;padding:8px;background:#fafbfc}.t67-iwb-host .ve-compare-grid strong{font-size:10.5px}.t67-iwb-host .ve-compare-grid span{font-size:9.5px;color:#667085}.t67-iwb-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:9px}.t67-iwb-host .ve-stat{border:1px solid var(--iwb-line);border-radius:8px;padding:8px}.t67-iwb-host .ve-stat span{display:block;font-size:9px;text-transform:uppercase;color:#64748b}.t67-iwb-host .ve-stat b{display:block;margin-top:2px;font-size:10.5px;font-weight:700;overflow-wrap:anywhere}
.t67-iwb-bulk{display:flex;justify-content:flex-end;margin-top:10px}.t67-iwb-bulk .ve-btn{min-height:34px;padding:0 12px;font-size:10.5px}.t67-iwb-inline-alert{margin-top:8px;padding:8px 10px;border-radius:9px;background:#fff0f0;color:var(--iwb-danger);font-size:10.5px;line-height:1.5}.t67-iwb-inline-alert[hidden]{display:none!important}.t67-iwb-replaced-op{display:none!important}.t67-iwb-duplicate-library{display:none!important}
/* After Start/result, source preview becomes compact so results become the visual focus. */
.t67-iwb-host.is-focus-results #iwbPreviewHolder{padding:6px;max-height:212px;overflow:auto}.t67-iwb-host.is-focus-results .t67-iwb-grid-holder.is-empty-grid,.t67-iwb-host.is-focus-results .t67-iwb-grid-surface{min-height:200px}.t67-iwb-host.is-focus-results #iwbPreviewSection .t67-iwb-gallery{gap:6px}.t67-iwb-host.is-focus-results .t67-iwb-gallery .ve-preview-media{aspect-ratio:3/4}.t67-iwb-host.is-focus-results .t67-iwb-gallery[data-count="1"] .ve-preview-media{min-height:180px;max-height:180px;padding:4px}.t67-iwb-host.is-focus-results .t67-iwb-gallery[data-count="1"] .ve-preview-media img{max-height:170px}.t67-iwb-host.is-focus-results .ve-preview-foot{padding:5px}.t67-iwb-host.is-focus-results .ve-preview-foot b{font-size:9px}.t67-iwb-host.is-focus-results .ve-preview-foot span{font-size:8px}
.t67-iwb-settings .wa-layout-pills{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.t67-iwb-settings .wa-layout-pills button{min-height:34px}
html[data-theme="dark"] .t67-iwb-host{--iwb-card:#111720;--iwb-line:#293344;--iwb-text:#edf2f7;--iwb-muted:#9aa7b9;--iwb-soft:#171e28}html[data-theme="dark"] .t67-iwb-drop-main{background:#16202b}html[data-theme="dark"] .t67-iwb-ref-zone .t67-iwb-drop,html[data-theme="dark"] .t67-iwb-settings,html[data-theme="dark"] .t67-iwb-select,html[data-theme="dark"] .t67-iwb-prompt,html[data-theme="dark"] .t67-iwb-grid-holder,html[data-theme="dark"] .t67-iwb-host .ve-compare,html[data-theme="dark"] .t67-iwb-host .ve-preview-card,html[data-theme="dark"] .t67-iwb-host .ve-result-card{background:#111720;border-color:#293344;color:#edf2f7}html[data-theme="dark"] .t67-iwb-grid-holder.is-empty-grid{background:#0f1723}html[data-theme="dark"] .t67-iwb-grid-surface{background-image:linear-gradient(to right,rgba(148,163,184,.13) 1px,transparent 1px),linear-gradient(to bottom,rgba(148,163,184,.13) 1px,transparent 1px)}html[data-theme="dark"] .t67-iwb-host .ve-compare-grid>div{background:#151c26;border-color:#293344}
@media(max-width:1180px){.t67-iwb-library-slot .hair-style-grid,.t67-iwb-library-slot .hs-style-grid,.t67-iwb-library-slot .pp-style-grid,.t67-iwb-library-slot .sk-style-picker,.t67-iwb-library-slot .pa-style-picker,.t67-iwb-library-slot .ct-style-grid,.t67-iwb-library-slot #ctStylePicker{grid-template-columns:repeat(6,minmax(0,1fr))!important}}
@media(max-width:900px){.t67-iwb-host .ve-shell{width:min(100% - 16px,1280px)}.t67-iwb-host .ve-layout{grid-template-columns:1fr}.t67-iwb-host .ve-side,.t67-iwb-host .ve-main{padding:13px}.t67-iwb-host .ve-main{min-height:420px;display:block}.t67-iwb-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.t67-iwb-library-slot .hair-style-grid,.t67-iwb-library-slot .hs-style-grid,.t67-iwb-library-slot .pp-style-grid,.t67-iwb-library-slot .sk-style-picker,.t67-iwb-library-slot .pa-style-picker,.t67-iwb-library-slot .ct-style-grid,.t67-iwb-library-slot #ctStylePicker{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:640px){.t67-iwb-field-grid{grid-template-columns:1fr}.t67-iwb-grid-holder.is-empty-grid,.t67-iwb-grid-surface{min-height:220px;height:auto}.t67-iwb-status-grid{grid-template-columns:1fr}.t67-iwb-gallery .ve-preview-card,.t67-iwb-gallery .ve-result-card{grid-column:span 6!important}.t67-iwb-settings .wa-layout-pills{grid-template-columns:repeat(2,minmax(0,1fr))}.t67-iwb-library-slot .hair-style-grid,.t67-iwb-library-slot .hs-style-grid,.t67-iwb-library-slot .pp-style-grid,.t67-iwb-library-slot .sk-style-picker,.t67-iwb-library-slot .pa-style-picker,.t67-iwb-library-slot .ct-style-grid,.t67-iwb-library-slot #ctStylePicker{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
/* Keep the Library usable but visually secondary once processing/results start. */
.t67-iwb-host.is-focus-results .t67-iwb-library-slot{max-height:310px;overflow:auto;padding-right:3px;scrollbar-width:thin}
.t67-iwb-library-slot.is-disabled::before{content:'Custom reference image is active. Library image selection is disabled.';display:block;margin:0 0 8px;padding:7px 9px;border:1px solid var(--iwb-line);border-radius:8px;background:#f8fafc;color:var(--iwb-muted);font-size:9.5px;line-height:1.4}


/* Round 17 refinement */
.t67-iwb-ref-card.is-library-ref{box-shadow:inset 0 0 0 1px rgba(15,23,42,.04)}
.t67-iwb-ref-badge{position:absolute;left:6px;bottom:6px;z-index:4;padding:2px 6px;border-radius:999px;background:rgba(17,24,39,.78);color:#fff;font-size:8.5px;font-weight:700;letter-spacing:.02em}
.t67-iwb-grid-holder.is-empty-grid{box-shadow:inset 0 1px 0 rgba(255,255,255,.9),inset 0 -14px 30px rgba(148,163,184,.06),0 8px 20px rgba(15,23,42,.025)}
.t67-iwb-grid-surface{background-image:radial-gradient(circle at 50% 18%,rgba(255,255,255,.85),rgba(255,255,255,0) 42%),linear-gradient(135deg,rgba(255,255,255,.45),rgba(226,232,240,.08)),linear-gradient(to right,rgba(148,163,184,.16) 1px,transparent 1px),linear-gradient(to bottom,rgba(148,163,184,.16) 1px,transparent 1px);background-size:100% 100%,100% 100%,24px 24px,24px 24px;box-shadow:inset 0 0 34px rgba(100,116,139,.06)}
.t67-iwb-inline-tabs-field{gap:5px}
.t67-iwb-inline-tabs-field>label{font-size:9px;color:var(--iwb-muted);font-weight:600}
.t67-iwb-inline-tabs-field .hair-gender-tabs,.t67-iwb-inline-tabs-field .pp-style-tabs{margin:0!important}
.t67-iwb-inline-tabs-field .hair-gender-tabs button,.t67-iwb-inline-tabs-field .pp-style-tabs button{font-size:9.5px!important;min-height:26px!important;padding:0 9px!important}
html[data-theme="dark"] .t67-iwb-ref-badge{background:rgba(255,255,255,.84);color:#111827}

.t67-iwb-host.is-running .t67-iwb-library-slot{pointer-events:none;opacity:.72}
.t67-iwb-host.is-running .t67-iwb-settings summary{cursor:default}


/* Round 19 prompt/UI refinement */
.t67-iwb-ref-toggle{font-weight:800;letter-spacing:.01em}
.t67-iwb-grid-holder.is-empty-grid{position:relative}
.t67-iwb-grid-holder.is-empty-grid::after{content:'Preview area\A Upload source images on the left to begin';position:absolute;inset:auto 16px 14px 16px;display:block;text-align:center;white-space:pre-line;font-size:10px;line-height:1.45;font-weight:700;color:rgba(71,85,105,.72);pointer-events:none}
.t67-iwb-grid-holder.is-empty-grid::before{content:'';position:absolute;inset:12px;border-radius:12px;background:radial-gradient(circle at 50% 24%,rgba(255,255,255,.85),rgba(255,255,255,0) 32%),radial-gradient(circle at 50% 80%,rgba(148,163,184,.08),rgba(148,163,184,0) 38%);pointer-events:none}
html[data-theme="dark"] .t67-iwb-grid-holder.is-empty-grid::after{color:rgba(203,213,225,.68)}
@media(max-width:900px){.t67-iwb-host .ve-main{min-height:auto}.t67-iwb-section-block{margin-top:8px}.t67-iwb-host .ve-main>.t67-iwb-section-block:first-child{margin-top:0}}
@media(max-width:640px){.t67-iwb-host .ve-side,.t67-iwb-host .ve-main{padding:11px}.t67-iwb-grid-holder.is-empty-grid,.t67-iwb-grid-surface{min-height:172px}.t67-iwb-host .ve-main{min-height:auto}.t67-iwb-grid-holder.is-empty-grid::after{font-size:9.5px;inset:auto 12px 10px 12px}}

/* Hide hero keyword rows / pills / action buttons across unified pages */
.hero .hero-actions,
.hero .mood-row,
.hero .pp-pills,
.hero .pp-actions,
.hero .ps-pills,
.hero .ps-actions,
.hero .pod-actions,
.hero .hero-meta,
.hero [class*="hero-actions"],
.hero [class*="hero-pills"],
.hero [class*="hero-chips"],
.hero [class*="hero-tags"],
.hero [class*="keyword"],
.hero [class*="keywords"],
.hero [class*="chips"],
.hero [class*="pills"],
.hero [class*="actions"]{display:none!important}

/* Progress is intentionally non-numeric: API completion time cannot be predicted accurately. */
.t67-iwb-host #iwbProgressPercent{display:none!important}

/* AP upload preview editor */
.t67-ict-edit-wrap{width:min(100%,1040px);display:grid;gap:10px}
.t67-ict-edit-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;width:100%;padding:9px;border:1px solid #293142;border-radius:10px;background:#111827;color:#fff}
.t67-ict-edit-modes,.t67-ict-edit-history{display:flex;gap:5px;align-items:center}
.t67-ict-edit-toolbar button{min-height:31px;padding:0 10px;border:1px solid #3b4658;border-radius:7px;background:#1f2937;color:#fff;font:600 11px/1 Inter,system-ui;cursor:pointer}
.t67-ict-edit-toolbar button:hover,.t67-ict-edit-toolbar button.active{background:#fff;color:#111827;border-color:#fff}
.t67-ict-edit-size,.t67-ict-edit-color{display:flex;align-items:center;gap:7px;font:600 11px/1 Inter,system-ui;color:#dbe3ef}
.t67-ict-edit-size input{width:140px}.t67-ict-edit-size output{min-width:24px;text-align:right;color:#9ca3af}
.t67-ict-edit-color input{width:32px;height:28px;padding:1px;border:1px solid #465164;border-radius:6px;background:transparent}
.t67-ict-edit-history{margin-left:auto}
.t67-ict-edit-stage{display:grid;place-items:center;min-height:280px;max-height:70vh;overflow:auto;border-radius:10px;background:#080d14}
.t67-ict-edit-canvas{display:block;width:auto;height:auto;max-width:100%;max-height:68vh;cursor:crosshair;touch-action:none;user-select:none}
@media(max-width:620px){.t67-ict-edit-toolbar{gap:7px}.t67-ict-edit-size{width:100%}.t67-ict-edit-size input{flex:1;width:auto}.t67-ict-edit-history{margin-left:0}.t67-ict-edit-stage{max-height:64vh}.t67-ict-edit-canvas{max-height:62vh}}

/* image-workbench-v28-layout.css */
/* Tool67 Unified Image Workbench layout. Consolidated active rules; scoped to Image pages. */
.t67-iwb-host{--iwb-v28-accent:#7855f5}
.t67-iwb-host .ve-shell{width:100%;max-width:1392px;padding:0 8px}
.t67-iwb-host .ve-layout{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,6fr);gap:12px;align-items:start}
.t67-iwb-host .ve-layout>.ve-side,.t67-iwb-host .ve-layout>.ve-main{padding:3px!important;min-width:0;border-radius:17px;overflow:hidden;box-shadow:0 7px 23px rgba(29,47,90,.045)}
.t67-iwb-host .ve-side{position:relative;top:auto;max-height:none;overflow:visible}
.t67-iwb-host .t67-iwb-drop-wrap{gap:10px;padding:10px}
.t67-iwb-host .t67-iwb-drop-main{min-height:148px;border-radius:13px;background:#f8f7fd;border-color:#b7a1fd;transition:min-height .18s ease,padding .18s ease,background-color .2s ease,border-color .2s ease,box-shadow .2s ease}
/* Only the empty source upload zone gets the soft hover tint. Filled grid tiles have their own hover behavior. */
.t67-iwb-host:not(.has-source-images) #iwbSourceDrop:is(:hover,.drag){background:#efebff;border-color:#8670f4;box-shadow:0 0 0 2px rgba(120,85,245,.07)}
.t67-iwb-host .t67-iwb-prompt{font-size:14px}
.t67-iwb-host .t67-iwb-section-block#iwbPreviewSection{margin:0;width:100%}
.t67-iwb-host #iwbPreviewSection[hidden]{display:none!important}
.t67-iwb-host #iwbPreviewHolder{border:0!important;border-radius:0!important;padding:0!important;max-height:none!important;overflow:visible!important;height:auto!important;background:transparent!important;box-shadow:none!important}
.t67-iwb-host #iwbPreviewHolder::before,.t67-iwb-host #iwbPreviewHolder::after{display:none!important}
.t67-iwb-host #iwbPreviewHolder .t67-iwb-source-gallery{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
.t67-iwb-host #iwbPreviewHolder .t67-iwb-source-gallery>.ve-preview-card{grid-column:auto!important;aspect-ratio:1;min-width:0;min-height:0;border-radius:10px!important;overflow:hidden;background:#eef2f7}
.t67-iwb-host #iwbPreviewHolder .ve-preview-media{width:100%;height:100%;min-height:0!important;max-height:none!important;aspect-ratio:1!important;padding:0!important;background:#eef2f7}
.t67-iwb-host #iwbPreviewHolder .ve-preview-media img{display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:cover!important;padding:0!important}
.t67-iwb-host #iwbPreviewHolder .ve-preview-foot{display:none!important}
.t67-iwb-host #iwbPreviewHolder .t67-ict-tools{gap:3px!important;top:3px!important;right:3px!important;transform:none!important}
.t67-iwb-host #iwbPreviewHolder .t67-ict-btn{width:27px;height:27px;border-radius:7px;background:rgba(17,24,39,.87);border:1px solid #ffffff33;color:white}
.t67-iwb-host #iwbPreviewHolder .t67-ict-btn svg{width:14px;height:14px}
/* Reference upload, prompt, More Settings and original Start remain in the sidebar. */
.t67-iwb-host .t67-iwb-ref-toggle-row{margin-top:0}
.t67-iwb-host .t67-iwb-actions{margin-top:10px}
.t67-iwb-host .t67-iwb-start{font-size:15px}
/* Right pane is an actual result canvas, never a second copy of uploaded media. */
.t67-iwb-host .ve-main{min-height:340px;display:flex;flex-direction:column;gap:0}
.t67-iwb-host .t67-iwb-empty-workspace{min-height:335px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;text-align:center;color:var(--iwb-muted);padding:28px 12px;background:transparent}
.t67-iwb-host .t67-iwb-empty-workspace[hidden],.t67-iwb-host.is-running .t67-iwb-empty-workspace{display:none!important}
.t67-iwb-host .t67-iwb-empty-icon{display:grid;place-items:center;color:#9b8ee0;width:48px;height:48px;border:1px solid var(--iwb-line);border-radius:14px;background:var(--iwb-soft)}
.t67-iwb-host .t67-iwb-empty-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}
.t67-iwb-host .t67-iwb-empty-workspace strong{font-size:15px;color:var(--iwb-text);font-weight:650}
.t67-iwb-host .t67-iwb-empty-workspace small{font-size:12px;line-height:1.4}
.t67-iwb-host #iwbResultSection{min-width:0;min-height:0;margin:0;padding:8px}
.t67-iwb-host #iwbResultSection[hidden]{display:none!important}
.t67-iwb-host .t67-iwb-result-title{padding:7px 7px 11px;margin:0;align-items:center}
.t67-iwb-host .t67-iwb-result-title b{font-size:13px}
.t67-iwb-host #iwbResultHolder{width:100%;border:0!important;box-shadow:none!important;border-radius:0;padding:0;background:transparent}
.t67-iwb-host #iwbResultHolder .t67-iwb-result-gallery{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;align-items:start}
.t67-iwb-host #iwbResultHolder .t67-iwb-result-gallery>.ve-result-card{grid-column:auto!important;min-width:0;border-radius:11px;overflow:hidden}
.t67-iwb-host #iwbResultHolder .ve-result-foot{padding:8px}
.t67-iwb-host #iwbResultHolder .t67-ict-tools{display:flex!important;flex-direction:column!important;gap:3px!important}
.t67-iwb-host #iwbResultHolder .t67-ict-btn{width:29px;height:29px;border:1px solid #ffffff44;border-radius:7px;background:rgba(17,24,39,.88);color:#fff}
.t67-iwb-host #iwbResultHolder .t67-ict-btn svg{width:15px;height:15px}
.t67-iwb-host .t67-iwb-bulk{display:flex;justify-content:flex-end;align-items:center;margin-top:10px;padding:0 4px 4px}
.t67-iwb-host #iwbZipAll{min-height:38px;border:1px solid #bba5ff;background:#f4efff;color:#5c38c7;border-radius:10px;box-shadow:none;font-weight:700}
.t67-iwb-host #iwbZipAll[hidden]{display:none!important}
/* No legacy lighting bloom / fake background glow. */
.t67-iwb-host #iwbPreviewHolder .t67-iwb-grid-surface{display:none!important}
.t67-iwb-host .ve-main::before,.t67-iwb-host .ve-main::after{content:none!important;display:none!important}
html[data-theme="dark"] .t67-iwb-host .t67-iwb-drop-main,body.dark .t67-iwb-host .t67-iwb-drop-main{background:#171b2a;border-color:#6553ad}
html[data-theme="dark"] .t67-iwb-host:not(.has-source-images) #iwbSourceDrop:is(:hover,.drag),body.dark .t67-iwb-host:not(.has-source-images) #iwbSourceDrop:is(:hover,.drag){background:#27223c;border-color:#9780ec;box-shadow:0 0 0 2px rgba(151,128,236,.12)}
html[data-theme="dark"] .t67-iwb-host #iwbZipAll,body.dark .t67-iwb-host #iwbZipAll{background:#262044;color:#d2bcff;border-color:#6553ad}
html[data-theme="dark"] .t67-iwb-host .t67-iwb-empty-icon,body.dark .t67-iwb-host .t67-iwb-empty-icon{background:#202539}
@media(max-width:900px){
 .t67-iwb-host .ve-layout{grid-template-columns:minmax(0,1fr);gap:12px}
 .t67-iwb-host .ve-shell{padding:0 7px;width:100%}
 .t67-iwb-host .ve-main{min-height:240px}
 .t67-iwb-host .t67-iwb-empty-workspace{min-height:220px}
}
@media(max-width:600px){
 .t67-iwb-host .t67-iwb-drop-wrap{padding:8px;gap:8px}
 .t67-iwb-host .t67-iwb-drop-main{min-height:120px}
 .t67-iwb-host.has-source-images .t67-iwb-drop-main{min-height:88px}
 .t67-iwb-host #iwbPreviewHolder .t67-iwb-source-gallery{gap:6px!important}
 .t67-iwb-host #iwbResultHolder .t67-iwb-result-gallery{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
 .t67-iwb-host #iwbResultSection{padding:6px}
 .t67-iwb-host .t67-iwb-empty-workspace{min-height:180px}
 .t67-iwb-host #iwbResultHolder .t67-ict-btn{width:27px;height:27px}
}
@media(hover:none){
 .t67-iwb-host #iwbPreviewHolder .t67-ict-tools,.t67-iwb-host #iwbResultHolder .t67-ict-tools{opacity:1!important;pointer-events:auto!important;transform:none!important}
}
/* V28 final: natural result aspect-ratio, no letterboxing from old 3:4 frame. */
.t67-iwb-host #iwbResultHolder .ve-result-media{display:block!important;width:100%!important;aspect-ratio:auto!important;height:auto!important;min-height:0!important;max-height:none!important;background:transparent!important;padding:0!important;}
.t67-iwb-host #iwbResultHolder .ve-result-media img{display:block!important;width:100%!important;height:auto!important;max-height:360px!important;object-fit:contain!important;background:transparent!important;padding:0!important;}
.t67-iwb-host #iwbPreviewHolder .t67-ict-card:hover>.t67-ict-tools,
.t67-iwb-host #iwbPreviewHolder .t67-ict-card:focus-within>.t67-ict-tools,
.t67-iwb-host #iwbResultHolder .t67-ict-card:hover>.t67-ict-tools,
.t67-iwb-host #iwbResultHolder .t67-ict-card:focus-within>.t67-ict-tools{opacity:1!important;pointer-events:auto!important;transform:none!important}
html[data-theme="dark"] .t67-iwb-host #iwbResultHolder .ve-result-card,
body.dark .t67-iwb-host #iwbResultHolder .ve-result-card{background:#141c29!important;border-color:#344055!important;color:#ecf2ff!important}
html[data-theme="dark"] .t67-iwb-host #iwbResultHolder .ve-result-foot,
body.dark .t67-iwb-host #iwbResultHolder .ve-result-foot{color:#ecf2ff!important;background:#141c29!important}
html[data-theme="dark"] .t67-iwb-host .t67-iwb-empty-workspace strong,
body.dark .t67-iwb-host .t67-iwb-empty-workspace strong{color:#eaf0fa!important}

.t67-iwb-host #iwbResultSection .t67-iwb-result-title b{display:none}
.t67-iwb-host #iwbResultSection .t67-iwb-result-title{justify-content:flex-end;padding:5px 7px 9px}

/* V29 — 4:6, separate sample libraries from user uploads, compact selectors */
.t67-iwb-host #iwbCompareWrap{display:none!important}
.t67-iwb-host .t67-iwb-settings-body .t67-iwb-field-grid{display:flex!important;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:7px}
.t67-iwb-host .t67-iwb-settings-body .t67-iwb-field-grid>.t67-iwb-field{flex:0 1 auto;min-width:0;max-width:100%}
.t67-iwb-host .t67-iwb-settings-body select.t67-iwb-select{width:auto!important;min-width:0!important;max-width:100%;padding:0 22px 0 7px;font-size:11px;}
.t67-iwb-host #iwbRefDrop.is-filled{border:1px solid var(--iwb-line)!important;background:#f8f7fd!important;padding:8px!important;min-height:0!important;overflow:visible!important;border-radius:12px!important;}
.t67-iwb-host #iwbRefDrop.is-filled .t67-iwb-drop-inner{width:100%;}
.t67-iwb-host .t67-iwb-ref-card{border:0!important;background:transparent!important;box-shadow:none!important;}
.t67-iwb-host .t67-iwb-ref-grid{gap:7px;}
.t67-iwb-host .t67-iwb-ref-card img{border-radius:9px;}
/* Original page's selectable style/sample gallery, above generated results on the right. */
.t67-iwb-host .t67-iwb-right-library{display:block;min-width:0;width:100%;max-height:400px;overflow:auto;padding:9px 9px 12px;border-bottom:1px solid var(--iwb-line);scrollbar-width:thin;}
.t67-iwb-host .t67-iwb-right-library[hidden]{display:none!important;}
.t67-iwb-host.has-library-gallery .t67-iwb-empty-workspace{min-height:155px;}
.t67-iwb-host.is-focus-results .t67-iwb-right-library{max-height:310px;}
@media(max-width:600px){.t67-iwb-host .t67-iwb-right-library{max-height:320px;padding:7px;}}
/* Selected reference thumbnails stay compact and borderless — never full-width banners. */
.t67-iwb-host #iwbRefDrop.is-filled .t67-iwb-ref-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px;}
.t67-iwb-host #iwbRefDrop.is-filled .t67-iwb-ref-card{aspect-ratio:1;min-height:0;overflow:hidden;border:0!important;border-radius:9px;background:transparent!important;}
.t67-iwb-host #iwbRefDrop.is-filled .t67-iwb-ref-card img{width:100%;height:100%;min-height:0;max-height:none!important;object-fit:cover;}

/* V30: compact 8-column reference gallery and functional category tabs on the right. */
.t67-iwb-host .t67-iwb-right-library :is(.hair-style-grid,.hs-style-grid,.pp-style-grid,.sk-style-picker,.pa-style-picker,.ct-style-grid,#ctStylePicker){display:grid;
  grid-template-columns:repeat(8,minmax(0,1fr))!important;
  gap:7px!important;
}
.t67-iwb-host .t67-iwb-library-filter-tabs{
  position:sticky;top:0;z-index:3;display:flex;align-items:center;
  justify-content:flex-start;margin:0 0 8px;padding:3px 2px 8px;
  background:var(--iwb-panel,#fff);border-bottom:1px solid var(--iwb-line,#e5e7eb);
}
.t67-iwb-host .t67-iwb-library-filter-tabs #genderTabs{
  display:flex!important;align-items:center;justify-content:flex-start;flex-wrap:wrap;
  gap:6px;width:auto!important;max-width:100%;margin:0!important;padding:0!important;
  border:0!important;background:transparent!important;
}
.t67-iwb-host .t67-iwb-library-filter-tabs #genderTabs button{
  display:inline-flex;align-items:center;justify-content:center;min-height:31px;
  padding:5px 12px;border-radius:9px;font-size:12px;line-height:1.2;
  flex:none;width:auto!important;white-space:nowrap;
}
.t67-iwb-host .t67-iwb-right-library .hair-pick,
.t67-iwb-host .t67-iwb-right-library .hs-pick,
.t67-iwb-host .t67-iwb-right-library .pp-pick{
  min-width:0!important;
}
.t67-iwb-host .t67-iwb-right-library :is(.hair-pick,.hs-pick,.pp-pick) b{
  font-size:10px;line-height:1.3;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
html[data-theme="dark"] .t67-iwb-host .t67-iwb-library-filter-tabs,
body.dark .t67-iwb-host .t67-iwb-library-filter-tabs{background:var(--iwb-panel,#151b28);}
@media(max-width:600px){
 .t67-iwb-host .t67-iwb-right-library :is(.hair-style-grid,.hs-style-grid,.pp-style-grid,.sk-style-picker,.pa-style-picker,.ct-style-grid,#ctStylePicker){
   grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;
 }
 .t67-iwb-host .t67-iwb-library-filter-tabs{padding:2px 1px 7px;}
 .t67-iwb-host .t67-iwb-library-filter-tabs #genderTabs button{min-height:30px;padding:5px 10px;font-size:11px;}
}


/* V31 — the actual upload dropzone becomes the last grid tile once files exist.
   The empty-state dropzone keeps its original full-width visual and behavior. */
.t67-iwb-host.has-source-images #iwbPreviewSection{
  margin:0!important;
}
.t67-iwb-host.has-source-images #iwbSourceDrop{
  box-sizing:border-box;
  display:grid;
  grid-column:auto!important;
  width:100%;height:auto!important;min-width:0;min-height:0!important;
  aspect-ratio:1;
  padding:7px!important;
  align-self:stretch;
  border:1px dashed #aaa0ef;
  border-radius:10px;
  background:#f6f4ff;
  transform:none;
  cursor:pointer;
}
.t67-iwb-host.has-source-images #iwbSourceDrop[hidden]{display:none!important}
.t67-iwb-host.has-source-images #iwbSourceDrop:hover,
.t67-iwb-host.has-source-images #iwbSourceDrop.drag{
  background:#efebff;
  border-color:#7255e9;
  transform:none;
}
.t67-iwb-host.has-source-images #iwbSourceDrop .t67-iwb-drop-inner{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:4px;max-width:100%;min-width:0;
  text-align:center;
}
.t67-iwb-host.has-source-images #iwbSourceDrop .t67-iwb-drop-icon{
  width:31px;height:31px;flex:none;
  border:0;border-radius:8px;
  color:#785cf1;background:transparent;
}
.t67-iwb-host.has-source-images #iwbSourceDrop .t67-iwb-drop-icon svg{width:23px;height:23px}
.t67-iwb-host.has-source-images #iwbSourceDrop .t67-iwb-drop-inner b,
.t67-iwb-host.has-source-images #iwbSourceDrop .t67-iwb-drop-inner span{display:none}
.t67-iwb-host.has-source-images #iwbSourceDrop .t67-iwb-drop-inner::after{
  content:'Add images';color:#6d54c3;
  font-size:10px;font-weight:650;line-height:1.25;white-space:normal;
}
html[data-theme="dark"] .t67-iwb-host.has-source-images #iwbSourceDrop,
body.dark .t67-iwb-host.has-source-images #iwbSourceDrop{
  background:#201d31;border-color:#6752a6;
}
html[data-theme="dark"] .t67-iwb-host.has-source-images #iwbSourceDrop:hover,
body.dark .t67-iwb-host.has-source-images #iwbSourceDrop:hover{background:#2b2542;border-color:#a38cf3}
html[data-theme="dark"] .t67-iwb-host.has-source-images #iwbSourceDrop .t67-iwb-drop-icon,
body.dark .t67-iwb-host.has-source-images #iwbSourceDrop .t67-iwb-drop-icon{color:#c1afff}
html[data-theme="dark"] .t67-iwb-host.has-source-images #iwbSourceDrop .t67-iwb-drop-inner::after,
body.dark .t67-iwb-host.has-source-images #iwbSourceDrop .t67-iwb-drop-inner::after{color:#cbbdff}
@media(max-width:600px){
  .t67-iwb-host.has-source-images #iwbSourceDrop{min-height:0!important;padding:3px!important}
  .t67-iwb-host.has-source-images #iwbSourceDrop .t67-iwb-drop-icon{width:25px;height:25px}
  .t67-iwb-host.has-source-images #iwbSourceDrop .t67-iwb-drop-icon svg{width:19px;height:19px}
  .t67-iwb-host.has-source-images #iwbSourceDrop .t67-iwb-drop-inner::after{font-size:9px}
}

/* V36: Minimal controls in the original right-side style galleries.
   The single-image Portrait Art information strip is redundant with the style cards. */
.t67-iwb-host .t67-iwb-right-library .pa-style-summary{display:none!important}
.t67-iwb-host .t67-iwb-right-library :is(.pa-style-load,.pp-style-load){
  box-sizing:border-box;
  width:auto!important;
  min-width:0!important;
  min-height:24px!important;
  height:auto!important;
  padding:4px 9px!important;
  border:1px solid #d6d6dc!important;
  border-radius:8px!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--iwb-muted,#64748b)!important;
  font-family:inherit!important;
  font-size:11px!important;
  font-weight:600!important;
  letter-spacing:0!important;
  line-height:1.2!important;
  text-transform:none!important;
  cursor:pointer;
}
.t67-iwb-host .t67-iwb-right-library :is(.pa-style-load,.pp-style-load):hover{
  color:var(--iwb-text,#111827)!important;
  border-color:var(--iwb-muted,#64748b)!important;
}

/* Empty right-hand output canvas: soft geometric geometry instead of checkerboard.
   This acts ONLY while the existing empty state is visible, not during running
   or when result cards are present. No JS or generation lifecycle changes. */
.t67-iwb-host:not(.is-running) .ve-main:has(> #iwbEmptyWorkspace:not([hidden])){
  background-color:#f6f7fd!important;
  background-image:
    url('../img/image-empty-geometry-light.svg'),
    radial-gradient(ellipse at 50% 46%,#fff 0%,rgba(255,255,255,.95) 27%,transparent 75%),
    radial-gradient(ellipse at 95% 55%,rgba(217,228,255,.77),transparent 66%),
    radial-gradient(ellipse at 7% 4%,rgba(227,222,255,.69),transparent 64%),
    linear-gradient(145deg,#f6f7fd,#f1f4fc)!important;
  background-size:cover!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
}
.t67-iwb-host .ve-main:has(> #iwbEmptyWorkspace:not([hidden])) #iwbEmptyWorkspace{
  flex:1 0 auto;
  background:transparent!important;
}
/* A style library stays an opaque, readable surface above the decoration. */
.t67-iwb-host .ve-main:has(> #iwbEmptyWorkspace:not([hidden])) #iwbLibrarySlot:not([hidden]){
  background:var(--iwb-card,#fff);
}
html[data-theme="dark"] .t67-iwb-host:not(.is-running) .ve-main:has(> #iwbEmptyWorkspace:not([hidden])),
body.dark .t67-iwb-host:not(.is-running) .ve-main:has(> #iwbEmptyWorkspace:not([hidden])){
  background-color:#101725!important;
  background-image:
    url('../img/image-empty-geometry-dark.svg'),
    radial-gradient(ellipse at 51% 47%,rgba(49,58,88,.26),transparent 73%),
    radial-gradient(ellipse at 100% 70%,rgba(62,79,143,.2),transparent 65%),
    radial-gradient(ellipse at 4% 0%,rgba(85,77,142,.15),transparent 66%),
    linear-gradient(145deg,#151928,#101727)!important;
}

/* V40 — compact, unframed left controls and a subtly clearer result panel edge.
   Scoped to the existing unified Image Workbench; no JS/HTML changes. */
.t67-iwb-host .t67-iwb-ref-toggle-row{
  justify-content:flex-start;
}
.t67-iwb-host .t67-iwb-settings{
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
html[data-theme="dark"] .t67-iwb-host .t67-iwb-settings,
body.dark .t67-iwb-host .t67-iwb-settings{
  border:0;
  background:transparent;
}
.t67-iwb-host .t67-iwb-settings > summary{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 0;
  line-height:1.4;
  list-style:none;
  color:var(--iwb-text);
}
.t67-iwb-host .t67-iwb-settings > summary::before{
  content:'▸';
  display:inline-block;
  flex:none;
  font-size:11px;
  line-height:1;
  color:var(--iwb-muted);
}
.t67-iwb-host .t67-iwb-settings[open] > summary::before{
  content:'▾';
}
.t67-iwb-host .t67-iwb-settings > summary::after{
  content:none!important;
  display:none!important;
}
.t67-iwb-host .t67-iwb-settings-body{
  padding:3px 0 8px;
  border-top:0;
}
.t67-iwb-host .ve-layout > .ve-main{
  border-color:#cbd5e1;
}
html[data-theme="dark"] .t67-iwb-host .ve-layout > .ve-main,
body.dark .t67-iwb-host .ve-layout > .ve-main{
  border-color:#3e4c62;
}

/* V41 — readable Add reference text, with a slightly taller click target. */
.t67-iwb-host .t67-iwb-ref-toggle-row .t67-iwb-ref-toggle{
  color:#111111;
  line-height:1.6;
  min-height:30px;
  padding:5px 0;
}
.t67-iwb-host .t67-iwb-ref-toggle-row .t67-iwb-ref-toggle:hover{
  color:#000000;
}
html[data-theme="dark"] .t67-iwb-host .t67-iwb-ref-toggle-row .t67-iwb-ref-toggle,
body.dark .t67-iwb-host .t67-iwb-ref-toggle-row .t67-iwb-ref-toggle{
  color:#f5f7fb;
}



/* V47: lock the entire left workbench during a running batch, but keep right-side image preview usable. */
.t67-iwb-host.is-running .ve-side{pointer-events:none;opacity:.96}
.t67-iwb-host.is-running .ve-side :is(#iwbSourceDrop,#iwbPreviewHolder,.t67-iwb-ref-toggle-row,#iwbRefWrap,.t67-iwb-input-row,.t67-iwb-settings,.t67-iwb-actions){cursor:not-allowed!important}

/* V53: session recovery notice and low-emphasis clear button. */
.t67-iwb-host .t67-iwb-restore-note{color:var(--iwb-muted);font-size:12px;line-height:1.5;padding:0 7px 11px}
.t67-iwb-host .t67-iwb-restore-note[hidden],.t67-iwb-host #iwbClearResults[hidden]{display:none!important}
.t67-iwb-host .t67-iwb-bulk{gap:9px;flex-wrap:wrap}
.t67-iwb-host #iwbClearResults{min-height:34px;border:1px solid var(--iwb-line);border-radius:9px;background:transparent;box-shadow:none;color:var(--iwb-muted);font-size:12px;font-weight:600;padding:6px 10px}
.t67-iwb-host #iwbClearResults:hover{color:var(--iwb-text);border-color:var(--iwb-muted)}

/* V54: shared Image Workbench panel alignment and compact library chrome.
   Used only within unified image workbenches; unrelated image tools are untouched. */
@media (min-width:901px){
  /* Let the taller column set the whole row height. */
  .t67-iwb-host .ve-layout{align-items:stretch}
  .t67-iwb-host .ve-layout>.ve-side{display:flex;flex-direction:column;align-self:stretch;height:auto}
  .t67-iwb-host .ve-side>.t67-iwb-drop-wrap{
    display:flex;flex:1 1 auto;min-height:0;flex-direction:column;
  }
  /* The prompt absorbs spare space; input and action controls remain their natural size. */
  .t67-iwb-host .ve-side>.t67-iwb-drop-wrap>.t67-iwb-input-row{
    display:flex;flex:1 1 auto;min-height:105px;flex-direction:column;
  }
  .t67-iwb-host .ve-side .t67-iwb-input-row>.t67-iwb-prompt{
    flex:1 1 auto;height:auto;min-height:105px;max-height:none;
  }
}
/* Remove the nested right-side library's frame padding, not the actual style-card gaps. */
.t67-iwb-host .ve-layout>.ve-main:has(> #iwbLibrarySlot:not([hidden])){
  padding:0!important;
}
.t67-iwb-host #iwbLibrarySlot.t67-iwb-right-library:not([hidden]){
  padding:0!important;margin:0!important;
}
/* A smaller, quieter shared Load More control. Event handlers and visibility are unchanged. */
.t67-iwb-host .t67-iwb-right-library :is(
  #ctLoadMoreStyles,#styleLoadMore,#loadMoreModels,
  .ct-mini-action,.pa-style-load,.pp-style-load,.load-more
){
  min-height:23px!important;height:auto!important;
  padding:3px 8px!important;
  font-size:11px!important;font-weight:400!important;
  line-height:1.15!important;letter-spacing:0!important;
  text-transform:none!important;box-shadow:none!important;
}
.t67-iwb-host .t67-iwb-right-library .ct-style-actions{
  margin:5px 0 4px!important;line-height:1.15;
}

/* hero-mobile-visuals.css */
/* Tool67 Core Hero Mobile V27.
 * Scope: only pages that explicitly include this stylesheet.
 * Decorative hero art is hidden on small screens; operational upload/workbench
 * elements elsewhere in each page remain untouched.
 * Left-side benefit/tag chips are intentionally hidden at ALL viewport widths.
 */

/* Permanently hide decorative marketing chip/tag groups in hero copy. */
.ct-copy .ct-chips,
.eb-hero-copy .eb-hero-pills,
.ft-hero-copy .ft-badges,
.gc-hero-copy .gc-pill-row,
.hero-copy > .hero-pills,
.hero-copy > .hero-points,
.memory-hero .memory-trust,
.mm-copy .mm-chip-row,
.na-copy .na-chip-row,
.pod-copy .pod-chips,
.pp-copy .pp-pills,
.ps-copy .ps-chips,
.si-copy .si-chip-row,
.sk-copy .sk-pills,
.td-copy .td-tags,
.vbr-hero-copy .vbr-hero-points,
.ve-hero-copy .ve-proof,
.vr-copy .vr-chips,
.vto-hero-copy .vto-hero-points {display:none !important;}

/* Hide only confirmed right hero illustration containers on mobile. */
@media (max-width:767px){
.br-hero .br-scanner,
.eb-hero > .eb-stage,
.focus-hero > .lens-stage,
.gc-hero > .gc-stage,
.hero .curator-wall,
.hero .idea-stage,
.hero > .hero-art,
.hero > .phone-stage,
.hero.ae-wrap > .hero-visual,
.hero.hero-simple .hero-compare,
.hero.section > .hero-lab,
.hero.section > .hero-stage,
.i2i-hero .orbit-stage,
.i2v-hero .i2v-hero-visual,
.ix-hero .ix-visual,
.md-hero .md-hero-visual,
.memory-hero .memory-hero-visual,
.mm-hero > .mm-stage,
.na-hero > .na-stage,
.pa-hero > .pa-hero-scan-card,
.pav-hero .pav-hero-media,
.pfx-hero .pfx-hero-media,
.pod-hero > .fusion-stage,
.ptv-hero .ptv-hero-visual,
.pv-hero .launch-stage,
.si-hero > .si-stage,
.sk-hero > .sk-stage,
.skv-hero .sketchboard,
.td-hero > .td-hero-visual,
.vbr-hero .vbr-hero-media,
.ve-hero .ve-hero-stage,
.video-index-hero .video-hero-orbit,
.vr-hero > .vr-stage,
.vto-hero .vto-hero-visual {display:none !important;}
.ft-hero,
.vto-hero,
section.hero.ae-wrap,
section.hero.section,
section.hero.hero-simple,
section.hero:not(.ae-wrap):not(.section):not(.hero-simple),
.br-hero-grid,
.eb-hero,
.gc-hero,
.i2i-hero-grid,
.ix-hero-grid,
.mm-hero,
.na-hero,
.pod-hero,
.pp-hero,
.vr-hero,
.ps-hero,
.sk-hero,
.ct-hero,
.si-hero,
.td-hero,
.pa-hero,
.focus-hero,
.video-index-hero-grid,
.pfx-hero-shell,
.pav-hero-shell,
.vbr-hero,
.ptv-hero-grid,
.i2v-hero-grid,
.md-hero-inner,
.ve-hero,
.pv-hero,
.skv-hero .hero-grid,
.memory-hero-inner {grid-template-columns:minmax(0,1fr) !important;min-height:0 !important;}
.ft-hero-copy,
.vto-hero-copy,
.hero-copy,
.eb-hero-copy,
.gc-hero-copy,
.mm-copy,
.na-copy,
.pod-copy,
.pp-copy,
.vr-copy,
.ps-copy,
.sk-copy,
.ct-copy,
.si-copy,
.td-copy,
.pa-copy,
.ptv-hero-copy,
.md-hero-copy,
.i2v-hero-copy,
.pv-hero-copy,
.ve-hero-copy,
.vbr-hero-copy,
.pav-hero-copy,
.pfx-hero-copy,
.memory-hero-copy{width:100% !important;max-width:100% !important;min-width:0 !important;}
/* Reduce space formerly reserved below the removed artwork. */
.ft-hero,
.vto-hero,
section.hero,
.br-hero,
.eb-hero,
.gc-hero,
.i2i-hero,
.ix-hero,
.mm-hero,
.na-hero,
.pod-hero,
.pp-hero,
.vr-hero,
.ps-hero,
.sk-hero,
.ct-hero,
.si-hero,
.td-hero,
.pa-hero,
.focus-hero,
.video-index-hero,
.pfx-hero,
.pav-hero,
.vbr-hero,
.ptv-hero,
.md-hero,
.ve-hero,
.pv-hero,
.skv-hero,
.memory-hero {
  padding-bottom:20px !important;
}

}

/* style-workbench.css */
/* Only the library-based image workbenches load this stylesheet. */
.style-workbench { --sw-accent:#3563dc; --sw-line:var(--iwb-line,#d1dae8); --sw-bg:var(--iwb-card,#fff); --sw-ink:var(--iwb-text,#17243a); color:var(--sw-ink) }
.style-workbench .sw-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.style-workbench .sw-tile {position:relative;aspect-ratio:4/5;overflow:hidden;border:1px solid var(--sw-line);border-radius:16px;background:var(--sw-bg);min-width:0}
.style-workbench .sw-face,.style-workbench .sw-reference,.style-workbench .sw-reference-content,.style-workbench .sw-ref-cell {width:100%;height:100%;position:relative;min-height:0;min-width:0}
.style-workbench .sw-reference-content {display:grid;align-items:stretch;place-items:stretch;text-align:center}
.style-workbench .sw-reference-content>span {align-self:center}
.style-workbench .sw-pair img,.style-workbench .sw-thumb img {width:100%;height:100%;object-fit:cover;display:block;min-height:0}
.style-workbench .sw-tile input[hidden],.style-workbench [hidden]{display:none!important}
.style-workbench button[class^="sw-"] {font-family:inherit;color:inherit;cursor:pointer}
.style-workbench .sw-crop,.style-workbench .sw-choose,.style-workbench .sw-switch,.style-workbench .sw-add-main {width:100%;height:100%;border:0;padding:0;background:transparent}
.style-workbench .sw-choose {position:absolute;inset:0;z-index:1}
.style-workbench .sw-add-main {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:8px;background:color-mix(in srgb,var(--sw-accent) 4%,var(--sw-bg));font-size:14px}
.sw-add-main small {color:var(--iwb-muted);font-size:12px}
.sw-plus {display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--sw-line);border-radius:12px;color:var(--sw-accent);background:var(--sw-bg);font-size:25px}
.style-workbench .sw-upload,.style-workbench .sw-remove {position:absolute;z-index:3;border:1px solid var(--sw-line);border-radius:8px;background:var(--sw-bg);line-height:1}
.style-workbench .sw-upload {right:7px;bottom:7px;padding:7px;font-size:12px;font-weight:650;color:var(--sw-accent)}
.style-workbench .sw-remove {right:3px;top:3px;padding:0;width:23px;height:23px;font-size:17px;opacity:0}
.sw-tile:hover .sw-remove,.sw-thumb:hover .sw-remove,.sw-tile:focus-within .sw-remove,.sw-thumb:focus-within .sw-remove {opacity:1}
.style-workbench .sw-strip {display:flex;gap:7px;overflow-x:auto;padding:2px 0 5px}
.style-workbench .sw-thumb,.style-workbench .sw-add {position:relative;flex:0 0 58px;height:58px;overflow:hidden;border-radius:9px;border:1px solid var(--sw-line);background:var(--sw-bg)}
.style-workbench .sw-add {font-size:23px;border-style:dashed;color:var(--sw-accent)}
.style-workbench .sw-thumb img {object-fit:cover}
.style-workbench .sw-shelf {box-sizing:border-box;width:100%;margin:38px auto 0;padding:clamp(14px,3vw,32px);border:1px solid var(--sw-line);border-radius:22px;background:var(--sw-bg)}
.style-workbench .sw-shelf h2,.style-workbench .sw-heading h2 {margin:0 0 16px;font-size:clamp(20px,2vw,28px);line-height:1.2;color:var(--sw-ink)}
.sw-filters {display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}
.style-workbench .sw-tab,.style-workbench .sw-more,.style-workbench .sw-close {border:1px solid var(--sw-line);background:var(--sw-bg);border-radius:9px;padding:7px 12px;font-size:13px}
.style-workbench .sw-tab[aria-pressed=true] {background:var(--sw-accent);color:white;border-color:var(--sw-accent)}
.sw-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(132px,100%),1fr));gap:12px}
.style-workbench .sw-example {min-width:0;display:flex;flex-direction:column;border:1px solid var(--sw-line);border-radius:12px;padding:6px;gap:6px;background:var(--sw-bg);text-align:left}
.sw-example img {width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}
.style-workbench .sw-example span {padding:1px 4px 5px;font-size:11px;line-height:1.4;font-weight:400}
.style-workbench .sw-example:hover,.style-workbench .sw-example[aria-pressed=true] {border-color:var(--sw-accent);box-shadow:0 0 0 1px var(--sw-accent)}
.style-workbench .sw-more {display:block;margin:16px auto 0}
.style-workbench .sw-dialog {position:fixed;inset:0;margin:auto;width:min(960px,94vw);max-height:85dvh;overflow:auto;border:1px solid var(--sw-line);border-radius:18px;padding:0 18px 18px;background:var(--sw-bg);color:var(--sw-ink)}
.sw-dialog::backdrop {background:rgb(15 23 42 / 55%)}
.sw-heading {position:sticky;top:0;z-index:2;background:var(--sw-bg);display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.style-workbench .sw-heading h2 {margin:0;font-size:20px}
.style-workbench .sw-close {font-size:18px}
.style-workbench button:focus-visible {outline:3px solid var(--sw-accent);outline-offset:-3px}
@media(hover:none){.style-workbench .sw-remove{opacity:1}}
@media(max-width:600px){.sw-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.sw-example span{font-size:11px}.style-workbench .sw-pair{gap:8px}}
#sketchLibraryExamples .ct-compare {cursor:default;touch-action:auto}
.style-workbench .ve-side>.t67-iwb-drop-wrap {grid-template-columns:minmax(0,1fr)}
.style-workbench .sw-label {position:absolute;top:7px;left:7px;z-index:2;pointer-events:none;background:var(--sw-bg);border:1px solid var(--sw-line);border-radius:6px;padding:3px 7px;font-size:11px;font-weight:600}
.style-workbench .sw-tab {font-size:12px;font-weight:400;line-height:1.35}
.style-workbench .sw-pair {scroll-margin-top:80px}
@media(min-width:1024px){
  .style-workbench .sw-shelf .sw-grid {grid-template-columns:repeat(8,minmax(0,1fr))}
}
@media(max-width:767px){
  .style-workbench .sw-filters {flex-wrap:nowrap;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding-bottom:4px}
  .style-workbench .sw-tab {flex:none;white-space:nowrap}
}
@media(min-width:768px){
  .sw-dialog .sw-browser {display:grid;grid-template-columns:145px 1fr;gap:14px;align-items:start}
  .sw-dialog .sw-filters {position:sticky;top:58px;display:grid;gap:5px}
  .sw-dialog .sw-tab {text-align:left}
  .sw-dialog .sw-more {grid-column:2}
}
