.nie-page{display:grid;gap:16px;min-width:0}.nie-page .panel{min-width:0;padding:20px}.nie-hero{display:flex;align-items:center;gap:16px}.nie-hero h2,.nie-section h2{margin:0 0 8px;font-size:17px;font-weight:600}.nie-hero p,.nie-hero small,.nie-section small{color:var(--muted,#64748b);font-size:13px;line-height:1.55;margin:0}.nie-icon{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:12px;background:#edf2f6;color:#526b82}.nie-icon svg{width:20px;height:20px}.nie-hero-icon{width:48px;height:48px;border-radius:15px}.nie-hero-icon svg{width:25px;height:25px}.nie-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.nie-metric{display:grid;gap:8px}.nie-metric span,.nie-metric small{font-size:12px;color:var(--muted,#64748b);line-height:1.4}.nie-metric strong{font-size:clamp(18px,2vw,26px);line-height:1.2;overflow-wrap:anywhere;font-weight:600}.nie-insight,.nie-habit{display:flex;align-items:flex-start;gap:12px;padding:14px 0;border-top:1px solid #e7edf2}.nie-insight h3{font-size:14px;font-weight:600;margin:0 0 4px}.nie-insight p,.nie-muted{font-size:13px;color:var(--muted,#64748b);line-height:1.55;margin:0;overflow-wrap:anywhere}.nie-habit{justify-content:space-between;align-items:center}.nie-habit div{min-width:0;overflow-wrap:anywhere}.nie-habit b,.nie-habit strong{font-size:14px;font-weight:600}.nie-habit small{display:block}.nie-habit strong{text-align:right;overflow-wrap:anywhere;max-width:48%}.nie-section>p{margin-bottom:10px}@media(max-width:1000px){.nie-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:800px){.nie-page{gap:12px}.nie-page .panel{padding:15px}.nie-metrics{gap:8px}.nie-metric strong{font-size:20px}.nie-hero h2{font-size:16px}}
.nie-hero>div{min-width:0;flex:1}.nie-diagnosis-label{font-size:13px;color:var(--muted,#64748b);margin-bottom:12px}.nie-score{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:14px}.nie-score>div{display:grid;gap:5px;min-width:0}.nie-score strong{font-size:32px;line-height:1.1;font-weight:600}.nie-score span{font-size:14px;color:var(--muted,#64748b)}.nie-score small,.nie-diagnosis-note{font-size:12px;color:var(--muted,#64748b)}.nie-gauge{width:112px;flex:none}.nie-diagnosis-row{display:flex;align-items:center;gap:10px;border-top:1px solid #e7edf2;padding:14px 0}.nie-diagnosis-row>div{min-width:0;flex:1}.nie-diagnosis-row b{display:block;font-size:14px;font-weight:600}.nie-diagnosis-row small{display:block;font-size:12px;color:var(--muted,#64748b);margin-top:4px;line-height:1.4}.nie-diagnosis-row strong{font-size:15px;font-weight:600;text-align:right;max-width:43%;overflow-wrap:anywhere}.nie-diagnosis-icon{display:flex;flex:none}.nie-diagnosis-icon svg{width:20px;height:20px}.nie-positive{color:#21834c}.nie-negative{color:#b33535}.nie-question{display:flex;align-items:center;gap:8px;margin:12px 0}#nie-answer:not([hidden]){margin-top:12px;padding:12px;border-radius:14px;background:#f1f4f6;line-height:1.5;font-size:14px;overflow-wrap:anywhere}@media(max-width:800px){.nie-hero{gap:9px}.nie-hero-icon{width:40px;height:40px}.nie-hero h2{font-size:14px;margin-bottom:4px}.nie-hero p{font-size:12px}.nie-score strong{font-size:29px}.nie-gauge{width:100px}}

/* NIE uses the canonical form and informational badge standards. */
#app .nie-title{display:flex;align-items:center;justify-content:center;gap:9px;line-height:1.2}
.nie-title-logo{display:inline-grid;place-items:center;flex:none;width:1.05em;height:1.05em;color:#59636f}
.nie-title-logo .nexo-icon{width:100%;height:100%;stroke:currentColor;stroke-width:1.7;filter:none}

#app .nie-question{display:flex;align-items:center;gap:8px}
#app .nie-question input{min-width:0;flex:1;width:100%;height:var(--option-height,44px);min-height:var(--option-height,44px);box-sizing:border-box;padding:10px var(--option-padding,12px);font-size:var(--option-font,13px);margin:0}
#app .nie-question .nie-send{flex:0 0 var(--option-height,44px);width:var(--option-height,44px);min-width:0;max-width:none;height:var(--option-height,44px);min-height:var(--option-height,44px);padding:0;gap:0;margin:0;align-self:center;display:grid;place-items:center}
#app .nie-question .nie-send>.nexo-icon{display:block;width:19px;height:19px;flex:none;margin:0;transform:none;translate:none;color:#fff;stroke:currentColor}
@media(max-width:360px){#app .nie-title{gap:6px}.nie-hero{gap:7px}.nie-hero-icon{width:34px;height:34px}.nie-hero h2{overflow-wrap:anywhere}}

#app .nie-question .nie-send{height:45px!important;min-height:45px!important;width:45px;flex-basis:45px}

#app .nie-question .nie-send{display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important}

/* Shared inline + floating NIE chat, with native modal focus and safe-area spacing. */
#nie-float[hidden],.cloud-loading #nie-float,.guest-mode #nie-float,body:has(dialog[open]) #nie-float,body:has(#sidebar.open) #nie-float{display:none!important}
#nie-float{position:fixed;right:18px;bottom:25px;z-index:75;display:grid;place-items:center;width:54px;height:54px;border:1px solid #e0e5ec;border-radius:50%;background:rgba(252,253,255,.94);box-shadow:0 5px 18px #29364a26,inset 0 0 0 4px #e7e9f1;cursor:pointer}
#nie-float .nie-title-logo{width:29px;height:29px}
.nie-chat-controls{display:flex;justify-content:flex-start;align-items:center;gap:12px;flex-wrap:nowrap;margin:8px 0}
.nie-chat-controls-start{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;min-width:0}
.nie-chat-controls-start [data-nie-memory]{white-space:nowrap}
.nie-chat-controls button{border:0;background:none;color:var(--text-secondary);font-size:12px;padding:5px 0;cursor:pointer}
.nie-chat-controls button[aria-pressed=true]{color:#367b54}
.nie-chat-memory-note{font-size:11px;line-height:1.4;color:var(--text-muted);margin:0 0 8px}
.nie-chat-log{display:flex;flex-direction:column;gap:12px;min-height:95px;max-height:300px;overflow-y:auto;overscroll-behavior:contain;padding:8px 0;scrollbar-width:thin}
.nie-chat-message{display:flex;align-items:flex-start;gap:8px;min-width:0}
.nie-chat-message.user{justify-content:flex-end}
.nie-chat-message .nie-title-logo{width:23px;height:23px;flex:none;margin-top:7px}
.nie-chat-bubble{max-width:86%;padding:10px 12px;border-radius:15px;background:#f0f3f7;color:var(--text-primary);font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.nie-chat-message.user .nie-chat-bubble{background:#e4eaf3;border-bottom-right-radius:5px}
.nie-chat-message.assistant .nie-chat-bubble{border-bottom-left-radius:5px}
/* Shared conversation reference: user on the right, named assistant on the left. */
.nie-chat-log .nie-chat-message{width:100%;flex:none;gap:0}
.nie-chat-log .nie-chat-message.user{justify-content:flex-end}
.nie-chat-log .nie-chat-message.assistant{justify-content:flex-start}
.nie-message-content{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;max-width:100%}
.nie-chat-message.user .nie-message-content{align-items:flex-end;max-width:86%;margin-left:auto}
.nie-message-author{display:flex;align-items:center;gap:6px;font-size:12px;line-height:1.4;color:var(--text-muted)}
.nie-chat-message .nie-message-author .nie-title-logo{width:16px;height:16px;flex:none;margin:0}
.nie-chat-message .nie-message-content>.nie-chat-bubble{max-width:100%;font-size:14px;line-height:1.6;text-align:left}
.nie-chat-message.assistant .nie-message-content>.nie-chat-bubble{padding:0;border-radius:0;background:transparent}
.nie-chat-message.user .nie-message-content>.nie-chat-bubble{background:#eef1f5;border-radius:13px 13px 4px 13px}
.nie-chat-welcome h3{margin:4px 0 8px;font-size:21px;font-weight:600;line-height:1.3}
.nie-chat-welcome p{margin:0;color:var(--text-muted);font-size:13px;line-height:1.5}
.nie-suggestion-list{display:grid;gap:7px;flex:none;margin-top:6px}
.nie-suggestion-caption{font-size:12px;color:var(--text-muted);margin:0 0 2px}
.nie-chat-suggestion{display:flex;align-items:center;gap:11px;width:100%;min-height:44px;padding:9px 10px;border:1px solid #e2e7ed;border-radius:13px;background:#fff;color:var(--text-primary);text-align:left;cursor:pointer;font-size:13px}
.nie-suggestion-icon{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;color:var(--text-secondary)}
.nie-suggestion-icon svg{width:20px;height:20px}
.nie-suggestion-label{display:block;line-height:1.4;font-weight:500}
.nie-chat-suggestion small{display:block;margin-top:3px;font-size:12px;line-height:1.4;color:var(--text-muted)}
.nie-chat-suggestion:focus-visible{outline:2px solid #8a9eb8;outline-offset:2px}
@media(hover:hover){.nie-chat-suggestion:hover{background:#f3f6f9}}
.nie-chat-thinking .nie-chat-bubble{display:flex;align-items:center;gap:8px;color:var(--text-secondary)}
.nie-thinking-dots{display:inline-flex;align-items:center;gap:3px}
.nie-thinking-dots i{width:4px;height:4px;border-radius:50%;background:currentColor;animation:nie-thinking-dot 900ms ease-in-out infinite}
.nie-thinking-dots i:nth-child(2){animation-delay:150ms}.nie-thinking-dots i:nth-child(3){animation-delay:300ms}
@keyframes nie-thinking-dot{0%,80%,100%{opacity:.3}40%{opacity:1}}
@media(prefers-reduced-motion:reduce){.nie-thinking-dots i{animation:none;opacity:.6}}
/* Keep the blur stationary; animate the surface independently of the modal layer. */
#nie-chat-dialog{--nie-chat-duration:320ms;--nie-chat-ease:cubic-bezier(.2,.8,.2,1);box-sizing:border-box;position:fixed;inset:0;margin:0;width:100%;height:100%;max-height:none;max-width:none;padding:0;border:0;border-radius:0;background:transparent;color:var(--text-primary);box-shadow:none;overflow:hidden}
#nie-chat-dialog[open]{display:flex;align-items:flex-end;justify-content:flex-end}
/* Native dialog is only a stationary viewport/focus container, never a moving sheet. */
html body #nie-chat-dialog[open]{position:fixed!important;inset:0!important;margin:0!important;width:100vw!important;height:100dvh!important;min-height:0!important;max-width:none!important;max-height:none!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;display:flex!important;align-items:flex-end!important;justify-content:flex-end!important;overflow:clip!important;animation:none!important;transition:none!important;transform:none!important;translate:none!important}
html body #nie-chat-dialog::backdrop{background:transparent!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;animation:none!important}
#nie-chat-dialog .nie-chat-shade{position:absolute;inset:0;pointer-events:none;background:#17233430;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);will-change:opacity}
#nie-chat-dialog[open].nie-chat-opening .nie-chat-shade{animation:nie-chat-shade var(--nie-chat-duration) var(--nie-chat-ease) both}
@keyframes nie-chat-shade{from{opacity:0}to{opacity:1}}
#nie-chat-dialog .nie-chat-surface{box-sizing:border-box;position:relative;display:flex;flex-direction:column;flex:none;width:min(420px,calc(100vw - 40px));height:min(620px,80dvh);max-height:80dvh;max-width:100%;margin:20px;border:1px solid #e0e5ec;border-radius:32px;background:#fafbfc;box-shadow:0 16px 60px #26384b28;overflow:hidden}
.nie-chat-header{display:flex;align-items:center;gap:12px;padding:27px 18px 20px;flex-shrink:0;border-bottom:1px solid #e3e8ee}
.nie-chat-header>.nie-title-logo{width:30px;height:30px}
.nie-chat-header>div{flex:1;min-width:0}.nie-chat-header h2{font-size:21px;font-weight:600;line-height:1.3;margin:0 0 4px}.nie-chat-header small{font-size:12px;color:var(--text-muted)}
.nie-chat-header button{width:36px;height:36px;display:grid;place-items:center;border:0;background:transparent;color:var(--text-secondary);flex:none}
.nie-chat-body{padding:12px 16px 16px;display:flex;flex-direction:column;flex:1;min-height:0}
.nie-chat-body .nie-chat-log{flex:1;max-height:none;min-height:0}
#nie-chat-dialog .nie-question{display:grid!important;grid-template-columns:minmax(0,1fr) 45px;align-items:center!important;gap:8px;margin:10px 0 0;padding:0;flex:none}
html body #nie-chat-dialog .nie-question>input,html body #nie-chat-dialog .nie-question>.nie-send{box-sizing:border-box!important;margin:0!important;align-self:center!important;justify-self:stretch!important;height:45px!important;min-height:45px!important;max-height:45px!important;transform:none!important;translate:none!important;position:relative;top:auto;bottom:auto}
#nie-chat-dialog .nie-question input{flex:1;min-width:0;width:100%;height:45px!important;min-height:45px!important;padding:10px 12px;font-size:16px;background:#f3f6f9!important;border:1px solid #e3e8ee!important;border-radius:13px!important;box-shadow:none!important}
#nie-chat-dialog .nie-send{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 45px;width:45px!important;min-width:45px!important;height:45px!important;min-height:45px!important;border-radius:50%!important;padding:0!important;gap:0;color:white;background:#ec0000}
#nie-chat-dialog .nie-send>.nexo-icon{display:block;width:19px;height:19px;flex:none;margin:0;color:white}
@layer nexo-form-standard {#nie-chat-dialog .nie-send{--nexo-form-radius:50%;border-radius:50%!important}}
/* The inline page and floating chat share the same circular send control. */
@layer nexo-form-standard {#app .nie-chat-form .nie-send,#nie-chat-dialog .nie-send{--nexo-form-radius:50%;border-radius:50%!important}}
#app .nie-chat-form .nie-send>.nexo-icon,#nie-chat-dialog .nie-send>.nexo-icon{stroke-width:2!important}
.nie-chat-form :disabled{opacity:.55;cursor:not-allowed}
@media(max-width:800px){#nie-float{right:16px;bottom:calc(92px + env(safe-area-inset-bottom,0px));width:50px;height:50px}#nie-chat-dialog .nie-chat-surface{width:100%;height:70dvh;max-height:85dvh;margin:0;border-radius:32px 32px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}#nie-chat-dialog[open].nie-chat-opening .nie-chat-surface{animation:nie-chat-slide var(--nie-chat-duration) var(--nie-chat-ease) both}.nie-chat-bubble{font-size:14px}}
@keyframes nie-chat-slide{from{transform:translateY(100%)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#nie-chat-dialog[open].nie-chat-opening .nie-chat-surface,#nie-chat-dialog[open].nie-chat-opening .nie-chat-shade{animation:none!important}}

/* Floating shortcut is intentionally exempt from the form's square controls. */
html body #nie-float{box-sizing:border-box!important;position:fixed!important;width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important;max-width:50px!important;max-height:50px!important;aspect-ratio:1;border-radius:50%!important;padding:0!important;margin:0!important;display:grid;place-items:center;background:#fff!important;background-image:none!important;border:1px solid #e2e5eb!important;box-shadow:0 2px 8px #26384b14!important;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab;transition:left .22s cubic-bezier(.2,.7,.25,1),top .22s cubic-bezier(.2,.7,.25,1);transform:none!important;translate:none!important}
html body #nie-float.nie-float-dragging{transition:none!important;cursor:grabbing}
html body #nie-float[hidden],.cloud-loading body #nie-float,.guest-mode #nie-float,body:has(dialog[open]) #nie-float,body:has(#sidebar.open) #nie-float{display:none!important}
#nie-float .nie-title-logo{pointer-events:none;width:27px;height:27px}
#nie-float .nie-title-logo .nexo-icon{filter:none}
.nie-float-safe-area{position:fixed;visibility:hidden;pointer-events:none;width:0;height:0;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
@media(prefers-reduced-motion:reduce){html body #nie-float{transition:none}}


/* Original monochrome NIE mark; separate conversation glyph for floating access. */
.nie-title-logo,.nie-hero-icon{color:#59636f}.nie-title-logo .nexo-icon,.nie-title-logo .nexo-icon path,.nie-hero-icon .nexo-icon,.nie-hero-icon .nexo-icon path{stroke:currentColor!important;filter:none!important}
#nie-float{color:#59636f!important}#nie-float .nie-float-glyph{display:grid;place-items:center;width:24px;height:24px;pointer-events:none}#nie-float .nie-float-glyph svg{width:24px;height:24px;display:block;stroke:currentColor;fill:none}


/* Borderless liquid-glass droplet; same blur and saturation as approved Nexo glass controls. */
html body #nie-float{width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important;max-width:54px!important;max-height:54px!important;border-radius:50%!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;transition:left .36s cubic-bezier(.18,.85,.25,1),top .36s cubic-bezier(.18,.85,.25,1)}
#nie-float .nie-float-visual{position:relative;display:grid;place-items:center;width:100%;height:100%;border:0;border-radius:50%;pointer-events:none;background:radial-gradient(ellipse at 29% 17%,rgba(255,255,255,.42) 0%,rgba(255,255,255,.14) 34%,transparent 62%),radial-gradient(ellipse at 80% 85%,rgba(255,255,255,.18),transparent 53%),rgba(236,0,0,.78);-webkit-backdrop-filter:blur(24px) saturate(1.65);backdrop-filter:blur(24px) saturate(1.65);box-shadow:0 5px 17px rgba(35,46,64,.15),inset 0 5px 12px rgba(255,255,255,.18),inset 0 -5px 10px rgba(90,0,0,.10);transform-origin:center;transition:transform .18s cubic-bezier(.2,.8,.2,1),box-shadow .2s ease}
#nie-float .nie-title-logo{position:relative;display:grid;place-items:center;width:28px;height:28px;color:#fff}
html body #nie-float.nie-float-pressed,html body #nie-float.nie-float-dragging{transition:none!important}
#nie-float.nie-float-pressed .nie-float-visual{transform:scale(.95)}
#nie-float.nie-float-dragging .nie-float-visual{transform:scale(1.08);box-shadow:0 10px 24px rgba(35,46,64,.20),inset 0 5px 12px rgba(255,255,255,.20),inset 0 -5px 10px rgba(90,0,0,.12)}
#nie-float.nie-float-settling .nie-float-visual{animation:nie-float-settle .44s cubic-bezier(.22,.75,.24,1) both}
@keyframes nie-float-settle{0%{transform:scale(1.08)}55%{transform:scale(.97)}100%{transform:scale(1)}}
html body #nie-float{outline:none!important;outline-offset:0!important;-webkit-tap-highlight-color:transparent!important}
html body #nie-float[data-nie-keyboard-focus]:focus-visible{outline:2px solid #74859b!important;outline-offset:3px!important}
@media(max-width:800px){html body #nie-float{width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important;max-width:54px!important;max-height:54px!important}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){#nie-float .nie-float-visual{background:rgba(236,0,0,.95)}}
@media(prefers-reduced-motion:reduce){html body #nie-float,#nie-float .nie-float-visual{transition:none!important}#nie-float.nie-float-settling .nie-float-visual{animation:none!important}#nie-float.nie-float-pressed .nie-float-visual,#nie-float.nie-float-dragging .nie-float-visual{transform:none}}

/* Chat close control reuses close-controls.css, matching Nova transação. */

/* Approved red circular launcher and compact white mark. */
html body #nie-float{width:58px!important;height:58px!important;min-width:58px!important;min-height:58px!important;max-width:58px!important;max-height:58px!important;border-radius:50%!important}
#nie-float .nie-float-visual{border-radius:50%;background:linear-gradient(135deg,#ff5252 0%,#ec0000 50%,#ad0028 100%);background-size:160% 160%;background-position:0 0;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.25),0 6px 18px rgba(190,0,30,.26),0 2px 4px rgba(15,15,15,.12);transition:transform .2s cubic-bezier(.2,.8,.25,1.3),box-shadow .2s ease,background-position .5s ease}
#nie-float .nie-title-logo{width:24px;height:24px}
#nie-float .nie-float-visual::after{content:"";position:absolute;top:-3px;right:-3px;box-sizing:content-box;width:14px;height:14px;border:2.5px solid #fff;border-radius:50%;background:#2ecc71;box-shadow:0 0 0 0 rgba(46,204,113,.5);animation:nie-launch-ping 2.4s ease-out infinite}
@keyframes nie-launch-ping{0%{box-shadow:0 0 0 0 rgba(46,204,113,.5)}70%,100%{box-shadow:0 0 0 8px rgba(46,204,113,0)}}
@media(hover:hover) and (pointer:fine){
 #nie-float:not(.nie-float-pressed):not(.nie-float-dragging):not(.nie-float-settling):hover .nie-float-visual{transform:translateY(-3px);animation:nie-launch-hover-bounce .55s cubic-bezier(.2,.7,.3,1) both;background-position:100% 100%;box-shadow:inset 0 0 0 1px rgba(255,255,255,.3),0 10px 26px rgba(190,0,30,.36),0 2px 4px rgba(15,15,15,.12)}
}
@keyframes nie-launch-hover-bounce{0%{transform:translateY(0) rotate(0) scale(1)}35%{transform:translateY(-7px) rotate(-4deg) scale(1.04)}65%{transform:translateY(-2px) rotate(3deg) scale(1.01)}100%{transform:translateY(-3px) rotate(0) scale(1)}}
#nie-float[data-nie-keyboard-focus]:focus-visible .nie-float-visual{transform:translateY(-3px);background-position:100% 100%}
@media(prefers-reduced-motion:reduce){#nie-float .nie-float-visual{transition:none}#nie-float .nie-float-visual::after{animation:none}html body #nie-float .nie-float-visual{transform:none!important;animation:none!important}}

/* Original assistant mark inside the shared question field. */
#app .nie-chat-form,#nie-chat-dialog .nie-chat-form{position:relative}
#app .nie-chat-form .nie-composer-logo,#nie-chat-dialog .nie-chat-form .nie-composer-logo{position:absolute;left:12px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:18px;height:18px;color:#737d89;pointer-events:none;z-index:1}
.nie-composer-logo>.nexo-icon{display:block;width:18px;height:18px;stroke:currentColor}
html body #app .nie-chat-form input[name="question"],html body #nie-chat-dialog .nie-chat-form input[name="question"]{padding-left:39px!important}

.nie-assistant-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.nie-assistant-heading h2{margin:0;min-width:0}
.nie-chat-controls-start{display:flex;align-items:center;gap:10px;width:100%;min-width:0}
#app .nie-chat-controls [data-nie-memory],#nie-chat-dialog .nie-chat-controls [data-nie-memory]{display:inline-flex;align-items:center;gap:8px;min-width:0;flex:none;padding:4px 0!important;background:transparent!important;border:0!important;box-shadow:none!important;font-size:12px;font-weight:400;color:var(--text-secondary);white-space:nowrap;cursor:pointer}
.nie-chat-controls [data-nie-memory] .nexo-icon,.nie-mobile-float-toggle .nexo-icon{display:block;width:16px;height:16px;flex:none;color:#737d89;stroke:currentColor;stroke-width:1.6}
.nie-memory-track{display:block;box-sizing:border-box;width:34px;height:20px;padding:2px;border-radius:999px;background:#c8ced6;flex:none}
.nie-memory-track .nexo-switch-knob{display:block;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transform:translateX(0)}
[data-nie-memory][aria-checked="true"] .nie-memory-track{background:var(--red,#ec0000)}
[data-nie-memory][aria-checked="true"] .nexo-switch-knob{transform:translateX(14px)}
.nie-chat-controls [data-nie-memory]:focus-visible{outline:2px solid #687d90;outline-offset:3px}
.nie-chat-controls [data-nie-clear]{margin-left:auto;flex:none}
.nie-mobile-float-toggle{display:none}
@media(max-width:800px){
#app .nie-chat-inline .nie-chat-controls{margin:8px 0 16px}
#app .nie-chat-inline .nie-chat-controls-start{box-sizing:border-box;background:#f2f3f5;border-radius:15px;padding:7px 12px;min-height:54px;gap:10px;flex-wrap:nowrap}
#app .nie-chat-inline .nie-mobile-float-toggle{display:flex;align-items:center;gap:7px;flex:none;margin-left:auto;font-size:12px;font-weight:400;color:var(--text-secondary);cursor:pointer;white-space:nowrap}
#app .nie-chat-inline [data-nie-clear]{display:grid!important;place-items:center;box-sizing:border-box;width:28px!important;min-width:28px!important;max-width:28px!important;height:28px!important;min-height:28px!important;padding:0 0 0 9px!important;margin:0!important;border:0!important;border-left:1px solid #dce0e5!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#737d89}
#app .nie-chat-inline [data-nie-clear] .nexo-icon{width:17px;height:17px}
html body #app .nie-mobile-float-toggle input[role="switch"]{appearance:none;-webkit-appearance:none;position:relative;box-sizing:border-box;width:34px!important;min-width:34px!important;max-width:34px!important;height:20px!important;min-height:20px!important;max-height:20px!important;border:0!important;border-radius:10px!important;background:#c8ced6;margin:0;padding:2px!important;cursor:pointer;flex:none}
#app .nie-mobile-float-toggle input[role="switch"]::before{content:"";display:block;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transform:translateX(0)}
#app .nie-mobile-float-toggle input[role="switch"]:checked{background:var(--red,#ec0000)}
#app .nie-mobile-float-toggle input[role="switch"]:checked::before{transform:translateX(14px)}
#app .nie-mobile-float-toggle input[role="switch"]:focus-visible{outline:2px solid #687d90;outline-offset:3px}
}
@media(max-width:370px){.nie-assistant-heading{flex-wrap:wrap}#app .nie-chat-inline .nie-chat-controls-start{padding:7px 6px;gap:5px}#app .nie-chat-inline .nie-mobile-float-toggle,#app .nie-chat-inline [data-nie-memory]{gap:4px;font-size:11px}#app .nie-chat-inline [data-nie-clear]{width:23px!important;min-width:23px!important;max-width:23px!important;padding-left:5px!important}}

/* Approved centered assistant welcome and toolbar. */
html body #app .nie-chat-inline .nie-chat-controls-start,html body #nie-chat-dialog .nie-chat-controls-start{display:flex;align-items:center;justify-content:space-between;width:100%;flex:1 1 100%;min-width:0}
html body #app .nie-chat-inline .nie-chat-controls,html body #nie-chat-dialog .nie-chat-controls{width:100%;box-sizing:border-box}
html body .nie-chat-controls .nie-clear-action{display:grid;place-items:center;flex:0 0 36px;width:36px;min-width:36px;height:36px;min-height:36px;box-sizing:border-box;margin:0 0 0 auto!important;padding:0!important;background:#f2f3f5;border:0;border-radius:10px;color:#737d89;cursor:pointer}
.nie-clear-action .nexo-icon{width:20px;height:20px;stroke:currentColor}
@media(hover:hover){html body .nie-chat-controls .nie-clear-action:hover{background:#e9ebef}}
@media(max-width:800px){html body #app .nie-chat-inline .nie-chat-controls-start{justify-content:flex-start}html body #app .nie-chat-inline .nie-mobile-float-toggle{margin-left:auto}html body #app .nie-chat-inline .nie-clear-action{flex:0 0 26px!important;width:26px!important;min-width:26px!important;max-width:26px!important;height:28px!important;min-height:28px!important;margin:0!important;padding:0 0 0 7px!important;border-left:1px solid #dce0e5!important;border-radius:0!important;background:transparent!important}}
@media(max-width:370px){html body #app .nie-chat-inline .nie-clear-action{flex-basis:22px!important;width:22px!important;min-width:22px!important;max-width:22px!important;padding-left:4px!important}}

/* Assistant conversation is modal-only; hero hosts the launcher settings. */
#app .nie-hero-chat-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:0 0 auto;min-width:0}
#app .nie-hero-chat-actions .nie-hero-open{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:5px 10px;border:0;background:#f2f3f5;color:var(--text-secondary);border-radius:10px;font-size:12px;cursor:pointer;white-space:nowrap}
.nie-hero-open .nexo-icon{width:16px;height:16px;flex:none}
@media(max-width:800px){#app .nie-hero{flex-wrap:wrap}#app .nie-hero>div:not(.nie-hero-chat-actions){flex:1;min-width:100px}#app .nie-hero-chat-actions{flex:1 0 100%;justify-content:flex-end;gap:14px}#app .nie-hero-chat-actions .nie-mobile-float-toggle{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--text-secondary);white-space:nowrap;cursor:pointer}}
@media(min-width:801px){#app .nie-hero-chat-actions .nie-mobile-float-toggle{display:none}}

/* Engine status and site-standard chat confirmations. */
#app .nie-hero .nie-hero-chat-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto;min-width:0}
#app .nie-hero .nie-hero-chat-actions .nie-status{display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;background:#eff9f3;color:#367b54;border-color:transparent;border-radius:9px!important}
#app .nie-hero .nie-hero-chat-actions .nie-status.nie-status-off{background:#fff0f0;color:#ec0000}
#app .nie-hero .nie-hero-chat-actions .nie-status .nexo-icon{width:15px;height:15px;flex:0 0 15px}
@media(max-width:800px){#app .nie-hero .nie-hero-chat-actions{flex:0 0 auto;gap:7px}#app .nie-hero-chat-actions .nie-mobile-float-toggle{display:inline-flex;margin:0}}
@media(min-width:801px){#app .nie-hero-chat-actions .nie-mobile-float-toggle{display:none!important}}
html body #nie-chat-dialog .nie-chat-controls .nie-clear-action{box-sizing:border-box;display:grid;place-items:center;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;max-width:36px!important;max-height:36px!important;flex:0 0 36px;padding:7px!important;border-radius:13px!important;background:#edf2f6!important;color:var(--text-secondary,#59636f)!important;border:1px solid #dbe5ee!important;box-shadow:none!important;transition:color .16s ease,background-color .16s ease,border-color .16s ease}
#nie-chat-dialog .nie-clear-action .nexo-icon{display:block;width:20px;height:20px;stroke-width:1.2;pointer-events:none}
@media(hover:hover) and (pointer:fine){html body #nie-chat-dialog .nie-chat-controls .nie-clear-action:hover{background:#fff0f0!important;color:var(--red,#ec0000)!important;border-color:#f4d9d9!important}}
#nie-chat-dialog .nie-clear-action:focus-visible{outline:2px solid #687d90;outline-offset:2px}
html body #nie-confirm-dialog{box-sizing:border-box;width:min(390px,calc(100vw - 32px));max-width:calc(100vw - 32px);height:auto;max-height:calc(100dvh - 32px);position:fixed;inset:0;margin:auto;padding:20px;border:1px solid #e0e5ec;border-radius:20px;background:#fff;color:var(--text-primary,#252a31);box-shadow:0 16px 60px #26384b28;overflow:auto}
#nie-confirm-dialog::backdrop{background:rgba(32,39,49,.18);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
#nie-confirm-dialog .nie-confirm-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
#nie-confirm-dialog h2{font-size:18px;font-weight:600;line-height:1.3;margin:0}
#nie-confirm-dialog p{font-size:13px;line-height:1.55;color:var(--text-secondary,#626b76);margin:10px 0 20px}
#nie-confirm-dialog .nie-confirm-actions{display:flex;gap:8px;justify-content:flex-end}
html body #nie-confirm-dialog .nie-confirm-actions button{display:inline-flex;align-items:center;justify-content:center;flex:1;min-height:40px;padding:8px 14px;border-radius:13px;font-size:13px;font-weight:500;cursor:pointer}
html body #nie-confirm-dialog .nie-confirm-cancel{background:#f1f3f5;color:#555e69;border:1px solid #e2e6eb}
html body #nie-confirm-dialog .nie-confirm-actions .primary{background:var(--red,#ec0000);color:white;border:1px solid var(--red,#ec0000)}
@media(prefers-reduced-motion:reduce){#nie-chat-dialog .nie-clear-action{transition:none}}

/* Confirmations on all viewports are centered and content-sized. */
html body dialog#nie-confirm-dialog#nie-confirm-dialog[open]{display:block!important;position:fixed!important;inset:0!important;margin:auto!important;width:min(390px,calc(100vw - 32px))!important;min-width:0!important;max-width:calc(100vw - 32px)!important;height:fit-content!important;min-height:0!important;max-height:calc(100dvh - 32px)!important;box-sizing:border-box!important;overflow:auto!important;align-self:center!important;justify-self:center!important}

html body dialog#nie-confirm-dialog#nie-confirm-dialog[open]{top:0!important;bottom:0!important;left:0!important;right:0!important;height:fit-content!important;block-size:fit-content!important;min-block-size:0!important;max-block-size:calc(100dvh - 32px)!important;transform:none!important;translate:none!important;animation:none!important}
#nie-confirm-dialog #nie-confirm-title:focus{outline:none!important;box-shadow:none!important}
@media(pointer:coarse){html body #nie-confirm-dialog .nie-confirm-actions button:focus:not(:focus-visible){outline:none!important;box-shadow:none!important}}

/* Temporary chat: quiet inline inactivity warning, no memory/trash toolbar. */
#nie-chat-dialog .nie-chat-idle-notice{flex:none;margin:0 0 10px;padding:9px 12px;border:1px solid #ebdfc6;border-radius:9px;background:#fff8e9;color:#805c24;font-size:12px;line-height:1.45}
#nie-chat-dialog .nie-chat-idle-notice[hidden]{display:none!important}

/* Chat processing indicator: staggered vertical wave, independent of the modal animation. */
#nie-chat-dialog .nie-thinking-dots{display:inline-flex;align-items:center;gap:4px;min-height:14px;overflow:visible}
#nie-chat-dialog .nie-thinking-dots i{display:block;flex:0 0 4px;width:4px;height:4px;background:currentColor;border-radius:50%;animation:nie-thinking-wave 850ms ease-in-out infinite;will-change:transform,opacity}
#nie-chat-dialog .nie-thinking-dots i:nth-child(2){animation-delay:120ms}#nie-chat-dialog .nie-thinking-dots i:nth-child(3){animation-delay:240ms}
@keyframes nie-thinking-wave{0%,65%,100%{transform:translateY(0);opacity:.45}32%{transform:translateY(-4px);opacity:1}}
/* The user explicitly requests this tiny status animation even with device motion reduction. Keep reduced amplitude and slower speed; other app motion remains unchanged. */
@media(prefers-reduced-motion:reduce){#nie-chat-dialog .nie-thinking-dots i{animation:nie-thinking-wave-gentle 1200ms ease-in-out infinite!important}#nie-chat-dialog .nie-thinking-dots i:nth-child(2){animation-delay:150ms!important}#nie-chat-dialog .nie-thinking-dots i:nth-child(3){animation-delay:300ms!important}}
@keyframes nie-thinking-wave-gentle{0%,65%,100%{transform:translateY(0);opacity:.5}32%{transform:translateY(-2px);opacity:1}}
#nie-chat-dialog .nie-suggestion-icon{color:var(--nie-ocean1,#0369a1)}#nie-chat-dialog .nie-suggestion-icon svg{width:23px;height:23px}

/* Single-line engine identity aligns with the Chat IA controls. */
#app .nie-hero>div:not(.nie-hero-chat-actions){align-self:center}
#app .nie-hero>div>h2{margin:0;line-height:1.3}

/* Shared desktop/mobile title text alignment. */
#app .page-head[data-heading-page="Nexo Intelligence"]>div{display:flex;flex-direction:column;align-items:flex-start;width:fit-content;max-width:100%}
#app .page-head[data-heading-page="Nexo Intelligence"] .nie-title{margin-bottom:0}
#app .page-head[data-heading-page="Nexo Intelligence"] .subtitle{align-self:flex-start;white-space:nowrap;box-sizing:border-box;text-align:left;letter-spacing:0;margin-top:2px}
