@font-face{font-family:Fira Code;src:local("Fira Code Regular"),local("Fira Code"),url(../_fonts/OknHvWI6KtYn1JQBzX7eSpNDBQ8520F9TvSUJYkVf6A-xeZn9253svK_8Q2LD0XEruY_MnEsuCRO5LenPoggC0Y.woff2) format(woff2);font-display:swap;unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;font-weight:400;font-style:normal}@font-face{font-family:"Fira Code Fallback: Roboto Mono";src:local("Roboto Mono");size-adjust:99.9837%;ascent-override:99.0161%;descent-override:32.2052%;line-gap-override:0%}@font-face{font-family:Fira Code;src:local("Fira Code Regular"),local("Fira Code"),url(../_fonts/qxAYvKsXWeYv731eb-h5TRurcdIP_W44mpNdX-HABAk-zUDeMEFlNtNbrwvT9JxLEBg0TphGy70O6RfIoIX_ZwU.woff2) format(woff2);font-display:swap;unicode-range:U+1F00-1FFF;font-weight:400;font-style:normal}@font-face{font-family:Fira Code;src:local("Fira Code Regular"),local("Fira Code"),url(../_fonts/6dYsbWUd_BpKJ7mdDihgOcya1gHXLpJBuMYXux3WMjE-q3fYNS8YbW5n7ZeXI2vSNgkRWW5VDPKAl51SNTjG2qk.woff2) format(woff2);font-display:swap;unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;font-weight:400;font-style:normal}@font-face{font-family:Fira Code;src:local("Fira Code Medium"),url(../_fonts/OknHvWI6KtYn1JQBzX7eSpNDBQ8520F9TvSUJYkVf6A-xeZn9253svK_8Q2LD0XEruY_MnEsuCRO5LenPoggC0Y.woff2) format(woff2);font-display:swap;unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;font-weight:500;font-style:normal}@font-face{font-family:Fira Code;src:local("Fira Code Medium"),url(../_fonts/4qBuU9MRVUlPZNPSF7Xom_sK8RBEnfYu-9VXFrdq8A8-8TDwLE1HAj1sQn7XxVWtM_7sIaPM-DTdO3Pf8U2DF1U.woff2) format(woff2);font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;font-weight:500;font-style:normal}@font-face{font-family:Fira Code;src:local("Fira Code Medium"),url(../_fonts/Lr-hqqZZsYmCt0ITUlr1CUrWim9fsKvoDFZliMxgNHY-iTa_Yt_PzhOY9TX7ZXdSlEPim6iRt92xhECwaxWxd5w.woff2) format(woff2);font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;font-weight:500;font-style:normal}@font-face{font-family:Fira Code;src:local("Fira Code Medium"),url(../_fonts/UA7OtwYHwGN_HjcVGTdmiQxUit7FlqkCwxVUWSeXVnQ-B4OXCFOL_tWrYODpQTc07aMaj0c2cewTOmBRWR9tD-A.woff2) format(woff2);font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;font-weight:500;font-style:normal}@font-face{font-family:Fira Code;src:local("Fira Code SemiBold"),url(../_fonts/qxAYvKsXWeYv731eb-h5TRurcdIP_W44mpNdX-HABAk-zUDeMEFlNtNbrwvT9JxLEBg0TphGy70O6RfIoIX_ZwU.woff2) format(woff2);font-display:swap;unicode-range:U+1F00-1FFF;font-weight:600;font-style:normal}@font-face{font-family:Fira Code;src:local("Fira Code SemiBold"),url(../_fonts/Lr-hqqZZsYmCt0ITUlr1CUrWim9fsKvoDFZliMxgNHY-iTa_Yt_PzhOY9TX7ZXdSlEPim6iRt92xhECwaxWxd5w.woff2) format(woff2);font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;font-weight:600;font-style:normal}@font-face{font-family:Fira Code;src:local("Fira Code Bold"),url(../_fonts/OknHvWI6KtYn1JQBzX7eSpNDBQ8520F9TvSUJYkVf6A-xeZn9253svK_8Q2LD0XEruY_MnEsuCRO5LenPoggC0Y.woff2) format(woff2);font-display:swap;unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;font-weight:700;font-style:normal}@font-face{font-family:Fira Code;src:local("Fira Code Bold"),url(../_fonts/qxAYvKsXWeYv731eb-h5TRurcdIP_W44mpNdX-HABAk-zUDeMEFlNtNbrwvT9JxLEBg0TphGy70O6RfIoIX_ZwU.woff2) format(woff2);font-display:swap;unicode-range:U+1F00-1FFF;font-weight:700;font-style:normal}@font-face{font-family:Fira Code;src:local("Fira Code Bold"),url(../_fonts/UA7OtwYHwGN_HjcVGTdmiQxUit7FlqkCwxVUWSeXVnQ-B4OXCFOL_tWrYODpQTc07aMaj0c2cewTOmBRWR9tD-A.woff2) format(woff2);font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;font-weight:700;font-style:normal}@font-face{font-family:"Fira Code Fallback: Courier New";src:local("Courier New");size-adjust:99.9837%;ascent-override:99.0161%;descent-override:32.2052%;line-gap-override:0%}@font-face{font-family:"Fira Code Fallback: Noto Sans Mono";src:local("Noto Sans Mono");size-adjust:100%;ascent-override:99%;descent-override:32.2%;line-gap-override:0%}@font-face{font-family:Fira Code;src:local("Fira Code Regular"),local("Fira Code"),url(../_fonts/4qBuU9MRVUlPZNPSF7Xom_sK8RBEnfYu-9VXFrdq8A8-8TDwLE1HAj1sQn7XxVWtM_7sIaPM-DTdO3Pf8U2DF1U.woff2) format(woff2);font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;font-weight:400;font-style:normal}@font-face{font-family:Fira Code;src:local("Fira Code Regular"),local("Fira Code"),url(../_fonts/Lr-hqqZZsYmCt0ITUlr1CUrWim9fsKvoDFZliMxgNHY-iTa_Yt_PzhOY9TX7ZXdSlEPim6iRt92xhECwaxWxd5w.woff2) format(woff2);font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;font-weight:400;font-style:normal}@font-face{font-family:Fira Code;src:local("Fira Code Regular"),local("Fira Code"),url(../_fonts/UA7OtwYHwGN_HjcVGTdmiQxUit7FlqkCwxVUWSeXVnQ-B4OXCFOL_tWrYODpQTc07aMaj0c2cewTOmBRWR9tD-A.woff2) format(woff2);font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;font-weight:400;font-style:normal}@font-face{font-family:Fira Code;src:local("Fira Code Medium"),url(../_fonts/qxAYvKsXWeYv731eb-h5TRurcdIP_W44mpNdX-HABAk-zUDeMEFlNtNbrwvT9JxLEBg0TphGy70O6RfIoIX_ZwU.woff2) format(woff2);font-display:swap;unicode-range:U+1F00-1FFF;font-weight:500;font-style:normal}@font-face{font-family:Fira Code;src:local("Fira Code Medium"),url(../_fonts/6dYsbWUd_BpKJ7mdDihgOcya1gHXLpJBuMYXux3WMjE-q3fYNS8YbW5n7ZeXI2vSNgkRWW5VDPKAl51SNTjG2qk.woff2) format(woff2);font-display:swap;unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;font-weight:500;font-style:normal}@font-face{font-family:Fira Code;src:local("Fira Code SemiBold"),url(../_fonts/OknHvWI6KtYn1JQBzX7eSpNDBQ8520F9TvSUJYkVf6A-xeZn9253svK_8Q2LD0XEruY_MnEsuCRO5LenPoggC0Y.woff2) format(woff2);font-display:swap;unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;font-weight:600;font-style:normal}@font-face{font-family:Fira Code;src:local("Fira Code SemiBold"),url(../_fonts/4qBuU9MRVUlPZNPSF7Xom_sK8RBEnfYu-9VXFrdq8A8-8TDwLE1HAj1sQn7XxVWtM_7sIaPM-DTdO3Pf8U2DF1U.woff2) format(woff2);font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;font-weight:600;font-style:normal}@font-face{font-family:Fira Code;src:local("Fira Code SemiBold"),url(../_fonts/6dYsbWUd_BpKJ7mdDihgOcya1gHXLpJBuMYXux3WMjE-q3fYNS8YbW5n7ZeXI2vSNgkRWW5VDPKAl51SNTjG2qk.woff2) format(woff2);font-display:swap;unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;font-weight:600;font-style:normal}@font-face{font-family:Fira Code;src:local("Fira Code SemiBold"),url(../_fonts/UA7OtwYHwGN_HjcVGTdmiQxUit7FlqkCwxVUWSeXVnQ-B4OXCFOL_tWrYODpQTc07aMaj0c2cewTOmBRWR9tD-A.woff2) format(woff2);font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;font-weight:600;font-style:normal}@font-face{font-family:Fira Code;src:local("Fira Code Bold"),url(../_fonts/4qBuU9MRVUlPZNPSF7Xom_sK8RBEnfYu-9VXFrdq8A8-8TDwLE1HAj1sQn7XxVWtM_7sIaPM-DTdO3Pf8U2DF1U.woff2) format(woff2);font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;font-weight:700;font-style:normal}@font-face{font-family:Fira Code;src:local("Fira Code Bold"),url(../_fonts/6dYsbWUd_BpKJ7mdDihgOcya1gHXLpJBuMYXux3WMjE-q3fYNS8YbW5n7ZeXI2vSNgkRWW5VDPKAl51SNTjG2qk.woff2) format(woff2);font-display:swap;unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;font-weight:700;font-style:normal}@font-face{font-family:Fira Code;src:local("Fira Code Bold"),url(../_fonts/Lr-hqqZZsYmCt0ITUlr1CUrWim9fsKvoDFZliMxgNHY-iTa_Yt_PzhOY9TX7ZXdSlEPim6iRt92xhECwaxWxd5w.woff2) format(woff2);font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Main;src:local("KaTeX_Main Regular Italic"),local("KaTeX_Main Italic"),url(../mathlive/fonts/KaTeX_Main-Italic.woff2) format(woff2);font-display:swap;font-weight:400;font-style:italic}@font-face{font-family:KaTeX_Main;src:local("KaTeX_Main Bold"),url(../mathlive/fonts/KaTeX_Main-Bold.woff2) format(woff2);font-display:swap;font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Main;src:local("KaTeX_Main Regular"),local("KaTeX_Main"),url(../mathlive/fonts/KaTeX_Main-Regular.woff2) format(woff2);font-display:swap;font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Main;src:local("KaTeX_Main Bold Italic"),url(../mathlive/fonts/KaTeX_Main-BoldItalic.woff2) format(woff2);font-display:swap;font-weight:700;font-style:italic}:root,[data-theme=ocean]{--brand-1:#38bdf8;--brand-2:#1d4ed8;--hero-1:#0284c7;--hero-2:#2563eb;--hero-3:#1e40af;--on-brand:#1d4ed8;--on-hero:#fff;--on-hero-soft:hsla(0,0%,100%,.85)}[data-theme=indigo]{--brand-1:#667eea;--brand-2:#764ba2;--hero-1:#312e81;--hero-2:#5b21b6;--hero-3:#86198f;--on-brand:#764ba2;--on-hero:#fff;--on-hero-soft:hsla(0,0%,100%,.85)}[data-theme=forest]{--brand-1:#14b8a6;--brand-2:#0d9488;--hero-1:#0d9488;--hero-2:#0f766e;--hero-3:#115e59;--on-brand:#0f766e}[data-theme=rose]{--brand-1:#f278b6;--brand-2:#af245c;--hero-1:#af245c;--hero-2:#c93877;--hero-3:#94234f;--on-brand:#af245c;--on-hero:#fff;--on-hero-soft:hsla(0,0%,100%,.85)}[data-theme=ember]{--brand-1:#fb923c;--brand-2:#c2410c;--hero-1:#c2410c;--hero-2:#9a3412;--hero-3:#7c2d12;--on-brand:#c2410c;--on-hero:#fff;--on-hero-soft:hsla(0,0%,100%,.85)}[data-theme=royal]{--brand-1:#c084fc;--brand-2:#7e22ce;--hero-1:#581c87;--hero-2:#6b21a8;--hero-3:#86198f;--on-brand:#7e22ce;--on-hero:#fff;--on-hero-soft:hsla(0,0%,100%,.85)}[data-theme=slate]{--brand-1:#94a3b8;--brand-2:#475569;--hero-1:#1e293b;--hero-2:#334155;--hero-3:#0f172a;--on-brand:#475569;--on-hero:#fff;--on-hero-soft:hsla(0,0%,100%,.85)}*{box-sizing:border-box;margin:0;padding:0}body{background:linear-gradient(135deg,var(--brand-1) 0,var(--brand-2) 100%);background-attachment:fixed;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;scroll-behavior:smooth}.container,body{display:flex;flex-direction:column;min-height:100vh}.container{margin:0 auto;max-width:100%;width:100%}.first-screen{display:flex;flex-direction:column}.header{justify-content:space-between;padding:15px 20px}.header,.header-controls{align-items:center;display:flex}.header-controls{gap:15px}.mode-indicator{align-items:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fff3;border-radius:10px;cursor:pointer;display:inline-flex;gap:4px;padding:4px 10px;transition:background .2s ease}.mode-indicator:hover{background:#ffffff4d}.mode-name{color:#ffffffe6;font-size:12px;font-weight:500}h1{color:#fff;font-size:18px;text-shadow:0 1px 2px rgba(0,0,0,.2)}.subtitle{color:#fffc;font-size:14px}.controls .subtitle{margin-right:auto}.help-text-lines{white-space:pre-line}.display-section{flex:0 0 auto;padding:20px}.formula-container{align-items:stretch;display:flex;gap:15px;margin-bottom:15px;width:100%}.formula-main,.formula-preview{display:flex;flex:2;flex-direction:column}.formula-latex{display:flex;flex:1;flex-direction:column}.label{align-items:center;color:#fffc;display:flex;flex-wrap:nowrap;font-size:14px;font-weight:500;gap:10px;height:20px;justify-content:space-between;margin-bottom:8px;width:100%}.position-label{display:inline-flex;flex-shrink:0;gap:8px;white-space:nowrap}.position-label,.position-labels{align-items:center;margin-left:auto}.position-labels{display:flex;gap:18px}.position-labels .position-label{margin-left:0}.cursor-level{align-items:center;background:#fff3;border-radius:10px;color:#ffffffb3;display:inline-flex;font-size:12px;font-weight:600;gap:3px;padding:4px 10px;transition:background .2s ease,color .2s ease}.cursor-level.at-script{background:#ffffff4d}.cursor-sep{font-size:11px;opacity:.45}.cursor-seg.current{color:#fff}.cursor-seg.current.seg-sub{color:#7ec8ff}.cursor-seg.current.seg-sup{color:#ffd166}.latex-output{background:#1e1e28f2;border:2px solid transparent;border-radius:16px;box-shadow:0 4px 20px #00000026;color:#e0e0e0;flex:1;font-family:Fira Code,"Fira Code Fallback: Courier New","Fira Code Fallback: Roboto Mono","Fira Code Fallback: Noto Sans Mono",Consolas,Monaco,monospace;font-size:14px;line-height:1.6;min-height:120px;outline:none;overflow-x:auto;overflow-y:auto;padding:15px;resize:none;transition:border-color .2s ease;white-space:pre-wrap;word-break:break-all}.latex-output:focus{border-color:var(--brand-2)}.mathlive-container{align-items:center;background:#fffffff2;border-radius:16px;box-shadow:0 4px 20px #00000026;display:flex;flex:1;justify-content:center;min-height:120px;overflow-x:auto;overflow-y:hidden;padding:20px}.mathlive-container,math-field{border:none!important;outline:none!important}math-field{background:transparent!important;display:block;font-size:28px;min-height:80px;width:100%}math-field:focus-within{border:none!important;outline:none!important}math-field::part(virtual-keyboard-toggle){display:none!important}math-field::part(container){align-items:center;display:flex;flex-direction:row;justify-content:space-between;width:100%}math-field::part(content){align-items:center;display:flex;flex:1;justify-content:center}.controls{display:flex;gap:10px;margin-top:15px}.controls button{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fff3;border:none;border-radius:10px;color:#fff;cursor:pointer;font-size:14px;padding:10px 20px;transition:background .2s ease}.controls button:hover{background:#ffffff4d}.tutorial-section{backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);background:#ffffff1a;border-radius:16px;box-sizing:border-box;display:flex;flex-direction:column;height:100%;margin:0 10px 10px;padding:15px 20px}.tutorial-section.collapsed{margin:0 10px 10px;padding:10px 8px}.tutorial-section.collapsed .tutorial-header{flex-direction:column;gap:8px;margin-bottom:0}.tutorial-section.collapsed .tutorial-title-text{display:none}.tutorial-section.collapsed .tutorial-icon{font-size:20px}.tutorial-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:12px}.tutorial-title{align-items:center;color:#fff;display:flex;font-size:16px;font-weight:600;gap:8px}.tutorial-icon{font-size:20px}.tutorial-controls{align-items:center;display:flex;gap:12px}.tutorial-progress{background:#fff3;border-radius:12px;color:#fffc;font-size:13px;padding:4px 10px}.tutorial-collapse-btn{align-items:center;background:#fff3;border:none;border-radius:6px;color:#fff;cursor:pointer;display:flex;font-size:18px;height:28px;justify-content:center;width:28px}.tutorial-collapse-btn:hover{background:#ffffff4d}.tutorial-content{display:flex;flex:1;gap:15px;min-height:0}.lesson-list{display:flex;flex:1;flex-direction:column;gap:6px;min-height:0;min-width:200px;overflow-y:auto;scrollbar-color:hsla(0,0%,100%,.3) transparent;scrollbar-width:thin}.lesson-list::-webkit-scrollbar{width:4px}.lesson-list::-webkit-scrollbar-track{background:transparent}.lesson-list::-webkit-scrollbar-thumb{background:#ffffff4d;border-radius:2px}.lesson-item{align-items:center;background:#ffffff1a;border:2px solid transparent;border-radius:10px;cursor:pointer;display:flex;gap:10px;padding:10px 12px;transition:all .2s ease}.lesson-item:hover{background:#fff3}.lesson-item.active{background:color-mix(in srgb,var(--brand-1) 30%,transparent);border-color:color-mix(in srgb,var(--brand-1) 60%,transparent)}.lesson-item.completed{opacity:.7}.lesson-item.locked{cursor:not-allowed;opacity:.4}.lesson-item.locked:hover{background:#ffffff1a}.lesson-item.completed .lesson-status{background:#27ae60}.lesson-status{align-items:center;background:#ffffff4d;border-radius:50%;color:#fff;display:flex;flex-shrink:0;font-size:12px;font-weight:600;height:24px;justify-content:center;width:24px}.lesson-info{flex:1;min-width:0}.lesson-name{color:#fff;font-size:13px;font-weight:500}.lesson-desc,.lesson-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lesson-desc{color:#fff9;font-size:11px}.lesson-detail{background:#ffffff1a;border-radius:12px;display:flex;flex:0 0 auto;flex-direction:column;min-height:132px;padding:15px}.lesson-detail>.step-actions{margin-top:auto}.tutorial-signup-footer{align-items:center;background:color-mix(in srgb,var(--brand-1) 15%,transparent);border-radius:0 0 12px 12px;border-top:1px solid color-mix(in srgb,var(--brand-1) 25%,transparent);display:flex;flex-shrink:0;gap:8px;justify-content:space-between;margin-top:8px;padding:10px 14px}.tutorial-signup-footer .signup-text{color:#ffffffbf;font-size:12px}.tutorial-signup-footer .signup-link{background:var(--brand-1);border-radius:6px;color:#fff;font-size:12px;font-weight:600;padding:4px 10px;text-decoration:none;transition:background .15s;white-space:nowrap}.tutorial-signup-footer .signup-link:hover{background:color-mix(in srgb,var(--brand-1) 85%,#000)}.step-progress{background:#fff3;border-radius:2px;height:4px;margin-bottom:6px;overflow:hidden}.step-counter{color:#ffffffb3;font-size:12px;margin-bottom:15px;text-align:right}.progress-bar{background:linear-gradient(90deg,var(--brand-1),var(--brand-2));border-radius:2px;height:100%;transition:width .3s ease}.step-content{margin-bottom:15px}.step-instruction{color:#fff;font-size:15px;line-height:1.4;margin-bottom:10px}.step-target{color:#ffffffb3;font-size:13px;margin-bottom:8px}.target-formula{background:#ffd1662e;border-radius:6px;color:#ffd166;font-weight:600;padding:2px 8px}.step-actions{display:flex;gap:10px}.skip-step-btn{background:#fff3;border:none;border-radius:8px;color:#fff;cursor:pointer;font-size:13px;padding:8px 16px;transition:all .2s ease}.skip-step-btn:hover{background:#ffffff4d}.lesson-complete{align-items:center;display:flex;flex:1;flex-direction:column;justify-content:center;min-height:100px;text-align:center}.complete-icon{font-size:40px;margin-bottom:10px}.complete-text{color:#fff;font-size:18px;font-weight:600;margin-bottom:15px}.next-lesson-btn{background:linear-gradient(135deg,var(--brand-1) 0,var(--brand-2) 100%);border:none;border-radius:10px;color:#fff;cursor:pointer;font-size:14px;font-weight:500;padding:10px 24px;transition:all .2s ease}.next-lesson-btn:hover{box-shadow:0 4px 15px color-mix(in srgb,var(--brand-1) 40%,transparent);transform:translateY(-2px)}.complete-subtext{color:#ffffffb3;font-size:12px;line-height:1.5;margin:-6px 0 14px}.complete-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.retry-lesson-btn{background:transparent;border:1px solid hsla(0,0%,100%,.3);border-radius:10px;color:#ffffffe6;cursor:pointer;font-size:14px;font-weight:500;padding:10px 24px;transition:all .2s ease}.retry-lesson-btn:hover{background:#ffffff1a;border-color:#fff9}.no-lesson{align-items:center;color:#ffffff80;display:flex;font-size:14px;height:100%;justify-content:center;min-height:100px}.keyboard-section{flex:1;justify-content:flex-start;padding:10px}.keyboard,.keyboard-section{display:flex;flex-direction:column}.keyboard{backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);background:#ffffff26;border:1px solid hsla(0,0%,100%,.2);border-radius:20px;gap:8px;margin:0 auto;max-width:100%;padding:12px;width:950px}.keyboard .row{gap:6px}.key,.keyboard .row{display:flex;justify-content:center}.key{align-items:center;background:#ffffffd9;border:none;border-radius:8px;box-shadow:0 2px 4px #0000001a;cursor:pointer;flex:1;flex-direction:column;font-size:16px;height:54px;max-width:65px;min-width:45px;padding:4px;position:relative;transition:all .1s ease}.key:hover{background:#fffffff2}.key.active,.key.holding,.key:active{background:color-mix(in srgb,var(--brand-1) 90%,transparent);color:#fff;transform:scale(.95)}.key.tutorial-hint{animation:tutorial-pulse 1.2s ease-in-out infinite;border-color:#fb7185;color:#fff}.key.tutorial-hint .hint,.key.tutorial-hint .main{color:#fff}@keyframes tutorial-pulse{0%,to{background:#fb718573}50%{background:#fb7185d9}}.tutorial-glow{animation:tutorial-glow-pulse 1.2s ease-in-out infinite;border-radius:10px}@keyframes tutorial-glow-pulse{0%,to{box-shadow:0 0 0 2px #fb718580}50%{box-shadow:0 0 0 5px #fb7185f2}}.key .main{font-size:17px;font-weight:500}.key .hint{color:var(--brand-2);font-family:KaTeX_Main,KaTeX_Size1,KaTeX_AMS,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px;font-weight:600;margin-top:1px}.key.holding .hint{color:#ffffffe6}.key.space{flex:6;max-width:none}.key.wide{flex:2;max-width:100px}.key.medium{flex:1.5;max-width:80px}.key.narrow{flex:.8;font-size:13px;max-width:55px}.help-btn{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fff3;border:none;border-radius:10px;color:#fff;cursor:pointer;font-size:14px;padding:8px 16px}.help-btn:hover{background:#ffffff4d}.help-text{color:#666;font-size:13px;line-height:1.5;margin-bottom:15px}.popover{align-items:center;display:flex;justify-content:center;inset:0;position:fixed;z-index:1000}.popover.hidden{display:none}.popover-overlay{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#00000080;inset:0;position:absolute}.popover-content-wrapper{background:#fff;border-radius:16px;box-shadow:0 20px 60px #0000004d;max-height:calc(100vh - 48px);max-width:none;overflow:hidden;position:relative;width:calc(100% - 48px);z-index:1001}.popover-header{align-items:center;background:#f8f9fa;border-bottom:1px solid #e0e0e0;display:flex;justify-content:space-between;padding:20px}.popover-header h2{color:#333;font-size:18px}.close-btn{align-items:center;background:#e0e0e0;border:none;border-radius:50%;cursor:pointer;display:flex;font-size:20px;height:30px;justify-content:center;width:30px}.close-btn:hover{background:#d0d0d0}.popover-content{max-height:calc(100vh - 118px);overflow-y:auto;padding:24px 32px 32px}.popover-content h3{color:#333;font-size:14px;margin-bottom:10px;margin-top:20px}.popover-content h3:first-child{margin-top:0}.help-group{margin-bottom:26px}.help-group h3{margin-bottom:6px;margin-top:0}.help-note{color:#666;font-size:12px;line-height:1.5;margin:0 0 10px}.latex-rows{display:grid;gap:0 24px;grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}.latex-row{align-items:baseline;border-bottom:1px dotted #ececec;display:flex;gap:10px;padding:3px 0}.latex-keys{color:#444;flex:0 0 76px;font-size:12px}.latex-symbol{flex:0 0 30px;font-family:KaTeX_Main,KaTeX_Size1,KaTeX_AMS,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:15px}.latex-code{color:var(--brand-2);font-family:Fira Code,"Fira Code Fallback: Courier New","Fira Code Fallback: Roboto Mono","Fira Code Fallback: Noto Sans Mono",Consolas,Monaco,monospace;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:768px){.formula-container{flex-direction:column}.formula-preview,.formula-raw{width:100%}.keyboard{gap:6px;padding:10px}.keyboard .row{gap:4px}.key{font-size:14px;height:46px;min-width:30px}.key .main{font-size:15px}.key .hint{font-size:11px}}@media(max-width:480px){.mathlive-container{padding:15px}math-field{font-size:22px}}
