@font-face{font-family:Manrope;src:url('./assets/Manrope.ttf') format('truetype');font-weight:200 800;font-display:swap}
:root{--bg:#f5f5f2;--surface:#fff;--surface2:#eceeea;--ink:#202522;--muted:#666d67;--line:#dfe3dc;--accent:#254d3f;--accent-soft:#e5eee6;--good:#315c43;--shadow:0 18px 40px #17231c0d;--radius:22px;color-scheme:light}
:root[data-theme=dark]{--bg:#151817;--surface:#202522;--surface2:#2a302c;--ink:#edf0e9;--muted:#a1aaa2;--line:#383f39;--accent:#dae6cc;--accent-soft:#354137;--good:#b2d0ab;--shadow:0 18px 40px #0003;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.55 Manrope,system-ui,sans-serif}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{color:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{opacity:.45;cursor:not-allowed}button{transition:transform .16s,background .18s,box-shadow .18s}button:active,a.button:active{transform:translateY(2px) scale(.982)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--good);outline-offset:4px}button:focus:not(:focus-visible){outline:0}h1,h2,h3,p{margin:0}h1{font-size:clamp(30px,3.4vw,48px);line-height:1.12;letter-spacing:-1.9px;font-weight:650}h2{font-size:25px;line-height:1.25;letter-spacing:-.8px;font-weight:650}h3{font-size:17px;line-height:1.35;font-weight:650;letter-spacing:-.25px}p{color:var(--muted)}strong{font-weight:650}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-button{border:1px solid var(--line);border-radius:50%;width:42px;height:42px;background:var(--surface);display:inline-flex;align-items:center;justify-content:center}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid transparent;background:var(--accent);color:var(--bg);border-radius:12px;padding:13px 20px;font-size:13px;font-weight:750;min-height:46px;box-shadow:0 3px 0 color-mix(in srgb,var(--accent),black 22%)}.button.secondary,.button.ghost{background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:0 3px 0 var(--line)}.button.ghost{box-shadow:none;background:transparent}.button.small{padding:8px 12px;min-height:36px}.text-link{display:inline-flex;align-items:center;gap:8px;border:0;background:none;padding:4px 0;font-weight:700;font-size:12px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.8px;text-transform:uppercase;color:var(--muted)}.muted{color:var(--muted)}.divider{height:1px;background:var(--line);margin:22px 0}.stack{display:grid;gap:16px}.status{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:750;padding:5px 9px;background:var(--surface2);border-radius:7px;white-space:nowrap}.status.good{color:var(--good);background:var(--accent-soft)}.status.pending{color:var(--ink)}.note{background:var(--surface2);border-radius:12px;padding:15px 18px;font-size:12px;color:var(--muted);line-height:1.65}.avatar{display:inline-flex;width:38px;height:38px;align-items:center;justify-content:center;background:var(--surface2);border:1px solid var(--line);border-radius:9px;overflow:hidden;padding:0;font-size:11px;font-weight:800;flex-shrink:0}.row-main{flex:1;text-align:left}.row-title{font-size:13px;font-weight:700}.row-meta{font-size:11px;color:var(--muted);margin-top:3px}.data-row{display:flex;gap:14px;align-items:center;border:0;border-bottom:1px solid var(--line);padding:17px 0;background:none;color:inherit;width:100%;text-align:left}.field{display:grid;gap:7px;font-size:12px;font-weight:700}input:not([type=checkbox],[type=radio],[type=range]),textarea,select{width:100%;min-height:44px;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:10px;padding:11px 13px}textarea{resize:vertical;min-height:130px}input[type=range]{accent-color:var(--accent);width:100%}input[type=checkbox],input[type=radio]{accent-color:var(--accent)}label small{color:var(--muted);font-size:10px;font-weight:500}fieldset{border:0;padding:0;margin:0}.skip{position:fixed;left:20px;top:-80px;z-index:1000;background:var(--ink);color:var(--bg);padding:10px}.skip:focus{top:10px}
.app-header{height:92px;display:flex;align-items:center;gap:24px;max-width:1320px;padding:0 36px;margin:auto;view-transition-name:header}.brand{width:147px;height:48px;background:none!important;border:0!important;border-radius:0!important;padding:0;box-shadow:none!important;flex-shrink:0;position:relative}.logo-art{display:block;position:relative;width:147px;height:48px}.logo-art img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.logo-art>img:first-child{filter:brightness(0)}.logo-art .logo-red{clip-path:inset(0 0 0 92.5%)}[data-theme=dark] .logo-art>img:first-child{filter:brightness(0) invert(1)}.brand:active{transform:scale(.97)}.header-divider{width:1px;height:24px;background:var(--line)}.primary-nav{display:flex;gap:4px;align-items:center;flex:1}.primary-nav a{padding:11px 12px;border-radius:10px;color:var(--muted);font-size:12px;font-weight:700;white-space:nowrap;position:relative}.primary-nav a.active{color:var(--ink);background:var(--surface)}.primary-nav a.active:after{content:'';position:absolute;left:calc(50% - 2px);bottom:3px;width:4px;height:4px;border-radius:50%;background:var(--good)}.header-actions{display:flex;align-items:center;gap:12px}.role-switch{font-size:10px;color:var(--muted);border:1px solid var(--line);border-radius:8px;padding:7px 10px;white-space:nowrap}.content{max-width:1248px;margin:auto;padding:22px 32px 0;min-height:calc(100dvh - 150px);perspective:1500px}.screen{transform-origin:50% 30%}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:4px 0 28px}.page-heading .eyebrow{margin-bottom:12px}.page-heading p:not(.eyebrow){font-size:13px;margin-top:13px;max-width:580px}.bottom-caption{max-width:1248px;margin:30px auto 0;padding:20px 32px;display:flex;justify-content:space-between;color:var(--muted);font-size:9px;letter-spacing:1px;border-top:1px solid var(--line)}.offline-state{letter-spacing:0}.surface{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow)}.section-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:27px 0 16px}.section-heading h2{font-size:19px}.today-layout{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:22px}.feature-course{overflow:hidden;position:relative}.feature-media{padding:16px;background:var(--surface2);border-bottom:1px solid var(--line)}.feature-media .v-block{margin:0!important}.feature-media .vb-heading{display:none}.feature-media .vb-media{max-height:290px}.feature-body{padding:25px 28px;display:flex;align-items:center;gap:22px}.feature-body>div{flex:1}.feature-body h2{margin:8px 0;font-size:26px}.feature-body p{font-size:12px;max-width:470px}.today-aside{display:flex;flex-direction:column;gap:18px}.route-card{padding:24px;flex:1;box-shadow:none}.route-card h3{margin:10px 0 20px}.route-list{list-style:none;margin:0;padding:0;display:grid;gap:0}.route-list li{display:flex;gap:12px;align-items:flex-start;position:relative;padding-bottom:22px;font-size:12px}.route-list li:not(:last-child):before{content:'';position:absolute;left:11px;top:26px;bottom:2px;width:1px;background:var(--line)}.route-dot{width:24px;height:24px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;flex-shrink:0;font-size:9px;background:var(--surface2)}.route-dot.current{background:var(--accent);color:var(--bg)}.route-list small{display:block;color:var(--muted);margin-top:3px}.brief-card{background:var(--accent-soft);padding:23px;border-radius:var(--radius);border:1px solid var(--line)}.brief-card .eyebrow{color:var(--good)}.brief-card h3{margin:10px 0 7px}.brief-card p{font-size:11px}.today-lower{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;margin-top:22px}.compact-card{display:flex;align-items:center;text-align:left;gap:18px;padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:18px;min-height:116px}.compact-card>div{flex:1}.compact-card h3{font-size:14px;margin:6px 0}.compact-card p{font-size:11px}.compact-card .medal{width:76px;height:76px;flex-shrink:0}.compact-card> .icon{width:32px;height:32px;color:var(--muted)}
.course-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.course-card{padding:0;overflow:hidden;text-align:left;border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:var(--shadow)}.course-card:hover{transform:translateY(-3px)}.course-art{height:168px;background:var(--surface2);display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.course-art:before,.course-art:after{content:'';position:absolute;border:1px solid var(--line);width:170px;height:110px;border-radius:20px;transform:rotate(-10deg) translate(-28px,10px);background:var(--surface);box-shadow:0 10px 16px #00000008}.course-art:after{transform:rotate(9deg) translate(25px,-6px);background:var(--bg)}.course-art strong{font-size:54px;line-height:1;z-index:1;font-weight:450;letter-spacing:-5px;transform:rotate(-4deg);color:var(--muted)}.course-card-copy{padding:26px}.course-card h2{margin:10px 0 12px;font-size:25px}.course-card p{font-size:12px}.course-card-foot{display:flex;justify-content:space-between;align-items:center;margin-top:24px}.progress-bar{height:5px;flex:1;max-width:180px;background:var(--surface2);border-radius:8px;overflow:hidden}.progress-bar i{display:block;height:100%;background:var(--good);border-radius:8px}.course-detail{display:grid;grid-template-columns:280px minmax(0,1fr);gap:30px}.course-overview{padding:25px;align-self:start;position:sticky;top:25px}.course-overview .course-art{border-radius:14px;height:150px;margin-bottom:22px}.course-overview h2{margin:10px 0 14px}.course-overview p{font-size:12px}.module-card{padding:0 24px;margin-bottom:16px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}.module-card summary{display:flex;gap:16px;align-items:center;cursor:pointer;padding:21px 0;list-style:none}.module-card summary::-webkit-details-marker{display:none}.module-card summary>div{flex:1}.module-card summary h3{font-size:16px}.module-card summary p{font-size:11px;margin-top:4px}.module-card summary .icon{transition:transform .3s}.module-card[open] summary>.icon{transform:rotate(90deg)}.step-number{font-size:11px;width:32px;height:32px;border:1px solid var(--line);display:grid;place-items:center;border-radius:10px;color:var(--muted)}.lesson-row{display:flex;align-items:center;gap:15px;border:0;border-top:1px solid var(--line);padding:20px 0;text-align:left;background:none;width:100%}.lesson-row.active .step-number{background:var(--accent);color:var(--bg)}.lesson-row .row-title{font-size:12px}.course-empty{padding:40px;border:1px dashed var(--line);border-radius:18px;text-align:center}
.lesson-topline{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;gap:20px}.lesson-topline .eyebrow{font-size:9px}.lesson-layout{display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:26px}.lesson-paper{overflow:hidden}.lesson-title{padding:28px 34px 22px}.lesson-title h1{font-size:38px;margin:12px 0 15px;letter-spacing:-1.4px}.lesson-title p{font-size:13px}.lesson-tabs{display:flex;gap:6px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px 22px;background:var(--bg)}.lesson-tabs button{flex:1;border:0;border-radius:9px;background:none;padding:11px 8px;color:var(--muted);font-size:11px;font-weight:750}.lesson-tabs button.active{color:var(--ink);background:var(--surface);box-shadow:0 2px 6px #0000000a}.lesson-body{padding:28px 34px}.lesson-body .v-block{margin-bottom:24px}.lesson-body .prose{font-size:14px;line-height:1.8;color:var(--muted);white-space:pre-line}.lesson-body .prose h2{color:var(--ink);margin-bottom:14px;font-size:23px}.lesson-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:space-between;margin-top:25px}.lesson-context{padding:22px;align-self:start;position:sticky;top:22px;box-shadow:none}.lesson-context h3{margin:12px 0 20px;font-size:15px}.mini-steps{display:grid;gap:8px}.mini-steps button{border:1px solid transparent;background:none;display:flex;gap:12px;text-align:left;padding:11px 8px;border-radius:10px;font-size:11px}.mini-steps button.active{border-color:var(--line);background:var(--surface2)}.mini-steps .icon{width:16px;height:16px}.quiz-question{min-width:0;border:0;border-top:1px solid var(--line);padding:18px 0 0;margin:4px 0 10px;display:grid;gap:10px}.quiz-question legend{font-weight:700;padding:0 0 10px}.quiz-option{border:1px solid var(--line);border-radius:12px;padding:17px;display:flex;gap:12px;font-size:13px;cursor:pointer}.quiz-option:has(:checked){background:var(--accent-soft);border-color:var(--good)}.quiz-feedback{padding:12px;border-radius:10px;background:var(--accent-soft);font-size:12px;color:var(--good)}.task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.task-card{padding:27px;text-align:left}.task-card .task-icon{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line);border-radius:13px;margin-bottom:28px;background:var(--bg)}.task-card h2{font-size:22px;margin:12px 0}.task-card p{font-size:12px;min-height:40px}.task-card footer{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-top:24px}.split-page{display:grid;grid-template-columns:290px minmax(0,1fr);gap:22px}.filter-panel{padding:22px;align-self:start}.filter-list{display:grid;gap:7px;margin-top:18px}.filter-list button{background:none;border:0;display:flex;align-items:center;justify-content:space-between;padding:13px;border-radius:10px;font-size:12px;text-align:left}.filter-list button.active{background:var(--accent-soft);color:var(--good)}.submission-list{overflow:hidden}.submission-row{display:flex;width:100%;align-items:center;gap:18px;padding:24px;border:0;border-bottom:1px solid var(--line);background:var(--surface);text-align:left}.submission-row:last-child{border-bottom:0}.submission-row .row-title{font-size:14px}.submission-state{width:42px;height:42px;display:grid;place-items:center;background:var(--surface2);border-radius:13px}.submission-state.good{background:var(--accent-soft);color:var(--good)}.empty{padding:45px;text-align:center}.empty h3{margin:15px 0 10px}.empty p{font-size:12px}.answer-detail{white-space:pre-wrap;font-size:13px;background:var(--bg);border-radius:14px;padding:20px;color:var(--ink);margin:20px 0}
.profile-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:22px}.profile-card{padding:32px;text-align:center}.profile-card .avatar{width:96px;height:96px;font-size:25px;margin-bottom:23px;border-radius:18px}.avatar-box{display:grid;justify-items:center;gap:4px;margin-bottom:18px}.avatar-box .avatar{margin-bottom:0!important}.avatar-box .text-link{font-size:11px;color:var(--muted)}.avatar img{width:100%;height:100%;object-fit:cover;display:block}.profile-card h2{font-size:25px}.profile-card p{margin:8px 0;font-size:12px}.profile-id{font-family:monospace;font-size:10px;letter-spacing:2px;color:var(--muted);margin-top:24px}.profile-content{display:grid;gap:20px}.profile-section{padding:27px}.profile-section h2{font-size:19px}.profile-row{display:flex;align-items:center;gap:16px;padding:18px 0;border-bottom:1px solid var(--line)}.profile-row:last-child{border:0;padding-bottom:0}.profile-row>div{flex:1}.profile-row strong{font-size:12px}.profile-row p{font-size:11px;margin-top:4px}.switch{border:0;border-radius:20px;background:var(--line);width:43px;height:25px;padding:3px;flex-shrink:0}.switch:before{content:'';display:block;width:19px;height:19px;background:var(--surface);border-radius:50%;transition:transform .25s;box-shadow:0 2px 4px #0002}.switch[aria-checked=true]{background:var(--good)}.switch[aria-checked=true]:before{transform:translateX(18px)}.profile-stats{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:27px}.profile-stats strong{font-size:25px;display:block}.profile-stats small{font-size:10px;color:var(--muted)}.access-steps{display:flex;gap:8px;margin:20px 0}.access-steps span{flex:1;padding:12px 6px;text-align:center;background:var(--surface2);border-radius:10px;font-size:10px}.access-steps span:first-child{color:var(--good);background:var(--accent-soft)}.awards-summary{display:flex;gap:30px;align-items:center;margin-bottom:28px;padding:24px 30px}.awards-summary strong{font-size:40px;letter-spacing:-2px}.awards-summary p{font-size:12px;max-width:460px}.awards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.award-card{position:relative;text-align:center;padding:23px;border:1px solid var(--line);border-radius:22px;background:var(--surface);overflow:hidden}.award-card .eyebrow{font-size:9px;text-align:left}.award-card h3{margin:12px 0 8px}.award-card p{font-size:11px;min-height:34px;margin-bottom:20px}.medal{display:inline-block;width:172px;height:172px;transform-style:preserve-3d;filter:drop-shadow(0 15px 10px #0002);will-change:transform}.medal svg{width:100%;height:100%;display:block}.medal.locked{filter:grayscale(.9) drop-shadow(0 12px 10px #0001);opacity:.45}.medal.available{filter:grayscale(.3) drop-shadow(0 15px 10px #0002)}.award-card .medal{margin-top:14px}.award-stage{display:grid;place-items:center;min-height:240px;perspective:800px;position:relative}.award-stage:before{content:'';position:absolute;bottom:12px;width:130px;height:20px;background:#0002;border-radius:50%;filter:blur(12px)}.award-stage .medal{width:230px;height:230px;animation:medalEnter 1.2s cubic-bezier(.18,.8,.2,1) both}.award-scene,.completion-scene{text-align:center;padding:15px}.award-scene h2,.completion-scene h2{font-size:32px;margin:12px 0 15px;letter-spacing:-1px}.award-scene p,.completion-scene p{font-size:13px}.award-scene .button{margin-top:24px}.scene-reason{padding:18px;border:1px solid var(--line);border-radius:12px;margin-top:22px;font-size:11px;color:var(--muted)}.completion-symbol{width:86px;height:86px;border-radius:26px;background:var(--accent-soft);color:var(--good);display:grid;place-items:center;margin:20px auto 26px;box-shadow:0 8px 0 var(--line);animation:checkEnter .7s cubic-bezier(.2,.8,.2,1) both}.completion-symbol .icon{width:39px;height:39px}.completion-scene .stack{margin-top:24px}.completion-progress{display:flex;gap:5px;margin:26px 0}.completion-progress i{height:7px;flex:1;border-radius:10px;background:var(--line)}.completion-progress i.done{background:var(--good)}.completion-progress i:last-child{animation:progressEnter .7s .3s both;transform-origin:left}.audio-note{display:flex;justify-content:center;gap:6px;color:var(--muted);font-size:9px;margin-top:20px}.audio-note .icon{width:13px;height:13px}@keyframes medalEnter{0%{transform:translateY(45px) rotateY(-85deg) rotateX(22deg) scale(.58);opacity:0}50%{opacity:1;transform:translateY(-8px) rotateY(16deg) rotateX(-6deg) scale(1.02)}100%{transform:translateY(0) rotateY(-8deg) rotateX(5deg) scale(1)}}@keyframes checkEnter{from{transform:translateY(25px) rotateX(50deg) scale(.65);opacity:0}to{transform:none;opacity:1}}@keyframes progressEnter{from{transform:scaleX(0)}to{transform:scaleX(1)}}
dialog{border:1px solid var(--line);border-radius:26px;background:var(--surface);color:var(--ink);width:min(600px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:34px;box-shadow:0 40px 140px #0005;overflow:auto}dialog:has(.vb-editor){width:min(1120px,calc(100% - 32px))}dialog::backdrop{background:#0b130f70;backdrop-filter:blur(5px)}.modal-close{position:absolute;right:14px;top:14px;z-index:5;font-size:24px;line-height:1;width:34px;height:34px}.modal-open .screen{transform:scale(.975) translateY(4px);transition:transform .45s}.modal-open .app-header{opacity:.6;transition:opacity .3s}#toast{position:fixed;left:50%;bottom:26px;z-index:1000;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:var(--ink);color:var(--bg);padding:13px 20px;border-radius:12px;font-size:12px;max-width:calc(100% - 36px);box-shadow:var(--shadow);transition:transform .25s,opacity .25s}#toast.show{transform:translate(-50%,0);opacity:1}#motion-audit:not([hidden]){position:fixed;right:10px;bottom:10px;z-index:1000;max-width:360px;background:var(--surface);border:1px solid var(--line);padding:8px;font:10px monospace;color:var(--muted);pointer-events:none}
::view-transition-group(focus-card){animation-duration:580ms;animation-timing-function:cubic-bezier(.2,.8,.2,1)}::view-transition-old(root){animation:rootOut .36s both}::view-transition-new(root){animation:rootIn .5s both}::view-transition-old(header),::view-transition-new(header){animation:none}::view-transition-old(focus-card){animation:oldFocus .2s both}::view-transition-new(focus-card){animation:newFocus .45s .12s both}@keyframes rootOut{to{opacity:0;transform:perspective(1200px) translateY(-12px) rotateX(3deg) scale(.98)}}@keyframes rootIn{from{opacity:0;transform:perspective(1200px) translateY(22px) rotateX(-4deg) scale(.98)}}@keyframes oldFocus{to{opacity:0}}@keyframes newFocus{from{opacity:0}to{opacity:1}}
@media(max-width:1100px){.app-header{gap:15px;padding:0 24px}.brand,.logo-art{width:124px}.primary-nav a{font-size:11px;padding:10px 9px}.header-divider{display:none}.role-switch{font-size:9px}.content{padding-left:24px;padding-right:24px}.today-layout{grid-template-columns:minmax(0,1fr) 250px}.feature-body{padding:22px;display:block}.feature-body .button{margin-top:18px}.today-lower{gap:12px}.compact-card{padding:18px;gap:12px}.compact-card .medal{width:62px;height:62px}.lesson-layout{grid-template-columns:minmax(0,1fr) 220px}.lesson-title,.lesson-body{padding:24px}.primary-nav .icon{display:none}}
@media(max-width:780px),(max-height:520px) and (orientation:landscape){.app-header{height:auto;min-height:116px;flex-wrap:wrap;gap:12px;padding:18px 20px 0;justify-content:space-between}.brand,.logo-art{width:137px;height:42px}.header-actions{margin-left:auto}.primary-nav{order:3;flex-basis:100%;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--line);padding:0 0 10px;gap:3px}.primary-nav a{padding:10px 13px;font-size:11px}.content{padding:24px 20px 0}.page-heading{align-items:flex-start;margin-bottom:24px;gap:15px}.page-heading h1{font-size:32px;letter-spacing:-1.2px}.page-heading .eyebrow{font-size:9px}.page-heading p:not(.eyebrow){font-size:12px}.page-heading>.button{padding:10px;min-height:40px;font-size:10px}.today-layout{grid-template-columns:1fr}.today-aside{display:grid;grid-template-columns:1fr 1fr}.route-card{padding:20px}.route-list li{padding-bottom:15px;font-size:11px}.brief-card{padding:20px}.today-lower{grid-template-columns:1fr}.compact-card{min-height:95px}.feature-body{display:flex;padding:23px}.feature-body .button{margin-top:0;white-space:nowrap}.feature-body h2{font-size:24px}.course-grid{gap:17px}.course-card-copy{padding:21px}.course-art{height:140px}.course-card h2{font-size:21px}.course-detail{grid-template-columns:1fr}.course-overview{position:static}.course-overview .course-art{display:none}.lesson-layout{grid-template-columns:1fr}.lesson-context{position:static;order:-1;padding:16px}.lesson-context>.eyebrow,.lesson-context>h3,.lesson-context>.divider,.lesson-context>.note{display:none}.mini-steps{display:flex;gap:6px;overflow:auto}.mini-steps button{white-space:nowrap;flex:1;font-size:10px;padding:8px}.lesson-title h1{font-size:31px}.split-page{grid-template-columns:1fr}.filter-panel{padding:16px}.filter-panel>.eyebrow{display:none}.filter-list{display:flex;gap:4px;margin:0;overflow:auto}.filter-list button{padding:10px;font-size:11px;gap:15px;white-space:nowrap}.profile-layout{grid-template-columns:1fr}.profile-card{display:grid;grid-template-columns:80px 1fr;gap:10px;text-align:left;padding:24px}.profile-card .avatar-box{grid-row:1/4;margin:0;align-self:start}.profile-card .avatar{width:70px;height:70px;border-radius:14px;font-size:20px;margin:0}.profile-card h2{font-size:23px}.profile-card p{margin:0}.profile-card .profile-id{margin-top:5px}.profile-stats{grid-column:1/3;display:flex;gap:50px;border-top:1px solid var(--line);padding-top:18px;margin-top:14px}.awards-grid{gap:15px;grid-template-columns:repeat(2,minmax(0,1fr))}.award-card{padding:18px}.award-card .medal{width:145px;height:145px}.bottom-caption{padding:20px;gap:10px;font-size:8px}.role-switch{font-size:9px}.lesson-topline .eyebrow{max-width:50%;text-align:right}.submission-row{padding:20px}.submission-row>.status{display:none}.task-grid{gap:17px}.task-card{padding:21px}.task-card h2{font-size:21px}.task-card footer{flex-wrap:wrap}}
@media(max-width:480px){.today-aside{grid-template-columns:1fr}.route-list{display:flex;gap:12px}.route-list li{flex:1;display:block;padding:0;font-size:10px}.route-list li:before{display:none}.route-dot{margin-bottom:7px}.route-card h3{margin-bottom:16px}.brief-card{display:none}.feature-media{padding:8px}.feature-body{display:block;padding:22px}.feature-body .button{margin-top:20px;width:100%}.feature-body h2{font-size:26px}.course-grid,.task-grid{grid-template-columns:1fr}.course-art{height:130px}.course-card-copy{padding:23px}.lesson-title,.lesson-body{padding:22px}.lesson-tabs{padding:8px 10px}.lesson-tabs button{font-size:10px;padding:10px 5px}.lesson-actions .button{width:100%}.profile-section{padding:22px}.awards-grid{gap:11px}.award-card{padding:14px 10px}.award-card .medal{width:126px;height:126px}.award-card h3{font-size:14px}.award-card p{font-size:10px}.award-card .eyebrow{font-size:8px;letter-spacing:1px}.awards-summary{padding:20px;gap:18px}.awards-summary p{font-size:11px}.bottom-caption>span:first-child{max-width:50%}dialog{padding:28px 22px;border-radius:20px;width:calc(100% - 24px)}.award-scene,.completion-scene{padding:12px 0}.award-scene h2,.completion-scene h2{font-size:27px}.award-stage{min-height:220px}.award-stage .medal{width:200px;height:200px}.access-steps{gap:5px}.access-steps span{font-size:9px}.profile-row{gap:10px}.lesson-topline .text-link{font-size:11px}.role-switch{padding:6px 8px}.header-actions{gap:8px}.avatar{width:34px;height:34px}}
[data-motion=reduce] *,[data-motion=reduce] *:before,[data-motion=reduce] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}[data-motion=reduce] .medal{will-change:auto;transform:none!important}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

:root{--surface-2:var(--surface2);--text:var(--ink);--border:var(--line);--success:var(--good)}
.feature-media .vb-caption{display:none}.feature-media .vb-media{aspect-ratio:16/8!important;max-height:none}.feature-media .vb-controls{margin:8px 4px 0}
@media(max-width:480px){.feature-media .vb-media{aspect-ratio:4/3!important;max-height:none}}

.custom-award-stage .mentor-custom-medal{width:220px;height:220px;animation:medalEnter 1.2s cubic-bezier(.18,.8,.2,1) both}
.feature-media .vb-title,.feature-media .vb-description{display:none}.profile-card{align-self:start}.route-card .text-link{margin-top:4px}
.button:hover .icon:last-child,.text-link:hover .icon:last-child{transform:translateX(3px)}.button .icon,.text-link .icon{transition:transform .2s}.lesson-tabs button.active{animation:tabSeat .35s cubic-bezier(.2,.8,.2,1)}@keyframes tabSeat{from{transform:translateY(3px)}to{transform:none}}
.filter-panel,.submission-list,.row-main{min-width:0}.submission-row .row-title{overflow-wrap:anywhere}.filter-list{max-width:100%}#motion-audit{overflow-wrap:anywhere;word-break:break-word;max-width:min(360px,calc(100vw - 20px))}
@media(max-width:780px),(max-height:520px) and (orientation:landscape){.split-page{grid-template-columns:minmax(0,1fr)}.filter-panel{max-width:100%;overflow:hidden}.filter-list{overflow-x:auto}.submission-row{gap:12px}.submission-row>.icon{width:16px}.submission-row .row-title{font-size:13px}.submission-row .row-meta{font-size:10px}}
.awards-summary>strong{white-space:nowrap;flex-shrink:0}.awards-summary>p{min-width:0}
.m4-page .m4-course-open{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}.m4-page .m4-course-map{margin-top:auto;min-height:81px}.m4-page .m4-course-meta{margin-top:0}@media(max-width:780px),(max-height:520px) and (orientation:landscape){.m4-page .m4-course-map{min-height:0;margin-top:10px}}
dialog:has(.vb-editor)>.modal-close{display:none}
h1[tabindex="-1"]:focus{outline:none}

/* Keep horizontal lesson navigation inside its responsive grid track. */
.lesson-layout>.lesson-paper,.lesson-layout>.lesson-context{min-width:0;max-width:100%}.lesson-title,.lesson-tabs,.lesson-body{min-width:0}.mini-steps{max-width:100%;min-width:0}.mini-steps button{flex-shrink:0}.lesson-body input,.lesson-body textarea,.lesson-body select{max-width:100%;min-width:0}
@media(max-width:780px),(max-height:520px) and (orientation:landscape){.lesson-layout{grid-template-columns:minmax(0,1fr)}.lesson-tabs button{min-width:0}.lesson-topline>*{min-width:0}}

.auth-tabs{display:flex;gap:6px;margin-top:16px;background:var(--surface2);padding:4px;border-radius:12px}.auth-tabs button{flex:1;border:0;background:none;border-radius:9px;padding:10px;font-weight:750;font-size:12px;color:var(--muted)}.auth-tabs button[aria-selected=true]{background:var(--surface);color:var(--ink);box-shadow:0 1px 0 var(--line)}
.reg-agree{display:flex;gap:10px;align-items:flex-start;font-size:12px}.reg-agree a{text-decoration:underline}
.reg-arm-note{font-size:12px;color:var(--muted);margin:0}.reg-arm-sheet{--reg-cw:#2f6f8f;--reg-ccw:#b8562a;position:fixed;inset:0;z-index:1000;background:#0b0f0dcc;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:16px;overscroll-behavior:contain}:root[data-theme=dark] .reg-arm-sheet{--reg-cw:#7cc4e6;--reg-ccw:#f2a46e}.reg-arm-card{position:relative;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:22px;padding:20px 16px 18px;width:min(440px,100%);margin:auto 0;box-shadow:0 40px 140px #0006;display:grid;gap:10px}.reg-arm-card .eyebrow{margin:0}.reg-arm-x{position:absolute;top:8px;right:8px;width:40px;height:40px;border:0;background:none;font-size:26px;line-height:1;color:var(--muted);border-radius:50%}.reg-arm-x:hover{background:var(--surface2)}.reg-arm-title{font-size:22px;line-height:1.2;margin:0}.reg-arm-title small{font-size:13px;color:var(--muted);font-weight:700;margin-left:4px}.reg-arm-sub,.reg-arm-again{margin:0;font-size:13px}.reg-arm-again{background:var(--accent-soft);border-radius:12px;padding:10px 12px}.reg-drone{width:100%;max-width:360px;height:auto;margin:0 auto;display:block;user-select:none;-webkit-user-select:none}.reg-nose{font-size:11px;font-weight:800;letter-spacing:1px;fill:var(--muted);text-anchor:middle}.reg-frame line{stroke:var(--ink);stroke-width:10;stroke-linecap:round;opacity:.82}.reg-frame rect{fill:var(--surface2);stroke:var(--ink);stroke-width:2}.reg-frame .reg-cam{fill:var(--ink)}.reg-motor{cursor:pointer;outline:none}.reg-disc{fill:var(--surface);fill-opacity:.9;stroke:var(--line);stroke-width:2;stroke-dasharray:5 5;transition:stroke .15s,fill .15s}.reg-motor:hover .reg-disc,.reg-motor:focus-visible .reg-disc{stroke:var(--ink);stroke-dasharray:none}.reg-motor:focus-visible .reg-disc{stroke-width:3}.reg-motor.cw .reg-disc{stroke:var(--reg-cw);stroke-dasharray:none;fill:color-mix(in srgb,var(--reg-cw) 9%,var(--surface))}.reg-motor.ccw .reg-disc{stroke:var(--reg-ccw);stroke-dasharray:none;fill:color-mix(in srgb,var(--reg-ccw) 9%,var(--surface))}.reg-arrows path{fill:none;stroke-width:4;stroke-linecap:round}.reg-motor.cw .reg-arrows path{stroke:var(--reg-cw)}.reg-motor.ccw .reg-arrows path{stroke:var(--reg-ccw)}.reg-head-cw{fill:var(--reg-cw)}.reg-head-ccw{fill:var(--reg-ccw)}.reg-prop path{fill:var(--muted);opacity:.55}.reg-motor.cw .reg-prop path{fill:var(--reg-cw);opacity:.75}.reg-motor.ccw .reg-prop path{fill:var(--reg-ccw);opacity:.75}.reg-motor.cw .reg-prop{animation:reg-spin 1.6s linear infinite}.reg-motor.ccw .reg-prop{animation:reg-spin 1.6s linear infinite reverse}.reg-drone.armed .reg-prop{animation-duration:.25s}@keyframes reg-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.reg-motor .reg-prop{animation:none!important}}.reg-hub{fill:var(--ink)}.reg-mname{fill:var(--surface);font-size:10px;font-weight:800;text-anchor:middle}.reg-mdir{fill:var(--ink);font-size:12.5px;font-weight:750;text-anchor:middle}.reg-motor.unset .reg-mdir{fill:var(--muted)}.reg-arm-hint{font-size:13px;border:1px solid var(--line);border-radius:12px;padding:8px 12px}.reg-arm-hint summary{cursor:pointer;font-weight:750}.reg-arm-hint p{margin:8px 0 2px}.reg-arm-msg{margin:0;min-height:1em;font-weight:700;font-size:13px}.reg-arm-msg:empty{display:none}.reg-arm-msg.bad{color:#b3262e}.reg-arm-msg.good{color:var(--good)}:root[data-theme=dark] .reg-arm-msg.bad{color:#ff8a8a}.reg-arm-card .button{width:100%;justify-content:center}.reg-arm-card .button:disabled{opacity:.55}

.m4-attachments{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0 18px}.m4-attachments figure{margin:0;max-width:min(100%,360px)}.m4-attachments img,.m4-attachments video{display:block;width:100%;max-height:320px;object-fit:contain;border-radius:12px;border:1px solid var(--line);background:var(--surface2)}.m4-attachments figcaption{font-size:10px;color:var(--muted);margin-top:6px}
/* Модуль → блоки обучения → уроки (30.09.2026) */
.module-head{margin:6px 0 26px;max-width:760px}.module-head h1{font-size:38px;letter-spacing:-1.4px;margin:8px 0 10px}.module-head p:not(.eyebrow){color:var(--muted);font-size:14px;line-height:1.55}
.module-meter{display:flex;align-items:center;gap:14px;margin:18px 0 20px;font-size:12px;color:var(--muted)}.module-meter .progress-bar{max-width:260px;height:7px}
.section-list{display:grid;gap:12px;max-width:860px}
.section-card,.lesson-item-main{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:18px;width:100%;padding:20px 22px;text-align:left;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow);transition:transform .2s,border-color .2s}
.section-card:not(:disabled):hover,.lesson-item-main:not(:disabled):hover{transform:translateY(-2px);border-color:var(--accent)}
.section-card:disabled,.lesson-item-main:disabled{cursor:default;box-shadow:none;opacity:.62}
.section-num{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;font-size:17px;font-weight:700;border:1px solid var(--line);color:var(--muted)}
.is-current .section-num,.is-open .section-num{background:var(--accent);color:var(--bg);border-color:var(--accent)}
.is-done .section-num{background:var(--accent-soft);color:var(--good);border-color:transparent}
.section-copy{display:grid;gap:6px;min-width:0}.section-copy strong{font-size:17px;line-height:1.25}.section-copy small{font-size:12px;color:var(--muted)}.section-copy .progress-bar{max-width:220px;margin-top:4px}
.section-state{font-size:11px;letter-spacing:.4px;text-transform:uppercase;color:var(--muted);white-space:nowrap}.is-current .section-state{color:var(--accent);font-weight:700}
.lesson-item{display:grid;gap:4px}.lesson-item-main{grid-template-columns:48px minmax(0,1fr) 20px}.lesson-offline{justify-self:end;font-size:11px;margin-right:6px}
@media(max-width:780px),(max-height:520px) and (orientation:landscape){.module-head h1{font-size:29px}.section-card,.lesson-item-main{grid-template-columns:42px minmax(0,1fr);gap:14px;padding:16px}.section-num{width:42px;height:42px;font-size:15px}.section-state{grid-column:2;font-size:10px}.lesson-item-main>.icon{display:none}.section-copy strong{font-size:16px}.module-head .button{width:100%}}
/* Строгий вид бренда VORON (ТЗ §6, 30.09.2026): чёрный, белый, красный и бордовый вместо зелёного */
:root{--bg:#f4f4f2;--surface:#fff;--surface2:#ececea;--ink:#111;--muted:#5f5f5f;--line:#e0e0dc;--accent:#c8102e;--accent-soft:#fbe8eb;--good:#7a1020;--shadow:0 14px 34px #0000000f;--radius:16px}
:root[data-theme=dark],[data-theme=dark]{--bg:#0e0e0f;--surface:#18181a;--surface2:#232326;--ink:#f2f2f2;--muted:#a3a3a3;--line:#2e2e31;--accent:#ff3b55;--accent-soft:#3a1319;--good:#ff8a99;--shadow:0 14px 34px #0006}
/* Лента урока */
.flow-top{display:flex;justify-content:space-between;align-items:center;gap:12px;max-width:860px;margin:0 auto 12px}
.flow-bar{display:flex;gap:5px;max-width:860px;margin:0 auto 20px}.flow-bar i{flex:1;height:8px;border-radius:4px;background:var(--surface2)}.flow-bar i.on{background:var(--good)}.flow-bar i.now{background:var(--accent)}
.flow-card{max-width:860px;margin:0 auto;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:34px 38px;box-shadow:var(--shadow)}
.flow-read .flow-text{font-size:19px;line-height:1.65;color:var(--ink);margin:10px 0 6px}.flow-text h2{font-size:30px;line-height:1.15;letter-spacing:-.6px;margin:0 0 18px}.flow-text p{margin:0 0 16px}.flow-text strong{color:var(--accent)}
.flow-text ul{margin:0 0 16px;padding-left:22px}.flow-text li{margin:6px 0}.flow-callout{border-left:5px solid var(--accent);background:var(--accent-soft);padding:14px 18px;border-radius:12px;margin:0 0 16px;font-weight:600}
.flow-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:26px;flex-wrap:wrap}.flow-actions .button{min-height:52px;font-size:15px}.flow-actions [data-flow-next]{margin-left:auto;min-width:200px;justify-content:center}
[data-listen].on{background:var(--accent);color:#fff}
.flow-world{padding:22px}.flow-world-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px}.flow-world-head h2{margin:4px 0 6px;font-size:24px}.flow-world-head p{margin:0;color:var(--muted);font-size:14px}
.flow-world-frame{position:relative;height:min(72vh,720px);border-radius:14px;overflow:hidden;background:#111}.flow-world-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.flow-world-status{font-size:14px;color:var(--muted)}[data-world-next].ready{animation:flowPulse 1.4s ease-in-out infinite}@keyframes flowPulse{50%{box-shadow:0 0 0 8px #c8102e2e}}
.flow-done{text-align:center}.flow-done h1{font-size:32px;letter-spacing:-.8px;margin:6px 0 12px}.flow-done .flow-actions{justify-content:center}.flow-done .completion-symbol{background:var(--accent);color:#fff;box-shadow:0 8px 0 #7a1020}.flow-award{margin:18px auto 0;max-width:360px}
.flow-quiz h2{font-size:24px;margin:6px 0 18px}
@media(max-width:780px),(max-height:520px) and (orientation:landscape){.flow-card{padding:22px 18px;border-radius:16px}.flow-read .flow-text{font-size:17px}.flow-text h2{font-size:24px}.flow-world{padding:12px}.flow-world-frame{height:calc(100svh - 230px);min-height:420px}.flow-world-head .button{display:none}.flow-actions [data-flow-next]{min-width:0;flex:1}.flow-top .eyebrow{display:none}}
.flow-text p,.flow-text li{color:var(--ink)}
.flow-text a{color:var(--accent);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}   /* 06.11: ссылка в тексте урока */
/* Телефон: урок на весь экран (шапка прячется, назад — стрелкой урока); шапка на остальных экранах компактнее */
@media(max-width:780px),(max-height:520px) and (orientation:landscape){
  [data-page=lesson] .app-header{display:none}
  [data-page=lesson] .content{padding-top:14px}
  .app-header [data-install]{padding:8px 10px;font-size:11px;min-height:0}
}
@media(max-width:780px),(max-height:520px) and (orientation:landscape){.flow-world-head h2{font-size:19px;margin:2px 0 4px}.flow-world-head p{font-size:13px;line-height:1.4}.flow-world-frame{height:calc(100svh - 200px);min-height:460px}.flow-world .flow-actions{margin-top:12px}}
/* Полигон на весь экран (телефон — горизонтально) */
.flow-world-close{display:none}
.flow-world-frame.is-full{position:fixed;inset:0;height:100vh;height:100svh;z-index:3000;border-radius:0}
.flow-world-frame.is-full .flow-world-close{display:block;position:absolute;left:auto;right:8px;top:calc(env(safe-area-inset-top) + 96px);transform:none;z-index:2;width:40px;height:40px;padding:0;border-radius:50%;border:1px solid rgba(255,255,255,.2);background:rgba(14,14,16,.8);color:#fff;font-weight:700;font-size:20px;line-height:1}
body.world-full{overflow:hidden}
@media(max-width:780px),(max-height:520px) and (orientation:landscape){.flow-world-head .button{display:inline-flex}.flow-world-head{flex-direction:column}.flow-world-head .button{width:100%;justify-content:center}.flow-world-frame{height:56vh;min-height:300px}}
.module-pct{font-size:26px;letter-spacing:-.5px;color:var(--ink);min-width:64px}
.module-gate{margin:-6px 0 18px;padding:12px 14px;border-left:4px solid var(--accent);background:var(--surface);border-radius:10px;font-size:13px;color:var(--ink)!important;max-width:620px}
@media(max-width:780px),(max-height:520px) and (orientation:landscape){
  /* На телефоне опыт — только на весь экран: встроенное окно свёрнуто, мир при этом загружен и работает */
  .flow-world-frame:not(.is-full){height:0;min-height:0;border-radius:0}
  .flow-world .flow-actions{flex-wrap:wrap}.flow-world-status{flex-basis:100%;order:-1;text-align:center;font-size:13px}
  .flow-world-head .button{min-height:56px;font-size:16px}
}
/* Полигон на весь экран: снимаем трансформации у родителей (иначе fixed считается от карточки) и прячем шапку */
body.world-full .app-header,body.world-full .bottom-caption,body.world-full footer{display:none!important}
body.world-full #content,body.world-full .screen,body.world-full .flow-card,body.world-full .content{transform:none!important;filter:none!important;backdrop-filter:none!important;contain:none!important;animation:none!important;view-transition-name:none!important}
/* 03.10: perspective у #content делала его «рамкой» для полноэкранного полигона — низ экрана (где «Начать») не принимал касаний */
body.world-full #content,body.world-full #app,body.world-full .screen,body.world-full .flow-card{perspective:none!important;overflow:visible!important}
.m4-preview-screen{border:1px solid var(--line);border-radius:14px;padding:18px 20px;margin:14px 0;background:var(--surface)}
.m4-preview-screen .flow-text{font-size:16px;line-height:1.6}.m4-preview-screen .flow-text h2{font-size:22px;margin:0 0 10px}
.m4-format-help{margin-top:6px;font-size:12px;line-height:1.5}

/* Телефон: нижняя панель иконок (решение Максима 02.10). Подпись — у открытого раздела или у раздела, выбранного первым нажатием. */
.primary-nav a .icon{display:none}
@media(max-width:780px),(max-height:520px) and (orientation:landscape){
 .primary-nav{position:fixed;left:0;right:0;bottom:0;z-index:50;order:0;flex-basis:auto;display:flex;justify-content:space-around;gap:2px;margin:0;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line);border-bottom:0;overflow:visible}
 .primary-nav a{display:flex;align-items:center;justify-content:center;gap:0;flex:1 1 0;min-width:0;height:44px;padding:0 6px;border-radius:14px;font-size:12px;overflow:hidden;transition:flex-grow .3s ease,background .2s,color .2s}
 .primary-nav a .icon{display:block;width:22px;height:22px;flex:0 0 22px}
 .primary-nav a span{display:inline-block;max-width:0;opacity:0;overflow:hidden;white-space:nowrap;transition:max-width .3s ease,opacity .2s ease,margin .3s ease}
 .primary-nav a.active:after{display:none}
 .primary-nav a.active{background:var(--surface);color:var(--ink);box-shadow:0 2px 0 var(--line)}
 .primary-nav a.active,.primary-nav a.peek{flex:0 0 auto;padding:0 12px}
 .primary-nav a.active span,.primary-nav a.peek span{max-width:120px;opacity:1;margin-left:7px}
 .primary-nav.peeking a.active{flex:1 1 0;padding:0 6px}.primary-nav.peeking a.active span{max-width:0;opacity:0;margin-left:0}
 .primary-nav a.peek{background:var(--accent);color:var(--bg)}
 body{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
 .app-header{min-height:0;padding:14px 16px 0;position:relative;z-index:60}
 .header-divider{display:none}
 .content{overflow-x:clip}
 .today-layout,.today-lower,.course-detail,.lesson-layout,.split-page,.profile-layout{grid-template-columns:minmax(0,1fr)!important}
 .today-layout>*,.today-lower>*,.course-grid>*,.lesson-layout>*,.today-aside>*{min-width:0}
 .today-aside{grid-template-columns:minmax(0,1fr)!important}
 .route-list{overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
 .route-list li{min-width:64px}
}

/* Центр: карточки «Обратная связь», «Программы» — текст не прилипает к краю (02.10). */
.m4-priority>p,.m4-priority>h2{padding:0 25px 20px}
.m4-priority>h2:first-child{padding-top:23px;padding-bottom:12px;font-size:19px}
.m4-priority>.data-row{padding-left:25px;padding-right:25px;width:100%;box-sizing:border-box}
@media(max-width:780px),(max-height:520px) and (orientation:landscape){.m4-priority>p,.m4-priority>h2{padding-left:19px;padding-right:19px}.m4-priority>h2:first-child{padding-top:20px}.m4-priority>.data-row{padding-left:19px;padding-right:19px}}

.signed-out .primary-nav{display:none!important}

/* Связь: баннер объявления на «Сегодня», список вопросов */
.notice-banner{padding:18px 22px;margin-bottom:18px;border-left:4px solid var(--accent);cursor:pointer}.notice-banner p:not(.eyebrow){margin-top:6px;color:var(--ink)}.notice-banner.live{border-left-color:#e8222f}
.talk-item{border-top:1px solid var(--line);padding:14px 0}.talk-item:first-of-type{border-top:0}
@media(max-width:780px),(max-height:520px) and (orientation:landscape){.primary-nav a{min-width:0}}
/* Знаки блоков и инструменты (03.10) */
.vbadge{display:block;width:150px;height:150px;margin:6px auto 0;filter:drop-shadow(0 10px 18px #0000002e)}.vbadge svg{display:block;width:100%;height:100%}
.vbadge.locked{filter:grayscale(1) opacity(.38)}
.award-card.locked{background:var(--surface2);border-style:dashed}.award-card.locked h3{color:var(--muted)}
.award-tool{display:flex;align-items:center;justify-content:center;gap:6px;font-weight:700;color:var(--accent);min-height:0!important;margin:-8px 0 14px!important}.award-tool .icon{width:15px;height:15px}
.awards-summary strong small{font-size:.45em;color:var(--muted);font-weight:700}
.awards-other{font-size:20px;margin:30px 0 14px}
.award-stage.with-badge{min-height:270px}
.award-stage .vbadge{width:230px;height:230px;margin:0;position:relative;z-index:1;animation:badgeEnter 1.4s cubic-bezier(.18,.8,.2,1) both}
.award-stage .vbadge:after{content:'';position:absolute;inset:0;border-radius:50%;background:linear-gradient(115deg,transparent 30%,#fff9 48%,transparent 62%);background-size:250% 100%;mix-blend-mode:overlay;animation:badgeShine 1.6s 1.1s ease-out both}
.award-rays{position:absolute;width:340px;height:340px;border-radius:50%;background:repeating-conic-gradient(from 0deg,#c8102e22 0 8deg,transparent 8deg 22deg);-webkit-mask:radial-gradient(circle,#000 30%,transparent 68%);mask:radial-gradient(circle,#000 30%,transparent 68%);animation:raysIn 1.2s .35s ease-out both,raysSpin 18s linear infinite}
@keyframes badgeEnter{0%{transform:translateY(60px) rotateY(-540deg) scale(.3);opacity:0}55%{opacity:1;transform:translateY(-10px) rotateY(20deg) scale(1.08)}75%{transform:translateY(0) rotateY(-8deg) scale(.98)}100%{transform:none}}
@keyframes badgeShine{from{background-position:120% 0}to{background-position:-60% 0}}
@keyframes raysIn{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}
@keyframes raysSpin{to{rotate:360deg}}
.award-unlock{display:flex;gap:12px;align-items:center;text-align:left;margin:16px auto 0;max-width:420px;padding:14px 16px;border-radius:16px;background:var(--accent-soft);color:var(--good);animation:unlockIn .6s 1.3s both}.award-unlock .icon{width:26px;height:26px;flex:none}.award-unlock b{display:block}.award-unlock span{font-size:12px;opacity:.85}
@keyframes unlockIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.tool-card{display:grid;grid-template-columns:96px 1fr;gap:16px;align-items:center;padding:18px;border:1px solid var(--line);border-radius:22px;background:var(--surface)}
.tool-card .vbadge{width:92px;height:92px;margin:0}.tool-card h3{margin:4px 0 6px}.tool-card p{font-size:13px;margin:0 0 10px}.tool-card .button{display:inline-flex}
.tool-card.locked{background:var(--surface2);border-style:dashed}.tool-mark>.icon{width:56px;height:56px;margin:auto;display:block;opacity:.5}
@media(max-width:680px){.tools-grid{grid-template-columns:1fr}.tool-card{grid-template-columns:72px 1fr;padding:14px}.tool-card .vbadge{width:70px;height:70px}.vbadge{width:118px;height:118px}.award-stage .vbadge{width:190px;height:190px}}
@media(prefers-reduced-motion:reduce){.award-stage .vbadge,.award-rays,.award-unlock,.award-stage .vbadge:after{animation:none}}
.m4-reward-tools{border:1px solid var(--line);border-radius:14px;padding:10px 12px;margin:10px 0;text-align:left;display:grid;gap:6px;font-size:13px}.m4-reward-tools legend{font-weight:800;font-size:12px;padding:0 4px}.m4-reward-tools label{display:flex;gap:8px;align-items:center}.m4-reward-tools small{color:var(--muted)}
.m4-award-object .vbadge{width:140px;height:140px}
.m4-tool-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:4px 0}.m4-tool-row .button.small{min-height:30px;padding:4px 10px;font-size:12px}
/* Кнопки урока на телефоне (03.10): «Дальше» — во всю ширину отдельной строкой, над ней «Назад» · «Слушать» · скорость */
.voice-rate{min-width:52px;padding-left:12px;padding-right:12px;font-weight:800}
.voice-tools{display:flex;gap:8px;align-items:stretch}.voice-tools>[hidden]{display:none!important}.voice-tools>.button{margin:0;min-height:48px;height:48px}.voice-btn{min-width:48px;padding-left:12px;padding-right:12px;justify-content:center}
@media(max-width:520px){.flow-read .flow-actions{display:flex;flex-wrap:nowrap;gap:8px;align-items:stretch}.flow-read .flow-actions>span:empty{display:none}.flow-read .flow-actions .voice-tools{flex:none;gap:6px}.flow-read .flow-actions .voice-tools>.button{min-width:44px;padding-left:10px;padding-right:10px}.flow-read .flow-actions [data-flow-go]{flex:none;font-size:0;gap:0;min-width:44px;padding-left:10px;padding-right:10px}.flow-read .flow-actions [data-flow-go] svg{width:20px;height:20px}.flow-read .flow-actions [data-flow-next]{flex:1 1 auto;min-width:0;min-height:48px;margin:0;justify-content:center;white-space:nowrap;padding-left:10px;padding-right:10px;gap:6px;font-size:14px;overflow:hidden}.flow-read .flow-actions [data-flow-next] svg{flex:none;width:16px;height:16px}}

.offline-pack{display:grid;gap:6px;justify-items:start;margin:18px 0}.offline-status{margin:0;font-size:13px;color:var(--muted);max-width:560px}.offline-status:empty{display:none}.offline-status.ok{color:var(--text)}.offline-banner{padding:16px 18px;margin:0 0 18px;border-left:3px solid var(--accent,#d22)}.offline-banner b{font-size:15px}.offline-pack small{color:var(--muted);font-size:12px;max-width:520px}.offline-pack .button .icon{width:18px;height:18px}

/* Анимированная картинка экрана: без фона, по центру, не выше трети экрана */
.screen-ill{margin:0 0 14px;display:flex;justify-content:center}.screen-ill img{width:100%;max-width:440px;max-height:32vh;object-fit:contain}.screen-ill img[src*="/ctl-"]{max-width:720px;max-height:46vh}   /* 07.10 Максим: картинки профильных уроков мелкие - крупнее (Научный модуль не трогаем) */

/* Тест с разбором сразу (03.10) */
.quiz-option{width:100%;text-align:left;background:var(--surface);color:var(--ink);font:inherit}button.quiz-option:disabled{cursor:default;opacity:1}.quiz-option.right{border-color:#22a55b;background:#22a55b1f;color:var(--ink);font-weight:700}.quiz-option.right::after{content:' ✓';color:#22a55b}.quiz-option.wrong::after{content:' ✕'}.quiz-option.wrong{border-color:#c8102e;background:#c8102e14;color:#c8102e;font-weight:700}.quiz-explain{padding:12px 14px;border-radius:12px;font-size:13px;line-height:1.55}.quiz-explain.good{background:#1f9d5512;color:var(--ink)}.quiz-explain.bad{background:#c8102e10;color:var(--ink)}.quiz-explain.think{background:#f5a6231a;color:var(--ink);border:1px dashed #f5a623}.quiz-summary{padding:16px;border-radius:14px;background:var(--surface2);display:grid;gap:10px}.quiz-summary h3{margin:0}
.dl-progress{display:grid;gap:6px;width:min(520px,100%)}.dl-progress .progress-bar{display:block;height:8px;border-radius:8px;background:var(--surface2);overflow:hidden}.dl-progress .progress-bar i{display:block;height:100%;width:0;background:var(--good);transition:width .3s}.dl-progress b{font-size:12px;color:var(--ink)}

/* Экскурсия по приложению (03.10) */.tour{position:fixed;inset:0;z-index:1000;pointer-events:none}.tour-card{pointer-events:auto}.tour-hint{align-self:center;font-weight:700;color:var(--accent,#c8102e)}.tour-hole{position:fixed;border-radius:16px;box-shadow:0 0 0 9999px rgba(10,10,12,.62);outline:2px solid #fff;transition:all .25s ease;pointer-events:none}.tour-card{position:fixed;left:16px;right:16px;max-width:420px;margin:0 auto;background:var(--surface);color:var(--ink);border-radius:20px;padding:18px 18px 14px;box-shadow:0 20px 60px rgba(0,0,0,.35)}.tour-card h3{margin:4px 0 6px;font-size:20px}.tour-card p{margin:0 0 12px;line-height:1.5}.tour-actions{display:flex;gap:8px;justify-content:space-between}
/* Картинки законов (SVG нарисованы под светлый фон): на тёмной теме — инверсия с поворотом оттенка, линии светлые, красный остаётся красным (03.10) */[data-theme=dark] .screen-ill img:not([data-own-theme]){filter:invert(.9) hue-rotate(180deg) saturate(1.2)}   /* 07.10: картинки профильных уроков (ctl-*.svg — своя тёмная тема) и фото (png/jpg/webp) не инвертируем */
.screen-ill{flex-wrap:wrap;gap:10px}.screen-ill.many img{width:calc(50% - 5px);max-height:26vh}.screen-ill.many img[src*="/ctl-"]{max-height:34vh}

/* Карточка курсанта в центре (03.10) */.m4-cadet-card{max-width:860px}.m4-cadet-kpi{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0}.m4-cadet-kpi div{background:var(--surface2);border-radius:12px;padding:10px}.m4-cadet-kpi b{display:block;font-size:16px}.m4-cadet-kpi small{color:var(--muted,#6b7076)}.m4-mini{width:100%;border-collapse:collapse;font-size:13px;margin:6px 0 16px}.m4-mini th,.m4-mini td{text-align:left;padding:6px 8px;border-bottom:1px solid var(--line,#e5e5e2);vertical-align:top}@media(max-width:600px){.m4-cadet-kpi{grid-template-columns:repeat(2,1fr)}}

.max-steps{margin:10px 0 0;padding-left:20px;line-height:1.6}.max-steps li{margin:4px 0}

/* «Как учиться» под входом (03.10) */.howto{max-width:980px;margin:8px auto 60px;padding:0 16px}.howto h2{font-size:24px;margin:0 0 14px}.howto-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.howto-card{padding:18px;border-radius:18px}.howto-card p{margin:8px 0;line-height:1.55}.howto-card .button.small{margin:6px 6px 0 0}@media(max-width:860px){.howto-grid{grid-template-columns:1fr}}
/* ПК (03.10, Максим: «не выведено в середину»): модуль и блок — одна колонка по центру */@media(min-width:1000px){[data-page=section] .screen,[data-page=course] .screen{max-width:920px;margin-left:auto;margin-right:auto}[data-page=section] .section-list,[data-page=course] .section-list{max-width:none}}
.lesson-item.is-done .section-num{background:#22a55b1f!important;color:#22a55b!important}.lesson-item.is-done .section-num .icon{stroke-width:3}
/* Вход через Яндекс ID (03.10) */
.yandex-row{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-top:18px}.yandex-row>span{text-align:center;color:var(--muted);font-size:12px}.yandex-button{background:#fff;color:#000;border:1px solid var(--line);justify-content:center}.yandex-button b{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#fc3f1d;color:#fff;font-size:13px;margin-right:6px}
/* 03.10 «не всегда видно кнопку Дальше»: на длинном экране кнопки урока прилипают к низу экрана */
.flow-card .flow-actions{position:sticky;bottom:0;z-index:4;background:var(--surface);padding:10px 0 calc(10px + env(safe-area-inset-bottom));margin-bottom:-10px;box-shadow:0 -12px 16px -12px rgba(0,0,0,.18)}
/* Рейтинг скорости на экране «Урок завершён» (03.10) */
.flow-rank{margin:18px 0 4px;padding:16px 18px;border:1px solid var(--line);border-radius:18px;background:var(--surface2)}
.flow-rank-line{margin:0 0 10px;font-weight:750}
.flow-rank-top{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.flow-rank-top li{display:grid;grid-template-columns:28px 1fr auto;gap:8px;align-items:center;padding:6px 8px;border-radius:10px;font-size:14px}
.flow-rank-top li span{color:var(--muted);font-weight:800}.flow-rank-top li small{color:var(--muted)}
.flow-rank-top li.me{background:var(--accent,#c8102e);color:#fff}.flow-rank-top li.me span,.flow-rank-top li.me small{color:#fff}
/* Код для бота в Профиле (03.10 ночь) */
.botcode{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.botcode p{margin:0 0 8px}
.botcode-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.botcode code{font:800 22px/1.2 ui-monospace,Menlo,monospace;letter-spacing:.08em;padding:8px 12px;border-radius:10px;background:var(--surface2);user-select:all}
.botcode small{display:block;margin-top:8px;color:var(--muted)}
.flow-world-frame.is-full.has-exit .flow-world-close{display:none}
/* 04.10 Входящие и оповещения (inbox.js): колокольчик с числом непрочитанных, экран #inbox, окно при открытии */
.inbox-bell{position:relative;width:38px;height:38px;border-radius:9px;color:var(--ink)}.inbox-bell .icon{width:19px;height:19px}.inbox-count{position:absolute;top:-6px;right:-6px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#d61f3a;color:#fff;font-size:10px;font-weight:800;line-height:19px;text-align:center;box-shadow:0 0 0 2px var(--bg)}.inbox-count[hidden]{display:none}.inbox-list{display:grid;gap:0;margin-bottom:20px}.inbox-item{padding:16px 0;border-bottom:1px solid var(--line);display:grid;gap:8px;justify-items:start}.inbox-item:last-child{border:0}.inbox-item h3,.inbox-item h2{color:var(--ink)}.inbox-item.unread h3{font-weight:800}.inbox-item .eyebrow{display:flex;align-items:center;gap:7px}.inbox-dot{width:8px;height:8px;border-radius:50%;background:#d61f3a;display:inline-block}.inbox-body{white-space:pre-wrap;font-size:13px;overflow-wrap:anywhere}.inbox-image{max-width:100%;max-height:70vh;border-radius:12px;border:1px solid var(--line);display:block}.inbox-modal .inbox-item{border:0;padding:6px 0 0}.inbox-modal>.eyebrow{display:flex;gap:8px;align-items:center}.push-section .profile-row{border:0;padding-bottom:0}
@media(max-width:480px){.inbox-bell{width:34px;height:34px}.inbox-item h2{font-size:21px}}

.chat-admin-note{margin:16px 0 0;padding:14px 16px;border-radius:14px;text-align:center;font-weight:700;font-size:1.05rem;background:var(--accent-soft);color:var(--ink)}
/* 05.10 навигация курсанта: внизу 4 пункта с подписями всегда, колокольчик «Сообщения» и аватар «Профиль» в шапке */
.nav-count{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;margin-left:6px;border-radius:9px;background:#d61f3a;color:#fff;font-size:10px;font-weight:800;line-height:1;vertical-align:1px}
.nav-count[hidden]{display:none}
.inbox-bell.active{background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
@media(max-width:780px),(max-height:520px) and (orientation:landscape){
 .primary-nav.learner-nav{gap:4px;padding:6px 8px calc(6px + env(safe-area-inset-bottom))}
 .primary-nav.learner-nav a,.primary-nav.learner-nav a.active{flex:1 1 0;flex-direction:column;gap:3px;height:56px;padding:4px 2px;font-size:11.5px;font-weight:750;overflow:visible;position:relative}
 .primary-nav.learner-nav a span{max-width:100%;opacity:1;margin:0;overflow:hidden;text-overflow:ellipsis}
 .primary-nav.learner-nav a.active span{margin:0}
 .primary-nav.learner-nav .nav-count{position:absolute;top:2px;left:calc(50% + 6px);margin:0;box-shadow:0 0 0 2px var(--bg)}
}
.section-title{display:flex;align-items:center;gap:8px;font-size:18px;margin:26px 0 12px}.section-title .icon{width:20px;height:20px;color:var(--muted)}
.page-heading.sub-heading{margin:8px 0 12px}.page-heading.sub-heading h2{font-size:22px;margin:0}.page-heading.sub-heading p:not(.eyebrow){margin-top:6px}
.tasks-summary{display:grid;gap:12px;width:100%;margin-top:22px;padding:20px 22px;text-align:left;border:1px solid var(--line);cursor:pointer;color:var(--ink)}
.tasks-nums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tasks-nums>span{display:flex;flex-direction:column;gap:2px;font-size:12px;color:var(--muted);background:var(--bg);border-radius:14px;padding:10px 12px}
.tasks-nums b{font-size:24px;line-height:1.1;color:var(--ink)}.tasks-nums .warn b{color:#d61f3a}
.tasks-go{display:flex;align-items:center;gap:8px;font-weight:750;font-size:13px}.tasks-go .icon{width:18px;height:18px}
.today-schedule{margin-top:6px}.today-schedule .notice-banner{margin-bottom:0}
.tasks-debt .surface{margin-top:12px!important}
.profile-head{display:grid;grid-template-columns:330px minmax(0,1fr);gap:22px;align-items:start}
.profile-jump{display:flex;flex-wrap:wrap;gap:10px;align-content:start}
.chip-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-weight:750;font-size:13px}.chip-link .icon{width:18px;height:18px}
.profile-block{margin-top:34px;scroll-margin-top:16px}.anchor-point{scroll-margin-top:16px;height:0}
.theme-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;background:var(--surface2);border-radius:14px;padding:4px;margin:4px 0 10px}
.theme-switch button{min-height:44px;border:0;border-radius:11px;background:none;color:var(--muted);font-weight:750;font-size:12.5px;padding:0 6px}
.theme-switch button[aria-pressed=true]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px #0000001f}
.talk-item.fresh{background:color-mix(in srgb,#d61f3a 6%,transparent);border-radius:12px;padding-left:10px;padding-right:10px}
.inbox-head{margin:26px 0 12px;align-items:center}.inbox-head .section-title{margin:0}
@media(max-width:780px){.profile-head{grid-template-columns:minmax(0,1fr)}.profile-jump{justify-content:center}.tasks-nums b{font-size:20px}.tasks-nums>span{padding:8px 10px;font-size:11px}}
/* 05.10 Максим: «Ваш маршрут» — не бесконечная лента на 176 уроков, а блок с прокруткой, открытый на текущем уроке */
.route-card .route-list{max-height:min(560px,62vh);overflow-y:auto;overflow-x:hidden;position:relative;overscroll-behavior:contain;scrollbar-width:thin;padding-right:4px}
.route-list li.now .route-dot{background:var(--accent);border-color:var(--accent);color:#fff}
.route-list li.now>div{font-weight:700}
@media(max-width:480px){.route-card .route-list{display:grid;gap:0;max-height:min(420px,55vh)}.route-card .route-list li{display:flex;gap:12px;font-size:13px;padding:8px 0}.route-card .route-list li .route-dot{margin-bottom:0}}
/* 05.10 Профиль-«штаб»: строгая шапка с уровнем, награды строками модулей, настройки списком. Шапка приложения без рамок. */
.header-actions .inbox-bell,.header-actions .inbox-bell.active{border:0;background:none;box-shadow:none;width:38px;height:38px;border-radius:50%}
.header-actions .inbox-bell:hover{background:var(--surface2)}
.header-actions .inbox-bell .icon{width:22px;height:22px}
.header-actions .inbox-count{top:1px;right:1px;min-width:17px;height:17px;line-height:17px;font-size:9.5px;padding:0 4px}
.header-actions>.avatar{border:0;border-radius:50%;width:36px;height:36px;background:var(--surface2)}
.hq{display:grid;gap:22px;padding-top:6px}
.hq-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px 28px;align-items:center;padding:24px 26px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);position:relative;overflow:hidden}
.hq-head:before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--accent)}
.hq-id{display:flex;gap:18px;align-items:center;min-width:0}
.hq-avatar{position:relative;flex-shrink:0;width:76px;height:76px;border-radius:50%;border:0;padding:0;background:var(--surface2);color:var(--ink);font-size:22px;font-weight:800;display:grid;place-items:center;overflow:visible;cursor:pointer}
.hq-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.hq-avatar-edit{position:absolute;right:-2px;bottom:-2px;width:26px;height:26px;border-radius:50%;background:var(--ink);color:var(--bg);display:grid;place-items:center;box-shadow:0 0 0 3px var(--surface)}
.hq-avatar-edit .icon{width:13px;height:13px}
.hq-who{min-width:0}.hq-who .eyebrow{margin:0 0 2px}
.hq-who h1{font-size:30px;line-height:1.1;margin:0;letter-spacing:-.6px;overflow-wrap:anywhere}
.hq-meta{display:flex;flex-wrap:wrap;gap:4px 14px;margin:6px 0 0;font-size:12px;color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.5px}
.hq-rank{display:flex;align-items:center;gap:12px;padding:10px 16px 10px 10px;border-radius:14px;background:var(--surface2)}
.hq-rank strong{display:block;font-size:15px;text-transform:uppercase;letter-spacing:1.2px}
.hq-rank small{display:block;font-size:11px;color:var(--muted);line-height:1.45}
.hq-ring{width:58px;height:58px;flex-shrink:0}.hq-ring circle{fill:none;stroke-width:5}
.hq-ring-bg{stroke:var(--line)}.hq-ring-fg{stroke:var(--accent);stroke-linecap:round}
.hq-ring text{font:800 19px Manrope,system-ui,sans-serif;fill:var(--ink)}
.hq-stats{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;border-top:1px solid var(--line);padding-top:16px}
.hq-stats>div{display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:1px;padding:0 14px;border-left:1px solid var(--line)}.hq-stats>div:first-child{border-left:0;padding-left:0}
.hq-stats dd{margin:0;font-size:26px;font-weight:800;letter-spacing:-.5px;line-height:1.1;font-variant-numeric:tabular-nums}
.hq-stats dt{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.8px}
.hq-grid{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:22px;align-items:start}
.hq-main{display:grid;gap:22px;min-width:0}
.hq-block{scroll-margin-top:16px;min-width:0}
.hq-title{display:flex;align-items:center;gap:8px;font-size:13px;text-transform:uppercase;letter-spacing:1.4px;margin:0 0 10px;color:var(--ink)}
.hq-title .icon{width:17px;height:17px;color:var(--accent)}
.hq-sub{font-size:11px;text-transform:uppercase;letter-spacing:1.2px;color:var(--muted);margin:18px 0 8px}
.hq-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow:hidden}
.hq-module{padding:16px 18px}.hq-module+.hq-module{border-top:1px solid var(--line)}
.hq-module-head{display:flex;align-items:baseline;gap:10px;margin-bottom:12px}
.hq-module-head strong{font-size:15px}.hq-module-head>span{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.hq-link{margin-left:auto;display:inline-flex;align-items:center;gap:2px;border:0;background:none;color:var(--accent);font-weight:750;font-size:12px;padding:4px 0;cursor:pointer}.hq-link .icon{width:15px;height:15px}
.hq-badges{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.pbadge{display:inline-grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:none;border-radius:50%;flex-shrink:0;cursor:pointer;transition:transform .15s}
button.pbadge:hover{transform:translateY(-2px)}
.pbadge .vbadge,.pbadge .medal{width:44px!important;height:44px!important;margin:0!important;filter:drop-shadow(0 2px 4px #0003)}
.pbadge.locked{cursor:default}.pbadge.locked .vbadge{filter:grayscale(1) opacity(.35)}
.pbadge.small,.pbadge.small .vbadge{width:36px!important;height:36px!important}.pbadge.small>.icon{width:22px;height:22px;color:var(--muted)}
.hq-next{display:inline-flex;align-items:center;gap:8px;padding-left:12px;margin-left:2px;border-left:1px dashed var(--line);font-size:11px;color:var(--muted);line-height:1.3}
.hq-next b{color:var(--ink);font-weight:700}
.set-list{display:grid}
.set-row{display:flex;align-items:center;gap:12px;min-height:56px;padding:9px 16px;width:100%;text-align:left;color:var(--ink);background:none;border:0;border-top:1px solid var(--line);border-radius:0;font:inherit}
.set-list>.set-row:first-child,.set-list>.anchor-point+.set-row{border-top:0}
.set-row>.icon{width:19px;height:19px;color:var(--muted);flex-shrink:0}
.set-text{flex:1;min-width:0}.set-text strong{display:block;font-size:13.5px;font-weight:700}
.set-text small{display:block;font-size:11.5px;color:var(--muted);line-height:1.4;margin-top:1px}
.set-press{cursor:pointer}.set-press:hover{background:var(--surface2)}.set-press>.icon:last-child{width:16px;height:16px}
.set-danger strong,.set-danger>.icon{color:var(--accent)!important}
.set-actions{display:flex;gap:6px;flex-shrink:0}
.set-btn{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:9px;padding:6px 11px;font-size:12px;font-weight:750;white-space:nowrap;cursor:pointer}
.set-btn:hover{border-color:var(--ink)}.set-btn.on{background:var(--surface2);color:var(--good)}
.set-sub{padding:0 16px 12px 47px;margin-top:-6px}.set-sub summary{font-size:11.5px;color:var(--muted);cursor:pointer;padding:2px 0 4px}.set-sub[open] summary{margin-bottom:4px}.set-sub:not([open]){padding-bottom:8px}.set-sub small{display:block;font-size:11px;color:var(--muted);margin-bottom:6px}
.set-sub .botcode-row{display:flex;gap:8px;align-items:center}.set-sub code{font-size:15px;font-weight:800;letter-spacing:1px}
.seg{display:inline-grid;grid-template-columns:repeat(3,auto);gap:2px;background:var(--surface2);border-radius:10px;padding:3px;flex-shrink:0}
.seg button{border:0;background:none;border-radius:8px;padding:6px 10px;font-size:12px;font-weight:750;color:var(--muted);cursor:pointer}
.seg button[aria-pressed=true]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px #0000002a}
.hq-tool .hq-go{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:750;color:var(--accent);white-space:nowrap}.hq-tool .hq-go .icon{width:15px;height:15px}
.hq-tool:hover{background:var(--surface2)}.hq-tool .set-text small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hq-all{text-align:left}.hq-all h2{margin:2px 0 4px}
.hq-all-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;margin-top:16px}
.hq-all-item{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px;border:0;border-radius:12px;background:none;color:var(--ink);text-align:center;font:inherit;cursor:pointer}
button.hq-all-item:hover{background:var(--surface2)}
.hq-all-item b{font-size:11px;line-height:1.25;font-weight:700}.hq-all-item small{font-size:10px;color:var(--muted);line-height:1.2}
.hq-all-item.locked{cursor:default}.hq-all-item.locked b{color:var(--muted)}
.hq-all-item .pbadge{width:52px;height:52px}.hq-all-item .pbadge .vbadge{width:52px!important;height:52px!important}
@media(max-width:1100px){.hq-grid{grid-template-columns:minmax(0,1fr) 360px}}
@media(max-width:900px){.hq-grid{grid-template-columns:1fr;gap:18px}.hq-main{display:contents}#access{order:9}}
@media(max-width:780px),(max-height:520px) and (orientation:landscape){
 .app-header{min-height:0;padding:12px 16px 4px}
 .hq{gap:18px}
 .hq-head{grid-template-columns:1fr;padding:18px 16px 16px 20px;gap:14px}
 .hq-avatar{width:62px;height:62px;font-size:18px}
 .hq-who h1{font-size:23px}
 .hq-rank{padding:8px 12px 8px 8px}
 .hq-ring{width:50px;height:50px}
 .hq-stats{padding-top:12px}.hq-stats>div{padding:0 8px}.hq-stats dd{font-size:21px}.hq-stats dt{font-size:9.5px;letter-spacing:.4px}
 .hq-module{padding:14px}
 .set-row{padding:9px 14px}
 .set-theme{flex-wrap:wrap}.set-theme .seg{grid-template-columns:repeat(3,1fr);margin-left:31px;width:calc(100% - 31px)}
 .set-sub{padding-left:14px}
}

/* 07.10 тренажёр профильного урока в окне */
.trainer-frame{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--bg)}.trainer-frame iframe{display:block;width:100%;height:clamp(340px,calc(100dvh - 350px),860px);border:0}/* 08.10: заголовок, тренажёр и кнопки - в один экран */@media (max-width:650px){.flow-trainer .flow-world-head p,.flow-trainer [data-trainer-status]{display:none}.flow-trainer .flow-world-head h2{margin-bottom:6px}.trainer-frame iframe{height:clamp(380px,calc(100dvh - 310px),760px)}}

/* REX — уникальные награды (07.10): свои с пульсирующей подсветкой (CSS, не в картинке) */
.rex-list{display:grid;gap:10px;padding:12px}.rex-item{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:var(--card,#fff);border:1px solid var(--line,#ddd);border-radius:14px;padding:8px 12px;color:inherit;font:inherit;cursor:pointer}
.rex-item img{width:64px;height:64px;object-fit:contain;flex:none}.rex-text{display:grid;gap:2px;min-width:0}.rex-text strong{font-size:14px;line-height:1.25}.rex-text small{color:var(--muted,#666);font-size:13px}
.rex-mine{border-color:#c8102e;animation:rexPulse 2.2s ease-in-out infinite}@keyframes rexPulse{0%,100%{box-shadow:0 0 0 0 #c8102e55}50%{box-shadow:0 0 0 6px #c8102e22,0 0 22px 2px #c8102e55}}
.rex-empty,.rex-past{margin:0;color:var(--muted,#666);font-size:14px;line-height:1.45}.rex-modal{text-align:center;display:grid;gap:8px;justify-items:center}.rex-modal img{width:min(280px,70vw);height:auto;border-radius:18px}
.rex-modal.rex-mine img{animation:rexPulse 2.2s ease-in-out infinite}.rex-modal .rex-note{color:var(--muted,#666)}
@media (prefers-reduced-motion:reduce){.rex-mine,.rex-modal.rex-mine img{animation:none;box-shadow:0 0 0 3px #c8102e55}}
/* 08.10: свои REX в профиле - компактными значками */
.rex-badges{display:flex;flex-wrap:wrap;gap:10px}.rex-badge{display:inline-flex;align-items:center;gap:8px;padding:6px 12px 6px 6px;border:1px solid var(--line);border-radius:999px;background:var(--surface,transparent);color:inherit;font:inherit;font-weight:600;cursor:pointer}.rex-badge img{width:36px;height:36px;object-fit:contain}
.m4-rex{margin:16px 0;padding:16px}.m4-rex-list{display:grid;gap:6px}.m4-rex-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.4fr) minmax(0,1fr) auto;gap:10px;align-items:center;padding:6px 0;border-bottom:1px solid var(--line)}.m4-rex-row span,.m4-rex-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width:650px){.m4-rex-row{grid-template-columns:1fr auto}.m4-rex-row span:nth-of-type(2){display:none}}
/* 08.10: список уроков на карточке программы - сразу под описанием, с прокруткой (у Научного 177 уроков - карточки тянулись,
   и список соседнего курса уезжал за экран) */
.m4-course-grid .m4-course-map{margin-top:12px;max-height:420px;overflow:auto;overscroll-behavior:contain}

/* 03.11 (Макс, стенд): «Программа» - пункт управления курсанта. Маршрут модуля по блокам (каждый блок - кнопка), счёт модуля, карточки модулей с верной полоской. */
.route-go{all:unset;box-sizing:border-box;display:flex;gap:12px;align-items:flex-start;width:100%;cursor:pointer;border-radius:10px}
.route-go:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.route-go:hover>div{color:var(--accent)}
.cp-meter{display:flex;align-items:center;gap:12px;margin:2px 0 4px}
.cp-meter strong{font-size:24px;letter-spacing:-.4px;color:var(--ink);min-width:56px}
.cp-meter .progress-bar{flex:1}
.cp-sub{display:block;color:var(--muted);font-size:12px;margin-bottom:18px}
.cp-count{font-size:12px;color:var(--muted);white-space:nowrap;margin:0 auto 0 12px}
.cp-modules{margin-top:30px}
.cp-modules .section-title{margin:0 0 14px}
@media(max-width:480px){.route-card .cp-blocks li .route-go{gap:12px}.cp-meter strong{font-size:20px}}
.route-card .cp-blocks{max-height:none;overflow:visible}   /* блоков 10-15, не 177 уроков - видны все, без прокрутки внутри */
.cp-modules .course-card-foot{flex-wrap:wrap;gap:10px 14px}.cp-modules .course-card-foot .progress-bar{flex:1 1 120px}.cp-count{margin:0}
.today-layout+[data-offline-status]:not(:empty){margin-top:22px}
.cp-layout{grid-template-areas:"main route" "mods route";grid-template-rows:auto 1fr;align-items:start}.cp-layout>article{grid-area:main}.cp-layout>aside{grid-area:route}.cp-layout>.cp-modules{grid-area:mods;margin-top:0}
.cp-layout>.cp-modules .tasks-summary{margin-top:18px;width:100%}
@media(max-width:780px),(max-height:520px) and (orientation:landscape){.cp-layout{grid-template-areas:"main" "route" "mods";grid-template-rows:none}.cp-layout>.cp-modules{margin-top:8px}}
