:root{color:#172026;background:#f5f7f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100dvh;background:#f5f7f8;-webkit-text-size-adjust:100%}#root{min-height:100dvh}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.app-shell{display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr);min-height:100dvh}.sidebar{position:sticky;top:0;height:100dvh;overflow:auto;overscroll-behavior:contain;border-right:1px solid #d9e1e5;background:#fff}.sidebar__header{padding:24px 22px 18px;border-bottom:1px solid #e6ecef}.sidebar__header h1{margin:6px 0 0;font-size:24px;line-height:1.2}.sidebar__current{margin:8px 0 0;color:#607681;font-size:13px;font-weight:700}.sidebar__toggle{display:none;min-height:38px;align-items:center;justify-content:center;border:1px solid #cbd8dd;border-radius:8px;background:#f7fafb;padding:0 12px;color:#24343c;font-weight:700}.eyebrow{margin:0;color:#58717d;font-size:12px;font-weight:700;letter-spacing:0;text-transform:uppercase}.block-list{padding:14px 12px 28px}.block-list__group{margin-bottom:18px}.block-list__group h2{margin:0 8px 8px;color:#425864;font-size:13px;line-height:1.35}.topic-list{display:grid;gap:4px}.topic-button{display:grid;grid-template-columns:36px minmax(0,1fr) 18px;align-items:center;width:100%;min-height:42px;padding:7px 8px;border:1px solid transparent;border-radius:8px;background:transparent;color:#24343c;text-align:left}.topic-button:hover{background:#f1f6f6}.topic-button--active{border-color:#7ab7af;background:#e8f5f3}.topic-button__number{display:inline-grid;width:28px;height:28px;place-items:center;border-radius:50%;background:#eef2f3;color:#415763;font-size:12px;font-weight:700}.topic-button__title{overflow:hidden;font-size:14px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.topic-button__status{color:#9aa9af;font-weight:700;text-align:right}.topic-button__status--done{color:#16836f}.main-area{display:grid;align-content:start;gap:18px;min-width:0;padding:24px}.progress-panel,.mode-tabs,.theory-view,.quiz-card,.tool-view,.complete-view,.empty-state{width:min(100%,1040px);border:1px solid #dfe7ea;border-radius:8px;background:#fff;box-shadow:0 10px 28px #1d30380f}.progress-panel{display:grid;grid-template-columns:minmax(178px,230px) 110px minmax(140px,1fr) minmax(260px,420px) auto;align-items:center;gap:16px;padding:16px 18px}.student-switcher{display:grid;gap:8px}.student-switcher>span{color:#607681;font-size:12px;font-weight:700;text-transform:uppercase}.student-switcher__buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.student-chip{display:inline-flex;min-height:38px;align-items:center;justify-content:center;gap:7px;border:1px solid #cbd8dd;border-radius:8px;background:#fff;padding:0 10px;color:#344a55;font-weight:700;transition:background .18s ease,border-color .18s ease,color .18s ease}.student-chip span{display:inline-grid;width:24px;height:24px;place-items:center;border-radius:50%;background:#eef2f3;color:#425864;font-size:12px}.student-chip:hover,.student-chip--active{border-color:#16836f;background:#e8f5f3;color:#126f5e}.student-chip--active span{background:#16836f;color:#fff}.progress-panel strong{display:block;margin-top:3px;font-size:28px}.progress-bar{height:10px;overflow:hidden;border-radius:999px;background:#e8eef1}.progress-bar span{display:block;height:100%;border-radius:inherit;background:#16836f}.progress-panel dl{display:grid;grid-template-columns:repeat(3,minmax(80px,1fr));gap:10px;margin:0}.progress-panel dt{color:#607681;font-size:12px}.progress-panel dd{margin:2px 0 0;font-weight:700}.theory-view,.quiz-card,.complete-view,.empty-state{padding:24px}.content-header{padding-bottom:18px;border-bottom:1px solid #e6ecef}.content-header h2,.quiz-card__header h2,.complete-view h2{margin:6px 0 0;font-size:26px;line-height:1.25;overflow-wrap:anywhere}.markdown-body{padding-top:10px;color:#233139;line-height:1.65}.markdown-body h1,.markdown-body h2,.markdown-body h3{margin:18px 0 8px;line-height:1.25}.markdown-body h1{font-size:24px}.markdown-body h2{font-size:21px}.markdown-body h3{font-size:17px}.markdown-body p{margin:10px 0}.markdown-body ul{margin:10px 0 10px 20px;padding:0}.markdown-body code{border-radius:5px;background:#eef3f4;padding:2px 5px;color:#5a2f75}.action-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.button{display:inline-flex;min-height:42px;align-items:center;justify-content:center;border:1px solid #126f5e;border-radius:8px;background:#16836f;padding:0 16px;color:#fff;font-weight:700;text-align:center}.button:hover{background:#126f5e}.button--secondary{border-color:#b7c7ce;background:#f7fafb;color:#24343c}.button--secondary:hover,.button--ghost:hover{background:#edf4f5}.button--ghost{border-color:#cbd8dd;background:transparent;color:#24343c}.quiz-card__header{padding-bottom:18px}.quiz-card__body{display:grid;gap:14px}.answer-list{display:grid;gap:10px}.answer-option,.text-answer,.matching-row{display:grid;gap:8px;border:1px solid #dfe7ea;border-radius:8px;background:#fbfcfc;padding:12px}.answer-option{grid-template-columns:22px minmax(0,1fr);align-items:start}.answer-option input{margin-top:4px}.text-answer span,.matching-row>span{color:#4e6570;font-size:13px;font-weight:700}.text-answer input,.matching-row select{width:100%;min-height:42px;border:1px solid #cbd8dd;border-radius:8px;background:#fff;padding:0 12px}.matching-list{display:grid;gap:10px}.feedback{margin-top:18px;border-radius:8px;padding:14px}.feedback p{margin:8px 0 0}.feedback span{font-weight:700}.feedback--wrong{border:1px solid #e7aaa2;background:#fff3f1}.feedback--correct{border:1px solid #9fd0bb;background:#eef9f4}.complete-view p{max-width:720px;line-height:1.6}.mode-tabs{display:flex;gap:8px;padding:8px}.mode-tab{min-height:38px;border:1px solid transparent;border-radius:8px;background:transparent;padding:0 14px;color:#425864;font-weight:700}.mode-tab:hover,.mode-tab--active{border-color:#7ab7af;background:#e8f5f3;color:#143f37}.tool-view{padding:24px}.filter-row{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.chip{min-height:34px;border:1px solid #cbd8dd;border-radius:999px;background:#fff;padding:0 12px;color:#344a55;font-weight:700}.chip:hover,.chip--active{border-color:#16836f;background:#e8f5f3;color:#126f5e}.term-card,.trainer-panel{border-top:1px solid #e6ecef;padding-top:18px}.term-card__topline{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;color:#607681;font-size:13px;font-weight:700}.term-card h3,.trainer-panel h3{margin:10px 0 14px;font-size:24px;line-height:1.25}.term-card dl{display:grid;gap:12px;margin:0 0 16px}.term-card dt{color:#607681;font-size:13px;font-weight:700}.term-card dd{margin:4px 0 0;line-height:1.55}.trainer-panel__summary p,.muted{color:#4e6570;line-height:1.6}.interactive-tool{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr)) minmax(240px,1.2fr);gap:12px;align-items:end;margin:18px 0}.interactive-tool--wide{grid-template-columns:minmax(220px,320px) minmax(0,1fr)}.interactive-tool label{display:grid;gap:6px}.interactive-tool label span{color:#4e6570;font-size:13px;font-weight:700}.interactive-tool input,.interactive-tool select{width:100%;min-height:42px;border:1px solid #cbd8dd;border-radius:8px;background:#fff;padding:0 12px}.result-box,.sample-solution{border:1px solid #dfe7ea;border-radius:8px;background:#fbfcfc;padding:14px}.result-box--error{border-color:#e7aaa2;background:#fff3f1}.result-row{display:flex;justify-content:space-between;gap:14px;padding:7px 0;border-bottom:1px solid #edf2f4}.result-row:last-child{border-bottom:0}.result-row span{color:#607681}.trainer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}.trainer-grid section,.formula-list{border-top:1px solid #e6ecef;padding-top:14px}.trainer-grid h4,.formula-list h4,.sample-solution h4{margin:0 0 10px;font-size:16px}.trainer-grid ol,.trainer-grid ul,.result-box ul{margin:0;padding-left:20px;line-height:1.55}.formula-list{display:grid;gap:10px;margin-top:18px}.formula-item{display:grid;gap:6px}.formula-item code,.sample-solution pre{overflow:auto;border-radius:8px;background:#eef3f4;padding:10px}.sample-solution pre{margin:0;line-height:1.5}@media(max-width:1180px)and (min-width:921px){.progress-panel{grid-template-columns:repeat(2,minmax(0,1fr))}.progress-bar,.progress-panel dl{grid-column:1 / -1}}@media(max-width:920px){.app-shell{grid-template-columns:1fr}.sidebar{position:sticky;z-index:10;height:auto;max-height:72dvh;border-right:0;border-bottom:1px solid #d9e1e5}.sidebar__header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:16px}.sidebar__header h1{font-size:21px}.sidebar__toggle{display:inline-flex}.block-list{display:none;max-height:50dvh;overflow:auto;padding:8px 10px 16px}.block-list--open{display:block}.topic-button__title{white-space:normal}.main-area{padding:16px}.progress-panel,.interactive-tool,.interactive-tool--wide,.trainer-grid{grid-template-columns:1fr}.progress-panel dl{grid-template-columns:repeat(3,1fr)}}@media(max-width:560px){.main-area{gap:12px;padding:10px}.sidebar{max-height:78dvh}.sidebar__header{grid-template-columns:1fr}.sidebar__toggle{width:100%}.progress-panel,.mode-tabs,.theory-view,.quiz-card,.tool-view,.complete-view,.empty-state{border-radius:6px}.theory-view,.quiz-card,.complete-view,.empty-state,.tool-view{padding:16px}.mode-tabs{overflow-x:auto}.mode-tab{flex:0 0 auto}.student-switcher__buttons{grid-template-columns:1fr 1fr}.progress-panel dl{grid-template-columns:1fr}.content-header h2,.quiz-card__header h2,.complete-view h2{font-size:22px}.action-row{display:grid}.action-row .button{width:100%}.answer-option{grid-template-columns:20px minmax(0,1fr);padding:12px 10px}}
