:root{--bg-primary:#0a0c10;--bg-secondary:#12161f;--panel-bg:#161b24b8;--panel-border:#ffffff14;--panel-inner-bg:#0e1219bf;--accent-blue:#0070f3;--accent-cyan:#00d2ff;--accent-green:#00d26a;--accent-yellow:#ffd500;--accent-red:#ff334b;--accent-orange:#ff7a00;--text-primary:#f0f4f8;--text-secondary:#9ba6b5;--text-muted:#64748b;--radius-lg:16px;--radius-md:10px;--radius-sm:6px;--shadow-glow:0 0 24px #0070f340;--shadow-card:0 8px 32px #0006}*{box-sizing:border-box;margin:0;padding:0}body{background-color:var(--bg-primary);color:var(--text-primary);user-select:none;-webkit-font-smoothing:antialiased;min-height:100vh;font-family:Outfit,Pretendard,-apple-system,BlinkMacSystemFont,sans-serif;overflow:hidden}.app-layout{flex-direction:column;width:100vw;height:100vh;display:flex}.glass-panel{background:var(--panel-bg);-webkit-backdrop-filter:blur(16px);border:1px solid var(--panel-border);box-shadow:var(--shadow-card)}.glass-panel-inner{background:var(--panel-inner-bg);border-radius:var(--radius-md);border:1px solid #ffffff0f}.app-header{z-index:10;border-bottom:1px solid var(--panel-border);justify-content:space-between;align-items:center;padding:10px 24px;display:flex}.logo-group{align-items:center;gap:12px;display:flex}.cube-mini{background:linear-gradient(135deg, var(--accent-blue), var(--accent-green));border-radius:4px;width:24px;height:24px;display:inline-block;box-shadow:0 0 12px #00d26a66}.logo-text h1{letter-spacing:.8px;background:linear-gradient(90deg,#fff,#a5b4fc);-webkit-text-fill-color:transparent;-webkit-background-clip:text;font-size:1.15rem;font-weight:700}.logo-text .subtitle{color:var(--text-secondary);font-size:.72rem}.header-controls{align-items:center;gap:12px;display:flex}.option-pill-group{background:#00000059;border:1px solid #ffffff14;border-radius:20px;align-items:center;gap:3px;padding:3px 5px;display:flex}.option-label{color:var(--text-muted);padding:0 6px;font-size:.72rem;font-weight:600}.pill-btn{color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-radius:14px;padding:5px 11px;font-size:.73rem;font-weight:600;transition:all .2s}.pill-btn:hover{color:#fff;background:#ffffff0f}.pill-btn.active{background:var(--accent-blue);color:#fff;box-shadow:0 0 10px #0070f366}.action-btn{border-radius:var(--radius-sm);cursor:pointer;border:1px solid #0000;align-items:center;gap:6px;padding:7px 13px;font-size:.8rem;font-weight:600;transition:all .2s;display:flex}.action-btn.secondary{color:var(--text-primary);background:#ffffff14;border-color:#ffffff1f}.action-btn.secondary:hover{background:#ffffff24}.action-btn.danger{color:#ff6b7d;background:#ff334b1f;border-color:#ff334b40}.action-btn.danger:hover{background:#ff334b38}.quick-guide-bar{border-radius:var(--radius-md);background:linear-gradient(90deg,#0070f31f,#00d26a14);border:1px solid #0070f340;justify-content:space-between;align-items:center;margin:6px 16px;padding:8px 24px;display:flex}.guide-steps{color:#d1d5db;align-items:center;gap:8px;font-size:.78rem;display:flex}.guide-badge{background:var(--accent-blue);color:#fff;letter-spacing:.4px;border-radius:4px;padding:2px 7px;font-size:.68rem;font-weight:700}.guide-item strong.num{text-align:center;background:#ffffff26;border-radius:50%;width:16px;height:16px;margin-right:2px;font-size:.7rem;line-height:16px;display:inline-block}.guide-arrow{color:var(--accent-cyan);opacity:.7;font-weight:700}.guide-tip{color:#a5b4fc;font-size:.76rem}.main-content{flex:1;grid-template-columns:1fr 400px;display:grid;position:relative;overflow:hidden}.viewport-section{width:100%;height:100%;position:relative}.canvas-container{background:radial-gradient(circle,#151a24 0%,#07090e 85%);width:100%;height:100%;position:relative}.canvas-container canvas{display:block;width:100%!important;height:100%!important}.view-badge{letter-spacing:.2px;z-index:5;border-radius:20px;align-items:center;gap:8px;padding:7px 14px;font-size:.78rem;font-weight:600;display:flex;position:absolute;top:16px;left:18px}.view-item{align-items:center;gap:6px;display:flex}.badge-dot{border-radius:50%;width:8px;height:8px}.badge-dot.front-dot{background:var(--accent-green);box-shadow:0 0 8px var(--accent-green)}.badge-dot.up-dot{background:var(--accent-yellow);box-shadow:0 0 8px var(--accent-yellow)}.badge-dot.right-dot{background:var(--accent-red);box-shadow:0 0 8px var(--accent-red)}.view-divider{color:#fff3}.cam-presets-toolbar{z-index:5;border-radius:24px;align-items:center;gap:6px;padding:6px 10px;display:flex;position:absolute;bottom:20px;left:20px}.preset-btn{color:var(--text-secondary);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:14px;padding:5px 10px;font-size:.74rem;font-weight:600;transition:all .18s}.preset-btn:hover{color:#fff;background:#ffffff14}.preset-btn.active{border-color:var(--accent-blue);color:#fff;background:#0070f34d}.preset-btn.icon-only{padding:4px 8px;font-size:.85rem}.preset-separator{background:#ffffff1f;width:1px;height:16px;margin:0 2px}.twist-cards-container{border-radius:var(--radius-md);z-index:5;flex-direction:column;gap:6px;padding:10px 14px;transition:opacity .3s,transform .3s;display:flex;position:absolute;top:16px;right:18px}.twist-cards-container.hidden{opacity:0;pointer-events:none;transform:translateY(-8px)}.twist-header{color:var(--accent-cyan);text-transform:uppercase;letter-spacing:.5px;font-size:.7rem;font-weight:700}.twist-cards{gap:6px;display:flex}.twist-card{border-radius:var(--radius-sm);background:#ffffff0d;border:1px solid #ffffff14;flex-direction:column;align-items:center;padding:5px 9px;transition:all .15s;display:flex}.twist-card .arrow{font-size:1rem}.twist-card .txt{color:var(--text-muted);margin-top:2px;font-size:.63rem}.twist-card.active{border-color:var(--accent-cyan);background:#00d2ff40;transform:scale(1.08);box-shadow:0 0 14px #00d2ff73}.twist-card.active .txt{color:#fff;font-weight:700}.sidebar-panel{border-left:1px solid var(--panel-border);z-index:10;flex-direction:column;height:100%;display:flex;overflow-y:auto}.stages-scroll-wrapper{border-bottom:1px solid var(--panel-border);padding:12px 16px 8px}.stage-tabs{gap:5px;padding-bottom:4px;display:flex;overflow-x:auto}.stage-tabs::-webkit-scrollbar{height:3px}.stage-tabs::-webkit-scrollbar-thumb{background:#ffffff1f;border-radius:2px}.stage-tab-btn{color:var(--text-muted);border-radius:var(--radius-sm);cursor:pointer;background:#ffffff0a;border:1px solid #ffffff0f;flex-shrink:0;padding:5px 9px;font-size:.73rem;font-weight:600;transition:all .2s}.stage-tab-btn:hover{color:var(--text-primary);background:#ffffff14}.stage-tab-btn.active{color:#fff;border-color:var(--accent-blue);background:#0070f340;box-shadow:0 0 10px #0070f34d}.stage-tab-btn.completed:after{content:" ✓";color:var(--accent-green);font-weight:700}.stage-card{flex-direction:column;flex:1;gap:12px;padding:14px 16px;display:flex}.stage-card-header{align-items:center;gap:8px;display:flex}.badge{background:var(--accent-blue);color:#fff;letter-spacing:.4px;border-radius:4px;padding:3px 7px;font-size:.68rem;font-weight:700}.stage-card-header h2{color:#fff;font-size:1.02rem;font-weight:700}.stage-objective{color:var(--text-secondary);font-size:.8rem;line-height:1.45}.current-action-hero{border:1px solid #00d2ff40;flex-direction:column;gap:10px;padding:14px;display:flex;position:relative;overflow:hidden;box-shadow:0 4px 20px #00000059}.current-action-hero:before{content:"";background:linear-gradient(180deg, var(--accent-cyan), var(--accent-blue));width:4px;height:100%;position:absolute;top:0;left:0}.action-hero-header{justify-content:space-between;align-items:center;display:flex}.action-tag{color:var(--accent-cyan);font-size:.74rem;font-weight:700}.formula-tag{color:var(--accent-green);background:#00d26a26;border:1px solid #00d26a4d;border-radius:4px;padding:2px 7px;font-size:.7rem;font-weight:600}.action-hero-body{align-items:center;gap:14px;display:flex}.hero-move-badge{border:2px solid var(--accent-cyan);border-radius:var(--radius-md);color:#fff;background:linear-gradient(135deg,#0070f34d,#00d2ff33);justify-content:center;align-items:center;min-width:52px;height:52px;font-family:monospace;font-size:1.45rem;font-weight:800;display:flex;box-shadow:0 0 16px #00d2ff40}.hero-move-texts{flex-direction:column;gap:3px;display:flex}.hero-move-texts h3{color:#fff;font-size:.96rem;font-weight:700}.hero-move-texts p{color:#cbd5e1;font-size:.8rem;line-height:1.35}.hero-move-tip{margin-top:2px;color:#94a3b8!important;font-size:.74rem!important}.rotation-cue-box{border-radius:var(--radius-sm);color:#fed7aa;background:#ff7a001f;border:1px solid #ff7a004d;align-items:center;gap:8px;padding:8px 10px;font-size:.76rem;display:flex}.rotation-cue-box .cue-icon{font-size:1.1rem}.twist-rhythm-row{border-top:1px solid #ffffff0f;align-items:center;gap:6px;padding-top:4px;display:flex}.rhythm-label{color:var(--accent-yellow);font-size:.7rem;font-weight:700}.rhythm-chips{gap:4px;display:flex}.rhythm-chip{color:#fef08a;background:#ffd5001f;border:1px solid #ffd50040;border-radius:4px;padding:2px 6px;font-size:.68rem;font-weight:600}.stage-complete-card{text-align:center;background:linear-gradient(135deg,#00d26a26,#0070f31a);border:1px solid #00d26a66;flex-direction:column;align-items:center;gap:8px;padding:18px 14px;display:flex}.complete-icon{font-size:2rem}.stage-complete-card h3{color:#fff;font-size:1.1rem;font-weight:700}.stage-complete-card p{color:#d1d5db;font-size:.8rem;line-height:1.4}.large-btn{background:linear-gradient(90deg, var(--accent-green), #10b981);color:#fff;border-radius:var(--radius-sm);cursor:pointer;border:none;justify-content:center;width:100%;margin-top:6px;padding:10px 16px;font-size:.88rem;box-shadow:0 0 16px #00d26a59}.large-btn:hover{filter:brightness(1.1);transform:translateY(-1px)}.target-shape-section{flex-direction:column;gap:8px;margin-top:auto;display:flex}.section-title-row{justify-content:space-between;align-items:baseline;display:flex}.section-title{color:var(--text-secondary);font-size:.74rem;font-weight:700}.target-caption{color:var(--text-muted);font-size:.67rem}.target-net-container{border-radius:var(--radius-md);background:#00000047;border:1px solid #ffffff0a;justify-content:center;padding:8px;display:flex}.cube-net-grid{grid-template-rows:repeat(3,28px);grid-template-columns:repeat(4,28px);gap:4px;display:grid}.net-face{background:#0d1117;border:1px solid #1f2937;border-radius:3px;grid-template-rows:repeat(3,7px);grid-template-columns:repeat(3,7px);gap:2px;padding:2px;display:grid}.net-sticker{border-radius:1px}.net-sticker.mask-u{background:var(--accent-yellow)}body.bottom-white .net-sticker.mask-d{background:#f8fafc;border:1px solid #94a3b8}body:not(.bottom-white) .net-sticker.mask-d{background:#1e2530;border:1px solid #475569}.net-sticker.mask-f{background:var(--accent-green)}.net-sticker.mask-b{background:var(--accent-blue)}.net-sticker.mask-r{background:var(--accent-red)}.net-sticker.mask-l{background:var(--accent-orange)}.net-sticker.mask-wildcard{opacity:.35;background:#1a202c}.playback-controls{border-top:1px solid var(--panel-border);background:#0a0e14b3;flex-direction:column;gap:10px;padding:14px 16px;display:flex}.primary-step-btn{color:#fff;border-radius:var(--radius-md);cursor:pointer;background:linear-gradient(90deg,#0070f3,#00d2ff);border:none;justify-content:center;align-items:center;gap:10px;width:100%;padding:12px 18px;font-size:.95rem;font-weight:700;transition:all .2s;display:flex;box-shadow:0 4px 18px #0070f373}.primary-step-btn:hover{filter:brightness(1.08);transform:translateY(-2px);box-shadow:0 6px 24px #00d2ff8c}.primary-step-btn:active{transform:translateY(0)}.primary-step-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.primary-step-btn .btn-icon{font-size:1.1rem}.secondary-controls-row{grid-template-columns:1fr 1fr 1fr;gap:8px;display:grid}.ctrl-btn{color:#e2e8f0;border-radius:var(--radius-sm);cursor:pointer;background:#ffffff0f;border:1px solid #ffffff1a;justify-content:center;align-items:center;gap:4px;padding:8px;font-size:.76rem;font-weight:600;transition:all .2s;display:flex}.ctrl-btn:hover{color:#fff;background:#ffffff1f}.ctrl-btn .icon{font-size:.82rem}.progress-row{align-items:center;gap:10px;display:flex}.progress-bar-container{background:#ffffff1a;border-radius:3px;flex:1;height:5px;overflow:hidden}.progress-bar-fill{background:linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));width:0%;height:100%;transition:width .25s}.progress-text{color:var(--text-muted);text-align:right;min-width:70px;font-size:.72rem;font-weight:700}.speed-row{justify-content:space-between;align-items:center;gap:6px;display:flex}.speed-label{color:var(--text-muted);font-size:.7rem;font-weight:600}.speed-btn{color:var(--text-secondary);cursor:pointer;background:0 0;border:1px solid #ffffff14;border-radius:12px;padding:3px 8px;font-size:.68rem;font-weight:600;transition:all .2s}.speed-btn.active{color:#fff;background:#ffffff24;border-color:#ffffff40}.hero-submoves-row{border-radius:var(--radius-sm);background:#00000040;border:1px solid #ffffff0d;flex-direction:column;gap:6px;padding:8px 10px;display:flex}.submoves-label{color:var(--accent-cyan);font-size:.7rem;font-weight:700}.hero-submoves-list{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.submove-badge{color:#fff;background:#ffffff14;border:1px solid #ffffff26;border-radius:4px;padding:2px 7px;font-family:monospace;font-size:.76rem;font-weight:700}.submove-arrow{color:var(--text-muted);font-size:.7rem}.modal-overlay{-webkit-backdrop-filter:blur(8px);z-index:100;background:#000000bf;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.scramble-modal{border-radius:var(--radius-lg);border:1px solid #00d2ff4d;flex-direction:column;gap:14px;width:100%;max-width:520px;padding:20px;display:flex;box-shadow:0 12px 48px #0009}.scramble-modal-header{justify-content:space-between;align-items:center;display:flex}.modal-title{align-items:center;gap:8px;display:flex}.modal-title h3{color:#fff;font-size:1.1rem;font-weight:700}.close-btn{color:var(--text-muted);cursor:pointer;background:0 0;border:none;padding:4px;font-size:1.2rem;line-height:1;transition:color .2s}.close-btn:hover{color:#fff}.scramble-instruction{color:var(--text-secondary);font-size:.82rem;line-height:1.45}.scramble-instruction strong{color:#fff}.scramble-moves-grid{border-radius:var(--radius-md);background:#00000059;border:1px solid #ffffff0f;grid-template-columns:repeat(5,1fr);gap:6px;padding:12px;display:grid}.scramble-move-chip{color:#e2e8f0;text-align:center;background:#ffffff14;border:1px solid #ffffff1f;border-radius:4px;padding:6px 4px;font-family:monospace;font-size:.85rem;font-weight:700}.scramble-modal-footer{justify-content:flex-end;gap:10px;margin-top:6px;display:flex}.mini-btn{color:var(--accent-cyan)!important;background:#00d2ff26!important;border:1px solid #00d2ff59!important;padding:4px 10px!important;font-size:.72rem!important}.mini-btn:hover{color:#fff!important;background:#00d2ff40!important}.stage-card-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.stage-card-header-left{align-items:center;gap:8px;display:flex}.stage-card-header-actions{align-items:center;gap:6px;display:flex}.header-action-pill{color:var(--text-secondary);cursor:pointer;background:#ffffff0f;border:1px solid #ffffff26;border-radius:14px;align-items:center;gap:4px;padding:4px 10px;font-size:.72rem;font-weight:600;transition:all .2s;display:flex}.header-action-pill:hover{color:#fff;background:#00d2ff26;border-color:#00d2ff66}.complete-btn-row{align-items:center;gap:10px;margin-top:8px;display:flex}.checkpoint-modal{border-radius:var(--radius-lg);border:1px solid #10b98159;flex-direction:column;gap:14px;width:100%;max-width:560px;padding:22px;display:flex;box-shadow:0 16px 50px #000000b3}.checkpoint-body{flex-direction:column;gap:14px;display:flex}.checkpoint-target-preview{border-radius:var(--radius-md);background:#0000004d;border:1px solid #ffffff14;flex-direction:column;align-items:center;padding:12px;display:flex}.preview-badge-row{justify-content:space-between;align-items:center;width:100%;margin-bottom:8px;display:flex}.target-title{color:var(--accent-green);font-size:.78rem;font-weight:700}.target-desc{color:var(--text-muted);font-size:.72rem}.checkpoint-checklist-box{border-radius:var(--radius-md);background:#ffffff08;border:1px solid #ffffff14;padding:12px 14px}.checkpoint-checklist-box h4{color:#fff;margin-bottom:8px;font-size:.82rem;font-weight:700}.checklist-items{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.checklist-items li{color:var(--text-secondary);padding-left:18px;font-size:.8rem;line-height:1.4;position:relative}.checklist-items li:before{content:"✓";color:var(--accent-green);font-weight:700;position:absolute;left:0}.checkpoint-question-box{text-align:center;border-radius:var(--radius-sm);background:#00d2ff14;border:1px dashed #00d2ff4d;padding:8px 12px}.checkpoint-question-box p{color:#fff;font-size:.86rem;font-weight:700}.checkpoint-modal-footer{justify-content:space-between;gap:12px;margin-top:4px;display:flex}.action-btn.danger{color:#fca5a5;background:#ef444433;border:1px solid #ef444480}.action-btn.danger:hover{color:#fff;background:#ef444459}.action-btn.success{color:#fff!important;background:linear-gradient(135deg,#059669,#10b981)!important;font-weight:700!important}.recovery-modal{border-radius:var(--radius-lg);border:1px solid #f59e0b66;flex-direction:column;gap:14px;width:100%;max-width:600px;padding:22px;display:flex;box-shadow:0 16px 50px #000000b3}.recovery-instruction{color:var(--text-secondary);font-size:.82rem;line-height:1.45}.palette-row{border-radius:var(--radius-md);background:#00000040;border:1px solid #ffffff0f;align-items:center;gap:10px;padding:8px 12px;display:flex}.palette-label{color:var(--text-muted);font-size:.78rem;font-weight:700}.palette-buttons{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.palette-btn{color:var(--text-primary);cursor:pointer;background:#ffffff14;border:2px solid #0000;border-radius:16px;align-items:center;gap:6px;padding:4px 10px;font-size:.75rem;font-weight:600;transition:all .15s;display:flex}.palette-btn:hover{background:#ffffff26;transform:translateY(-1px)}.palette-btn.active{border-color:#fff;transform:scale(1.05);box-shadow:0 0 12px #fff6}.palette-dot{border-radius:50%;width:12px;height:12px}.color-counters-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.counter-chip{color:var(--text-muted);background:#ffffff0d;border:1px solid #ffffff1a;border-radius:10px;padding:2px 8px;font-size:.72rem;font-weight:600}.counter-chip.exact{color:var(--accent-green);border-color:#10b9814d}.counter-chip.mismatch{color:#f87171;background:#ef44441a;border-color:#ef444466}.recovery-error-banner{border-radius:var(--radius-sm);color:#fca5a5;background:#ef444426;border:1px solid #ef444466;align-items:flex-start;gap:10px;padding:10px 12px;font-size:.8rem;line-height:1.4;display:flex}.recovery-error-banner .error-content strong{color:#fecaca;margin-bottom:2px;display:block}.recovery-net-wrapper{border-radius:var(--radius-md);background:#00000059;border:1px solid #ffffff0f;justify-content:center;padding:14px;display:flex}.recovery-net-grid{grid-template-rows:repeat(3,88px);grid-template-columns:repeat(4,88px);gap:8px;display:grid}.recovery-face{background:#0f172a;border:1px solid #ffffff26;border-radius:6px;grid-template-rows:repeat(3,1fr);grid-template-columns:repeat(3,1fr);gap:3px;padding:4px;display:grid}.recovery-sticker{cursor:pointer;border-radius:3px;transition:all .15s;position:relative}.recovery-sticker:hover:not(.center-locked){z-index:2;transform:scale(1.12);box-shadow:0 0 8px #fff9}.recovery-sticker.center-locked{cursor:default;position:relative}.recovery-sticker.center-locked:after{content:"🔒";opacity:.6;justify-content:center;align-items:center;font-size:.6rem;display:flex;position:absolute;inset:0}.recovery-modal-footer{justify-content:space-between;gap:12px;margin-top:4px;display:flex}.global-toast{color:#fff;border-radius:var(--radius-md);z-index:200;-webkit-backdrop-filter:blur(10px);background:#0f172af2;border:1px solid #00d2ff66;padding:12px 18px;font-size:.85rem;font-weight:600;animation:.3s ease-out toastFadeIn;position:fixed;bottom:28px;right:28px;box-shadow:0 10px 30px #0009}@keyframes toastFadeIn{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.hidden{display:none!important}@media (width<=960px){.main-content{grid-template-rows:50vh 1fr;grid-template-columns:1fr}.sidebar-panel{border-left:none;border-top:1px solid var(--panel-border)}}.menu-btn,.sheet-title-row,.sheet-only,.menu-backdrop{display:none}button{touch-action:manipulation}@media (width<=820px){.app-layout{height:100dvh}.app-header{padding:calc(8px + env(safe-area-inset-top)) 14px 8px;-webkit-backdrop-filter:none;background:var(--bg-secondary);flex-wrap:nowrap}.logo-text .subtitle{display:none}.logo-text h1{font-size:1.05rem}.menu-btn{border:1px solid var(--panel-border);background:var(--panel-inner-bg);min-height:40px;color:var(--text-primary);font:inherit;border-radius:999px;align-items:center;gap:4px;margin-left:auto;padding:0 14px;font-size:.9rem;display:inline-flex}.quick-guide-bar{display:none}.header-controls{z-index:60;max-height:80dvh;padding:16px 16px calc(18px + env(safe-area-inset-bottom));background:var(--bg-secondary);border-top:1px solid var(--panel-border);border-radius:18px 18px 0 0;flex-direction:column;align-items:stretch;gap:14px;transition:transform .25s;position:fixed;bottom:0;left:0;right:0;overflow-y:auto;transform:translateY(105%);box-shadow:0 -12px 32px #00000080}.app-layout.menu-open .app-header{z-index:70}.app-layout.menu-open .header-controls{transform:none}.app-layout.menu-open .menu-backdrop{z-index:55;background:#0000008c;display:block;position:fixed;inset:0}.sheet-title-row{justify-content:space-between;align-items:center;display:flex}.sheet-title{font-size:1.05rem;font-weight:700}.sheet-close-btn{border:1px solid var(--panel-border);min-height:40px;color:var(--text-secondary);font:inherit;background:0 0;border-radius:999px;padding:0 12px}.sheet-only{flex-direction:column;gap:14px;display:flex}.header-controls .option-pill-group{flex-wrap:wrap;gap:6px}.header-controls .pill-btn,.header-controls .action-btn{min-height:44px}.main-content{flex-direction:column;min-height:0;display:flex}.viewport-section{flex:auto;height:auto;min-height:180px}.view-badge{flex-wrap:wrap;font-size:.72rem;top:8px;left:8px;right:8px}.cam-presets-toolbar{justify-content:space-between;bottom:8px;left:8px;right:8px;overflow-x:auto}.cam-presets-toolbar .preset-btn{white-space:nowrap;padding:6px 8px;font-size:.72rem}.twist-cards-container{display:none!important}.sidebar-panel{border-left:none;border-top:1px solid var(--panel-border);flex:0 auto;height:auto;max-height:58%;overflow:hidden}.stages-scroll-wrapper{padding:8px 12px 6px}.stage-tabs .stage-tab-btn{white-space:nowrap}.stage-card{flex:auto;min-height:0;padding:10px 12px;overflow-y:auto}.stage-card-header h2{font-size:1rem}.stage-objective,.target-shape-section,.hero-move-tip,.speed-row{display:none}.playback-controls{padding:8px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--panel-border);background:var(--bg-secondary);flex:none}.primary-step-btn{min-height:56px;font-size:1.05rem}.stage-card-header{flex-wrap:wrap;gap:6px 8px}.stage-card-header-actions{flex-wrap:nowrap;gap:6px;display:flex}.header-action-pill{white-space:nowrap;min-height:36px}.preset-separator{display:none}}@media (width<=400px){.cam-presets-toolbar{gap:2px;padding:4px 6px}.cam-presets-toolbar .preset-btn{padding:5px 6px;font-size:.66rem}.secondary-controls-row .ctrl-btn{min-height:44px}}.recovery-net-grid.net-tall{--face:min(132px, calc((100vw - 84px) / 3));grid-template-columns:repeat(3, var(--face));grid-template-rows:repeat(4, var(--face));gap:6px}@media (width<=820px){.recovery-net-wrapper{padding:8px}}.modal-overlay{-webkit-overflow-scrolling:touch;align-items:flex-start;overflow-y:auto}.modal-overlay>*{margin:auto}@media (width<=820px){.modal-overlay{padding:calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom))}}.palette-dot.mask-u{background:var(--accent-yellow)}.palette-dot.mask-f{background:var(--accent-green)}.palette-dot.mask-b{background:var(--accent-blue)}.palette-dot.mask-r{background:var(--accent-red)}.palette-dot.mask-l{background:var(--accent-orange)}body.bottom-white .palette-dot.mask-d{background:#f8fafc;border:1px solid #94a3b8}body:not(.bottom-white) .palette-dot.mask-d{background:#1e2530;border:1px solid #64748b}
