.tml-front-switcher{position:relative;width:min(252px,100%);margin:0 auto;font-family:inherit;z-index:9990}
.tml-front-trigger{width:100%;height:36px;border:1px solid #404040;border-radius:0;background:#262626;color:#fff;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 34px 0 16px;font:inherit;font-size:18px;line-height:1;cursor:pointer;position:relative;box-shadow:none}
.tml-front-trigger:hover,.tml-front-trigger:focus{background:#2f2f2f;color:#fff;outline:none}
.tml-front-caret{position:absolute;right:10px;top:50%;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid #ddd;transform:translateY(-35%)}
.tml-front-desktop-menu{display:none;position:absolute;top:100%;left:0;width:100%;max-height:590px;overflow-y:auto;background:#262626;border:1px solid #3b3b3b;border-top:0;box-shadow:0 8px 22px rgba(0,0,0,.28);z-index:9995;scrollbar-color:#9b9b9b #303030;scrollbar-width:auto}
.tml-front-switcher.is-open .tml-front-desktop-menu{display:block}
.tml-front-menu-heading,.tml-front-option{display:block;width:100%;border:0;background:#262626;color:#e9e9e9;text-align:center;padding:7px 10px;font:inherit;font-size:17px;line-height:1.15;cursor:pointer}
.tml-front-menu-heading{background:#3568d4;color:#fff;cursor:default}
.tml-front-option:hover,.tml-front-option:focus{background:#383838;color:#fff;outline:none}
.tml-front-option.is-active{background:#303030;color:#fff;font-weight:600}
.tml-front-mobile-backdrop{display:none;position:fixed;inset:0;background:rgba(0,0,0,.38);z-index:2147483000;align-items:center;justify-content:center;padding:14px;backdrop-filter:blur(1px)}
.tml-front-mobile-backdrop.is-open{display:flex}
.tml-front-mobile-panel{width:min(420px,calc(100vw - 24px));max-height:min(78vh,720px);background:#262626;border:1px solid #444;border-radius:3px;box-shadow:0 20px 60px rgba(0,0,0,.46);display:flex;flex-direction:column;overflow:hidden;transform:translateY(8px) scale(.99);opacity:0;animation:tmlPopupIn .16s ease forwards}
@keyframes tmlPopupIn{to{transform:translateY(0) scale(1);opacity:1}}
.tml-front-mobile-head{min-height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 16px;border-bottom:1px solid #444;color:#fff;background:#242424}
.tml-front-mobile-head strong{font-size:17px;font-weight:500}
.tml-front-close{width:36px;height:36px;border:0;background:transparent;color:#ddd;font-size:30px;line-height:1;cursor:pointer;border-radius:50%}
.tml-front-close:hover,.tml-front-close:focus{background:#383838;color:#fff;outline:none}
.tml-front-mobile-list{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-color:#a8a8a8 #303030}
.tml-front-mobile-option{width:100%;min-height:44px;border:0;border-bottom:1px solid rgba(255,255,255,.045);background:#262626;color:#e7e7e7;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 18px;font:inherit;font-size:17px;text-align:left;cursor:pointer}
.tml-front-mobile-option:hover,.tml-front-mobile-option:focus{background:#353535;color:#fff;outline:none}
.tml-front-mobile-option.is-active{background:#3568d4;color:#fff}
.tml-front-check{font-weight:700}
body.tml-language-popup-open{overflow:hidden!important}
@media (max-width:1024px),(hover:none) and (pointer:coarse){.tml-front-desktop-menu{display:none!important}.tml-front-trigger{font-size:17px}}
@media (min-width:1025px) and (hover:hover) and (pointer:fine){.tml-front-mobile-backdrop{display:none!important}}


/* Optional floating selector positions. */
.tml-floating-selector{position:fixed;z-index:2147482500;width:min(252px,calc(100vw - 24px));pointer-events:auto}
.tml-floating-selector .tml-front-switcher{width:100%;margin:0}
.tml-floating-bottom-left{left:12px;bottom:12px}
.tml-floating-bottom-right{right:12px;bottom:12px}
.tml-floating-top-left{left:12px;top:12px}
.tml-floating-top-right{right:12px;top:12px}
body.admin-bar .tml-floating-top-left,body.admin-bar .tml-floating-top-right{top:44px}
@media (max-width:782px){body.admin-bar .tml-floating-top-left,body.admin-bar .tml-floating-top-right{top:58px}.tml-floating-selector{width:min(252px,calc(100vw - 20px))}.tml-floating-bottom-left,.tml-floating-top-left{left:10px}.tml-floating-bottom-right,.tml-floating-top-right{right:10px}.tml-floating-bottom-left,.tml-floating-bottom-right{bottom:10px}}

/* Official compact icon + live translation status */
.tml-front-trigger{justify-content:center;padding-left:12px;padding-right:34px}
.tml-front-icon{width:22px;height:22px;display:block;flex:0 0 22px;border-radius:5px;object-fit:contain}
.tml-front-mobile-title{display:flex;align-items:center;gap:9px;min-width:0}
.tml-front-mobile-title img{width:24px;height:24px;border-radius:6px;display:block;flex:0 0 24px}
.tml-live-toast{position:fixed;left:50%;bottom:24px;z-index:2147483646;width:max-content;max-width:calc(100vw - 16px);box-sizing:border-box;transform:translate(-50%,12px);opacity:0;pointer-events:none;background:#080808;color:#a6a6a6;border-radius:12px;padding:11px 14px;font:600 16px/1.25 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 10px 28px rgba(0,0,0,.24);transition:opacity .16s ease,transform .16s ease;display:flex;align-items:center;justify-content:center;gap:9px;text-align:left;white-space:nowrap}
.tml-live-toast.show{opacity:1;transform:translate(-50%,0)}
.tml-live-toast-icon{width:22px;height:22px;flex:0 0 22px;display:block;object-fit:contain;border-radius:5px}.tml-live-toast-text{display:block;min-width:0;color:#a6a6a6;white-space:nowrap}
.tml-live-toast.ok{background:#080808;color:#a6a6a6}.tml-live-toast.error{background:#641818;color:#f5d0d0}.tml-live-toast.progress{background:#121212;color:#d1d5db}
@media(max-width:1024px),(hover:none) and (pointer:coarse){.tml-live-toast{bottom:16px;width:max-content;max-width:calc(100vw - 8px);font-size:17px;line-height:1.2;padding:11px 12px;gap:8px;white-space:nowrap}.tml-live-toast-text{white-space:nowrap}.tml-live-toast-icon{width:24px;height:24px;flex-basis:24px}.tml-front-icon{width:21px;height:21px;flex-basis:21px}}


/* v0.1.12 trigger display modes */
.tml-front-switcher.tml-display-icon{width:44px;margin-left:auto;margin-right:auto}.tml-front-switcher.tml-display-icon .tml-front-trigger{width:44px;min-width:44px;padding:0;justify-content:center;border-radius:4px}.tml-front-switcher.tml-display-icon .tml-front-desktop-menu{width:252px;left:0}.tml-front-switcher.tml-display-label .tml-front-trigger{padding-left:16px;padding-right:34px}.tml-front-switcher.tml-display-icon-label .tml-front-trigger{padding-left:12px;padding-right:34px}.tml-front-switcher.tml-display-label .tml-front-label,.tml-front-switcher.tml-display-icon-label .tml-front-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tml-floating-selector.tml-floating-display-icon{width:44px}.tml-floating-selector.tml-floating-display-icon .tml-front-switcher{width:44px}.tml-floating-selector.tml-floating-display-icon .tml-front-desktop-menu{width:252px}.tml-trigger-icon .tml-front-icon{margin:0}.tml-trigger-label{gap:0}
@media(max-width:1024px),(hover:none) and (pointer:coarse){.tml-front-switcher.tml-display-icon .tml-front-trigger{width:44px}.tml-front-switcher.tml-display-icon .tml-front-mobile-backdrop{width:auto}}

.tml-floating-bottom-right.tml-floating-display-icon .tml-front-desktop-menu,.tml-floating-top-right.tml-floating-display-icon .tml-front-desktop-menu{left:auto;right:0}

/* v0.1.13: off-screen GTranslate engine host for Tarak-controlled Live languages. */
.tml-gtranslate-engine-host{position:fixed!important;left:-10000px!important;top:0!important;width:2px!important;height:2px!important;overflow:hidden!important;opacity:.001!important;pointer-events:none!important;z-index:-1!important}


/* v0.1.49 — reference-matched mobile/tablet/WebView language modal. */
.tml-gt-black-overlay{
  display:none;position:fixed!important;inset:0!important;background:#000;z-index:2147483646!important;
  opacity:.72;filter:alpha(opacity=72);touch-action:none;overscroll-behavior:none
}
.tml-gt-white-content{
  display:none;position:fixed!important;top:22px;left:22px;width:calc(100vw - 44px);height:calc(100vh - 44px);
  max-width:none;max-height:none;margin:0;padding:0;background:#424242;color:#fff;z-index:2147483647!important;
  overflow:hidden;text-align:left;box-sizing:border-box;border-radius:4px;
  box-shadow:0 4px 12px rgba(0,0,0,.28);overscroll-behavior:none;
  -webkit-text-size-adjust:100%;text-size-adjust:100%
}
.tml-gt-white-content .tml-gt-languages{
  display:block;width:100%;height:100%;max-height:100%;overflow-y:auto;overflow-x:hidden;
  -webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;
  scrollbar-width:thin;scrollbar-color:#777 #424242
}
.tml-gt-white-content a.tml-gt-option{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  min-height:54px;padding:0 18px 0 14px;border:0;border-bottom:1px solid #5a5a5a;
  background:#424242;color:#fff;text-decoration:none!important;white-space:nowrap;line-height:1;
  box-sizing:border-box;font-family:Roboto,Arial,sans-serif;font-size:20px;font-weight:400;
  outline:none;box-shadow:none;-webkit-tap-highlight-color:transparent
}
.tml-gt-white-content a.tml-gt-option:last-child{border-bottom:0}
.tml-gt-white-content a.tml-gt-option:hover,
.tml-gt-white-content a.tml-gt-option:focus,
.tml-gt-white-content a.tml-gt-option:active{background:#424242;color:#fff}
.tml-gt-white-content a.tml-gt-option.gt-current-lang,
.tml-gt-white-content a.tml-gt-option.is-active{font-weight:400}
.tml-gt-option-label{
  display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font:400 20px/1.1 Roboto,Arial,sans-serif;color:#fff
}
.tml-gt-radio{
  display:block;position:relative;flex:0 0 18px;width:18px;height:18px;
  border:2px solid #d7d7d7;border-radius:50%;box-sizing:border-box;background:transparent
}
/* Reference popup uses an empty radio ring; selection closes immediately, so no inner dot. */
.tml-gt-option.is-active .tml-gt-radio:after,
.tml-gt-option.gt-current-lang .tml-gt-radio:after{display:none!important;content:none!important}
.tml-gt-white-content .tml-gt-languages::-webkit-scrollbar{width:4px}
.tml-gt-white-content .tml-gt-languages::-webkit-scrollbar-track{background:#424242}
.tml-gt-white-content .tml-gt-languages::-webkit-scrollbar-thumb{background:#777;border-radius:2px}
html.tml-language-popup-open,body.tml-language-popup-open{
  overscroll-behavior:none!important;-webkit-overflow-scrolling:auto
}
@media (max-width:420px){
  .tml-gt-white-content a.tml-gt-option{min-height:54px;padding-left:14px;padding-right:18px;font-size:20px}
  .tml-gt-option-label{font-size:20px}
  .tml-gt-radio{width:18px;height:18px;flex-basis:18px}
}
@media (min-width:1025px) and (hover:hover) and (pointer:fine){
  .tml-gt-black-overlay,.tml-gt-white-content{display:none!important}
}
