/* Chat is a conversation viewport; workflows and management live in the drawer. */
body.nf-clean-chat main.chat{max-width:940px!important;padding:18px 22px calc(var(--chat-dock-height,130px) + 28px)!important;min-height:calc(100dvh - 76px)}
body.nf-clean-chat .chat #business-hero{display:flex;min-height:0!important;padding:24px 12px!important;background:none!important;border:0!important;box-shadow:none!important;border-radius:0;overflow:visible;align-items:center}
body.nf-clean-chat .chat #business-hero::before{display:none}
body.nf-clean-chat .chat #business-hero>*{max-width:100%!important;align-self:center!important;text-align:center!important}
body.nf-clean-chat .chat #business-hero .nf-nefro-portrait{display:block!important;width:68px!important;height:68px!important;border-radius:20px;object-fit:cover;margin:0 0 12px!important}
body.nf-clean-chat .chat #business-hero h1{font-size:28px!important;color:#153451!important;line-height:1.6!important}
body.nf-clean-chat .chat #business-hero h1 span{color:#086bce!important}
body.nf-clean-chat .chat #business-hero .nf-assistant-name{color:#426784;background:none;border:0;margin:0 0 8px!important;padding:0}
body.nf-clean-chat .chat #business-hero>p:not(.nf-assistant-name){color:#587087!important;font-size:14px;max-width:460px!important;margin:0!important}
body.nf-clean-chat .chat .chatcompose.chat-dock,body.nf-clean-chat .chat:not(.has-conversation)>.chatcompose.chat-dock{position:fixed!important;inset:auto!important;bottom:var(--keyboard-offset,0px)!important;left:50%!important;transform:translateX(-50%);width:calc(100% - 24px)!important;max-width:844px!important;margin:0!important;padding:8px 0 max(8px,env(safe-area-inset-bottom))!important;background:#f0f5fc!important;z-index:30;align-self:auto}
body.nf-clean-chat .composer{box-shadow:0 4px 18px #1238660c!important;align-items:flex-end}
body.nf-clean-chat .composer textarea{min-height:44px!important;max-height:min(130px,28dvh)!important;resize:none!important;outline:none!important;border:0!important;box-shadow:none!important}
body.nf-clean-chat .composer textarea:focus-visible{outline:none!important;box-shadow:none!important}
body.nf-clean-chat .composer:focus-within{outline:none!important;border-color:#258bdc!important;box-shadow:0 0 0 2px #258bdc15!important}
body.nf-clean-chat :is(.smart-pen,.composer-pen,.pen-badge,.header-pen-replay,.writing-status){display:none!important}
body.nf-clean-chat .chat :is(.ink h2,.ink h3,.ink strong,.response-block-header,.response-block h3){color:#153451!important}
body.nf-clean-chat #follow-reply{position:static!important;display:block;margin:0 auto 7px!important;transform:none!important;width:fit-content;min-height:32px;padding:4px 12px;font-size:11px;border:1px solid #cbdff1;background:#fff;border-radius:18px}
body.nf-clean-chat #follow-reply[hidden]{display:none!important}
body.nf-clean-chat.nf-keyboard-open .chatcompose>.note{display:none}
body.nf-clean-chat .chat>.v39-more,body.nf-clean-chat .chat>.nf-owner-tools,body.nf-clean-chat .chat>.nf-library-v92{display:none!important}
body[data-brand-v64] .nf-workflow-nav{display:grid;gap:10px;padding-block:4px 20px;border-bottom:1px solid #d5e2f1;margin-bottom:16px;min-width:0}
body[data-brand-v64] .nf-workflow-nav h3{font-size:14px;margin:0}
body[data-brand-v64] .nf-workflow-nav>button{display:flex;align-items:center;gap:9px;justify-content:flex-start;text-align:start;margin:0;padding:12px;min-height:46px}
body[data-brand-v64] .nf-workflow-nav svg{width:20px;height:20px;flex-shrink:0}
body[data-brand-v64] .nf-workflow-nav #business-lanes{display:block!important;max-width:100%;margin:0}
body[data-brand-v64] .nf-workflow-nav .nf-guided-entry{display:grid;grid-template-columns:1fr;gap:6px}
body[data-brand-v64] .nf-workflow-nav #business-lanes button{display:flex;align-items:center;gap:8px;min-height:44px;margin:0;text-align:start;justify-content:flex-start;padding:10px 12px;border-radius:12px;font-size:13px}
body[data-brand-v64] .nf-workflow-nav :is(.nf-owner-tools,.v39-more){margin:0;width:100%;border:1px solid #d5e2f1;border-radius:12px;padding:10px;background:#fff}
body[data-brand-v64] .nf-workflow-nav summary{font-size:13px;cursor:pointer}
body[data-brand-v64] .nf-workflow-nav p{font-size:11px;line-height:1.8;margin:4px 0;color:#587087}
body[data-brand-v64] .nf-workflow-nav .nf-project-strip{display:flex;flex-wrap:wrap;margin:0;padding:0;background:none}
body[data-brand-v64] .nf-workflow-nav button[hidden]{display:none!important}
body[data-brand-v64] .nf-workflow-nav .nf-private-actions[hidden]{display:none!important}
body[data-brand-v64] :is(.nq-site-links,.nf-sidebar-links,.nf-sidebar-account) :is(a,button){display:flex;align-items:center;gap:9px;min-height:44px;padding:10px 12px;border-radius:12px;font-size:14px}
body[data-brand-v64] :is(.nq-site-links,.nf-sidebar-links,.nf-sidebar-account) svg{width:20px;height:20px;flex-shrink:0}
.nf-stories{padding:22px;background:#fff;border:1px solid #cfdfef;border-radius:23px;margin-block:16px;min-width:0;overflow-wrap:anywhere;scroll-margin-top:90px}
.nf-stories[hidden]{display:none}
.nf-story-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.nf-stories h2{font-size:22px;margin:0}
.nf-stories p{font-size:14px;line-height:1.85}
.nf-stories label{display:block;margin:14px 0;font-size:14px;line-height:1.8}
.nf-stories input:not([type=range]),.nf-stories select{display:block;width:100%;padding:10px;margin-top:6px;min-height:44px}
.nf-stories input[type=range]{display:block;width:100%;margin-block:12px;accent-color:#086bdb}
.nf-stories button,.nf-stories a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 13px;margin:4px;border:1px solid #cbdff1;border-radius:12px;background:#eef5ff;color:#174a76;font-size:13px;font-family:inherit;text-decoration:none;cursor:pointer;max-width:100%}
.nf-stories button:disabled{opacity:.55;cursor:wait}
.nf-story-cast{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.nf-story-cast button{display:flex;flex-direction:column;gap:8px;padding:12px;margin:0;text-align:center;align-items:center;justify-content:flex-start}
.nf-story-cast img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:14px}
.nf-story-cast span{font-size:11px;color:#587087}
.nf-story-preview,.nf-story-output video{display:block;width:min(100%,340px);height:auto;aspect-ratio:9/16;margin:14px auto;border-radius:18px;background:#071f40}
.nf-story-actions{display:flex;flex-wrap:wrap;gap:4px}
.nf-story-progress{font-size:12px!important;color:#086bce;background:#edf5ff;padding:8px 12px;border-radius:10px}
.nf-story-caption{white-space:pre-wrap;font:inherit;line-height:1.9;padding:16px;background:#f2f7fd;border-radius:12px}
@media(max-width:600px){body.nf-clean-chat main.chat{padding-inline:14px!important;min-height:calc(var(--nf-visible-height,100dvh) - 66px)}body.nf-clean-chat .chat #business-hero{padding:18px 8px!important}body.nf-clean-chat .chat #business-hero h1{font-size:25px!important}.nf-stories{padding:16px}.nf-story-cast{grid-template-columns:repeat(2,minmax(0,1fr))}.nf-stories h2{font-size:20px}}
body[data-brand-v64] svg.nf-character-icon{width:28px!important;height:28px!important;border-radius:9px;overflow:hidden;filter:none!important;flex-shrink:0}
body[data-brand-v64] .nf-menu-character{width:28px;height:28px;border-radius:9px;object-fit:cover;flex-shrink:0}
body[data-brand-v64] .nf-sidebar-head,body[data-brand-v64] .nq-site-drawer-head{border-bottom:1px solid #d5e2f1;background:#f8fbff!important}
body[data-brand-v64] .nf-sidebar h2,body[data-brand-v64] .nq-site-drawer h2{color:#153451;font-size:21px}
body[data-brand-v64] .nf-sidebar-body{padding-block:16px}
body[data-brand-v64] .nf-sidebar button{box-shadow:none!important}
body[data-brand-v64] .nf-sidebar button:hover,body[data-brand-v64] .nq-site-links a:hover{background:#e8f3ff!important}
body[data-brand-v64=owner] .assistant-card{border-radius:20px!important;background:linear-gradient(145deg,#fff,#edf5ff)!important;padding:22px;border-color:#cfdfef!important}
body[data-brand-v64=owner] #role-avatar{width:84px!important;height:84px!important;border-radius:24px;object-fit:cover}
body.nf-clean-chat .chat>.nf-project-strip,body.nf-clean-chat .chat>p.note{display:none}
body.nf-clean-chat .nf-sidebar .nf-project-strip{display:flex!important}
body[data-brand-v64] :is(dialog.nf-sidebar,dialog.nq-site-drawer){inset:8px 8px 8px auto!important;margin:0!important;width:min(420px,calc(100vw - 16px))!important;height:calc(var(--nf-visible-height,100dvh) - 16px);max-height:calc(var(--nf-visible-height,100dvh) - 16px)!important;border:1px solid #cbdff1;border-radius:22px!important;box-shadow:0 20px 70px #07294a30!important;overflow:auto}
body[data-brand-v64] :is(.nf-sidebar-foot,.nq-site-drawer-foot){border-top:1px solid #d5e2f1;background:#fff;padding:16px}
