/* Telya global : même thème noir-gris que Build with Telya. */
#telya-global{position:fixed;right:18px;bottom:18px;z-index:10000;font:14px/1.5 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI Variable Text","Segoe UI",Roboto,sans-serif;color:#e4e4e7;--tg-bg:#0b0b0c;--tg-line:rgba(255,255,255,.09);--tg-line2:rgba(255,255,255,.14);--tg-muted:#8b8b93}
#telya-global *{box-sizing:border-box}
#telya-global [hidden]{display:none!important}
#telya-global button,#telya-global select,#telya-global textarea{font:inherit;color:inherit}
#telya-global button,.telya-top-button{cursor:pointer;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:#141416;color:#e4e4e7;padding:7px 13px;font:600 13px 'Inter Tight',system-ui,sans-serif;white-space:nowrap}
.telya-top-button:hover,#telya-global .tg-launch:hover{background:#1c1c1f}
#telya-global .tg-launch{padding:10px 16px;box-shadow:0 10px 30px -10px rgba(0,0,0,.7)}
#telya-global.tg-has-header .tg-launch{display:none}
#telya-global .tg-panel{position:absolute;bottom:52px;right:0;width:min(440px,calc(100vw - 32px));height:min(700px,calc(100dvh - 95px));background:var(--tg-bg);border:1px solid var(--tg-line2);border-radius:16px;box-shadow:0 24px 60px -20px rgba(0,0,0,.85);display:flex;flex-direction:column;overflow:hidden}
#telya-global.tg-has-header .tg-panel{bottom:0}
#telya-global header{position:relative;display:flex;justify-content:space-between;align-items:center;padding:12px 12px 12px 16px;border-bottom:1px solid var(--tg-line)}
#telya-global header b{font:600 15px 'Inter Tight',system-ui,sans-serif;letter-spacing:.01em;color:#f4f4f5}
#telya-global header div{display:flex;gap:2px}
#telya-global header button{border:0;background:transparent;font-size:17px;width:30px;height:30px;padding:0;border-radius:8px;color:var(--tg-muted)}
#telya-global header button:hover{background:rgba(255,255,255,.06);color:#f4f4f5}
#telya-global .tg-pop{position:absolute;z-index:5;right:12px;top:48px;display:grid;min-width:220px;padding:5px;background:#141416;border:1px solid var(--tg-line2);border-radius:12px;box-shadow:0 20px 40px -18px rgba(0,0,0,.8)}
#telya-global .tg-pop button{width:auto;height:auto;text-align:left;padding:8px 10px;border-radius:8px;font:500 13px ui-sans-serif,-apple-system,"Segoe UI",sans-serif;color:#d4d4d8}
#telya-global .tg-pop button[data-act=del]{color:#f87171}
#telya-global .tg-context{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:9px 12px 9px 16px;border-bottom:1px solid var(--tg-line)}
#telya-global .tg-page{font-size:12px;color:var(--tg-muted);margin-right:auto}
#telya-global select{appearance:none;-webkit-appearance:none;background:transparent;border:1px solid var(--tg-line2);border-radius:999px;padding:4px 22px 4px 10px;font:500 12px ui-sans-serif,-apple-system,"Segoe UI",sans-serif;color:#d4d4d8;min-width:0;cursor:pointer;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 12px) 52%,calc(100% - 8px) 52%;background-size:4px 4px;background-repeat:no-repeat}
#telya-global select option{background:#141416;color:#e4e4e7}
#telya-global .tg-log{flex:1;min-height:0;overflow:auto;padding:18px 16px;display:flex;flex-direction:column;gap:18px}
#telya-global .tg-message{overflow-wrap:anywhere;line-height:1.6;font-size:14px}
#telya-global .tg-user{white-space:pre-wrap;background:#1c1c1f;align-self:flex-end;max-width:88%;padding:9px 14px;border-radius:16px;color:#f4f4f5}
#telya-global .tg-answer{color:#dcdce0}
#telya-global form.tcomp{margin:4px 12px 10px;color:#e4e4e7;background:#141416;border-color:rgba(255,255,255,.14)}
#telya-global form.tcomp textarea{min-height:44px;max-height:180px;border:0;background:none;padding:0 2px}
#telya-global form .tcomp-send{border:0;padding:0;background:#e4e4e7;color:#0b0b0c;border-radius:50%}
#telya-global form .tcomp-send:disabled{cursor:default;background:#2a2a2e;color:#8b8b93}
#telya-global .tg-hint{font-size:11px;color:#71717a}
#telya-global footer{display:flex;align-items:center;justify-content:space-between;padding:9px 16px;border-top:1px solid var(--tg-line);font-size:11.5px}
#telya-global footer a{color:var(--tg-muted);text-decoration:none}#telya-global footer a:hover{color:#e4e4e7}
@media(max-width:600px){#telya-global{right:10px;bottom:10px}#telya-global .tg-panel{width:calc(100vw - 20px);height:min(650px,calc(100dvh - 80px))}}
