*{box-sizing:border-box}html,body{margin:0;padding:0}body{font-family:Inter,Arial,Helvetica,sans-serif;background:#f8f5ef;color:#10213d;overflow:hidden}.app-shell{min-height:100vh}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;background:#fff;border-bottom:1px solid #e8ebf2;position:sticky;top:0;z-index:50}.brand-wrap{display:flex;align-items:center;gap:12px;min-width:230px}.brand-icon{width:44px;height:44px;border-radius:10px;background:linear-gradient(180deg,#22c07f,#159c68);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:16px;box-shadow:0 10px 24px rgba(34,192,127,.2)}.brand-text strong{font-size:22px;letter-spacing:-.03em}.brand-text span{color:#22b77a}.top-progress{display:flex;align-items:center;gap:14px;flex:1;max-width:560px;margin:0 18px}.top-progress-label{font-weight:700;color:#31425f;white-space:nowrap}.top-progress-track{height:8px;background:#edf0f5;border-radius:999px;overflow:hidden;flex:1;min-width:160px}.top-progress-track span{display:block;height:100%;width:0;background:linear-gradient(90deg,#1db975,#28d08a);border-radius:999px;transition:width .25s}.top-progress-count{white-space:nowrap;color:#60718f}.top-progress-count strong{color:#24324e}.top-actions{display:flex;align-items:center;gap:10px}.icon-button{width:38px;height:38px;border-radius:50%;border:1px solid #e8edf3;background:#f6fbf9;color:#4c5b78;font-size:18px;cursor:pointer}.course-button{height:46px;padding:0 18px;border:0;border-radius:16px;background:#eaf6f1;color:#284041;font-weight:800;font-size:13px;display:flex;align-items:center;gap:12px;cursor:pointer}.layout{display:grid;grid-template-columns:286px minmax(0,1fr);height:calc(100vh - 72px);min-height:0;transition:grid-template-columns .25s ease}.sidebar{background:#fff;border-right:1px solid #e8ebf2;padding:18px 14px;overflow-y:auto;overflow-x:hidden;height:100%;transition:transform .25s ease,opacity .25s ease}.sidebar-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.sidebar-header h2{margin:0;font-size:18px;letter-spacing:-.03em}.close-sidebar{width:34px;height:34px;border-radius:10px;border:1px solid #e8ebf2;background:#fff;font-size:16px;cursor:pointer}.module{margin-bottom:10px;border-radius:18px}.module-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border:0;background:transparent;border-radius:18px;cursor:pointer}.module.open .module-toggle{background:#eef9f3}.module-toggle-left{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:4px}.module-toggle-title{font-weight:800;font-size:13px;color:#1d2943}.module-toggle-left small{color:#6b7c97;font-size:10px}.module-chevron{font-size:18px;color:#5e6c86;transition:transform .2s}.module.open .module-chevron{transform:rotate(180deg)}.module-lessons{display:none;padding:2px 8px 8px 10px}.module.open .module-lessons{display:block}.module-empty{padding:10px 10px 2px;color:#7988a4;font-size:14px}.lesson-link{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;color:#31425f;text-decoration:none;font-size:14px;margin-bottom:2px}.lesson-link:hover{background:#f6faf8}.lesson-link.current{background:#dff3e8;color:#0e8b59;font-weight:700}.lesson-status{width:12px;height:12px;border-radius:50%;border:2px solid #c6cfde;display:flex;align-items:center;justify-content:center;flex:none;color:#fff;font-size:10px}.lesson-link.completed .lesson-status{background:#19b370;border-color:#19b370}.lesson-link.current .lesson-status{border-color:#19b370;background:#fff}.lesson-title{line-height:1.35}.page-area{position:relative;overflow-y:auto;overflow-x:hidden;height:100%;background:#f8f5ef}.page-inner{position:relative;max-width:1120px;margin:0 auto;padding:28px 30px 32px;z-index:2}.page-bg-shape{position:absolute;background:#f5ebd8;border-radius:60px;opacity:.7;filter:blur(.2px)}.page-bg-shape.left{left:-60px;top:58px;width:210px;height:260px;border-radius:44% 56% 52% 48%/43% 44% 56% 57%}.page-bg-shape.right{right:40px;top:66px;width:240px;height:240px;border-radius:44% 56% 52% 48%/43% 44% 56% 57%}.page-bg-leaf{position:absolute;width:110px;height:240px;opacity:.85}.page-bg-leaf:before,.page-bg-leaf:after{content:"";position:absolute;background:linear-gradient(180deg,#8bc192,#6ba77d);border-radius:70% 10% 70% 10%/70% 10% 70% 10%;width:52px;height:110px}.page-bg-leaf:before{left:10px;top:18px;transform:rotate(-18deg)}.page-bg-leaf:after{left:48px;top:108px;transform:rotate(18deg)}.page-bg-leaf.leaf-left{left:10px;bottom:60px}.page-bg-leaf.leaf-right{right:34px;top:132px}.eyebrow-row{display:flex;align-items:center;gap:12px;margin-bottom:10px}.pill{display:inline-flex;align-items:center;justify-content:center;padding:7px 12px;border-radius:999px;font-weight:800;font-size:14px}.lesson-pill{background:#daf2e7;color:#0c975d}.eyebrow-text{font-size:14px;font-weight:700;color:#6e7f99;letter-spacing:.02em}.page-title{font-size:52px;line-height:1;letter-spacing:-.06em;margin:0 0 20px;color:#07173a;max-width:920px;user-select:none}.page-title::selection{background:transparent;color:#07173a}.step-bar-card{background:#fff;border-radius:22px;padding:16px 22px;margin-bottom:20px;max-width:1240px;box-shadow:0 14px 38px rgba(24,44,73,.05)}.step-bar-top{display:flex;align-items:center;justify-content:space-between;font-size:14px;color:#596b88;margin-bottom:12px}.step-bar-top strong{font-size:14px;color:#21314c}.step-dots{display:flex;align-items:center;gap:14px}.step-dot{height:8px;flex:1;background:#dbe1ea;border-radius:999px;position:relative}.step-dot:before{content:"";position:absolute;left:50%;top:50%;width:12px;height:12px;border-radius:50%;background:#dbe1ea;transform:translate(-50%,-50%)}.step-dot.filled{background:#cfe7da}.step-dot.filled:before{background:#17b26b}.lesson-card{background:#fff;border-radius:22px;padding:24px 28px;box-shadow:0 18px 46px rgba(22,40,69,.08);max-width:1240px;position:relative}.card-top-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:12px}.card-label{display:inline-flex;align-items:center;gap:10px;padding:8px 12px;border-radius:999px;background:#eef4ff;color:#4656e0;font-weight:700;font-size:13px}.card-label-warm{background:#fff2de;color:#eb8400}.card-type{display:inline-flex;align-items:center;justify-content:center;min-width:58px;height:38px;background:#eef0ff;color:#4253df;font-weight:800;font-size:14px;border-radius:12px}.card-title{margin:0 0 10px;font-size:38px;line-height:1.08;letter-spacing:-.05em;color:#07173a}.card-text{font-size:18px;line-height:1.5;color:#46587a;max-width:980px;margin:0 0 18px}.code-block-wrap{position:relative;margin-bottom:16px}.code-block{margin:0;background:radial-gradient(circle at left,#10213d,#081127);color:#33ff33;padding:22px 22px;border-radius:24px;font-size:20px;line-height:1.5;overflow:auto;font-family:Consolas,Monaco,'Courier New',monospace;min-height:84px}.code-block code{white-space:pre-wrap}.copy-button{position:absolute;right:12px;top:12px;height:42px;padding:0 16px;border:0;border-radius:16px;background:rgba(255,255,255,.14);color:#fff;font-size:14px;font-weight:700;backdrop-filter:blur(6px);cursor:pointer}.info-box{display:flex;align-items:center;gap:10px;background:#f1f4fe;border-radius:14px;padding:12px 14px;font-size:15px;color:#5b6d8a;margin-bottom:28px}.info-icon{width:22px;height:22px;border-radius:50%;background:#5377ff;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;flex:none}.card-footer-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:18px;border-top:1px solid #e8edf3;flex-wrap:wrap}.card-footer-right{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.nav-button{display:inline-flex;align-items:center;justify-content:center;min-height:62px;padding:0 20px;border-radius:18px;text-decoration:none;font-size:15px;font-weight:800}.nav-button-light{background:#fff;border:1px solid #dfe6ef;color:#62718b}.nav-button-primary{background:linear-gradient(180deg,#19c07d,#12a867);color:#fff;border:0;box-shadow:0 14px 28px rgba(18,168,103,.22)}.nav-button-secondary{background:#ebf7f1;color:#137a4f;border:0;cursor:pointer}.nav-button-assignment{background:#fff1d9;color:#d97706;border:0;cursor:pointer}.nav-button.disabled{opacity:.55;pointer-events:none}.placeholder-card .card-title{font-size:34px}.placeholder-note{background:#f6f8fc;border:1px dashed #d2dbea;color:#64758e;padding:14px 16px;border-radius:14px;font-size:15px;margin-bottom:28px}.assignment-modal{position:fixed;inset:0;background:#fff;display:none;align-items:stretch;justify-content:stretch;padding:0;z-index:9998}.assignment-modal.open{display:flex}.assignment-window{width:100vw;height:100vh;background:#fff;display:flex;flex-direction:column;overflow:hidden}.assignment-modal-header{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid #e8edf3}.assignment-modal-header strong{display:block;font-size:22px;color:#10213d}.assignment-modal-header span{color:#70809b}.assignment-modal-body{flex:1;display:flex;flex-direction:column;background:#f8f5ef;min-height:0}.assignment-content{flex:1;display:flex;flex-direction:column;justify-content:center;max-width:1100px;width:100%;margin:0 auto;padding:42px}.assignment-modal-label{display:inline-flex;align-self:flex-start;padding:10px 14px;border-radius:999px;background:#fff1d9;color:#d97706;font-weight:800;font-size:15px;margin-bottom:18px}.assignment-modal-code{margin:0;background:#081127;color:#33ff33;padding:34px 34px;border-radius:22px;font-size:24px;line-height:1.7;overflow:auto;font-family:Consolas,Monaco,'Courier New',monospace;box-shadow:0 18px 46px rgba(22,40,69,.14)}.assignment-modal-code code{white-space:pre-wrap}.assignment-modal-footer{display:flex;justify-content:flex-end;padding:18px 24px;border-top:1px solid #e8edf3;background:#fff}.playground-modal{position:fixed;inset:0;background:#ffffff;display:none;align-items:stretch;justify-content:stretch;padding:0;z-index:9999}.playground-modal.open{display:flex}.playground-window{width:100vw;height:100vh;background:#fff;border-radius:0;overflow:hidden;box-shadow:none}.playground-header{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid #e8edf3}.playground-header strong{display:block;font-size:22px}.playground-header span{color:#70809b}.playground-close-x{width:34px;height:34px;border-radius:12px;border:1px solid #dfe6ef;background:#fff;cursor:pointer;font-size:18px}.playground-body{display:grid;grid-template-columns:1.2fr 1fr;height:calc(100% - 76px)}.editor-panel,.output-panel{display:flex;flex-direction:column;min-width:0}.editor-panel{background:#081127;color:#fff}.panel-title{padding:18px 22px;border-bottom:1px solid rgba(255,255,255,.12);display:flex;flex-direction:column;gap:4px}.editor-panel .panel-title{color:#fff}.editor-panel .panel-title small{color:#a6b3cc}.output-panel .panel-title{color:#1a2740}.output-panel .panel-title small{color:#7a8aa4}.editor-panel textarea{flex:1;width:100%;background:#081127;color:#33ff33;border:0;resize:none;padding:24px;font:20px/1.6 Consolas,Monaco,'Courier New',monospace;outline:none;caret-color:#33ff33}.php-output{flex:1;border:0;background:#fff;min-height:0;overflow:auto}.output-text{margin:0;padding:24px;white-space:pre-wrap;word-break:break-word;font:18px/1.55 Consolas,Monaco,'Courier New',monospace;color:#111827}.run-message.warning{color:#f5b942}.panel-footer{padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #e8edf3}.editor-panel .panel-footer{border-top:1px solid rgba(255,255,255,.12)}.run-message{font-size:14px;color:#a6b3cc}.run-message.success{color:#76e3a7}.run-message.error{color:#ffb0b0}.run-button,.close-button{height:50px;padding:0 18px;border-radius:10px;border:0;font-size:16px;font-weight:700;cursor:pointer}.run-button{background:#19c07d;color:#fff}.close-button{background:#eef3fa;color:#344661}.modal-open{overflow:hidden}.sidebar-hidden .layout{grid-template-columns:0 minmax(0,1fr)}.sidebar-hidden .sidebar{transform:translateX(-100%);opacity:0;padding-left:0;padding-right:0;border-right:0}.sidebar-hidden .page-inner{max-width:1240px;padding-left:40px;padding-right:40px}.sidebar-hidden .page-title{max-width:none}.sidebar-hidden .step-bar-card,.sidebar-hidden .lesson-card{max-width:none}.course-button span{white-space:nowrap}@media (max-width:1100px){body{overflow:auto}.topbar{height:auto;flex-wrap:wrap;gap:16px;padding:16px 18px}.brand-wrap{min-width:auto}.top-progress{order:3;max-width:none;width:100%;margin:0}.layout{grid-template-columns:minmax(0,1fr);height:auto;min-height:calc(100vh - 86px)}.sidebar{position:fixed;inset:86px auto 0 0;height:calc(100vh - 86px);width:320px;max-width:88vw;z-index:60;box-shadow:12px 0 24px rgba(7,23,58,.12)}body:not(.sidebar-hidden) .sidebar{transform:translateX(0)}body.sidebar-hidden .sidebar{transform:translateX(-100%)}.page-area{height:auto;overflow:visible}.page-inner{padding:26px 18px 30px}.page-title{font-size:48px}.card-title{font-size:40px}.card-text{font-size:20px}.code-block{font-size:22px}.playground-body{grid-template-columns:1fr;height:auto}.playground-window{height:auto;max-height:88vh;overflow:auto}}@media (max-width:760px){.top-actions{width:100%;justify-content:flex-end}.course-button{height:48px;padding:0 16px;font-size:16px}.brand-text strong{font-size:24px}.eyebrow-row{flex-wrap:wrap}.step-bar-top,.card-footer-nav{flex-direction:column;align-items:flex-start}.card-footer-right{width:100%}.nav-button,.nav-button-secondary{width:100%}.lesson-card{padding:26px 20px}.step-bar-card{padding:18px 18px}.page-title{font-size:42px}.card-title{font-size:34px}.card-text{font-size:18px}.copy-button{position:static;margin-top:12px;width:100%}.code-block{padding:24px 20px}.playground-body{grid-template-columns:1fr;height:calc(100vh - 76px)}}
.assignment-runner-modal .editor-panel textarea{color:#33ff33!important;caret-color:#33ff33!important}.assignment-runner-modal .editor-panel textarea::selection{background:#21405f;color:#33ff33}

.runner-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.solution-button{height:50px;padding:0 18px;border-radius:10px;border:1px solid rgba(255,255,255,.22);background:#17243d;color:#fff;font-size:15px;font-weight:700;cursor:pointer}
.solution-button:hover{background:#213150}
.solution-button:disabled{opacity:.65;cursor:default}
@media (max-width:760px){.runner-actions{width:100%;flex-direction:column}.solution-button,.runner-actions .run-button{width:100%}}

.rich-lesson-card{max-width:1180px}
.rich-lesson{max-width:980px}
.rich-section{margin:0 0 26px}
.rich-section:last-child{margin-bottom:0}
.rich-section h3{margin:0 0 10px;color:#10213d;font-size:24px;line-height:1.2;letter-spacing:-.025em}
.rich-section p{margin:0 0 12px;color:#46587a;font-size:17px;line-height:1.7}
.rich-section ul{margin:10px 0 0;padding-left:24px;color:#46587a;font-size:17px;line-height:1.65}
.rich-section li{margin-bottom:5px}
.rich-code-wrap{margin:16px 0}
.rich-output{display:flex;flex-direction:column;gap:8px;background:#f5f7fb;border:1px solid #e3e9f2;border-radius:14px;padding:14px 16px;margin-top:14px}
.rich-output span{color:#7a8aa4;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.rich-output strong{color:#10213d;font-size:18px}
.rich-callout{display:flex;align-items:flex-start;gap:12px;background:#eef3ff;border-radius:15px;padding:16px 18px;color:#405675;font-size:16px;line-height:1.55}
.rich-callout .info-icon{margin-top:1px}
@media (max-width:760px){.rich-section h3{font-size:21px}.rich-section p,.rich-section ul{font-size:16px}}

.is-hidden{display:none!important}
.html-preview{flex:1;width:100%;min-height:0;border:0;background:#fff}
.assignment-runner-modal .output-panel{background:#fff}
