/* NEO MARKET ONLINE V12.8.39 — full-screen persistence, CEO/member AI parity, contained messages/images, free Creator Studio. */

/* Keep the assistant invisible only while the canonical published appearance is being restored. */
html[data-neo-v12839-assistant-boot="1"]:not([data-neo-v12839-ai-ready="1"]) .neo-ai-shell{visibility:hidden!important}
html[data-neo-v12839-ai-ready="1"] .neo-ai-shell{visibility:visible!important}

/* Full-screen is the saved default. The CEO may later publish another layout mode. */
html[data-neo-market-viewport="full"] .site-shell,
html[data-neo-market-viewport="full"] .site-header,
html[data-neo-market-viewport="full"] .member-strip,
html[data-neo-market-viewport="full"] .main-stage,
html[data-neo-market-viewport="full"] .site-footer,
html[data-neo-market-viewport="full"] #pagePanel{width:100%!important;max-width:none!important}
html[data-neo-market-viewport="full"] .main-stage{margin:0!important;padding-left:0!important;padding-right:0!important}
html[data-neo-market-viewport="full"] #pagePanel{margin:0!important;border-left:0!important;border-right:0!important;border-radius:0!important;min-height:calc(100dvh - 154px)!important}

/* CEO and member Neo AI use one geometry. No render transition, transform, resize or layout animation on refresh. */
.neo-ai-shell[data-neo-v12839-unified="1"],
.neo-ai-shell[data-neo-v12839-unified="1"] *{animation:none!important;transition:none!important}
.neo-ai-shell[data-neo-v12839-unified="1"]{width:100%!important;max-width:none!important;margin:0!important;min-height:calc(100dvh - 132px)!important;box-sizing:border-box!important}

/* ChatGPT-like readable center column. */
.neo-ai-shell[data-neo-v12839-unified="1"]{--neo-v12839-chat-column:920px;--neo-v12839-text-column:790px}
.neo-ai-shell[data-neo-v12839-unified="1"] .neo-ai-message-list{
  width:min(calc(100% - 28px),var(--neo-v12839-chat-column))!important;max-width:var(--neo-v12839-chat-column)!important;
  margin-inline:auto!important;padding:22px 14px 30px!important;box-sizing:border-box!important
}
.neo-ai-shell[data-neo-v12839-unified="1"] .neo-ai-message{
  width:100%!important;max-width:var(--neo-v12839-text-column)!important;margin:12px auto!important;box-sizing:border-box!important;min-width:0!important;
  align-items:flex-start!important
}
.neo-ai-shell[data-neo-v12839-unified="1"] .neo-ai-message-body{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;overflow:visible!important}
.neo-ai-shell[data-neo-v12839-unified="1"] .neo-ai-assistant .neo-ai-message-body{
  width:100%!important;background:transparent!important;border-color:transparent!important;box-shadow:none!important;padding:7px 8px!important
}
.neo-ai-shell[data-neo-v12839-unified="1"] .neo-ai-user .neo-ai-message-body{
  width:auto!important;max-width:min(72%,680px)!important;margin-left:auto!important;padding:11px 14px!important
}
.neo-ai-shell[data-neo-v12839-unified="1"] .neo-ai-message-text{
  width:100%!important;max-width:100%!important;font-size:15.5px!important;line-height:1.68!important;letter-spacing:0!important;
  overflow-wrap:anywhere!important;word-break:normal!important;white-space:normal!important;opacity:1!important
}
.neo-ai-shell[data-neo-v12839-unified="1"] .neo-ai-message-text p{margin:.55em 0!important;opacity:1!important}
.neo-ai-shell[data-neo-v12839-unified="1"] .neo-ai-message-text pre,
.neo-ai-shell[data-neo-v12839-unified="1"] .neo-ai-message-text code,
.neo-ai-shell[data-neo-v12839-unified="1"] .neo-ai-message-text table{max-width:100%!important;overflow:auto!important;white-space:pre-wrap!important}

/* Attached images stay useful but never take over the whole conversation. */
.neo-ai-shell[data-neo-v12839-unified="1"] .neo-ai-message-image,
.neo-ai-shell[data-neo-v12839-unified="1"] .neo-ai-message-body>img{
  display:block!important;width:auto!important;max-width:min(420px,100%)!important;height:auto!important;max-height:320px!important;
  object-fit:contain!important;margin:2px 0 12px!important;border-radius:16px!important;border:1px solid color-mix(in srgb,var(--neo-v12829-accent,#28d8ff) 28%,transparent)!important;
  background:rgba(0,0,0,.12)!important;cursor:zoom-in!important
}

/* Composer uses the same readable column and keeps controls on the bottom line. */
.neo-ai-shell[data-neo-v12839-unified="1"] .neo-ai-composer-wrap{
  width:min(calc(100% - 28px),var(--neo-v12839-chat-column))!important;max-width:var(--neo-v12839-chat-column)!important;margin-inline:auto!important;padding:8px 14px 20px!important
}
.neo-ai-shell[data-neo-v12839-unified="1"] .neo-ai-composer{width:100%!important;max-width:100%!important;min-height:96px!important;box-sizing:border-box!important}
.neo-ai-shell[data-neo-v12839-unified="1"] #neoAIInput{min-height:72px!important;max-height:220px!important;font-size:15.5px!important;line-height:1.5!important}

/* Full-size image viewer. */
.neo-v12839-image-viewer{position:fixed;inset:0;z-index:999999;background:rgba(1,8,20,.88);display:grid;place-items:center;padding:28px;box-sizing:border-box}
.neo-v12839-image-viewer[hidden]{display:none!important}.neo-v12839-image-viewer img{max-width:min(94vw,1400px);max-height:90vh;object-fit:contain;border-radius:18px;box-shadow:0 28px 90px rgba(0,0,0,.5)}
.neo-v12839-image-viewer button{position:fixed;right:24px;top:24px;width:44px;height:44px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:rgba(0,0,0,.45);color:#fff;font-size:24px;cursor:pointer}

/* Free Creator Studio: additive and isolated inside Neo AI. */
.neo-v12839-create-panel{grid-area:panel!important;grid-column:2!important;grid-row:2!important;min-width:0;min-height:0;overflow:auto;padding:22px 24px 34px;color:inherit;background:transparent}
.neo-v12839-create-panel[hidden]{display:none!important}
.neo-v12839-create-shell{width:min(100%,980px);margin:0 auto;display:grid;gap:16px}
.neo-v12839-create-head,.neo-v12839-create-card,.neo-v12839-create-output{border:1px solid rgba(255,255,255,.10);background:color-mix(in srgb,var(--neo-v12829-panel,#0e3b61) 84%,transparent);border-radius:20px;padding:18px}
.neo-v12839-create-head h2{margin:2px 0 6px;font-size:1.5rem}.neo-v12839-create-head p{margin:0;opacity:.86}
.neo-v12839-create-grid{display:grid;grid-template-columns:220px minmax(0,1fr);gap:14px}.neo-v12839-create-grid label{display:grid;gap:7px;font-weight:800}.neo-v12839-create-grid select,.neo-v12839-create-grid textarea{width:100%;box-sizing:border-box;border-radius:13px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);color:inherit;padding:11px 12px;font:inherit}.neo-v12839-create-grid textarea{min-height:130px;resize:vertical}
.neo-v12839-create-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}.neo-v12839-create-actions button,.neo-v12839-download{min-height:42px;padding:0 15px;border-radius:12px;border:1px solid rgba(255,255,255,.14);font-weight:850;cursor:pointer}.neo-v12839-create-primary{background:var(--neo-v12829-accent,#28d8ff);color:#05356a}.neo-v12839-create-secondary,.neo-v12839-download{background:rgba(255,255,255,.08);color:inherit}
.neo-v12839-create-output{display:grid;gap:12px}.neo-v12839-create-output img,.neo-v12839-create-output video{display:block;width:min(100%,720px);max-height:540px;object-fit:contain;margin:0 auto;border-radius:18px;background:#061629;border:1px solid rgba(255,255,255,.12)}
.neo-v12839-create-note{font-size:.78rem;line-height:1.5;opacity:.82}

@media(max-width:900px){.neo-v12839-create-panel{grid-column:2!important}.neo-v12839-create-grid{grid-template-columns:1fr}.neo-ai-shell[data-neo-v12839-unified="1"] .neo-ai-user .neo-ai-message-body{max-width:88%!important}}
@media(max-width:620px){.neo-v12839-create-panel{grid-column:1!important;grid-row:3!important;padding:14px}.neo-ai-shell[data-neo-v12839-unified="1"]{--neo-v12839-chat-column:100%;--neo-v12839-text-column:100%}.neo-ai-shell[data-neo-v12839-unified="1"] .neo-ai-message-image{max-width:100%!important;max-height:260px!important}.neo-ai-shell[data-neo-v12839-unified="1"] .neo-ai-user .neo-ai-message-body{max-width:92%!important}}
