.nelo{display:inline-flex;flex:none;width:var(--nelo-size,48px);height:var(--nelo-size,48px);align-items:center;justify-content:center;vertical-align:middle}
.nelo-svg{display:block;width:100%;height:100%;overflow:visible}
.nelo-body{transform-origin:80px 79px;filter:drop-shadow(0 5px 6px rgba(20,63,50,.13))}
.nelo-eyes{transform-origin:80px 74px;transform:translate(var(--look-x,0px),var(--look-y,0px));transition:transform .16s ease}
.nelo.is-blinking .nelo-eyes{transform:translate(var(--look-x,0px),var(--look-y,0px)) scaleY(.08)}
.nelo-face-acc{transform:translate(var(--look-x,0px),var(--look-y,0px));transition:transform .16s ease}
.nelo[data-nelo-state="idle"] .nelo-body{animation:nelo-breathe 3.8s ease-in-out infinite}
.nelo[data-nelo-state="thinking"] .nelo-body,.nelo[data-nelo-state="searching"] .nelo-body,.nelo[data-nelo-state="sourcing"] .nelo-body{animation:nelo-think 1.8s ease-in-out infinite}
.nelo[data-nelo-state="talking"] .nelo-body{animation:nelo-talk .45s ease-in-out infinite alternate}
.nelo[data-nelo-state="confirmed"] .nelo-body,.nelo[data-nelo-state="finished"] .nelo-body{animation:nelo-celebrate .65s ease-in-out 2}
.nelo[data-nelo-state="syncing"] .nelo-body{animation:nelo-box 1.2s ease-in-out infinite alternate}
.nelo[data-nelo-state="approval"] .nelo-badge,.nelo[data-nelo-state="stopped"] .nelo-badge{animation:nelo-pulse 1s ease-in-out infinite alternate}
.nelo[data-nelo-state="question"] .nelo-body{transform:rotate(-5deg)}
.nelo[data-nelo-state="searching"] .nelo-eyes{animation:nelo-scan 1.5s ease-in-out infinite alternate}
.nelo[data-nelo-state="talking"] .nelo-mouth{transform-origin:80px 92px;animation:nelo-mouth .28s ease-in-out infinite alternate}
.nelo[data-nelo-state="sleeping"] .nelo-z{animation:nelo-float 2s ease-in-out infinite}
.nelo[data-nelo-state="greeting"] .nelo-body{animation:nelo-wave .8s ease-in-out 2}
.nelo[data-nelo-state="dizzy"] .nelo-body{animation:nelo-dizzy .9s ease-in-out infinite alternate}
.nelo[data-nelo-state="dancing"] .nelo-body{animation:nelo-dance .6s ease-in-out infinite alternate}
.nelo.nelo-pop .nelo-body{animation:nelo-pop .5s cubic-bezier(.2,.8,.3,1) 1}
@keyframes nelo-breathe{50%{transform:scale(1.018,.985)}}
@keyframes nelo-think{50%{transform:translateY(-3px) rotate(-2deg)}}
@keyframes nelo-talk{to{transform:scale(1.035,.96)}}
@keyframes nelo-celebrate{50%{transform:translateY(-9px) scale(.94,1.07)}}
@keyframes nelo-box{to{transform:scale(1.12,.87);filter:drop-shadow(0 6px 4px rgba(20,63,50,.17))}}
@keyframes nelo-pulse{to{transform:scale(1.09);transform-origin:42px 43px}}
@keyframes nelo-scan{to{transform:translate(5px,0)}}
@keyframes nelo-mouth{to{transform:scaleY(1.8)}}
@keyframes nelo-float{to{transform:translateY(-5px);opacity:.25}}
@keyframes nelo-wave{50%{transform:rotate(7deg) translateY(-3px)}}
@keyframes nelo-dizzy{to{transform:rotate(5deg)}}
@keyframes nelo-dance{to{transform:translateY(-8px) rotate(6deg) scale(.95,1.05)}}
@keyframes nelo-pop{0%{transform:scale(.86,1.13)}42%{transform:scale(1.09,.91)}73%{transform:scale(.97,1.03)}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.nelo *{animation:none!important;transition:none!important}.nelo-eyes,.nelo-face-acc{transform:none!important}}

/* Presença do Nelo no app (assistant_persona): atalho de 24 px na barra superior e saudação da Visão geral. */
.command-account .nelo-shortcut { position: relative; display: grid; place-items: center; padding: 0; border-color: var(--cn-border); border-radius: 50%; background: var(--cn-surface); }
.command-account .nelo-shortcut:hover { background: var(--cn-action-soft); }
.command-account .nelo-shortcut[hidden] { display: none; }
.nelo-shortcut-avatar { width: 24px; height: 24px; }
.nelo-shortcut-dot { position: absolute; top: 5px; right: 5px; width: 10px; height: 10px; border: 2px solid var(--cn-sage-0); border-radius: 50%; background: var(--cn-lime-600); }
.nelo-shortcut-dot[hidden] { display: none; }
.overview-nelo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 18px; margin: -8px 0 22px; padding: 12px 18px 12px 10px; border: 1px solid var(--cn-border); border-radius: 18px; background: var(--cn-surface-muted); }
.overview-nelo[hidden] { display: none; }
.overview-nelo-avatar { width: 84px; height: 84px; }
.overview-nelo-copy p { color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.overview-nelo-copy p:first-child { color: var(--ink); font: 500 17px/1.4 var(--font-display); letter-spacing: -.03em; }
.overview-nelo-copy strong { font-weight: 600; }
.overview-nelo-open { min-height: 44px; padding: 10px 16px; border: 0; border-radius: 11px; color: var(--cn-teal-800); background: var(--cn-selection); font-size: 13px; font-weight: 500; white-space: nowrap; }
.overview-nelo-open:hover { background: var(--cn-action); }
@media (max-width: 650px) {
  .overview-nelo { grid-template-columns: auto minmax(0, 1fr); margin: -4px 0 18px; padding: 10px 14px 14px 6px; }
  .overview-nelo-avatar { width: 64px; height: 64px; }
  .overview-nelo-copy p:first-child { font-size: 15px; }
  .overview-nelo-links { grid-column: 1 / -1; }
  .overview-nelo-open { flex: 1 1 auto; }
}

/* Perfil › Nelo: painel de personalização. */
.nelo-custom-view { max-width: 1180px; margin-inline: auto; }
.nelo-custom-header h1 { font: 500 34px/1.15 var(--font-display); letter-spacing: -.05em; }
.nelo-custom-header h1:focus { outline: none; }
.nelo-custom-intro { max-width: 640px; margin-top: 8px; color: var(--ink-soft); font-size: 14px; }
.nelo-custom-source { margin-top: 6px; color: var(--cn-text-muted); font-size: 13px; font-weight: 500; }
.nelo-custom-layout { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 22px; }
.nelo-custom-stage { position: sticky; top: 96px; display: grid; justify-items: center; gap: 12px; padding: 22px 18px; border: 1px solid var(--cn-border); border-radius: 22px; background: radial-gradient(circle at 50% 35%, var(--cn-surface), var(--cn-bg-subtle)); }
.nelo-custom-preview { width: 200px; height: 200px; }
.nelo-custom-preview-label { min-height: 3em; color: var(--ink-soft); font-size: 12px; text-align: center; }
.nelo-custom-expressions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.nelo-custom-expression { min-height: var(--cn-touch); padding: 8px 14px; border: 1px solid var(--cn-border); border-radius: 999px; color: var(--cn-text-brand); background: var(--cn-surface); font-size: 12px; }
.nelo-custom-expression[aria-pressed="true"] { border-color: var(--cn-focus); color: var(--cn-teal-800); background: var(--cn-selection); font-weight: 600; }
.nelo-custom-form { display: grid; gap: 14px; }
.nelo-custom-field { margin: 0; padding: 14px 16px 16px; border: 1px solid var(--cn-border); border-radius: 16px; background: var(--cn-surface); }
.nelo-custom-field legend { padding: 0 4px; font: 500 15px/1.4 var(--font-display); }
.nelo-custom-hint { margin: 0 0 8px; color: var(--ink-soft); font-size: 12px; }
.nelo-custom-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.nelo-custom-option { position: relative; display: grid; justify-items: center; gap: 4px; min-height: 44px; padding: 8px 6px; border: 1px solid var(--cn-border); border-radius: 12px; cursor: pointer; text-align: center; }
.nelo-custom-option:hover { background: var(--cn-bg); }
.nelo-custom-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.nelo-custom-option:has(input:checked) { border-color: var(--cn-focus); background: var(--cn-action-soft); box-shadow: inset 0 0 0 1px var(--cn-lime-800); }
.nelo-custom-option:has(input:focus-visible) { outline: 3px solid var(--cn-focus); outline-offset: 2px; }
.nelo-custom-option:has(input:disabled) { opacity: .6; cursor: default; }
.nelo-custom-thumb { display: block; width: 48px; height: 48px; }
.nelo-custom-thumb svg { width: 100%; height: 100%; }
.nelo-custom-swatch { width: 28px; height: 28px; margin: 10px 0; }
.nelo-custom-option-label { font-size: 12px; line-height: 1.3; }
.nelo-custom-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.nelo-custom-actions .button { min-height: 44px; }
.nelo-custom-actions [hidden] { display: none; }
.nelo-custom-remove { min-height: 44px; padding: 8px 4px; border: 0; color: var(--cn-success); background: transparent; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.nelo-custom-status { min-height: 1.5em; margin-top: 10px; color: var(--cn-text-brand); font-size: 13px; }
.overview-nelo-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.overview-nelo-customize { color: var(--cn-text-brand); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.overview-nelo-customize[hidden] { display: none; }
@media (max-width: 760px) {
  .nelo-custom-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .nelo-custom-stage { position: static; }
  .nelo-custom-preview { width: 150px; height: 150px; }
  .nelo-custom-header h1 { font-size: 28px; }
  .nelo-custom-options { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .nelo-custom-actions .button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .nelo-custom-option, .nelo-custom-expression { transition: none; } }
