.tool-guide-button{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 11px;border:1px solid var(--line,#d7deea);border-radius:8px;background:var(--theme-surface,#fff);color:var(--ink,#242b37);font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.tool-guide-button[hidden]{display:none}
.tool-guide-button:hover,.tool-guide-button:focus-visible{border-color:var(--blue,#4c86fb);background:var(--theme-accent-soft,#eaf1ff);color:var(--blue,#386dc9)}
.tool-guide-button:focus-visible,.tg-trigger:focus-visible,.tg-panel :is(button,a):focus-visible{outline:3px solid var(--blue,#4c86fb);outline-offset:2px}
.tg-link-wrap{position:relative;display:inline-flex;align-items:center;gap:2px;min-width:0}
.tg-link-wrap:has(>a.toolcard){display:flex;width:100%;height:100%}
.tg-link-wrap>a.toolcard{display:block;width:100%;height:100%;padding-top:43px}
.tg-link-wrap>.tg-trigger{flex:0 0 auto}
.tg-link-wrap:has(>a.toolcard)>.tg-trigger{position:absolute;z-index:2;right:11px;top:10px;min-height:31px;padding:5px 9px;border-color:var(--line,#d7deea);background:var(--theme-surface,#fff);font-size:11px}
.tg-trigger{display:inline-flex;align-items:center;justify-content:center;min-width:29px;min-height:34px;padding:5px 8px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted,#697384);font:inherit;font-size:12px;line-height:1.2;cursor:pointer;touch-action:manipulation}
.tg-trigger:hover,.tg-trigger[aria-expanded=true]{border-color:var(--line,#d7deea);background:var(--theme-accent-soft,#eaf1ff);color:var(--blue,#386dc9)}
.tg-tooltip{position:absolute;z-index:1098;left:0;top:calc(100% + 5px);display:none;width:max-content;max-width:min(300px,calc(100vw - 24px));padding:8px 10px;border:1px solid var(--line,#d7deea);border-radius:8px;background:var(--theme-raised,#fff);color:var(--ink,#242b37);box-shadow:0 8px 26px #07163024;font-size:11px;line-height:1.55;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-3px);transition:opacity .12s ease,transform .12s ease,visibility .12s}
.tg-link-wrap:has(>a.toolcard)>.tg-tooltip{top:auto;bottom:calc(100% + 5px);max-width:min(300px,100%)}
.tg-link-wrap.tg-tip-visible>.tg-tooltip{display:block;opacity:1;visibility:visible;transform:none}
.tg-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;pointer-events:none}
.tg-panel{--tg-accent:var(--blue,#4c86fb);position:fixed;z-index:1100;isolation:isolate;box-sizing:border-box;width:390px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;padding:18px;border:1px solid var(--line,#d7deea);border-radius:16px;background:var(--theme-raised,#fff);color:var(--ink,#242b37);box-shadow:0 18px 60px #07163030;font-family:inherit;line-height:1.6;text-align:left;animation:tg-enter .14s ease-out}
.tg-panel[hidden]{display:none!important}
.tg-panel *{box-sizing:border-box}
.tg-panel.tg-pinned{left:auto!important;right:16px!important;top:88px!important;width:min(430px,calc(100vw - 24px))!important;max-height:calc(100dvh - 104px)!important;box-shadow:0 20px 72px #07163042}
.tg-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.tg-title{min-width:0;margin:1px 0 8px;color:var(--ink,#242b37);font-size:18px;line-height:1.4;letter-spacing:-.45px;font-weight:760}
.tg-actions{display:flex;align-items:center;gap:4px;flex:0 0 auto;margin:-4px -4px 0 0}
.tg-control{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:31px;padding:4px 7px;border:1px solid var(--line,#d7deea);border-radius:7px;background:var(--theme-surface,#fff);color:var(--muted,#697384);font:inherit;font-size:10px;font-weight:700;cursor:pointer}
.tg-control:hover,.tg-control[aria-pressed=true]{border-color:var(--blue,#4c86fb);background:var(--theme-accent-soft,#eaf1ff);color:var(--blue,#386dc9)}
.tg-close{font-size:19px;line-height:1}
.tg-content[hidden]{display:none}
.tg-summary{margin:0 0 12px;color:var(--muted,#697384);font-size:12px;line-height:1.7;word-break:keep-all}
.tg-scenario{margin:0 0 11px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--tg-accent) 24%,var(--line,#d7deea));border-radius:10px;background:color-mix(in srgb,var(--tg-accent) 8%,var(--theme-surface,#fff))}
.tg-eyebrow{display:block;margin-bottom:3px;color:var(--tg-accent);font-size:10px;font-weight:800;letter-spacing:.03em}
.tg-scenario p{margin:0;color:var(--ink,#242b37);font-size:11px;line-height:1.65;word-break:keep-all}
.tg-example{margin:0 0 12px;padding:7px 8px 5px;border:1px solid var(--line,#d7deea);border-radius:10px;background:var(--theme-soft,#edf0f7)}
.tg-example svg{display:block;width:100%;height:auto;overflow:visible}
.tg-example figcaption{margin-top:2px;color:var(--muted,#697384);font-size:9px;line-height:1.5;text-align:center}
.tg-demo-label{fill:var(--muted,#697384);font:700 10px system-ui,sans-serif}
.tg-demo-frame{fill:var(--theme-surface,#fff);stroke:var(--line,#d7deea);stroke-width:1.4}
.tg-demo-card{fill:var(--theme-surface,#fff);stroke:var(--line,#d7deea);stroke-width:1.4}
.tg-demo-sheet{fill:var(--theme-soft,#edf0f7);stroke:var(--line,#d7deea);stroke-width:.8}
.tg-demo-arrow{fill:none;stroke:var(--tg-accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tg-demo-foot{fill:var(--muted,#697384);font:9px system-ui,sans-serif}
.tg-demo-caption{fill:#fff;stroke:#222;stroke-width:2px;paint-order:stroke;stroke-linejoin:round;font:800 15px system-ui,sans-serif}
.tg-demo-watermark{fill:#fff;opacity:.85;stroke:#1b2430;stroke-width:1px;paint-order:stroke;font:700 10px system-ui,sans-serif}
.tg-demo-mark{fill:#ee5050;stroke:#fff;stroke-width:1}
.tg-demo-mark-text{fill:white;font:700 7px system-ui,sans-serif}
.tg-demo-crop{fill:none;stroke:#ffd94f;stroke-width:2;stroke-dasharray:5 3}
.tg-demo-checker{fill:url(#tg-check);opacity:.58}
.tg-demo-blur{fill:#182231;opacity:.75;filter:blur(4px)}
.tg-demo-blur-text{fill:white;font:700 8px system-ui,sans-serif}
.tg-demo-icon{fill:none;stroke:#fff;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 2px #000)}
.tg-doc-line{fill:var(--ink,#242b37);font:11px system-ui,sans-serif}
.tg-qr{fill:var(--ink,#242b37);stroke:var(--ink,#242b37);stroke-width:2}
.tg-io{display:grid;grid-template-columns:58px minmax(0,1fr);column-gap:11px;row-gap:7px;margin:0;font-size:11px;line-height:1.65}
.tg-io dt{margin:0;color:var(--ink,#242b37);font-weight:750}
.tg-io dd{min-width:0;margin:0;color:var(--muted,#697384);overflow-wrap:anywhere;word-break:keep-all}
.tg-steps{display:grid;gap:7px;margin:13px 0 0;padding:13px 0 0;border-top:1px solid var(--line,#d7deea);list-style:none;counter-reset:tg-step}
.tg-steps li{position:relative;min-height:23px;padding-left:31px;color:var(--ink,#242b37);font-size:11px;line-height:1.65;word-break:keep-all;counter-increment:tg-step}
.tg-steps li:before{position:absolute;left:0;top:0;display:grid;width:21px;height:21px;place-items:center;border-radius:50%;background:var(--theme-accent-soft,#eaf1ff);color:var(--blue,#386dc9);content:counter(tg-step);font-size:10px;font-weight:800}
.tg-note{margin:11px 0 0;padding-left:9px;border-left:2px solid var(--line,#d7deea);color:var(--muted,#697384);font-size:10px;line-height:1.65;word-break:keep-all}
.tg-open{display:flex;align-items:center;justify-content:center;min-height:38px;margin-top:14px;padding:8px 12px;border:1px solid var(--blue,#4c86fb);border-radius:8px;background:var(--theme-accent-soft,#eaf1ff);color:var(--blue,#386dc9);font-size:11px;font-weight:800;text-decoration:none}
.tg-open:hover{filter:brightness(.97)}
html[data-theme=dark] .tg-panel{box-shadow:0 20px 72px #0009}
@keyframes tg-enter{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(max-width:720px){.tool-guide-button{min-height:36px;padding:6px 9px;font-size:11px}.tg-link-wrap>a.toolcard{padding-top:49px}.tg-link-wrap:has(>a.toolcard)>.tg-trigger{top:8px;right:8px;min-height:35px}.tg-panel{padding:16px}.tg-panel.tg-pinned{right:10px!important;top:auto!important;bottom:10px!important;max-height:calc(100dvh - 20px)!important;width:calc(100vw - 20px)!important}.tg-actions{gap:3px}.tg-control{min-height:36px}.tg-close{min-width:36px}}
@media(prefers-reduced-motion:reduce){.tg-panel,.tg-tooltip{animation:none;transition:none}}
