*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%;background:var(--bg)}body{background:var(--bg);min-height:100dvh;color:var(--text);flex-direction:column;margin:0;font:400 1rem/1.5 system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;display:flex}h1,h2,h3,h4,h5,h6{margin:0 0 .5rem;font-weight:700;line-height:1.25}h1{font-size:1.6rem}h2{font-size:1.25rem}h3{font-size:1.05rem}p{margin:0 0 .75rem}a{color:var(--accent);text-underline-offset:.15em}:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:4px}.muted{color:var(--muted)}.icon{flex:none;width:1.25rem;height:1.25rem}.narrow-only{display:none}.sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.btn{border:1px solid var(--control);background:var(--surface);min-height:2.75rem;color:var(--text);font:inherit;cursor:pointer;border-radius:8px;justify-content:center;align-items:center;gap:.4rem;padding:.5rem 1rem;font-weight:550;text-decoration:none;display:inline-flex}.btn:hover{background:var(--surface2)}.btn:disabled{opacity:.6;cursor:default}.btn-primary{border-color:var(--accent);background:var(--accent);color:var(--on-accent)}.btn-primary:hover{background:var(--accent);filter:brightness(1.1)}.btn-quiet{background:0 0;border-color:#0000}.btn[aria-pressed=true]{border-color:var(--accent);background:var(--surface2)}.field{gap:.3rem;margin-bottom:1rem;display:grid}.field>span{font-weight:550}.field small{color:var(--muted)}.input{border:1px solid var(--control);background:var(--surface);width:100%;min-height:2.75rem;color:var(--text);font:inherit;border-radius:8px;padding:.5rem .75rem}.check{align-items:flex-start;gap:.6rem;margin-bottom:.75rem;display:flex}.check input{width:1.2rem;height:1.2rem;accent-color:var(--accent);margin-top:.15rem}.note{border:1px solid var(--border);background:var(--surface2);border-radius:8px;padding:.6rem .8rem}.note-error{color:var(--danger)}.note-ok{color:var(--ok)}.row{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.wrap{width:100%;max-width:1200px;margin:0 auto;padding:0 1rem}.shell-header{border-bottom:1px solid var(--border);background:var(--surface);position:relative}.shell-bar{align-items:center;gap:1rem;min-height:3.75rem;display:flex}.brand{min-width:0;color:var(--text);text-overflow:ellipsis;white-space:nowrap;flex:0 auto;font-size:1.1rem;font-weight:700;text-decoration:none;overflow:hidden}.nav{flex:auto;gap:.25rem;display:flex}.nav a{color:var(--text);border-radius:8px;padding:.5rem .8rem;font-weight:550;text-decoration:none}.nav a:hover{background:var(--surface2)}.nav a[aria-current=page]{background:var(--surface2);color:var(--accent)}.shell-tools{align-items:center;gap:.5rem;margin-left:auto;display:flex}.menu-button{display:none}.user-menu{position:relative}.user-menu>summary{cursor:pointer;list-style:none}.user-menu>summary::-webkit-details-marker{display:none}.user-panel{z-index:20;border:1px solid var(--border);background:var(--surface);border-radius:10px;width:min(20rem,100vw - 2rem);margin-top:.4rem;padding:1rem;position:absolute;right:0;box-shadow:0 8px 24px #0000002e}.user-panel>*+*{margin-top:.75rem}.shell-main{flex:1 0 auto;padding:1.5rem 0 2.5rem}.shell-footer{border-top:1px solid var(--border);background:var(--surface);color:var(--muted);flex:none;font-size:.95rem}.shell-footer .wrap{flex-wrap:wrap;justify-content:space-between;gap:.5rem 1.5rem;padding-top:1rem;padding-bottom:1rem;display:flex}.shell-footer nav{flex-wrap:wrap;gap:.25rem 1.25rem;display:flex}.card{border:1px solid var(--border);background:var(--surface);border-radius:12px;padding:1.25rem}.stack>*+*{margin-top:1rem}form.stack{max-width:46rem}.tabs{border-bottom:1px solid var(--border);flex-wrap:wrap;gap:.25rem;margin-bottom:1rem;display:flex}.tabs a{color:var(--text);border-bottom:3px solid #0000;padding:.6rem .9rem;font-weight:550;text-decoration:none}.tabs a[aria-current=page]{border-bottom-color:var(--accent);color:var(--accent)}.auth{flex:1 0 auto;place-items:center;padding:2rem 1rem;display:grid}.auth-card{width:100%;max-width:26rem}.auth-school{color:var(--muted);text-align:center;margin-bottom:1rem;font-weight:650}.feature-group{margin-top:1.25rem}.feature-list{border:1px solid var(--border);background:var(--surface);border-radius:10px;margin:0;padding:0;list-style:none}.feature-list li{align-items:flex-start;gap:.75rem;padding:.7rem .9rem;display:flex}.feature-list li+li{border-top:1px solid var(--border)}.feature-list label{flex:auto}.feature-list input{width:1.2rem;height:1.2rem;accent-color:var(--accent);margin-top:.2rem}.tag{border:1px solid var(--border);color:var(--muted);white-space:nowrap;border-radius:999px;margin-left:.4rem;padding:0 .45rem;font-size:.8rem;display:inline-block}.tag-warn{border-color:var(--danger);color:var(--danger)}.tag-ok{border-color:var(--ok);color:var(--ok)}.ring{background:var(--surface);border-radius:50%;flex:none;place-items:center;display:inline-grid;position:relative}.ring svg{width:100%;height:100%}.ring-track,.ring-value{fill:none;stroke-width:4px}.ring-track{stroke:var(--border)}.ring-value{stroke:var(--accent);stroke-linecap:round}.ring-text{font-size:.8rem;font-weight:700;position:absolute}.courses-tools{flex-wrap:wrap;align-items:center;gap:.75rem 1rem;display:flex}.courses-search{flex:16rem;max-width:28rem}.course-grid{grid-template-columns:repeat(auto-fill,minmax(17rem,1fr));gap:1.25rem;margin:1.25rem 0 0;padding:0;list-style:none;display:grid}.course-card{border:1px solid var(--border);background:var(--surface);border-radius:12px;flex-direction:column;display:flex;overflow:hidden}.course-cover{aspect-ratio:16/9;background:var(--surface2);place-items:center;display:grid;position:relative}.course-cover img{object-fit:cover;width:100%;height:100%}.course-cover-letter{color:var(--muted);font-size:3rem;font-weight:700}.course-cover .ring{box-shadow:0 0 0 3px var(--surface);position:absolute;bottom:-1.5rem;left:50%;transform:translate(-50%)}.course-title{text-align:center;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;margin:2.1rem 1rem .25rem;font-size:1.05rem;display:-webkit-box;overflow:hidden}.course-note{text-align:center;margin:0 1rem .75rem;font-size:.9rem}.course-actions{border-top:1px solid var(--border);grid-template-columns:1fr 1fr;margin-top:auto;display:grid}.course-actions>*{text-align:center;place-items:center;min-height:3rem;padding:.5rem;font-weight:600;text-decoration:none;display:grid}.course-actions>*+*{border-left:1px solid var(--border)}.course-go{background:var(--accent);color:var(--on-accent)}.course-locked{color:var(--muted)}.course-card[data-state=closed] .ring-value{stroke:var(--control)}.course-page{grid-template-columns:minmax(0,1fr) 18rem;align-items:start;gap:1.5rem;display:grid}.course-side{text-align:center;justify-items:center;gap:.75rem;display:grid}.contents,.contents-lessons{margin:0;padding:0;list-style:none}.contents>li+li{margin-top:1rem}.contents-chapter{color:var(--muted);letter-spacing:.02em;text-transform:uppercase;margin:0 0 .35rem;font-size:.9rem}.contents-lessons{border:1px solid var(--border);background:var(--surface);border-radius:10px}.contents-lessons>li+li{border-top:1px solid var(--border)}.contents-link{color:var(--text);align-items:flex-start;gap:.65rem;padding:.65rem .8rem;text-decoration:none;display:flex}a.contents-link:hover{background:var(--surface2)}.contents-link[aria-current=page]{background:var(--surface2);box-shadow:inset 3px 0 0 var(--accent)}.contents-link[aria-disabled=true]{color:var(--muted)}.lesson-mark{border:2px solid var(--control);border-radius:50%;flex:none;place-items:center;width:1.35rem;height:1.35rem;margin-top:.1rem;font-size:.8rem;font-weight:700;line-height:1;display:grid}.lesson-mark[data-state=done]{border-color:var(--ok);background:var(--ok);color:var(--surface)}.lesson-mark[data-state=locked]{border-style:dashed}.lesson-name{gap:.1rem;display:grid}.lesson-kind{font-size:.85rem}.shell-main-wide{padding-top:0}.wrap-wide{max-width:none;padding:0}.player{grid-template-columns:20rem minmax(0,1fr);align-items:start;display:grid}.player-side{border-right:1px solid var(--border);max-height:100dvh;padding:1.25rem 1rem;position:sticky;top:0;overflow-y:auto}.player-side h2{font-size:1.05rem}.player-main{width:100%;max-width:54rem;margin:0 auto;padding:1.25rem 1.25rem 3rem}.player-top{flex-wrap:wrap;justify-content:space-between;gap:.25rem 1rem;font-size:.95rem;display:flex}.lesson-body{font-size:1.1rem;line-height:1.65}.block+.block{margin-top:1rem}.lesson-body h2,.lesson-body h3,.lesson-body h4,.lesson-body h5,.lesson-body h6{margin-top:1.5rem}.lesson-body h2{font-size:1.45em}.lesson-body h3{font-size:1.25em}.lesson-body h4{font-size:1.1em}.lesson-body h5,.lesson-body h6{font-size:1em}.block:first-child>:is(h2,h3,h4,h5,h6),.lesson-body .card>:is(h2,h3,h4,h5,h6):first-child{margin-top:0}.lesson-body p,.lesson-body figure{margin:0}.lesson-body ul,.lesson-body ol{margin:0;padding-left:1.5rem}.lesson-body li+li{margin-top:.3rem}.lesson-body img,.lesson-body video{border-radius:8px;max-width:100%;height:auto;display:block}.lesson-body audio{width:100%}.lesson-body figcaption{color:var(--muted);margin-top:.4rem;font-size:.95rem}.lesson-body code{background:var(--surface2);border-radius:4px;padding:.05em .3em;font-size:.95em}.lesson-body pre{border:1px solid var(--border);background:var(--surface);border-radius:8px;margin:0;padding:.9rem 1rem;font-size:.95rem;overflow-x:auto}.lesson-body pre code{background:0 0;padding:0}.lesson-body hr{border:0;border-top:1px solid var(--border)}.table-wrap{overflow-x:auto}.lesson-body table{border-collapse:collapse;background:var(--surface);width:100%}.lesson-body th,.lesson-body td{border:1px solid var(--border);text-align:left;vertical-align:top;padding:.5rem .7rem}.lesson-body th{background:var(--surface2)}.video-frame,.embed{border:1px solid var(--border);background:var(--surface);border-radius:8px;width:100%;display:block}.video-frame{aspect-ratio:16/9}.embed-pdf{height:75dvh}.lesson-controls{border-top:1px solid var(--border);margin-top:2rem;padding-top:1rem}.lesson-buttons{justify-content:space-between}.quiz-terms{margin:0;padding-left:1.25rem}.quiz-verdict{margin-bottom:.25rem;font-size:1.15rem;font-weight:700}.quiz-head{justify-content:space-between}.quiz-question{font-size:1.2rem;font-weight:650}.quiz-options{border:0;gap:.6rem;margin:0;padding:0;display:grid}.quiz-options legend{margin-bottom:.5rem;padding:0}.quiz-option{border:2px solid var(--border);cursor:pointer;border-radius:10px;align-items:flex-start;gap:.7rem;padding:.8rem .9rem;display:flex}.quiz-option[data-picked="1"]{border-color:var(--accent);background:var(--surface2)}.quiz-option input{width:1.2rem;height:1.2rem;accent-color:var(--accent);margin-top:.2rem}.quiz-number{min-width:2.75rem;padding:.25rem}.quiz-number[data-answered="1"]{border-color:var(--accent)}.quiz-number[aria-current=true]{background:var(--accent);color:var(--on-accent)}.assignment-text{white-space:pre-wrap}textarea.input{resize:vertical;min-height:8rem}.bell>summary{position:relative}.bell-count{background:var(--danger);min-width:1.2rem;color:var(--surface);text-align:center;border-radius:999px;padding:0 .3rem;font-size:.7rem;font-weight:700;line-height:1.2rem;position:absolute;top:.15rem;right:.1rem}.bell-list{gap:.6rem;max-height:60dvh;margin:0;padding:0;list-style:none;display:grid;overflow-y:auto}.test-player{align-content:center;gap:.5rem;min-height:100dvh;padding:1rem;display:grid}.test-player progress{width:100%;accent-color:var(--accent)}.row-between{justify-content:space-between}.row-top{align-items:flex-start}.field-grow{flex:14rem;min-width:0}.row>.field{margin-bottom:0}.input-auto{width:auto}.input-short{width:7rem}.input-title{font-size:1.25rem;font-weight:700}fieldset.plain,fieldset.field{border:0;min-width:0;margin:0;padding:0}fieldset.field>legend{padding:0;font-weight:550}.plain-list{gap:.4rem;margin:0;padding:0;list-style:none;display:grid}.checks{gap:.4rem;display:grid}.checks input,.row>input[type=checkbox],.row>input[type=radio]{width:1.2rem;height:1.2rem;accent-color:var(--accent);flex:none}label.row{flex-wrap:nowrap;align-items:flex-start}label.row>span{min-width:0}label.row>.input{flex:none}.crumbs{flex-wrap:wrap;gap:.4rem;display:flex}.studio-list{gap:.6rem;margin:0;padding:0;list-style:none;display:grid}.studio-course-title{flex:12rem;font-size:1.1rem;font-weight:600}.studio-grid{grid-template-columns:minmax(0,3fr) minmax(0,2fr);align-items:start;gap:1.5rem;display:grid}.cover-preview{aspect-ratio:16/9;object-fit:cover;border:1px solid var(--border);border-radius:8px;width:100%;max-width:22rem;display:block}.image-preview{border-radius:8px;max-width:100%;max-height:22rem;display:block}.outline-chapters,.outline-lessons,.blocks,.list-rows{gap:.75rem;margin:0;padding:0;list-style:none;display:grid}.outline-lessons{border:1px solid var(--border);border-radius:8px;gap:0;margin:.5rem 0 .75rem}.outline-lesson{flex-wrap:nowrap;padding:.4rem .6rem}.outline-lesson+.outline-lesson{border-top:1px solid var(--border)}.outline-none{padding:.6rem .75rem}.outline-head{flex-wrap:nowrap}.outline-title{flex:auto;min-width:0;margin:0;font-size:1.1rem}.outline-link{overflow-wrap:anywhere;flex:auto;min-width:0}.outline-tools{flex-wrap:nowrap;flex:none;gap:.15rem}.outline-tools .btn,.block-tools .btn{min-height:2.25rem;padding:.25rem .55rem}.drag-handle{color:var(--muted);cursor:grab;-webkit-user-select:none;user-select:none;flex:none;padding:.2rem .3rem}.outline-chapter[data-over="1"],.outline-lesson[data-over="1"]{outline:2px dashed var(--accent);outline-offset:-2px}.editor-top{justify-content:space-between}.format-bar{z-index:5;border:1px solid var(--border);background:var(--surface);border-radius:8px;flex-wrap:wrap;align-items:center;gap:.25rem;padding:.4rem .5rem;display:flex;position:sticky;top:0}.format-bar .btn{min-height:2.25rem;padding:.25rem .6rem}.format-b{font-weight:800}.format-i{font-style:italic}.format-u{text-decoration:underline}.format-s{text-decoration:line-through}.format-link{flex:100%}.format-link .input{flex:12rem;width:auto}.rich{border:1px solid var(--control);background:var(--surface);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:8px;min-height:2.75rem;padding:.5rem .75rem}.rich-multi{min-height:5rem;line-height:1.6}.rich-tall{min-height:10rem}.rich-heading{flex:14rem;font-size:1.25rem;font-weight:700}.rich[aria-disabled=true]{background:var(--surface2)}.rich:empty:before{content:attr(data-placeholder);color:var(--muted)}.rich a{color:var(--accent)}.block-edit{gap:.6rem;display:grid}.block-head{justify-content:space-between}.block-tools{gap:.15rem}.block-picker{border-style:dashed}.list-rows{gap:.4rem}.list-row{flex-wrap:nowrap}.list-row .rich{flex:auto;min-width:0}.table-edit{border-collapse:collapse;width:100%}.table-edit th,.table-edit td{border:1px solid var(--border);vertical-align:top;min-width:7rem;padding:.2rem}.table-edit th{background:var(--surface2)}.table-edit .rich{border-color:#0000}.pre-edit{white-space:pre;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.95rem}.embed-video{aspect-ratio:16/9;max-width:32rem}.save-bar{z-index:5;border-top:1px solid var(--border);background:var(--bg);padding:.75rem 0;position:sticky;bottom:0}.quiz-option-edit{flex-wrap:nowrap}.quiz-option-edit .rich{min-width:0}.assignment-text a{color:var(--accent)}@media (max-width:720px){h1{font-size:1.35rem}.menu-button{order:-1;padding-left:.6rem;padding-right:.6rem;display:inline-flex}.wide-only{display:none}.narrow-only{display:inline}.brand{overflow-wrap:anywhere;white-space:normal;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;flex:auto;font-size:1rem;line-height:1.2;display:-webkit-box}.shell-tools{gap:.25rem;margin-left:0}.shell-tools .btn{min-width:2.75rem;padding-left:.5rem;padding-right:.5rem}.user-menu>summary{border-color:var(--border);border-radius:999px;min-width:2.75rem;padding-left:.5rem;padding-right:.5rem}.nav{z-index:15;border-bottom:1px solid var(--border);background:var(--surface);flex-direction:column;padding:.5rem 1rem 1rem;display:none;position:absolute;top:100%;left:0;right:0}.nav[data-open="1"]{display:flex}.nav a{padding:.8rem}.shell-bar{gap:.5rem}.card{padding:1rem}.course-page,.player{grid-template-columns:minmax(0,1fr)}.course-side{order:-1}.player-side{border-top:1px solid var(--border);border-right:0;order:2;max-height:none;position:static}.player-main{padding:1rem 1rem 2rem}.lesson-body{font-size:1.05rem}}@media (prefers-reduced-motion:no-preference){.btn,.nav a{transition:background-color .12s}}@media (max-width:900px){.studio-grid{grid-template-columns:minmax(0,1fr)}.outline-head,.outline-lesson{flex-wrap:wrap}.outline-tools{margin-left:auto}}.table{border-collapse:collapse;background:var(--surface);width:100%}.table th,.table td{border-bottom:1px solid var(--border);text-align:left;vertical-align:top;padding:.55rem .7rem}.table thead th{color:var(--muted);white-space:nowrap;font-size:.85rem;font-weight:550}.table .num{text-align:right;white-space:nowrap}.table input[type=checkbox]{width:1.2rem;height:1.2rem;accent-color:var(--accent)}.table .btn{min-height:2.25rem;padding:.3rem .7rem}.nowrap{white-space:nowrap}.cabinet-search{align-items:flex-end}.modal{border:1px solid var(--border);background:var(--surface);width:min(34rem,100vw - 2rem);max-height:calc(100dvh - 2rem);color:var(--text);border-radius:12px;padding:1.25rem;overflow-y:auto}.modal-wide{width:min(46rem,100vw - 2rem)}.modal::backdrop{background:#00000073}.modal-head{justify-content:space-between;align-items:flex-start;gap:.75rem;margin-bottom:.75rem;display:flex}.modal-head h2{margin:.35rem 0 0}.modal form.stack{max-width:none}.pick-list{border:1px solid var(--border);border-radius:8px;max-height:16rem;padding:.6rem .75rem 0;overflow-y:auto}.pick-hint{display:block}.kv{grid-template-columns:max-content minmax(0,1fr);gap:.35rem 1rem;margin:.75rem 0 0;display:grid}.kv dt{color:var(--muted)}.kv dd{margin:0}details.card>summary{cursor:pointer;font-weight:550}.history{gap:.75rem;margin:0;padding:0;list-style:none;display:grid}.history li{border-bottom:1px solid var(--border);padding-bottom:.75rem}.history li:last-child{border-bottom:0;padding-bottom:0}.tiles{grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:.75rem;margin:0;display:grid}.tiles>div{border:1px solid var(--border);background:var(--surface);border-radius:12px;padding:.75rem 1rem}.tiles dt{color:var(--muted);font-size:.85rem}.tiles dd{margin:0;font-size:1.4rem;font-weight:700}.matrix th,.matrix td{padding:.4rem .35rem}.matrix th[scope=row]{min-width:12rem;font-weight:400}.matrix thead th{white-space:normal}.matrix-group th{background:var(--surface2);font-weight:700}.matrix td{text-align:center;vertical-align:middle}.matrix td .input{max-width:9.5rem;min-height:2.25rem;padding:.2rem .3rem;font-size:.85rem}.matrix thead th{font-size:.8rem}.matrix-off{color:var(--muted)}.journal-buttons{align-self:flex-end}.plain-list>li,.history li,.break,.modal-head h2{overflow-wrap:anywhere;min-width:0}@media (max-width:720px){.cabinet-search>.btn{width:100%}.modal{padding:1rem}.kv{grid-template-columns:minmax(0,1fr);gap:0}.kv dd{margin-bottom:.5rem}}.grounds{margin:.25rem 0 0;padding:0;font-size:.875rem;list-style:none}.grounds li+li{margin-top:.125rem}fieldset.plain>legend{margin-bottom:.5rem;padding:0;font-weight:600}
