:root{font-family:Arial,Helvetica,sans-serif;color:#291f2a;background:#fcfafb;font-synthesis:none;--bg: #fcfafb;--ink: #291f2a;--muted: #766b75;--accent: #a12d56;--line: #eae3e7;--rose: #ebcdd8;--soft: #f3e9ee;line-height:1.6;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:var(--accent);text-underline-offset:4px}button{border:0;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,main:focus-visible{outline:3px solid var(--accent);outline-offset:4px}input{caret-color:var(--accent)}::selection{background:var(--rose);color:var(--ink)}html{scrollbar-color:#b591a2 var(--bg);scrollbar-width:thin}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(30px,4vw,42px);line-height:1.15;letter-spacing:-.035em;margin-bottom:24px;font-weight:500;text-wrap:balance}h2{font-size:25px;line-height:1.3;letter-spacing:-.02em;font-weight:500;margin-bottom:16px}h3{font-size:17px;line-height:1.4;font-weight:600;margin-bottom:5px}p{max-width:70ch;margin-bottom:18px}svg{flex-shrink:0}button svg,a svg{vertical-align:middle}.muted,.small,.field small{color:var(--muted)}.small{font-size:13px;line-height:1.55}.shell{max-width:1120px;margin:auto;min-height:100dvh}.topbar{display:flex;justify-content:space-between;align-items:center;min-height:90px;padding:18px 40px;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;gap:12px;align-items:center;color:var(--ink);text-decoration:none;font-family:Georgia,Times New Roman,serif;font-size:23px;letter-spacing:.04em}.brand img{width:37px;height:37px;object-fit:contain}.top-actions{display:flex;align-items:center;gap:20px}.temporary-notice{padding:15px 40px;background:var(--soft);display:flex;gap:22px;align-items:center;font-size:13px}.temporary-notice p{margin:0;max-width:none;flex:1}.temporary-notice button{font-size:13px;flex-shrink:0}.main{padding:40px 40px 140px}.public-main{padding-bottom:60px}.primary,.secondary,.button-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:50px;padding:12px 20px;border-radius:13px;font-size:15px;text-decoration:none;line-height:1.4}.primary{background:var(--ink);color:#fff}.primary:hover:not(:disabled){background:#443445}.secondary{border:1px solid var(--line);background:transparent;color:var(--ink)}.secondary:hover:not(:disabled){background:var(--soft)}.text-button{background:transparent;color:var(--accent);padding:10px 0;min-height:44px;text-align:left;font-weight:500;text-decoration:underline;text-underline-offset:4px}.text-button:hover{color:var(--ink)}.icon-button{background:transparent;border-radius:50%;display:grid;place-items:center;width:44px;height:44px}.icon-button:hover{background:var(--soft)}.avatar{display:grid;place-items:center;width:76px;height:76px;background:var(--rose);color:var(--ink);font-family:Georgia,serif;font-size:30px;border-radius:50%;flex-shrink:0}.small-avatar{width:44px;height:44px;font-size:18px}.auth-layout{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center}.welcome-art{text-align:center}.welcome-art img{max-width:100%;width:440px;display:block;border-radius:4px}.welcome-art p{font-family:Georgia,serif;font-size:19px;line-height:1.5;margin:16px auto 0}.auth-panel{max-width:410px}.auth-panel h1{font-size:36px}.auth-panel form{display:flex;flex-direction:column;gap:22px;margin:26px 0 12px}.field{display:flex;flex-direction:column;gap:8px;font-size:14px}.field>span{font-weight:600}.field input{background:#fff;min-height:54px;border:1px solid #d4c6ce;border-radius:12px;padding:12px 15px;color:var(--ink);font-size:17px;min-width:0;width:100%}.field input:disabled{background:var(--soft)}.field small{font-size:12px}.check{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5}.check input{width:20px;height:20px;flex-shrink:0;accent-color:var(--accent);margin:0}.code-input{letter-spacing:.2em}.auth-actions{display:flex;flex-direction:column;gap:10px;margin-bottom:26px}.auth-panel>.small{margin-top:26px}.error{background:#fff0ef;color:#8d2828;padding:14px 18px;border-radius:12px;margin:0 0 22px;overflow-wrap:anywhere}.error p{margin:0}.error .text-button{color:inherit}.loading{display:flex;align-items:center;justify-content:center;gap:14px;min-height:180px;color:var(--muted)}.spinner{width:22px;height:22px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.page-heading h1{margin:0}.count{color:var(--muted);font-size:17px;letter-spacing:0;margin-left:9px}.course-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:42px 34px}.course-item{min-width:0}.course-visual{display:block;text-decoration:none;position:relative;color:var(--ink);border-radius:5px;overflow:hidden}.course-cover{height:340px;width:100%;object-fit:cover;display:block;background:var(--rose)}.cover-fallback{display:grid;place-items:center}.cover-fallback img{width:72px;height:72px;object-fit:contain}.course-caption{position:relative;display:flex;align-items:center;justify-content:space-between;background:#f5e1e8;padding:22px;gap:12px}.course-caption h2{font-family:Georgia,Times New Roman,serif;font-size:31px;margin:0;overflow-wrap:anywhere}.round-arrow{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border-radius:50%;background:#ffffffb8}.course-visual:hover .round-arrow{background:#fff}.course-progress{display:flex;align-items:center;gap:15px;margin-top:17px;font-size:12px}.course-progress progress{flex:1;min-width:0;height:4px;accent-color:var(--accent);border:0;background:var(--line)}progress::-webkit-progress-bar{background:var(--line)}progress::-webkit-progress-value{background:var(--accent)}progress::-moz-progress-bar{background:var(--accent)}.course-item>.small{margin:4px 0 0}.dock{position:fixed;z-index:20;bottom:calc(18px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%);display:flex;gap:5px;padding:6px;background:var(--ink);border-radius:30px;max-width:370px;width:calc(100% - 36px)}.dock a{display:flex;align-items:center;justify-content:center;gap:10px;flex:1;min-height:48px;padding:9px;color:#e8dde6;border-radius:24px;font-size:13px;text-decoration:none}.dock a[aria-current]{color:var(--ink);background:var(--rose)}.empty{text-align:center;max-width:620px;margin:25px auto;padding:50px 12px}.empty>svg{width:42px;height:42px;color:var(--accent);margin-bottom:24px}.empty p{margin-left:auto;margin-right:auto}.empty h1{margin-top:0}.course-description,.lesson-text{white-space:pre-wrap;overflow-wrap:anywhere}.lesson-list{padding:0;list-style:none;border-top:1px solid var(--line);margin:32px 0 40px}.lesson-list li{border-bottom:1px solid var(--line)}.lesson-list a{display:flex;align-items:center;gap:18px;padding:23px 12px;color:var(--ink);text-decoration:none;min-height:78px}.lesson-list a:hover{background:var(--soft)}.lesson-list a>span:nth-child(2){flex:1}.lesson-number{width:32px;flex-shrink:0;color:var(--accent);font-size:13px}.breadcrumb{display:inline-block;margin-bottom:18px;font-size:14px}.lesson-content{display:flex;flex-direction:column;gap:32px}.lesson-block{min-width:0}.lesson-text{font-size:17px;line-height:1.8}.video{width:100%;aspect-ratio:16/9;background:#171317;position:relative;border-radius:12px;overflow:hidden}.video-host{width:100%;height:100%}.video .loading{position:absolute;top:0;right:0;bottom:0;left:0;color:#f5e5eb;min-height:0}.video .spinner{border-color:#816574;border-top-color:#f5e5eb}.video iframe{max-width:100%;border:0}.document-row{display:flex;align-items:center;gap:18px;padding:24px 0;border-block:1px solid var(--line)}.document-row>div{flex:1;min-width:0}.document-row h3{overflow-wrap:anywhere}.document-row p{margin:0}.document-row>svg{color:var(--accent);width:28px;height:28px}.lesson-completion{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;padding-top:36px;margin-top:38px;border-top:1px solid var(--line)}.print-panel{padding-top:28px;margin-top:36px;border-top:1px solid var(--line)}.download-list{display:flex;align-items:flex-start;flex-direction:column;gap:12px}.download-list button{max-width:100%;overflow-wrap:anywhere}.profile{max-width:670px;margin:auto}.profile-heading{display:flex;align-items:center;gap:22px;margin-bottom:36px}.profile-heading h1{font-size:34px;margin:0 0 8px}.profile-heading p{margin:0;color:var(--muted)}.profile form{display:flex;flex-direction:column;gap:20px;margin-bottom:36px;max-width:480px}.profile form .primary{align-self:flex-start}.profile-links{display:flex;flex-direction:column;border-top:1px solid var(--line);margin-top:30px}.profile-links a{display:flex;justify-content:space-between;align-items:center;padding:20px 0;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none;gap:15px}.profile-links a:hover{color:var(--accent)}details{border-bottom:1px solid var(--line);padding:18px 0}summary{cursor:pointer;min-height:30px;font-weight:500}details p{margin:16px 0}.delete-section{margin-top:15px}.delete-section .check{margin:20px 0}.danger{color:#a22d2d}.logout{margin-top:26px}.success{color:#42653f;background:#f0f5ed;padding:14px;border-radius:12px}.help{max-width:720px;margin:auto}.help>p{line-height:1.8}.help>p:last-of-type{margin-top:30px}.skip-link{position:fixed;left:15px;top:-60px;z-index:1000;padding:12px;background:var(--ink);color:#fff}.skip-link:focus{top:10px}.pdf-dialog{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:var(--bg);display:flex;flex-direction:column;padding-top:env(safe-area-inset-top);height:100dvh}.pdf-header{display:flex;align-items:center;gap:20px;justify-content:space-between;padding:12px 24px;border-bottom:1px solid var(--line)}.pdf-header h2{font-size:17px;margin:0;overflow-wrap:anywhere}.pdf-header button{flex-shrink:0}.pdf-zoom{display:flex;gap:15px;align-items:center;justify-content:center;padding:8px;border-bottom:1px solid var(--line)}.pdf-zoom>button:not(.text-button){min-width:44px;height:44px;background:var(--soft);border-radius:10px;font-size:23px}.pdf-zoom output{min-width:52px;text-align:center;font-variant-numeric:tabular-nums}.pdf-viewport{flex:1;min-height:0;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:none;-webkit-user-select:none;user-select:none;background:#eee9ed}.pdf-paper{position:relative;transform-origin:center;flex-shrink:0;will-change:transform}.pdf-paper>img{width:100%;height:100%;display:block;pointer-events:none}.pdf-paper>a{position:absolute;display:block;background:transparent}.pdf-paper>a:hover,.pdf-paper>a:focus-visible{background:#a12d561a;outline:2px solid var(--accent);outline-offset:1px}.pdf-hint{font-size:12px;line-height:1.5;text-align:center;margin:0;padding:9px 16px;max-width:none}.pdf-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 22px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line);font-variant-numeric:tabular-nums}.pdf-viewport>.error{max-width:600px;margin:24px}.pdf-footer button{min-width:110px}.pdf-viewport>p{padding:24px}.pdf-viewport .loading{padding:24px}@media(min-width:900px){.course-grid:has(>.course-item:only-child){max-width:650px;grid-template-columns:1fr}.course-grid:has(>.course-item:only-child) .course-cover{height:420px}}@media(max-width:760px){.topbar{padding:15px 22px;min-height:76px}.brand{font-size:20px}.brand img{width:30px;height:30px}.top-actions{gap:14px}.temporary-notice{padding:13px 22px;gap:10px;font-size:12px;align-items:flex-start}.temporary-notice .text-button{font-size:12px;padding-top:0;min-height:30px}.main{padding:30px 22px 130px}.public-main{padding-bottom:40px}.auth-layout{grid-template-columns:1fr;gap:28px;max-width:440px;margin:auto}.welcome-art{display:none}.auth-panel{max-width:none}.auth-panel h1{font-size:32px}.course-grid{grid-template-columns:1fr;gap:34px}.course-cover{height:340px}.course-caption{padding:20px}.course-caption h2{font-size:29px}.page-heading{margin-bottom:22px}.page-heading h1{font-size:36px}.lesson-list a{padding:20px 0;gap:14px}.document-row{flex-wrap:wrap;gap:12px}.document-row>div{flex-basis:calc(100% - 42px)}.document-row button{width:100%;margin-top:4px}.lesson-completion>*{width:100%}.profile-heading h1{font-size:28px}.profile-heading{gap:15px}.profile .avatar{height:60px;width:60px;font-size:26px}.profile form .primary{align-self:stretch}.pdf-header{padding:10px 14px;gap:10px}.pdf-header h2{font-size:15px}.pdf-header .secondary{padding:10px 12px;min-height:44px}.pdf-header .secondary svg{display:none}.pdf-hint{font-size:11px;padding:6px 15px;min-height:45px}.pdf-footer{padding-inline:14px}.pdf-footer button{min-width:95px;padding:10px 12px}.pdf-footer button svg{width:18px}.pdf-zoom{gap:12px;padding:6px}}@media(max-width:360px){.brand{font-size:17px;gap:8px}.topbar{padding-inline:16px}.top-actions{gap:8px}.main,.temporary-notice{padding-inline:16px}.course-cover{height:290px}.temporary-notice{display:block}.temporary-notice .text-button{padding:4px 0 0}.page-heading h1{font-size:30px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
