.create-agent[hidden],.influencer-builder[hidden]{display:none!important}
.influencer-builder{--fuse-chrome:linear-gradient(115deg,#FFE66A 0%,#DFFF4E 46%,#EEFFE0 72%,#FFE66A 100%);--fuse-dark:linear-gradient(155deg,#000708 0%,#001012 48%,#062125 100%);width:100%;max-width:760px;margin:12px auto 28px;color:#f6fff8}
.influencer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.influencer-heading h1{font-size:clamp(22px,4vw,30px);margin:0}
.influencer-builder button,.influencer-builder select{font:inherit;cursor:pointer}
.influencer-back{background:transparent;color:#b9cdcb;border:0;padding:10px}
.influencer-banner{aspect-ratio:16/9;border:1px solid #305352;border-radius:24px;background:linear-gradient(145deg,#030908,#102e30);display:grid;place-items:center;color:#91aaa9;font-size:14px}
.influencer-modes{display:flex;gap:8px;margin:20px 0;padding:5px;border:1px solid #41615f;border-radius:30px;background:#071b1c}
.influencer-modes button{flex:1;border:1px solid #3d6261;border-radius:24px;padding:13px 8px;background:linear-gradient(165deg,#274647,#081819 52%,#31575a);color:#edf8f6;font-weight:600;box-shadow:inset 0 1px 2px #a5c6bd44}
.influencer-modes button[aria-pressed=true]{background:var(--fuse-chrome);color:#001012;border-color:#eeffe0}
.influencer-face{aspect-ratio:4/3;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:15px;overflow:hidden;border:1px dashed #456361;border-radius:24px;background:#10222299}
.influencer-face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 25%;background:#041112}
.influencer-face:has(img:not([hidden])) .influencer-upload{z-index:1;background:#061819e8}
.influencer-upload{display:grid;justify-items:center;gap:12px;cursor:pointer;padding:12px 18px;border-radius:18px;font-size:22px;font-weight:600}
.influencer-upload span{display:grid;place-items:center;width:52px;height:52px;border:1px solid #71908a;border-radius:50%;background:radial-gradient(circle at 35% 25%,#6e827e,#162b2c 70%);font-size:30px}
.influencer-upload:focus-within{outline:2px solid #eeffe0;outline-offset:3px}
.influencer-upload input{position:absolute;width:1px;height:1px;opacity:0}
.influencer-builder button:disabled{cursor:not-allowed}
.influencer-remove{position:absolute;right:9px;bottom:9px;z-index:2;display:grid;place-items:center;width:30px;height:30px;border:1px solid #eeffe0;border-radius:50%;background:var(--fuse-chrome);color:#001012;padding:6px;box-shadow:0 2px 8px #000a}
.influencer-remove[hidden],.influencer-upload[hidden]{display:none!important}
.influencer-remove svg,.scratch-reference-remove svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.influencer-advanced{margin:16px 0;border:1px solid #305352;border-radius:20px;background:#10272888;padding:18px}
.influencer-advanced summary{cursor:pointer;font-size:18px;color:#d0dfda}
.influencer-advanced label{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-top:16px}
.influencer-advanced select{max-width:60%;background:#0a2021;border:1px solid #4e6c64;border-radius:10px;padding:9px;color:#f4ffe9}
.influencer-generate{width:100%;border:0;border-radius:30px;background:var(--fuse-chrome);color:#0a1812;font-size:20px;font-weight:700;padding:18px}
.influencer-note{font-size:13px;color:#a6bdb8;text-align:center;line-height:1.5;margin:12px 0}
.influencer-builder :focus-visible{outline:2px solid #eeffe0;outline-offset:3px}
.influencer-face[hidden],#influencerScratch[hidden]{display:none!important}
.scratch-field{border:0;min-width:0;margin:0 0 32px;padding:0}
.scratch-field legend{font-size:20px;font-weight:600;margin-bottom:16px;padding:0}
.scratch-rail{display:flex;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:4px 3px 10px;scrollbar-width:thin;scrollbar-color:#315456 transparent}
.scratch-choice{position:relative;flex:0 0 128px;scroll-snap-align:start;border:2px solid #315456;border-radius:20px;overflow:hidden;cursor:pointer;background:linear-gradient(145deg,#163537,#041314);display:flex;flex-direction:column;justify-content:center;min-height:142px;box-sizing:border-box}
.scratch-choice:has(input:checked){border-color:transparent;background:var(--fuse-dark) padding-box,var(--fuse-chrome) border-box;box-shadow:0 3px 16px #ffe66a20,inset 0 1px 12px #eeffe00d}
.scratch-choice:has(input:checked) .scratch-caption{color:#eeffe0;background:var(--fuse-chrome);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.scratch-choice:focus-within{outline:2px solid #eeffe0;outline-offset:2px}
.scratch-choice input,.scratch-style-upload input{position:absolute;width:1px;height:1px;opacity:0}
.scratch-art{display:grid;place-items:center;min-height:100px;color:#809b94;font-size:40px;background:radial-gradient(ellipse at center,#35574d55,transparent 70%)}
.scratch-symbol .scratch-art{color:#d0e3dd;text-shadow:0 2px #152c29,0 -1px white}
.scratch-caption{font-size:15px;padding:10px;line-height:1.25;color:#f0fff0}
.scratch-color{border-radius:18px;background:transparent;min-height:112px}
.scratch-color .scratch-art{min-height:68px;margin:6px;border-radius:12px}
.scratch-text{min-height:54px}
.scratch-style-upload{position:relative;flex:0 0 220px;min-height:142px;display:grid;place-items:center;border:1px dashed #65827a;border-radius:20px;background:#102728;color:#e4f5ed;overflow:hidden;cursor:pointer;padding:12px;box-sizing:border-box}
.scratch-style-upload:focus-within{outline:2px solid #eeffe0}
.scratch-style-upload img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#041314}
.scratch-reference-remove{align-self:center;border:1px solid #456963;border-radius:16px;background:#163537;color:white;padding:10px}

/* Keep the existing shell while the Influencer canvas uses Fuse's black-teal depth. */
body:has(#influencerBuilder:not([hidden])){background:radial-gradient(ellipse at 85% 55%,#0c343955,transparent 65%),linear-gradient(180deg,#000000 0%,#000b0d 35%,#00191b 75%,#062125 100%);background-attachment:fixed}
.influencer-banner,.influencer-face,.influencer-advanced,.scratch-style-upload{background:var(--fuse-dark)}
.scratch-choice{background:var(--fuse-dark)}

/* Original photographic option artwork; captions remain native accessible text. */
.scratch-image .scratch-art{height:112px;min-height:112px;overflow:hidden;background:var(--fuse-dark)}
.scratch-image .scratch-art img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.scratch-image .scratch-caption{flex:1}

/* Compact builder and shared advanced feature sheet. */
.influencer-builder{margin:6px auto 18px}
.influencer-heading{position:relative;justify-content:center;min-height:48px;margin-bottom:8px;padding:0 76px}
.influencer-heading h1{font-size:18px;line-height:1.25;text-align:center}
.influencer-builder .influencer-back{position:absolute;right:0;font-size:10px;padding:8px 0}
.influencer-banner{position:relative;aspect-ratio:2024/777;border:0;border-radius:18px;overflow:hidden;background:var(--fuse-chrome);isolation:isolate}
.influencer-banner::before{content:"";position:absolute;inset:2px;border-radius:16px;background:#031013 url("assets/influencer-banner-edited.jpg") center/cover no-repeat}
.influencer-banner-copy{position:absolute;inset:0 29%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:1px;white-space:nowrap;z-index:1}
.influencer-banner-copy strong{display:block;font-family:Montserrat,Arial,sans-serif;font-size:clamp(18px,4.2vw,38px);font-weight:800;line-height:1.12;letter-spacing:-.035em;text-transform:uppercase;background:linear-gradient(180deg,#fff 7%,#b2c1c2 23%,#fff 43%,#718587 57%,#f4ffff 77%,#95a8aa 100%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 2px 4px #000b)}
.influencer-banner-stroke{width:min(78%,260px);height:clamp(12px,2.4vw,22px);overflow:visible;filter:drop-shadow(0 1px 2px #fff6)}
.influencer-banner-copy>span{color:#fff;font-size:clamp(12px,2.1vw,19px);font-weight:600;line-height:1.2;text-shadow:0 2px 5px #000}
.influencer-banner-hand{display:inline-block;font-family:Arial,sans-serif;font-variant-emoji:text;color:#DFFF4E;background:none;-webkit-text-fill-color:#DFFF4E;filter:drop-shadow(0 1px 1px #000)}
@media(max-width:480px){.influencer-banner{border-radius:14px}.influencer-banner-copy{inset:0 26%}.influencer-banner-copy strong{font-size:clamp(14px,4.4vw,21px)}.influencer-banner-copy>span{font-size:clamp(11px,3vw,14px)}.influencer-banner-stroke{width:90%;height:12px}}
.influencer-modes{margin:12px 0;padding:4px;gap:6px}
.influencer-modes button{font-size:12px;padding:10px 5px;line-height:1.2}
.influencer-face{aspect-ratio:auto;min-height:178px;border-radius:18px;gap:10px}
.influencer-upload{font-size:16px;gap:8px;padding:8px 12px}
.influencer-upload span{width:38px;height:38px;font-size:24px}
.influencer-builder .influencer-advanced{display:flex;align-items:center;justify-content:space-between;width:100%;margin:10px 0;border:1px solid #315456;border-radius:14px;padding:13px 14px;color:#d0dfda;font-size:13px;text-align:left;background:var(--fuse-dark)}
.influencer-advanced span{font-size:18px}
.influencer-builder .influencer-generate{font-size:14px;padding:12px;border-radius:24px}
.influencer-note{font-size:11px;margin:8px 0}
.influencer-note:empty{display:none}
.scratch-field{margin-bottom:17px}
.scratch-field legend{font-size:14px;margin-bottom:8px}
.scratch-rail{gap:8px;padding:2px 2px 6px}
.scratch-choice{flex-basis:92px;border-radius:14px;min-height:108px}
.scratch-art{min-height:72px;font-size:29px}
.scratch-image .scratch-art{height:78px;min-height:78px}
.scratch-caption{font-size:11px;padding:7px;line-height:1.2}
.scratch-symbol{min-height:98px}
.scratch-color{min-height:83px}
.scratch-color .scratch-art{min-height:45px;margin:4px;border-radius:9px}
.scratch-text{min-height:42px}
.scratch-style-wrap{position:relative;flex:0 0 138px;min-height:108px}
.scratch-style-upload{box-sizing:border-box;width:100%;height:100%;min-height:108px;font-size:11px;border-radius:14px;padding:8px}
.scratch-style-upload img{object-fit:contain}
.scratch-reference-remove{position:absolute;right:7px;bottom:7px;z-index:1;display:grid;place-items:center;width:28px;height:28px;border:1px solid #eeffe0;border-radius:50%;background:var(--fuse-chrome);color:#001012;padding:5px;box-shadow:0 2px 7px #000a}
.scratch-reference-remove[hidden]{display:none!important}
.influencer-settings{box-sizing:border-box;width:min(620px,100%);max-width:100%;max-height:85dvh;margin:auto auto 0;padding:0;color:#f6fff8;border:1px solid #315456;border-bottom:0;border-radius:26px 26px 0 0;background:var(--fuse-dark);overflow:auto;overscroll-behavior:contain}
.influencer-settings::backdrop{background:#000a;backdrop-filter:blur(4px)}
.influencer-settings-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:center;padding:20px 48px;background:#001012}
.influencer-settings-head h2{margin:0;font-size:16px}
.influencer-settings-head button{position:absolute;right:15px;border:0;border-radius:50%;height:32px;width:32px;color:#eeffe0;background:#163537;font-size:24px}
.influencer-settings-fields{padding:8px 14px 4px}
.influencer-settings-actions{position:sticky;bottom:0;display:flex;gap:10px;padding:12px 14px max(16px,env(safe-area-inset-bottom));background:#001012;z-index:2}
.influencer-builder .influencer-settings-actions button{flex:1;border:1px solid #315456;border-radius:24px;padding:12px 8px;font-size:13px;background:#163537;color:#eeffe0}
#influencerSettingsApply{background:var(--fuse-chrome);color:#001012;border:0;font-weight:600}
@media(min-width:700px){.influencer-heading h1{font-size:20px}.influencer-face{min-height:220px}.influencer-settings{margin:auto;border:1px solid #315456;border-radius:24px}}


.scratch-prompt{border:1px solid #315456;border-radius:16px;background:var(--fuse-dark);overflow:hidden;margin:2px 0 14px}
.scratch-prompt-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;font-size:13px;cursor:pointer}
.scratch-prompt-toggle input{appearance:none;-webkit-appearance:none;position:relative;flex:0 0 34px;width:34px;height:20px;margin:0;border:1px solid #65817d;border-radius:20px;background:#315456;cursor:pointer}
.scratch-prompt-toggle input:before{content:'';position:absolute;left:3px;top:3px;width:12px;height:12px;border-radius:50%;background:#eeffe0;transition:transform .15s}
.scratch-prompt-toggle input:checked{background:var(--fuse-chrome);border-color:#eeffe0}
.scratch-prompt-toggle input:checked:before{transform:translateX(14px);background:#001012}
.scratch-prompt textarea{display:block;box-sizing:border-box;resize:vertical;width:100%;min-height:130px;max-height:300px;border:0;border-top:1px solid #315456;padding:13px 14px;font:inherit;font-size:16px;line-height:1.5;color:#eeffe0;background:transparent}
.scratch-prompt textarea[hidden]{display:none}
.scratch-prompt textarea::placeholder{color:#91aaa9}
@media(prefers-reduced-motion:reduce){.scratch-prompt-toggle input:before{transition:none}}

.influencer-builder:not([data-mode="me"]) .influencer-advanced{display:none}
body.influencer-chat .create-agent{padding-top:24px;display:flex;flex-direction:column;align-items:center}
body.influencer-chat .create-agent-brand,body.influencer-chat .create-composer,body.influencer-chat .create-agent>.composer-message,body.influencer-chat .create-grid{display:none!important}
body.influencer-chat .influencer-builder{margin:28px auto 24px}
body.influencer-chat .influencer-banner{display:none}
.influencer-credit-notice{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0;padding:14px;border:1px solid #315456;border-radius:16px;background:linear-gradient(145deg,#102d30,#041417);font-size:13px}
.influencer-credit-notice[hidden]{display:none}
.influencer-credit-notice a{margin-left:auto;border-radius:18px;background:var(--fuse-chrome);color:#001012;padding:8px 13px;font-weight:700;text-decoration:none}
.influencer-turn-summary{font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.influencer-turn-summary>strong{display:block;font-size:14px;font-weight:600;color:#eeffe0}
.influencer-turn-preview{margin:9px 0 0;color:#c7d9d4}
.influencer-turn-summary details{margin-top:9px;color:#c7d9d4}
.influencer-turn-summary summary{cursor:pointer;color:#dfff4e;font-weight:600}
.influencer-turn-summary ul{margin:9px 0 0;padding-left:20px;max-height:220px;overflow:auto}
.influencer-turn-summary li{margin:3px 0}
.influencer-turn-custom{margin:10px 0 0;border-top:1px solid #315456;padding-top:9px;white-space:pre-wrap;color:#eeffe0}
