/* 演示导航：浮动工具条与管理密码弹窗（tour.js） */
.tour { position: fixed; left: 12px; bottom: 84px; z-index: 80; width: min(440px, calc(100vw - 24px)); display: flex; flex-direction: column; background: var(--sheet-bg); color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line-2)); border-radius: 14px; box-shadow: 0 14px 40px var(--shadow); overflow: hidden; }
.tour[hidden] { display: none; }
.tour.is-min { width: auto; border-radius: 22px; }
.tour-h { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; background: color-mix(in srgb, var(--accent) 12%, var(--panel)); cursor: move; touch-action: none; user-select: none; }
.tour-h strong { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour-no, .tour-pill b { flex: none; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; }
.tour-pos { flex: none; color: var(--muted); font-size: 12px; }
.tour-x { flex: none; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); font-size: 16px; }
.tour-body { max-height: 34vh; overflow-y: auto; padding: 10px 14px 4px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.6; }
.tour-say { margin: 0; }
.tour-tip, .tour-warn { margin: 0; font-size: 13px; }
.tour-tip b, .tour-warn b { margin-right: 6px; font-weight: 700; }
.tour-tip b { color: var(--accent); }
.tour-warn { color: var(--orange); }
.tour-warn--hot { padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.tour-steps { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 14px 0; }
.tour-steps button { min-width: 30px; height: 26px; padding: 0 6px; border-radius: 13px; border: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.tour-steps button.is-dir { border-style: dashed; }
.tour-steps button.is-done { color: var(--text); }
.tour-steps button.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.tour-f { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 12px; }
.tour-f .btn { min-height: 38px; padding: 0 10px; font-size: 13px; }
.tour-f .btn--primary { margin-left: auto; }
.tour-note { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--orange); }
.tour-pill { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 9px; font-size: 14px; font-weight: 600; color: var(--text); }
.tour-pill small { color: var(--muted); font-weight: 400; }

.tour-gate { position: fixed; inset: 0; z-index: 85; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--scrim); }
.tour-gate-box { width: min(420px, 100%); padding: 20px; border-radius: 14px; background: var(--sheet-bg); color: var(--text); border: 1px solid var(--line-2); box-shadow: 0 16px 48px var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.tour-gate-box h3 { margin: 0; font-size: 18px; }
.tour-gate-box p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.tour-gate-box input { height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-size: 15px; }
.tour-gate-box .tour-gate-err { color: var(--red); }
.tour-gate-f { display: flex; justify-content: flex-end; gap: 8px; }
