/* 1.1.6: physical positioning and new button designs, scoped to GTP. */
.gtp-switcher .gtp-menu[hidden]{display:none!important}
.gtp-switcher .screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
.gtp-switcher .gtp-btn{font-family:inherit;font-size:var(--gtp-fs,15px);font-weight:600;line-height:1.35;min-height:42px;max-width:100%}
.gtp-size-sm .gtp-btn{font-size:calc(var(--gtp-fs,15px) * .875);min-height:36px}
.gtp-size-lg .gtp-btn{font-size:calc(var(--gtp-fs,15px) * 1.12);min-height:48px}
.gtp-size-xl .gtp-btn{font-size:calc(var(--gtp-fs,15px) * 1.25);min-height:54px}
.gtp-switcher .gtp-globe{flex:none}
.gtp-switcher .gtp-btn>.gtp-code,.gtp-switcher .gtp-btn>.gtp-name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gtp-switcher.gtp-label-name .gtp-btn>.gtp-code{display:none}
.gtp-switcher.gtp-label-name .gtp-btn>.gtp-name,.gtp-switcher.gtp-label-both .gtp-btn>.gtp-name{display:inline}
.gtp-switcher.gtp-label-code .gtp-btn>.gtp-name,.gtp-switcher.gtp-label-none .gtp-btn>.gtp-code,.gtp-switcher.gtp-label-none .gtp-btn>.gtp-name{display:none}
.gtp-switcher .gtp-menu .gtp-name,.gtp-switcher .gtp-menu .gtp-code{display:inline}
.gtp-switcher .gtp-btn:focus-visible{outline:3px solid var(--gtp-focus,#327b9b);outline-offset:4px}
/* Do not turn the cube label edge-on when its menu is open. */
.gtp-style-3 .gtp-btn[aria-expanded=true],.gtp-style-3.gtp-toggled .gtp-btn{transform:rotateY(-12deg) rotateX(4deg)}
.gtp-style-6 .gtp-btn{padding:.62em 1.05em;position:relative}
.gtp-style-6 .gtp-btn::after{pointer-events:none}
.gtp-style-6 .gtp-btn:hover>*{visibility:visible}
.gtp-style-6 .gtp-btn:hover::after{opacity:.15}

/* 17 - Ceramic: lit upper edge, warm solid base. */
.gtp-style-17 .gtp-btn{background:linear-gradient(175deg,var(--gtp-shadow-light),var(--gtp-c-bg) 48%,var(--gtp-accent-1));color:var(--gtp-c-color);box-shadow:inset 0 2px 0 var(--gtp-shadow-light),inset 0 -2px 1px var(--gtp-accent-1),0 5px 0 var(--gtp-shadow),0 10px 15px -5px #24384d33}
.gtp-style-17 .gtp-btn:hover{background:linear-gradient(175deg,var(--gtp-c-hover-bg),var(--gtp-c-bg));color:var(--gtp-c-hover-color);transform:translateY(-2px)}
.gtp-style-17 .gtp-btn:active{transform:translateY(4px);box-shadow:inset 0 1px 3px var(--gtp-shadow),0 1px 0 var(--gtp-shadow)}
/* 18 - Graphite: machined bevel. */
.gtp-style-18 .gtp-btn{background:linear-gradient(155deg,var(--gtp-accent-1),var(--gtp-c-bg) 65%);color:var(--gtp-c-color);box-shadow:inset 0 1px 0 var(--gtp-shadow-light),inset 1px 0 0 #ffffff1f,0 5px 0 var(--gtp-shadow),0 11px 18px -7px #12203377;text-shadow:0 1px 1px var(--gtp-shadow)}
.gtp-style-18 .gtp-btn:hover{background:linear-gradient(155deg,var(--gtp-c-hover-bg),var(--gtp-accent-1));color:var(--gtp-c-hover-color);transform:translateY(-1px)}
.gtp-style-18 .gtp-btn:active{transform:translateY(3px);box-shadow:inset 0 1px 3px var(--gtp-shadow),0 2px 0 var(--gtp-shadow)}
/* 19 - Sapphire: compact layered 3D. */
.gtp-style-19 .gtp-btn{background:linear-gradient(155deg,var(--gtp-accent-1),var(--gtp-c-bg));color:var(--gtp-c-color);box-shadow:inset 0 2px 0 var(--gtp-shadow-light),0 5px 0 var(--gtp-shadow),0 9px 16px -6px #1b528755}
.gtp-style-19 .gtp-btn:hover{background:linear-gradient(155deg,var(--gtp-c-hover-bg),var(--gtp-c-bg));color:var(--gtp-c-hover-color);transform:translateY(-2px)}
.gtp-style-19 .gtp-btn:active{transform:translateY(4px);box-shadow:inset 0 2px 3px var(--gtp-shadow),0 1px 0 var(--gtp-shadow)}
/* 20 - Emerald: restrained embossed finish. */
.gtp-style-20 .gtp-btn{background:linear-gradient(165deg,var(--gtp-accent-1),var(--gtp-c-bg));color:var(--gtp-c-color);box-shadow:inset 0 1px 0 var(--gtp-shadow-light),inset 0 0 0 3px #ffffff0d,0 4px 0 var(--gtp-shadow),0 9px 14px -7px #14463866}
.gtp-style-20 .gtp-btn:hover{background:linear-gradient(165deg,var(--gtp-c-hover-bg),var(--gtp-c-bg));color:var(--gtp-c-hover-color);transform:translateY(-2px)}
.gtp-style-20 .gtp-btn:active{transform:translateY(3px);box-shadow:inset 0 2px 4px var(--gtp-shadow),0 1px 0 var(--gtp-shadow)}
/* 21 - Brushed copper, with a readable dark label. */
.gtp-style-21 .gtp-btn{background:linear-gradient(115deg,var(--gtp-c-bg),var(--gtp-accent-1) 35%,var(--gtp-shadow-light) 48%,var(--gtp-accent-1) 65%,var(--gtp-c-bg));background-size:170% 100%;color:var(--gtp-c-color);box-shadow:inset 0 1px 0 var(--gtp-shadow-light),0 4px 0 var(--gtp-shadow),0 8px 14px -5px #724a393d}
.gtp-style-21 .gtp-btn:hover{background-position:100% 50%;color:var(--gtp-c-hover-color);transform:translateY(-1px)}
.gtp-style-21 .gtp-btn:active{transform:translateY(3px);box-shadow:inset 0 1px 4px var(--gtp-shadow),0 1px 0 var(--gtp-shadow)}
/* 22 - Crystal: opaque fallback, translucent when supported. */
.gtp-style-22 .gtp-btn{background:linear-gradient(165deg,var(--gtp-shadow-light),var(--gtp-c-bg));color:var(--gtp-c-color);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:inset 0 2px 0 var(--gtp-shadow-light),inset 0 -1px 1px var(--gtp-accent-1),0 3px 0 var(--gtp-accent-1),0 9px 18px -7px var(--gtp-shadow)}
@supports(background:color-mix(in srgb,white,transparent)){.gtp-style-22 .gtp-btn{background:linear-gradient(165deg,color-mix(in srgb,var(--gtp-shadow-light) 88%,transparent),color-mix(in srgb,var(--gtp-c-bg) 80%,transparent))}}
.gtp-style-22 .gtp-btn:hover{background:var(--gtp-c-hover-bg);color:var(--gtp-c-hover-color);transform:translateY(-2px)}
/* 23 - Architectural double layer. */
.gtp-style-23 .gtp-btn{background:var(--gtp-c-bg);color:var(--gtp-c-color);box-shadow:3px 3px 0 var(--gtp-accent-1),5px 5px 0 var(--gtp-shadow),0 10px 16px -8px #253b4c44}
.gtp-style-23 .gtp-btn:hover{background:var(--gtp-c-hover-bg);color:var(--gtp-c-hover-color);transform:translate(-1px,-1px);box-shadow:4px 4px 0 var(--gtp-accent-1),6px 6px 0 var(--gtp-shadow)}
.gtp-style-23 .gtp-btn:active{transform:translate(4px,4px);box-shadow:1px 1px 0 var(--gtp-shadow)}
/* 24 - Satin: low-profile tactile control. */
.gtp-style-24 .gtp-btn{background:linear-gradient(180deg,var(--gtp-shadow-light),var(--gtp-c-bg));color:var(--gtp-c-color);box-shadow:inset 0 1px 0 var(--gtp-shadow-light),0 2px 0 var(--gtp-shadow),0 6px 10px -5px #273d5133}
.gtp-style-24 .gtp-btn:hover{background:var(--gtp-c-hover-bg);color:var(--gtp-c-hover-color);transform:translateY(-1px)}
.gtp-style-24 .gtp-btn:active{transform:translateY(1px);box-shadow:inset 0 1px 3px var(--gtp-shadow),0 1px 0 var(--gtp-shadow)}

/* Shape selection takes precedence over design-specific radii. */
.gtp-switcher.gtp-shape-pill .gtp-btn{border-radius:var(--gtp-radius,999px);clip-path:none}
.gtp-switcher.gtp-shape-square .gtp-btn{border-radius:0;clip-path:none}
.gtp-switcher.gtp-shape-rounded .gtp-btn{border-radius:10px;clip-path:none}
.gtp-switcher.gtp-shape-squircle .gtp-btn{border-radius:18px;clip-path:none}
.gtp-switcher.gtp-shape-leaf .gtp-btn{border-radius:22px 4px 22px 4px;clip-path:none}
.gtp-switcher.gtp-shape-ticket .gtp-btn{border-radius:4px;clip-path:polygon(0 0,100% 0,100% 30%,95% 38%,95% 62%,100% 70%,100% 100%,0 100%,0 70%,5% 62%,5% 38%,0 30%);padding-inline:1.3em}
.gtp-switcher.gtp-shape-beveled .gtp-btn{border-radius:0;clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px)}
.gtp-switcher.gtp-shape-octagon .gtp-btn{border-radius:0;clip-path:polygon(14px 0,calc(100% - 14px) 0,100% 14px,100% calc(100% - 14px),calc(100% - 14px) 100%,14px 100%,0 calc(100% - 14px),0 14px);padding-inline:1.4em}
.gtp-switcher.gtp-shape-hexagon .gtp-btn{border-radius:0;clip-path:polygon(15% 0,85% 0,100% 50%,85% 100%,15% 100%,0 50%);padding-inline:1.5em}
.gtp-switcher.gtp-shape-circle .gtp-btn{width:3.2em;height:3.2em;min-width:3.2em;padding:0;border-radius:50%;justify-content:center;clip-path:none}
.gtp-switcher.gtp-shape-circle .gtp-btn>.gtp-code,.gtp-switcher.gtp-shape-circle .gtp-btn>.gtp-name,.gtp-switcher.gtp-shape-circle .gtp-btn>.gtp-caret{display:none}
.gtp-switcher.gtp-shape-circle .gtp-btn>.gtp-globe{display:inline-flex}
.gtp-style-16:not(.gtp-shape-circle) .gtp-btn{width:auto;height:auto;padding:.62em 1.05em}
.gtp-style-16 .gtp-btn::before,.gtp-style-16 .gtp-btn::after{border-radius:inherit}
.gtp-style-6 .gtp-btn::before,.gtp-style-6 .gtp-btn::after{border-radius:inherit}

/* Always physical left/right; never apply these coordinates to the child. */
.gtp-floating-wrap[data-gtp-floating]{position:fixed;inset:auto;margin:0;padding:0;width:max-content;max-width:calc(100vw - 16px);z-index:var(--gtp-z,999990);transition:opacity .2s;box-sizing:border-box}
.gtp-floating-wrap>.gtp-switcher{position:relative;inset:auto;transform:none;max-width:100%;margin:0}
.gtp-floating-wrap.gtp-float-top-left{left:max(8px,calc(var(--gtp-fx,24px) + var(--gtp-sx,0px)));top:max(8px,calc(var(--gtp-fy,24px) + var(--gtp-sy,0px) + env(safe-area-inset-top,0px)))}
.gtp-floating-wrap.gtp-float-top-right{right:max(8px,calc(var(--gtp-fx,24px) - var(--gtp-sx,0px)));top:max(8px,calc(var(--gtp-fy,24px) + var(--gtp-sy,0px) + env(safe-area-inset-top,0px)))}
.gtp-floating-wrap.gtp-float-bottom-left{left:max(8px,calc(var(--gtp-fx,24px) + var(--gtp-sx,0px)));bottom:max(8px,calc(var(--gtp-fy,24px) - var(--gtp-sy,0px) + env(safe-area-inset-bottom,0px)))}
.gtp-floating-wrap.gtp-float-bottom-right,.gtp-floating-wrap.gtp-float-custom{right:max(8px,calc(var(--gtp-fx,24px) - var(--gtp-sx,0px)));bottom:max(8px,calc(var(--gtp-fy,24px) - var(--gtp-sy,0px) + env(safe-area-inset-bottom,0px)))}
.gtp-floating-wrap.gtp-float-top-center{left:calc(50% + var(--gtp-sx,0px));top:max(8px,calc(var(--gtp-fy,24px) + var(--gtp-sy,0px) + env(safe-area-inset-top,0px)));transform:translateX(-50%)}
.gtp-floating-wrap.gtp-float-bottom-center{left:calc(50% + var(--gtp-sx,0px));bottom:max(8px,calc(var(--gtp-fy,24px) - var(--gtp-sy,0px) + env(safe-area-inset-bottom,0px)));transform:translateX(-50%)}
.gtp-floating-wrap.gtp-float-middle-left{left:max(8px,calc(var(--gtp-fx,24px) + var(--gtp-sx,0px)));top:calc(50% + var(--gtp-sy,0px));transform:translateY(-50%)}
.gtp-floating-wrap.gtp-float-middle-right{right:max(8px,calc(var(--gtp-fx,24px) - var(--gtp-sx,0px)));top:calc(50% + var(--gtp-sy,0px));transform:translateY(-50%)}
.gtp-floating-wrap.gtp-float-middle-center{left:calc(50% + var(--gtp-sx,0px));top:calc(50% + var(--gtp-sy,0px));transform:translate(-50%,-50%)}
.gtp-floating-wrap .gtp-menu{inset-inline:auto;right:auto;left:0;top:calc(100% + 10px);bottom:auto;min-width:min(200px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:min(360px,70vh);overflow-y:auto;overscroll-behavior:contain}
.gtp-floating-wrap:is(.gtp-float-bottom-left,.gtp-float-bottom-right,.gtp-float-bottom-center,.gtp-float-custom) .gtp-menu{top:auto;bottom:calc(100% + 10px)}
.gtp-floating-wrap:is(.gtp-float-top-right,.gtp-float-middle-right,.gtp-float-bottom-right,.gtp-float-custom) .gtp-menu{left:auto;right:0}
.gtp-floating-wrap.gtp-float-hidden{opacity:0;visibility:hidden;pointer-events:none}
@media(max-width:480px){.gtp-hide-mobile{display:none!important}}
@media(min-width:481px) and (max-width:1024px){.gtp-hide-tablet{display:none!important}}
@media(min-width:1025px){.gtp-hide-desktop{display:none!important}}
@media(prefers-reduced-motion:reduce){.gtp-switcher *,.gtp-switcher *::before,.gtp-switcher *::after{animation:none!important;transition:none!important}.gtp-switcher .gtp-btn:hover{transform:none}}
@media print{.gtp-floating-wrap,.gtp-switcher{display:none!important}}

/* Existing styles remain legible with every new shape and menu placement. */
.gtp-style-8:not(.gtp-shape-circle) .gtp-btn{width:auto;height:auto;padding:.62em 1.05em}
.gtp-style-8 .gtp-menu{position:absolute;inset:auto;top:calc(100% + 10px);inset-inline-start:0;min-width:180px;padding:6px;background:var(--gtp-menu-bg,#fff);color:var(--gtp-menu-color,#111827);border:1px solid var(--gtp-bc,#d4dce6);border-radius:12px;box-shadow:0 10px 30px #0f233d26;transform:none}
.gtp-style-8 .gtp-menu li{position:static;left:auto;top:auto;transform:none;width:auto;height:auto;margin:0;opacity:1;pointer-events:auto;display:block;background:transparent;border:0;border-radius:6px;box-shadow:none;transition:none}
.gtp-style-8 .gtp-menu .gtp-item__link{width:auto;height:auto;padding:9px 12px;justify-content:flex-start;gap:10px;border-radius:6px}
.gtp-style-10 .gtp-btn{position:relative}
.gtp-style-10 .gtp-btn::after{bottom:-235%}
.gtp-style-10 .gtp-btn>.gtp-code,.gtp-style-10 .gtp-btn>.gtp-name,.gtp-style-10 .gtp-btn>.gtp-globe,.gtp-style-10 .gtp-btn>.gtp-caret{position:relative;z-index:1}
.gtp-switcher .gtp-live{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}

.gtp-switcher .gtp-globe{width:var(--gtp-is,18px);height:var(--gtp-is,18px)}
