/* Tool67 image tools unified polish — round 6 */
.t67-credit-compact,
[id*="credit" i].t67-credit-compact,
[class*="credit" i].t67-credit-compact{font-size:10px!important;line-height:1.2!important;font-weight:400!important;letter-spacing:0!important;opacity:.72!important}
.t67-credit-compact strong,.t67-credit-compact b{font:inherit!important;font-weight:400!important}
#modelInfo,#t67RouterNote,#t67WfNote,.brief-model-info{display:none!important}

/* More Settings: deliberately compact, one border only. */
.t67-unified-options,.t67-option-drawer{margin:8px 0 10px!important;border:1px solid rgba(127,127,127,.20)!important;border-radius:8px!important;background:transparent!important;box-shadow:none!important}
.t67-unified-options summary,.t67-option-drawer summary{min-height:30px!important;padding:6px 9px!important;font-size:11px!important;line-height:1.2!important;font-weight:500!important}
.t67-unified-options summary::after,.t67-option-drawer summary::after{font-size:10px!important}
.t67-unified-options-body,.t67-option-drawer-body{padding:0 8px 8px!important;gap:7px!important}
.t67-unified-router,.t67-wf-panel{margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.t67-unified-grid,.t67-wf-grid{gap:5px!important}
.t67-unified-field,.t67-wf-field{gap:3px!important;font-size:10px!important;line-height:1.15!important}
.t67-unified-field span,.t67-wf-field span{font-size:10px!important;font-weight:500!important}
.t67-unified-field select,.t67-wf-field select,.t67-unified-options select,.t67-option-drawer select{height:30px!important;min-height:30px!important;padding:0 7px!important;border-radius:6px!important;border:1px solid rgba(127,127,127,.22)!important;font-size:11px!important;background:transparent!important;box-shadow:none!important}
.t67-unified-options [class*="control"],.t67-option-drawer [class*="control"],.t67-unified-options [class*="grid"],.t67-option-drawer [class*="grid"]{box-shadow:none!important}
.t67-unified-sample-row,.t67-option-drawer-sample{margin:0!important;gap:5px!important}
.t67-unified-sample-row button,.t67-option-drawer-sample button{min-height:28px!important;padding:4px 9px!important;font-size:10px!important;border-radius:6px!important}

/* Upload areas — single visual boundary, centered icon/copy, no outer card around the drop zone. */
.t67-upload-outer-clean{border:0!important;box-shadow:none!important;background:transparent!important;outline:0!important}
.t67-upload-heading-hidden{display:none!important}
.t67-upload-zone-clean{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;min-height:150px!important;border:1px dashed rgba(127,127,127,.34)!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important;overflow:hidden!important;padding:8px!important;box-sizing:border-box!important}
.t67-upload-zone-clean:hover{border-color:rgba(127,127,127,.58)!important}
.t67-upload-minimal{width:100%;min-height:132px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center;padding:10px;box-sizing:border-box}
.t67-upload-minimal svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;opacity:.72}
.t67-upload-minimal strong{font-size:12px!important;line-height:1.2!important;font-weight:600!important}
.t67-upload-minimal small,.t67-upload-minimal span{font-size:9px!important;line-height:1.25!important;opacity:.58!important}
.t67-upload-preview-grid{width:100%;display:grid;gap:6px;align-items:stretch;grid-auto-flow:row}
.t67-upload-preview-grid[hidden]{display:none!important}
.t67-upload-preview-grid[data-count="1"]{grid-template-columns:1fr}
.t67-upload-preview-grid[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.t67-upload-preview-grid[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.t67-upload-preview-grid[data-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.t67-upload-preview-grid[data-count="5"]{grid-template-columns:repeat(6,minmax(0,1fr))}
.t67-upload-preview-grid[data-count="5"]>.t67-upload-card:nth-child(-n+3){grid-column:span 2}
.t67-upload-preview-grid[data-count="5"]>.t67-upload-card:nth-child(n+4){grid-column:span 3}
.t67-upload-preview-grid[data-count="6"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.t67-upload-preview-grid[data-count="7"],.t67-upload-preview-grid[data-count="8"],.t67-upload-preview-grid[data-count="9"],.t67-upload-preview-grid[data-count="10"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.t67-upload-card{position:relative;min-height:130px;border-radius:8px;overflow:hidden;background:rgba(127,127,127,.06)}
.t67-upload-card img{display:block;width:100%;height:100%;min-height:130px;max-height:260px;object-fit:cover}
.t67-upload-preview-grid[data-count="1"] .t67-upload-card img{max-height:380px;object-fit:contain}

/* Results — one boundary, adaptive cards, no duplicated copy. */
.t67-unified-result{position:relative!important;margin:12px 0!important;padding:8px!important;border:1px solid rgba(127,127,127,.20)!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important}
.t67-unified-result-head,.t67-unified-result-empty,.t67-unified-actions #t67UnifiedClearBtn{display:none!important}
.t67-unified-result-grid,.t67-adaptive-result-grid{width:100%;display:grid;gap:6px;align-items:stretch}
.t67-unified-result-grid[data-count="1"],.t67-adaptive-result-grid[data-count="1"]{grid-template-columns:1fr}
.t67-unified-result-grid[data-count="2"],.t67-adaptive-result-grid[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.t67-unified-result-grid[data-count="3"],.t67-adaptive-result-grid[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.t67-unified-result-grid[data-count="4"],.t67-adaptive-result-grid[data-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.t67-unified-result-grid[data-count="5"],.t67-adaptive-result-grid[data-count="5"]{grid-template-columns:repeat(6,minmax(0,1fr))}
.t67-unified-result-grid[data-count="5"]>*:nth-child(-n+3),.t67-adaptive-result-grid[data-count="5"]>*:nth-child(-n+3){grid-column:span 2}
.t67-unified-result-grid[data-count="5"]>*:nth-child(n+4),.t67-adaptive-result-grid[data-count="5"]>*:nth-child(n+4){grid-column:span 3}
.t67-unified-result-grid[data-count="6"],.t67-adaptive-result-grid[data-count="6"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.t67-unified-result-grid[data-count="7"],.t67-unified-result-grid[data-count="8"],.t67-unified-result-grid[data-count="9"],.t67-unified-result-grid[data-count="10"],
.t67-adaptive-result-grid[data-count="7"],.t67-adaptive-result-grid[data-count="8"],.t67-adaptive-result-grid[data-count="9"],.t67-adaptive-result-grid[data-count="10"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.t67-result-card{position:relative;min-height:160px;border:0!important;border-radius:8px!important;overflow:hidden;background:rgba(127,127,127,.05)!important;box-shadow:none!important}
.t67-result-card img{display:block;width:100%;height:100%;min-height:160px;max-height:520px;object-fit:contain;background:transparent}
.t67-zip-row{display:flex;justify-content:flex-end;margin-top:7px}
.t67-zip-all{height:30px;padding:0 10px;border:1px solid rgba(127,127,127,.25);border-radius:7px;background:transparent;color:inherit;font-size:10px;cursor:pointer}
.t67-zip-all[hidden]{display:none!important}

/* Progress — visible immediately after Start. */
.t67-progress-shell{width:100%;box-sizing:border-box;margin:8px 0;padding:8px 9px;border:1px solid rgba(127,127,127,.18);border-radius:8px;background:transparent}
.t67-progress-shell[hidden]{display:none!important}
.t67-progress-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;font-size:10px;line-height:1.2;opacity:.75}
.t67-progress-track{height:4px;border-radius:99px;overflow:hidden;background:rgba(127,127,127,.16)}
.t67-progress-bar{height:100%;width:4%;border-radius:99px;background:currentColor;transition:width .5s ease}

/* Hide legacy result instructions / clear controls when the shared UI has taken over. */
.t67-hide-result-copy{display:none!important}
.t67-result-clean button[id*="clear" i],.t67-result-clean button[id*="reset" i],.t67-result-clean [class*="clear-result" i]{display:none!important}

@media(max-width:680px){
  .t67-unified-grid,.t67-wf-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .t67-upload-preview-grid[data-count="3"],.t67-upload-preview-grid[data-count="6"],.t67-adaptive-result-grid[data-count="3"],.t67-adaptive-result-grid[data-count="6"],.t67-unified-result-grid[data-count="3"],.t67-unified-result-grid[data-count="6"]{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* One result boundary only: inner stages/cards do not add a second panel. */
.t67-result-clean>[class*="result-head"],
.t67-result-clean>[class*="results-head"],
.t67-result-clean .vto-lab-head,
.t67-result-clean .pd-results-head,
.t67-result-clean .rb-output-head{display:none!important}
.t67-result-clean [class*="result-stage"],
.t67-result-clean [class*="result-zone"],
.t67-result-clean [class*="result-media"]{border:0!important;box-shadow:none!important;background:transparent!important}
.t67-result-clean{background:transparent!important;box-shadow:none!important}
/* Credit text is always quiet, even before JS normalizes the wording. */
[id*="credit" i]:not([class*="card" i]),[class*="credit" i]:not([class*="card" i]){font-size:10px!important;font-weight:400!important;line-height:1.2!important}
[id*="credit" i] strong,[id*="credit" i] b,[class*="credit" i] strong,[class*="credit" i] b{font-size:inherit!important;font-weight:400!important}
#remixModeNote,#modeHint{display:none!important}
.t67-upload-legacy-hide{display:none!important}

/* Round 7 corrective polish */
.t67-upload-zone-clean{
  background:rgba(255,255,255,.42)!important;
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease,background .16s ease!important;
}
[data-theme="dark"] .t67-upload-zone-clean,.dark .t67-upload-zone-clean{background:rgba(255,255,255,.035)!important}
.t67-upload-zone-clean:hover{
  border-color:rgba(80,80,80,.55)!important;
  background:rgba(255,255,255,.66)!important;
  box-shadow:0 8px 24px rgba(0,0,0,.07)!important;
  transform:translateY(-1px)
}
[data-theme="dark"] .t67-upload-zone-clean:hover,.dark .t67-upload-zone-clean:hover{background:rgba(255,255,255,.06)!important}
.t67-upload-outer-clean{padding:0!important;margin:0!important;min-width:0!important;align-self:stretch!important}
.t67-upload-zone-clean>.t67-upload-preview-grid{height:100%;min-height:100%;align-content:stretch}
.t67-upload-preview-grid[data-count="1"]{height:100%}
.t67-upload-preview-grid[data-count="1"]>.t67-upload-card{height:100%;min-height:0;display:grid;place-items:center;background:transparent}
.t67-upload-preview-grid[data-count="1"]>.t67-upload-card>img{width:100%!important;height:100%!important;max-height:none!important;min-height:0!important;object-fit:contain!important}
.t67-upload-card{position:relative!important}
.t67-upload-legacy-action,
.t67-upload-zone-clean .pd-x,
.t67-upload-zone-clean [data-clear],
.t67-upload-zone-clean button[id*="change" i],
.t67-upload-zone-clean button[class*="change" i],
.t67-upload-zone-clean button[id*="clear" i]:not(.t67-ict-btn),
.t67-upload-zone-clean button[class*="clear" i]:not(.t67-ict-btn){display:none!important}
.t67-upload-legacy-preview{display:none!important}
.t67-upload-zone-clean [id*="Preview"]:not(.t67-upload-preview-grid),
.t67-upload-zone-clean [class*="upload-preview"]:not(.t67-upload-preview-grid),
.t67-upload-zone-clean [class*="drop-preview"]:not(.t67-upload-preview-grid){display:none!important}

/* Tool bar belongs to the visible image, not to the outer upload/result block. */
.t67-ict-card>.t67-ict-tools{position:absolute!important;z-index:20!important}

/* Prompt panel: remove numbered/director heading, keep prompt itself primary. */
.t67-prompt-heading-hidden{display:none!important}
.t67-prompt-panel-clean{border:0!important;box-shadow:none!important}
.t67-prompt-panel-clean>.pd-head,
.t67-prompt-panel-clean>.vto-lab-head,
.t67-prompt-panel-clean>[class*="director-head"],
.t67-prompt-panel-clean>[class*="panel-head"]{display:none!important}
.t67-prompt-panel-clean label[for*="prompt" i],
.t67-prompt-panel-clean [class*="prompt"]>span:first-child,
.t67-prompt-panel-clean [class*="prompt-head"] label{font-size:11px!important;font-weight:500!important}
.t67-prompt-panel-clean em{font-style:normal!important;font-weight:400!important;opacity:.55!important}

/* One input = one selected image for now. */
.t67-upload-preview-grid[data-count]:not([data-count="1"]){grid-template-columns:1fr!important}

/* Keep paired upload boxes visually coordinated. */
.t67-upload-outer-clean,.t67-upload-zone-clean{box-sizing:border-box!important}

/* Do not allow old overlay/change controls to reappear over unified previews. */
.t67-upload-zone-clean .hair-upload-preview,
.t67-upload-zone-clean .hs-upload-preview,
.t67-upload-zone-clean .vto-upload-preview,
.t67-upload-zone-clean .td-drop-preview,
.t67-upload-zone-clean .wp-drop-preview,
.t67-upload-zone-clean .wa-drop-actions{display:none!important}

/* Round 8 audit fixes: stable single-file upload layout. */
.t67-upload-outer-clean{display:flex!important;flex-direction:column!important;min-width:0!important}
.t67-upload-outer-clean>.t67-upload-zone-clean,
.t67-upload-zone-clean{width:100%!important;flex:1 1 auto!important;cursor:pointer!important}
.t67-upload-zone-clean .t67-upload-preview-grid{width:100%!important;height:100%!important}
.t67-upload-zone-clean .t67-upload-card{width:100%!important;height:100%!important;min-height:0!important}
.t67-upload-zone-clean .t67-upload-card>img{width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;object-fit:contain!important}
.t67-upload-zone-clean input[type="file"]{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.t67-upload-zone-clean:focus-within{outline:2px solid rgba(70,120,220,.18)!important;outline-offset:2px!important}
/* Old page previews must never compete with the shared preview card. */
.t67-upload-zone-clean>.mm-upload-preview,
.t67-upload-zone-clean>.si-preview,
.t67-upload-zone-clean>.rb-upload-grid,
.t67-upload-zone-clean>.pa-upload-preview,
.t67-upload-zone-clean>.eb-upload-preview,
.t67-upload-zone-clean>.gc-upload-preview,
.t67-upload-zone-clean>.na-upload-preview,
.t67-upload-zone-clean>.pp-upload-preview,
.t67-upload-zone-clean>.pod-preview{display:none!important}
