/* Workflow illustrations over the supplied photography; scoped to the toolkit. */
.tool-visual .tv-illustration {position:absolute;inset:0;z-index:3;pointer-events:none;color:#fff;font-family:inherit}
.tool-visual .tv-illustration:before {content:'';position:absolute;inset:0;background:linear-gradient(#08071155,transparent 27%,transparent 55%,#08071130);z-index:-1}
.tv-kicker {position:absolute;left:14px;right:48px;top:16px;font-size:8px;line-height:1.5;font-weight:650;letter-spacing:1.1px;text-shadow:0 1px 10px #000b}
.tv-panel {background:#f9f6f2f2;color:#28232e;border:1px solid #ffffff90;border-radius:10px;box-shadow:0 8px 30px #0002;padding:14px}
.tv-panel small,.tv-node small {display:block;font-size:8px;font-weight:600;letter-spacing:1px;line-height:1.5;margin-bottom:7px;color:#7e708b}
.tv-panel strong {font-size:12px;font-weight:550;line-height:1.4;display:block}
.tv-bottom {position:absolute;bottom:16px;left:14px;right:14px}
.tv-prompt {position:absolute;bottom:17px;left:14px;right:14px;display:flex;align-items:center;gap:10px}
.tv-spark {font-size:25px;color:#8a56b8}.tv-enter {margin-left:auto;font-size:22px;color:#8a56b8}
.tv-crop-corner {position:absolute;inset:50px 24px 125px;border:1px solid #ffffff6b;border-radius:5px}
.tv-crop-corner:after {content:'✦  IMAGE';position:absolute;bottom:9px;left:10px;font-size:8px;letter-spacing:2px}
.tv-mask {position:absolute;inset:0;width:100%;height:100%;stroke:#eedbff;stroke-width:1.5;stroke-dasharray:5 4;filter:drop-shadow(0 1px 2px #0006)}
.tv-mask path {fill:#ba93f133}.tv-mask circle {fill:#ead4ff;stroke:none}
.tv-edit-tag {position:absolute;left:18px;top:46%;padding:7px 10px;background:#b992e9;color:#221431;border-radius:5px;font-size:10px;box-shadow:0 4px 18px #0003}
.tv-identity {position:absolute;left:14px;right:14px;bottom:16px;display:flex;align-items:center;gap:10px;padding:10px}
.tv-identity img {width:44px;height:52px;object-fit:cover;object-position:50% 8%;border-radius:6px}
.tv-identity small {font-size:7px;margin-bottom:3px}.tv-identity strong {font-size:10px}.tv-identity b {margin-left:auto;font-size:23px;color:#8765ac}
.tv-face-target {position:absolute;top:12%;left:29%;width:40%;height:34%;border:1px solid #e6ccff88;border-radius:28%}
.tv-face-target:before,.tv-face-target:after {content:'';position:absolute;left:-6px;right:-6px;height:5px;border-left:2px solid #e6ccff;border-right:2px solid #e6ccff}
.tv-face-target:before{top:0}.tv-face-target:after{bottom:0}
.tv-scan {position:absolute;top:13%;left:29%;width:40%;height:1px;background:#ddc0ff;box-shadow:0 0 10px #ddc0ff;animation:tv-identity-scan 5s ease-in-out infinite}
.tv-contact-sheet {position:absolute;bottom:14px;left:12px;right:12px;display:flex;gap:7px;align-items:end}
.tv-contact-sheet>div {position:relative;flex:1;min-width:0;background:#f7f1e8;padding:4px 4px 20px;box-shadow:0 5px 15px #0004;transform:rotate(-5deg);animation:tv-shot-select 5s ease-in-out infinite}
.tv-contact-sheet>div:nth-child(2){transform:rotate(3deg);animation-delay:-1.65s}.tv-contact-sheet>div:nth-child(3){transform:rotate(-2deg);animation-delay:-3.3s}
.tv-contact-sheet img {display:block;width:100%;height:80px;object-fit:cover}
.tv-contact-sheet>div:nth-child(2) img {object-position:50% 10%;transform:none;object-fit:cover}
.tv-contact-sheet>div:nth-child(3) img {object-position:50% 94%}
.tv-contact-sheet>div:nth-child(2) {margin-bottom:10px}
.tv-contact-sheet span {position:absolute;bottom:6px;left:5px;color:#504957;font-size:6px;letter-spacing:.6px;font-weight:600}
.tv-landmarks {position:absolute;inset:0;width:100%;height:100%;stroke:#f1defa;stroke-width:1;stroke-dasharray:3 3;color:#f1defa;filter:drop-shadow(0 1px 3px #0008)}
.tv-features {display:flex;justify-content:space-between;gap:10px;padding:13px 10px;font-size:9px}
.tv-features span {display:flex;flex-direction:column;gap:7px;flex:1}.tv-features i {height:3px;background:linear-gradient(90deg,#a276c6 66%,#d8cfdf 66%);border-radius:4px}.tv-features span:nth-child(2) i{background:linear-gradient(90deg,#a276c6 43%,#d8cfdf 43%)}
.tv-detail-lens,.tv-upscale-lens {position:absolute;overflow:hidden;border:3px solid #faf7f0;border-radius:50%;box-shadow:0 4px 24px #0005;background:#bba89d}
.tv-detail-lens {width:102px;height:102px;right:15px;bottom:100px}
.tv-detail-lens img {width:230%;max-width:none;height:230%;object-fit:cover;position:absolute;top:-70px;left:-95px}
.tv-detail-lens:after {content:'+';position:absolute;inset:0;display:grid;place-items:center;font-size:24px;font-weight:200;color:#fff9}
.tv-upscale-lens {width:130px;height:130px;right:16px;top:65px;border-radius:15px}
.tv-upscale-lens img {position:absolute;width:180%;max-width:none;height:180%;object-fit:cover;left:-65px;top:-45px}
.tv-upscale-lens span {position:absolute;left:8px;bottom:8px;background:#19131bc9;padding:5px 7px;font-size:8px;border-radius:4px;letter-spacing:1px}
.tv-resolution {position:absolute;left:14px;right:14px;bottom:16px;display:flex;justify-content:space-around;align-items:center}
.tv-resolution span {font-size:14px;color:#8b7d95}.tv-resolution strong{font-size:25px;color:#6b428d}.tv-resolution i{font-style:normal;color:#b59bc6}
.tv-grade {position:absolute;inset:0 0 0 50%;backdrop-filter:sepia(.3) saturate(.82) contrast(.94);background:#b87b3412;animation:tv-grade-wipe 5s ease-in-out infinite}
.tv-grade-line {position:absolute;top:40px;bottom:130px;left:50%;width:1px;background:#fff9;animation:tv-grade-divider 5s ease-in-out infinite}
.tv-grade-line:after {content:'↔';position:absolute;top:40%;left:-11px;width:23px;height:23px;border-radius:50%;background:#f6f0eb;color:#6f5384;display:grid;place-items:center;font-size:12px}
.tv-grade-controls span {display:flex;align-items:center;justify-content:space-between;font-size:10px;gap:16px;margin-top:8px}
.tv-grade-controls i {width:65%;height:3px;border-radius:4px;background:linear-gradient(90deg,#8d69a9 var(--fill),#d8cedf var(--fill))}
.tv-caption-card {position:absolute;left:14px;right:14px;bottom:16px}
.tv-caption-card strong {font-size:16px;letter-spacing:-.3px}.tv-caption-card p {font-size:9px;color:#886699;margin:10px 0 15px}
.tv-caption-card>div {display:flex;justify-content:space-between;align-items:center;border-top:1px solid #d6cddd;padding-top:10px;font-size:9px;color:#8b7b95}
.tv-caption-card b {font-size:20px;font-weight:400;color:#83549f}
.tv-publish-frame {position:absolute;inset:49px 35px 137px;border:1px solid #fff9;border-radius:12px}
.tv-publish-frame:after {content:'POST PREVIEW';position:absolute;top:8px;left:10px;font-size:7px;letter-spacing:1px}
.tv-schedule>div:first-child {display:flex;justify-content:space-between;align-items:center}.tv-check {background:#e2ebde;color:#4e7543;border-radius:50%;width:20px;height:20px;display:grid;place-items:center;font-size:12px}
.tv-channels {display:flex;gap:4px;margin:12px 0}.tv-channels span {border:1px solid #d8cce1;border-radius:4px;padding:5px 4px;font-size:7px;color:#776183;flex:1;text-align:center}
.tv-schedule footer {display:flex;align-items:center;gap:5px;font-size:8px;color:#84738e;padding-top:10px;border-top:1px solid #dfd5e6}
.tv-schedule footer b{margin-left:auto;color:#5c7c4c;font-weight:500}.tv-clock{font-size:16px}
.tv-check {animation:tv-confirm 5s ease-in-out infinite}
.tv-training-stack {position:absolute;left:25px;right:25px;top:72px;height:142px}
.tv-training-stack img {position:absolute;width:85px;height:112px;object-fit:cover;border:5px solid #f4f0e8;border-bottom-width:15px;border-radius:2px;box-shadow:0 5px 20px #0004;left:calc(50% - 42px)}
.tv-training-stack img:first-child{transform:translateX(-49px) rotate(-14deg);object-position:20% center}.tv-training-stack img:last-child{transform:translateX(49px) rotate(14deg);object-position:80% center}.tv-training-stack img:nth-child(2){z-index:1;top:-8px}
.tv-training>div:first-child{display:flex;align-items:center;justify-content:space-between}.tv-training>div:first-child span{color:#9066b3;font-size:24px}.tv-training strong{font-size:11px;margin-top:10px}
.tv-progress {height:4px;background:#e1d7e8;overflow:hidden;border-radius:4px}.tv-progress i{display:block;height:100%;width:80%;background:#9b76b9;animation:tv-train-progress 5s ease-in-out infinite}
.toolkit-grid .tv-comfyui {background:radial-gradient(ellipse at 80% 20%,#57416f,#1a1522 70%)}
.toolkit-grid .tv-comfyui>.tk-photo,.toolkit-grid .tv-comfyui>.tk-motion {inset:52px 16px auto auto;width:98px;height:127px;object-fit:cover;border-radius:8px;border:1px solid #dbc1ef55;z-index:2}
.tv-comfyui .tv-illustration:before {display:none}
.tv-output-label {position:absolute;right:16px;top:185px;width:98px;font-size:7px;letter-spacing:1px;text-align:center;color:#c9b1d9}
.tv-node {position:absolute;border:1px solid #a680c088;background:#2c2338f0;padding:11px 10px;border-radius:7px;width:100px;box-shadow:0 4px 15px #0002}
.tv-node small {font-size:6px;margin-bottom:5px;color:#b399c7}.tv-node strong{display:block;font-size:10px;font-weight:500}
.tv-node i {position:absolute;width:6px;height:6px;background:#d8b4f4;border-radius:50%;right:-3px;top:50%}
.tv-node-edit i {left:-3px;right:auto}
.tv-node-reference{left:15px;top:74px}.tv-node-model{left:15px;top:204px}.tv-node-edit{right:16px;bottom:67px}
.tv-wires{position:absolute;inset:0;width:100%;height:100%;stroke:#b88ed8;stroke-width:1.5;stroke-dasharray:5 5;animation:tv-flow 3s linear infinite}
.tv-run {position:absolute;left:14px;right:14px;bottom:16px;border-top:1px solid #b794d22b;padding-top:15px;font-size:9px;color:#c3b0d1;display:flex;align-items:center;gap:8px}
.tv-run span {width:5px;height:5px;border-radius:50%;background:#b8dca6;box-shadow:0 0 8px #b8dca650}
.tool-visual .tv-illustration * {animation-play-state:paused}
.tool-visual.is-tool-visible .tv-illustration * {animation-play-state:running}
@keyframes tv-identity-scan {0%,100%{translate:0 0;opacity:.4}50%{translate:0 100px;opacity:1}}
@keyframes tv-shot-select {0%,70%,100%{translate:0 0}30%{translate:0 -7px}}
@keyframes tv-grade-wipe {0%,100%{left:70%}50%{left:28%}}
@keyframes tv-grade-divider {0%,100%{left:70%}50%{left:28%}}
@keyframes tv-confirm {0%,20%{opacity:.4;scale:.8}40%,100%{opacity:1;scale:1}}
@keyframes tv-train-progress {0%{width:10%}70%,100%{width:100%}}
@keyframes tv-flow {to{stroke-dashoffset:-40}}
@media(prefers-reduced-motion:reduce){.tool-visual .tv-illustration *{animation:none!important}}
@media(max-width:560px){.tv-kicker{font-size:9px}.tv-panel strong{font-size:14px}.tv-contact-sheet img{height:105px}.tv-node-reference{top:85px}.tv-node-model{top:235px}.tv-node-edit{bottom:90px}}

.tv-section-note {font-size:12px;color:#a79eaf;margin:-12px 0 28px;line-height:1.6}
.tv-contact-sheet .tv-shot-picture {display:block;position:static;padding:0;height:80px;overflow:hidden}
.tv-contact-sheet>div:nth-child(2) .tv-shot-picture img {transform:scale(2.1);transform-origin:50% 10%}
.tv-contact-sheet>div:nth-child(3) .tv-shot-picture img {transform:scale(2);transform-origin:50% 95%}
@media(max-width:560px){.tv-contact-sheet .tv-shot-picture {height:105px}}

.tv-reference-face {position:relative;display:block;flex:0 0 44px;height:52px;overflow:hidden;border-radius:6px}
.tv-identity .tv-reference-face img {position:absolute;width:110px;max-width:none;height:150px;left:-33px;top:-10px;object-fit:cover;border-radius:0}
.tv-detail-lens img {left:-50px;top:-80px}
.tv-caption-card p {font-size:10px;color:#76527c}

/* Live-written prompt previews reserve space so the cards never jump. */
.tv-type-field {position:relative;white-space:pre-line}
.tv-type-reserve {display:block;visibility:hidden}
.tv-type-ink {position:absolute;inset:0;display:block}
.tv-type-accessible {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.tv-type-field.is-typing .tv-type-ink:after {content:'';display:inline-block;width:1px;height:.95em;vertical-align:-.08em;background:#9766bb;margin-left:2px;animation:tv-caret .7s steps(1) infinite}
.tv-typing-complete .tv-enter {animation:tv-prompt-send .65s ease both}
.tv-typing-complete .tv-crop-corner {animation:tv-result-reveal .9s ease both}
.tv-edit-tag {transition:box-shadow .4s}
.tv-typing-complete .tv-edit-tag {box-shadow:0 0 0 4px #ba93f133,0 4px 18px #0003}
.tv-features i {position:relative;background:#d8cfdf!important;overflow:visible}
.tv-features i:after {content:'';position:absolute;inset:0 auto 0 0;width:var(--feature-value,66%);border-radius:inherit;background:#9b70bb;animation:tv-feature-level 6s ease-in-out infinite}
.tv-features i:before {content:'';position:absolute;top:-2px;left:var(--feature-value,66%);width:7px;height:7px;margin-left:-3px;border-radius:50%;background:#8e5eaf;animation:tv-feature-knob 6s ease-in-out infinite}
.tv-features span:nth-child(2){--feature-value:43%}.tv-features span:nth-child(3){--feature-value:80%}
.tv-features span:nth-child(2) i:before,.tv-features span:nth-child(2) i:after {animation-delay:-2s}
.tv-features span:nth-child(3) i:before,.tv-features span:nth-child(3) i:after {animation-delay:-4s}
.tv-caption-card {left:16px;right:16px;bottom:16px;padding:11px 12px;transition:opacity .3s}
.tv-caption-card small {font-size:7px;margin-bottom:5px}
.tv-caption-card strong {font-size:12px!important;line-height:1.35;letter-spacing:0}
.tv-caption-card p {font-size:8px;margin:7px 0 0;line-height:1.4}
.tv-caption-studio:has(>.tk-motion.is-ready) .tv-caption-card {opacity:0}
.tv-identity-swap:has(>.tk-motion.is-ready) .tv-identity,
.tv-post-process:has(>.tk-motion.is-ready) .tv-grade,
.tv-post-process:has(>.tk-motion.is-ready) .tv-grade-line,
.tv-post-process:has(>.tk-motion.is-ready) .tv-grade-controls {display:none}
@keyframes tv-caret {50%{opacity:0}}
@keyframes tv-prompt-send {40%{translate:3px -3px;color:#643291}100%{translate:0 0}}
@keyframes tv-result-reveal {0%{box-shadow:0 0 0 0 #ddb8ff00}40%{box-shadow:0 0 22px 3px #ddb8ff66}100%{box-shadow:0 0 0 0 #ddb8ff00}}
@keyframes tv-feature-level {0%,100%{width:var(--feature-value,66%)}45%{width:28%}70%{width:85%}}
@keyframes tv-feature-knob {0%,100%{left:var(--feature-value,66%)}45%{left:28%}70%{left:85%}}
@media(prefers-reduced-motion:reduce){.tv-features i:before,.tv-features i:after,.tv-type-ink:after{animation:none!important}.tv-type-field .tv-type-ink:after{display:none}}

.tool-visual .tv-features i:before,.tool-visual .tv-features i:after,.tool-visual .tv-type-ink:after {animation-play-state:paused}
.tool-visual.is-tool-visible .tv-features i:before,.tool-visual.is-tool-visible .tv-features i:after,.tool-visual.is-tool-visible .tv-type-ink:after {animation-play-state:running}

/* Detail windows use three times the full card image width, not the lens width. */
.tv-skin-enhancement,.tv-upscale {container-type:inline-size}
.tv-detail-lens img,.tv-upscale-lens img {position:absolute;width:300cqw;max-width:none;height:auto;object-fit:initial;left:50%;top:50%;transform:translate(-45%,-44%)}
.tv-upscale-lens img {transform:translate(-46%,-34%)}
.tv-detail-lens:after {content:'3×';display:flex;align-items:flex-end;justify-content:center;padding-bottom:7px;font-size:9px;font-weight:600;color:#38273f;text-shadow:0 1px 3px #fff9}
.tv-training-fallback {position:absolute;left:16px;right:16px;bottom:17px;padding-top:45px;color:#fff;background:linear-gradient(transparent,#17111c99);border-radius:8px}
.tv-training-fallback small {display:block;font-size:7px;letter-spacing:1px;margin-bottom:10px}
.tv-training-fallback strong {display:block;font-size:24px;line-height:1.1;font-weight:550;padding-bottom:10px}
.tv-model-training:has(>.tk-motion.is-ready) .tv-training-fallback {display:none}

/* The detail crop follows the lash line lower in the source photograph. */
.tv-upscale-lens img {transform:translate(-46%,-40%)}
/* A real edited still is revealed in HTML, after the prompt has been typed. */
.tv-edit-reveal {position:absolute;inset:0;z-index:1;clip-path:inset(0 calc(100% - var(--edit-reveal,0%)) 0 0);pointer-events:none}
.tv-edit-reveal img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 30%;max-width:none}
.tv-edit-divider {position:absolute;z-index:2;left:var(--edit-reveal,0%);top:45px;bottom:95px;width:1px;background:#f3ddff;box-shadow:0 0 12px #f3ddff88;opacity:0;pointer-events:none}
.is-edit-revealing .tv-edit-divider {opacity:1}
.tv-edit-state {position:absolute;left:14px;top:43px;background:#1e1528b8;color:#fff;padding:5px 7px;border-radius:4px;font-size:7px;letter-spacing:1px}
.tv-edit-state b {display:none;font-weight:500}.is-edit-applied .tv-edit-state span {display:none}.is-edit-applied .tv-edit-state b {display:inline}
.tv-image-editing .tv-mask,.tv-image-editing .tv-edit-tag {transition:opacity .4s}
.tv-image-editing.is-edit-applied .tv-mask,.tv-image-editing.is-edit-applied .tv-edit-tag {opacity:0}
.tv-publish:has(>.tk-motion.is-ready) .tv-publish-frame,.tv-publish:has(>.tk-motion.is-ready) .tv-schedule {display:none}
@media(prefers-reduced-motion:reduce){.tv-edit-reveal {clip-path:none}.tv-image-editing .tv-mask,.tv-image-editing .tv-edit-tag {display:none}.tv-edit-divider{display:none}}
