:root{--director-ink:#102746;--director-blue:#1168ed;--director-cyan:#05bdd8;--director-paper:#f4f8ff;--director-line:#d7e3f1;--director-purple:#8a57df;--director-gold:#ffc65d}
body[data-brand-v64=public]{color:var(--director-ink);background:var(--director-paper)}
button,input,textarea,select{font:inherit}button,a,input,textarea,select{ -webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:3px solid #08bdd8;outline-offset:3px}
.nf-director-hero{text-align:center;margin:0 auto 20px;max-width:650px;padding:8px 12px}.nf-director-hero img{display:block;width:clamp(180px,26vw,280px);height:auto;aspect-ratio:1;border-radius:50%;margin:0 auto 16px;box-shadow:0 20px 45px #0c4b8a24;animation:nf-director-float 7s ease-in-out infinite}.nf-director-hero h1{font-size:clamp(23px,3vw,34px);margin:12px 0;color:#102746}.nf-director-hero p{font-size:15px;line-height:1.9;color:#526783}.nf-director-hero span{color:#1168ed;font-weight:700}
@keyframes nf-director-float{50%{transform:translateY(-7px)}}@media(prefers-reduced-motion:reduce){.nf-director-hero img{animation:none}}
body.conversation-active .nf-director-hero{display:none}#business-hero,#business-lanes,.nf-clean-chat #empty{display:none!important}
body:not(.conversation-active) #form.chat-dock{position:relative!important;inset:auto!important;transform:none!important;margin:0 auto 24px!important;width:100%!important;max-width:780px!important}
#form .composer{display:flex!important;align-items:flex-end!important;gap:6px!important;background:#fff!important;border:1px solid #bbcee2!important;border-radius:24px!important;box-shadow:0 8px 28px #214f8610!important;padding:9px!important}#form .composer textarea{border:0!important;box-shadow:none!important;outline:0!important;background:transparent!important;min-height:60px!important;max-height:170px!important;color:#15344e!important;padding:12px 6px!important;font-size:16px!important;line-height:1.7!important}
#form .composer .nf-attach,#form .composer .nf-director-options{display:grid!important;place-items:center!important;flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;border-radius:14px!important;border:1px solid #cce1fa!important;padding:9px!important;opacity:1!important;background:#eaf4ff!important;color:#1168ed!important;font-size:23px!important;box-shadow:none!important}#form .composer .nf-attach svg{display:block!important;width:25px!important;height:25px!important;stroke:currentColor!important;fill:none!important;opacity:1!important;stroke-width:2!important}.nf-director-options{background:#eee8ff!important;color:#7045c4!important}
.nf-director-settings{box-sizing:border-box;width:min(94vw,550px);max-height:80dvh;padding:20px;border:1px solid #d7e3f1;border-radius:26px;color:#173651;background:white;box-shadow:0 25px 90px #10274644}.nf-director-settings::backdrop{background:#10274677;backdrop-filter:blur(5px)}.nf-director-settings>button{border:0;background:#eff5fc;color:#224564;padding:10px 16px;border-radius:12px;min-height:44px}.nf-studio-welcome{display:none}.nf-studio-steps{display:flex;gap:20px;list-style-position:inside;padding:10px 0;color:#64788b}.nf-studio-steps .current{color:#1168ed;font-weight:700}.nf-studio-choice-grid{display:flex;flex-wrap:wrap;gap:16px}.nf-studio-settings fieldset{border:0;padding:0;margin:10px 0;display:flex;gap:8px;flex-wrap:wrap}.nf-studio-settings legend{font-weight:700;margin-bottom:10px}.nf-studio-settings button,.nf-studio-preview-tools button,.nf-studio-actions button,.nf-redraw-options button{border:1px solid #cbddef;color:#244e71;background:#f5f9ff;border-radius:13px;min-height:44px;padding:10px 14px}.nf-studio-settings button[aria-pressed=true],.nf-studio-preview-tools button[aria-pressed=true],button.nf-studio-primary{background:#1168ed;color:white;border-color:#1168ed}.nf-studio-settings svg{width:24px;height:24px;vertical-align:middle;margin-inline-end:5px}.nf-studio-advanced{margin:12px 0}.nf-studio-caption{font-size:12px;color:#5b7185;line-height:1.8}
.nf-studio-card{padding:18px;border:1px solid var(--director-line);border-radius:22px;background:white;margin:16px 0;max-width:100%;overflow:hidden}.nf-studio-card h2{font-size:20px}.nf-studio-preview-tools,.nf-studio-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.nf-studio-canvas,.nf-studio-output video{display:block;width:100%;height:auto;max-height:60dvh;object-fit:contain;background:white;border-radius:12px}.nf-studio-card input[type=range]{width:100%;accent-color:#1168ed}.nf-studio-card input[type=checkbox]{width:20px;height:20px;vertical-align:middle;accent-color:#1168ed}.nf-studio-download{display:inline-block;background:#1168ed;color:#fff;padding:14px 18px;border-radius:14px;margin:12px 0}.nf-studio-card label{display:block;margin:12px 0;line-height:1.8}.nf-redraw-options{background:#f4f0ff;border:1px solid #ded1fa;border-radius:16px;padding:14px;margin-top:14px}.nf-redraw-options summary{font-weight:700;color:#6742ab;cursor:pointer}.nf-redraw-options select{padding:10px;border-radius:10px;border:1px solid #cdbbe9;max-width:100%;background:white}.nf-redraw-options p{font-size:13px;line-height:1.9}
.nf-sidebar button,.nf-sidebar a{border-radius:14px}.nf-sidebar svg{color:#178ad5}.nf-sidebar a[href*=account] svg{color:#8a57df}.nf-sidebar a[href*=plans] svg{color:#de971e}
body[data-brand-v64=public] input,body[data-brand-v64=public] select,body[data-brand-v64=public] textarea{border-radius:13px}.nf-global-head{border-bottom:1px solid #1d4c75!important}
@media(max-width:480px){.nf-director-hero img{width:205px}.nf-director-hero{padding:8px 8px 0}.nf-director-hero p{font-size:14px}.nf-studio-card{padding:12px}.nf-studio-preview-tools button{font-size:13px;padding:8px 10px}}
.nf-studio-card [hidden],.nf-director-hero[hidden],.nf-director-settings:not([open]){display:none!important}
.nf-global-head{display:grid!important;grid-template-columns:1fr auto 1fr!important;gap:12px!important;align-items:center!important;padding:12px 20px!important;min-height:74px!important;background:#0c2240!important}.nf-studio-account{display:flex;align-items:center;gap:8px;justify-self:start}.nf-global-head .nf-global-logo{display:flex!important;align-items:center!important;gap:7px!important;white-space:nowrap;font:800 14px/1.2 system-ui,sans-serif;letter-spacing:.5px;color:#fff!important}.nf-global-head .nf-global-logo img{width:32px!important;height:32px!important;object-fit:contain}.nf-global-head .nf-global-menuarea{justify-self:end}.nf-video-balance{font-size:12px!important;min-height:38px!important;padding:7px 10px!important;border:1px solid #277cbd!important;background:#143b60!important;box-shadow:none!important;white-space:nowrap}.nf-profile-link{width:36px;height:36px;position:relative;display:grid;place-items:center;background:#e8f4ff;color:#2162a6;border:2px solid #72d9ef;border-radius:50%;overflow:hidden}.nf-profile-link img{position:absolute;inset:0;object-fit:cover;width:100%;height:100%}.nf-profile-link svg{width:22px;height:22px}.nf-global-head .nf-global-menubtn{width:42px!important;min-width:42px!important;height:42px!important;border-radius:13px!important;background:#123558!important;border:1px solid #2b5578!important;color:white!important}.nf-video-plans{max-width:900px;margin:36px auto;padding:0 20px;line-height:1.9}.nf-video-plans>h1{font-size:clamp(27px,5vw,42px);color:#143457}.nf-video-pack-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0 32px}.nf-video-pack{border:1px solid #d0e2f4;border-radius:22px;padding:22px;background:linear-gradient(145deg,#fff,#eef6ff);box-shadow:0 7px 22px #214f860a}.nf-video-pack h3{margin:0 0 12px;color:#17416a}.nf-video-pack strong{font-size:32px;color:#1168ed}.nf-video-pack button,.nf-video-plans button{padding:12px 16px;border-radius:12px;background:#126be6;color:white;border:0;min-height:44px;font:inherit;cursor:pointer}.nf-video-pack button:disabled,.nf-video-plans button:disabled{opacity:.48;cursor:default}.nf-studio-topup{display:inline-block;font-size:14px;color:#1168ed;margin:14px 0;padding:10px 14px;border:1px solid #b8d4ee;border-radius:13px;background:#eef7ff}.nf-clean-chat .header-pen-replay,.nf-clean-chat .writing-status:empty{display:none!important}.nf-studio-card .nf-studio-preview-tools{background:#f0f6fd;padding:7px;border-radius:17px;width:fit-content}.nf-studio-preview-tools button{box-shadow:none}.nf-studio-card .nf-studio-output{border-radius:16px;overflow:hidden}.nf-video-plans [hidden]{display:none!important}
@media(max-width:480px){.nf-global-head{padding:10px 12px!important;gap:6px!important}.nf-global-head .nf-global-logo{font-size:11px;gap:4px!important}.nf-global-head .nf-global-logo img{width:26px!important;height:26px!important}.nf-profile-link{width:30px;height:30px}.nf-studio-account{gap:5px}.nf-video-balance{font-size:10px!important;padding:6px 7px!important}.nf-video-pack-grid{grid-template-columns:1fr}.nf-video-plans{padding:0 16px;margin-top:24px}}

.nf-studio-download,.nf-studio-download:visited{color:#fff!important}.nf-video-balance span{unicode-bidi:isolate}.nf-director-settings label{display:block;line-height:1.8;margin:16px 0}.nf-director-settings input[type=range]{width:100%;accent-color:#126be6}.nf-studio-canvas{border:1px solid #edf2f9}
.nf-video-job{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:16px 20px;margin:16px 0;background:#fff;border:1px solid #dce8f5;border-radius:20px}.nf-video-job p{margin:0;flex:1}.nf-video-spinner{width:22px;height:22px;border:3px solid #d9e8fa;border-top-color:#1769ec;border-radius:50%;animation:nf-video-spin .8s linear infinite}.nf-video-job [hidden],.nf-video-job[hidden]{display:none!important}.nf-video-result{background:white;border:1px solid #dce8f5;border-radius:22px;padding:12px;margin:18px 0;overflow:hidden}.nf-video-result video{display:block;width:100%;max-height:60dvh;object-fit:contain;background:#fff;border-radius:14px}.nf-video-result-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}.nf-video-result-actions a,.nf-video-result-actions button{flex:1;min-height:46px;text-align:center;display:grid;place-items:center;margin:0;padding:12px 16px;font:inherit;border-radius:14px}.nf-video-result-actions button,.nf-video-again button{border:1px solid #c9dcf1;background:#eef6ff;color:#1b5283;cursor:pointer}.nf-video-again button{display:block;width:100%;padding:14px;margin:10px 0;border-radius:14px;font:inherit}.nf-video-result-actions button:disabled{opacity:.45;cursor:default}@keyframes nf-video-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.nf-video-spinner{animation:none;border-top-color:#1769ec}}
/* V106: compact local attachment, real side drawer and coordinated media styles. */
#form .composer{display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px 44px!important;grid-template-areas:"attachment attachment attachment attachment" "input input input input" "send spacer settings attach"!important;align-items:end!important;gap:6px!important}
#form .composer #q{grid-area:input;width:100%!important;min-width:0!important;min-height:44px!important;max-height:min(150px,25dvh)!important}
#form .composer>button[type=submit]{grid-area:send}#form .composer>.nf-attach{grid-area:attach}#form .composer>.nf-director-options{grid-area:settings}
#form .composer .nf-composer-attachment{grid-area:attachment;position:relative;width:88px!important;height:100px;max-width:100%;justify-self:start;padding:0!important;margin:2px 6px 4px!important;border:1px solid #ccdeef;background:#edf4fb;border-radius:14px;overflow:hidden}
.nf-composer-attachment>p{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)}
.nf-composer-attachment img{display:block!important;width:88px!important;height:100px!important;max-height:none!important;object-fit:cover;border-radius:12px!important}
.nf-composer-attachment>button:last-child{position:absolute;inset:4px auto auto 4px;margin:0!important;padding:0!important;width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important;border:1px solid #fff!important;border-radius:50%!important;background:#14334ccc!important;color:#fff!important;font-size:21px!important;line-height:1!important}
html body[data-brand-v64] :is(dialog.nf-sidebar,dialog.nq-site-drawer)[open]:not([hidden]){inset:0 0 0 auto!important;margin:0!important;width:min(370px,88vw)!important;height:100dvh!important;max-height:100dvh!important;border:0!important;border-radius:0!important;box-shadow:-16px 0 70px #10284033!important}
body[data-brand-v64] .nf-sidebar[open],body[data-brand-v64] .nq-site-drawer[open]{display:flex!important;flex-direction:column!important;animation:nf-side-in .18s ease-out}
body[data-brand-v64] .nf-sidebar-head{padding:18px!important;flex:0 0 auto}.nf-sidebar-head h2{font-size:19px!important}.nf-sidebar-search input{font-size:16px!important}
body[data-brand-v64] .nf-sidebar-body{flex:1!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain;padding:12px 16px!important}
body[data-brand-v64] .nf-sidebar-foot{flex:0 0 auto!important;padding:12px 16px max(14px,env(safe-area-inset-bottom))!important}.nf-sidebar-account{gap:5px!important}.nf-sidebar-account :is(a,button){font-size:13px!important;min-height:44px}
.nf-sidebar::backdrop,.nq-site-drawer::backdrop{background:#081d3670!important;backdrop-filter:none!important}
.nf-sidebar svg{display:block!important;width:21px!important;height:21px!important;stroke:#2877bd!important;flex-shrink:0}.nf-sidebar .nf-character-icon{display:none!important}
.nf-director-settings{box-sizing:border-box;width:min(540px,calc(100vw - 24px))!important;max-height:calc(100dvh - 28px)!important;padding:18px!important;overflow:auto!important;overscroll-behavior:contain;border-radius:22px!important}
.nf-director-settings fieldset{margin:10px 0!important;padding:8px 0!important}.nf-director-settings legend{font-size:14px!important}.nf-director-settings fieldset button{padding:9px 12px!important;min-height:42px!important;font-size:14px!important;margin:3px!important}
.nf-director-settings .nf-color-choice:before{content:"";display:inline-block;width:15px;height:15px;border-radius:50%;background:var(--choice-color);border:1px solid #a6bacd;vertical-align:middle;margin-inline-end:6px}
@keyframes nf-side-in{from{transform:translateX(100%)}to{transform:translateX(0)}}@media(prefers-reduced-motion:reduce){.nf-sidebar[open],.nq-site-drawer[open]{animation:none!important}}
.nf-composer-attachment .nf-image-open{display:block!important;width:88px!important;height:100px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;border-radius:0!important}.nf-composer-attachment img{object-fit:contain!important}
.nf-attachment-viewer{width:min(900px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:14px;border:1px solid #c9dfef;border-radius:20px;background:#fff;overflow:auto}.nf-attachment-viewer img{display:block;max-width:100%;max-height:75dvh;object-fit:contain;margin:12px auto}.nf-attachment-viewer button{font:inherit;min-height:44px;padding:8px 16px;background:#edf5ff;border:1px solid #cee0f3;border-radius:12px;color:#174b77}.nf-attachment-viewer::backdrop{background:#061a36b8}

/* Keep the three video actions together; caption has its own row. */
.nf-video-result-actions.nf-video-primary-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:8px}
.nf-video-result-actions.nf-video-primary-actions>*{min-width:0;padding:8px 4px;font-size:clamp(12px,3.2vw,16px);line-height:1.35}
