#usageGuide{white-space:nowrap;flex-shrink:0;margin:0;color:var(--muted,#657184);background:transparent;border-color:var(--line,#e0e4ec)}
#usageTutorial{--tour-text:#f2f4f6;--tour-muted:#b4bdcb;--tour-surface:#24262c;--tour-line:#495363;--tour-choice:#2b3039;--tour-hover:#1c2c44;--tour-icon-bg:#1c2c44;--tour-accent:#9ac4ff;--tour-primary:#246dd3;--tour-primary-hover:#1f5fb9;position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:var(--tour-text);overflow:hidden;box-sizing:border-box;overscroll-behavior:contain}
#usageTutorial:not([open]){display:none}#usageTutorial::backdrop{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}#usageTutorial *{box-sizing:border-box}#usageTutorial [hidden]{display:none!important}
.tour-dim{position:absolute;inset:0;background:rgba(15,23,42,.56)}#usageTutorial[data-mode=tour] .tour-dim{background:transparent}
.tour-spotlight{position:absolute;border:2px solid #5291ff;border-radius:10px;box-shadow:0 0 0 9999px rgba(15,23,42,.58),0 0 0 5px rgba(82,145,255,.15);pointer-events:none}
.tour-card{position:absolute;width:min(360px,calc(100vw - 24px));background:var(--tour-surface);border:1px solid var(--tour-line);border-radius:18px;padding:20px;box-shadow:0 16px 64px #0004;max-height:calc(100dvh - 24px);overflow:auto;isolation:isolate}
#usageTutorial[data-mode=choose] .tour-card{left:50%!important;top:50%!important;transform:translate(-50%,-50%);width:min(440px,calc(100vw - 32px));padding:26px}
.tour-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--tour-muted);font-size:11px;font-weight:650;letter-spacing:.025em}.tour-top button{border:0!important;background:transparent!important;color:var(--tour-muted)!important;width:32px;height:32px;min-height:32px;padding:0!important;font-size:24px!important;line-height:1}
#tourTitle{color:var(--tour-text);font-size:20px;line-height:1.45;margin:12px 0 9px;font-weight:700;letter-spacing:-.5px}#tourDescription{font-size:14px;line-height:1.75;color:var(--tour-muted);margin:0;word-break:keep-all}
#tourChoices{display:grid;gap:10px;margin:24px 0 18px}#tourChoices button{display:flex;align-items:center;gap:13px;padding:17px 14px;background:var(--tour-choice);border:1px solid var(--tour-line);border-radius:12px;text-align:left;color:var(--tour-text)}#tourChoices button:hover,#tourChoices button:focus-visible{border-color:var(--tour-accent);background:var(--tour-hover)}.tour-choice-icon{display:grid;place-items:center;width:38px;height:42px;color:var(--tour-accent);background:var(--tour-hover);border-radius:9px;font-size:27px}#tourChoices strong{color:inherit;display:block;font-size:15px}#tourChoices small{display:block;color:var(--tour-muted);font-size:12px;margin-top:6px;line-height:1.5}#tourChoices b{margin-left:auto;color:var(--tour-accent);font-size:19px}
#tourNote{font-size:12px;line-height:1.7;color:var(--tour-muted);margin:10px 0 0}#tourLater{display:block;margin:14px auto 0;border:0;background:transparent;font-size:13px;color:var(--tour-muted);padding:9px}
#tourNavigation{display:flex;align-items:center;gap:10px;margin-top:22px;padding-top:16px;border-top:1px solid var(--tour-line)}#tourNavigation button{font-size:13px;padding:10px 14px;min-height:40px;border-radius:9px}#tourNext{margin-left:auto;background:var(--tour-primary);color:#fff;border-color:var(--tour-primary)}#tourCount{font-size:12px;font-variant-numeric:tabular-nums;color:var(--tour-muted)}#tourProgress{display:flex;gap:4px;margin-top:8px}#tourProgress span{flex:1;height:3px;border-radius:3px;background:var(--tour-line)}#tourProgress .done{background:var(--tour-primary)}
@media(max-width:850px){body.mobile-mode>header #usageGuide{width:32px;min-width:32px;height:32px;padding:0;font-size:0;border:0}body.mobile-mode>header #usageGuide::before{content:'?';display:grid;place-items:center;border:1.5px solid currentColor;border-radius:50%;width:22px;height:22px;font-size:14px;font-weight:700}#usageTutorial .tour-card{padding:17px}#tourTitle{color:var(--tour-text);font-size:18px;margin-top:10px}#tourDescription{font-size:13px;line-height:1.7}#tourNavigation{margin-top:16px;padding-top:12px}}
@media(prefers-reduced-motion:no-preference){#usageTutorial[open] .tour-card{animation:tour-enter .15s ease-out}@keyframes tour-enter{from{opacity:0}to{opacity:1}}}

/* Keep every tour state on one theme palette, independent of global UI fallbacks. */
html[data-theme="light"] #usageTutorial{--tour-text:#202833;--tour-muted:#526174;--tour-surface:#ffffff;--tour-line:#ccd5e1;--tour-choice:#f7f8fa;--tour-hover:#edf4ff;--tour-icon-bg:#e6efff;--tour-accent:#246dd3}
#usageTutorial .tour-choice-icon{background:var(--tour-icon-bg)}
#usageTutorial #tourPrevious{color:var(--tour-text);background:var(--tour-choice);border-color:var(--tour-line)}
#usageTutorial #tourPrevious:not(:disabled):hover,#usageTutorial #tourLater:hover,#usageTutorial #tourClose:hover{color:var(--tour-text)!important;background:var(--tour-hover)!important}
#usageTutorial #tourNext:not(:disabled):hover,#usageTutorial #tourNext:focus-visible{color:#fff;background:var(--tour-primary-hover);border-color:var(--tour-primary-hover)}
#usageTutorial button:focus-visible{outline:2px solid var(--tour-accent);outline-offset:3px}
#usageTutorial #tourPrevious:disabled{opacity:1;color:var(--tour-muted);background:var(--tour-surface);border-color:var(--tour-line)}
