
.tgh-launch{position:fixed;right:20px;bottom:84px;z-index:900;border:1px solid #a69ae6;border-radius:50%;width:48px;height:48px;background:#24202f;color:#fff;font:700 22px system-ui;box-shadow:0 4px 20px #0005;cursor:pointer}
.tgh-context{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border-radius:50%;border:1px solid #81759e;background:#24202f;color:#fff;font:700 18px system-ui;margin-inline-start:8px;cursor:pointer}
.tgh-dialog{position:fixed;inset:0;box-sizing:border-box;width:100vw;max-width:none;height:100dvh;max-height:none;padding:16px;margin:0;border:0;background:transparent;color:#f5f3ff;font:16px/1.5 system-ui;overflow:hidden}
.tgh-dialog::backdrop{background:rgba(9,8,14,.7)}
.tgh-card{position:fixed;box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid #8c7eb4;border-radius:20px;background:#201d29;box-shadow:0 20px 70px #0008}
.tgh-card h2{font-size:22px;line-height:1.25;margin:8px 0 16px;color:#fff}
.tgh-card p{margin:10px 0}.tgh-card ol{padding-left:24px}.tgh-card li{margin:10px 0}
.tgh-card button,.tgh-card select{font:inherit;min-height:44px;border:1px solid #9384bc;border-radius:9px;padding:8px 13px;background:#302b40;color:#fff;cursor:pointer}
.tgh-card button:disabled{opacity:.5;cursor:default}.tgh-card .tgh-primary{background:#d3c2ff;color:#20172e;border-color:#d3c2ff;font-weight:650}
.tgh-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.tgh-meta{color:#cdc4e1;font-size:13px;text-transform:uppercase;letter-spacing:.07em}
.tgh-note{padding:12px;border-left:3px solid #c7afff;background:#2e283d;border-radius:4px}.tgh-ring{position:fixed;border:3px solid #d3bcff;border-radius:12px;pointer-events:none;box-shadow:0 0 0 3px #191325;box-sizing:border-box}
.tgh-dialog :focus-visible,.tgh-launch:focus-visible,.tgh-context:focus-visible{outline:3px solid #ffe694;outline-offset:3px}
.tgh-card select{width:100%;margin-top:8px}.tgh-missing{color:#ffe694}
@media(max-width:600px){.tgh-launch{right:14px;bottom:84px}.tgh-card{padding:18px}.tgh-dialog[data-tour="true"] .tgh-card{max-height:70dvh}.tgh-card h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){.tgh-dialog *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(forced-colors:active){.tgh-ring{border:3px solid Highlight}.tgh-card,.tgh-launch,.tgh-context{border:2px solid CanvasText}}

.tgh-actions{position:sticky;bottom:0;background:#201d29;padding-top:10px}

/* Help v3: match the app tokens in light and dark mode. */
.tgh-launch,.tgh-context{border-color:var(--theme-accent-line,#a69ae6);background:var(--theme-panel,#24202f);color:var(--theme-accent-text,#fff)}
.tgh-context[hidden]{display:none!important}
.tgh-enhanced-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tgh-heading-help{flex:0 0 44px;width:44px;height:44px;margin:0;font-size:17px;letter-spacing:0;vertical-align:middle}
.tgh-dialog{color:var(--theme-text,#f5f3ff)}
.tgh-dialog::backdrop{background:var(--theme-backdrop,rgba(9,8,14,.7))}
.tgh-card{background:var(--theme-panel,#201d29);color:var(--theme-text,#f5f3ff);border-color:var(--theme-accent-line,#8c7eb4);box-shadow:var(--theme-modal-shadow,0 20px 70px #0008)}
.tgh-card h2{color:var(--theme-text,#fff)}
.tgh-meta{color:var(--theme-muted,#cdc4e1)}
.tgh-card button,.tgh-card select{background:var(--theme-input,#302b40);color:var(--theme-text,#fff);border-color:var(--theme-control-border,#9384bc)}
.tgh-card .tgh-primary{background:var(--theme-primary,#d3c2ff);color:var(--theme-primary-text,#20172e);border-color:var(--theme-primary,#d3c2ff)}
.tgh-note{background:var(--theme-accent-soft,#2e283d);border-color:var(--theme-accent,#c7afff);color:var(--theme-text,#fff)}
.tgh-actions{background:var(--theme-panel,#201d29);padding-bottom:2px}
.tgh-dialog :focus-visible,.tgh-launch:focus-visible,.tgh-context:focus-visible{outline-color:var(--theme-accent,#ffe694)}
.tgh-card label{display:block;font-size:14px;color:var(--theme-muted,#cdc4e1)}
.tgh-card select{font-size:14px;max-width:100%}
@media(max-width:600px){.tgh-card{max-height:calc(100dvh - 32px)}.tgh-launch{width:44px;height:44px;right:14px;bottom:80px}.tgh-heading-help{margin-inline-start:0}.tgh-card li{line-height:1.5}}
