/* T-AI 9.5: visible image fallback, isolated from theme/legacy chatbot styles. */
#ttdh-mascot{position:fixed;left:auto;right:16px;bottom:166px;width:146px;height:180px;z-index:100010;font:14px/1.55 system-ui,-apple-system,sans-serif;color:#102b42;isolation:isolate;--tai-look:0deg}#ttdh-mascot.tm-left{left:16px;right:auto;bottom:24px}#ttdh-mascot *,#tm-restore{box-sizing:border-box}#ttdh-mascot[hidden],#ttdh-mascot [hidden],#tm-restore[hidden]{display:none!important}#ttdh-mascot button{font-family:inherit;cursor:pointer;text-transform:none;letter-spacing:normal;box-shadow:none}#ttdh-mascot :focus-visible,#tm-restore:focus-visible{outline:3px solid #d39616;outline-offset:3px}#ttdh-mascot .tm-avatar{border:0!important;padding:0!important;margin:0!important;background:transparent!important;width:146px!important;height:180px!important;position:relative;display:block;line-height:1.3;overflow:visible;touch-action:manipulation}#ttdh-mascot .tm-robot-image{position:absolute;top:0;left:0;width:146px;height:154px;object-fit:contain;display:block;opacity:1;filter:drop-shadow(0 8px 10px #0e203440);transform:perspective(420px) rotateY(var(--tai-look));transition:transform .25s,opacity .2s;pointer-events:none}#ttdh-mascot .tm-avatar canvas{position:absolute;left:0;top:0;display:block;width:146px;height:154px;opacity:0;pointer-events:none;filter:drop-shadow(0 9px 11px #0e20343b)}#ttdh-mascot[data-renderer="webgl"] .tm-avatar canvas{opacity:1}#ttdh-mascot[data-renderer="webgl"] .tm-robot-image{opacity:0}#ttdh-mascot .tm-name{position:absolute;bottom:0;left:50%;transform:translateX(-50%);background:#fff8e6;border:1px solid #eac877;border-radius:18px;padding:5px 11px;color:#3b2b13;font-size:12px;font-weight:800;white-space:nowrap;box-shadow:0 4px 15px #172c401a}#ttdh-mascot .tm-name>span{font-size:9px;font-weight:600;margin-left:5px}#ttdh-mascot .tm-hide{position:absolute;right:-1px;top:-3px;z-index:2;border:1px solid #d5dfeb;background:#fffffff0;border-radius:50%;width:23px;height:23px;padding:0;color:#6d7d88;font-size:17px;line-height:19px}#ttdh-mascot .tm-tip{position:absolute;bottom:184px;left:0;background:#fff;color:#203a4d;border:1px solid #efdaa3;border-radius:12px 12px 12px 3px;padding:12px 14px;width:230px;box-shadow:0 9px 25px #18334b20;font-size:12px;pointer-events:none}#ttdh-mascot:not(.tm-left) .tm-tip{left:auto;right:0}#ttdh-mascot .tm-chat{position:fixed;left:auto;right:18px;bottom:24px;width:820px;max-width:calc(100vw - 36px);height:min(650px,calc(100dvh - 48px));border:1px solid #d5dee8;border-radius:19px;background:#fff;box-shadow:0 24px 100px #06172848;display:flex;flex-direction:column;overflow:hidden}#ttdh-mascot.tm-left .tm-chat{left:18px;right:auto}#ttdh-mascot .tm-chat>header{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#0b1e34;color:#fff;padding:17px 20px;flex-shrink:0}#ttdh-mascot header strong{display:block;color:#fff;font-size:17px;line-height:1.4;font-weight:750}#ttdh-mascot header small{display:block;font-size:11px;color:#f0cd86;margin-top:4px}#ttdh-mascot .tm-close{border:0;background:none;color:#fff;font-size:27px;padding:0;line-height:1;width:28px;height:32px}#ttdh-mascot .tm-workspace{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);min-height:0;flex:1}#ttdh-mascot .tm-conversation{display:flex;flex-direction:column;min-width:0;min-height:0}#ttdh-mascot .tm-messages{display:flex;flex-direction:column;gap:12px;padding:18px;overflow:auto;overscroll-behavior:contain;flex:1;min-height:110px;scrollbar-width:thin}#ttdh-mascot .tm-messages p{font-size:13px;line-height:1.75;margin:0;padding:12px 14px;border-radius:13px;max-width:95%;overflow-wrap:anywhere;white-space:pre-wrap;text-align:left}#ttdh-mascot .tm-bot{background:#f1f5fa;color:#20384c;align-self:flex-start}#ttdh-mascot .tm-user{background:#fff0ca;color:#543910;align-self:flex-end}#ttdh-mascot .tm-bot[data-mode="local"]{border-left:3px solid #e7ba4c}#ttdh-mascot .tm-suggestions{display:flex;flex-wrap:wrap;gap:6px;padding:10px 14px}#ttdh-mascot .tm-suggestions>button{border:1px solid #d7e0e9;border-radius:18px;background:#fff;color:#354e60;font-size:10px;font-weight:600;padding:6px 9px;line-height:1.5;min-height:30px}#ttdh-mascot .tm-form{display:flex;gap:8px;align-items:flex-end;padding:12px 14px;border-top:1px solid #e5ecf2;margin:0!important;background:#fff;flex-shrink:0}#ttdh-mascot .tm-form textarea{flex:1;min-width:0;width:100%;resize:none;min-height:48px;max-height:100px;margin:0;border:1px solid #ccdae5;border-radius:10px;padding:10px;font-family:inherit;font-size:13px;line-height:1.6;color:#183244;background:#fff}#ttdh-mascot .tm-form>button{border:0;border-radius:11px;background:linear-gradient(#ffe29a,#efb939);color:#3c2a0d;width:40px;height:46px;padding:0;font-size:25px;font-weight:800;flex-shrink:0}#ttdh-mascot .tm-form>button:disabled{opacity:.45;cursor:wait}#ttdh-mascot .tm-visual{padding:18px;background:#fafbfe;border-left:1px solid #e1e8ef;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;min-width:0}#ttdh-mascot .tm-workflow-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:16px}#ttdh-mascot .tm-workflow-heading>span{font-size:10px;font-weight:800;letter-spacing:.8px}#ttdh-mascot .tm-workflow-heading>small{font-size:9px;color:#7f8d98;background:#eef1f5;border-radius:8px;padding:4px 6px;white-space:nowrap}#ttdh-mascot .tm-workflow{list-style:none;padding:0;margin:0;display:grid;gap:13px}#ttdh-mascot .tm-workflow>li{display:flex;gap:12px;align-items:center;border:1px solid #e5ddc9;border-radius:12px;background:#fff;padding:13px;font-size:12px;font-weight:650;line-height:1.55;color:#20364a;position:relative}#ttdh-mascot .tm-workflow>li+li:before{content:'';position:absolute;left:26px;top:-14px;height:13px;width:1px;background:#dca93d}#ttdh-mascot .tm-workflow b{display:grid;place-items:center;width:27px;height:27px;flex-shrink:0;color:#8b6310;background:#fff0c8;border-radius:8px;font-size:12px}#ttdh-mascot .tm-workflow .tm-step-active{border-color:#d8a629;background:#fff9e9;box-shadow:0 0 0 2px #f6dc9c55}#ttdh-mascot .tm-demo-start{display:block;width:100%;margin:17px 0 0;padding:11px 14px;border:1px solid #dbb350;background:#ffe19a;border-radius:10px;font-size:12px;font-weight:750;color:#4c350e}#ttdh-mascot .tm-demo-stage{margin:14px 0;background:#fff8e7;padding:14px;border-radius:12px;border:1px solid #e9d29d}#ttdh-mascot .tm-demo-stage>small{font-size:8px;font-weight:750;letter-spacing:.4px;color:#8a6b27}#ttdh-mascot .tm-demo-stage h3{font-size:15px;line-height:1.5;margin:10px 0 8px;color:#263d50}#ttdh-mascot .tm-demo-stage p{font-size:11px;line-height:1.8;color:#5d6d79;margin:0 0 13px}#ttdh-mascot .tm-demo-stage>button{border:1px solid #dec483;background:#fff;border-radius:7px;color:#77581b;font-size:10px;padding:6px 9px;margin:3px 4px 0 0}#ttdh-mascot .tm-demo-stage>button:disabled{opacity:.5}#ttdh-mascot .tm-tools{display:grid;gap:8px;margin-top:14px}#ttdh-mascot .tm-tools>a{border:1px solid #dce5ed;background:#fff;padding:10px 12px;border-radius:9px;color:#315975;text-decoration:none;font-size:11px;font-weight:650;line-height:1.5}#ttdh-mascot .tm-links{display:grid;gap:10px;margin-top:16px}#ttdh-mascot .tm-links>a,#ttdh-mascot .tm-links>button{font-size:10px;color:#735313;background:none;border:0;text-decoration:none;padding:0;text-align:left;line-height:1.6}#ttdh-mascot .tm-chat>footer{display:flex;align-items:center;gap:15px;border-top:1px solid #e2e8ef;padding:10px 16px;background:#fff;flex-shrink:0}#ttdh-mascot footer>p{font-size:9px;color:#728390;line-height:1.6;margin:0;flex:1}#ttdh-mascot .tm-clear{border:0;background:none;color:#8e6d25;text-decoration:underline;padding:3px;font-size:10px;white-space:nowrap}#ttdh-mascot.tm-open .tm-avatar,#ttdh-mascot.tm-open .tm-hide{visibility:hidden}#tm-restore{position:fixed;z-index:100010;right:16px;bottom:170px;border:1px solid #d8b653;border-radius:22px;background:#fff5d8;color:#4d3713;font:700 12px/1.5 system-ui;padding:10px 14px;cursor:pointer}#tm-restore.tm-left{left:15px;right:auto;bottom:24px}.tai-highlight{outline:3px solid #efbf4e!important;outline-offset:6px}body.tai-panel-open .ttdh-contact{visibility:hidden}
@media(max-width:760px){#ttdh-mascot,#ttdh-mascot.tm-left{width:104px;height:138px;bottom:calc(92px + env(safe-area-inset-bottom,0px))}#ttdh-mascot.tm-left{left:7px}#ttdh-mascot:not(.tm-left){bottom:calc(206px + env(safe-area-inset-bottom,0px));right:7px}#ttdh-mascot .tm-avatar{width:104px!important;height:138px!important}#ttdh-mascot .tm-robot-image,#ttdh-mascot .tm-avatar canvas{width:104px;height:115px}#ttdh-mascot .tm-name{font-size:10px;padding:4px 7px}#ttdh-mascot .tm-name>span{display:none}#ttdh-mascot .tm-tip{bottom:145px;width:190px;font-size:11px}#ttdh-mascot .tm-chat,#ttdh-mascot.tm-left .tm-chat{left:10px;right:10px;bottom:calc(86px + env(safe-area-inset-bottom,0px));width:calc(100vw - 20px);max-width:none;height:min(720px,calc(100dvh - 108px));border-radius:16px}#ttdh-mascot .tm-workspace{display:block;overflow:auto;overscroll-behavior:contain}#ttdh-mascot .tm-conversation{min-height:260px}#ttdh-mascot .tm-messages{min-height:90px;max-height:235px;padding:14px}#ttdh-mascot .tm-form{position:sticky;bottom:0}#ttdh-mascot .tm-form textarea{font-size:16px}#ttdh-mascot .tm-visual{border-left:0;border-top:1px solid #e1e8ef;overflow:visible;padding:15px}#ttdh-mascot .tm-chat>header{padding:14px 16px}#ttdh-mascot header strong{font-size:14px}#ttdh-mascot footer>p{font-size:8px}#tm-restore.tm-left{bottom:calc(94px + env(safe-area-inset-bottom,0px));left:10px}#tm-restore:not(.tm-left){bottom:206px}}
@media(prefers-reduced-motion:reduce){#ttdh-mascot *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

#ttdh-mascot .tm-avatar canvas{height:170px}@media(max-width:760px){#ttdh-mascot .tm-avatar canvas{height:121px}}
/* Emotional face and optional reading memory, 9.6.0. */
#ttdh-mascot .tm-avatar canvas.tm-face-overlay{left:32px;top:34px;width:82px!important;height:51px!important;opacity:1;filter:none;pointer-events:none;border-radius:42%;z-index:1}#ttdh-mascot[data-renderer="webgl"] .tm-avatar canvas.tm-face-overlay{opacity:0}#ttdh-mascot .tm-emotion-badge{position:absolute;right:5px;top:18px;z-index:2;color:#d59819;font-size:25px;line-height:1;font-weight:800;text-shadow:0 1px 5px #fff}#ttdh-mascot .tm-companion-row{display:flex;align-items:center;gap:8px;padding:7px 14px 0;background:#fff;flex-shrink:0}#ttdh-mascot .tm-companion{position:relative;width:80px;height:75px;border:0;background:transparent;padding:0;flex-shrink:0}#ttdh-mascot .tm-companion>img{width:80px;height:75px;object-fit:contain}#ttdh-mascot .tm-companion>canvas{position:absolute;left:18px;top:18px;width:45px;height:29px;border-radius:40%;pointer-events:none}#ttdh-mascot .tm-companion-row strong{display:block;font-size:12px;color:#20384c}#ttdh-mascot .tm-companion-row small{display:block;font-size:10px;color:#8d681e;margin-top:4px}#ttdh-mascot .tm-reader-actions{display:flex;gap:6px;padding:8px 14px;flex-wrap:wrap}#ttdh-mascot .tm-reader-actions>button{border:1px solid #dfbd68;background:#fff4d7;color:#795510;padding:6px 9px;border-radius:8px;font-size:10px;font-weight:650}#ttdh-mascot .tm-preferences{padding:8px 14px;border-top:1px solid #e8edf3;font-size:10px;flex-shrink:0;max-height:170px;overflow:auto}#ttdh-mascot .tm-preferences>summary{color:#647e91;cursor:pointer;font-weight:650}#ttdh-mascot .tm-preferences label{display:flex;align-items:center;gap:8px;margin:10px 0;font-size:10px;line-height:1.7}#ttdh-mascot .tm-preferences input{width:14px;height:14px;flex-shrink:0}#ttdh-mascot .tm-preferences small{display:block;color:#6f8596;font-size:9px}#ttdh-mascot .tm-preferences select{max-width:180px;border:1px solid #d1dce7;border-radius:6px;padding:5px;background:#fff;font:inherit;color:#254257}#ttdh-mascot .tm-preferences button{font-size:9px;color:#98701e;border:0;background:none;padding:3px 0;text-decoration:underline}#ttdh-mascot .tm-feedback{display:flex;align-items:center;gap:6px;padding:5px 14px;font-size:9px;color:#60788a;flex-shrink:0}#ttdh-mascot .tm-feedback button{border:1px solid #d6e0e8;border-radius:6px;font-size:9px;padding:4px 6px;background:#fff;color:#37596f}#ttdh-mascot .tm-feedback button:disabled{opacity:.5}#ttdh-mascot .tm-summary-panel{background:#fff8e8;border:1px solid #e5cf9b;border-radius:12px;padding:13px;margin-bottom:18px}#ttdh-mascot .tm-summary-panel>header{display:block;padding:0;background:transparent}#ttdh-mascot .tm-summary-panel>header strong{font-size:13px;color:#5a4217}#ttdh-mascot .tm-summary-panel>header small{font-size:9px;color:#927332}#ttdh-mascot .tm-summary-panel h3{font-size:14px;line-height:1.6;color:#273f51;margin:12px 0}#ttdh-mascot .tm-summary-panel ul{margin:0;padding-left:17px}#ttdh-mascot .tm-summary-panel li{font-size:11px;line-height:1.8;color:#3e5464;margin-bottom:9px}#ttdh-mascot .tm-summary-panel p{font-size:9px;color:#947838;line-height:1.7}#ttdh-mascot .tm-summary-panel>button{font-size:10px;border:1px solid #d8b658;border-radius:8px;background:#ffe3a0;color:#5e4615;padding:8px 10px}#ttdh-mascot .tm-summary-panel>button:disabled{opacity:.5}#ttdh-mascot .tm-summary-panel>a{display:block;font-size:10px;color:#815c11;margin-top:10px}#ttdh-mascot .tm-reading-toc{display:grid;gap:6px;margin-top:12px}#ttdh-mascot .tm-reading-toc>button{background:#fff;border:1px solid #e8d8b5;border-radius:6px;text-align:left;font-size:10px;line-height:1.6;color:#556c7d;padding:5px 8px}#ttdh-mascot .tm-summary-launch{position:absolute;bottom:184px;left:0;width:178px;border:1px solid #d9b560;border-radius:12px;background:#fff7de;color:#785613;font-size:10px;font-weight:750;padding:10px;box-shadow:0 5px 18px #0d27351a}#ttdh-mascot:not(.tm-left) .tm-summary-launch{left:auto;right:0}#ttdh-mascot.tm-open .tm-summary-launch{display:none}#ttdh-mascot[data-emotion="annoyed"] .tm-robot-image{transform:perspective(420px) rotateY(var(--tai-look)) rotate(-5deg)}#ttdh-mascot[data-emotion="shy"] .tm-robot-image{transform:perspective(420px) rotateY(var(--tai-look)) rotate(6deg)}
@media(max-width:760px){#ttdh-mascot .tm-avatar canvas.tm-face-overlay{left:23px;top:26px;width:58px!important;height:35px!important}#ttdh-mascot .tm-summary-launch{bottom:143px;width:160px;padding:8px;font-size:9px}#ttdh-mascot .tm-emotion-badge{font-size:21px;right:3px;top:12px}#ttdh-mascot .tm-preferences{max-height:180px}#ttdh-mascot .tm-companion-row{padding-top:3px}#ttdh-mascot .tm-preferences select{font-size:16px;max-width:210px}}
