.toolbox-launcher{position:fixed;z-index:1000;inset:0;overflow:hidden;color:#173746;font:15px/1.5 system-ui,-apple-system,"Microsoft YaHei","PingFang SC",sans-serif}
.toolbox-launcher[hidden]{display:none}
body:has(.toolbox-launcher:not([hidden])){overflow:hidden}
body:has(.toolbox-launcher:not([hidden])) > :is(.app-shell,.topbar,.mobile-nav,.skip-link){visibility:hidden}
.tb-desktop-skip{position:absolute;z-index:5;left:16px;top:60px;transform:translateY(-180px);padding:10px 14px;border-radius:10px;background:#fff;color:#173746;text-decoration:none}
.tb-desktop-skip:focus{transform:none;outline:2px solid #12699e}
.toolbox-launcher .tb-shell{position:relative;width:100%;height:100%;min-height:0;max-width:none;margin:0;padding:0}

/* Keep only the local-data menu, floating directly over the wallpaper. */
.tb-desktop-menu{position:absolute;z-index:3;top:calc(14px + env(safe-area-inset-top));right:20px;color:#234a5e}
.tb-desktop-menu svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tb-desktop-menu summary{display:grid;place-items:center;width:40px;height:40px;border:1px solid rgba(255,255,255,.6);border-radius:12px;list-style:none;cursor:pointer;background:rgba(237,248,255,.36);box-shadow:0 4px 14px rgba(18,47,62,.16),inset 0 1px 0 rgba(255,255,255,.4);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.tb-desktop-menu summary::-webkit-details-marker{display:none}
.tb-desktop-menu[open] summary,.tb-desktop-menu summary:hover{background:rgba(244,251,255,.58)}
.tb-desktop-menu nav{position:absolute;top:calc(100% + 12px);right:0;width:202px;padding:7px;border:1px solid rgba(255,255,255,.8);border-radius:14px;background:rgba(249,252,251,.96);color:#173746;text-shadow:none;box-shadow:0 14px 36px rgba(8,30,37,.24);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.tb-desktop-menu nav a{display:flex;align-items:center;min-height:42px;padding:10px 12px;border-radius:8px;color:inherit;text-decoration:none;font-size:13px}
.tb-desktop-menu nav a:hover{background:#e0eff3}
.tb-desktop-menu summary:focus-visible,.tb-desktop-menu nav a:focus-visible{outline:2px solid #71cfff;outline-offset:3px}

/* One row of tools; only the track scrolls, never the desktop. */
.toolbox-launcher .tb-dock{position:absolute;z-index:2;left:50%;bottom:calc(20px + env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:4px;width:max-content;max-width:calc(100% - 40px);padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
/* Extra invisible headroom lets icons bounce without the scroll viewport clipping them. */
.toolbox-launcher .tb-modules{display:flex;flex:0 1 auto;align-items:flex-start;gap:12px;min-width:0;margin:0;padding:56px 8px 32px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x}
.tb-modules:focus-visible{outline:2px solid #12699e;outline-offset:-2px;border-radius:12px}
.tb-modules::-webkit-scrollbar{display:none}
.toolbox-launcher .tb-module{--dock-color:rgba(232,245,253,.28);--dock-ink:#5D5348;position:relative;display:flex;flex:0 0 92px;flex-direction:column;align-items:center;gap:0;width:92px;min-height:0;margin:0;padding:4px 2px;border:0;border-radius:14px;background:transparent;box-shadow:none;color:#173746;font:inherit;text-align:center;text-decoration:none;cursor:pointer;appearance:none}
.toolbox-launcher .tb-module::after{content:none}
.toolbox-launcher .tb-module-top{display:contents}
.toolbox-launcher .tb-arrow{display:none}
.toolbox-launcher .tb-icon{display:grid;place-items:center;flex:0 0 auto;width:64px;height:64px;border:1px solid rgba(255,255,255,.58);border-radius:16px;background-color:var(--dock-color);background-image:linear-gradient(125deg,rgba(255,255,255,.18),rgba(228,245,255,.03) 55%,rgba(255,255,255,.12));color:var(--dock-ink);box-shadow:0 5px 16px rgba(58,49,40,.14),inset 0 1px 0 rgba(255,255,255,.42);backdrop-filter:blur(26px) saturate(115%) brightness(1.07);-webkit-backdrop-filter:blur(26px) saturate(115%) brightness(1.07);transform-origin:50% 100%;transition:transform .26s cubic-bezier(.2,.8,.2,1),box-shadow .26s ease;will-change:transform}
.toolbox-launcher .tb-icon svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.toolbox-launcher .tb-module h2{position:absolute;top:calc(100% + 6px);left:50%;width:max-content;max-width:none;margin:0;padding:3px 8px;border-radius:7px;background:rgba(70,61,52,.82);color:#fff;font-size:12px;font-weight:500;line-height:1.4;white-space:nowrap;opacity:0;transform:translateX(-50%);pointer-events:none;transition:opacity .16s ease}
/* One ice-mist material and warm taupe artwork, matching the room wallpaper. */
.toolbox-launcher .tb-module:focus-visible{outline:2px solid #fff;outline-offset:-1px;background:transparent}
.toolbox-launcher .tb-module:focus-visible .tb-icon{transform:translateY(-10px) scale(1.14)}
.toolbox-launcher .tb-module:focus-visible h2{opacity:1}
@keyframes tb-dock-hop{0%{transform:translateY(0) scale(1)}45%{transform:translateY(-30px) scale(1.30)}72%{transform:translateY(-13px) scale(1.24)}100%{transform:translateY(-18px) scale(1.28)}}
@media(hover:hover) and (pointer:fine){
  .toolbox-launcher .tb-module:hover{z-index:2}
  .toolbox-launcher .tb-module:hover .tb-icon{transform:translateY(-18px) scale(1.28);animation:tb-dock-hop .52s cubic-bezier(.2,.8,.2,1);box-shadow:0 14px 24px rgba(58,49,40,.20),inset 0 1px 0 rgba(255,255,255,.42)}
  .toolbox-launcher .tb-module:hover h2{opacity:1}
  .toolbox-launcher .tb-module:hover + .tb-module .tb-icon,.toolbox-launcher .tb-module:has(+ .tb-module:hover) .tb-icon{transform:translateY(-6px) scale(1.1)}
}
.toolbox-launcher .tb-module:active .tb-icon{animation:none;transform:scale(.96)}
.toolbox-launcher .tb-dock-scroll{display:grid;place-items:center;flex:0 0 28px;width:28px;height:40px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#fff;filter:drop-shadow(0 1px 3px rgba(13,30,45,.6));transform:translateY(12px);cursor:pointer}
.tb-dock-scroll svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.toolbox-launcher .tb-dock-scroll[hidden]{display:none}
.toolbox-launcher .tb-dock-scroll:disabled{opacity:.3;cursor:default}
.toolbox-launcher .tb-dock-scroll:focus-visible{outline:2px solid #12699e;outline-offset:2px}
@media(max-width:600px){
  .toolbox-launcher{overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain}
  .toolbox-launcher .tb-shell{display:flex;flex-direction:column;height:auto;min-height:100%;padding:calc(78px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom))}
  .tb-desktop-menu{position:fixed;right:14px;top:calc(14px + env(safe-area-inset-top))}
  .toolbox-launcher .tb-dock{position:relative;left:auto;bottom:auto;transform:none;display:block;width:100%;max-width:none;margin-top:auto;padding-top:24px}
  .toolbox-launcher .tb-modules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px;width:100%;padding:14px 8px 10px;border:1px solid rgba(255,255,255,.55);border-radius:24px;overflow:visible;background:rgba(247,252,255,.69);box-shadow:0 8px 28px rgba(35,50,62,.14);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);touch-action:pan-y}
  .toolbox-launcher .tb-module{flex:none;gap:8px;width:100%;min-height:88px;padding:7px 0 5px;border-radius:15px}
  .toolbox-launcher .tb-module:last-child:nth-child(3n + 1){grid-column:2}
  .toolbox-launcher .tb-icon{width:56px;height:56px;border-radius:16px;background-color:rgba(250,254,255,.78);box-shadow:0 3px 10px rgba(35,50,62,.1),inset 0 1px 0 rgba(255,255,255,.7)}
  .toolbox-launcher .tb-icon svg{width:28px;height:28px}
  .toolbox-launcher .tb-modules .tb-module h2{position:static;width:100%;max-width:100%;margin:0;padding:0;background:transparent;color:#344e60;font-size:13px;font-weight:650;line-height:1.5;white-space:normal;overflow-wrap:anywhere;opacity:1;transform:none;text-shadow:none}
  .toolbox-launcher .tb-dock-scroll{display:none!important}
  .toolbox-launcher .tb-module:focus-visible{outline-color:#086fc6;outline-offset:2px}
  .toolbox-launcher .tb-module:focus-visible .tb-icon{transform:none}
}
@media(max-height:420px){
  .toolbox-launcher .tb-dock{bottom:calc(8px + env(safe-area-inset-bottom))}
  .toolbox-launcher .tb-icon{width:48px;height:48px;border-radius:14px}
  .toolbox-launcher .tb-modules{padding-top:56px;padding-bottom:32px}
}
@media(hover:none),(pointer:coarse){.toolbox-launcher .tb-module h2{opacity:1;background:transparent;color:#5D5348;padding:3px 0;font-weight:600;text-shadow:0 1px 2px rgba(255,255,255,.9),0 0 8px #fff}}
@supports not (backdrop-filter:blur(1px)){.toolbox-launcher .tb-icon{background-color:rgba(237,248,255,.72)}}
@media(prefers-reduced-motion:reduce){.toolbox-launcher .tb-icon,.toolbox-launcher .tb-module h2{transition:none}.toolbox-launcher .tb-module .tb-icon{animation:none!important;transform:none!important}}
