:root{--wine:#8d1834;--wine-dark:#681128;--ink:#23252a;--muted:#717681;--line:#e8e9ed;--paper:#fff;--surface:#f6f7fa;--blue:#e8f2fa;--green:#e7f3ec;--radius:18px;--shadow:0 6px 24px #1d253005}*{box-sizing:border-box}body{margin:0;background:var(--surface);font-family:Arial,Helvetica,sans-serif;font-size:15px;line-height:1.55;color:var(--ink)}a{color:var(--wine);text-decoration:none}a:hover{text-decoration:underline}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}input,textarea,select{width:100%;border:1px solid #d9dde4;border-radius:10px;background:#fff;padding:12px 14px;color:var(--ink);min-width:0}textarea{resize:vertical;line-height:1.6}input[type=checkbox],input[type=radio]{width:19px;height:19px;flex:0 0 19px;accent-color:var(--wine)}input:focus,textarea:focus,select:focus{outline:3px solid #8d183423;border-color:var(--wine)}label{display:block;font-size:14px;font-weight:600;margin-bottom:20px}label input,label textarea,label select{display:block;margin-top:8px;font-weight:400}form{margin:0}fieldset{border:0;padding:0;margin:0}legend{font-weight:600}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(27px,3vw,40px);line-height:1.15;letter-spacing:-1px;font-weight:700;margin-bottom:14px}h2{font-size:23px;line-height:1.3;letter-spacing:-.5px;margin-bottom:12px}h3{font-size:18px;line-height:1.4}small{font-size:12px;color:var(--muted)}strong{font-weight:700}svg{width:22px;height:22px;flex:0 0 22px}code{font-family:monospace;overflow-wrap:anywhere}dl{display:grid;grid-template-columns:130px 1fr;gap:14px;margin:24px 0}dt{color:var(--muted)}dd{margin:0;overflow-wrap:anywhere}.skip-link{position:fixed;top:-100px;left:10px;z-index:99;background:white;padding:15px}.skip-link:focus{top:10px}.topbar{height:88px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;position:sticky;top:0;z-index:20;gap:16px}.brand{color:#202125;display:flex;align-items:center;gap:14px;text-decoration:none!important;white-space:nowrap}.brand>span{font-weight:800;font-size:28px;letter-spacing:1.5px;line-height:1}.brand b{color:var(--wine)}.brand small{font-size:11px;letter-spacing:3px;font-weight:600;border-left:1px solid #d8dbe1;padding-left:15px}.top-actions{display:flex;align-items:center;gap:23px;min-width:0}.user-pill{display:flex;gap:10px;align-items:center;color:var(--ink);font-size:13px;line-height:1.25;min-width:0}.user-pill small{display:block;margin-top:5px}.avatar{background:var(--blue);color:var(--wine);border-radius:50%;width:39px;height:39px;display:grid;place-items:center;font-size:17px;flex:0 0 39px}.xp-pill{color:var(--wine);font-size:13px;display:flex;align-items:center;gap:5px;white-space:nowrap}.xp-pill svg{width:18px;height:18px;flex-basis:18px}.layout{display:flex;align-items:stretch;max-width:1800px;margin:auto;min-height:calc(100vh - 150px)}.sidebar{width:245px;flex:0 0 245px;background:#fff;border-right:1px solid var(--line);padding:32px 18px;display:flex;flex-direction:column}.nav-label{font-size:10px;letter-spacing:1.6px;color:#9498a1;padding:0 16px;margin:12px 0}.sidebar nav{display:flex;flex-direction:column;gap:4px;margin-bottom:22px}.sidebar nav a{display:flex;gap:12px;align-items:center;padding:12px 15px;color:#5d626d;font-size:13px;border-radius:10px}.sidebar nav a[aria-current],.sidebar nav a:hover{color:var(--wine);background:#f7edf0;text-decoration:none}.sidebar-bottom{font-size:12px;line-height:1.7;color:#9c9fa6;margin-top:auto;padding:28px 16px 0}.main{padding:36px 42px 60px;flex:1;min-width:0}.public-main{max-width:1400px;margin:auto;width:100%;padding-top:30px}.page-heading{margin-bottom:28px}.page-heading p{color:var(--muted);max-width:800px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:var(--wine);display:block;margin-bottom:12px}.button{border:1px solid var(--wine);border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:45px;padding:11px 20px;background:var(--wine);color:#fff;font-size:13px;font-weight:600;text-align:center;text-decoration:none!important}.button:hover{background:var(--wine-dark);border-color:var(--wine-dark)}.button.secondary{background:#fff;color:var(--wine);border-color:#e7d5da}.button.secondary:hover{background:#faf1f4}.button.small{min-height:37px;padding:7px 15px;font-size:12px}.button.full{width:100%}.button.light{background:white;border-color:white;color:var(--wine)}.text-button{padding:4px 0;border:0;background:transparent;color:var(--wine);font-size:12px;white-space:nowrap}.disabled-button{display:block;border-radius:10px;padding:12px 15px;background:#f0f1f4;color:#9a9da5;font-size:12px;text-align:center}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;margin-bottom:22px;box-shadow:var(--shadow);min-width:0}.panel.compact{padding:22px}.panel.narrow{max-width:600px}.notice{border:1px solid #d8e6f1;border-radius:12px;padding:17px 21px;margin:0 0 22px;background:#edf5fb;color:#425c71;font-size:14px;overflow-wrap:anywhere}.notice p:last-child{margin-bottom:0}.notice.success{background:var(--green);border-color:#d0e4d8;color:#2e6c45}.notice.warm{background:#fff7e8;border-color:#f1e1c1;color:#785c28}.notice.error{background:#fbeced;border-color:#f0cdd1;color:#982737}.badge{display:inline-flex;align-items:center;min-height:25px;border-radius:7px;background:#edf0f5;color:#687283;font-size:10px;line-height:1.3;padding:5px 9px;font-weight:600;white-space:normal}.badge.success{background:var(--green);color:#2f7850}.badge.warm{background:#fff0d3;color:#8a6221}.section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:30px 0 20px}.section-title h2{margin:0}.section-title .eyebrow{margin-bottom:8px}.section-title>a,.section-title>span{font-size:12px;color:var(--muted)}.stats-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:24px 0 32px}.stat{border:1px solid var(--line);background:#fff;border-radius:14px;padding:19px 23px}.stat>span{font-size:11px;color:var(--muted);display:block}.stat strong{display:block;font-size:30px;line-height:1.2;margin-top:9px;letter-spacing:-1px}.stat strong small{font-size:16px;font-weight:400}.stat .stat-text{font-size:22px;padding-top:6px;letter-spacing:-.5px}.course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.course-card{border:1px solid var(--line);border-radius:var(--radius);padding:23px;background:white;display:flex;flex-direction:column;min-width:0;box-shadow:var(--shadow)}.course-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:22px}.course-number{font-size:18px;font-weight:700;color:var(--wine);display:inline-grid;place-items:center;background:#f6edf0;width:43px;height:43px;border-radius:12px}.course-card h2{font-size:19px;min-height:25px}.course-card p{font-size:12px;color:var(--muted);min-height:55px;margin-bottom:17px}.course-meta{display:flex;gap:8px;justify-content:space-between;font-size:10px;color:#838894;margin-bottom:17px}.progress-track{height:5px;border-radius:8px;background:#eef0f4;overflow:hidden}.progress-track span{display:block;height:100%;background:var(--wine);border-radius:8px}.progress-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted);margin:10px 0 20px}.course-card .button,.course-card .disabled-button{width:100%;margin-top:auto}.course-card.completed .course-number{background:var(--green);color:#2e7750}.home-hero{border-radius:22px;min-height:390px;background:linear-gradient(115deg,#2a2028,#421d2c 65%,#681c37);color:white;display:flex;align-items:center;padding:55px 60px;gap:30px;position:relative;isolation:isolate;overflow:hidden}.home-hero.has-photo{background:linear-gradient(90deg,#161116dc,#16111624),url('/index.php?r=hero') center/cover no-repeat}.hero-copy{max-width:570px;position:relative;z-index:1}.hero-copy h1{font-size:clamp(38px,4.3vw,63px);line-height:1.06;letter-spacing:-2px;margin-bottom:22px}.hero-copy p{color:#f2e3e8;font-size:15px;max-width:450px;margin-bottom:26px}.home-hero .eyebrow{color:#e3bbc6;letter-spacing:3px;font-size:10px}.hero-side{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto;opacity:.65;text-align:right}.hero-side>span{font-size:10px;letter-spacing:4px}.hero-side>b{font-size:clamp(35px,4vw,65px);letter-spacing:2px;color:#e8a4b5;line-height:1.4}.hero-side b span{color:white}.hero-side small{color:#ddc4cd;font-size:10px}.has-photo .hero-side{opacity:0}.news-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.news-card{padding:28px;border-radius:var(--radius);background:white;border:1px solid var(--line)}.news-meta{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);margin-bottom:17px}.news-card h3{font-size:21px}.news-card .prose{font-size:14px;color:#646b75;margin-bottom:22px;overflow-wrap:anywhere}.login-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:90px;max-width:1080px;margin:60px auto;align-items:center}.login-layout>div>h1{font-size:43px;line-height:1.15}.login-layout>div>p{max-width:420px;color:var(--muted)}.login-points{display:flex;gap:20px;margin-top:40px;font-size:10px;color:var(--wine);letter-spacing:1px}.login-form{padding:36px}.login-form>p{font-size:12px;color:var(--muted);margin-bottom:28px}.login-form>small{display:block;margin-top:23px;line-height:1.6}.password-input{position:relative}.password-input input{padding-right:85px}.password-input button{position:absolute;right:13px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:var(--wine);font-size:10px}.back-link{display:inline-block;font-size:12px;color:var(--muted);margin-bottom:22px}.day-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 25px}.day-tabs>span{padding:11px 17px;border:1px solid #e3e6ed;border-radius:10px;font-size:12px;color:#9399a3;background:#fff}.day-tabs>span.active{background:#f7edf0;border-color:#edd5de;color:var(--wine);font-weight:600}.lesson-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:22px;align-items:start}.lesson-layout>div{min-width:0}.lesson-outline{border-left:1px solid var(--line);padding-left:20px;font-size:11px;position:sticky;top:112px;max-height:calc(100vh - 140px);overflow:auto}.lesson-outline h3{font-size:12px}.lesson-outline ol{padding-left:18px}.lesson-outline li{padding:7px 0 7px 4px;color:#a3a8b0}.lesson-outline li a{color:#707683}.lesson-outline li.current a{color:var(--wine);font-weight:700}.lesson-outline li.done::marker{color:#38845a}.lesson{padding:30px}.lesson h2{font-size:27px;margin-bottom:22px}.lesson-intro{font-size:15px;line-height:1.8;margin-bottom:30px;overflow-wrap:anywhere;max-width:88ch}.illustrations{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:20px;align-items:start;margin:25px 0 35px}.illustration{margin:0;min-width:0;text-align:center}.illustration.wide{grid-column:1/-1}.image-zoom{background:white;border:1px solid #edf0f4;padding:12px;border-radius:10px;width:100%;display:block}.image-zoom img{display:block;max-width:100%;height:auto;width:auto;margin:auto;object-fit:contain}.illustration figcaption{font-size:10px;color:#9298a3;margin-top:8px}.lesson .checkline{font-size:12px;color:var(--muted)}.checkline{display:flex;align-items:center;gap:10px;font-weight:400;line-height:1.5}.checkline input{margin:0}.video-panel video{width:100%;max-height:65vh;background:#151515;border-radius:12px;display:block;margin-top:23px}.video-panel .progress-caption{font-size:12px}.hidden{display:none!important}.ready-panel{display:flex;align-items:center;gap:22px}.ready-panel>span{display:grid;place-items:center;background:var(--green);color:#37764b;width:55px;height:55px;border-radius:50%;flex:0 0 55px}.ready-panel h2{margin-bottom:5px}.ready-panel p{font-size:13px;color:var(--muted);margin:0}.ready-panel .button{margin-left:auto;flex-shrink:0}.task-list{padding-left:23px;line-height:2.3}.task-checklist{margin:24px 0}.task-check{display:flex;align-items:center;gap:12px;border:1px solid #e6e9ef;border-radius:12px;padding:16px;margin-bottom:12px;font-weight:400}.task-check input{margin:0}.task-check>span{display:flex;align-items:center;gap:13px;font-size:14px}.task-check b{display:grid;place-items:center;background:var(--blue);color:#6a7f98;flex:0 0 30px;height:30px;border-radius:8px;font-size:12px}.scenario-statement{padding:23px;border-left:3px solid var(--wine);background:#f8f2f4;margin:25px 0;border-radius:0 12px 12px 0;line-height:1.8}.answer-text{white-space:normal;overflow-wrap:anywhere;line-height:1.8;padding:16px 19px;background:#f7f9fb;border-radius:10px;font-size:14px}.review-answer{padding-bottom:20px;margin-bottom:25px;border-bottom:1px solid var(--line)}.question{margin-bottom:24px;padding-top:20px}.question legend{padding:0 8px;font-size:18px;max-width:100%;line-height:1.5}.question-number{display:inline-grid;place-items:center;background:var(--blue);color:var(--wine);border-radius:9px;width:34px;height:34px;margin-right:14px;font-size:15px}.answer-option{display:flex;align-items:flex-start;gap:12px;padding:15px;border:1px solid #e5e8ee;border-radius:11px;font-weight:400;margin-bottom:10px;cursor:pointer}.answer-option input{margin:2px 0 0}.answer-option:has(input:checked){border-color:var(--wine);background:#faf2f5}.result-panel>strong{font-size:60px;color:var(--wine);line-height:1.2}.result-panel>strong small{font-size:24px}.result-panel>p{color:var(--muted);margin-top:18px}.sticky-actions{position:sticky;bottom:10px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#ffffffef;display:flex;gap:12px;justify-content:flex-end;backdrop-filter:blur(12px);box-shadow:0 2px 30px #28394a0c}.attestation-question{padding:24px}.attestation-question label{margin:0}.attestation-question textarea{margin-top:18px}.empty-state{padding:60px 25px;text-align:center;border:1px dashed #dce0e8;border-radius:18px;color:var(--muted);margin:20px 0}.empty-state svg{width:40px;height:40px;margin-bottom:20px;color:#a9a0aa}.empty-state h2{font-size:22px;color:var(--ink)}.table-wrap{overflow:auto;padding:0}table{border-collapse:collapse;min-width:650px;width:100%;font-size:12px}th{text-align:left;color:#7c828d;font-weight:600;background:#fafbfc;padding:17px 21px;font-size:10px;border-bottom:1px solid var(--line)}td{padding:18px 21px;border-bottom:1px solid var(--line);vertical-align:top}td small{display:block;margin-top:5px;font-size:10px}td strong{font-size:12px}td .badge{margin-top:5px}td form{margin-top:8px}.filter-form{display:flex;gap:10px;max-width:600px;margin-bottom:25px}.filter-form select{font-size:12px;padding:10px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}.store-checkboxes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 16px;margin:0 0 22px}.store-checkboxes legend{margin-bottom:15px;font-size:12px}.store-checkboxes .checkline{margin:0;font-size:12px}.weak-topic{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--line);font-size:13px}.weak-topic:last-child{border-bottom:0}.weak-topic .badge{flex-shrink:0}.review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.review-card{display:flex;flex-direction:column;gap:5px}.review-card .button{align-self:flex-start;margin-top:18px}.review-card p{color:var(--muted);font-size:13px}.action-row{display:flex;gap:12px;flex-wrap:wrap}.level-panel{display:flex;gap:24px;align-items:center}.level-panel>div{flex:1}.level-panel .progress-track{height:10px}.achievement-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:25px}.achievement{border:1px solid var(--line);border-radius:14px;padding:22px;background:#fff;opacity:.65}.achievement.earned{opacity:1;border-color:#cfe4d5}.achievement>span{display:grid;place-items:center;background:#edf0f6;color:#969dac;width:40px;height:40px;border-radius:11px;margin-bottom:20px}.achievement.earned>span{background:var(--green);color:#328252}.achievement h3{font-size:15px}.achievement p{font-size:11px;color:var(--muted);min-height:45px}details>summary{cursor:pointer;font-weight:600;list-style-position:outside;margin-left:12px;line-height:1.6}details[open]>summary{margin-bottom:23px}details.reference{background:#f1f5f9;border-radius:10px;padding:16px;font-size:12px}details.reference p:last-child{margin-bottom:0}.footer{color:#a6aab2;font-size:10px;text-align:center;padding:20px}.feedback .eyebrow{font-size:9px}.feedback p{font-size:14px}dialog{border:0;border-radius:16px;max-width:96vw;max-height:94vh;padding:45px 22px 20px;overflow:auto}dialog::backdrop{background:#0c1015bc}dialog img{display:block;width:auto;max-width:100%;height:auto;margin:auto;object-fit:contain}.dialog-close{position:absolute;right:12px;top:5px;border:0;background:white;font-size:28px;color:#4b505a}.dialog-source{font-size:12px;display:block;text-align:center;margin:15px auto 0}.credentials code{font-size:15px;font-weight:600}
@media(min-width:1500px){.main{padding:45px 55px}.course-card{padding:28px}.course-grid{gap:24px}}
@media(max-width:1200px){.main{padding:30px 25px}.sidebar{width:215px;flex-basis:215px;padding:25px 12px}.course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{padding:0 25px}.lesson-layout{grid-template-columns:minmax(0,1fr)}.lesson-outline{position:static;max-height:260px;overflow:auto;order:-1;border:1px solid var(--line);border-radius:12px;padding:18px;background:#fff}.lesson-outline ol{columns:2}.achievement-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-side{display:none}.login-layout{gap:45px;margin:40px auto}.login-layout>div>h1{font-size:35px}}
@media(max-width:850px){.topbar{height:75px;padding:0 20px}.brand>span{font-size:23px}.brand small{font-size:9px;letter-spacing:2px;padding-left:10px}.top-actions{gap:14px}.user-pill>span:last-child{max-width:150px;font-size:11px}.sidebar{width:185px;flex-basis:185px;padding:20px 8px}.sidebar nav a{padding:11px 9px;font-size:11px;gap:8px}.sidebar svg{width:19px;height:19px;flex-basis:19px}.nav-label{font-size:8px;padding:0 9px}.main{padding:25px 18px}.stats-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.course-grid{gap:14px}.course-card{padding:18px}.course-card h2{font-size:17px}.course-meta{font-size:9px}.hero-copy h1{font-size:43px}.home-hero{padding:40px;min-height:340px}.news-grid{grid-template-columns:1fr}.login-layout{grid-template-columns:1fr;max-width:500px;gap:28px}.login-layout>div>h1{font-size:34px}.login-points{margin-top:23px}.review-grid{grid-template-columns:1fr}.panel{padding:23px}.store-checkboxes{grid-template-columns:repeat(2,minmax(0,1fr))}.ready-panel{flex-wrap:wrap}.ready-panel .button{margin-left:0}.form-grid{grid-template-columns:1fr}.table-wrap{padding:0}}
@media(max-width:650px){.topbar{position:relative;height:72px;padding:0 15px;gap:8px}.brand{gap:9px}.brand>span{font-size:21px;letter-spacing:1px}.brand small{letter-spacing:1px;font-size:8px}.top-actions{gap:10px}.top-actions .xp-pill{display:none}.user-pill>span:last-child{display:none}.avatar{width:33px;height:33px;flex-basis:33px;font-size:14px}.top-actions .text-button{font-size:10px}.layout{flex-direction:column}.sidebar{width:100%;flex-basis:auto;padding:10px 12px 0;border-right:0;border-bottom:1px solid var(--line)}.sidebar .nav-label,.sidebar-bottom{display:none}.sidebar nav{flex-direction:row;overflow:auto;margin:0 0 7px;gap:5px;padding-bottom:4px}.sidebar nav a{white-space:nowrap;padding:9px 12px;font-size:10px;gap:7px}.sidebar nav svg{width:15px;height:15px;flex-basis:15px}.main{width:100%;padding:25px 15px 40px}.public-main{padding-top:15px}.page-heading{margin-bottom:23px}.page-heading p{font-size:13px}.eyebrow{font-size:9px}.stats-row{gap:9px;margin:20px 0 25px}.stat{padding:17px}.stat strong{font-size:28px}.stat .stat-text{font-size:20px}.course-grid{grid-template-columns:1fr;gap:15px}.course-card{padding:23px}.course-card h2{font-size:21px}.course-card p{min-height:0;font-size:13px}.course-card-top{margin-bottom:18px}.course-meta{font-size:10px}.section-title{margin:26px 0 17px}.section-title h2{font-size:22px}.home-hero{padding:35px 27px;min-height:380px;border-radius:17px;background-position:58% center}.hero-copy h1{font-size:43px;letter-spacing:-1.5px}.hero-copy p{font-size:13px}.hero-copy .eyebrow{font-size:8px}.news-card{padding:24px}.news-card h3{font-size:20px}.login-layout{margin:20px auto}.login-layout>div>h1{font-size:32px}.login-form{padding:25px}.login-points{gap:18px;font-size:9px}.panel{padding:23px 20px}.table-wrap{padding:0}.lesson{padding:25px 18px}.lesson h2{font-size:24px}.lesson-intro{font-size:14px;line-height:1.8}.lesson-outline{padding:17px}.lesson-outline ol{columns:1}.day-tabs{gap:5px}.day-tabs>span{font-size:9px;padding:10px 9px;flex:1;text-align:center}.illustrations{gap:15px;grid-template-columns:1fr}.image-zoom{padding:8px}.image-zoom img{max-height:none}.scenario-statement{padding:18px;font-size:14px}.task-check{padding:14px 11px;gap:10px}.task-check>span{font-size:13px;gap:10px}.task-check b{flex-basis:25px;height:25px}.question legend{font-size:16px;padding:0 4px}.answer-option{font-size:13px;padding:13px}.sticky-actions{padding:10px;gap:8px;bottom:5px}.sticky-actions .button{font-size:10px;padding:10px;flex:1}.filter-form{flex-direction:column}.weak-topic{align-items:flex-start;font-size:12px}.weak-topic .badge{white-space:normal;max-width:85px;font-size:9px}.level-panel{display:block}.level-panel .progress-track{margin-top:22px}.achievement-grid{gap:11px}.achievement{padding:17px 14px}.achievement h3{font-size:13px}.achievement p{font-size:10px}.store-checkboxes{grid-template-columns:1fr}.action-row{flex-direction:column}.action-row .button{width:100%}.ready-panel{gap:15px}.ready-panel h2{font-size:20px}.ready-panel .button{width:100%}.result-panel>strong{font-size:48px}.back-link{font-size:11px}.notice{padding:15px 17px;font-size:12px}.button{font-size:12px}.button.small{font-size:10px;padding:8px 12px}.public-page .brand small{display:none}.footer{font-size:9px}.prose{overflow-wrap:anywhere}}
@media(max-width:1200px){.lesson-outline{order:0}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.lesson-copy{font-size:16px;line-height:1.7;letter-spacing:normal;max-width:74ch;margin:0 0 26px;overflow-wrap:break-word}
.lesson-copy p{margin:0 0 16px}.lesson-copy p:last-child{margin-bottom:0}
.lesson-copy strong{font-weight:700}.lesson-copy ul,.lesson-copy ol{padding-left:25px;margin:12px 0 18px}
.lesson-copy li{padding-left:3px;margin:8px 0}.lesson-copy li::marker{color:var(--wine);font-weight:700}
.lesson-copy .lesson-subtitle{font-size:19px;line-height:1.35;margin:28px 0 12px;letter-spacing:normal}
.lesson-topics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));gap:16px;margin:22px 0 26px}
.lesson-topic{min-width:0;padding:20px;border:1px solid #e4e7ec;border-radius:12px;background:#fcfcfe}
.lesson-topics>.lesson-topic:last-child:nth-child(odd){grid-column:1/-1}
.lesson-topic h3{font-size:19px;line-height:1.35;color:var(--wine);margin:0 0 14px;letter-spacing:normal}
.lesson-topic p,.lesson-topic li{font-size:15px;line-height:1.65}.lesson-topic ul,.lesson-topic ol{padding-left:20px;margin-bottom:14px}
.lesson-note{padding:15px 18px;margin:20px 0;border-left:3px solid var(--wine);border-radius:0 10px 10px 0;background:var(--blue);color:#303f50}
.lesson-note p{font-size:15px;line-height:1.65;margin:0}.lesson-topic .lesson-note{padding:12px;margin-bottom:0}
.lesson .checkline{font-size:14px;color:#505660;align-items:flex-start}.lesson .checkline input{margin-top:2px}
.editor-format-help{font-size:13px;line-height:1.65;color:var(--muted);max-width:80ch}
@media(max-width:640px){.lesson{padding:21px 19px}.lesson h2{font-size:25px;line-height:1.25;letter-spacing:-.35px}.lesson-copy{font-size:16px;line-height:1.7}.lesson-topics{grid-template-columns:minmax(0,1fr)}.lesson-topic{padding:18px}.lesson-topic h3{font-size:19px}.lesson-copy .lesson-subtitle{font-size:18px}.lesson-note{padding:14px 15px}}

/* Lesson navigation and visible practice review */
.lesson-navigation{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin:20px 0;align-items:stretch}.lesson-navigation>a,.lesson-navigation>button,.lesson-navigation form button{width:100%;text-align:center;justify-content:center;min-height:48px}.lesson-navigation form{margin:0;display:flex}.lesson-topic-list>summary{cursor:pointer;font-weight:700;color:var(--wine,#9d1635)}.lesson-topic-list .lesson-outline{position:static;border:0;padding:16px 0 0;width:auto}.practice-items{display:grid;gap:14px;margin:20px 0}.practice-item{border:1px solid #dce1eb;border-radius:14px;padding:18px;background:#fafbfd}.practice-item h3{font-size:18px;line-height:1.5;margin:0 0 12px}.practice-status .badge{white-space:normal}.practice-item .checkline{margin-top:14px}.lesson-navigation .button{padding:12px 8px}.lesson-topic-list{margin-top:18px}@media(max-width:640px){.lesson-navigation{gap:6px}.lesson-navigation .button{font-size:13px;padding:12px 5px}.practice-item{padding:15px}.lesson-topic-list .lesson-outline{display:block}}

.news-copy{font-size:15px;line-height:1.65}.news-copy .lesson-subtitle{font-size:18px;line-height:1.4;margin-top:22px}.news-copy .lesson-note{margin:18px 0}.news-poster{margin:22px auto;max-width:420px;width:100%}.news-poster .image-zoom{display:block;width:100%;padding:0}.news-poster .image-zoom img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}.news-poster figcaption{font-size:12px;line-height:1.5;color:#717681;text-align:center;margin-top:8px}
/* Draft feedback follows the same quiet, readable card styling as lessons. */
.draft-status{font-size:.9rem;line-height:1.5;color:#59616f;margin:.75rem 0 1.25rem;min-height:1.5em}
.draft-status[data-state="saved"]{color:#276443}
.draft-status[data-state="error"],.draft-status[data-state="conflict"]{color:#8d1834;font-weight:600}
.draft-recovery{margin-bottom:1.25rem;overflow-wrap:anywhere}
.draft-recovery summary{cursor:pointer;font-weight:600}
.draft-recovery textarea{width:100%;min-height:5rem}
.stat-link{color:inherit;text-decoration:none}
.stat-link:hover,.stat-link:focus-visible{outline:2px solid #8d1834;outline-offset:2px}

/* OFFPRICE_DESKTOP_LAYOUT_2026_11_11_1 */
/* Full-image viewer: the first view always fits the complete illustration. */
#image-viewer.image-viewer-ready{width:min(1180px,96vw);height:min(900px,94vh);height:min(900px,94dvh);max-width:96vw;max-height:94vh;max-height:94dvh;padding:0;border:1px solid #dce2ea;border-radius:16px;overflow:hidden;background:#fff}
#image-viewer.image-viewer-ready[open]{display:flex;flex-direction:column}
#image-viewer .image-viewer-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line);flex:0 0 auto;background:#fff}
#image-viewer .image-viewer-caption{flex:1 1 200px;margin:0;font-size:13px;line-height:1.5;color:#4c5968;overflow-wrap:anywhere}
#image-viewer .image-viewer-controls{display:flex;align-items:center;gap:6px;margin-left:auto}
#image-viewer .image-viewer-controls button,#image-viewer .dialog-close{min-width:40px;min-height:40px;padding:6px 10px;border:1px solid #dce2ea;border-radius:9px;background:#fff;color:var(--wine);font-size:16px;line-height:1.2}
#image-viewer .dialog-close{position:static;flex:0 0 auto;margin-left:6px;font-size:24px}
#image-viewer .image-viewer-controls button:focus-visible,#image-viewer .dialog-close:focus-visible{outline:3px solid #c4e0f5;outline-offset:2px}
#image-viewer .image-viewer-percent{font-size:12px;min-width:40px;text-align:center;color:#59616f;font-variant-numeric:tabular-nums}
#image-viewer .image-viewer-viewport{flex:1;min-height:0;min-width:0;overflow:auto;background:#f5f7fa;overscroll-behavior:contain;scrollbar-gutter:stable}
#image-viewer .image-viewer-stage{display:grid;place-items:center;width:max-content;min-width:100%;min-height:100%;padding:16px}
#image-viewer .image-viewer-stage img{display:block;margin:0;width:auto;height:auto;max-width:none;max-height:none;object-fit:contain;cursor:zoom-in;flex-shrink:0}
#image-viewer .image-viewer-stage img[data-zoomed=true]{cursor:zoom-out}
#image-viewer .dialog-source{flex:0 0 auto;margin:0;padding:12px 16px;border-top:1px solid var(--line);text-align:center;background:#fff;font-size:13px;min-height:44px}
@media(max-width:650px){#image-viewer .image-viewer-toolbar{padding:10px;gap:6px}#image-viewer .image-viewer-caption{flex-basis:calc(100% - 56px);order:0}#image-viewer .dialog-close{order:1}#image-viewer .image-viewer-controls{order:2;margin:0;width:100%;justify-content:center}#image-viewer .image-viewer-controls button{min-width:44px;min-height:44px}#image-viewer .image-viewer-stage{padding:10px}}

/* Reading and image sizes adapt to a computer. Phone lesson rules stay intact. */
@media(min-width:960px){
  .workspace .layout{max-width:1640px}
  .workspace .main{padding:34px clamp(24px,3vw,48px) 56px;max-width:1395px;margin-inline:auto}
  .workspace .sidebar{position:sticky;top:88px;align-self:flex-start;height:calc(100vh - 88px);overflow-y:auto;scrollbar-width:thin}
  .workspace .main .lp,.workspace .main .lesson-layout{max-width:1040px;margin-inline:auto}
  .workspace .main .lesson-layout{display:block}
  .workspace .main .lesson{padding:30px 34px}
  .workspace .main .lesson h2{font-size:28px;line-height:1.3}
  .workspace .main .lesson .lesson-copy{max-width:78ch;font-size:16px;line-height:1.75}
  .workspace .main .lesson .lesson-topic{padding:22px 24px}
  .workspace .main .lesson .lesson-topic h3,.workspace .main .lesson .lesson-topic h4{font-size:19px;line-height:1.4}
  .workspace .main .illustrations{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(245px,100%),1fr));gap:22px;align-items:start;margin:26px 0 32px}
  .workspace .main .illustrations>.illustration{width:auto;max-width:100%;margin:0;min-width:0;text-align:center}
  .workspace .main .illustrations>.illustration.wide,.workspace .main .illustrations>.illustration[data-image-shape=landscape],.workspace .main .illustrations>.illustration:only-child{grid-column:1/-1}
  .workspace .main .illustrations .image-zoom{display:flex;align-items:center;justify-content:center;width:100%;min-height:180px;padding:16px;border:1px solid #e4e8ee;border-radius:12px;background:#fcfdff;cursor:zoom-in}
  .workspace .main .illustrations .image-zoom img{display:block;width:auto!important;height:auto!important;max-width:100%;max-height:540px!important;object-fit:contain!important;object-position:center;margin:auto;border-radius:0}
  .workspace .main .illustrations figcaption{font-size:12px;line-height:1.55;max-width:80ch;margin:10px auto 0;color:#647180}
  .workspace .main .lesson-topic-list{max-width:1040px;margin-inline:auto}
  .workspace .main .video-panel{max-width:1040px;margin-inline:auto}
  .workspace .main .video-panel video{max-height:min(65vh,620px)}
}
@media(min-width:1280px){
  .workspace .main .lp-lesson .lp-manual-cards,.workspace .main .lp-lesson .lp-editorial-cards{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .workspace .main .lp-lesson .lesson-topics>.lesson-topic:only-child{grid-column:1/-1}
}
/* END_OFFPRICE_DESKTOP_LAYOUT */

/* reading-copy-20261121 */
.reading-terms{margin:.85rem 0 1rem}
.reading-terms summary{cursor:pointer;font-weight:650;color:var(--wine,#83243a)}
.reading-terms dl{margin:.7rem 0;max-width:70ch}
.reading-terms dt{font-weight:700;margin-top:.55rem}
.reading-terms dd{margin:0}
.reading-task{margin:.85rem 0}
.reading-task h4{margin:0 0 .25rem}
.reading-task p,.lp-open-question h4+p{margin:.15rem 0 .7rem;line-height:1.55}
.reading-role summary{cursor:pointer;font-weight:700}
.lesson-copy,.lp-open-question,.reading-task{overflow-wrap:break-word}

