:root{--navy:#111936;--navy2:#1a2549;--purple:#7c62ff;--purple2:#a68bff;--teal:#0eb7b4;--text:#1a2540;--sub:#73809a;--bg:#f2f5fb;--line:#e8ecf5;--white:#fff;--shadow:0 12px 30px rgba(24,38,75,.055);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.47;cursor:not-allowed}button:focus-visible,select:focus-visible,textarea:focus-visible,.terminal:focus-visible{outline:3px solid #a78bfa;outline-offset:2px}h1,h2,h3,p{margin-top:0}h2{font-size:15px;letter-spacing:-.15px;margin:0 0 6px}p{line-height:1.6}.app-shell{display:flex;min-height:100vh}.sidebar{width:273px;background:linear-gradient(175deg,#121a37,#111831 65%,#181c3f);color:#fff;flex:none;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:25px 17px 18px;overflow:hidden}.brand{display:flex;gap:10px;align-items:center;padding:0 8px 25px;border-bottom:1px solid #ffffff1d}.brand-symbol{width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#7960fc,#b26cff);display:grid;place-items:center;font-size:23px;box-shadow:0 8px 20px #7b5dff4a}.brand-name{font-weight:900;letter-spacing:1px;font-size:21px}.brand-name span,.page-footer span span{color:#aa95ff}.brand-caption{font-size:10px;color:#9aa4c3;letter-spacing:.4px}.sidebar-section{padding:25px 9px 16px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.35px;color:#8e80fa}.sidebar-section h2{font-size:17px;line-height:1.35;color:white;margin-top:9px}.sidebar-section p{font-size:11px;color:#a6b0cc;margin:0}.sidebar-controls{padding:0 5px 12px}.sidebar-controls select{width:100%;border:1px solid #ffffff24;border-radius:9px;padding:9px 12px;background:#ffffff0d;color:#ecedff}.sidebar-controls option{background:#202744}.lesson-nav{overflow:auto;flex:1;margin-right:-10px;padding-right:9px;scrollbar-width:thin;scrollbar-color:#4b5278 transparent}.nav-group-label{font-size:10px;font-weight:800;color:#8c96b6;letter-spacing:1.4px;padding:16px 9px 8px}.nav-lesson{display:flex;gap:10px;align-items:center;text-align:left;width:100%;padding:10px 10px;margin:2px 0;border:0;background:transparent;color:#b1b9d1;border-radius:9px;line-height:1.25;font-size:12px}.nav-lesson:hover{background:#ffffff0d}.nav-lesson.current{color:#fff;background:#7156f9;box-shadow:0 6px 13px #674ceb35}.nav-lesson.done:not(.current){color:#e9ecfc}.nav-lesson-number{display:grid;place-items:center;min-width:25px;height:25px;border-radius:7px;background:#ffffff14;font-size:10px;font-weight:800}.nav-lesson.current .nav-lesson-number{background:#ffffff31}.nav-lesson-title{flex:1}.nav-check{color:#75e2cb;font-size:14px}.sidebar-bottom{padding:13px 6px 0;border-top:1px solid #ffffff1a}.mini-stats strong{display:block;font-size:14px}.mini-stats span{font-size:11px;color:#9da7c3}.progress-track{height:6px;border-radius:99px;background:#303857;margin:11px 0}.progress-fill{background:linear-gradient(90deg,#37caca,#a18dff);height:100%;border-radius:99px;transition:width .3s}.text-button{border:0;background:transparent;color:#b7adff;padding:9px 0;font-size:11px}.main-area{min-width:0;flex:1}.topbar{height:67px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e6eaf2;padding:0 28px;background:#fff}.crumb{font-size:10px;letter-spacing:1.1px;font-weight:800;color:#8b96ad}.crumb span{color:#cad1df;padding:0 9px}.top-actions{font-size:11px;color:#566683;display:flex;align-items:center;gap:7px}.online-dot{width:7px;height:7px;border-radius:50%;background:#1ecba1;box-shadow:0 0 0 4px #1ecba120}.about-btn{border:1px solid var(--line);border-radius:9px;background:#f9fbff;margin-left:12px;padding:8px 12px;color:#5e6a84;font-size:11px}.mobile-menu{display:none;background:transparent;border:0;font-size:22px}main{padding:24px 27px 12px;max-width:2000px;margin:auto}.hero{min-height:213px;background:linear-gradient(110deg,#182447 0%,#263263 60%,#49438f 100%);border-radius:16px;position:relative;color:#fff;padding:30px 36px;display:flex;justify-content:space-between;overflow:hidden;box-shadow:0 14px 35px #343d7335}.hero-left{position:relative;z-index:1;max-width:75%}.hero-kicker{display:flex;align-items:center;gap:11px;font-size:10px;font-weight:800;letter-spacing:.9px}.chip{background:#6555d4;color:#fff;border:1px solid #a599ff4d;padding:6px 11px;border-radius:6px}.muted{color:#b2b9df}.duration{color:#bbc6ea;padding-left:8px}.hero h1{font-size:clamp(27px,2.4vw,43px);margin:16px 0 5px;letter-spacing:-1px;line-height:1.15}.hero p{color:#d0d7f5;margin:0;font-size:14px}.hero-bottom{padding-top:24px;display:flex;align-items:center}.hero-idea{font-size:11px;color:#e1e4ff;background:#ffffff18;border:1px solid #ffffff17;border-radius:99px;padding:7px 13px;max-width:700px}.hero-art{width:280px;height:215px;position:absolute;right:30px;top:0}.art-circle{position:absolute;border:1px solid #ffffff24;border-radius:50%}.art-circle1{width:280px;height:280px;right:0;top:-52px}.art-circle2{width:205px;height:205px;right:37px;top:-14px}.art-robot{position:absolute;right:80px;top:53px;transform:rotate(-7deg)}.antenna{width:4px;height:23px;background:#8cd4fc;margin:auto;position:relative}.antenna:before{content:"";position:absolute;top:-6px;left:-4px;background:#ffbf74;width:12px;height:12px;border-radius:50%}.robot-head{width:98px;height:71px;border:7px solid #acbafe;border-radius:24px;background:#f0f4ff;display:flex;justify-content:space-evenly;align-items:center;box-shadow:0 9px 0 #455396}.robot-eye{background:#626bd9;width:18px;height:22px;border-radius:9px}.robot-body{border-radius:17px;background:#aab8fe;width:78px;height:46px;margin:13px auto;text-align:center;line-height:46px;font-size:14px;color:#29367c;font-weight:900}.orbit-label{position:absolute;background:#3f478e;border-radius:6px;border:1px solid #8b8efa55;padding:8px 9px;font-size:10px;font-weight:800}.orbit-label1{right:20px;top:69px;transform:rotate(12deg)}.orbit-label2{left:11px;bottom:45px;transform:rotate(-12deg)}.workspace{display:grid;grid-template-columns:minmax(215px,0.93fr) minmax(420px,2.15fr) minmax(295px,1.35fr);gap:17px;align-items:start;margin-top:24px}.left-column,.center-column,.right-column{min-width:0}.section-label{display:flex;align-items:center;gap:8px;color:#4e5e80;font-size:10px;font-weight:900;letter-spacing:1.25px;margin:0 0 12px;padding:0 3px;height:18px}.section-icon{color:#7b61ff;font-size:17px;letter-spacing:normal}.tiny-count{font-size:9px;color:#bbc3d3;margin-left:auto}.small-pill{font-size:9px;font-weight:700;letter-spacing:0;color:#8894ad;border:1px solid #e0e5ee;border-radius:9px;padding:4px 8px;margin-left:auto}.panel{background:var(--white);border-radius:12px;border:1px solid #e8ecf5;box-shadow:var(--shadow);margin-bottom:15px}.mission-panel{padding:23px 18px}.mission-panel h2{font-size:16px}.mission-panel>p{font-size:12px;color:#64718d;margin:0 0 20px}.mission-panel h3{font-size:12px;margin:0 0 14px}.steps-list{display:grid;gap:0}.step-item{display:flex;gap:9px;position:relative;padding-bottom:19px}.step-item:not(:last-child):before{position:absolute;content:"";width:1px;background:#e2e8f1;top:29px;bottom:1px;left:13px}.step-n{flex:none;width:27px;height:27px;border-radius:8px;background:#eef1ff;color:#7968f2;font-size:11px;font-weight:900;display:grid;place-items:center}.step-item:first-child .step-n{background:#785ef8;color:#fff}.step-body h4{font-size:11px;margin:2px 0 4px;font-weight:750}.step-body h4 em{font-style:normal;color:#a1acc2;font-size:10px;font-weight:500;float:right;margin-left:10px}.step-body p{font-size:11px;line-height:1.55;color:#75809a;margin:0}.insight{display:flex;gap:9px;background:#f1f8ff;border:1px solid #e1f0ff;border-radius:9px;padding:12px 10px;margin-top:1px}.insight b{font-size:11px;color:#3971a4}.insight p{font-size:11px;color:#53718d;margin:3px 0 0}.challenge-panel{padding:17px 18px;border-left:3px solid #8d7aff}.challenge-panel p{font-size:12px;color:#5e6983;margin:10px 0}.ghost-btn{border:0;background:transparent;color:#6553d7;font-size:11px;font-weight:800;padding:5px 0}.hint-text{background:#f3f1ff;border-radius:7px;padding:10px;font-size:11px!important}.board-panel,.simulator-panel,.test-panel,.parts-panel{padding:16px 17px}.panel-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.panel-top h2{font-size:14px;margin-bottom:3px}.panel-top p{font-size:10.5px;color:#929eb4;margin:0}.toggle-actions{display:flex;gap:5px;align-items:center}.small-btn,.outline-btn,.primary-soft{border:0;padding:9px 12px;border-radius:8px;font-size:11px;font-weight:800;background:#eeeaff;color:#6555de;white-space:nowrap}.small-btn.secondary,.outline-btn{background:white;border:1px solid #e3e7f0;color:#6c7a94}.small-btn:hover,.primary-soft:hover{background:#e4ddff}.circuit-scroller{margin:13px -7px 0;overflow-x:auto}.circuit-scroller svg{width:100%;min-width:780px;height:auto;aspect-ratio:1040/410;display:block;border-radius:10px;background:radial-gradient(circle at center,#f6f9ff 1px,transparent 1px) 0 0/15px 15px,#fbfcff;border:1px solid #eef2f8}.board-footer{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0 2px;align-items:center}.legend{font-size:9px;color:#8490a5;display:flex;align-items:center;gap:5px}.legend i{width:9px;height:9px;border-radius:3px}.legend-teal{background:#13b1a9}.legend-orange{background:#f59e42}.legend-grey{background:#7f899b}.inline-link{margin-left:auto;background:transparent;border:0;font-size:10px;color:#7968e6;font-weight:800}.wire-status{font-size:10px;color:#777fb2;margin-top:8px;min-height:14px}.wire-status.bad{color:#c65d48}.wire-status.good{color:#168c81}.terminal{cursor:pointer;outline:none}.terminal:hover .port-circle,.terminal.selected .port-circle{stroke:#5145b7;stroke-width:5;filter:drop-shadow(0 0 5px #8975ff)}.wire-path{fill:none;stroke-width:3;opacity:.9;pointer-events:none}.wire-path.selected-wire{stroke-width:4}.board-label{font-size:10px;font-weight:800;fill:#62708f}.pin-label{font-size:10px;fill:#e0ecff;font-weight:750;pointer-events:none}.port-label{font-size:12px;font-weight:750;fill:#44536d;pointer-events:none}.module-title{font-size:13px;font-weight:900;fill:#334669;pointer-events:none}.module-sub{font-size:10px;fill:#8290a9;pointer-events:none}.module-bg{fill:white;stroke:#d9e3f2;stroke-width:2}.simulator-panel canvas{width:100%;height:auto;border:1px solid #e8ecf4;border-radius:10px;background:#f7faff;display:block;margin-top:14px;aspect-ratio:1000/540}.live-badge{border-radius:99px;background:#f2f4f8;padding:6px 9px;color:#8893a6;font-size:9px;font-weight:800;white-space:nowrap}.live-badge.on{background:#ddfbf1;color:#12936e}.sensor-panel{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}.sensor-control{flex:1 1 155px;min-width:125px;border-radius:9px;padding:8px 10px;background:#f6f8fc;border:1px solid #ecf0f5}.sensor-control label{font-size:10px;font-weight:800;color:#667492;display:flex;justify-content:space-between;gap:10px;margin-bottom:7px}.sensor-control output{color:#5c50c6}.sensor-control input[type=range]{width:100%;accent-color:#7861fa;height:7px}.sensor-control button{padding:7px;border:1px solid #dfe4ee;background:white;border-radius:6px;font-size:11px;width:100%;color:#536282}.sensor-control button.active{background:#ece7ff;color:#6c55e2}.telemetry{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:11px}.telemetry-item{border-radius:7px;background:#f9faff;border:1px solid #edf1f7;padding:8px 7px}.telemetry-item strong{font-size:13px;display:block;color:#2d426c}.telemetry-item span{font-size:9px;color:#96a0b6}.test-actions{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}.checkmark{color:#65cfa1;font-size:22px}.check-result{font-size:11px;color:#667a95;line-height:1.6;margin:10px 0}.check-result.success{color:#138c72}.check-result.fail{color:#bc644e}.quiz-box{border-top:1px solid var(--line);padding-top:13px;margin-top:12px}.quiz-box h3{font-size:12px;margin-bottom:11px}.quiz-choice{display:flex;gap:8px;align-items:flex-start;margin:7px 0;border:1px solid #e8edf6;border-radius:8px;padding:8px;font-size:11px;cursor:pointer}.quiz-choice:has(input:checked){border-color:#a192ff;background:#f7f5ff}.quiz-choice input{accent-color:#8064ff;margin-top:2px}.quiz-check{margin-top:7px}.quiz-feedback{margin-top:8px;font-size:11px;font-weight:700}.nav-buttons{display:flex;justify-content:space-between;gap:6px;margin-top:18px;border-top:1px solid var(--line);padding-top:13px}.ide-panel{overflow:hidden}.editor-head{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid #ecedf3}.file-label{font-size:11px;font-weight:800;color:#495a7a;display:flex;gap:7px;align-items:center}.file-icon{color:#8d7aff;font-size:18px}.unsaved-dot{color:#f59e42}.editor-actions{display:flex;gap:4px}.editor-actions button{border:0;background:#f4f6fa;border-radius:6px;color:#657592;width:26px;height:26px}.code-wrap{display:flex;background:#16213c;color:#e7eaf5;min-height:510px;max-height:650px;overflow:hidden}.line-numbers{padding:14px 6px 14px 11px;text-align:right;font:11px/1.65 Consolas,Monaco,monospace;background:#131c32;color:#596984;user-select:none;min-width:28px;overflow:hidden;white-space:pre}.code-wrap textarea{flex:1;resize:vertical;min-height:510px;max-height:650px;overflow:auto;tab-size:2;border:0;background:transparent;color:#e1eaff;font:11px/1.65 Consolas,Monaco,"Courier New",monospace;padding:14px 10px;outline:none;white-space:pre;scrollbar-color:#475373 transparent}.ide-toolbar{display:flex;align-items:center;gap:7px;padding:11px 10px;border-bottom:1px solid #e8edf4}.run-btn{border:0;border-radius:8px;background:#715af2;color:white;padding:10px 12px;font-size:11px;font-weight:800}.run-btn:hover{background:#5747cc}.stop-btn{border:1px solid #e7eaf0;border-radius:8px;background:#f6f7fa;padding:9px 12px;color:#66748d;font-size:11px;font-weight:800}.speed-label{margin-left:auto;color:#8893a9;font-size:9px;font-weight:800;white-space:nowrap}.speed-label select{border:0;background:#eff0ff;padding:5px;border-radius:6px;margin-left:3px;color:#5848c6;font-size:10px}.console-label{font-size:10px;font-weight:900;color:#73819c;padding:13px 12px 6px;letter-spacing:1px}.console{height:130px;overflow:auto;background:#fcfdff;margin:0 10px 11px;border:1px solid #edf0f4;border-radius:7px;padding:10px;color:#546383;font:10px/1.8 Consolas,monospace}.console-entry:before{content:'›';color:#68bdad;margin-right:8px}.console-entry.error{color:#b74f53}.console-entry.error:before{content:'!';color:#d45459}.console-muted{color:#a5adc1}.ide-note{font-size:10px;color:#96a0b5;line-height:1.5;padding:0 12px 12px}.parts-panel h2{font-size:14px}.part-item{display:flex;align-items:center;gap:10px;border-top:1px solid #edf0f6;padding:11px 0}.part-item:first-child{margin-top:10px}.part-icon{width:34px;height:34px;background:#f0eeff;border-radius:8px;display:grid;place-items:center;font-size:18px;flex:none}.part-item b{font-size:10.5px;display:block}.part-item small{display:block;color:#9aa5b8;font-size:9.5px;margin-top:4px}.part-item button{margin-left:auto;border:0;color:#7774cb;background:transparent;font-weight:800;font-size:11px}.part-item .part-tip{display:none}.part-item.open .part-tip{display:block;font-size:10px;color:#63708a;line-height:1.5;margin-top:7px}.page-footer{border-top:1px solid #e6eaf2;margin-top:15px;padding:18px 3px;display:flex;justify-content:space-between;gap:20px;align-items:center;font-size:10px;color:#9ca5b8}.page-footer span:first-child{font-weight:900;color:#53627e}.toast{position:fixed;bottom:22px;right:24px;background:#182346;color:white;border-radius:10px;padding:12px 17px;font-size:12px;box-shadow:0 10px 35px #131a3a35;opacity:0;transform:translateY(14px);transition:opacity .2s,transform .2s;pointer-events:none;z-index:20;max-width:360px}.toast.show{opacity:1;transform:translateY(0)}.about-dialog{width:min(600px,calc(100vw - 30px));border:0;border-radius:16px;padding:28px 32px;box-shadow:0 30px 60px #141b3a60}.about-dialog::backdrop{background:#10172bb8}.about-dialog h2{font-size:25px}.about-dialog p,.about-dialog li{font-size:13px;line-height:1.65;color:#4f607f}.about-dialog ol{padding-left:22px}.dialog-warning{padding:14px;border-radius:9px;background:#fff8eb}.dialog-close{float:right;border:0;background:#f1f3f8;font-size:24px;border-radius:8px;width:34px;height:34px}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1450px){.sidebar{width:243px}.workspace{grid-template-columns:minmax(180px,.85fr) minmax(380px,1.85fr) minmax(280px,1.2fr);gap:12px}main{padding-left:18px;padding-right:18px}.mission-panel{padding:16px 13px}.board-panel,.simulator-panel,.test-panel,.parts-panel{padding:13px}}
@media(max-width:1190px){.workspace{grid-template-columns:minmax(220px,1fr) minmax(480px,2.25fr)}.right-column{grid-column:2;grid-row:2}.left-column{grid-column:1;grid-row:1 / span 2}.center-column{grid-column:2}.code-wrap{min-height:330px;max-height:430px}.code-wrap textarea{min-height:330px;max-height:430px}}
@media(max-width:850px){.sidebar{position:fixed;z-index:15;transform:translateX(-110%);transition:transform .2s;width:270px;box-shadow:15px 0 40px #0e153a55}.sidebar.open{transform:translateX(0)}.mobile-menu{display:block}.topbar{padding:0 14px;height:58px}.crumb{font-size:9px}.top-actions>span{display:none}.workspace{display:block}.hero-left{max-width:85%}.hero-art{opacity:.45;right:-80px}.hero{padding:25px 20px;min-height:230px}.hero h1{font-size:28px}.page-footer{display:block}.page-footer span{display:block;padding:4px}}
@media(max-width:520px){.hero h1{font-size:26px}.hero-idea{line-height:1.5;border-radius:9px}.top-actions .about-btn{font-size:9px}.crumb{font-size:8px}.telemetry{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-kicker{gap:4px;flex-wrap:wrap}.duration{padding-left:1px}.simulator-panel canvas{min-height:180px}.board-footer{gap:7px}.nav-buttons{flex-wrap:wrap}}

.student-label{display:block;font-size:9px;font-weight:800;color:#aeb4d4;letter-spacing:.7px;padding:4px 0 7px}.student-input{width:100%;border:1px solid #ffffff2e;background:#ffffff0d;color:white;border-radius:8px;padding:8px 10px;font-size:11px;margin-bottom:12px;outline:none}.student-input::placeholder{color:#8795b1}.theory-panel{padding:16px 17px}.theory-panel h3{font-size:11px;margin:14px 0 10px;color:#56637f}.signal-flow{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin-top:13px}.signal-flow .flow-step{background:#eeefff;border:1px solid #e8e6ff;border-radius:6px;padding:7px 7px;color:#6459b5;font-size:10px;font-weight:800}.signal-flow .flow-arrow{color:#a6b1c7;font-size:11px}.api-help{display:grid;gap:7px}.api-row{border:1px solid #ecf0f7;background:#fafbff;border-radius:7px;padding:7px 8px}.api-row code{display:block;color:#6253ad;font-size:10px;font-weight:800;margin-bottom:3px}.api-row span{font-size:10px;line-height:1.4;color:#77849b}.pin-reference{font:10px/1.8 Consolas,monospace;background:#f5f7fc;border-radius:7px;padding:9px 10px;max-height:175px;overflow:auto;color:#60708c}.pin-reference b{color:#4d5a83}.board-panel:fullscreen{display:flex;flex-direction:column;justify-content:flex-start;border-radius:0;padding:22px;background:#fff}.board-panel:fullscreen .circuit-scroller{flex:1;display:flex;align-items:center;justify-content:center}.board-panel:fullscreen svg{max-height:calc(100vh - 150px);width:100%;min-width:600px}.board-panel:fullscreen .panel-top h2{font-size:20px}

/* Версия 0.2: единый курс, вертикальная лаборатория и кабинеты */
.workspace{display:grid;grid-template-columns:minmax(260px,.87fr) minmax(0,2.12fr);align-items:start;gap:20px}
.workbench-column{display:flex;flex-direction:column;gap:20px;min-width:0}
.center-column,.right-column,.left-column{grid-column:auto!important;grid-row:auto!important;min-width:0}
.assessment-section{margin-top:23px}
.assessment-section .test-panel{padding:22px}
.assessment-section .quiz-box{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.assessment-section .quiz-box .quiz-check,.assessment-section .quiz-box .quiz-feedback{grid-column:1/-1}
.mobile-menu{display:inline-flex!important;align-items:center;justify-content:center;width:36px;height:36px;color:#5448b7;border-radius:8px;background:#f2f0ff;margin-right:8px;flex:none}
.sidebar{transition:width .23s ease,padding .23s ease;min-width:0}
body.sidebar-collapsed .sidebar{width:0!important;padding-left:0!important;padding-right:0!important;overflow:hidden}
body.sidebar-collapsed .sidebar>*{opacity:0;pointer-events:none}
body.sidebar-collapsed .main-area{min-width:0}
.account-badge{color:#4d5674;font-size:11px;font-weight:800;white-space:nowrap}
.top-actions{gap:5px;flex-wrap:wrap;justify-content:flex-end}
.top-actions .about-btn{margin:0;padding:7px 10px}
.topbar{gap:10px}
.view-notice{padding:13px 16px;border:1px solid #eadfae;background:#fff9e8;color:#79622c;border-radius:10px;margin-top:14px;font-size:12px}
.page-footer{flex-wrap:wrap}
.page-footer span:nth-child(2){font-size:13px;font-weight:800;color:#6254ae}
.auth-gate{position:fixed;inset:0;z-index:100;background:linear-gradient(133deg,#0b1630,#252866 52%,#6956b5);display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto}
.auth-gate[hidden]{display:none}
.auth-card{width:min(445px,100%);padding:38px;background:white;border-radius:20px;box-shadow:0 28px 80px #07122e80}
.auth-logo{font-size:25px;font-weight:950;letter-spacing:1px;color:#162448}.auth-logo span{color:#8464ff}
.auth-subtitle{color:#8691a8;font-size:11px;margin-top:6px}
.auth-card h1{font-size:25px;margin:28px 0 8px}.auth-card p{font-size:13px;color:#677590}
.auth-card label,.password-dialog label,.dashboard-form label{display:flex;flex-direction:column;gap:5px;color:#485777;font-size:12px;font-weight:800;margin:14px 0}
.auth-card input,.password-dialog input,.dashboard-form input,.dashboard-form select{padding:11px 12px;border:1px solid #dce3ee;border-radius:9px;width:100%;background:#fff;color:#243551;min-width:0}
.auth-submit{width:100%;margin-top:10px;font-size:13px;padding:13px}.auth-error{color:#bb3e3b!important;font-size:12px;min-height:1em}
.auth-foot{border-top:1px solid #e8ecf4;color:#8994a8;font-size:11px;line-height:1.5;margin-top:25px;padding-top:16px}
.dashboard-dialog{width:min(1050px,calc(100vw - 28px));max-height:90vh;border:0;border-radius:17px;padding:0;box-shadow:0 25px 90px #11193666}
.dashboard-dialog::backdrop,.password-dialog::backdrop{background:#0c1536b8}
.dialog-header{padding:24px 27px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.dashboard-dialog h2{font-size:22px;margin:4px 0 0}.dashboard-tabs{padding:0 27px 13px;display:flex;gap:7px;border-bottom:1px solid #e8ecf3;flex-wrap:wrap}
.dashboard-tabs button{border:1px solid #e0e5f0;color:#5a6782;background:#fff;padding:10px 14px;border-radius:8px;font-size:12px;font-weight:800}
.dashboard-tabs button.active{color:#fff;background:#735bf2;border-color:#735bf2}
.dashboard-content{padding:20px 27px 30px;max-height:65vh;overflow:auto}
.dashboard-content h3{margin:0 0 8px;font-size:16px}.dashboard-content p{color:#67758d;font-size:12px}
.dashboard-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:15px}
.dashboard-table-wrap{overflow:auto;border:1px solid #e5e9f1;border-radius:10px}
.dashboard-table{border-collapse:collapse;width:100%;font-size:12px;min-width:640px}
.dashboard-table th{text-align:left;color:#596884;background:#f5f7fc;font-size:10px;letter-spacing:.4px}
.dashboard-table td,.dashboard-table th{padding:11px 12px;border-bottom:1px solid #e9edf4;vertical-align:middle}
.dashboard-table tr:last-child td{border-bottom:0}.dashboard-table .mini-btn{border:1px solid #ddd9f9;color:#6050b9;background:#f9f7ff;border-radius:7px;padding:6px 9px;font-size:11px}
.status-good{color:#15846b;font-weight:850}.status-fail{color:#be5c46;font-weight:850}.status-muted{color:#8b94a7}
.dashboard-form{border:1px solid #e6e9f2;background:#f9faff;border-radius:12px;padding:18px;margin-top:17px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.dashboard-form .form-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:12px}
.dashboard-form input[type=checkbox]{width:auto;accent-color:#765df4}.dashboard-form label.check-label{flex-direction:row;align-items:center}
.report-picker{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.report-picker select{padding:9px;border-radius:8px;border:1px solid #dce3ee;background:white}
.result-select{border:1px solid #d9dfe9;background:white;border-radius:7px;padding:6px;color:#465577}
.password-dialog{width:min(440px,calc(100vw - 30px));border:0;border-radius:16px;padding:28px 30px}.password-dialog h2{margin-top:12px;font-size:21px}.password-dialog p{font-size:12px;color:#7b879b}
@media(max-width:1190px){.workspace{grid-template-columns:minmax(210px,.85fr) minmax(0,2fr)}.workbench-column{grid-column:auto}.right-column{grid-column:auto!important;grid-row:auto!important}}
@media(max-width:850px){.workspace{display:block}.workbench-column{display:block}.left-column,.center-column,.right-column{margin-bottom:18px}.sidebar{width:275px;transition:transform .2s;width:275px!important}.sidebar.open{transform:translateX(0)}body.sidebar-collapsed .sidebar{width:275px!important;padding:25px 17px 18px!important}body.sidebar-collapsed .sidebar>*{opacity:1;pointer-events:auto}.top-actions{gap:2px}.account-badge{font-size:9px}.assessment-section .quiz-box{display:block}.form-grid{grid-template-columns:1fr}.auth-card{padding:25px}.crumb{display:none}}

.nav-notpassed{font-size:14px;font-weight:800;color:#68738e}.nav-lesson.current .nav-notpassed{color:#e8e5ff}

/* RoboLab 0.4: читаемая типографика, полноширинный редактор и проверка проводки. */
:root,body,button,select,input,textarea{font-family:Arial,"Segoe UI",Roboto,system-ui,-apple-system,sans-serif}
.crumb{font-family:Arial,"Segoe UI",Roboto,sans-serif;font-size:12px;letter-spacing:.65px;font-weight:800;color:#3e4e70;white-space:nowrap}
.section-label{font-family:Arial,"Segoe UI",Roboto,sans-serif;font-size:12px;letter-spacing:.7px;font-weight:850;color:#394966;height:auto;min-height:23px;line-height:1.4}
.eyebrow{font-family:Arial,"Segoe UI",Roboto,sans-serif;letter-spacing:.8px}
.workspace{grid-template-columns:minmax(250px, .87fr) minmax(0, 2.13fr);gap:20px}
.workbench-column{min-width:0;display:block}
.right-column{width:100%;margin:26px 0 0;display:block;min-width:0}
.right-column .ide-panel{width:100%}
.right-column .code-wrap{height:390px;min-height:320px;max-height:65vh}
.right-column .code-wrap textarea{height:100%;width:100%;max-height:none}
.right-column .parts-panel{width:100%}
.wire-overlay{pointer-events:none}
.wire-overlay .wire-path{stroke-width:3.5;opacity:.97;stroke-linejoin:round;stroke-linecap:round;filter:drop-shadow(0 1px 1px #ffffffcc)}
.wire-overlay .wire-socket{stroke:#fff;stroke-width:2.5}
.wiring-diagnostics{margin-top:13px;border-radius:10px;border:1px solid #f0c7bc;padding:14px;background:#fff8f5;color:#7c2d23;font-size:12px;line-height:1.5}
.wiring-diagnostics[hidden]{display:none}
.wiring-diagnostics.success{background:#f0fcf7;border-color:#afe7d1;color:#13604d}
.wiring-diagnostics h3{margin:0 0 7px;font-size:13px;color:inherit;letter-spacing:0}
.wiring-diagnostics ol{padding-left:22px;margin:8px 0 0}
.wiring-diagnostics li{padding:4px 0}
.wiring-diagnostics b{font-weight:800}
.wiring-diagnostics .diagnostics-note{margin:10px 0 0;font-size:11px;color:#56677c}
.inline-link{border:1px solid #c9c1ff;background:#f3f0ff;border-radius:7px;padding:9px 12px;color:#5544cd;font-size:11px;font-weight:800}
.inline-link:hover{background:#eae4ff}
/* Обновлённая двухчастная страница входа. */
.auth-gate{background:#f2f5fa;padding:24px;align-items:center;justify-content:center;overflow-y:auto}
.login-layout{width:min(1070px,100%);min-height:625px;display:grid;grid-template-columns:minmax(0,1.04fr) minmax(390px,.96fr);border-radius:24px;background:#fff;overflow:hidden;box-shadow:0 30px 80px rgba(30,39,85,.14);border:1px solid #e5ebf4}
.login-story{position:relative;min-height:625px;display:flex;flex-direction:column;background:linear-gradient(155deg,#13274c 0%,#253e78 62%,#4c46ab 100%);color:white;padding:42px 46px;overflow:hidden;isolation:isolate}
.login-story:after{content:"";position:absolute;right:-160px;bottom:-320px;width:620px;height:620px;border-radius:50%;border:1px solid #ffffff20;box-shadow:0 0 0 74px #ffffff06,0 0 0 148px #ffffff04;z-index:-1}
.login-story-brand{display:flex;align-items:center;gap:13px}
.login-mark{height:48px;width:48px;background:#8e79ff;border-radius:14px;display:grid;place-items:center;font-size:24px;box-shadow:0 8px 25px #080e3580}
.login-story-brand strong{display:block;font-size:22px;letter-spacing:1px;font-weight:900;color:#fff}
.login-story-brand strong span,.login-mobile-brand span{color:#9fe8e3}
.login-story-brand small{display:block;font-size:11px;color:#cad4ef;margin-top:4px}
.login-story-content{position:relative;z-index:2;margin-top:60px}
.login-eyebrow{font-size:11px;font-weight:850;color:#9ce9eb;letter-spacing:1.5px}
.login-story-content h2{color:#fff;font-size:clamp(28px,2.8vw,37px);font-weight:850;line-height:1.15;margin:15px 0 15px;max-width:410px;letter-spacing:-.7px}
.login-story-content p{color:#cfddf7;font-size:14px;line-height:1.65;max-width:430px}
.login-feature-list{display:flex;gap:9px;flex-wrap:wrap;margin-top:22px;max-width:430px}
.login-feature-list span{border:1px solid #ffffff30;background:#ffffff12;border-radius:20px;color:#e4efff;padding:7px 11px;font-size:11px}
.login-feature-list b{color:#fff}
.login-illustration{width:198px;height:180px;position:absolute;bottom:72px;right:55px;z-index:1;filter:drop-shadow(0 14px 12px #111d4a77)}
.login-robot-head{width:132px;height:102px;border-radius:28px;border:8px solid #a9d3fa;background:#e9f4ff;position:absolute;left:32px;top:14px;display:flex;gap:31px;align-items:center;justify-content:center;transform:rotate(-7deg)}
.login-robot-head i{display:block;width:19px;height:28px;border-radius:11px;background:#5770d4}
.login-robot-head span{position:absolute;bottom:14px;left:50px;width:20px;height:6px;border-radius:12px;background:#9dafe0}
.login-robot-body{background:#a5aff9;border:6px solid #ced8ff;position:absolute;top:120px;left:62px;height:55px;width:78px;border-radius:14px;color:#2b3a83;text-align:center;padding-top:12px;font-weight:800;font-size:12px}
.login-float{position:absolute;border:1px solid #c6d6ff61;background:#ffffff1b;border-radius:10px;padding:8px 10px;font-size:12px;font-weight:800;color:#fff}
.login-float-a{left:-10px;top:70px;transform:rotate(-13deg)}.login-float-b{right:-6px;top:0;transform:rotate(10deg)}
.login-story-foot{font-size:11px;color:#c1cbed;letter-spacing:.4px;margin:auto 0 0;z-index:2}
.auth-card{width:auto;max-width:none;min-width:0;border-radius:0;box-shadow:none;display:flex;flex-direction:column;justify-content:center;padding:64px 56px}
.auth-intro{color:#6a5ae0;font-size:11px;font-weight:850;letter-spacing:1.5px}
.auth-card h1{margin:12px 0 8px;font-size:31px;font-weight:850;line-height:1.12;color:#1c2c4a;letter-spacing:-.65px}
.auth-card .auth-subtitle{font-size:14px;color:#687998;line-height:1.6;margin:0 0 23px}
.auth-card label{font-size:12px;color:#344564;font-weight:800;margin:15px 0 0;gap:7px}
.auth-card input{min-height:48px;font-size:14px;border:1px solid #d8e0ec;border-radius:10px;background:#fbfcff;padding:13px 14px}
.auth-card input:focus{outline:3px solid #dcd4ff;border-color:#7460f4}
.auth-card input::placeholder{color:#9da9b9}
.auth-submit{display:flex;align-items:center;justify-content:center;gap:12px;min-height:49px;border-radius:10px;margin-top:16px;font-size:14px;box-shadow:0 7px 18px #6559bf27}
.auth-submit span{font-size:21px;line-height:0}
.auth-assist{margin:19px 0 0;color:#6c7a93!important;font-size:12px!important;line-height:1.55!important}
.auth-card .auth-foot{text-align:center;color:#8d99ac;font-size:12px;font-weight:650;border-top:1px solid #e6ecf4;padding-top:19px;margin-top:35px}
.login-mobile-brand{display:none}
@media(max-width:1190px){.workspace{grid-template-columns:minmax(240px,.88fr) minmax(0,2.12fr)}.right-column{grid-column:auto;grid-row:auto}}
@media(max-width:1000px){.login-layout{grid-template-columns:minmax(0,1fr) minmax(340px,1fr)}.login-story{padding:35px 29px}.auth-card{padding:44px 32px}}
@media(max-width:850px){.workspace{display:block}.workbench-column{display:block}.right-column{margin-top:16px}.crumb{display:none}.login-layout{max-width:480px;display:block;min-height:0;border-radius:17px}.login-story{display:none}.auth-card{padding:42px 30px}.login-mobile-brand{display:block;font-size:23px;font-weight:900;color:#243556;margin-bottom:28px}}
@media(max-width:500px){.auth-gate{padding:13px}.auth-card{padding:32px 21px}.auth-card h1{font-size:27px}.right-column .code-wrap{height:330px}.inline-link{margin-left:0}}

/* v0.5 — порядок учебных блоков в одну широкую рабочую область */
.lesson-layout{display:flex;flex-direction:column;gap:22px;margin-top:24px;min-width:0}
.lesson-layout>section,.lesson-layout .lesson-intro-grid,.lesson-layout .experiment-grid{min-width:0;width:100%}
.lesson-intro-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch}
.mission-column,.memo-column,.workbench-section,.programming-section,.experiment-section,.components-section{min-width:0}
.lesson-intro-grid .panel{height:calc(100% - 35px);margin-bottom:0}
.lesson-intro-grid .mission-panel,.lesson-intro-grid .theory-panel{padding:23px;min-height:300px}
.lesson-intro-grid .theory-panel>.eyebrow{display:none}
.lesson-intro-grid .mission-extra{margin-top:20px;border-top:1px solid #e6eafa;padding:15px 0 0}
.lesson-intro-grid .mission-extra>.eyebrow{font-size:11px}
.lesson-intro-grid .mission-extra p{font-size:12px;color:#52617e;line-height:1.5;margin:9px 0}
.lesson-layout .section-label{height:auto;min-height:24px;margin-bottom:11px}
.lesson-layout .board-panel,.lesson-layout .ide-panel,.lesson-layout .simulator-panel,.lesson-layout .parts-panel{margin-bottom:0}
.lesson-layout .workbench-section .circuit-scroller{overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:6px}
.lesson-layout .workbench-section #circuit{min-width:1020px;aspect-ratio:auto;height:auto;width:100%;display:block}
.lesson-layout .programming-section .ide-panel{width:100%}
.lesson-layout .programming-section .code-wrap{display:flex;width:100%;height:440px;min-height:320px;max-height:70vh;overflow:hidden;position:relative}
.lesson-layout .programming-section #codeEditor{display:block;min-width:0;min-height:0!important;max-height:none!important;height:100%!important;width:100%;flex:1 1 auto;resize:none;overflow-y:scroll!important;overflow-x:auto!important;white-space:pre;scrollbar-width:auto;scrollbar-color:#7c91c5 #111a30;padding-right:20px}
.lesson-layout .programming-section #codeEditor::-webkit-scrollbar{width:15px;height:13px}
.lesson-layout .programming-section #codeEditor::-webkit-scrollbar-track{background:#111a30;border-left:1px solid #43506f}
.lesson-layout .programming-section #codeEditor::-webkit-scrollbar-thumb{background:#8394bd;border-radius:9px;border:3px solid #111a30}
.lesson-layout .programming-section #codeEditor::-webkit-scrollbar-thumb:hover{background:#a9b8da}
.lesson-layout .programming-section .line-numbers{min-width:47px;flex:0 0 47px;overflow:hidden}
.experiment-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,1fr);gap:20px;align-items:stretch}
.experiment-grid .simulator-panel,.experiment-grid .parts-panel{height:calc(100% - 35px)}
.experiment-grid .simulator-panel{display:flex;flex-direction:column}
.experiment-grid #sceneCanvas{max-width:100%;height:auto;display:block}
.experiment-grid .parts-panel{padding:18px}
.experiment-grid #partsList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.experiment-grid .part-item{min-width:0}
.assessment-section{margin-top:24px;width:100%}
.circuit-heading{font-size:13px;fill:#5a6a86;font-weight:900;letter-spacing:.8px}
.module-id{fill:#74839d;font-weight:700;font-size:11px}
.power-label{font-size:12px;font-weight:900;pointer-events:none}
.wire-overlay{pointer-events:none}
.wire-overlay .wire-halo{stroke:#fbfcff;stroke-width:8;fill:none;stroke-linecap:round;stroke-linejoin:round;opacity:.98}
.wire-overlay .wire-path{stroke-width:3;stroke-linejoin:round;stroke-linecap:round;opacity:1;filter:none}
@media (max-width:1090px){.experiment-grid{grid-template-columns:minmax(0,1fr) minmax(260px,.83fr)}.experiment-grid #partsList{grid-template-columns:1fr}}
@media (max-width:850px){.lesson-intro-grid,.experiment-grid{grid-template-columns:1fr}.lesson-intro-grid .panel,.experiment-grid .simulator-panel,.experiment-grid .parts-panel{height:auto}.experiment-grid #partsList{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:540px){.lesson-layout{gap:17px}.lesson-intro-grid,.experiment-grid{gap:15px}.experiment-grid #partsList{grid-template-columns:1fr}.lesson-layout .programming-section .code-wrap{height:380px}}

/* v0.7: чёткая системная гарнитура, без увеличения шрифтов из v0.6. */
:root{--text:#152744;--sub:#394d68;--bg:#f2f5fa;
  --ui-font:"Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif}
:root,body,button,select,input,textarea{font-family:var(--ui-font);letter-spacing:normal}
body{color:#152744}
.hero h1,.panel h2,.section-label,.crumb,.brand-name{font-family:var(--ui-font)}
/* Для подписей сохраняем прежние размеры и повышаем чёткость начертания. */
.crumb{letter-spacing:.3px;font-weight:750;color:#344765}
.section-label{letter-spacing:.35px;font-weight:800;color:#263959}
.eyebrow{letter-spacing:.5px}
.nav-lesson{color:#dce3f6;font-weight:600}
.sidebar-section p,.brand-caption,.mini-stats span,.sidebar .text-button{color:#d5dcf1}
.hero p{color:#f0f3ff}
.lesson-intro-grid .mission-panel h2,.panel-top h2,.theory-panel h2,.parts-panel h2{color:#203553}
.mission-panel>p,.step-body p,.mission-extra p,.insight p,.theory-panel p,.lesson-intro-grid .mission-extra p{color:#354964}
.mission-panel h3,.theory-panel h3,.step-body h4{color:#273c5c}
.api-row{padding:11px 12px}
.api-row span{color:#3b5272}
#wireStatus{color:#334968}
/* Редактор остаётся моноширинным; размер — как до версии 0.6. */
.lesson-layout .programming-section #codeEditor{font-family:Consolas,"Cascadia Code","Courier New",monospace;color:#f4f7ff;caret-color:#fff}
.lesson-layout .programming-section .line-numbers{font-family:Consolas,"Cascadia Code","Courier New",monospace;color:#b3c1d8}
.code-wrap{background:#111d35}
.console{color:#263952}
.ide-note{color:#42546f}
.check-result,.quiz-question h3,.quiz-choice,.quiz-feedback{color:#344765}
.module-id{fill:#3e526c}
.circuit-heading{fill:#243d5e}

.part-item{gap:11px;padding:11px;border:1px solid #e1e8f2;border-radius:12px;background:#fff;min-width:0;box-shadow:0 2px 7px #1328470d}
.part-item:first-child{margin-top:0}
.part-thumbnail{width:66px;height:62px;object-fit:contain;background:#fff;border:1px solid #e8edf6;border-radius:10px;flex:none}
.part-item .part-summary{flex:1;min-width:0}
.part-item b{font-size:14px;line-height:1.35;color:#243855;overflow-wrap:anywhere}
.part-item small{font-size:12px;line-height:1.35;color:#536786;margin-top:5px}
.part-item button{display:flex;align-items:center;gap:4px;flex:none;align-self:center;border-radius:9px;border:1px solid #d4c9fa;background:#f5f2ff;padding:9px 10px;font-size:16px;color:#493aab;min-height:40px}
.part-item button span{font-size:12px}
.part-item button:hover{background:#e8e1ff}
.experiment-grid .parts-panel{padding:16px}
.experiment-grid #partsList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.component-dialog{width:min(980px,calc(100vw - 35px));max-height:min(90vh,900px);overflow-y:auto;border:0;border-radius:20px;padding:27px 30px 32px;color:#1b304c;box-shadow:0 32px 85px #12234465}
.component-dialog::backdrop{background:#0c1739bb}
.component-dialog-top{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;border-bottom:1px solid #e1e8f1;padding-bottom:16px}
.component-dialog-top h2{font-size:26px;line-height:1.2;margin:9px 0 0;color:#152b4b}
.component-category{display:inline-block;background:#edf1ff;border-radius:99px;padding:5px 10px;font-size:12px;font-weight:800;color:#4d4aa8}
.component-close{font-size:28px;background:#f1f4f9;border:0;border-radius:9px;width:42px;height:42px;color:#2c3f5a;flex:none}
.component-close:hover{background:#e4eaf5}
.component-dialog-content{display:grid;grid-template-columns:minmax(240px,.9fr) minmax(0,1.25fr);gap:26px;padding-top:20px;align-items:start}
.component-photo{margin:0;border:1px solid #e3eaf3;border-radius:14px;overflow:hidden;background:#fff}
.component-photo img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.component-photo figcaption{padding:12px;background:#f7f9fc;color:#4f617c;font-size:13px;line-height:1.5}
.component-description{font-size:15px;line-height:1.6;color:#293d59}
.component-description p{font-size:15px;line-height:1.65;margin:0 0 15px}
.component-description h3{font-size:17px;line-height:1.4;color:#243756;margin:18px 0 10px}
.component-description dl{margin:0;border:1px solid #e1e8f2;border-radius:11px;overflow:hidden}
.component-description dl>div{display:grid;grid-template-columns:40% 60%;gap:6px;padding:9px 13px;border-bottom:1px solid #e8eef6}
.component-description dl>div:last-child{border-bottom:0}
.component-description dt{color:#475e7a;font-weight:700}
.component-description dd{margin:0;color:#203650}
#componentRealPhotos{font-size:14px;font-weight:700;color:#5241bd;display:inline-block;margin-top:8px;overflow-wrap:anywhere}
@media(max-width:1100px){.experiment-grid #partsList{grid-template-columns:1fr}}
@media(max-width:730px){.component-dialog{padding:20px}.component-dialog-content{grid-template-columns:1fr;gap:16px}.component-photo img{max-height:290px}.component-dialog-top h2{font-size:22px}}
@media(max-width:540px){.experiment-grid #partsList{grid-template-columns:1fr}.part-thumbnail{width:58px;height:55px}.part-item b{font-size:13px}.part-item button span{display:none}.section-label{font-size:13px}}

/* v0.7: подпись автора и номер версии — слева, в три строки. */
.page-footer{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;color:#52627c}
.page-footer .footer-signature{display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;min-width:0}
.page-footer .footer-product{font-weight:800;color:#394c69}
.page-footer .footer-copyright{font-weight:700;color:#5b4cb4}
.page-footer .footer-version{color:#70809a}
.page-footer .footer-meta{color:#70809a;text-align:right}
.login-story-foot{display:flex;flex-direction:column;align-items:flex-start;gap:4px;letter-spacing:normal;line-height:1.5}
.login-story-foot .login-story-name{font-weight:750;color:#edf1ff}
.login-story-foot .footer-version{color:#c1cbed}
.auth-card .auth-foot{display:none;text-align:left}
.auth-card .auth-foot .auth-foot-brand{font-weight:750;color:#4c5c78}
.auth-card .auth-foot .footer-version{color:#8693a8}
@media(max-width:850px){
  .auth-card .auth-foot{display:block}
  .auth-card .auth-foot>div{margin-top:5px}
  .page-footer .footer-meta{text-align:left}
}
/* RoboLab 0.8: личный кабинет, сгруппированные классы, CSV, PDF */
.top-actions{position:relative;gap:9px}
.account-menu{position:relative}
.account-menu[hidden],.account-menu-items[hidden]{display:none!important}
.account-menu-trigger{background:#f1efff!important;color:#5341b5!important;border-color:#dcd6ff!important}
.account-menu-items{position:absolute;right:0;top:calc(100% + 8px);z-index:120;width:225px;box-shadow:0 14px 40px rgba(20,29,57,.19);background:white;border:1px solid #dfe5ef;border-radius:12px;overflow:hidden;padding:5px}
.account-menu-items button{display:block;width:100%;text-align:left;padding:12px;border:0;border-radius:8px;color:#293a55;background:transparent;font-size:13px;font-weight:650;cursor:pointer}
.account-menu-items button:hover,.account-menu-items button:focus-visible{background:#f1f0ff;color:#493aaf}
.csv-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0 16px}
.csv-actions span,.pdf-hint{color:#64728c;font-size:11px}
.csv-label{display:inline-flex;align-items:center;cursor:pointer}
.class-summary{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:15px}
.class-summary span{background:#edf1fb;color:#46567d;border:1px solid #dce4f5;border-radius:100px;padding:6px 10px;font-size:11px;font-weight:650}
.orphan-box{background:#fff9e9;border:1px solid #f3deaa;border-radius:12px;padding:14px;margin-top:16px}
.orphan-box>div{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #eee0bb;padding:7px;gap:10px}
.report-downloads{display:flex;gap:9px;flex-wrap:wrap}
#helpRoleText h3{color:#263b62;margin-bottom:7px}
#helpRoleText p{line-height:1.65}
@media(max-width:650px){.account-badge{display:none}.top-actions{gap:4px}.account-menu-items{right:0}.csv-actions,.report-downloads{align-items:stretch}.csv-actions>*,.report-downloads>*{max-width:100%}}

/* v0.8.1 — другие образовательные ресурсы под версией на странице авторизации */
.login-layout{min-height:715px}
.login-story{min-height:715px}
.login-story-content{margin-top:42px}
.login-illustration{bottom:195px;right:33px;transform:scale(.82);transform-origin:bottom right}
.login-resources{margin-top:14px;padding-top:13px;border-top:1px solid rgba(255,255,255,.21);width:100%;max-width:440px}
.login-resources-title{font-size:11px;font-weight:800;line-height:1.4;letter-spacing:.1px;color:#e9edff;margin-bottom:9px}
.login-resources-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.login-resource{display:flex;flex-direction:column;min-width:0;gap:3px;border-radius:9px;padding:9px 11px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.075);color:#fff;text-decoration:none;transition:background .15s,border-color .15s}
.login-resource:hover,.login-resource:focus-visible{background:rgba(255,255,255,.19);border-color:rgba(255,255,255,.55);outline-offset:2px}
.login-resource-name{font-size:11px;font-weight:750;line-height:1.3;color:#fff;overflow-wrap:anywhere}
.login-resource-domain{font-size:10px;line-height:1.3;color:#cbd8f7;overflow-wrap:anywhere}
@media(max-width:850px){
  .login-layout{min-height:0}
  .auth-card .login-resources{max-width:none;border-top-color:#e3eaf4;margin-top:14px;padding-top:13px}
  .auth-card .login-resources-title{color:#263b5d}
  .auth-card .login-resource{background:#f7f8ff;border-color:#e1e6fa}
  .auth-card .login-resource-name{color:#2e3c67}
  .auth-card .login-resource-domain{color:#687a9a}
  .auth-card .login-resource:hover,.auth-card .login-resource:focus-visible{background:#eae9ff;border-color:#b8b4fa}
}
@media(max-width:390px){.login-resources-grid{grid-template-columns:1fr}}

/* v0.8.2 — управляемый перечень классов и подробная справка для каждой роли */
.class-row-actions{white-space:nowrap;text-align:right}
.class-row-actions .mini-btn{margin:2px}
.dashboard-hint{color:#60728e;font-size:12px;line-height:1.6;margin:10px 0 15px}
.text-inline-btn{border:0;background:none;padding:0;color:#5a48cb;text-decoration:underline;text-underline-offset:2px;font-size:inherit;font-weight:700}
#classEditor .dashboard-form{max-width:740px}
.about-dialog{width:min(790px,calc(100vw - 28px));max-height:min(90vh,1000px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.help-lead{background:linear-gradient(120deg,#f1efff,#f5f9ff);border:1px solid #e3e1ff;padding:16px 19px;border-radius:12px;margin:10px 0 16px}
.help-lead strong{font-size:16px;color:#292d69}
.help-lead p{margin:7px 0 0;color:#4b5c78}
#helpRoleText details{border:1px solid #e3e8f3;border-radius:10px;margin:9px 0;overflow:hidden;background:#fff}
#helpRoleText details[open]{background:#fcfdff;border-color:#cbd2f8}
#helpRoleText summary{cursor:pointer;list-style:none;position:relative;font-size:13px;line-height:1.5;font-weight:800;padding:14px 40px 14px 16px;color:#394b70;background:#f6f8fd}
#helpRoleText summary::-webkit-details-marker{display:none}
#helpRoleText summary:after{content:'+';position:absolute;right:15px;top:9px;font-size:22px;color:#7564c8}
#helpRoleText details[open] summary:after{content:'−'}
#helpRoleText details ol,#helpRoleText details ul{padding:10px 22px 6px 37px;margin:0}
#helpRoleText details li{padding-left:3px;margin:7px 0;color:#455673;font-size:13px;line-height:1.7}
#helpRoleText details>p{padding:0 16px 15px;margin:0;color:#4d6080}
#helpRoleText code{font:12px/1.5 Consolas,monospace;color:#4031aa;background:#ebeaff;border-radius:4px;padding:1px 4px}
#helpRoleText a{color:#4b3acc}
#helpRoleText :focus-visible{outline:2px solid #7766e7;outline-offset:3px}
@media(max-width:650px){.class-row-actions{white-space:normal}.about-dialog{padding:20px 16px}#helpRoleText summary{padding:12px 34px 12px 12px}}

/* Раздел «Методика» в личном кабинете учителя (v0.8.4). */
.methodika-intro{margin-bottom:18px}
.methodika-intro h3{font-size:18px;color:#21264c}
.methodika-intro p{font-size:13px;line-height:1.6;max-width:760px}
.methodika-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.methodika-card{display:flex;align-items:flex-start;gap:15px;background:#fbfcff;border:1px solid #e2e6f3;border-radius:14px;padding:20px;min-width:0}
.methodika-icon{display:grid;place-items:center;flex-shrink:0;width:47px;height:47px;border-radius:12px;background:#efedff;font-size:25px}
.methodika-details{flex:1;min-width:0}
.methodika-details h4{font-size:16px;line-height:1.35;color:#252d57;margin:0 0 8px}
.methodika-details p{font-size:12px;line-height:1.6;color:#53617b;margin:0 0 16px}
.methodika-actions{display:flex;flex-wrap:wrap;gap:8px}
.methodika-download{display:inline-flex;align-items:center;gap:7px;padding:9px 11px;background:#fff;border:1px solid #d9d9f3;border-radius:9px;color:#4538a7;font-size:12px;font-weight:700;text-decoration:none;min-height:40px}
.methodika-download:hover,.methodika-download:focus-visible{background:#efedff;border-color:#9e8ff2;color:#342386;text-decoration:none}
.methodika-format{font-size:10px;font-weight:800;background:#efedff;border-radius:5px;padding:4px 5px}
.methodika-note{margin-top:18px;line-height:1.6}
@media(max-width:760px){.methodika-list{grid-template-columns:1fr}.methodika-card{padding:15px}.methodika-download{width:100%;justify-content:space-between}}
