.guide-deck{--guide-accent:#78e6db;margin:0 0 13px;padding:12px 14px 13px;border:1px solid color-mix(in srgb,var(--guide-accent) 28%,transparent);border-radius:12px;background:linear-gradient(120deg,color-mix(in srgb,var(--guide-accent) 9%,#111b30),#10172a);box-shadow:inset 0 1px rgba(255,255,255,.035)}
.guide-deck[data-guide="calculus"]{--guide-accent:#ffb28e}.guide-deck[data-guide="fractal"]{--guide-accent:#b6a7ff}.guide-deck[data-guide="fourier"]{--guide-accent:#ffd0a0}.guide-deck[data-guide="surface"]{--guide-accent:#9ce7ef}.guide-deck[data-guide="dynamics"]{--guide-accent:#9bf2db}.guide-deck[data-guide="chaos"]{--guide-accent:#ffb39f}.guide-deck[data-guide="poetry"]{--guide-accent:#f2ca8d}
.guide-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.guide-kicker{display:flex;align-items:center;gap:8px;color:var(--guide-accent);font:500 10px 'DM Mono','Noto Sans SC',monospace;letter-spacing:.06em}.guide-kicker i{width:6px;height:6px;flex:none;border-radius:50%;background:var(--guide-accent);box-shadow:0 0 10px var(--guide-accent)}
.guide-metaphor{margin:8px 0 0;color:#c6d5e4;font-size:11px;line-height:1.55}
.guide-auto{flex:none;padding:6px 10px;border:1px solid color-mix(in srgb,var(--guide-accent) 35%,transparent);border-radius:7px;background:color-mix(in srgb,var(--guide-accent) 12%,#111827);color:#ebf5f3;font-size:10px;font-weight:700}.guide-auto:hover{background:color-mix(in srgb,var(--guide-accent) 23%,#111827)}
.guide-steps{display:grid;grid-template-columns:repeat(var(--guide-count),minmax(0,1fr));gap:5px;margin-top:10px}.guide-step{min-width:0;padding:8px 9px;border:1px solid rgba(179,197,227,.14);border-radius:8px;background:rgba(8,14,29,.48);color:#c8d6e5;text-align:left;transition:background .18s,border-color .18s,transform .18s}.guide-step:hover{transform:translateY(-2px);background:rgba(255,255,255,.07)}.guide-step.active{border-color:color-mix(in srgb,var(--guide-accent) 65%,transparent);background:color-mix(in srgb,var(--guide-accent) 16%,#151b30);color:#fff}.guide-step span{display:block;color:var(--guide-accent);font:500 9px 'DM Mono',monospace;letter-spacing:.08em}.guide-step strong{display:block;margin-top:2px;font-size:11px;line-height:1.35;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.guide-summary{min-height:34px;margin:9px 1px 0;color:#bac9dd;font-size:11px;line-height:1.55}.guide-summary strong{color:var(--guide-accent);font-weight:700}.guide-summary span{color:#93a6bd}
.guide-stage-tip{position:absolute;left:13px;bottom:13px;z-index:5;width:min(275px,55%);padding:10px 11px;border:1px solid rgba(232,240,255,.25);border-radius:10px;background:rgba(8,14,30,.84);color:#f1f8ff;box-shadow:0 10px 30px rgba(0,0,0,.28);backdrop-filter:blur(12px)}.guide-stage-tip[hidden]{display:none!important}.guide-stage-tip>span{display:block;color:#b9d5e4;font:500 9px 'DM Mono','Noto Sans SC',monospace;letter-spacing:.05em}.guide-stage-tip p{margin:5px 0 8px;font-size:12px;line-height:1.48;font-weight:650}.guide-tip-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.guide-tip-actions button{padding:5px 7px;border:1px solid rgba(205,226,244,.18);border-radius:6px;background:rgba(255,255,255,.06);color:#eaf6f7;font-size:10px}.guide-tip-actions button:first-child{color:#9db4c9}.guide-tip-actions button:hover{background:rgba(255,255,255,.14)}
#module-fractal .guide-stage-tip,#module-fourier .guide-stage-tip{left:auto;right:13px}#module-dynamics .guide-stage-tip{left:auto;right:13px;bottom:auto;top:13px}
@media(max-width:760px){.guide-deck{padding:10px;margin-bottom:10px}.guide-steps{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin}.guide-step{flex:0 0 108px;scroll-snap-align:start}.guide-summary{font-size:11px}.guide-stage-tip{width:min(245px,73%);left:9px;bottom:9px;padding:8px 9px}.guide-stage-tip p{font-size:11px}#module-fractal .guide-stage-tip,#module-fourier .guide-stage-tip,#module-dynamics .guide-stage-tip{right:9px}}
@media(max-width:390px){.guide-kicker{font-size:9px}.guide-auto{font-size:9px;padding:6px}.guide-stage-tip{width:min(220px,75%)}}
@media(prefers-reduced-motion:reduce){.guide-step{transition:none}}

/* Keep every equation, status label, and guided cue outside the data viewport. */
.visual-stage-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 14px;min-height:34px;margin:0 0 7px;padding:7px 11px;border:1px solid rgba(168,195,225,.16);border-radius:9px;background:rgba(12,20,38,.7);color:#becddd}
.visual-stage-head :is(.transform-hud,.canvas-watermark,.fractal-label,.stage-stamp,.surface-stage-label,.poem-stamp,.poem-stage-equation){position:static;inset:auto;max-width:none;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;pointer-events:none}
.visual-stage-head .transform-hud{display:flex;flex-direction:row;align-items:baseline;flex-wrap:wrap;gap:3px 12px;max-width:100%}
.visual-stage-head .transform-hud span{color:#8adcd2}.visual-stage-head .transform-hud strong{font-size:11px}.visual-stage-head .transform-hud small{font-size:10px}
.visual-frame-note{margin-left:auto;color:#87a8b5;font:500 10px 'DM Mono','Noto Sans SC',monospace;white-space:nowrap}
.visual-stage-head .canvas-watermark{color:#b2a8eb;font-size:11px;letter-spacing:.08em}
.visual-stage-head .fractal-label{display:inline-flex;gap:8px;align-items:center;color:#dce9fa}
.visual-stage-head .stage-stamp,.visual-stage-head .surface-stage-label{color:#b8d1df;font-size:10px;letter-spacing:.07em}
.visual-stage-head .poem-stamp{display:flex;align-items:center;gap:6px;color:#d6e3ed;font-size:10px;letter-spacing:.08em}
.visual-stage-head .poem-stage-equation{max-width:100%;margin-left:auto;color:var(--poem-accent);font-size:11px;text-align:right}
.visual-stage-foot{display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;margin:8px 0 0;color:#93a8bd}
.visual-stage-foot .guide-stage-tip{position:static;inset:auto;display:flex;align-items:center;flex:1 1 315px;justify-content:space-between;gap:10px;width:auto;max-width:none;min-height:43px;padding:8px 10px;border-color:rgba(182,210,230,.22);border-radius:9px;background:rgba(17,27,46,.84);box-shadow:none;backdrop-filter:none}
.visual-stage-foot .guide-stage-tip>span{flex:none;color:#9fc9d0}.visual-stage-foot .guide-stage-tip p{flex:1 1 auto;margin:0;font-size:11px}.visual-stage-foot .guide-tip-actions{flex:none;gap:5px}
.visual-stage-foot :is(.graph-corner,.fractal-status,.surface-stage-hint,.dynamics-stage-hint,.chaos-stage-hint){position:static;inset:auto;display:inline-block;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#8fa5b9;font:10px 'DM Mono','Noto Sans SC',monospace;pointer-events:none}
#module-functions .canvas-wrap{flex:none;min-height:0;margin-top:0}#module-functions .axis-label{display:none}#module-dynamics .dynamics-stage:after{content:none}
@media(max-width:760px){.visual-stage-head{padding:7px 9px}.visual-stage-foot .guide-stage-tip{flex:1 1 100%;width:100%;padding:8px 9px}.visual-stage-foot .guide-stage-tip p{font-size:10px}.visual-stage-foot :is(.graph-corner,.fractal-status,.surface-stage-hint,.dynamics-stage-hint,.chaos-stage-hint){font-size:9px}}
@media(max-width:390px){.visual-stage-head .poem-stage-equation{font-size:9px}.visual-stage-foot .guide-stage-tip{flex-wrap:wrap}.visual-stage-foot .guide-stage-tip p{flex:1 1 120px}.visual-stage-foot .guide-tip-actions{margin-left:auto}}
@media(max-width:620px){#module-surface .surface-stage{height:300px}}
