#bafang-loading.os-boot{position:fixed;inset:0;transform:none;z-index:10001;display:block;padding:24px;border:0;border-radius:0;background:radial-gradient(120% 90% at 50% 45%,#fcf9f5,#f9f3ec 55%,#efe4d8);color:#372c24;pointer-events:auto;animation:boot-safe-exit .1s 6s forwards;overflow:hidden;transition:opacity .24s ease}
html[data-theme=tech] #bafang-loading.os-boot{background:radial-gradient(ellipse at 70% 25%,#15588788,transparent 55%),#071322;color:#e7f3ff}
.os-boot .boot-art{position:absolute;inset:0;pointer-events:none}.os-boot .boot-art .bfs{background:transparent;z-index:0}.os-boot .boot-art .bfs-scale{top:43%}html[data-theme=tech] .os-boot .bfs-word path{fill:#e7f3ff}
.os-boot .boot-fallback{position:absolute;top:30%;left:0;right:0;text-align:center}.os-boot.has-splash .boot-fallback{display:none}.os-boot h1{font-size:34px;font-weight:500;letter-spacing:.12em;margin:20px 0 8px}
.os-boot .boot-core{position:absolute;z-index:1;left:50%;bottom:max(24px,env(safe-area-inset-bottom));transform:translateX(-50%);text-align:center;width:min(440px,90vw)}.os-boot .boot-subtitle{opacity:.7;font-size:15px}.os-boot .boot-status{font-size:13px;min-height:20px;margin:12px 0}.os-boot .boot-track{height:3px;background:#8b7d6d22;border-radius:4px;overflow:hidden;margin:16px 30px 0}.os-boot .boot-track i{display:block;height:100%;background:#c55229;transition:width .35s ease}.os-boot .boot-stages{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;font-size:10px;opacity:.7}.os-boot .boot-stages span:before{content:'○ '}.os-boot .boot-stages span[data-ready=true]:before{content:'✓ '}.os-boot .boot-actions{margin-top:18px;display:flex;justify-content:center;gap:12px}.os-boot button{background:transparent;color:inherit;border:1px solid #98836a77;border-radius:30px;padding:10px 20px;cursor:pointer}.os-boot.complete{opacity:0;pointer-events:none}html[data-theme=tech] .os-boot .boot-track i{background:#65d9ff}
@keyframes boot-safe-exit{to{visibility:hidden;pointer-events:none}}
@media(max-height:500px){.os-boot .boot-art .bfs-scale{top:36%}.os-boot .boot-subtitle,.os-boot .boot-stages{display:none}.os-boot .boot-core{bottom:12px}.os-boot .boot-actions{margin-top:8px}}
#bafang-tour{position:fixed;right:24px;bottom:28px;z-index:1002;width:min(380px,calc(100vw - 24px));max-height:48dvh;overflow:auto;padding:22px;border:1px solid #dac9b4;border-radius:20px;background:#fffaf3;color:#392d24;box-shadow:0 15px 70px #25150930;font:14px/1.65 system-ui,sans-serif}#bafang-tour[hidden]{display:none}#bafang-tour h2{font-size:20px;margin:8px 0}#bafang-tour p{margin:8px 0}#bafang-tour .tour-count{font-size:11px;opacity:.65;letter-spacing:.12em}#bafang-tour .tour-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}#bafang-tour button{border:1px solid #d7c5ae;background:transparent;color:inherit;border-radius:18px;padding:8px 13px;cursor:pointer}#bafang-tour button.primary{background:#bd502b;color:white;border-color:transparent}.tour-highlight{outline:3px solid #cf6b3e!important;outline-offset:5px!important}html[data-theme=tech] #bafang-tour{background:#102439;color:#e7f3ff;border-color:#345772}html[data-theme=tech] #bafang-tour button{border-color:#345772}html[data-theme=tech] #bafang-tour button.primary{background:#65d9ff;color:#071322}html[data-theme=tech] .tour-highlight{outline-color:#65d9ff!important}#tour-open{white-space:nowrap}
@media(max-width:700px){#bafang-tour{right:12px;bottom:14px;padding:16px;font-size:13px}#bafang-tour[data-position=top]{top:80px;bottom:auto}.os-boot .boot-stages{gap:8px;font-size:9px}}
@media(prefers-reduced-motion:reduce){.os-boot .boot-orbit,.os-boot img{animation:none!important}.os-boot .boot-track i{transition:none}}
.first-use{max-height:calc(100dvh - 135px);overflow:auto}.storage-notice{font-size:12px;line-height:1.65;border:1px solid var(--line,#dac9b4);border-radius:12px;padding:12px;margin:12px 0}.storage-notice summary{cursor:pointer;font-weight:600}.storage-notice p{margin:8px 0}.first-use-actions{position:sticky;bottom:-16px;padding:10px 0;background:var(--surface,#fffaf3)}
