/* TEC BOT voice assistant: one mic toggle controls voice, screen and the Live session. */
.page-robot { pointer-events:none; z-index:40; }
.page-robot .tec-bot-voice-dock { position:absolute; left:calc(100% + 12px); bottom:0; width:min(300px,calc(100vw - 92px)); pointer-events:auto; z-index:10020; display:flex; flex-direction:column; align-items:flex-start; gap:9px; filter:none; }
.tec-bot-launch { display:inline-flex; align-items:center; gap:9px; min-height:38px; padding:8px 14px; border:1px solid rgba(116,220,255,.42); border-radius:999px; color:#eafaff; background:linear-gradient(120deg,rgba(16,53,91,.96),rgba(46,36,91,.96)); box-shadow:0 8px 27px rgba(10,34,71,.24),0 0 20px rgba(81,204,255,.12); font:700 11px/1.2 Inter,Arial,sans-serif; letter-spacing:.04em; cursor:pointer; white-space:nowrap; transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.tec-bot-launch:hover { transform:translateY(-2px); border-color:#8aeaff; box-shadow:0 11px 28px rgba(10,34,71,.32),0 0 22px rgba(81,204,255,.22); }
.tec-bot-launch i { color:#8deeff; font-size:13px; }
.tec-bot-panel { position:absolute; left:0; bottom:47px; width:100%; display:flex; flex-direction:column; overflow:hidden; border:1px solid rgba(134,205,255,.26); border-radius:17px; color:#edf6ff; background:linear-gradient(145deg,rgba(9,20,43,.97),rgba(22,24,57,.96)); box-shadow:0 24px 72px rgba(0,0,0,.32),0 0 35px rgba(52,160,255,.12); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); }
.tec-bot-panel[hidden] { display:none; }
.tec-bot-panel-head { padding:12px 14px 10px; border-bottom:1px solid rgba(166,204,255,.12); text-align:center; }
.tec-bot-panel-head strong { font-size:12px; letter-spacing:.13em; }
.tec-bot-controls { display:flex; align-items:center; padding:13px; }
.tec-bot-controls .tec-bot-mic { display:inline-flex; align-items:center; justify-content:center; gap:9px; width:100%; min-height:43px; padding:11px 14px; border:1px solid transparent; border-radius:12px; color:#fff; background:linear-gradient(110deg,#226fd7,#7756d9); box-shadow:0 8px 22px rgba(25,84,174,.22); font:700 12px/1 Inter,Arial,sans-serif; cursor:pointer; transition:transform .2s ease,filter .2s ease,opacity .2s ease; }
.tec-bot-controls .tec-bot-mic:hover:not(:disabled) { transform:translateY(-1px); filter:brightness(1.12); }
.tec-bot-controls .tec-bot-mic.is-live { background:linear-gradient(110deg,#087d77,#2377ae); box-shadow:0 8px 22px rgba(9,133,130,.24); }
.tec-bot-controls .tec-bot-mic.is-busy,.tec-bot-controls .tec-bot-mic:disabled { opacity:.72; cursor:wait; }
.tec-bot-controls .tec-bot-mic:focus-visible,.tec-bot-launch:focus-visible { outline:2px solid #8cefff; outline-offset:3px; }
.page-robot.is-listening .tec-bot-svg .bot-head { filter:drop-shadow(0 0 8px rgba(70,242,225,.72)); }
.page-robot.is-speaking .tec-bot-svg .bot-head { filter:drop-shadow(0 0 11px rgba(166,132,255,.85)); }
.tec-bot-mouse-pointer { position:fixed; z-index:10030; top:0; left:0; width:22px; height:22px; opacity:0; pointer-events:none; transform:translate3d(-140px,-140px,0); transform-origin:top left; transition:transform .42s cubic-bezier(.16,.86,.2,1),opacity .14s ease; filter:drop-shadow(0 1px 2px rgba(60,22,65,.35)); will-change:transform,opacity; }
.tec-bot-mouse-pointer.is-visible { opacity:1; }
.tec-bot-mouse-image { display:block; width:22px; height:22px; object-fit:contain; user-select:none; -webkit-user-drag:none; }
.tec-bot-mouse-pointer.is-image-unavailable::before { content:'↖'; position:absolute; left:0; top:-2px; color:#e879bd; font:700 22px/1 Arial,sans-serif; text-shadow:0 1px 2px rgba(70,20,60,.35); }
.tec-bot-mouse-pointer.is-clicking::after { content:''; position:absolute; left:1px; top:1px; width:15px; height:15px; border:1.5px solid rgba(246,105,190,.95); border-radius:50%; animation:tecBotClickRipple .34s ease-out 1; }
.tec-bot-mouse-pointer.is-scrolling { transition:transform .035s linear,opacity .14s ease; }
.tec-bot-target-highlight { outline:2px solid rgba(87,219,255,.85)!important; outline-offset:5px!important; box-shadow:0 0 0 7px rgba(76,185,255,.12),0 0 24px rgba(76,185,255,.24)!important; transition:outline .2s ease,box-shadow .2s ease; }
@keyframes tecBotClickRipple { 0%{transform:scale(.35);opacity:.9} 100%{transform:scale(1.65);opacity:0} }
@media(max-width:760px) {
  .page-robot .tec-bot-voice-dock { left:calc(100% + 8px); width:min(290px,calc(100vw - 76px)); }
  .tec-bot-launch { min-height:34px; padding:7px 11px; font-size:10px; }
  .tec-bot-controls { padding:11px; }
}
@media(max-width:390px) {
  .page-robot .tec-bot-voice-dock { left:calc(100% + 5px); width:calc(100vw - 72px); }
}
@media(prefers-reduced-motion:reduce) {
  .tec-bot-launch,.tec-bot-mouse-pointer,.tec-bot-controls .tec-bot-mic { transition:none!important; }
  .tec-bot-mouse-pointer { animation:none!important; }
}
/* TEC BOT visible text highlight fallback for browsers without the CSS Custom Highlight API. */
.tec-bot-text-highlight-box { position:absolute; z-index:10018; pointer-events:none; border-radius:4px; background:rgba(255,226,92,.42); outline:1px solid rgba(224,157,20,.82); box-shadow:0 0 0 3px rgba(255,211,70,.16),0 0 18px rgba(255,205,55,.32); animation:tecBotTextGlow 1.1s ease-in-out infinite alternate; }
::highlight(tecBotTextHighlight) { background:rgba(255,226,92,.62); color:inherit; text-decoration:underline 2px rgba(218,143,17,.9); text-underline-offset:2px; }
@keyframes tecBotTextGlow { from { opacity:.72; } to { opacity:1; } }


/* TEC BOT expressive character states */
.page-robot { --tec-bot-emotion-glow: rgba(95,226,255,.22); }
.page-robot .bot-head { transform-box: fill-box; transform-origin: 50% 55%; transition: transform .24s ease, filter .24s ease; }
.page-robot .bot-arm-right { transform-box: fill-box; transform-origin: 20% 15%; transition: transform .2s ease; }
.page-robot.emotion-listening .bot-head { animation: tecBotListenTilt 2.2s ease-in-out infinite; filter: drop-shadow(0 0 8px rgba(94,232,255,.45)); }
.page-robot.emotion-thinking .bot-head { transform: rotate(-7deg) translateY(-2px); filter: drop-shadow(0 0 10px rgba(175,145,255,.6)); }
.page-robot.emotion-thinking .bot-arm-right { animation: tecBotThinkTap .7s ease-in-out infinite alternate; }
.page-robot.emotion-speaking .bot-head { animation: tecBotSpeakBob .38s ease-in-out infinite alternate; filter: drop-shadow(0 0 12px rgba(111,255,229,.7)); }
.page-robot.emotion-speaking .bot-head > path { stroke-width: 3.8; }
.page-robot.emotion-happy .bot-head { animation: tecBotHappyBounce .55s ease-in-out 2; filter: drop-shadow(0 0 14px rgba(255,211,112,.72)); }
.page-robot.emotion-happy .bot-arm-right { animation: tecBotWave .36s ease-in-out 4 alternate; }
.page-robot.emotion-confused .bot-head { animation: tecBotConfused .38s ease-in-out 3 alternate; filter: drop-shadow(0 0 11px rgba(255,143,176,.55)); }
@keyframes tecBotListenTilt { 0%,100% { transform: rotate(0); } 50% { transform: rotate(3deg) translateY(-1px); } }
@keyframes tecBotThinkTap { from { transform: rotate(0); } to { transform: rotate(-12deg); } }
@keyframes tecBotSpeakBob { from { transform: translateY(0); } to { transform: translateY(-2px); } }
@keyframes tecBotHappyBounce { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(3deg); } }
@keyframes tecBotWave { from { transform: rotate(0); } to { transform: rotate(-25deg); } }
@keyframes tecBotConfused { from { transform: rotate(-5deg); } to { transform: rotate(6deg); } }

/* Public announcements controlled from the authenticated admin panel */
.tec-bot-site-notice { position:fixed; z-index:10050; top:16px; left:50%; transform:translateX(-50%); width:min(720px,calc(100vw - 28px)); display:flex; align-items:flex-start; gap:14px; padding:13px 14px 13px 16px; border:1px solid rgba(125,204,255,.38); border-radius:15px; color:#f4f8ff; background:linear-gradient(135deg,rgba(13,29,59,.97),rgba(35,35,79,.96)); box-shadow:0 18px 48px rgba(0,0,0,.26),0 0 24px rgba(80,183,255,.15); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); animation:tecBotNoticeIn .32s ease-out both; }
.tec-bot-site-notice.notice-success { border-color:rgba(77,218,166,.5); }
.tec-bot-site-notice.notice-urgent { border-color:rgba(255,151,125,.58); }
.tec-bot-site-notice-content { display:flex; flex:1; min-width:0; flex-direction:column; gap:4px; }
.tec-bot-site-notice-content strong { font-size:13px; line-height:1.35; }
.tec-bot-site-notice-content span { color:rgba(238,245,255,.88); font-size:12px; line-height:1.55; }
.tec-bot-site-notice-close { flex:0 0 28px; width:28px; height:28px; border:0; border-radius:8px; color:#fff; background:rgba(255,255,255,.11); font-size:22px; line-height:1; cursor:pointer; }
.tec-bot-site-notice-close:hover { background:rgba(255,255,255,.2); }
@keyframes tecBotNoticeIn { from { opacity:0; transform:translate(-50%,-10px); } to { opacity:1; transform:translate(-50%,0); } }
@media(prefers-reduced-motion:reduce) { .page-robot .bot-head,.page-robot .bot-arm-right,.tec-bot-site-notice { animation:none!important; transition:none!important; } }
