:root{--bg:#f6f5f1;--surface:#fff;--ink:#292735;--muted:#74717e;--line:#e8e6ec;--purple:#7350df;--purple-dark:#5d39c8;--purple-soft:#eeE9fb;--lime:#d4ec8d;--sidebar:#242232;--radius:20px;--shadow:0 4px 24px #29273505;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;color:var(--ink);background:var(--bg);font-synthesis:none;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #9c7eec;outline-offset:4px}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b9a5ec;outline-offset:2px}button:disabled{opacity:.5}button svg,a svg{flex-shrink:0}p,h1,h2,h3{margin-top:0}h1,h2,h3{letter-spacing:-.035em}h1{font-size:clamp(1.8rem,2.45vw,2.65rem);line-height:1.2;font-weight:750;margin-bottom:0}h2{font-size:1.48rem;font-weight:720;margin-bottom:0}h3{font-size:1.16rem;line-height:1.35}p{line-height:1.65}pre,code,.code-input{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace}pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.icon{width:20px;height:20px;display:inline-block;vertical-align:middle;flex-shrink:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;left:16px;top:-80px;padding:14px;background:var(--ink);color:#fff;z-index:100;border-radius:8px}.skip-link:focus{top:16px}.workspace{display:flex;min-height:100vh}.sidebar{width:232px;flex-shrink:0;background:var(--sidebar);position:fixed;inset:0 auto 0 0;color:#d6d3e1;display:flex;flex-direction:column;padding:32px 20px 22px;z-index:10}.brand{display:flex;align-items:center;gap:11px}.brand-mark{display:flex;align-items:center;justify-content:center;width:41px;height:41px;border-radius:13px;background:var(--purple);color:#fff;font-size:31px;font-weight:850;letter-spacing:-.12em;padding-right:3px;line-height:1}.brand-mark>span{color:var(--lime)}.brand-name{font-size:20px;letter-spacing:-.05em;font-weight:750;color:#fff;display:flex;flex-direction:column;line-height:1.03}.brand-name>span{font-size:13px;font-weight:450;letter-spacing:.055em;color:#b9b4ce;margin-top:3px}.sidebar-label{font-size:.61rem;font-weight:700;letter-spacing:.14em;color:#8a849d;margin:51px 12px 15px}.sidebar nav{display:grid;gap:7px}.nav-link{display:flex;align-items:center;gap:13px;padding:14px 15px;border-radius:11px;font-size:.92rem;font-weight:550;color:#b6b1c7;transition:background .15s,color .15s}.nav-link:hover{background:#ffffff08;color:white}.nav-link.active{background:#3a334f;color:#e2d8ff}.nav-link.active .icon{color:#b79aff}.sidebar-note{margin:auto 8px 30px;padding-top:60px}.note-symbol{display:block;color:var(--lime);margin-bottom:15px}.note-symbol .icon{width:25px;height:25px}.sidebar-note strong{display:block;font-size:1.25rem;line-height:1.4;color:#f6f3ff;letter-spacing:-.025em;font-weight:600}.sidebar-note p{color:#a19ab5;font-size:.79rem;margin:10px 0 18px;line-height:1.7}.version{display:inline-flex;align-items:center;padding:6px 9px;border:1px solid #494257;border-radius:6px;font-family:"SFMono-Regular",Consolas,monospace;font-size:.63rem;color:#c2b9d6}.sidebar-user{border-top:1px solid #3b354b;padding:20px 3px 0;display:flex;gap:10px;align-items:center;min-width:0}.avatar,.topbar-avatar{display:flex;align-items:center;justify-content:center;background:#d9d1ec;color:#504166;border-radius:50%;font-size:.85rem;font-weight:700;width:34px;height:34px;flex-shrink:0}.sidebar-user>span:nth-child(2){flex:1;min-width:0}.sidebar-user strong{display:block;font-size:.8rem;color:#e9e5f3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-user small{display:block;color:#948ba8;font-size:.65rem;margin-top:3px}.sidebar-user>.icon{width:15px}.main-wrap{margin-left:232px;flex:1;min-width:0}.topbar{height:85px;padding:0 4.8%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:16px;background:#f6f5f1f0}.topbar-label{font-size:.8rem;color:#8a8694}.topbar-right{display:flex;gap:22px;align-items:center}.runtime-pill{font-size:.72rem;color:#756d87;display:flex;align-items:center;gap:7px;font-family:"SFMono-Regular",Consolas,monospace}.runtime-pill>span{width:6px;height:6px;background:#88a24b;border-radius:50%}.topbar-avatar{width:32px;height:32px;background:#ebe6f5}.mobile-brand,.mobile-nav{display:none}#main{max-width:1370px;margin:0 auto;padding:42px 4.8% 20px;outline:none;min-height:calc(100vh - 160px)}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:30px}.eyebrow{font-size:.62rem;font-weight:750;letter-spacing:.15em;color:#8d879b;margin-bottom:10px;line-height:1.4}.heading-dot{color:var(--purple)}.small-caption{color:#8d879b;font-size:.74rem;white-space:nowrap;margin-bottom:5px}.page-subtitle{color:var(--muted);font-size:.9rem;margin:13px 0 0}.hero{display:flex;align-items:center;justify-content:space-between;gap:20px;border-radius:var(--radius);background:#ede8fa;min-height:292px;overflow:hidden;position:relative;padding:33px 35px;margin-bottom:22px;border:1px solid #e5ddf5}.hero-copy{z-index:1;flex-shrink:0}.hero-label{display:block;font-size:.59rem;font-weight:750;letter-spacing:.12em;color:#7b65a6;margin-bottom:17px}.hero h2{font-size:clamp(1.6rem,2.4vw,2.5rem);line-height:1.2;letter-spacing:-.045em}.hero p{color:#7a6f8b;margin:16px 0 21px;font-size:.85rem;line-height:1.65}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:13px 19px;min-height:46px;line-height:1.25;border-radius:10px;font-size:.84rem;font-weight:650;border:1px solid transparent;transition:background .15s,transform .15s;max-width:100%}.button .icon{width:17px;height:17px}.button:hover:not(:disabled){transform:translateY(-1px)}.primary{background:var(--purple);color:#fff;box-shadow:0 3px 6px #4d2d9f10}.primary:hover:not(:disabled){background:var(--purple-dark)}.secondary{background:#fff;color:#5e5178;border-color:#e2dce9}.secondary:hover:not(:disabled){background:#f7f4fc;border-color:#cbbce5}.button.small{padding:10px 13px;min-height:39px;font-size:.76rem}.tensor-art{height:230px;position:relative;width:280px;margin-right:15px;flex-shrink:1;min-width:160px;transform:rotate(-7deg)}.tensor-sheet{position:absolute;left:22%;top:21%;width:175px;height:130px;border-radius:16px;border:1px solid #9a79db66;transform:skewY(9deg)}.sheet-back{background:#c9b7eb;transform:translate(25px,-25px) skewY(9deg)}.sheet-middle{background:#dccff6;transform:translate(12px,-12px) skewY(9deg)}.sheet-front{background:#fffafc;box-shadow:-12px 18px 25px #6d46a91b;display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:14px}.sheet-front>div{background:#f1ecf9;color:#8b6bc6;display:flex;align-items:center;justify-content:center;font-family:"SFMono-Regular",monospace;font-size:.85rem;border-radius:5px}.sheet-front>div:nth-child(2),.sheet-front>div:nth-child(6){background:var(--lime);color:#5b6d2b}.art-label{position:absolute;font-size:.6rem;color:#8a76a9;letter-spacing:.02em;transform:rotate(7deg);white-space:nowrap;font-family:"SFMono-Regular",monospace}.art-label.top{top:2%;left:30%;padding:6px 9px;border:1px solid #d4c7ea;border-radius:6px;background:#f3eefb}.art-label.bottom{bottom:1%;left:4%;font-family:inherit;font-size:.64rem}.art-shape{position:absolute;right:-8%;bottom:20%;background:var(--purple);color:#fff;transform:rotate(7deg);padding:9px 12px;border-radius:8px;font-family:monospace;font-size:.8rem;box-shadow:0 3px 8px #6944a31a}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:38px}.stat-card{border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:20px 17px;display:flex;align-items:center;gap:13px;min-width:0;box-shadow:var(--shadow)}.stat-symbol{width:43px;height:43px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.purple{background:#f0eafb;color:#8c69d3}.lime{background:#f1f6e6;color:#84994e}.peach{background:#fbefe4;color:#ba9166}.stat-number{font-size:1.6rem;line-height:1.1;font-weight:750;letter-spacing:-.055em;display:block;margin-bottom:6px}.stat-number small{font-size:.86rem;color:#b0aab8;font-weight:500;letter-spacing:-.03em}.stat-label{display:block;font-size:.67rem;color:#8b8495;line-height:1.5}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:22px}.section-heading h2{font-size:1.6rem}.overall-progress{width:130px;flex-shrink:0}.overall-progress>span{display:block;text-align:right;font-size:.71rem;color:#81768f;margin-bottom:9px}.progress-track{display:block;width:100%;height:5px;border:none;background:#eeeaf2;border-radius:20px;overflow:hidden;appearance:none;-webkit-appearance:none}.progress-track::-webkit-progress-bar{background:#eeeaf2;border-radius:20px}.progress-track::-webkit-progress-value{background:#9a7be3;border-radius:20px;transition:width .3s}.progress-track::-moz-progress-bar{background:#9a7be3;border-radius:20px}.progress-track>span{display:block;height:100%;background:#9a7be3;border-radius:20px}.topic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.topic-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:25px 24px 14px;box-shadow:var(--shadow);min-width:0}.topic-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.topic-icon{width:43px;height:43px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.tone-0{background:#f0eafb;color:#9270d3}.tone-1{background:#eaf1e3;color:#8b9a60}.tone-2{background:#e6edf7;color:#6e8fa9}.tone-3{background:#faeee7;color:#c99573}.topic-count{font-family:"SFMono-Regular",monospace;font-size:.72rem;color:#8d849b;background:#f8f6fa;padding:6px 9px;border-radius:6px}.topic-card h3{font-size:1.25rem;margin:0 0 8px}.topic-description{font-size:.78rem;line-height:1.65;color:#8a8393;min-height:2.6em;margin:0 0 18px}.topic-progress{height:4px;margin-bottom:16px}.lesson{border-top:1px solid #eeebf2}.lesson summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;font-weight:600;font-size:.76rem;padding:15px 0;list-style:none;line-height:1.5}.lesson summary::-webkit-details-marker{display:none}.lesson-meta{display:flex;align-items:center;gap:8px;color:#8b7798;font-size:.68rem;font-weight:450;flex-shrink:0}.lesson-meta .icon{width:15px;height:15px;transition:transform .15s}.lesson[open] summary .icon{transform:rotate(180deg)}.task-list{list-style:none;padding:0;margin:0}.task-row{display:flex;align-items:center;gap:12px;padding:11px 0;border-radius:7px}.task-row:hover .task-row-copy strong{color:var(--purple)}.task-number{display:flex;align-items:center;justify-content:center;width:27px;height:27px;border-radius:8px;background:#f6f4f9;color:#8c7798;font-size:.65rem;font-weight:650;flex-shrink:0}.task-number.done{background:#edf4df;color:#829a49}.task-number .icon{width:14px;height:14px}.task-row-copy{min-width:0;flex:1}.task-row-copy strong{display:block;font-weight:550;font-size:.79rem;line-height:1.5;transition:color .15s}.task-row-copy small{display:flex;flex-wrap:wrap;gap:5px;font-size:.64rem;color:#84738e;margin-top:4px;line-height:1.5}.task-arrow{width:14px;height:14px;color:#c0b8cb}.quiet-note{display:flex;align-items:center;justify-content:center;gap:10px;color:#9b93a6;margin:28px 0 5px}.quiet-note .icon{width:16px;height:16px}.quiet-note p{font-size:.72rem;margin:0}.page-footer{max-width:1370px;margin:0 auto;padding:26px 4.8% 30px;display:flex;align-items:center;justify-content:space-between;color:#8a7895;font-size:.65rem}.page-footer>span:last-child{display:flex;align-items:center;gap:7px}.page-footer .icon{width:12px;height:12px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:25px;min-width:0;box-shadow:var(--shadow)}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}.panel-heading h2{font-size:1.12rem}.pill{display:inline-flex;border:1px solid #e6e0ef;border-radius:6px;padding:5px 8px;line-height:1.2;font-size:.64rem;color:#8a759f;background:#fcfaff}.progress-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:20px}.topic-progress-list{display:grid;gap:26px}.progress-topic{display:flex;align-items:center;gap:13px}.progress-topic>div{flex:1;min-width:0}.progress-topic-title{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.82rem;margin-bottom:10px}.progress-topic-title strong{font-weight:550}.progress-topic-title>span{font-size:.72rem;color:#9d8bae}.progress-topic small{font-size:.64rem;color:#aaa0b4;display:block;margin-top:7px}.panel-footnote{font-size:.69rem;color:#887594;line-height:1.7;margin:26px 0 0;padding-top:18px;border-top:1px solid #eeeaf2}.subtle{color:#a69ab7}.history-list{list-style:none;margin:0;padding:0}.history-list li+li{border-top:1px solid #f1edf5}.history-list a{display:flex;align-items:center;gap:12px;padding:15px 0}.history-dot{width:7px;height:7px;border-radius:50%;background:#b6a4d1;flex-shrink:0}.history-dot.success{background:#9ab66d}.history-dot.retry{background:#d9b49b}.history-dot.neutral{background:#a5a2af}.history-list a>div{flex:1;min-width:0}.history-list strong{font-size:.77rem;display:block;font-weight:550;line-height:1.5}.history-list small{font-size:.64rem;color:#897694;display:block;margin-top:4px}.history-list .icon{width:15px;color:#c6bece}.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;padding:32px 5px;color:#9d91ae}.empty-state>.icon{width:35px;height:35px;margin-bottom:20px;color:#b1a0c8}.empty-state h3{font-size:1.05rem;margin-bottom:9px;color:#81718f}.empty-state p{font-size:.78rem;margin-bottom:22px}.account-panel{max-width:610px;text-align:center;padding:40px 32px}.account-avatar{display:flex;align-items:center;justify-content:center;background:#eee7fb;color:#8a65c5;width:76px;height:76px;border-radius:24px;font-size:2rem;margin:0 auto 20px;font-weight:700}.account-panel h2{font-size:1.6rem}.account-panel>p:not(.panel-footnote){font-size:.85rem;color:#93869f;margin:14px 0 26px}.account-details{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:8px 0;margin-bottom:30px;text-align:left}.account-details>div{display:flex;justify-content:space-between;gap:16px;padding:13px 0;font-size:.79rem}.account-details span{color:#998aa5}.account-details strong{font-weight:550}.account-panel .panel-footnote{border:0;padding:0;margin-top:20px}.task-breadcrumb{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:.7rem;color:#a297ae;margin-bottom:29px;line-height:1.5}.task-breadcrumb a{display:flex;align-items:center;gap:7px;color:#7f6c99}.task-breadcrumb .icon{width:15px;height:15px}.task-breadcrumb>span:nth-child(even){color:#c8c0d0}.task-heading{margin-bottom:27px;position:relative}.task-heading h1{font-size:clamp(1.8rem,2.5vw,2.5rem);line-height:1.25;max-width:900px;margin-top:15px}.task-tags{display:flex;align-items:center;gap:11px;flex-wrap:wrap}.difficulty{font-size:.65rem;font-weight:550;padding:4px 7px;border-radius:5px;background:#eef3e4;color:#849354}.difficulty.medium{background:#f9eddf;color:#b08b59}.difficulty.hard,.difficulty.very_hard{background:#efe8fa;color:#9d74c1}.time-label{font-size:.66rem;color:#9e91ab;display:flex;align-items:center;gap:5px}.time-label .icon{width:13px;height:13px}.task-status{display:inline-flex;align-items:center;gap:5px;font-size:.67rem;padding:5px 8px;border-radius:6px;margin-top:12px}.task-status.solved{background:#eaf1dc;color:#7a9147}.task-status.assisted{background:#e9e2f4;color:#9a7eb4}.task-status .icon{width:13px;height:13px}.task-layout{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:22px;align-items:start}.exercise-panel{padding:29px;min-width:0}.exercise-label{display:flex;align-items:center;gap:10px;margin-bottom:20px}.exercise-label h2{font-size:1rem;letter-spacing:-.025em}.step-badge{font-size:.59rem;padding:5px 7px;border-radius:5px;color:#9a84b1;background:#f3eef9;font-family:monospace}.task-prompt{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.89rem;color:#716578;line-height:1.8;margin-bottom:21px}.code-label{display:flex;justify-content:space-between;align-items:center;font-size:.55rem;letter-spacing:.09em;color:#8a7399;background:#f6f3f9;padding:9px 13px;border-radius:8px 8px 0 0;border:1px solid #ece6f3;border-bottom:0}.code-label+.code-block{border-radius:0 0 8px 8px}.code-block{background:#f8f6fb;border:1px solid #eae5f0;color:#776589;line-height:1.8;padding:16px;font-size:.76rem;overflow:auto;max-width:100%;border-radius:9px;tab-size:4}.answer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:26px 0 14px}.answer-heading h3{font-size:.84rem;letter-spacing:-.015em;margin:0;font-weight:600}.draft-status{font-size:.57rem;color:#85708e;line-height:1.5}.draft-status.failed{color:#b98a75}.choices{padding:0;margin:0;border:0;display:grid;gap:10px;min-width:0}.choice{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid #e9e2ef;border-radius:9px;cursor:pointer;position:relative;min-height:58px;transition:background .15s,border-color .15s}.choice:hover{border-color:#c9b5e5;background:#fcfaff}.choice.selected{background:#f7f2ff;border-color:#b595e0}.choice input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer}.choice:has(input:focus-visible){outline:3px solid #b9a5ec;outline-offset:2px}.choice-letter{display:flex;align-items:center;justify-content:center;font-size:.67rem;color:#b3a5bf;background:#f4f0f8;width:27px;height:27px;border-radius:7px;flex-shrink:0;line-height:1;font-weight:650}.choice.selected .choice-letter{background:#b093d4;color:#fff}.choice-text{font-size:.8rem;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap;font-family:"SFMono-Regular",Consolas,monospace;flex:1;min-width:0}.choice-check{color:#b092d1;opacity:0;display:flex}.choice-check .icon{width:17px;height:17px}.choice.selected .choice-check{opacity:1}.submit-row{margin-top:24px;display:flex;align-items:center;gap:17px;flex-wrap:wrap}.submit-note{font-size:.65rem;color:#8d7898}.ordering-list{list-style:none;padding:0;margin:0;display:grid;gap:9px}.order-block{display:flex;align-items:center;gap:9px;background:#faf8fc;border:1px solid #e9e3ef;border-radius:9px;padding:9px 8px 9px 11px;min-width:0}.order-index{font-size:.59rem;color:#927da0;font-family:monospace;flex-shrink:0}.order-block pre{font-size:.73rem;line-height:1.7;color:#83708e;flex:1;min-width:0;tab-size:4;white-space:pre-wrap}.order-actions{display:flex;gap:3px;flex-shrink:0}.icon-button{width:32px;height:34px;background:#fff;border:1px solid #eee7f5;border-radius:6px;display:flex;align-items:center;justify-content:center;color:#8a6a9e}.icon-button .icon{width:16px;height:16px}.icon-button:hover:not(:disabled){background:#efe8f9;border-color:#d9c8ed}.blanks{display:grid;gap:16px}.blank-field{display:grid;gap:9px}.blank-field>span{display:flex;gap:8px;align-items:flex-start;font-size:.77rem;color:#8a7798;line-height:1.5}.blank-index{display:inline-flex;align-items:center;justify-content:center;font-size:.56rem;background:#f0eafa;color:#ac97c2;width:18px;height:18px;border-radius:5px;flex-shrink:0}.blank-field input,.blank-field select{width:100%;background:#fbf9fe;color:#8e7b9e;border:1px solid #e4dceb;border-radius:8px;padding:13px 12px;font-family:"SFMono-Regular",monospace;font-size:.78rem;min-width:0}.code-editor{border:1px solid #e6e0ed;border-radius:10px;overflow:hidden;background:#f9f7fc}.editor-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border-bottom:1px solid #eae4f2;background:#f3eff8;font-family:monospace;font-size:.56rem;color:#8c7599}.editor-bar>span:first-child{display:flex;gap:4px}.editor-bar i{width:5px;height:5px;background:#d5cadd;border-radius:50%}.code-input{display:block;width:100%;resize:vertical;border:0;background:transparent;color:#725e84;font-size:.78rem;line-height:1.8;padding:15px;min-height:190px;tab-size:4;outline-offset:-3px!important}.editor-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 13px;border-top:1px solid #eae4f2;font-size:.55rem;color:#8c7599}.text-button{border:0;padding:3px 0;background:transparent;color:#9878b8;font-size:.7rem;display:inline-flex;align-items:center;gap:6px}.editor-foot .text-button{font-size:.58rem}.text-button:hover{color:#70508f}.help-panel{padding:23px 20px}.help-heading{display:flex;gap:10px;align-items:center}.help-heading h2{font-size:1rem}.help-icon{width:31px;height:31px;display:flex;align-items:center;justify-content:center;background:#f0eddf;color:#8a8042;border-radius:9px}.help-icon .icon{width:17px;height:17px}.help-intro{font-size:.76rem;color:#a092ad;margin:15px 0 20px}.help-link{display:flex;align-items:center;gap:11px;width:100%;border:0;background:transparent;padding:13px 0;color:#876499;text-align:left;border-bottom:1px solid #f1ecf5}.help-link>span{flex:1;min-width:0}.help-link strong{display:block;font-size:.71rem;color:#8a759b;font-weight:600;line-height:1.5}.help-link small{display:block;font-size:.6rem;color:#82718e;line-height:1.55;margin-top:3px}.help-link>.icon:first-child{width:18px;height:18px}.help-link>.icon:last-child{width:13px;height:13px}.help-link:hover:not(:disabled) strong{color:var(--purple)}.help-divider{height:1px;background:#e9e2f0;margin:21px 0 7px}.help-divider+.help-link{border-bottom:0}.copy-note{font-size:.59rem;line-height:1.65;color:#8e7d99;margin:2px 0 0 29px}.task-tip{padding:22px 20px}.task-tip>span{font-size:.55rem;letter-spacing:.12em;color:#8b7599;font-weight:650}.task-tip p{font-size:.72rem;color:#8e769e;line-height:1.8;margin:9px 0 0}.hint-box{border-radius:8px;border:1px solid #ebe3d7;background:#fcf9f1;padding:12px;margin:8px 0}.hint-box>strong{font-size:.61rem;color:#8c7348;font-weight:650}.hint-box p{font-size:.72rem;color:#806945;white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0 0;line-height:1.8}.solution-box{margin:15px 0;padding:13px;background:#f8f5fc;border:1px solid #e6ddf1;border-radius:8px}.solution-box h3{font-size:.73rem;color:#9274ab;line-height:1.5;margin-bottom:10px}.solution-box .code-block{padding:10px;font-size:.64rem;background:#fff}.solution-box>p{font-size:.7rem;color:#9c87ac;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;margin:13px 0 0}.assistance-note{margin-top:17px;padding-top:13px;border-top:1px solid #efe8f5}.assistance-note p{font-size:.61rem;color:#82718e;line-height:1.8;margin-bottom:10px}.assistance-note .text-button{font-size:.63rem;line-height:1.6}.assistance-note .icon{width:13px;height:13px}.result{margin-top:23px;padding:18px;border-radius:10px;border:1px solid #e4dcf0;background:#f9f6fd;color:#856295}.result h3{display:flex;align-items:center;gap:9px;font-size:.84rem;letter-spacing:-.02em;margin:0;line-height:1.5}.result h3 .icon{width:18px;height:18px}.result>p{font-size:.75rem;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:11px 0 0}.result.success{background:#f5f8ed;border-color:#dce8c5;color:#839b58}.result.incorrect{background:#fcf6ef;border-color:#f0dfcb;color:#96744c}.result.neutral{background:#f7f6f9;border-color:#e5e1ea;color:#7f6a90}.result details{margin-top:12px;font-size:.7rem}.result details summary{cursor:pointer}.result details pre{font-size:.68rem;line-height:1.7;margin-top:12px;padding:12px;background:#ffffff70;border-radius:6px}.result-footnote{font-size:.65rem!important;opacity:.85}.result-next{font-size:.71rem;display:inline-flex;align-items:center;gap:10px;border-top:1px solid #dfE8cf;padding-top:14px;margin-top:17px}.result-next .icon{width:15px;height:15px}.result .button{margin-top:14px}.notice{padding:18px 21px;border-radius:10px;background:#faf0e9;border:1px solid #eed8c8;margin-bottom:22px;color:#927059}.notice p{font-size:.85rem;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.notice .button{margin-top:15px}.help-panel .notice{padding:11px;margin:12px 0 0}.help-panel .notice p{font-size:.68rem}.loading-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:50vh;color:#8b7599;font-size:.85rem;gap:15px}.spinner{display:inline-block;width:18px;height:18px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .8s linear infinite;vertical-align:middle;flex-shrink:0}.loading-state .spinner{width:25px;height:25px}.initial-loader{margin:0 auto!important;padding:50px 20px!important;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:20px}.initial-loader>p{font-size:.85rem;color:#9d90aa}.initial-loader h1{font-size:1.5rem}.initial-loader .notice{max-width:480px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,15px);opacity:0;visibility:hidden;transition:opacity .2s,transform .2s,visibility .2s;z-index:100;background:#302a40;color:#eee6f9;border:1px solid #5a4e71;border-radius:11px;box-shadow:0 10px 35px #24163224;padding:15px 20px;font-size:.78rem;line-height:1.5;max-width:calc(100% - 32px);width:max-content;text-align:center}.toast.visible{opacity:1;visibility:visible;transform:translate(-50%,0)}.copy-dialog{border:1px solid #e7dcee;border-radius:16px;padding:25px;max-width:650px;width:calc(100% - 30px);background:#fff;color:var(--ink);box-shadow:0 20px 100px #3424493b}.copy-dialog::backdrop{background:#24173288}.copy-dialog h2{font-size:1.25rem}.copy-dialog p{font-size:.8rem;color:#a18cab;margin:13px 0 15px}.copy-dialog textarea{width:100%;height:270px;border:1px solid #e2d7ec;border-radius:8px;padding:13px;resize:vertical;font-family:monospace;font-size:.75rem;color:#8b769b;background:#fcfaff;margin-bottom:15px}.copy-dialog form{display:flex;justify-content:flex-end}.login-page{display:grid;grid-template-columns:1.1fr 1fr;min-height:100vh!important;padding:0!important;margin:0!important;max-width:none!important}.login-intro{background:var(--sidebar);color:white;display:flex;flex-direction:column;padding:40px 9% 30px}.login-message{margin:auto 0;padding:60px 0}.login-eyebrow{font-size:.58rem;font-weight:650;letter-spacing:.15em;color:#a496bf}.login-message h1{font-size:clamp(2.1rem,3.5vw,4rem);line-height:1.2;margin:22px 0 20px;letter-spacing:-.055em;color:#f7f3fd}.login-message h1>span{color:var(--lime)}.login-message p{font-size:.85rem;color:#ada2bf;line-height:1.9}.login-code{margin-top:37px;border-left:1px solid #514363;padding-left:22px;font-family:"SFMono-Regular",monospace;font-size:.8rem;line-height:1.9;color:#c9b8dc}.code-comment{color:#7e7195}.code-keyword{color:#c3a2e8}.code-number{color:#b6cb88}.login-footer{font-size:.61rem;color:#7a6d8e;display:flex;gap:15px;justify-content:space-between;margin:0}.login-footer>span{color:#8c7aa4;font-family:monospace}.login-form-wrap{display:flex;align-items:center;justify-content:center;padding:45px 30px;background:var(--bg)}.login-form-inner{width:100%;max-width:340px}.welcome-symbol{width:48px;height:48px;background:#eee8f8;color:#aa8acb;border-radius:14px;display:flex;align-items:center;justify-content:center;margin-bottom:33px}.welcome-symbol .icon{width:25px;height:25px}.login-form-inner h2{font-size:1.9rem;line-height:1.3}.login-subtitle{font-size:.83rem;color:#a391af;margin:13px 0 33px}#login-form{display:grid;gap:20px}#login-form label{display:grid;gap:9px;font-size:.75rem;color:#9e86ad;font-weight:550}#login-form input{padding:14px;border:1px solid #e2d8ec;background:#fff;border-radius:9px;font-size:.85rem;min-width:0;width:100%;color:#715a83}#login-form input::placeholder{color:#9b87a8;font-size:.8rem}#login-form .button{width:100%;margin-top:2px;min-height:48px}.login-error{font-size:.75rem;color:#b28972;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.login-error:empty{display:none}.invite-note{display:flex;align-items:flex-start;gap:12px;border-top:1px solid #e6deed;padding-top:24px;margin-top:30px;color:#b2a2be}.invite-note .icon{width:17px;height:17px;margin-top:3px}.invite-note p{font-size:.68rem;line-height:1.8;margin:0}
@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1600px){.sidebar{width:260px;padding-left:27px;padding-right:27px}.main-wrap{margin-left:260px}.hero{min-height:325px}.tensor-art{margin-right:50px}}
@media(max-width:1200px){.sidebar{width:205px;padding:29px 15px 20px}.main-wrap{margin-left:205px}.brand-name{font-size:18px}.brand-mark{width:37px;height:37px;font-size:28px}.brand-name>span{font-size:11px}.sidebar-label{font-size:.54rem}.nav-link{padding:13px;font-size:.83rem;gap:11px}#main{padding:33px 4% 18px}.topbar{padding:0 4%}.hero{padding:29px;min-height:280px}.hero h2{font-size:1.9rem}.hero-label{font-size:.54rem}.tensor-art{width:220px;margin-right:12px;transform:scale(.92) rotate(-7deg);margin-left:-20px}.art-shape{right:-12%}.small-caption{font-size:.65rem}.stat-card{gap:11px;padding:18px 12px}.stat-symbol{width:36px;height:36px;border-radius:10px}.stat-number{font-size:1.45rem}.stat-label{font-size:.6rem}.topic-card{padding:22px 20px 12px}.task-layout{grid-template-columns:minmax(0,1fr) 250px;gap:18px}.exercise-panel{padding:23px}.help-panel{padding:20px 17px}.help-link{gap:8px}.help-link strong{font-size:.68rem}.help-link small{font-size:.56rem}.help-heading h2{font-size:.94rem}.order-actions{flex-direction:column}.order-block{gap:7px}.task-breadcrumb{gap:8px;font-size:.64rem}.page-heading{gap:15px}}
@media(max-width:1000px){.sidebar{width:188px;padding-left:12px;padding-right:12px}.main-wrap{margin-left:188px}.sidebar-label{font-size:.5rem;letter-spacing:.1em}.sidebar-note{margin-left:10px;margin-right:10px}.sidebar-note strong{font-size:1.1rem}.sidebar-note p{font-size:.72rem}.brand{gap:8px}.brand-name{font-size:17px}.brand-name>span{font-size:10px}.hero h2{font-size:1.65rem}.hero{padding:27px}.hero p{font-size:.78rem}.hero-label{font-size:.48rem}.hero-copy{max-width:78%}.tensor-art{width:160px;margin-left:-57px;transform:scale(.8) rotate(-7deg);transform-origin:center right;opacity:.8;margin-right:12px}.art-label.bottom{display:none}.small-caption{display:none}.stat-card{gap:10px;padding:17px 11px}.stat-symbol{width:31px;height:31px;border-radius:8px}.stat-symbol .icon{width:17px;height:17px}.stat-number{font-size:1.3rem}.stat-label{font-size:.54rem}.stats-grid{gap:10px}.topic-grid{gap:15px}.topic-card{padding:20px 16px 10px}.section-heading h2{font-size:1.35rem}.topic-card h3{font-size:1.15rem}.topic-description{font-size:.73rem}.task-row{gap:9px}.task-row-copy strong{font-size:.74rem}.task-row-copy small{font-size:.59rem}.task-arrow{display:none}.task-layout{grid-template-columns:1fr}.task-help{display:grid;grid-template-columns:1fr .7fr;gap:15px;align-items:start}.help-panel{padding:23px}.help-link strong{font-size:.77rem}.help-link small{font-size:.65rem}.help-heading h2{font-size:1.05rem}.help-intro{font-size:.8rem}.help-link{gap:11px}.copy-note{font-size:.65rem}.task-tip{padding-top:22px}.task-tip p{font-size:.75rem}.task-heading h1{font-size:1.95rem}.order-actions{flex-direction:row}.progress-layout{grid-template-columns:1fr}.topbar-label{font-size:.7rem}.topbar-right{gap:13px}.topbar{height:76px}.page-footer{padding-left:4%;padding-right:4%}.quiet-note p{font-size:.65rem}.quiet-note{align-items:flex-start}.quiet-note .icon{margin-top:2px}.login-intro{padding:35px 8% 27px}.login-message h1{font-size:2.5rem}.login-message p{font-size:.8rem}.login-code{font-size:.72rem}.login-form-inner h2{font-size:1.6rem}.login-form-wrap{padding:40px 25px}}
@media(max-width:760px){.sidebar{display:none}.main-wrap{margin-left:0}.topbar{height:75px;padding:0 22px;background:#fff;border-bottom:1px solid #eee9f1}.topbar-label{display:none}.mobile-brand{display:flex}.mobile-brand .brand-mark{width:33px;height:33px;font-size:25px;border-radius:10px}.mobile-brand .brand-name{color:#4a3a5f;font-size:17px}.mobile-brand .brand-name>span{font-size:10px;color:#ab97bb}.runtime-pill{font-size:.6rem}.topbar-avatar{width:28px;height:28px;font-size:.7rem}.topbar-right{gap:13px}#main{padding:28px 22px 15px;min-height:calc(100svh - 180px)}.page-heading{margin-bottom:24px}h1{font-size:1.9rem}.eyebrow{font-size:.55rem;margin-bottom:9px}.hero{min-height:275px;border-radius:16px;padding:27px;margin-bottom:17px}.hero h2{font-size:1.8rem}.hero-label{font-size:.52rem}.hero p{font-size:.8rem}.hero-copy{max-width:80%}.tensor-art{width:200px;transform:scale(.9) rotate(-7deg);margin-left:-35px;opacity:1;margin-right:10px}.art-label.bottom{display:block}.stats-grid{margin-bottom:30px;gap:12px}.stat-card{padding:17px 13px;gap:12px}.stat-symbol{width:36px;height:36px;border-radius:10px}.stat-number{font-size:1.5rem}.stat-label{font-size:.6rem}.topic-card{padding:23px 21px 13px}.topic-grid{gap:17px}.section-heading h2{font-size:1.4rem}.topic-card h3{font-size:1.2rem}.topic-description{font-size:.77rem}.task-row{gap:10px}.task-row-copy strong{font-size:.78rem}.task-row-copy small{font-size:.62rem}.overall-progress{width:105px}.overall-progress>span{font-size:.63rem}.quiet-note p{font-size:.68rem}.page-footer{padding:23px 22px 105px;font-size:.6rem}.mobile-nav{position:fixed;bottom:0;inset-inline:0;display:flex;align-items:center;justify-content:space-around;padding:10px 15px calc(10px + env(safe-area-inset-bottom));background:#fffefd;border-top:1px solid #e9e1f0;box-shadow:0 -4px 25px #35244705;z-index:20}.mobile-nav .nav-link{padding:6px 12px;display:flex;flex-direction:column;gap:5px;font-size:.55rem;background:transparent;color:#887294;min-width:74px}.mobile-nav .nav-link.active{color:#9875bc}.mobile-nav .nav-link.active .icon{color:#9875bc}.mobile-nav .nav-link .icon{width:21px;height:21px}.toast{bottom:98px}.task-breadcrumb{margin-bottom:23px;font-size:.64rem}.task-heading{margin-bottom:23px}.task-heading h1{font-size:1.95rem}.exercise-panel{padding:25px}.task-prompt{font-size:.88rem}.task-help{grid-template-columns:1fr .7fr;gap:12px}.task-tip{padding:24px 14px}.account-panel{margin:auto;padding:35px 25px}.login-page{grid-template-columns:1fr 1fr}.login-intro{padding:30px 10% 23px}.login-message h1{font-size:2.15rem}.login-message p{font-size:.73rem;line-height:1.9}.login-message p br{display:none}.login-eyebrow{font-size:.49rem}.login-code{font-size:.65rem;padding-left:15px}.login-footer{font-size:.5rem;flex-direction:column;gap:7px}.login-form-wrap{padding:35px 25px}.login-form-inner h2{font-size:1.45rem}.login-subtitle{font-size:.75rem}.login-form-inner .eyebrow{font-size:.49rem}}
@media(max-width:560px){.topbar{height:69px;padding:0 18px}.topbar-avatar{display:none}.runtime-pill{font-size:.56rem}.topbar-right{gap:0}#main{padding:27px 18px 12px}.page-heading{margin-bottom:22px}h1{font-size:1.75rem;line-height:1.23}.hero{padding:25px 23px;min-height:270px}.hero-copy{max-width:100%;flex-shrink:1}.hero-label{font-size:.47rem;letter-spacing:.09em;max-width:260px;line-height:1.7;margin-bottom:13px}.hero h2{font-size:1.65rem}.hero p{font-size:.75rem;margin:14px 0 20px}.hero .button{padding:12px 15px;font-size:.76rem;min-height:43px}.tensor-art{position:absolute;right:-70px;top:31px;width:180px;opacity:.2;transform:scale(.8) rotate(-7deg);pointer-events:none}.hero-copy{z-index:2}.art-label.top,.art-label.bottom,.art-shape{display:none}.tensor-sheet{border-color:#9577cb88}.stats-grid{gap:8px;margin-bottom:30px}.stat-card{display:flex;flex-direction:column;align-items:flex-start;padding:14px 11px;gap:12px;border-radius:12px}.stat-symbol{width:29px;height:29px;border-radius:8px}.stat-symbol .icon{width:16px;height:16px}.stat-number{font-size:1.55rem;margin-bottom:6px}.stat-number small{font-size:.72rem}.stat-label{font-size:.54rem;max-width:85px;line-height:1.5}.section-heading{margin-bottom:18px;gap:13px;align-items:center}.section-heading h2{font-size:1.3rem;max-width:190px;line-height:1.3}.overall-progress{width:83px}.overall-progress>span{font-size:.55rem;margin-bottom:8px}.overall-progress .progress-track{height:4px}.topic-grid{grid-template-columns:1fr;gap:17px}.topic-card{border-radius:16px;padding:23px 22px 12px}.topic-top{margin-bottom:17px}.topic-card h3{font-size:1.25rem}.topic-description{min-height:0;font-size:.78rem;margin-bottom:18px}.task-row-copy strong{font-size:.8rem}.task-row-copy small{font-size:.64rem}.task-arrow{display:block}.lesson summary{font-size:.77rem}.lesson-meta{font-size:.65rem}.topic-progress{margin-bottom:10px}.quiet-note{margin:25px 3px 0;gap:8px}.quiet-note p{font-size:.63rem;line-height:1.7}.quiet-note .icon{width:14px;height:14px;flex-shrink:0}.page-footer{padding:20px 20px 105px;font-size:.55rem;gap:15px;align-items:flex-start}.page-footer>span:last-child{gap:5px}.page-footer .icon{width:10px;height:10px}.panel{border-radius:16px}.panel-heading h2{font-size:1.05rem}.progress-layout>.panel{padding:23px 21px}.progress-topic-title{font-size:.76rem}.progress-topic .topic-icon{width:35px;height:35px;border-radius:10px}.progress-topic .icon{width:18px;height:18px}.progress-topic{gap:10px}.progress-topic-title>span{font-size:.66rem}.progress-topic small{font-size:.59rem}.panel-footnote{font-size:.65rem}.history-list strong{font-size:.77rem}.task-breadcrumb{font-size:.59rem;gap:7px;line-height:1.6;margin-bottom:20px}.task-breadcrumb a{gap:4px}.task-breadcrumb .icon{width:13px;height:13px}.task-breadcrumb>span:last-child{overflow-wrap:anywhere}.task-tags{gap:8px}.pill{font-size:.58rem;padding:5px 7px}.difficulty{font-size:.59rem}.time-label{font-size:.6rem}.task-heading h1{font-size:1.7rem;margin-top:14px;line-height:1.27}.exercise-panel{padding:23px 18px}.exercise-label h2{font-size:.87rem}.exercise-label{gap:8px;margin-bottom:18px}.task-prompt{font-size:.8rem;line-height:1.85}.code-block{font-size:.68rem;padding:13px;line-height:1.8}.code-label{font-size:.5rem;padding:8px 11px}.answer-heading{gap:10px;margin-top:24px}.answer-heading h3{font-size:.77rem;line-height:1.5}.draft-status{font-size:.53rem}.choice{gap:10px;padding:12px;min-height:57px}.choice-text{font-size:.72rem}.choice-letter{width:24px;height:24px;font-size:.6rem}.choice-check .icon{width:14px;height:14px}.submit-row{margin-top:22px;gap:12px}.submit-row .button{width:100%;min-height:47px}.submit-note{font-size:.59rem;text-align:center;width:100%}.task-help{grid-template-columns:1fr;gap:0}.help-panel{padding:24px 21px}.help-heading h2{font-size:1.05rem}.help-intro{font-size:.76rem;margin-bottom:15px}.help-link{padding:14px 0;gap:12px}.help-link strong{font-size:.76rem}.help-link small{font-size:.64rem}.help-link>.icon:first-child{width:19px;height:19px}.copy-note{font-size:.62rem;margin-left:31px}.task-tip{padding:24px 9px}.task-tip>span{font-size:.54rem}.task-tip p{font-size:.72rem;margin-top:9px;line-height:1.8}.task-layout{gap:17px}.assistance-note p{font-size:.65rem}.assistance-note .text-button{font-size:.68rem}.hint-box p{font-size:.73rem}.solution-box .code-block{font-size:.69rem}.solution-box h3{font-size:.76rem}.solution-box>p{font-size:.73rem}.order-block{padding:10px 7px 10px 9px;gap:7px}.order-block pre{font-size:.65rem;line-height:1.8}.order-index{font-size:.52rem}.order-actions{flex-direction:column;gap:3px}.icon-button{width:29px;height:29px}.icon-button .icon{width:15px;height:15px}.code-input{font-size:.7rem;padding:14px 11px;line-height:1.9}.blank-field>span{font-size:.73rem}.blank-field input,.blank-field select{padding:13px 11px;font-size:.73rem}.result{padding:16px 14px}.result h3{font-size:.78rem}.result>p{font-size:.71rem}.result details{font-size:.65rem}.result details pre{font-size:.64rem;padding:10px}.account-panel{padding:33px 20px}.account-panel>p:not(.panel-footnote){font-size:.77rem}.account-details>div{font-size:.72rem}.account-panel .button{font-size:.75rem}.page-subtitle{font-size:.78rem;line-height:1.8}.toast{font-size:.71rem;padding:13px 16px}.login-page{display:flex;flex-direction:column;min-height:100svh!important}.login-intro{padding:26px 25px 26px;min-height:0}.login-message{padding:30px 0 0;margin:0}.login-message h1{font-size:2rem;margin:15px 0 14px;line-height:1.17}.login-message p{font-size:.74rem;line-height:1.8;margin-bottom:0;max-width:295px;color:#a89aba}.login-message p br{display:none}.login-eyebrow{font-size:.47rem;letter-spacing:.11em}.login-code,.login-footer{display:none}.login-intro .brand-mark{width:33px;height:33px;border-radius:10px;font-size:25px}.login-intro .brand-name{font-size:17px}.login-intro .brand-name>span{font-size:10px}.login-form-wrap{padding:32px 25px 36px;flex:1}.login-form-inner{max-width:390px}.welcome-symbol{display:none}.login-form-inner .eyebrow{font-size:.51rem}.login-form-inner h2{font-size:1.55rem}.login-subtitle{font-size:.76rem;margin:10px 0 25px}#login-form{gap:17px}#login-form label{font-size:.72rem}#login-form input{font-size:16px;padding:13px}#login-form .button{font-size:.8rem}.invite-note{margin-top:24px;padding-top:20px}.invite-note p{font-size:.65rem}.copy-dialog{padding:22px 18px}.copy-dialog h2{font-size:1.1rem}.copy-dialog p{font-size:.73rem}.copy-dialog textarea{font-size:.68rem}.copy-dialog .button{font-size:.76rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation-duration:1.5s!important}.spinner{animation-duration:2s!important}}

/* Keep the account reachable in short desktop windows. */
.sidebar{overflow-y:auto;scrollbar-width:thin}.sidebar>.brand,.sidebar>nav,.sidebar-user{flex-shrink:0}
@media(max-height:760px) and (min-width:761px){.sidebar-note{padding-top:30px;margin-bottom:20px}.sidebar-label{margin-top:33px}.sidebar-note p{display:none}}


/* Theme controls stay reachable on login, desktop, and narrow phones. */
:root { color-scheme: light; --text-secondary:#6f657c; --text-caption:#786b86; --field:#fbf9fe; }
:root[data-theme="dark"] {
  color-scheme: dark; --bg:#17151f; --surface:#211e2b; --ink:#f1edf7;
  --muted:#b5acc3; --line:#393343; --purple:#a88af3; --purple-dark:#bea5ff;
  --purple-soft:#332943; --sidebar:#1c1925; --shadow:0 4px 24px #00000012;
  --text-secondary:#c2b6d1; --text-caption:#ac9ebd; --field:#292331;
}
.theme-toggle { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0;
  width:42px; height:42px; border:1px solid var(--line); border-radius:12px;
  background:var(--surface); color:var(--text-secondary); }
.theme-toggle:hover { border-color:var(--purple); color:var(--purple); }
.theme-toggle .icon { width:20px; height:20px; }
.login-form-wrap { position:relative; }
.login-theme { position:absolute; top:24px; right:24px; }
.account-theme { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:13px 0; font-size:.79rem; }
.account-theme select { max-width:175px; min-height:42px; padding:8px 12px; border:1px solid var(--line);
  border-radius:8px; background:var(--field); color:var(--ink); }
/* Keep small explanatory text legible in both themes. */
.topic-description,.task-row-copy small,.stat-label,.overall-progress>span,
.help-intro,.help-link small,.copy-note,.panel-footnote,.history-list small,
.progress-topic small,.task-tip p,.draft-status,.login-subtitle,.invite-note,
.account-panel>p:not(.panel-footnote),.account-details span,.quiet-note,.page-footer,
.login-form-inner #login-form label { color:var(--text-secondary); }
.eyebrow,.small-caption,.topbar-label,.runtime-pill,.lesson-meta,.progress-topic-title>span,
.task-breadcrumb,.task-tip>span,.editor-foot,.editor-bar,.code-label { color:var(--text-caption); }
.task-prompt { color:var(--text-secondary); }
.help-link strong,.help-link,.task-breadcrumb a,.text-button { color:#73538c; }
.solution-box>p { color:#746181; }
:root[data-theme="dark"] .topbar { background:var(--bg); border-color:var(--line); }
:root[data-theme="dark"] .panel { background:var(--surface); }
:root[data-theme="dark"] .hero { background:#30263f; border-color:#49375c; }
:root[data-theme="dark"] .hero-label,:root[data-theme="dark"] .hero p { color:#d1c0e7; }
:root[data-theme="dark"] .primary { color:#20162e; }
:root[data-theme="dark"] .secondary { background:#2b2536; border-color:#4b3e5c; color:#e7d8fa; }
:root[data-theme="dark"] .secondary:hover:not(:disabled) { background:#382d46; border-color:#80649f; }
:root[data-theme="dark"] .topbar-avatar,:root[data-theme="dark"] .avatar,:root[data-theme="dark"] .account-avatar {
  background:#443453; color:#e2c9ff; }
:root[data-theme="dark"] .purple,:root[data-theme="dark"] .tone-0 { background:#392e4b; color:#c2a4ff; }
:root[data-theme="dark"] .lime,:root[data-theme="dark"] .tone-1 { background:#2e3926; color:#c9df94; }
:root[data-theme="dark"] .tone-2 { background:#263447; color:#a1c5e7; }
:root[data-theme="dark"] .peach,:root[data-theme="dark"] .tone-3 { background:#422f27; color:#e8b58e; }
:root[data-theme="dark"] .topic-count,:root[data-theme="dark"] .task-number,:root[data-theme="dark"] .choice-letter {
  background:#302939; color:#c4b1d9; }
:root[data-theme="dark"] .task-number.done,:root[data-theme="dark"] .task-status.solved {
  background:#303e24; color:#d0e9a3; }
:root[data-theme="dark"] .task-status.assisted { background:#3e2e53; color:#d8b9ff; }
:root[data-theme="dark"] .stat-number small { color:#b1a5c0; }
:root[data-theme="dark"] .lesson,:root[data-theme="dark"] .history-list li+li,
:root[data-theme="dark"] .panel-footnote,:root[data-theme="dark"] .assistance-note,
:root[data-theme="dark"] .help-link,:root[data-theme="dark"] .invite-note { border-color:var(--line); }
:root[data-theme="dark"] .progress-track,:root[data-theme="dark"] .help-divider { background:#3b3347; }
:root[data-theme="dark"] .progress-track::-webkit-progress-bar { background:#3b3347; }
:root[data-theme="dark"] .progress-track::-webkit-progress-value { background:#b194ef; }
:root[data-theme="dark"] .progress-track::-moz-progress-bar { background:#b194ef; }
:root[data-theme="dark"] .pill { background:#30263d; border-color:#564265; color:#d5bde9; }
:root[data-theme="dark"] .difficulty { background:#2f3b24; color:#d5e7ae; }
:root[data-theme="dark"] .difficulty.medium { background:#463725; color:#efcea2; }
:root[data-theme="dark"] .difficulty.hard,:root[data-theme="dark"] .difficulty.very_hard { background:#3c2e4e; color:#dfc1ff; }
:root[data-theme="dark"] .step-badge { background:#3b2b4c; color:#d6b8f5; }
:root[data-theme="dark"] .empty-state,:root[data-theme="dark"] .empty-state h3 { color:var(--text-secondary); }
:root[data-theme="dark"] .time-label,:root[data-theme="dark"] .submit-note { color:#b4a5c4; }
:root[data-theme="dark"] .code-label,:root[data-theme="dark"] .editor-bar { background:#2d2539; border-color:var(--line); }
:root[data-theme="dark"] .code-block,:root[data-theme="dark"] .code-editor,
:root[data-theme="dark"] .solution-box .code-block,:root[data-theme="dark"] .order-block {
  background:#1c1924; border-color:#43364f; color:#dbc8ef; }
:root[data-theme="dark"] .code-input,:root[data-theme="dark"] .order-block pre { color:#e1cfef; }
:root[data-theme="dark"] .editor-foot { border-color:var(--line); }
:root[data-theme="dark"] .editor-bar i { background:#6c5b7c; }
:root[data-theme="dark"] .choice { border-color:#4b3d59; }
:root[data-theme="dark"] .choice:hover { background:#30263b; border-color:#8d6fac; }
:root[data-theme="dark"] .choice.selected { background:#392c4b; border-color:#b695ed; }
:root[data-theme="dark"] .choice.selected .choice-letter { background:#b497dd; color:#21162e; }
:root[data-theme="dark"] .choice-check { color:#c4a2ed; }
:root[data-theme="dark"] .order-index,:root[data-theme="dark"] .blank-field>span { color:#c5afd8; }
:root[data-theme="dark"] .icon-button { background:#33283f; color:#d5b9ee; border-color:#51405e; }
:root[data-theme="dark"] .blank-index { background:#44314f; color:#d9b9ec; }
:root[data-theme="dark"] .blank-field input,:root[data-theme="dark"] .blank-field select,
:root[data-theme="dark"] #login-form input { background:var(--field); border-color:#51415e; color:#e8d9f3; }
:root[data-theme="dark"] #login-form input::placeholder { color:#b7a5c5; }
:root[data-theme="dark"] .help-link strong,:root[data-theme="dark"] .help-link,
:root[data-theme="dark"] .text-button,:root[data-theme="dark"] .task-breadcrumb a { color:#ceadee; }
:root[data-theme="dark"] .help-icon { background:#3e3927; color:#e0d398; }
:root[data-theme="dark"] .hint-box { background:#393022; border-color:#5b4b31; }
:root[data-theme="dark"] .hint-box>strong,:root[data-theme="dark"] .hint-box p { color:#e7d1a5; }
:root[data-theme="dark"] .solution-box { background:#302439; border-color:#584267; }
:root[data-theme="dark"] .solution-box h3,:root[data-theme="dark"] .solution-box>p,
:root[data-theme="dark"] .assistance-note p { color:#d5bee6; }
:root[data-theme="dark"] .result { background:#33263e; border-color:#594366; color:#e1c9f0; }
:root[data-theme="dark"] .result.success { background:#2b3822; border-color:#4b6337; color:#d1e9b1; }
:root[data-theme="dark"] .result.incorrect,:root[data-theme="dark"] .notice { background:#3c2d23; border-color:#665039; color:#edcda7; }
:root[data-theme="dark"] .result.neutral { background:#302a3a; border-color:#51465f; color:#d7c8e5; }
:root[data-theme="dark"] .result-next { border-color:#4f633e; }
:root[data-theme="dark"] .result details pre { background:#18151e99; }
:root[data-theme="dark"] .welcome-symbol { background:#382a47; color:#d0aeee; }
:root[data-theme="dark"] .login-error,:root[data-theme="dark"] .draft-status.failed { color:#efb591; }
:root[data-theme="dark"] .mobile-nav { background:#211c2b; border-color:var(--line); }
:root[data-theme="dark"] .mobile-nav .nav-link { color:#b9a4cd; }
:root[data-theme="dark"] .mobile-nav .nav-link.active,
:root[data-theme="dark"] .mobile-nav .nav-link.active .icon { color:#d4b5ff; }
:root[data-theme="dark"] .mobile-brand .brand-name { color:#f1e6ff; }
:root[data-theme="dark"] .mobile-brand .brand-name>span { color:#bda5d4; }
:root[data-theme="dark"] .copy-dialog { background:var(--surface); border-color:#64506e; color:var(--ink); }
:root[data-theme="dark"] .copy-dialog p { color:var(--text-secondary); }
:root[data-theme="dark"] .copy-dialog textarea { background:var(--field); border-color:#574562; color:#e0c8ed; }
@media(max-width:560px) {
  .topbar-right { gap:10px; }
  .theme-toggle { width:38px; height:38px; border-radius:11px; }
  .login-theme { top:18px; right:18px; }
  .login-form-wrap { padding-top:62px; }
  .account-theme { align-items:flex-start; flex-direction:column; gap:9px; }
  .account-theme select { max-width:none; width:100%; }
}

@media(max-width:560px) { .code-input,.blank-field input,.blank-field select { font-size:16px; } }

/* Curriculum: compact catalogue plus a focused reading view for each lesson. */
.catalog-counts { margin:9px 0 0; color:var(--text-secondary); font-size:.74rem; line-height:1.65; }
.catalog-controls { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:15px; margin-bottom:13px; }
.catalog-controls label { display:grid; gap:8px; color:var(--text-secondary); font-size:.73rem; min-width:0; }
.catalog-controls input,.catalog-controls select { width:100%; min-width:0; border:1px solid var(--line);
  border-radius:10px; background:var(--surface); color:var(--ink); padding:13px 14px; min-height:46px; font-size:.84rem; }
.catalog-controls input::placeholder { color:var(--text-caption); }
.catalog-results-row { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:20px; }
.catalog-results-row>p { margin:0; color:var(--text-secondary); font-size:.68rem; line-height:1.65; }
.catalog-results-row .text-button { flex-shrink:0; font-size:.7rem; padding:7px 0; }
.catalog-results-row [hidden] { display:none; }
.catalog-empty { grid-column:1/-1; padding:30px; }
.catalog-empty h3 { margin-bottom:10px; }
.catalog-empty p { color:var(--text-secondary); margin-bottom:0; }
.lesson-open { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:.73rem;
  line-height:1.6; color:#73538c; background:#f4eefb; border-radius:8px; padding:12px; margin-bottom:7px; }
.lesson-open:hover { background:#ebe0f8; }
.lesson-page-heading { max-width:960px; }
.lesson-page-layout { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(260px,.8fr); gap:22px; align-items:start; }
.lesson-notes.panel { padding:0; }
.lesson-notes>summary { display:flex; align-items:center; justify-content:space-between; list-style:none;
  gap:15px; padding:23px 25px; font-weight:650; font-size:1rem; cursor:pointer; border-radius:var(--radius); }
.lesson-notes>summary::-webkit-details-marker { display:none; }
.notes-toggle { color:var(--purple); font-size:1.25rem; line-height:1; }
.lesson-notes[open] .notes-toggle { transform:rotate(180deg); }
.lesson-notes-body { padding:0 25px 25px; }
.lesson-introduction { white-space:pre-wrap; overflow-wrap:anywhere; color:var(--text-secondary); font-size:.9rem; line-height:1.9; }
.learning-objectives { border-top:1px solid var(--line); margin-top:22px; padding-top:20px; }
.learning-objectives h2 { font-size:.9rem; letter-spacing:-.02em; }
.learning-objectives ul { padding-left:19px; margin:12px 0 0; color:var(--text-secondary); font-size:.83rem; line-height:1.8; }
.learning-objectives li+li { margin-top:7px; }
.lesson-doc-link { display:inline-flex; align-items:center; gap:10px; font-size:.8rem; color:#73538c; line-height:1.7; margin-top:24px; }
.lesson-reading-note { border-top:1px solid var(--line); padding-top:16px; margin:20px 0 0; font-size:.7rem; line-height:1.8; color:var(--text-caption); }
.lesson-task-panel .panel-heading { margin-bottom:18px; }
.lesson-task-panel .task-row { padding:15px 0; }
.lesson-task-panel .task-list li+li { border-top:1px solid var(--line); }
.lesson-continue { width:100%; margin-bottom:14px; font-size:.8rem; }
:root[data-theme="dark"] .lesson-open { background:#35283f; color:#d7b9f2; }
:root[data-theme="dark"] .lesson-open:hover { background:#44304f; }
:root[data-theme="dark"] .lesson-doc-link { color:#d6b9f5; }
@media(max-width:1000px) { .lesson-page-layout { grid-template-columns:1fr; } }
@media(max-width:560px) {
  .catalog-counts { font-size:.65rem; }
  .catalog-controls { grid-template-columns:1fr; gap:13px; margin-bottom:10px; }
  .catalog-controls label { font-size:.74rem; }
  .catalog-controls input,.catalog-controls select { font-size:16px; padding:12px; }
  .catalog-results-row { align-items:flex-start; gap:12px; }
  .catalog-results-row>p { font-size:.62rem; max-width:195px; }
  .catalog-results-row .text-button { font-size:.65rem; padding:0; max-width:85px; text-align:right; }
  .lesson-open { font-size:.76rem; padding:13px; }
  .lesson-notes>summary { padding:21px; font-size:1rem; }
  .lesson-notes-body { padding:0 21px 22px; }
  .lesson-introduction { font-size:.9rem; line-height:1.85; }
  .lesson-page-layout { gap:17px; }
  .lesson-task-panel { padding:23px 21px; }
  .lesson-task-panel .task-row-copy strong { font-size:.85rem; }
  .lesson-task-panel .task-row-copy small { font-size:.7rem; }
  .lesson-doc-link { font-size:.82rem; }
  .lesson-reading-note { font-size:.73rem; }
}

.curriculum-release { margin:0 0 28px; border:1px solid #dfdfca; background:#f1f3e8; color:#566443; border-radius:12px; padding:17px 20px; font-size:.79rem; line-height:1.7; }
.curriculum-release strong { font-weight:600; }
.curriculum-release p { margin:4px 0 0; font-size:.75rem; }
:root[data-theme="dark"] .curriculum-release { background:#293124; border-color:#455239; color:#d0dcba; }
@media(max-width:560px) { .curriculum-release { font-size:.78rem; padding:17px; } .curriculum-release p { font-size:.73rem; } }
/* Long API identifiers and lesson titles must wrap even on 320px displays. */
.lesson summary>span:first-child { min-width:0; overflow-wrap:anywhere; }
.learning-objectives li,.lesson-page-heading h1 { overflow-wrap:anywhere; }
