/* 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;
}

/* ai-image-effects.css */
/* Tool67 Image Effects: shared editorial design system for the 100 effects. */
.fx-page,.fx-directory{--fx-accent:#5661db;--fx-ink:#1b2340;--fx-surface:#f6f7fa;--fx-border:rgba(32,40,65,.12);color:var(--text-primary,#1d2635);font-family:inherit}
.fx-page *,.fx-directory *{box-sizing:border-box}
.fx-page main,.fx-directory main{max-width:1392px;margin:auto;padding:0 clamp(14px,3vw,34px) 56px}
.fx-page img{display:block;max-width:100%}
.fx-page h1,.fx-page h2,.fx-directory h1,.fx-directory h2{letter-spacing:-.045em;line-height:1.12}
.fx-page h2,.fx-directory h2{font-size:clamp(26px,3.15vw,39px);margin:0 0 15px;font-weight:800}
.fx-breadcrumb{display:flex;align-items:center;gap:11px;flex-wrap:wrap;padding:20px 0 0;color:#657080;font-size:12px}
.fx-breadcrumb a{color:inherit;text-decoration:none}.fx-breadcrumb a:hover{color:var(--fx-accent)}
.fx-hero{padding:46px clamp(0px,1vw,12px) 62px;min-height:510px;display:grid;grid-template-columns:1fr 1.07fr;gap:clamp(30px,5vw,82px);align-items:center}
.fx-kicker,.fx-eyebrow{font-weight:850;letter-spacing:.17em;text-transform:uppercase;font-size:11px;color:var(--fx-accent)}
.fx-kicker{display:flex;align-items:center;gap:10px}.fx-dot{width:8px;height:8px;background:var(--fx-accent);border-radius:50%;box-shadow:0 0 0 5px color-mix(in srgb,var(--fx-accent) 15%,transparent)}
.fx-code{display:inline-flex;border:1px solid var(--fx-border);border-radius:100px;padding:4px 10px;font-size:11px;letter-spacing:0;text-transform:none;color:#758093}
.fx-hero h1{font-weight:850;font-size:clamp(44px,5.15vw,74px);margin:20px 0 12px;max-width:740px;overflow-wrap:anywhere}
.fx-lead{font-size:clamp(19px,2vw,24px);font-weight:750;margin:0 0 15px;line-height:1.35;letter-spacing:-.02em}
.fx-description{color:#667384;line-height:1.8;max-width:560px;margin:0 0 27px;font-size:15px}
.fx-actions,.fx-trust{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.fx-btn{display:inline-flex;align-items:center;justify-content:center;gap:15px;padding:14px 21px;border-radius:13px;color:#fff;background:var(--fx-accent);font-weight:750;font-size:13px;text-decoration:none;border:1px solid var(--fx-accent);transition:transform .15s,box-shadow .15s}
.fx-btn:hover{color:#fff;transform:translateY(-2px);box-shadow:0 9px 22px color-mix(in srgb,var(--fx-accent) 20%,transparent)}
.fx-btn-alt{color:var(--fx-ink);background:transparent;border-color:var(--fx-border)}.fx-btn-alt:hover{color:var(--fx-ink);box-shadow:none}
.fx-trust{margin-top:26px;gap:15px;color:#7a8593;font-size:11px}.fx-trust span:before{content:'✓';color:var(--fx-accent);margin-right:6px}
.fx-hero-visual{position:relative;isolation:isolate;padding:20px;background:var(--fx-ink);box-shadow:0 28px 80px rgba(27,34,65,.17);color:#fff;border-radius:22px;overflow:hidden;max-width:680px;width:100%;margin-left:auto}
.fx-hero-visual:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 20% 0%,color-mix(in srgb,var(--fx-accent) 30%,transparent),transparent 60%);z-index:-1}
.fx-visual-top,.fx-visual-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;letter-spacing:.14em;color:rgba(255,255,255,.68);font-weight:750}
.fx-visual-images{display:grid;grid-template-columns:41% 59%;align-items:stretch;gap:10px;aspect-ratio:1.28;margin:15px 10px 15px 0}
.fx-visual-images img{width:100%;height:100%;object-fit:cover;min-height:0;background:rgba(255,255,255,.12)}
.fx-visual-images.fx-one-image{grid-template-columns:minmax(0,1fr)!important;aspect-ratio:1.48!important;margin-right:0}.fx-visual-images.fx-one-image img{object-fit:contain;border-radius:10px}
.fx-visual-foot a{color:rgba(255,255,255,.75);text-decoration:underline;text-underline-offset:3px;font-size:10px;letter-spacing:0}.fx-visual-foot a:hover{color:#fff}
.fx-img-original{border-radius:10px 4px 4px 10px;filter:saturate(.78)}.fx-img-style{border-radius:4px 10px 10px 4px}
.fx-layout-1 .fx-visual-images{grid-template-columns:50% 50%;aspect-ratio:1.3}.fx-layout-2 .fx-visual-images{grid-template-columns:37% 63%;aspect-ratio:1.4}
.fx-layout-3 .fx-hero-visual{border-radius:42px 10px 42px 10px;transform:rotate(-1deg)}.fx-layout-4 .fx-hero-visual{border-radius:9px 42px 9px 42px}.fx-layout-5 .fx-visual-images{aspect-ratio:1.5;grid-template-columns:45% 55%}
.fx-page .fx-section,.fx-page .fx-workbench{margin:42px 0 76px}.fx-head{max-width:800px;margin-bottom:28px}.fx-head .fx-eyebrow{margin-bottom:10px}.fx-head p{color:#677487;line-height:1.75;font-size:15px;margin:0}
.fx-workbench{scroll-margin-top:80px}.fx-workbench #t67UnifiedWorkbenchMount{width:100%}
.fx-page .t67-iwb-effect-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:9px 0 14px}
.fx-page .t67-iwb-effect-control{display:flex;flex-direction:column;gap:5px;min-width:0}
.fx-page .t67-iwb-effect-control span{font-size:11px;font-weight:750;color:#748094}
.fx-page .t67-iwb-effect-control select{width:100%;min-width:0;min-height:35px;border:1px solid var(--fx-border);border-radius:9px;background:var(--fx-surface);padding:5px 8px;color:inherit;font-size:12px;cursor:pointer}
.fx-page.fx-single-upload .t67-iwb-host:not(.has-source-images) #iwbSourceDrop{min-height:210px}
.fx-page.fx-single-upload .t67-iwb-host .t67-iwb-drop-main{border-style:dashed}
.fx-page .t67-iwb-host .ve-layout{grid-template-columns:minmax(0,4fr) minmax(0,6fr)}
.fx-demo-warning{padding:12px 18px;background:#fff8e8;border:1px solid #f2dda2;color:#736142;border-radius:13px;font-size:12px;line-height:1.6;margin:-9px 0 22px}
.fx-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:21px}
.fx-case{background:var(--fx-surface);border:1px solid var(--fx-border);border-radius:18px;overflow:hidden;transition:transform .18s,box-shadow .18s;min-width:0}
.fx-case:hover{transform:translateY(-4px);box-shadow:0 15px 33px rgba(27,34,65,.09)}
.fx-pair{display:grid;grid-template-columns:1fr 1fr;gap:2px;aspect-ratio:1.5;background:#fff}.fx-pair figure{margin:0;min-width:0;position:relative;overflow:hidden}.fx-pair img{width:100%;height:100%;object-fit:cover}
.fx-pair.fx-comparison-single{grid-template-columns:minmax(0,1fr)}.fx-pair.fx-comparison-single img{object-fit:contain}
.fx-attribution{font-size:10px!important;min-height:0!important;margin:0 0 10px!important}.fx-attribution a{color:var(--fx-accent);text-decoration:underline;text-underline-offset:2px}
.fx-pair figcaption{position:absolute;bottom:9px;left:9px;font-size:9px;letter-spacing:.05em;background:rgba(16,20,28,.7);padding:5px 8px;border-radius:6px;color:#fff;backdrop-filter:blur(4px)}
.fx-case-copy{padding:16px 18px 19px}.fx-case-copy>span{font-size:10px;color:var(--fx-accent);font-weight:800;letter-spacing:.12em}
.fx-case-copy h3{font-size:17px;margin:6px 0 7px;letter-spacing:-.02em}.fx-case-copy p{font-size:12px;color:#677487;line-height:1.65;margin:0 0 14px;min-height:59px}
.fx-copy{background:transparent;border:0;border-bottom:1px solid var(--fx-accent);padding:1px 0 4px;color:var(--fx-accent);font-size:12px;font-weight:750;cursor:pointer}.fx-copy:hover{opacity:.7}
.fx-benefits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.fx-benefit{border:1px solid var(--fx-border);padding:24px 20px;border-radius:17px;background:var(--fx-surface)}
.fx-benefit>span{display:inline-flex;width:38px;height:38px;align-items:center;justify-content:center;background:color-mix(in srgb,var(--fx-accent) 10%,white);color:var(--fx-accent);border-radius:10px;font-size:12px;font-weight:800}
.fx-benefit h3{font-size:17px;margin:19px 0 9px}.fx-benefit p{font-size:13px;line-height:1.75;color:#6a7583;margin:0}
.fx-explain{display:grid;grid-template-columns:1.2fr .8fr;gap:42px;align-items:center}.fx-explain p{font-size:15px;line-height:1.9;color:#687386}.fx-prompt-guide{background:var(--fx-ink);color:#fff;border-radius:23px;padding:30px}
.fx-prompt-guide h3{font-size:23px;margin:12px 0}.fx-prompt-guide p{color:rgba(255,255,255,.65);font-size:13px;line-height:1.65}.fx-prompt-guide blockquote{font-size:14px;font-weight:550;line-height:1.8;border-left:3px solid var(--fx-accent);margin:25px 0;padding:5px 0 5px 16px;color:#fff}.fx-prompt-guide .fx-copy{color:#eaefff;border-color:#eaefff}
.fx-faq-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.fx-faq-list details{background:var(--fx-surface);border:1px solid var(--fx-border);border-radius:13px;padding:17px 20px;align-self:start}
.fx-faq-list summary{font-size:14px;font-weight:750;cursor:pointer;padding-right:12px;line-height:1.5}.fx-faq-list details[open]{border-color:color-mix(in srgb,var(--fx-accent) 35%,transparent)}.fx-faq-list p{line-height:1.75;color:#6a7584;font-size:13px;margin:12px 0 0}
.fx-bottom{background:var(--fx-ink);color:#fff;padding:58px 25px;border-radius:25px;text-align:center;margin:60px 0 40px}.fx-bottom span{letter-spacing:.2em;font-size:11px;color:color-mix(in srgb,var(--fx-accent) 60%,white);font-weight:750}
.fx-bottom h2{margin:12px auto;font-size:clamp(28px,3.5vw,46px)}.fx-bottom p{color:#c7cbd3;font-size:14px;margin:0 auto 23px}.fx-related{border-top:1px solid var(--fx-border);padding:20px 0}.fx-related h2{font-size:18px;margin:0 0 17px}
.fx-related div{display:flex;flex-wrap:wrap;gap:8px}.fx-related a{text-decoration:none;font-size:11px;border:1px solid var(--fx-border);padding:9px 12px;border-radius:99px;color:#647082}.fx-related a:hover{border-color:var(--fx-accent);color:var(--fx-accent)}
.fx-related h3{font-size:12px;font-weight:800;color:#828c9a;letter-spacing:.07em;text-transform:uppercase;margin:24px 0 12px}
.fx-directory .fx-dir-hero{padding:90px 0 62px;max-width:1050px}.fx-dir-hero h1{font-size:clamp(55px,8vw,99px);font-weight:900;margin:15px 0}.fx-dir-hero>p{font-size:18px;line-height:1.7;color:#627186;max-width:770px}
.fx-dir-search{display:flex;align-items:center;gap:12px;border-radius:16px;border:1px solid var(--fx-border);padding:9px 17px;background:var(--fx-surface);margin:30px 0 23px;max-width:790px}
.fx-dir-search label{font-size:11px;font-weight:750;white-space:nowrap}.fx-dir-search input{border:0;background:transparent;outline:0;flex:1;min-width:80px;padding:10px;font:inherit;font-size:14px}.fx-dir-search span{color:#687286;white-space:nowrap;font-size:12px}
.fx-dir-tabs{display:flex;flex-wrap:wrap;gap:7px}.fx-dir-tabs a{font-size:11px;text-decoration:none;color:#627086;border:1px solid var(--fx-border);padding:8px 13px;border-radius:99px}.fx-dir-tabs a:hover{background:#ecf0ff;color:#4364c7}
.fx-dir-section{padding:34px 0 53px;scroll-margin-top:60px}.fx-dir-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.fx-dir-card{display:block;text-decoration:none;background:var(--fx-surface);border:1px solid var(--fx-border);border-radius:15px;padding:22px;min-height:210px;color:inherit;transition:transform .15s,border-color .15s}
.fx-dir-card:hover{transform:translateY(-3px);border-color:#7f88b8;color:inherit}.fx-dir-card>span{font-size:11px;color:#9099a5}.fx-dir-card h3{font-size:17px;margin:17px 0 10px;color:inherit}.fx-dir-card p{font-size:12px;line-height:1.6;color:#717d8b;margin:0 0 15px}.fx-dir-card em{font-size:11px;color:#485fc6;font-style:normal;font-weight:750}.fx-dir-card[hidden]{display:none!important}
@media(max-width:1100px){.fx-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.fx-benefits{grid-template-columns:repeat(2,minmax(0,1fr))}.fx-dir-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.fx-page main,.fx-directory main{padding-inline:15px}.fx-hero{grid-template-columns:1fr;gap:20px;padding:25px 0 30px;min-height:0}.fx-hero h1{font-size:clamp(38px,9vw,58px)}.fx-hero-visual{display:none}.fx-trust{gap:9px}.fx-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.fx-case-copy{padding:12px}.fx-case-copy h3{font-size:15px}.fx-case-copy p{min-height:0;font-size:11px}.fx-pair{aspect-ratio:1.2}.fx-pair figcaption{font-size:8px;padding:4px;left:4px;bottom:4px}.fx-benefits{grid-template-columns:1fr 1fr;gap:9px}.fx-benefit{padding:16px}.fx-benefit h3{font-size:15px}.fx-explain{grid-template-columns:1fr;gap:16px}.fx-faq-list{grid-template-columns:1fr}.fx-page .fx-section,.fx-page .fx-workbench{margin:35px 0 54px}.fx-dir-grid{grid-template-columns:1fr 1fr;gap:10px}.fx-dir-card{padding:16px;min-height:190px}.fx-dir-hero{padding-top:40px!important}.fx-dir-hero h1{font-size:52px}.fx-dir-hero>p{font-size:14px}}
@media(max-width:760px){.fx-page .t67-iwb-host .ve-layout{grid-template-columns:minmax(0,1fr)}.fx-page .t67-iwb-effect-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.fx-gallery{grid-template-columns:1fr}.fx-pair{aspect-ratio:1.6}.fx-benefits{grid-template-columns:1fr}.fx-dir-grid{grid-template-columns:1fr}.fx-dir-card{min-height:0}.fx-dir-search{flex-wrap:wrap}}
html[data-theme="dark"] .fx-page,html[data-theme="dark"] .fx-directory{--fx-surface:#202631;--fx-border:rgba(235,241,255,.14);color:#e9edf5}
html[data-theme="dark"] .fx-page .fx-description,html[data-theme="dark"] .fx-page .fx-head p,html[data-theme="dark"] .fx-page .fx-case-copy p,html[data-theme="dark"] .fx-page .fx-benefit p,html[data-theme="dark"] .fx-page .fx-faq-list p,html[data-theme="dark"] .fx-page .fx-explain p,html[data-theme="dark"] .fx-directory .fx-dir-card p,html[data-theme="dark"] .fx-directory .fx-dir-hero>p{color:#a9b5c5}
html[data-theme="dark"] .fx-btn-alt{color:#e9edf5}html[data-theme="dark"] .fx-btn-alt:hover{color:#fff}
html[data-theme="dark"] .fx-page .fx-breadcrumb,html[data-theme="dark"] .fx-page .fx-trust,html[data-theme="dark"] .fx-page .fx-related a,html[data-theme="dark"] .fx-directory .fx-dir-tabs a{color:#aeb8c8}
html[data-theme="dark"] .fx-demo-warning{background:#3d3424;border-color:#6b593b;color:#f7d69d}
html[data-theme="dark"] .fx-dir-search input{color:#e9edf5}html[data-theme="dark"] .fx-dir-card:hover{color:#fff}

/* V3: five visual families, readable controls, and source-first editing. */
.fx-page,.fx-directory{--fx-action:color-mix(in srgb,var(--fx-accent) 40%,#101827)}
.fx-btn{background:var(--fx-action);border-color:var(--fx-action);color:#fff;font-size:14px;min-height:46px}
.fx-btn-alt{background:transparent;border-color:var(--fx-border);color:var(--fx-ink)}
.fx-btn:hover{box-shadow:0 12px 23px color-mix(in srgb,var(--fx-action) 20%,transparent)}
.fx-page :is(a,button,select,textarea):focus-visible,.fx-directory :is(a,button,input):focus-visible{outline:3px solid color-mix(in srgb,var(--fx-accent) 58%,#14213d);outline-offset:3px}
.fx-page .fx-section,.fx-page .fx-workbench{margin:40px 0 62px}
.fx-page .fx-description,.fx-page .fx-head p,.fx-page .fx-explain p{font-size:15px;line-height:1.75}
.fx-case-copy p,.fx-benefit p,.fx-faq-list p{font-size:13px}
.fx-case-copy>span,.fx-kicker,.fx-eyebrow,.fx-visual-top,.fx-visual-foot,.fx-related a{font-size:12px}
.fx-hero{min-height:425px;border-radius:28px;padding:34px clamp(18px,3vw,40px);margin-top:18px}
.fx-family-engineering .fx-hero{background:linear-gradient(110deg,#f1f5ff,#eaf1ff 56%,#f7fbff);border:1px solid #dce7fc}
.fx-family-engineering .fx-hero-visual{border:1px solid #5477ad;box-shadow:0 20px 56px rgba(17,62,110,.16)}
.fx-family-engineering .fx-hero-visual:after{content:'';position:absolute;inset:0;pointer-events:none;opacity:.18;background-image:linear-gradient(rgba(180,219,255,.25) 1px,transparent 1px),linear-gradient(90deg,rgba(180,219,255,.25) 1px,transparent 1px);background-size:28px 28px}
.fx-family-editorial .fx-hero{background:linear-gradient(120deg,#faf3fe,#f2edff 58%,#fff7f1);border:1px solid #ebe2f4}
.fx-family-editorial .fx-hero h1{font-family:Georgia,'Times New Roman',serif;letter-spacing:-.055em;font-weight:750}
.fx-family-editorial .fx-hero-visual{border-radius:9px;transform:rotate(-1deg)}
.fx-family-commercial .fx-hero{background:linear-gradient(118deg,#fff7f1,#fff 58%,#fff1ec);border:1px solid #f4e7e0}
.fx-family-commercial .fx-hero h1{letter-spacing:-.055em}
.fx-family-repair .fx-hero{background:linear-gradient(115deg,#f7fcfc,#edf6f9 68%,#f7fbff);border:1px solid #dcecef;min-height:360px}
.fx-family-repair .fx-hero-visual{border-radius:13px;background:#1a3038;transform:none}
.fx-family-interior .fx-hero{background:linear-gradient(118deg,#f8f8ee,#eef2e9 58%,#f6f6ee);border:1px solid #e5e8d9}
.fx-family-interior .fx-hero-visual{border-radius:12px;box-shadow:0 18px 60px rgba(39,51,41,.17)}
.fx-family-engineering .fx-pair{aspect-ratio:1.65}
.fx-family-editorial .fx-pair{aspect-ratio:1.02}
.fx-family-commercial .fx-pair{aspect-ratio:1.4}
.fx-family-repair .fx-pair{aspect-ratio:1.52}
.fx-family-interior .fx-pair{aspect-ratio:1.78}
.fx-gallery.is-collapsed .fx-case:nth-child(n+4){display:none}
.fx-pair.fx-slider{display:block;position:relative;isolation:isolate;overflow:hidden;--after-clip:50%}
.fx-pair.fx-slider figure{position:absolute;inset:0}
.fx-pair.fx-slider figure:nth-child(2){clip-path:inset(0 var(--after-clip) 0 0)}
.fx-pair.fx-slider:after{content:'';position:absolute;top:0;bottom:0;left:calc(100% - var(--after-clip));width:2px;background:#fff;box-shadow:0 0 8px rgba(0,0,0,.6);pointer-events:none}
.fx-pair.fx-slider .fx-compare-range{position:absolute;z-index:4;inset:0;width:100%;height:100%;margin:0;appearance:none;background:transparent;cursor:ew-resize}
.fx-pair.fx-slider .fx-compare-range::-webkit-slider-thumb{appearance:none;width:30px;height:30px;border:3px solid #fff;border-radius:50%;background:var(--fx-action);box-shadow:0 2px 12px rgba(0,0,0,.28)}
.fx-pair.fx-slider .fx-compare-range::-moz-range-thumb{width:27px;height:27px;border:3px solid #fff;border-radius:50%;background:var(--fx-action)}
.fx-show-examples{display:block;margin:24px auto 0;min-height:40px;padding:8px 21px;border:1px solid var(--fx-border);border-radius:99px;color:var(--fx-ink);background:var(--fx-surface);font-size:13px;font-weight:750;cursor:pointer}
.fx-show-examples:hover{border-color:var(--fx-accent)}
.fx-page .fx-copy{font-size:13px;color:var(--fx-action);border-color:var(--fx-action);min-height:28px}
.fx-page .t67-iwb-host:not(.has-source-images) #iwbSourceDrop{min-height:210px}
.fx-page .t67-iwb-host #iwbPreviewHolder .t67-iwb-source-gallery[data-count="1"]{grid-template-columns:minmax(0,1fr)!important}
.fx-page .t67-iwb-host #iwbPreviewHolder .t67-iwb-source-gallery[data-count="1"]>.ve-preview-card{grid-column:1 / -1!important;aspect-ratio:auto!important}
.fx-page .t67-iwb-host #iwbPreviewHolder .t67-iwb-source-gallery[data-count="1"] .ve-preview-media{min-height:260px;max-height:480px;aspect-ratio:auto}
.fx-page .t67-iwb-host #iwbPreviewHolder .t67-iwb-source-gallery[data-count="1"] img{max-height:470px;object-fit:contain}
.fx-page .t67-iwb-host .fx-source-replace{position:absolute;right:11px;bottom:11px;z-index:12;border:1px solid #d4dbe5;border-radius:9px;padding:8px 12px;background:rgba(255,255,255,.96);color:#172237;font-size:12px;font-weight:750;cursor:pointer;box-shadow:0 2px 10px rgba(10,18,35,.12)}
.fx-page .t67-iwb-host .fx-source-replace:hover{background:#eaf1fb}
.fx-page .t67-iwb-host .t67-iwb-settings{background:transparent;border:0;margin:6px 0}
.fx-page .t67-iwb-host .t67-iwb-settings>summary{padding:8px 0;font-size:12px;color:var(--iwb-text)}
.fx-page .t67-iwb-host .t67-iwb-settings-body{padding:7px 0 4px}
.fx-page .t67-iwb-host .t67-iwb-field-grid{grid-template-columns:1.4fr .8fr .8fr;gap:8px}
.fx-page .t67-iwb-host .t67-iwb-field label,.fx-page .t67-iwb-effect-control span{font-size:12px}
.fx-page .t67-iwb-host .t67-iwb-select,.fx-page .t67-iwb-effect-control select{font-size:12px;min-height:36px}
.fx-page .t67-iwb-host #iwbStart{min-height:46px;border-radius:11px;background:var(--fx-action);font-size:14px}
.fx-page .t67-iwb-host #iwbStart:disabled{background:#adb4bf}
.fx-page .t67-iwb-host #iwbCredits{text-align:right;font-size:12px;margin:5px 2px 0}
.fx-page .t67-iwb-host .t67-iwb-cost{color:#d43c3c;font-size:13px}
.fx-demo-warning{background:var(--fx-surface);border-color:var(--fx-border);color:#7b8491}
.fx-featured{padding:15px 0 40px}
.fx-featured-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.fx-feature-card{background:var(--fx-surface);color:inherit;border:1px solid var(--fx-border);border-radius:17px;overflow:hidden;text-decoration:none;display:flex;flex-direction:column;transition:transform .2s,border-color .2s}
.fx-feature-card:hover,.fx-dir-card:hover{transform:translateY(-4px);border-color:var(--fx-accent);color:inherit}
.fx-feature-card img{width:100%;aspect-ratio:1.55;object-fit:cover;background:#e9edf3}
.fx-feature-card span{font-size:10px;color:var(--fx-accent);font-weight:800;padding:13px 14px 0}
.fx-feature-card strong{font-size:16px;line-height:1.35;padding:5px 14px;color:inherit}
.fx-feature-card em{font-size:12px;font-style:normal;color:var(--fx-action);font-weight:700;padding:0 14px 15px;margin-top:auto}
.fx-directory .fx-dir-hero{padding:55px 0 42px}
.fx-dir-tabs button{border:1px solid var(--fx-border);color:#637186;background:var(--fx-surface);border-radius:99px;padding:9px 13px;font-size:12px;font-weight:650;cursor:pointer}
.fx-dir-tabs button:hover,.fx-dir-tabs button.is-active{color:#fff;background:var(--fx-action);border-color:var(--fx-action)}
.fx-dir-section[hidden],.fx-featured[hidden],.fx-dir-card[hidden]{display:none!important}
.fx-dir-card{padding:0;min-height:0;overflow:hidden}
.fx-dir-thumb{position:relative;overflow:hidden;background:#edf1f6}
.fx-dir-thumb img{display:block;width:100%;aspect-ratio:1.48;object-fit:cover;transition:transform .3s}
.fx-dir-card:hover .fx-dir-thumb img{transform:scale(1.045)}
.fx-dir-thumb span{position:absolute;top:10px;left:10px;padding:4px 7px;color:#fff;background:rgba(18,25,42,.65);font-size:11px;border-radius:7px}
.fx-dir-card-body{padding:15px 16px 18px}
.fx-dir-card-body h3{margin:0 0 7px;font-size:17px}
.fx-dir-card-body p{margin:0 0 9px;font-size:12px;line-height:1.6;min-height:39px}
.fx-dir-card-body em{color:var(--fx-action)}
.fx-load-status{text-align:center;font-size:12px;color:#8590a0;margin:12px 0 30px}
.fx-sentinel{height:1px}
html[data-theme="dark"] .fx-page .fx-hero{background:#1a2332;border-color:#37465c}
html[data-theme="dark"] .fx-page .fx-btn-alt{color:#e9edf5}
html[data-theme="dark"] .fx-page .t67-iwb-effect-control select{color:#edf2f7;background:#202631}
@media(max-width:1100px){.fx-featured-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:960px){.fx-page .t67-iwb-host .ve-layout{grid-template-columns:minmax(0,1fr)}.fx-hero{gap:22px}.fx-page .t67-iwb-host .t67-iwb-field-grid{grid-template-columns:1.4fr .8fr .8fr}}
@media(max-width:760px){.fx-page .fx-hero{padding:24px 15px 28px;margin-top:10px}.fx-family-editorial .fx-hero-visual{display:none}.fx-featured-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.fx-dir-card-body{padding:12px}.fx-page .t67-iwb-host .t67-iwb-field-grid{grid-template-columns:1fr 1fr}.fx-page .t67-iwb-host .t67-iwb-field:first-child{grid-column:1 / -1}}
@media(max-width:420px){.fx-featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fx-feature-card strong{font-size:13px}.fx-page .fx-pair{aspect-ratio:1.5}}

/* V5 · matches the 1440px site header and makes first-run settings optional. */
.fx-page main,.fx-directory main{max-width:1440px;padding-left:var(--t67-page-gutter,24px);padding-right:var(--t67-page-gutter,24px)}
.fx-page .t67-iwb-host .ve-shell{max-width:100%;padding:0}
.fx-page .fx-hero{padding-left:clamp(20px,2.7vw,38px);padding-right:clamp(20px,2.7vw,38px)}
.fx-page .t67-iwb-host .fx-more-settings{margin:7px 0 0;border:1px solid var(--iwb-line);border-radius:11px;background:var(--iwb-soft);overflow:hidden}
.fx-page .t67-iwb-host .fx-more-settings>summary{padding:12px 14px;font-size:12px;line-height:1.4;font-weight:750;color:var(--iwb-text);list-style:none;user-select:none}
.fx-page .t67-iwb-host .fx-more-settings>summary:hover{background:color-mix(in srgb,var(--fx-accent) 6%,transparent)}
.fx-page .t67-iwb-host .fx-more-settings>summary::after{content:'⌄';font-size:15px;line-height:1;color:var(--iwb-muted)}
.fx-page .t67-iwb-host .fx-more-settings[open]>summary::after{content:'⌃'}
.fx-page .t67-iwb-host .fx-more-settings .t67-iwb-settings-body{padding:13px;gap:12px;border-top:1px solid var(--iwb-line)}
.fx-page .t67-iwb-host .fx-more-settings .t67-iwb-prompt{font-size:12.5px;line-height:1.6;min-height:154px;max-height:320px;background:var(--iwb-card);color:var(--iwb-text);border-color:var(--iwb-line)}
.fx-page .t67-iwb-host .fx-more-settings .t67-iwb-effect-controls{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.fx-page .t67-iwb-host .fx-more-settings .t67-iwb-effect-control{flex:1 1 130px;max-width:230px}
.fx-page .t67-iwb-host .fx-more-settings .t67-iwb-effect-control span{display:none}
.fx-page .t67-iwb-host .fx-more-settings .t67-iwb-effect-control select{border-color:var(--iwb-line);background:var(--iwb-card);color:var(--iwb-text);min-height:36px}
.fx-page .t67-iwb-host .fx-more-settings .t67-iwb-field-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.fx-page .t67-iwb-host .fx-more-settings .t67-iwb-field label{font-size:11px;color:var(--iwb-muted)}
.fx-page .t67-iwb-host .fx-more-settings .t67-iwb-select{background:var(--iwb-card);color:var(--iwb-text);border-color:var(--iwb-line)}
.fx-directory .fx-dir-card:focus-visible,.fx-page .fx-btn:focus-visible{outline-offset:3px}
html[data-theme="dark"] .fx-page .fx-hero,body.dark .fx-page .fx-hero{background:linear-gradient(125deg,#182335,#20283a);border-color:#36485e}
html[data-theme="dark"] .fx-page .fx-code,body.dark .fx-page .fx-code{color:#b7c7d8;border-color:#4b5b70}
html[data-theme="dark"] .fx-page .fx-hero .fx-description,body.dark .fx-page .fx-hero .fx-description{color:#b5c4d6}
html[data-theme="dark"] .fx-page .fx-related h3,body.dark .fx-page .fx-related h3{color:#b3bdd0}
html[data-theme="dark"] .fx-page .fx-related a,body.dark .fx-page .fx-related a{color:#c2cfe1}
html[data-theme="dark"] .fx-directory .fx-dir-tabs button,body.dark .fx-directory .fx-dir-tabs button{color:#d2ddeb}
html[data-theme="dark"] .fx-directory .fx-dir-tabs button.is-active,body.dark .fx-directory .fx-dir-tabs button.is-active{color:#fff}
html[data-theme="dark"] .fx-page .fx-show-examples,body.dark .fx-page .fx-show-examples{color:#e6efff}
html[data-theme="dark"] .fx-page .fx-copy,body.dark .fx-page .fx-copy{color:#a6b9ff;border-color:#a6b9ff}
html[data-theme="dark"] .fx-page .fx-hero .fx-btn-alt,body.dark .fx-page .fx-hero .fx-btn-alt{color:#ecf2fd;border-color:#53647b}
html[data-theme="dark"] .fx-page .t67-iwb-host .fx-more-settings,body.dark .fx-page .t67-iwb-host .fx-more-settings{background:#151e2a}
html[data-theme="dark"] .fx-page .t67-iwb-host .fx-more-settings .t67-iwb-prompt,body.dark .fx-page .t67-iwb-host .fx-more-settings .t67-iwb-prompt{background:#101722;color:#eaf0fb}
html[data-theme="dark"] .fx-page .t67-iwb-host .fx-more-settings :is(.t67-iwb-select,.t67-iwb-effect-control select),body.dark .fx-page .t67-iwb-host .fx-more-settings :is(.t67-iwb-select,.t67-iwb-effect-control select){background:#111a26;border-color:#344357;color:#eaf0fb}
@media(max-width:760px){
  .fx-page main,.fx-directory main{padding-left:var(--t67-page-gutter-mobile,14px);padding-right:var(--t67-page-gutter-mobile,14px)}
  .fx-page .fx-hero{padding-left:18px;padding-right:18px}
  .fx-page .t67-iwb-host .fx-more-settings .t67-iwb-field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fx-page .t67-iwb-host .fx-more-settings .t67-iwb-field:first-child{grid-column:1/-1}
  .fx-page .t67-iwb-host .fx-more-settings .t67-iwb-effect-control{max-width:none}
}

/* V6 · follow the exact light/dark state used by the common header toggle.
   These classes are on <body>, so the background must be set on body itself. */
body.fx-page,body.fx-directory{background:var(--t67-bg,#f7f9fc)!important;color:var(--t67-text,#111827)!important;min-height:100vh;transition:background-color .18s ease,color .18s ease}
html[data-theme="dark"] body.fx-page,html[data-theme="dark"] body.fx-directory,
body.fx-page.dark,body.fx-directory.dark{background:#0b1220!important;color:#e8eff9!important;--fx-surface:#172236;--fx-border:#334357}
html[data-theme="light"] body.fx-page,html[data-theme="light"] body.fx-directory{background:#f7f9fc!important;color:#111827!important;--fx-surface:#f6f7fa;--fx-border:rgba(32,40,65,.12)}
html[data-theme="dark"] .fx-page :is(h1,h2,h3,.fx-lead),
html[data-theme="dark"] .fx-directory :is(h1,h2,h3){color:#f3f6fc}
html[data-theme="dark"] .fx-page .fx-kicker,html[data-theme="dark"] .fx-page .fx-eyebrow,
html[data-theme="dark"] .fx-directory .fx-kicker,html[data-theme="dark"] .fx-directory .fx-eyebrow{color:#9db7ff}
html[data-theme="dark"] .fx-page .fx-case-copy p,html[data-theme="dark"] .fx-page .fx-benefit p,
html[data-theme="dark"] .fx-page .fx-faq-list p,html[data-theme="dark"] .fx-page .fx-head p,
html[data-theme="dark"] .fx-page .fx-explain p,html[data-theme="dark"] .fx-directory .fx-dir-hero>p,
html[data-theme="dark"] .fx-directory .fx-dir-card p,html[data-theme="dark"] .fx-directory .fx-load-status{color:#acbad0}
html[data-theme="dark"] .fx-directory .fx-dir-search{background:#172236;border-color:#334357}
html[data-theme="dark"] .fx-directory .fx-dir-search input{color:#e8eff9}
html[data-theme="dark"] .fx-directory .fx-dir-search input::placeholder{color:#91a1b7}
html[data-theme="dark"] .fx-directory .fx-feature-card,html[data-theme="dark"] .fx-directory .fx-dir-card,
html[data-theme="dark"] .fx-page .fx-case,html[data-theme="dark"] .fx-page .fx-benefit,
html[data-theme="dark"] .fx-page .fx-faq-list details{background:#172236;border-color:#334357}
html[data-theme="dark"] .fx-page .fx-demo-warning{background:#1b2a3b;color:#b8c7d9}
html[data-theme="dark"] .fx-page .fx-bottom,html[data-theme="dark"] .fx-page .fx-prompt-guide{background:#142033}

/* A single borderless settings row. Native summary handles clicks anywhere. */
.fx-page .t67-iwb-host .fx-more-settings{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;overflow:visible!important;margin:6px 0 0}
.fx-page .t67-iwb-host .fx-more-settings>summary{display:block!important;box-sizing:border-box;width:100%;min-height:36px;padding:9px 0!important;margin:0;text-align:left;cursor:pointer!important;list-style:none!important;font-size:12px;color:var(--iwb-muted);background:transparent!important}
.fx-page .t67-iwb-host .fx-more-settings>summary::-webkit-details-marker{display:none!important}
.fx-page .t67-iwb-host .fx-more-settings>summary::marker{content:''}
.fx-page .t67-iwb-host .fx-more-settings>summary::before,
.fx-page .t67-iwb-host .fx-more-settings>summary::after{content:none!important;display:none!important}
.fx-page .t67-iwb-host .fx-more-settings>summary:hover{color:var(--iwb-text)}
.fx-page .t67-iwb-host .fx-more-settings>summary:focus-visible{outline:2px solid var(--fx-accent);outline-offset:2px;border-radius:4px}
.fx-page .t67-iwb-host .fx-more-settings .t67-iwb-settings-body{padding:8px 0 2px!important;border:0!important;background:transparent!important;gap:9px}
.fx-page .t67-iwb-host .t67-iwb-ref-toggle-row{justify-content:flex-start;margin-left:0}
.fx-page .t67-iwb-host .t67-iwb-ref-toggle{font-size:12px;text-align:left;padding:7px 0;color:var(--iwb-muted)}
.fx-page .t67-iwb-host .fx-more-settings .t67-iwb-field{gap:0}

/* Source thumbnails are always four square tiles per row, including Add. */
.fx-page .t67-iwb-host #iwbPreviewHolder{background:transparent;border:0;padding:0;overflow:visible}
.fx-page .t67-iwb-host #iwbPreviewHolder .t67-iwb-source-gallery[data-count]{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;align-items:stretch}
.fx-page .t67-iwb-host #iwbPreviewHolder .t67-iwb-source-gallery[data-count] .ve-preview-card{grid-column:auto!important;grid-row:auto!important;aspect-ratio:1/1!important;min-width:0;min-height:0;max-height:none!important}
.fx-page .t67-iwb-host #iwbPreviewHolder .t67-iwb-source-gallery[data-count] .ve-preview-media{aspect-ratio:1/1!important;min-height:0!important;max-height:none!important;width:100%;height:100%;padding:0!important}
.fx-page .t67-iwb-host #iwbPreviewHolder .t67-iwb-source-gallery[data-count] .ve-preview-media img{display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;margin:0!important}
.fx-page .t67-iwb-host #iwbSourceDrop.fx-add-source-tile{grid-column:auto!important;aspect-ratio:1/1!important;min-height:0!important;width:100%;height:auto!important;padding:5px!important;border:1px dashed var(--iwb-line);border-radius:9px;background:var(--iwb-soft)}
.fx-page .t67-iwb-host #iwbSourceDrop.fx-add-source-tile[hidden]{display:none!important}
.fx-page .t67-iwb-host #iwbSourceDrop.fx-add-source-tile .t67-iwb-drop-inner{gap:3px;min-width:0}
.fx-page .t67-iwb-host #iwbSourceDrop.fx-add-source-tile .t67-iwb-drop-inner b{font-size:10px;font-weight:700;white-space:nowrap}
.fx-page .t67-iwb-host #iwbSourceDrop.fx-add-source-tile .t67-iwb-drop-inner span{font-size:9px}
.fx-page .t67-iwb-host .fx-add-source-symbol{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:var(--iwb-card);border:1px solid var(--iwb-line);font-size:22px!important;line-height:1;color:var(--iwb-text)}
.fx-page .t67-iwb-host.is-focus-results #iwbPreviewHolder{max-height:none!important;overflow:visible!important}
.fx-page .t67-iwb-host.is-focus-results #iwbPreviewHolder .t67-iwb-source-gallery[data-count] .ve-preview-media{aspect-ratio:1/1!important;min-height:0!important;max-height:none!important}
.fx-page .t67-iwb-host #iwbResultHolder .t67-iwb-result-gallery{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px}
.fx-page .t67-iwb-host #iwbResultHolder .t67-iwb-result-gallery .ve-result-card{grid-column:auto!important;aspect-ratio:1/1}
.fx-page .t67-iwb-host #iwbResultHolder .t67-iwb-result-gallery .ve-result-media{aspect-ratio:1/1!important;min-height:0!important;max-height:none!important;padding:0!important}
.fx-page .t67-iwb-host #iwbResultHolder .t67-iwb-result-gallery .ve-result-media img{width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important}
html[data-theme="dark"] .fx-page .t67-iwb-host #iwbSourceDrop.fx-add-source-tile{background:#121d2b}
html[data-theme="dark"] .fx-page .t67-iwb-host .fx-add-source-symbol{background:#263448;border-color:#45556b;color:#fff}
@media(max-width:420px){.fx-page .t67-iwb-host #iwbPreviewHolder .t67-iwb-source-gallery[data-count],.fx-page .t67-iwb-host #iwbResultHolder .t67-iwb-result-gallery{gap:5px!important}.fx-page .t67-iwb-host #iwbSourceDrop.fx-add-source-tile .t67-iwb-drop-inner b{font-size:9px}}

/* design-effects.css */
/* Tool67 visual showcase v7: all rules scoped to design pages. */
.fx-page .fx-showcase{--showcase-rim:color-mix(in srgb,var(--fx-accent) 17%,transparent);position:relative}
.fx-page .fx-showcase .fx-head{max-width:980px}
.fx-page .fx-gallery{gap:19px;align-items:stretch}
.fx-page .fx-curated-gallery .fx-case{position:relative;display:flex;flex-direction:column;border-radius:20px;overflow:hidden;background:var(--fx-surface);border:1px solid var(--fx-border);box-shadow:0 10px 35px rgba(13,28,51,.04)}
.fx-page .fx-curated-gallery .fx-case:hover{box-shadow:0 18px 45px rgba(14,24,52,.13)}
.fx-page .fx-curated-gallery .fx-case-copy{padding:16px 18px 17px;flex:1}
.fx-page .fx-curated-gallery .fx-case-copy>span{font-size:10px;letter-spacing:.13em;color:var(--fx-accent)}
.fx-page .fx-curated-gallery .fx-case-copy h3{color:var(--fx-text,var(--fx-ink));font-size:17px;line-height:1.28;letter-spacing:-.018em;margin:8px 0 9px}
.fx-page .fx-curated-gallery .fx-case-copy p{margin:0 0 14px;min-height:0;line-height:1.55;font-size:12px;color:var(--fx-muted,#667488)}
.fx-page .fx-curated-gallery .fx-copy{margin-top:auto;min-height:34px;border-radius:9px}
.fx-page .fx-curated-gallery .fx-pair{--fx-reveal:50%;--fx-x:50%;--fx-y:50%;position:relative;display:block;isolation:isolate;overflow:hidden;aspect-ratio:var(--fx-single-aspect,1.22);height:auto;cursor:pointer;background:linear-gradient(130deg,#0f1625,#2b3450);border-radius:0}
.fx-page .fx-curated-gallery .fx-pair figure{position:absolute;inset:0;margin:0;width:100%;height:100%;overflow:hidden;transition:opacity .32s ease,transform .38s cubic-bezier(.2,.8,.2,1),clip-path .1s}
.fx-page .fx-curated-gallery .fx-pair .fx-before{z-index:1}
.fx-page .fx-curated-gallery .fx-pair .fx-after{z-index:2}
.fx-page .fx-curated-gallery .fx-pair figure img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;object-position:center;background:transparent}
.fx-page .fx-curated-gallery .fx-pair figcaption{position:absolute;bottom:10px;left:10px;z-index:3;border:1px solid rgba(255,255,255,.23);font-family:inherit;font-size:10px;letter-spacing:.12em;text-transform:uppercase;background:rgba(8,12,21,.76);color:#fff;padding:6px 10px;border-radius:8px;pointer-events:none}
.fx-page .fx-curated-gallery .fx-pair .fx-after figcaption{left:auto;right:10px}
.fx-page .fx-curated-gallery .fx-pair:focus-within{outline:3px solid var(--fx-accent);outline-offset:-3px}
.fx-page .fx-curated-gallery .fx-visual-toggle{position:absolute;z-index:10;border:1px solid rgba(255,255,255,.4);border-radius:30px;padding:7px 12px;background:rgba(16,24,39,.84);color:white;font-size:11px;font-family:inherit;font-weight:700;cursor:pointer;backdrop-filter:blur(6px)}
.fx-page .fx-curated-gallery .fx-visual-toggle{top:11px;right:11px}
.fx-page .fx-curated-gallery .fx-inset-hit{position:absolute;inset:0;z-index:10;width:100%;height:100%;margin:0;padding:0;border:0;background:transparent;cursor:zoom-in}
.fx-page .fx-curated-gallery .fx-inset-hit:focus-visible{outline:2px solid white;outline-offset:-4px}
.fx-page .fx-curated-gallery .fx-inset-hit[aria-pressed=true]{cursor:zoom-out}
.fx-page .fx-curated-gallery .fx-mode-hint{position:absolute;z-index:5;top:12px;left:12px;padding:6px 10px;border-radius:8px;background:rgba(8,12,21,.64);color:white;font-size:10px;letter-spacing:.04em;pointer-events:none}
.fx-page .fx-curated-gallery .fx-pair[data-mode=split]{display:grid;grid-template-columns:1fr 1fr;aspect-ratio:var(--fx-split-aspect,1.5);gap:3px;background:var(--fx-border)}
.fx-page .fx-curated-gallery .fx-pair[data-mode=split] figure{position:relative;width:100%;height:100%;background:#151b29}
.fx-page .fx-curated-gallery .fx-pair[data-mode=slider] .fx-after{clip-path:inset(0 calc(100% - var(--fx-reveal)) 0 0)}
.fx-page .fx-curated-gallery .fx-pair[data-mode=curtain] .fx-after{clip-path:inset(0 0 calc(100% - var(--fx-reveal)) 0)}
.fx-page .fx-curated-gallery .fx-swipe-control{position:absolute;z-index:9;inset:0;width:100%;height:100%;cursor:ew-resize;opacity:0;appearance:none}
.fx-page .fx-curated-gallery .fx-pair[data-mode=curtain] .fx-swipe-control{cursor:ns-resize}
.fx-page .fx-curated-gallery .fx-reveal-line{position:absolute;z-index:8;top:0;bottom:0;left:var(--fx-reveal);width:3px;background:#fff;box-shadow:0 1px 18px rgba(0,0,0,.65);pointer-events:none}
.fx-page .fx-curated-gallery .fx-reveal-line:before{content:'↔';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:32px;height:32px;border-radius:50%;color:#172137;background:#fff;font-size:18px;box-shadow:0 3px 18px rgba(0,0,0,.4)}
.fx-page .fx-curated-gallery .fx-pair[data-mode=curtain] .fx-reveal-line{left:0;right:0;top:var(--fx-reveal);bottom:auto;width:100%;height:3px}
.fx-page .fx-curated-gallery .fx-pair[data-mode=curtain] .fx-reveal-line:before{content:'↕'}
.fx-page .fx-curated-gallery .fx-pair[data-mode=hover] .fx-after,.fx-page .fx-curated-gallery .fx-pair[data-mode=flip] .fx-after{opacity:0}
.fx-page .fx-curated-gallery .fx-pair[data-mode=hover]:hover .fx-after,.fx-page .fx-curated-gallery .fx-pair[data-mode=hover].is-revealed .fx-after,.fx-page .fx-curated-gallery .fx-pair[data-mode=flip]:hover .fx-after,.fx-page .fx-curated-gallery .fx-pair[data-mode=flip].is-revealed .fx-after{opacity:1}
.fx-page .fx-curated-gallery .fx-pair[data-mode=flip] figure{transition:transform .65s ease,opacity .35s;backface-visibility:hidden}
.fx-page .fx-curated-gallery .fx-pair[data-mode=flip] .fx-after{transform:perspective(850px) rotateY(-8deg) scale(.975)}
.fx-page .fx-curated-gallery .fx-pair[data-mode=flip]:hover .fx-after,.fx-page .fx-curated-gallery .fx-pair[data-mode=flip].is-revealed .fx-after{transform:perspective(850px) rotateY(0) scale(1)}
.fx-page .fx-curated-gallery .fx-pair[data-mode=inset] .fx-after,.fx-page .fx-curated-gallery .fx-pair[data-mode=stack] .fx-after{z-index:1}
.fx-page .fx-curated-gallery .fx-pair[data-mode=inset] .fx-before,.fx-page .fx-curated-gallery .fx-pair[data-mode=stack] .fx-before{z-index:6;inset:auto auto 13px 13px;width:33%;height:44%;border-radius:11px;overflow:hidden;border:3px solid #fff;box-shadow:0 12px 30px rgba(0,0,0,.5);transition:width .34s ease,height .34s ease,transform .34s ease}
.fx-page .fx-curated-gallery .fx-pair[data-mode=inset] .fx-before:hover,.fx-page .fx-curated-gallery .fx-pair[data-mode=inset].is-revealed .fx-before{width:75%;height:86%;transform:translate(0,-2px)}
.fx-page .fx-curated-gallery .fx-pair[data-mode=stack] .fx-before{transform:rotate(-8deg);left:20px;bottom:20px;width:37%;height:50%}
.fx-page .fx-curated-gallery .fx-pair[data-mode=stack]:hover .fx-before,.fx-page .fx-curated-gallery .fx-pair[data-mode=stack].is-revealed .fx-before{transform:rotate(0) scale(1.16);transform-origin:bottom left}
.fx-page .fx-curated-gallery .fx-pair[data-mode=inset] .fx-before figcaption,.fx-page .fx-curated-gallery .fx-pair[data-mode=stack] .fx-before figcaption{font-size:9px;padding:5px 7px;left:5px;bottom:5px}
.fx-page .fx-curated-gallery .fx-pair[data-mode=spotlight] .fx-after{clip-path:circle(28% at var(--fx-x) var(--fx-y))}
.fx-page .fx-curated-gallery .fx-pair[data-mode=spotlight]:hover .fx-after{clip-path:circle(33% at var(--fx-x) var(--fx-y))}
.fx-page .fx-curated-gallery .fx-pair[data-mode=spotlight].is-revealed .fx-after{clip-path:circle(120% at 50% 50%)}
.fx-page .fx-case-ref{border-top:1px solid var(--fx-border);padding:10px 16px;display:flex;align-items:center;gap:9px;background:color-mix(in srgb,var(--fx-surface) 87%,var(--fx-accent))}
.fx-page .fx-ref-button{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;color:var(--fx-ink);text-align:left;font-size:11px;font-family:inherit;font-weight:700;cursor:pointer}
.fx-page .fx-ref-button img{width:45px;height:45px;object-fit:cover;border-radius:7px;border:1px solid var(--fx-border)}
.fx-page .fx-ref-button span{line-height:1.5}
.fx-page .fx-ref-button small{display:block;font-size:10px;opacity:.65;font-weight:400}
.fx-page .fx-gallery[data-grid=editorial] .fx-case:first-child{grid-column:span 2;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}
.fx-page .fx-gallery[data-grid=editorial] .fx-case:first-child .fx-pair{height:100%;aspect-ratio:auto;min-height:290px}
.fx-page .fx-gallery[data-grid=editorial] .fx-case:first-child .fx-case-copy{align-self:center}
.fx-page .fx-gallery[data-grid=duo]{grid-template-columns:repeat(2,minmax(0,1fr))}
.fx-page .fx-gallery[data-grid=duo] .fx-case-copy{padding:21px}
.fx-page .fx-gallery[data-grid=feature] .fx-case:first-child{grid-column:span 3;display:grid;grid-template-columns:minmax(0,1.7fr) minmax(250px,1fr)}
.fx-page .fx-gallery[data-grid=feature] .fx-case:first-child .fx-pair{height:100%;aspect-ratio:auto;min-height:330px}
.fx-page .fx-gallery[data-grid=feature] .fx-case:first-child .fx-case-copy{align-self:center;padding:28px}
.fx-page .fx-gallery[data-grid=feature] .fx-case:first-child .fx-case-copy h3{font-size:25px}
.fx-page .fx-gallery[data-grid=rail]{display:flex;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;padding:4px 4px 18px;scrollbar-width:thin}
.fx-page .fx-gallery[data-grid=rail] .fx-case{flex:0 0 clamp(280px,31%,430px);scroll-snap-align:start}
.fx-page .fx-ref-dialog{background:var(--fx-surface);border:1px solid var(--fx-border);color:var(--fx-ink);border-radius:18px;padding:18px;max-width:min(570px,calc(100vw - 32px));box-shadow:0 18px 80px rgba(0,0,0,.55)}
.fx-page .fx-ref-dialog::backdrop{background:rgba(5,10,22,.8);backdrop-filter:blur(5px)}
.fx-page .fx-ref-dialog img{display:block;width:100%;max-height:72vh;object-fit:contain}
.fx-page .fx-ref-dialog button{margin-bottom:12px;border:1px solid var(--fx-border);border-radius:9px;padding:8px 14px;background:var(--fx-surface);color:var(--fx-ink);cursor:pointer}
html[data-theme=dark] .fx-page .fx-curated-gallery .fx-case,body.dark .fx-page .fx-curated-gallery .fx-case{background:var(--fx-surface);border-color:var(--fx-border)}
html[data-theme=dark] .fx-page .fx-curated-gallery .fx-case-copy h3,body.dark .fx-page .fx-curated-gallery .fx-case-copy h3{color:#edf3ff}
html[data-theme=dark] .fx-page .fx-curated-gallery .fx-case-copy p,body.dark .fx-page .fx-curated-gallery .fx-case-copy p{color:#aab8cb}
html[data-theme=dark] .fx-page .fx-ref-button,body.dark .fx-page .fx-ref-button{color:#eaf2ff}
@media(max-width:1100px){.fx-page .fx-gallery[data-grid=editorial] .fx-case:first-child,.fx-page .fx-gallery[data-grid=feature] .fx-case:first-child{grid-column:span 2}}
@media(max-width:760px){
.fx-page .fx-gallery[data-grid=editorial],.fx-page .fx-gallery[data-grid=duo],.fx-page .fx-gallery[data-grid=feature]{grid-template-columns:repeat(2,minmax(0,1fr))}
.fx-page .fx-gallery[data-grid=editorial] .fx-case:first-child,.fx-page .fx-gallery[data-grid=feature] .fx-case:first-child{display:flex;grid-column:span 2}
.fx-page .fx-gallery[data-grid=editorial] .fx-case:first-child .fx-pair,.fx-page .fx-gallery[data-grid=feature] .fx-case:first-child .fx-pair{min-height:0;aspect-ratio:4 / 3}
.fx-page .fx-gallery[data-grid=rail] .fx-case{flex-basis:76vw}
.fx-page .fx-curated-gallery .fx-case-copy{padding:12px}
.fx-page .fx-curated-gallery .fx-case-copy h3{font-size:14px}
.fx-page .fx-curated-gallery .fx-case-copy p{font-size:11px}
.fx-page .fx-curated-gallery .fx-pair figcaption{font-size:8px;padding:4px 6px;bottom:5px;left:5px}
.fx-page .fx-curated-gallery .fx-pair .fx-after figcaption{right:5px}
.fx-page .fx-curated-gallery .fx-visual-toggle{font-size:10px;padding:6px 8px}
}
@media(max-width:520px){.fx-page .fx-gallery[data-grid=gallery],.fx-page .fx-gallery[data-grid=editorial],.fx-page .fx-gallery[data-grid=duo],.fx-page .fx-gallery[data-grid=feature]{grid-template-columns:1fr}.fx-page .fx-gallery[data-grid=editorial] .fx-case:first-child,.fx-page .fx-gallery[data-grid=feature] .fx-case:first-child{grid-column:span 1}.fx-page .fx-curated-gallery .fx-pair{--fx-single-aspect:1.333333}.fx-page .fx-gallery[data-grid=rail] .fx-case{flex-basis:85vw}}
@media(prefers-reduced-motion:reduce){.fx-page .fx-curated-gallery .fx-pair figure,.fx-page .fx-curated-gallery .fx-case{transition:none!important}}

/* Six curated studies use one interaction mode per feature page. */
.fx-page .fx-curated-gallery[data-grid=gallery]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;overflow:visible;scroll-snap-type:none}
.fx-page .fx-curated-gallery .fx-pair{background:#111a29}
.fx-page .fx-curated-gallery .fx-pair figure img{object-fit:cover;object-position:center}
.fx-page .fx-curated-gallery .fx-pair[data-mode=inset] .fx-before{width:24%;height:32%;left:12px;bottom:12px;right:auto;top:auto;border-radius:10px}
.fx-page .fx-curated-gallery .fx-pair[data-mode=stack] .fx-before{width:26%;height:36%;left:15px;bottom:16px;right:auto;top:auto;border-radius:10px}
.fx-page .fx-curated-gallery .fx-pair[data-mode=inset] .fx-before img,
.fx-page .fx-curated-gallery .fx-pair[data-mode=stack] .fx-before img{object-fit:cover;width:100%;height:100%;background:none}
.fx-page .fx-curated-gallery .fx-pair[data-mode=inset] .fx-before:hover,
.fx-page .fx-curated-gallery .fx-pair[data-mode=inset].is-revealed .fx-before{width:72%;height:83%}
.fx-page .fx-curated-gallery .fx-pair[data-mode=stack] .fx-before:hover,
.fx-page .fx-curated-gallery .fx-pair[data-mode=stack].is-revealed .fx-before{width:49%;height:63%}
/* Context-rich related tools, rather than dense text links. */
.fx-page .fx-related .fx-related-tiles{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;
  align-items:stretch;margin:16px 0 25px;
}
.fx-page .fx-related .fx-related-card{
  display:flex;flex-direction:column;gap:0;min-width:0;padding:0;overflow:hidden;
  border-radius:16px;background:var(--fx-surface,#fff);border:1px solid var(--fx-border,#dce4ed);
  color:var(--fx-text,var(--fx-ink));text-decoration:none;
  box-shadow:0 8px 26px rgba(12,30,54,.07);transition:transform .25s,box-shadow .25s,border-color .25s;
}
.fx-page .fx-related .fx-related-card:hover{transform:translateY(-4px);box-shadow:0 18px 42px rgba(10,27,53,.18);border-color:var(--fx-accent)}
.fx-page .fx-related .fx-related-media{display:block;overflow:hidden;position:relative;aspect-ratio:4 / 3;background:#172135}
.fx-page .fx-related .fx-related-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .4s}
.fx-page .fx-related .fx-related-card:hover .fx-related-media img{transform:scale(1.06)}
.fx-page .fx-related .fx-related-title{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 13px;font:700 13px/1.35 var(--t67-font-ui)}
.fx-page .fx-related .fx-related-title::after{content:"↗";color:var(--fx-accent);font-size:16px}
html[data-theme=dark] .fx-page .fx-related .fx-related-card,body.dark .fx-page .fx-related .fx-related-card{background:#182538;border-color:#35475f;color:#eef3fb}
@media(max-width:900px){.fx-page .fx-curated-gallery[data-grid=gallery]{grid-template-columns:repeat(2,minmax(0,1fr))}.fx-page .fx-related .fx-related-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.fx-page .fx-curated-gallery[data-grid=gallery]{grid-template-columns:1fr;gap:15px}.fx-page .fx-related .fx-related-tiles{gap:10px}.fx-page .fx-related .fx-related-title{font-size:11px;padding:9px}}
@media(prefers-reduced-motion:reduce){
  .fx-page .fx-related .fx-related-card,.fx-page .fx-related .fx-related-media img{transition:none}
}

/* A single, uncluttered 4:3 canvas. The existing six-case gallery is the
   image source; no second six-case list or third-party slider is needed. */
.fx-page .fx-hero-visual[data-hero-variant="radar-carousel"] {
  padding:0; border:0; background:none; box-shadow:none; overflow:visible;
}
.fx-page .fx-hero-visual .fx-hero-carousel {
  position:relative; display:block; width:100%; height:auto; margin:0;
  aspect-ratio:4 / 3; overflow:hidden; isolation:isolate; border-radius:18px;
  background:#101827; border:1px solid rgba(146,177,236,.24);
  box-shadow:0 20px 52px rgba(10,24,50,.22);
}
.fx-page .fx-hero-carousel figure,
.fx-page .fx-hero-carousel figure.fx-before,
.fx-page .fx-hero-carousel figure.fx-after {
  position:absolute; inset:0; display:block; margin:0; width:100%; height:100%;
  overflow:hidden; border:0; border-radius:0; box-shadow:none; opacity:1;
  transform:none; transition:none;
}
.fx-page .fx-hero-carousel figure.fx-before {z-index:1}
.fx-page .fx-hero-carousel figure.fx-after {z-index:2; clip-path:inset(0 100% 0 0)}
.fx-page .fx-hero-carousel figure img {
  display:block; width:100%; height:100%; object-fit:cover;
  object-position:center center; background:none;
}
/* Portrait photographs start roughly 10% down the source, rather than at
   the very top; landscape originals stay centered. */
.fx-page .fx-hero-carousel.fx-is-portrait figure img {object-position:center 22%}
.fx-page .fx-hero-carousel .fx-radar-beam {
  position:absolute; z-index:4; top:0; bottom:0; left:0; width:2px;
  background:linear-gradient(180deg,transparent,#a6eaff 15%,#fff 50%,#72e0ff 85%,transparent);
  box-shadow:0 0 8px #c2f5ff,0 0 24px rgba(44,183,255,.8);
  pointer-events:none;
}
.fx-page .fx-hero-carousel .fx-radar-beam::before {
  content:""; position:absolute; top:0; bottom:0; right:0; width:38px;
  background:linear-gradient(90deg,transparent,rgba(74,190,255,.16));
}
.fx-page .fx-hero-carousel.fx-is-playing figure.fx-after {
  animation:fxHeroRevealV10 7.3s ease-in-out both;
}
.fx-page .fx-hero-carousel.fx-is-playing .fx-radar-beam {
  animation:fxHeroBeamV10 7.3s ease-in-out both;
}
@keyframes fxHeroRevealV10 {
  0%,5%,94%,100%{clip-path:inset(0 100% 0 0)}
  44%,58%{clip-path:inset(0 0 0 0)}
}
@keyframes fxHeroBeamV10 {0%,5%,94%,100%{left:0}44%,58%{left:100%}}
.fx-page .fx-hero-carousel .fx-hero-wash {
  position:absolute; inset:0; z-index:7; background:#101827; opacity:0;
  pointer-events:none; transition:opacity .23s ease;
}
.fx-page .fx-hero-carousel.fx-is-changing .fx-hero-wash {opacity:.94}
.fx-page .fx-hero-carousel .fx-hero-dots {
  position:absolute; z-index:8; right:15px; bottom:13px;
  display:flex; align-items:center; gap:6px; pointer-events:none;
}
.fx-page .fx-hero-carousel .fx-hero-dots i {
  display:block; width:5px; height:5px; border-radius:99px;
  background:rgba(255,255,255,.58); box-shadow:0 1px 5px rgba(0,0,0,.38);
  transition:background .2s,width .2s;
}
.fx-page .fx-hero-carousel .fx-hero-dots i.is-active {width:17px;background:#fff}
.fx-page .fx-hero-carousel:hover.fx-is-playing figure.fx-after,
.fx-page .fx-hero-carousel:hover.fx-is-playing .fx-radar-beam {
  animation-play-state:paused;
}
@media(prefers-reduced-motion:reduce){
  .fx-page .fx-hero-carousel.fx-is-playing figure.fx-after {
    animation:none; clip-path:inset(0 50% 0 0);
  }
  .fx-page .fx-hero-carousel.fx-is-playing .fx-radar-beam {
    animation:none; left:50%;
  }
  .fx-page .fx-hero-carousel .fx-hero-wash,
  .fx-page .fx-hero-carousel .fx-hero-dots i {transition:none}
}

/* Compact, even-weight links immediately after the source image tiles. */
.fx-page .t67-iwb-host .t67-iwb-ref-toggle-row.fx-samples-row {
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  flex-wrap:wrap;gap:8px 12px;margin:4px 0 0!important;padding:0!important;
  min-height:26px;border:0!important;background:transparent!important;
}
.fx-page .t67-iwb-host .fx-samples-row .fx-samples-toggle,
.fx-page .t67-iwb-host .fx-samples-row #iwbRefToggle {
  width:auto;min-height:0!important;height:auto;margin:0;padding:3px 0!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;color:var(--iwb-text,#4c6381)!important;
  font-family:inherit!important;font-size:14px!important;font-weight:400!important;
  line-height:1.45!important;letter-spacing:0!important;
  text-transform:none!important;text-decoration:none;cursor:pointer;
}
.fx-page .t67-iwb-host .fx-samples-row #iwbRefToggle {margin-left:auto!important;text-align:right}
.fx-page .t67-iwb-host .fx-samples-row :is(.fx-samples-toggle,#iwbRefToggle):hover {
  color:var(--fx-accent,#5866de)!important;text-decoration:underline;
}
.fx-page .t67-iwb-host .fx-samples-row :is(.fx-samples-toggle,#iwbRefToggle):focus-visible,
.fx-page .t67-iwb-host .fx-samples-grid button:focus-visible {
  outline:2px solid var(--fx-accent,#5866de);outline-offset:3px;
}
.fx-page .t67-iwb-host .fx-samples-panel {margin:1px 0 2px;padding:0;min-width:0}
.fx-page .t67-iwb-host .fx-samples-panel[hidden] {display:none!important}
.fx-page .t67-iwb-host .fx-samples-grid {
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;
}
.fx-page .t67-iwb-host .fx-samples-grid button {
  position:relative;display:block;aspect-ratio:1 / 1;min-width:0;width:100%;
  margin:0;padding:0;border:1px solid var(--iwb-line,#dbe2ef);border-radius:9px;
  overflow:hidden;background:var(--iwb-card,#f6f7fa);box-shadow:none;
  cursor:pointer;transition:border-color .18s,box-shadow .18s,transform .18s;
}
.fx-page .t67-iwb-host .fx-samples-grid button:hover {
  transform:translateY(-2px);border-color:var(--fx-accent,#7866ef);
  box-shadow:0 5px 13px rgba(32,47,81,.17);
}
.fx-page .t67-iwb-host .fx-samples-grid button:disabled {cursor:wait;opacity:.64}
.fx-page .t67-iwb-host .fx-samples-grid img {
  display:block;width:100%;height:100%;object-fit:cover;object-position:center 22%;
}
.fx-page .t67-iwb-host .fx-samples-grid button.is-loading::after {
  content:'';position:absolute;top:calc(50% - 8px);left:calc(50% - 8px);
  width:16px;height:16px;border:2px solid rgba(255,255,255,.65);
  border-top-color:#6170ec;border-radius:50%;animation:fxSampleSpinV11 .7s linear infinite;
}
@keyframes fxSampleSpinV11 {to{transform:rotate(360deg)}}
/* Match '+ More Setting' to the two links and keep the whole summary clickable. */
.fx-page .t67-iwb-host .t67-iwb-settings {
  margin:0!important;padding:0!important;border:0!important;
  border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
.fx-page .t67-iwb-host .t67-iwb-settings > summary {
  display:flex!important;align-items:center!important;width:100%;min-height:0!important;
  padding:4px 0!important;margin:0!important;gap:0!important;
  font-size:14px!important;font-weight:400!important;line-height:1.45!important;
  letter-spacing:0!important;color:var(--iwb-text,#4c6381)!important;
  list-style:none!important;cursor:pointer;
}
.fx-page .t67-iwb-host .t67-iwb-settings > summary::-webkit-details-marker {display:none!important}
.fx-page .t67-iwb-host .t67-iwb-settings > summary::before,
.fx-page .t67-iwb-host .t67-iwb-settings > summary::after {display:none!important;content:none!important}
.fx-page .t67-iwb-host .t67-iwb-settings > summary:hover {color:var(--fx-accent,#5866de)!important}
.fx-page .t67-iwb-host .t67-iwb-settings-body {border:0!important;padding-top:6px!important}
html[data-theme="dark"] .fx-page .t67-iwb-host .fx-samples-row :is(.fx-samples-toggle,#iwbRefToggle),
html[data-theme="dark"] .fx-page .t67-iwb-host .t67-iwb-settings > summary,
body.dark .fx-page .t67-iwb-host .fx-samples-row :is(.fx-samples-toggle,#iwbRefToggle),
body.dark .fx-page .t67-iwb-host .t67-iwb-settings > summary {color:#d5deee!important}
@media(max-width:470px){.fx-page .t67-iwb-host .fx-samples-grid {gap:5px}}
@media(prefers-reduced-motion:reduce){
  .fx-page .t67-iwb-host .fx-samples-grid button {transition:none}
  .fx-page .t67-iwb-host .fx-samples-grid button.is-loading::after {animation:none}
}

/* The idle upload area needs a distinct fill, not an almost-white backdrop. */
.fx-page .t67-iwb-host:not(.has-source-images) #iwbSourceDrop.t67-iwb-drop-main {
  background:#e8ecf8!important;
  border-color:#a59aef!important;
}
.fx-page .t67-iwb-host:not(.has-source-images) #iwbSourceDrop:is(:hover,.drag) {
  background:#dfe5f8!important;
  border-color:#8272e7!important;
}
/* After an image is selected, the existing upload zone is reused as the
   last square in the grid. Preserve its native input and drag/drop handlers. */
.fx-page .t67-iwb-host.has-source-images #iwbSourceDrop {
  background:#e2e8f5!important;
  border:1px dashed #a9b4d3!important;
}
.fx-page .t67-iwb-host.has-source-images #iwbSourceDrop:is(:hover,.drag) {
  background:#d8e0f3!important;
  border-color:#8272e7!important;
}
.fx-page .t67-iwb-host.has-source-images #iwbSourceDrop .t67-iwb-drop-inner {
  display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;gap:6px!important;
}
/* A built-in SVG glyph is always available even when the legacy mini-tile
   theme omits its icon; do not add extra DOM or duplicate the SVG. */
.fx-page .t67-iwb-host.has-source-images #iwbSourceDrop .t67-iwb-drop-icon {
  display:none!important;
}
.fx-page .t67-iwb-host.has-source-images #iwbSourceDrop .t67-iwb-drop-inner::before {
  content:'';display:block;flex:none;width:26px;height:26px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%236853cf' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V3m0 0-4 4m4-4 4 4M4 14v4a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3v-4'/%3E%3C/svg%3E");
  background-position:center;background-repeat:no-repeat;background-size:contain;
}
.fx-page .t67-iwb-host.has-source-images #iwbSourceDrop .t67-iwb-drop-inner::after {
  color:#5b4aaa!important;font-size:11px!important;font-weight:500!important;
}
/* Keep intentional dark surfaces and icon contrast under the site's toggle. */
html[data-theme="dark"] .fx-page .t67-iwb-host:not(.has-source-images) #iwbSourceDrop,
body.dark .fx-page .t67-iwb-host:not(.has-source-images) #iwbSourceDrop {
  background:#242b40!important;border-color:#7066a7!important;
}
html[data-theme="dark"] .fx-page .t67-iwb-host.has-source-images #iwbSourceDrop,
body.dark .fx-page .t67-iwb-host.has-source-images #iwbSourceDrop {
  background:#283046!important;border-color:#687397!important;
}
html[data-theme="dark"] .fx-page .t67-iwb-host.has-source-images #iwbSourceDrop:is(:hover,.drag),
body.dark .fx-page .t67-iwb-host.has-source-images #iwbSourceDrop:is(:hover,.drag) {
  background:#313b55!important;border-color:#ac9cf5!important;
}
html[data-theme="dark"] .fx-page .t67-iwb-host.has-source-images #iwbSourceDrop .t67-iwb-drop-inner::before,
body.dark .fx-page .t67-iwb-host.has-source-images #iwbSourceDrop .t67-iwb-drop-inner::before {
  filter:brightness(1.65);
}
html[data-theme="dark"] .fx-page .t67-iwb-host.has-source-images #iwbSourceDrop .t67-iwb-drop-inner::after,
body.dark .fx-page .t67-iwb-host.has-source-images #iwbSourceDrop .t67-iwb-drop-inner::after {
  color:#d2c4ff!important;
}
@media(max-width:600px){
  .fx-page .t67-iwb-host.has-source-images #iwbSourceDrop .t67-iwb-drop-inner::before {
    width:21px;height:21px;
  }
}

/* Related tools share one consistent before/after visual, with no carousel. */
.fx-page .fx-related .fx-related-tiles{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.fx-page .fx-related .fx-related-media{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:#e9edf4}
.fx-page .fx-related .fx-related-media img.fx-related-after,
.fx-page .fx-related .fx-related-media img.fx-related-before{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center 23%;transition:opacity .28s ease,transform .4s ease}
.fx-page .fx-related .fx-related-media img.fx-related-after{z-index:1;opacity:1}
.fx-page .fx-related .fx-related-media img.fx-related-before{z-index:2;opacity:0}
.fx-page .fx-related .fx-related-card:hover img.fx-related-before,
.fx-page .fx-related .fx-related-card:focus-visible img.fx-related-before{opacity:1}
.fx-page .fx-related .fx-related-card:hover img.fx-related-after,
.fx-page .fx-related .fx-related-card:focus-visible img.fx-related-after{opacity:0}
@media(max-width:1100px){.fx-page .fx-related .fx-related-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.fx-page .fx-related .fx-related-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media(hover:none){.fx-page .fx-related .fx-related-card:hover img.fx-related-before{opacity:0}.fx-page .fx-related .fx-related-card:hover img.fx-related-after{opacity:1}}

/* Design tools use the directory's UI font, including editor controls. */
body.fx-page,
.fx-page.fx-family-editorial .fx-hero h1,
.fx-page .t67-ict-toast,
.fx-page .t67-ict-action,
.fx-page .t67-ict-edit-toolbar button,
.fx-page .t67-ict-edit-size,
.fx-page .t67-ict-edit-color{font-family:var(--t67-font-ui)}
