.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 GTranslate-style 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}}

/* v0.1.11: 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;max-width:min(520px,calc(100vw - 24px));transform:translate(-50%,12px);opacity:0;pointer-events:none;background:#111827;color:#fff;border-radius:10px;padding:10px 14px;font:600 13px/1.35 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 12px 36px rgba(0,0,0,.28);transition:opacity .16s ease,transform .16s ease;text-align:center}
.tml-live-toast.show{opacity:1;transform:translate(-50%,0)}
.tml-live-toast.ok{background:#065f46}.tml-live-toast.error{background:#991b1b}.tml-live-toast.progress{background:#1f2937}
@media(max-width:1024px),(hover:none) and (pointer:coarse){.tml-live-toast{bottom:16px;font-size:12px}.tml-front-icon{width:21px;height:21px;flex-basis:21px}}
