
#ct6-elle-root{position:fixed;right:18px;bottom:18px;z-index:10000;font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#f7f4ff}
#ct6-elle-root *{box-sizing:border-box}
#ct6-elle-toggle{background:linear-gradient(135deg,#6634b7,#bd6cd9);color:white;border:1px solid #e9bcff;border-radius:99px;padding:12px 18px;box-shadow:0 7px 32px #14082399;cursor:pointer;font-weight:750;display:flex;gap:9px;align-items:center}
#ct6-elle-panel{width:min(800px,calc(100vw - 28px));height:min(630px,calc(100dvh - 92px));background:#17132af7;border:1px solid #9473cb;border-radius:20px;box-shadow:0 20px 60px #080617bb;overflow:hidden;display:flex;flex-direction:column;margin-bottom:12px}
#ct6-elle-panel[hidden]{display:none}
.ct6-elle-head{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;background:linear-gradient(90deg,#4e298d,#7a3c97);gap:12px;flex-shrink:0}
.ct6-elle-head strong{font-size:16px;line-height:1.3;display:block}.ct6-elle-head small{display:block;font-size:11px;color:#e6d8f3;margin-top:3px}
.ct6-elle-head button{color:white;background:transparent;border:0;font-size:26px;cursor:pointer;padding:4px 10px}
.ct6-elle-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,42%);min-height:0;flex:1}
.ct6-elle-chat{display:flex;flex-direction:column;min-width:0;min-height:0;background:#17132b}
.ct6-elle-portrait-area{height:138px;flex-shrink:0;display:flex;align-items:center;gap:12px;padding:7px 14px;background:radial-gradient(circle at 20% 60%,#3e2864,#211a38);border-bottom:1px solid #655080}
#ct6-elle-portrait{height:124px;width:90px;object-fit:contain;object-position:center center;filter:drop-shadow(0 4px 9px #0d0718a8);transition:opacity .18s}
.ct6-elle-portrait-area strong{display:block;font-size:17px}.ct6-elle-portrait-area small{display:block;color:#d3c4e6;font-size:12px;margin-top:4px}
#ct6-elle-messages{overflow-y:auto;flex:1;min-height:60px;padding:12px;display:flex;flex-direction:column;gap:10px;scrollbar-color:#8466a5 #21192e}
.ct6-elle-msg{max-width:100%;padding:10px 12px;border-radius:12px;line-height:1.45;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.ct6-elle-msg.bot{background:#38264f;align-self:flex-start;display:flex;align-items:flex-start;gap:9px}
.ct6-elle-avatar{width:48px;height:62px;flex:0 0 48px;object-fit:contain;align-self:flex-start}
.ct6-elle-msg.user{background:#573c9c;align-self:flex-end;max-width:90%}
#ct6-elle-form{display:flex;gap:7px;padding:10px;border-top:1px solid #655080;flex-shrink:0}
#ct6-elle-question{min-width:0;flex:1;background:#251c39;color:white;border:1px solid #8364ab;border-radius:10px;padding:11px;font-size:13px}
#ct6-elle-send{background:#a56be2;color:#170e24;border:0;border-radius:10px;padding:9px 13px;cursor:pointer;font-weight:800}
.ct6-elle-model-side{display:flex;flex-direction:column;min-width:0;min-height:0;background:radial-gradient(ellipse at 50% 75%,#4a376a,#21182f 65%,#130f22)}
#ct6-elle-viewport{position:relative;flex:1;min-height:0;overflow:hidden}
#ct6-elle-viewport canvas{display:block;width:100%;height:100%}
#ct6-elle-viewport .ct6-elle-hint{position:absolute;bottom:7px;left:10px;font-size:11px;color:#eee;opacity:.75;pointer-events:none}
#ct6-elle-viewport .ct6-elle-loading{position:absolute;inset:0;display:grid;place-items:center;color:#f2e3ff;font-size:13px;padding:15px;text-align:center}
.ct6-elle-model-caption{font-size:11px;color:#d8c3f5;text-align:center;padding:8px 4px;border-top:1px solid #5c4779}
#ct6-elle-root button:focus-visible,#ct6-elle-question:focus-visible{outline:3px solid #f3ca4c;outline-offset:2px}
@media(max-width:600px){#ct6-elle-root{right:8px;bottom:8px}#ct6-elle-panel{width:calc(100vw - 16px);height:min(650px,calc(100dvh - 84px))}.ct6-elle-main{grid-template-columns:minmax(0,1fr) minmax(105px,36%)}.ct6-elle-portrait-area{height:110px;padding:6px 8px;gap:5px}#ct6-elle-portrait{width:65px;height:96px}.ct6-elle-portrait-area strong{font-size:13px}.ct6-elle-portrait-area small{font-size:10px}.ct6-elle-msg{font-size:12px;padding:8px}.ct6-elle-avatar{width:34px;height:46px;flex-basis:34px}.ct6-elle-head strong{font-size:14px}.ct6-elle-model-caption{font-size:9px}}
@media(prefers-reduced-motion:reduce){#ct6-elle-root *{scroll-behavior:auto!important;transition:none!important}}

/* v8: Give the changing PNG the spotlight; 3D model is secondary. */
.ct6-elle-main{grid-template-columns:minmax(0,1fr) minmax(160px,27%)}
.ct6-elle-portrait-area{height:285px;flex-shrink:0;gap:20px;padding:12px 22px;justify-content:center}
#ct6-elle-portrait{height:255px;width:min(240px,48%);object-fit:contain;object-position:center}
.ct6-elle-portrait-area strong{font-size:21px}
.ct6-elle-portrait-area small{font-size:13px}
.ct6-elle-model-side{border-left:1px solid #655080}
.ct6-elle-model-caption{font-size:10px}
@media(max-width:600px){
 .ct6-elle-main{grid-template-columns:minmax(0,1fr) minmax(95px,27%)}
 .ct6-elle-portrait-area{height:210px;gap:7px;padding:8px}
 #ct6-elle-portrait{height:192px;width:min(150px,62%)}
 .ct6-elle-portrait-area strong{font-size:14px}
 .ct6-elle-portrait-area small{font-size:10px}
}

/* v9: more room for conversation, less room for 3D */
.ct6-elle-main{grid-template-columns:minmax(0,1fr) minmax(135px,20%)}
.ct6-elle-portrait-area{height:170px;min-height:170px;gap:16px;padding:8px 18px}
#ct6-elle-portrait{height:158px;width:min(145px,35%)}
.ct6-elle-portrait-area strong{font-size:19px}
#ct6-elle-messages{min-height:155px;overflow-y:auto}
.ct6-elle-model-side{overflow:hidden}
.ct6-elle-model-caption{font-size:9px;padding:6px 2px}
@media(max-width:600px){
 .ct6-elle-main{grid-template-columns:minmax(0,1fr) minmax(92px,23%)}
 .ct6-elle-portrait-area{height:120px;min-height:120px;gap:6px;padding:6px}
 #ct6-elle-portrait{height:106px;width:min(85px,42%)}
 #ct6-elle-messages{min-height:120px}
}

/* v10: make the illustrated PNG prominent again, while preserving chat space. */
.ct6-elle-main{grid-template-columns:minmax(0,1fr) minmax(145px,20%)}
.ct6-elle-portrait-area{height:310px;min-height:310px;gap:22px;padding:10px 22px}
#ct6-elle-portrait{height:290px;width:min(285px,53%);object-fit:contain}
.ct6-elle-portrait-area strong{font-size:21px}
#ct6-elle-messages{min-height:105px;flex:1;overflow-y:auto}
@media(max-width:600px){
 .ct6-elle-main{grid-template-columns:minmax(0,1fr) minmax(90px,23%)}
 .ct6-elle-portrait-area{height:205px;min-height:205px;gap:7px;padding:7px}
 #ct6-elle-portrait{height:190px;width:min(175px,62%)}
 #ct6-elle-messages{min-height:95px}
}
