/* Slip Surgeon Free Tools panel (generated by tools/toolsnav.py; edit there) */
.tpnav{position:relative}
.tp-btn{display:inline-flex;align-items:center;gap:7px;background:transparent;color:#E6F1F2;border:1px solid rgba(70,220,200,.35);border-radius:12px;font:600 15px/1 "Space Grotesk",system-ui,sans-serif;padding:11px 13px;cursor:pointer;white-space:nowrap;min-height:42px}
.tp-btn:hover,.tp-btn[aria-expanded=true]{border-color:#46DCC8;color:#46DCC8;background:rgba(70,220,200,.08)}
.tp-btn:focus-visible{outline:3px solid #fff;outline-offset:2px}
.tp-btn svg{transition:transform .2s cubic-bezier(.34,1.56,.64,1)}.tp-btn[aria-expanded=true] svg{transform:rotate(180deg)}
.tp-panel{position:absolute;right:0;top:calc(100% + 10px);width:620px;padding:14px;background:#0B1220;border:1px solid #1E3A40;border-radius:18px;
 box-shadow:0 20px 60px rgba(0,0,0,.6),0 0 40px rgba(70,220,200,.10);z-index:60;visibility:hidden;opacity:0;transform:translateY(-6px) scale(.98);transform-origin:top right;
 transition:opacity .14s ease-in,transform .14s ease-in,visibility 0s linear .16s;font-family:"Space Grotesk",system-ui,sans-serif;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.tp-panel.open{visibility:visible;opacity:1;transform:none;transition:opacity .12s ease-out,transform .22s cubic-bezier(.34,1.56,.64,1),visibility 0s}
.tp-h{margin:2px 4px 6px;font:700 10.5px/1 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.18em;text-transform:uppercase;color:#6F8C92}
.tp-h:not(:first-child){margin-top:10px}
.tp-g{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.tp-g li{margin:0;padding:0;border:0}.tp-g li::before{display:none}
.tp-all{margin-top:8px;grid-template-columns:1fr}
.tp-t{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:60px;padding:10px 10px 9px;border-radius:13px;background:#0E1A26;border:1px solid #1C3440;
 color:#E6F1F2;text-decoration:none;line-height:1.15;opacity:0;transform:translateY(6px) scale(.9);
 transition:opacity .12s ease-in,transform .12s ease-in,border-color .15s,background .15s}
.tp-panel.open .tp-t{opacity:1;transform:none;transition:opacity .14s ease-out calc(var(--i,0)*9ms),transform .2s cubic-bezier(.34,1.56,.64,1) calc(var(--i,0)*9ms),border-color .15s,background .15s}
.tp-t b{font-size:13.5px;font-weight:700;letter-spacing:-.01em}
.tp-t small{font-size:11.5px;color:#8FA6AB;font-weight:400}
.tp-i{width:20px;height:20px;fill:none;stroke:#46DCC8;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;margin-bottom:3px}
.tp-t:hover,.tp-t:focus-visible{border-color:#46DCC8;background:#10232C}
.tp-t:focus-visible{outline:2px solid #fff;outline-offset:2px}
.tp-t:active{transform:scale(.96)}
.tp-t[aria-current=page]{border-color:#46DCC8;background:linear-gradient(160deg,rgba(70,220,200,.18),rgba(70,220,200,.04));box-shadow:inset 0 0 0 1px rgba(70,220,200,.35)}
.tp-t[aria-current=page] b{color:#46DCC8}
.tp-wide{flex-direction:row;align-items:center;gap:10px;min-height:44px;padding:9px 12px}.tp-wide .tp-i{margin:0}.tp-wide small{margin-left:auto}
/* locked state: driven by LOCKED_TOOLS in tools/toolsnav.py (empty = nothing locked) */
.tp-t.is-locked{opacity:.55}.tp-panel.open .tp-t.is-locked{opacity:.55}
.tp-t.is-locked .tp-i{stroke:#6F8C92}
.tp-lock{position:absolute;top:7px;right:7px;width:20px;height:20px;border-radius:7px;background:#1A2A33;border:1px solid #2C4650;display:grid;place-items:center}
.tp-lock svg{width:12px;height:12px;fill:none;stroke:#E8C46A;stroke-width:2.2;stroke-linecap:round}
.tp-fa{display:block;margin-top:1px;font:700 9.5px/1.3 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase;color:#E8C46A;font-style:normal}
.tp-t.is-locked small{display:none}.tp-t.is-locked b{padding-right:22px}
@media (max-width:640px){
 .tp-panel{position:fixed;left:10px;right:10px;width:auto;top:calc(env(safe-area-inset-top) + 66px);max-height:calc(100vh - env(safe-area-inset-top) - 80px);overflow-y:auto;overscroll-behavior:contain;transform-origin:top center;padding:10px}
 .tp-g{grid-template-columns:1fr 1fr;gap:7px}.tp-all{grid-template-columns:1fr}
 .tp-t{min-height:56px;padding:9px 10px 8px}.tp-t b{font-size:13px}.tp-t small{font-size:11px}.tp-i{width:18px;height:18px}
}
@media (max-width:560px){.tp-btn{padding:10px 11px;font-size:14px;min-height:40px}}
@media (max-width:370px){.tp-btn{padding:9px 9px;font-size:13px}}
@media (prefers-reduced-motion:reduce){.tp-panel,.tp-panel.open,.tp-t,.tp-panel.open .tp-t,.tp-btn svg{transition:none!important;transform:none!important}}
