/* Desktop only: retain the established phone presentation. */
@media(min-width:781px){
 .nav-shell .nav-inner{grid-template-columns:minmax(150px,190px) minmax(0,1fr) auto}
 .nav-shell #main-nav{flex-wrap:wrap;min-width:0;column-gap:18px;row-gap:0}
 .nav-shell .language-switch{min-width:0;max-width:205px;justify-self:end}
 .nav-shell .service-menu-panel,.nav-shell .checks-menu-panel{max-height:calc(100vh - 180px);max-height:calc(100dvh - 180px);overflow-y:auto;overscroll-behavior:contain}
 #tk-assistant{width:480px;height:min(740px,calc(100vh - 24px));max-height:calc(100vh - 24px);height:min(740px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);z-index:1201}
 #tk-assistant .tk-chat-header{padding:12px 18px}
 #tk-assistant .tk-chat-return-bar{padding:6px 18px;flex-direction:row;align-items:center;justify-content:space-between;gap:10px}
 #tk-assistant .tk-chat-return-bar small{padding:0;max-width:140px}
 #tk-assistant .tk-chat-body{flex:1 1 auto;min-height:0;overflow-y:auto;padding:18px;scrollbar-gutter:stable}
 #tk-assistant [data-chat-start]{position:sticky;bottom:0;z-index:2;width:100%;box-shadow:0 0 0 7px #f8fafb}
 #tk-assistant .tk-chat-footer{padding:10px 18px;min-height:40px}
 #tk-assistant .tk-chat-dock{flex:0 0 auto;min-height:0;padding:10px 18px;background:#f8fafb;border-top:1px solid #d5dce1}
 #tk-assistant .tk-chat-dock[hidden]{display:none}
 #tk-assistant .tk-chat-dock .tk-chat-composer{margin:0;padding:10px 12px}
 #tk-assistant .tk-chat-dock textarea{min-height:60px;height:60px;max-height:100px;resize:vertical}
 #tk-assistant .tk-chat-dock .tk-chat-status{margin:6px 0 0;max-height:60px;overflow:auto}
 #tk-assistant .tk-chat-dock .tk-chat-status:empty{display:none}
 #tk-assistant [data-chat-conversation]{display:flex;flex-direction:column}
 #tk-assistant [data-chat-conversation][hidden]{display:none}
 #tk-assistant [data-chat-conversation]>.tk-messages{order:0}
 #tk-assistant [data-chat-conversation]>.tk-security{order:1}
 #tk-assistant [data-chat-conversation]>.tk-quick-questions{order:2;margin:16px 0}
 #tk-assistant [data-chat-conversation]>button{order:3}
}
@media(min-width:781px) and (max-width:1320px){
 .nav-shell .nav-inner{grid-template-columns:minmax(0,1fr) auto;gap:0 20px;padding-block:6px;width:calc(100% - 40px)}
 .nav-shell .nav-inner>.main-brand{grid-column:1;grid-row:1;width:180px;max-width:180px}
 .nav-shell .language-switch{grid-column:2;grid-row:1}
 .nav-shell #main-nav{grid-column:1/-1;grid-row:2;justify-content:space-between;gap:0 18px;border-top:1px solid #e5e9eb}
 .nav-shell #main-nav>a:not(.nav-contact),.nav-shell #main-nav>a.nav-contact,.nav-shell #main-nav>details>summary{font-size:15px;min-height:48px;padding:12px 0}
 .nav-shell .service-menu-panel{grid-template-columns:140px minmax(0,1fr);gap:20px;padding:20px}
 .nav-shell .menu-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
}
@media(min-width:781px) and (max-height:600px){
 #tk-assistant .tk-chat-header{padding:8px 16px}
 #tk-assistant .tk-chat-return-bar small{display:none}
 #tk-assistant .tk-chat-return-bar{padding-block:2px}
 #tk-assistant .tk-chat-footer{display:none}
 #tk-assistant .tk-chat-dock{padding:8px 14px}
}

@media(min-width:781px){
 .tk-assistant-launch .tk-spark,.tk-assistant-launch.luna-compact{cursor:pointer;touch-action:manipulation}
 .tk-assistant-launch{z-index:1190}
 .luna-launch-dismiss{z-index:1191}
}
.luna-open-error{position:fixed;z-index:1300;bottom:100px;right:20px;width:320px;max-width:calc(100vw - 40px);padding:16px;background:#fff;color:#172635;border:1px solid #b8c4ce;border-radius:12px;box-shadow:0 8px 30px #17263520;font:15px/1.5 system-ui}
.luna-open-error a{display:block;text-decoration:underline;margin-top:8px}

/* Also prevent a late-injected admin widget from intercepting public-site clicks. */
body:not(.wp-admin) #vue-app .chatbot-overwrite{display:none!important}
