.floating-back-to-top{position:fixed;right:24px;bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:90;display:flex;align-items:center;justify-content:center;gap:9px;width:auto;min-height:48px;padding:10px 20px;border:1px solid rgba(255,255,255,.3);border-radius:8px;background:rgba(255,255,255,.1);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:#fff;font-size:16px;cursor:pointer;text-decoration:none;box-shadow:0 4px 6px rgba(0,0,0,.1);transition:background-color .3s ease,border-color .3s ease,transform .3s ease}
.floating-back-to-top[hidden]{display:none}
.floating-back-to-top svg{display:block;width:23px;height:23px;pointer-events:none}
.floating-back-to-top:hover{background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.5);transform:translateY(-3px)}
.floating-back-to-top:focus-visible{outline:3px solid #f4f0e8;outline-offset:3px;box-shadow:0 0 0 7px #201f21}
@media(max-width:750px){.floating-back-to-top{right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px))}}
@media(prefers-reduced-motion:reduce){.floating-back-to-top{transition:none}.floating-back-to-top:hover{transform:none}}
@media print{.floating-back-to-top{display:none!important}}

.floating-back-to-top>span,.floating-back-to-top .lg-label{font:600 16px/1.4 "ibm-plex-mono",monospace;letter-spacing:.08em;white-space:nowrap}

/* LiquidGlassButtonPlus optical surface; all layers stay inside the original anchor. */
.floating-back-to-top[data-liquid-glass]{padding:0;border:0;border-radius:999px;background:none;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;perspective:900px;touch-action:manipulation;--lg-blur:2.5px;--lg-x:50%;--lg-y:50%;color:#26282d}
.floating-back-to-top[data-liquid-glass]:hover{background:none;transform:none}
.floating-back-to-top .lg-face{position:relative;display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:12px 20px;border-radius:inherit;isolation:isolate;transition:transform .4s cubic-bezier(.2,.8,.2,1);text-shadow:0 1px 1px #ffffff45}
.floating-back-to-top .lg-body{position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:0 1px 1px #00000028,0 4px 5px -3px #00000038,0 12px 20px -10px #00000035}
.floating-back-to-top .lg-surface{position:absolute;inset:0;border-radius:inherit;overflow:hidden;background:linear-gradient(150deg,#ffffff32,#ffffff08 42%,#ffffff24);backdrop-filter:blur(var(--lg-blur)) saturate(1.08);-webkit-backdrop-filter:blur(var(--lg-blur)) saturate(1.08);box-shadow:inset 0 1px 1px #ffffffcc,inset 0 -1px 1px #ffffffaa,inset 1px 0 .5px #ffffffaa,inset -1px 0 .5px #00000020}
.floating-back-to-top .lg-tint{position:absolute;inset:0;background:white;opacity:.045}
.floating-back-to-top .lg-shoulder{position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 9px 12px -8px #00000070,inset 0 -9px 9px -7px #ffffffed,inset 5px 0 8px -7px #0000006b,inset -5px 0 8px -7px #0000004d}
.floating-back-to-top .lg-normal{position:absolute;inset:0;width:100%;height:100%;opacity:.8;border-radius:inherit}
.floating-back-to-top .lg-rim{position:absolute;inset:0;padding:1.25px;border-radius:inherit;background:conic-gradient(from 180deg,#ffffffdf,#ffffff60 36deg,#ffffff05 68deg,#00000021 112deg,#ffffff18 155deg,#fff 190deg,#ffffffb3 217deg,#ffffff06 256deg,#0000000f 300deg,#ffffff15 335deg,#ffffffdf);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
.floating-back-to-top .lg-reflection{position:absolute;inset:-45% -50%;background:linear-gradient(112deg,#fff0 27%,#ffffff03 32%,#ffffff42 42%,#ffffff66 46%,#ffffff18 53%,#fff0 61%);transform:translateX(-30%);opacity:.16;transition:transform .45s ease,opacity .3s ease}
.floating-back-to-top .lg-pointer-light{position:absolute;inset:0;border-radius:inherit;background:radial-gradient(ellipse 76px 44px at var(--lg-x) var(--lg-y),#ffffff2b,#ffffff12 36%,#fff0 78%);opacity:0;transition:opacity .3s ease}
.floating-back-to-top .lg-caustic{position:absolute;left:10%;bottom:1px;width:44%;height:2px;border-radius:100%;background:linear-gradient(90deg,#fff0,#ffffffed 48%,#fff0);filter:blur(.35px);opacity:.1;transition:opacity .3s ease,transform .45s ease}
.floating-back-to-top .lg-bottom{position:absolute;left:14%;right:14%;bottom:1.25px;height:1px;background:linear-gradient(90deg,#fff0,#ffffff08 20%,#ffffffcf 53%,#ffffff12 86%,#fff0);opacity:.8}
.floating-back-to-top .lg-label,.floating-back-to-top .lg-face>svg{position:relative;z-index:1;pointer-events:none}
.floating-back-to-top .lg-filter{position:absolute;width:0;height:0;pointer-events:none}
.floating-back-to-top[data-glass-surface=dark]{color:#f6f7fa}
.floating-back-to-top[data-glass-surface=dark] .lg-face{text-shadow:0 1px 2px #00000045}
.floating-back-to-top[data-glass-surface=dark] .lg-surface{background:linear-gradient(155deg,#ffffff14,#ffffff03 48%,#ffffff08)}
.floating-back-to-top[data-glass-hover=true]{--lg-blur:.3px}
.floating-back-to-top[data-glass-hover=true] .lg-face{transform:translateY(-.65px) rotateX(var(--lg-rx,0deg)) rotateY(var(--lg-ry,0deg))}
.floating-back-to-top[data-glass-hover=true] .lg-reflection{transform:translateX(var(--lg-reflection-x,6%));opacity:.34}
.floating-back-to-top[data-glass-hover=true] .lg-pointer-light{opacity:.75}
.floating-back-to-top[data-glass-hover=true] .lg-caustic{transform:translateX(75%);opacity:.72}
.floating-back-to-top[data-glass-pressed=true] .lg-face{transform:translateY(1.8px) scale(.991,.974)}
.floating-back-to-top[data-liquid-glass]:focus-visible{outline:3px solid #b517bd;outline-offset:5px;box-shadow:0 0 0 2px #f4f0e8}
@media(prefers-reduced-motion:reduce){.floating-back-to-top .lg-face,.floating-back-to-top .lg-reflection,.floating-back-to-top .lg-caustic{transform:none!important;transition:none!important}.floating-back-to-top .lg-pointer-light{transition:none}}
@media(prefers-reduced-transparency:reduce){.floating-back-to-top .lg-surface{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:#d5d7da}.floating-back-to-top[data-glass-surface=dark] .lg-surface{background:#303239}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.floating-back-to-top .lg-surface{background:#d5d7da}.floating-back-to-top[data-glass-surface=dark] .lg-surface{background:#303239}}
@media(forced-colors:active){.floating-back-to-top[data-liquid-glass]{border:2px solid ButtonText;color:ButtonText}.floating-back-to-top .lg-body{display:none}.floating-back-to-top .lg-face{text-shadow:none}}

/* Compact arrow-only lens; the anchor retains its accessible name. */
.floating-back-to-top{width:48px;height:48px;padding:0;border-radius:50%}
.floating-back-to-top>span:not(.lg-face),.floating-back-to-top .lg-label{display:none}
.floating-back-to-top .lg-face{box-sizing:border-box;width:100%;height:100%;padding:12px;gap:0}
