.statistics-screen{max-width:1600px;margin:auto}.statistics-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;margin-bottom:24px}.statistics-filters .actions{align-self:end}.statistics-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin:20px 0}.statistics-card{display:flex;flex-direction:column;gap:10px;padding:20px!important}.statistics-card>strong{font-size:30px;line-height:1.2}.statistics-card small{color:var(--muted);line-height:1.5}.statistics-screen>section.card,.statistics-definitions,.statistics-comparison,.statistics-evolution{margin:24px 0}.statistics-definitions summary{cursor:pointer;font-weight:700}.statistics-definitions p{max-width:1000px}.statistics-student-picker{display:flex;flex-direction:column;gap:8px}.statistics-screen .actions label{min-width:150px}.statistics-table-wrap{margin-top:16px;overflow:auto}.statistics-table{width:100%;font-size:14px;border-collapse:collapse}.statistics-table th,.statistics-table td{padding:12px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.statistics-table th:first-child{min-width:170px}.statistics-table button{margin-bottom:5px}.statistics-bar{display:grid;grid-template-columns:minmax(160px,1fr) 2fr 80px;align-items:center;gap:14px;margin:16px 0}.statistics-bar>div{background:#edf1f8;border-radius:8px;height:12px;overflow:hidden}.statistics-bar i{display:block;height:100%;background:#526ba2;border-radius:8px}.statistics-evolution svg{width:100%;height:auto;max-height:300px;margin:16px 0}.statistics-evolution svg text{font-size:12px;fill:#394972}.statistics-legend{display:flex;gap:20px;margin-top:18px;color:#394972}.statistics-legend span+span{color:#966200}.statistics-activity-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:16px}.statistics-activity-list h3{margin:10px 0}.statistics-screen .pagination{margin:20px 0;flex-wrap:wrap}.statistics-screen h2{margin-top:28px}.statistics-screen .statistics-card h2{margin-top:0}
@media(max-width:700px){.statistics-filters{grid-template-columns:1fr}.statistics-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.statistics-card{padding:14px!important}.statistics-card>strong{font-size:24px}.statistics-screen .actions{flex-wrap:wrap}.statistics-screen .actions label{width:100%}.statistics-table thead{display:none}.statistics-table,.statistics-table tbody,.statistics-table tr,.statistics-table td,.statistics-table th{display:block;width:100%}.statistics-table tr{background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:16px;padding:12px}.statistics-table th{font-size:17px}.statistics-table td{display:flex;justify-content:space-between;gap:10px}.statistics-table td:before{content:attr(data-label);font-weight:600}.statistics-table td:last-child{flex-wrap:wrap}.statistics-bar{grid-template-columns:1fr 75px;gap:8px}.statistics-bar>span{grid-column:1/-1}.statistics-evolution .actions{display:flex;flex-direction:column;align-items:stretch}.statistics-screen .section-heading{flex-wrap:wrap;gap:14px}}

.statistics-filters>.actions{grid-column:1/-1;display:flex;flex-direction:row;flex-wrap:wrap}.statistics-row-note{display:block;font-weight:400;line-height:1.5;color:var(--muted);margin-top:6px}

.statistics-retention{margin:24px 0;padding:24px}.retention-track{height:12px;min-width:120px;background:#e9edf5;border-radius:8px;overflow:hidden;margin-bottom:6px}.retention-track span{display:block;height:100%;background:#e8aa23;border-radius:8px}
:root{--ink:#34416a;--muted:#68738a;--blue:#eaf1fc;--gold:#ffb51e;--gold-dark:#8a5700;--paper:#fff;--line:#dfe6f0;--green:#197451;--red:#a8343b;--shadow:0 12px 45px #34416a09;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#f6f8fc;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible{outline:3px solid #6a7ba7}button{cursor:pointer;border:0;border-radius:10px;padding:13px 19px;background:var(--ink);color:white;font-weight:700;min-height:44px}button:hover{filter:brightness(.95)}button:disabled{opacity:.55;cursor:wait}button.primary{background:var(--gold);color:#382b0d}button.secondary{background:#edf1f8;color:var(--ink);border:1px solid var(--line)}button.ghost{background:none;color:var(--muted)}button.small{padding:8px 12px;min-height:40px;font-size:13px}button.danger{background:#ffedef;color:var(--red)}a{color:var(--ink)}h1,h2,h3,p{margin-top:0}h1{font-size:34px;letter-spacing:-1.1px;line-height:1.2}h2{font-size:23px;letter-spacing:-.5px}h3{font-size:18px}p{line-height:1.65}small,.muted{color:var(--muted)}label{font-size:14px;font-weight:700;display:block;margin-bottom:17px}input,select,textarea{display:block;width:100%;margin-top:8px;border:1px solid #cbd4e3;border-radius:9px;padding:13px;background:white;color:var(--ink);font-weight:400;min-height:46px}textarea{min-height:90px;resize:vertical}input[type=checkbox],input[type=radio]{display:inline-block;width:20px;min-height:20px;height:20px;accent-color:var(--ink);vertical-align:middle;margin:0 9px 0 0}input[type=file]{font-size:13px}fieldset{border:1px solid var(--line);padding:20px;border-radius:12px;margin:16px 0}legend{font-weight:700}hr{border:0;border-top:1px solid var(--line);margin:24px 0}.skip{position:absolute;left:-10000px}.skip:focus{left:10px;top:10px;z-index:50;background:white;padding:14px}.brand{display:flex;gap:12px;align-items:center}.brand-icon{background:var(--gold);width:44px;height:44px;border-radius:14px;display:grid;place-items:center;color:#573800;font-family:Georgia,serif;font-size:29px;flex-shrink:0}.brand strong{font-family:Georgia,serif;font-size:21px;line-height:1.02;display:block}.brand small{display:block;margin-top:6px;font-size:10px;letter-spacing:.4px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:11px;font-weight:700;color:#77829b;margin-bottom:15px}.pill{display:inline-flex;border-radius:100px;padding:6px 10px;font-size:11px;font-weight:700;background:#eef2f9;color:#596988;gap:5px;align-items:center}.pill.green{background:#e6f4ed;color:var(--green)}.pill.gold{background:#fff2cd;color:var(--gold-dark)}.auth{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr}.auth-art{background:linear-gradient(145deg,#f2f6ff,#d9e6ff);position:relative;overflow:hidden;display:flex;flex-direction:column;padding:55px 65px}.auth-art:after{content:'';position:absolute;border:1px solid #b4c9ee80;border-radius:50%;width:500px;height:500px;right:-90px;bottom:-150px}.auth-art .brand{z-index:1}.auth-copy{max-width:430px;margin-top:75px;z-index:1}.auth-copy h1{font-family:Georgia,serif;font-size:49px;font-weight:400}.auth-copy h1 em{font-style:normal;background:linear-gradient(transparent 63%,#ffd777 63%)}.auth-copy p{max-width:330px;font-size:16px}.auth-portrait{width:350px;height:440px;object-fit:cover;object-position:center 15%;align-self:flex-end;margin-top:15px;border-radius:170px 170px 0 0;box-shadow:0 0 0 12px #ffffff42;z-index:1}.auth-form{display:flex;align-items:center;justify-content:center;padding:50px}.auth-form-inner{width:100%;max-width:390px}.auth-form h1{font-size:32px;margin-bottom:10px}.auth-form .primary{width:100%;margin-top:10px}.auth-footer{font-size:12px;text-align:center;margin-top:50px;color:var(--muted)}.form-error{color:var(--red);background:#fff0f1;padding:12px;border-radius:8px;display:none;margin-bottom:15px}.form-error.show{display:block}.layout{display:grid;grid-template-columns:258px minmax(0,1fr);min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:30px 23px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.sidebar .brand{margin-bottom:50px}.nav-title{font-size:10px;letter-spacing:1.8px;color:#9299a9;margin:0 13px 12px}.nav{display:flex;flex-direction:column;gap:7px}.nav button{display:flex;gap:13px;align-items:center;text-align:left;background:transparent;color:#737d92;font-size:14px;font-weight:500;padding:14px}.nav button.active{background:#fff3d9;color:#654a14;font-weight:700}.nav-icon{font-size:19px;width:23px}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:20px}.avatar{width:38px;height:38px;border-radius:50%;background:#e8eef8;display:grid;place-items:center;font-weight:bold;flex-shrink:0}.profile{display:flex;gap:10px;align-items:center;font-size:13px;margin-bottom:12px}.profile strong{display:block;max-width:150px;overflow:hidden;text-overflow:ellipsis}.profile small{font-size:11px}.workspace{min-width:0}.topbar{height:78px;border-bottom:1px solid var(--line);background:#ffffffb8;display:flex;align-items:center;justify-content:space-between;padding:0 42px;font-size:13px}.topbar .crumb{color:var(--muted)}.topbar .crumb b{color:var(--ink);margin-left:10px}.content{padding:36px 42px 55px;max-width:1450px;margin:auto}.welcome{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:26px;gap:20px}.welcome h1{margin-bottom:9px}.welcome p{font-size:14px;color:var(--muted);margin:0}.hero{background:linear-gradient(110deg,#e6eefc,#dce8fc);border:1px solid #d6e2f5;min-height:238px;border-radius:20px;padding:34px;position:relative;overflow:hidden;margin-bottom:28px;display:flex;align-items:center}.hero-copy{max-width:68%;position:relative;z-index:1}.hero h2{font-family:Georgia,serif;font-size:34px;font-weight:400;line-height:1.12;margin-bottom:14px}.hero p{font-size:14px;max-width:410px;margin-bottom:20px}.hero img{position:absolute;right:18px;bottom:-40px;width:210px;height:260px;object-fit:cover;object-position:50% 10%;border-radius:130px 130px 0 0;border:6px solid #ffffff50}.hero .eyebrow{color:#576d96}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:32px}.stat{background:white;padding:22px;border:1px solid var(--line);border-radius:14px;display:flex;gap:17px;align-items:center}.stat-icon{height:46px;width:46px;background:#f0f4fb;border-radius:12px;display:grid;place-items:center;font-size:22px;flex-shrink:0}.stat strong{display:block;font-size:26px;margin-bottom:4px}.stat small{font-size:12px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:25px 0 18px}.section-heading h2{margin:0}.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;box-shadow:var(--shadow);min-width:0}.card p{font-size:14px;color:var(--muted)}.course-card{padding:0;overflow:hidden;display:flex;flex-direction:column}.course-cover{height:112px;background:linear-gradient(115deg,#e9eefb,#cbdaf3);padding:22px;display:flex;justify-content:space-between;align-items:center;font-size:32px}.course-cover.gold{background:linear-gradient(115deg,#fff4d5,#ffe4a1)}.course-card-body{padding:22px;display:flex;flex:1;flex-direction:column}.course-card h3{line-height:1.4}.course-card .secondary{margin-top:auto;width:100%}.course-meta{display:flex;gap:16px;font-size:12px;color:var(--muted);margin:8px 0 22px}.progress-label{display:flex;justify-content:space-between;font-size:12px;margin-bottom:9px}.progress-track{height:7px;border-radius:10px;background:#edf0f6;overflow:hidden;margin-bottom:22px}.progress-track span{display:block;height:100%;background:#e9ad30;border-radius:10px}.empty{padding:38px 24px;text-align:center;border:1px dashed #ccd6e6;border-radius:14px;background:#ffffff8a;grid-column:1/-1}.empty .empty-icon{font-size:35px;margin-bottom:12px}.empty h3{margin-bottom:8px}.empty p{font-size:14px;color:var(--muted);max-width:480px;margin:0 auto}.notice{border-left:3px solid var(--gold);padding-left:17px}.notice h3{font-size:15px}.notice time{font-size:11px;color:var(--muted)}.notice p{white-space:pre-wrap;margin-bottom:8px}.split{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:24px}.sticky-card{position:sticky;top:24px;align-self:start}.module{margin-bottom:16px;background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden}.module summary{cursor:pointer;padding:22px;display:flex;justify-content:space-between;align-items:center;gap:12px;list-style:none;font-size:16px;font-weight:700}.module[open] summary{border-bottom:1px solid var(--line)}.module-items{padding:8px 22px 22px}.lesson{display:flex;align-items:center;gap:14px;padding:17px 0;border-bottom:1px solid #eef1f6}.lesson .lesson-title{flex:1;min-width:0}.lesson strong{font-size:14px;display:block;margin-bottom:5px}.lesson small{font-size:11px}.lesson .check{padding:0;width:26px;height:26px;min-height:26px;border-radius:50%;border:1.5px solid #cbd5e5;background:white;color:var(--green);flex-shrink:0}.lesson .check.done{background:#e6f4ed;border-color:#93c8ae}.lesson .action{padding:8px 12px}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.module-actions{margin-top:17px}.info{border-radius:10px;background:#edf3ff;padding:15px;font-size:13px;line-height:1.6;margin:15px 0}.info.warning{background:#fff6de;color:#76581d}.score{font-size:45px;letter-spacing:-2px;display:block;margin:14px 0}.list-row{display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding:16px 0}.list-row:last-child{border:0}.list-row>div:first-child{flex:1}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;font-size:11px;letter-spacing:.4px;color:var(--muted);background:#f5f7fb;padding:13px}td{padding:15px 13px;border-bottom:1px solid var(--line);vertical-align:middle}td small{display:block;margin-top:5px}.toolbar{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-bottom:20px}.toolbar input{margin:0;max-width:320px}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:15px;margin-top:18px;font-size:12px}.row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.full{grid-column:1/-1}.question label{font-weight:400;padding:13px;border:1px solid var(--line);border-radius:9px;margin-bottom:10px}.question h3{font-size:16px;line-height:1.5}.rubric{background:#f5f7fc;border-radius:10px;padding:18px;font-size:13px;margin:15px 0}.rubric li{padding:6px 0}.feedback{white-space:pre-wrap;background:#f5f7fc;border-radius:9px;padding:15px;font-size:13px;line-height:1.6;margin:10px 0}.video{aspect-ratio:16/9;width:100%;border:0;border-radius:12px;background:#1c2540;margin:14px 0}#toast{position:fixed;right:24px;bottom:25px;max-width:450px;padding:15px 22px;background:var(--ink);color:white;box-shadow:0 6px 30px #1f294540;border-radius:12px;z-index:100;display:none;line-height:1.5}#toast.show{display:block}dialog{border:1px solid var(--line);border-radius:20px;padding:35px;max-width:800px;width:calc(100% - 32px);max-height:90vh;color:var(--ink);box-shadow:0 20px 100px #17254535}dialog::backdrop{background:#26325070;backdrop-filter:blur(3px)}.dialog-close{position:absolute;right:12px;top:10px;background:transparent;color:var(--muted);font-size:26px;padding:4px 12px}.dialog-title{padding-right:30px}.editor-module{border:1px solid var(--line);border-radius:12px;padding:18px;margin:18px 0;background:#fafbfe}.editor-item{background:white;border:1px solid var(--line);padding:18px;border-radius:10px;margin:12px 0}.busy{opacity:.65;pointer-events:none}.loading{padding:80px;text-align:center;color:var(--muted)}footer.page-footer{font-size:11px;color:#929bad;text-align:center;margin-top:45px}.login-mobile-brand{display:none}.file-preview{width:100%;height:60vh;border:0;object-fit:contain}.tagline{font-family:Georgia,serif;font-size:14px;color:#8894ad;margin:28px 12px 16px}.preview-banner{background:#fff0c0;color:#655018;padding:9px;text-align:center;font-size:12px}
@media(min-width:1600px){.content{padding-top:48px}.hero{min-height:265px}.hero img{width:250px;height:295px}}
@media(max-width:1150px){.layout{grid-template-columns:220px minmax(0,1fr)}.sidebar{padding:28px 17px}.brand strong{font-size:18px}.content{padding:28px}.topbar{padding:0 28px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.split{grid-template-columns:minmax(0,1fr) 250px}.auth-art{padding:40px}.auth-copy h1{font-size:40px}.auth-portrait{width:280px;height:360px}}
@media(max-width:800px){.auth{grid-template-columns:1fr}.auth-art{display:none}.login-mobile-brand{display:flex;margin-bottom:44px}.auth-form{min-height:100vh;padding:30px 24px;background:linear-gradient(#edf3ff,#fff 40%)}.layout{display:block}.sidebar{position:relative;height:auto;padding:20px;border-bottom:1px solid var(--line);border-right:0}.sidebar .brand{margin:0}.nav-title,.tagline,.sidebar-bottom{display:none}.nav{flex-direction:row;overflow:auto;margin-top:22px;gap:4px}.nav button{white-space:nowrap;padding:11px 13px;font-size:12px}.nav-icon{font-size:16px;width:auto}.topbar{height:58px;padding:0 20px}.content{padding:25px 20px}.welcome h1{font-size:28px}.hero{padding:25px;min-height:230px}.hero h2{font-size:29px}.hero img{width:155px;height:210px;right:0}.hero-copy{max-width:68%}.hero p{font-size:12px}.stats{gap:10px}.stat{padding:15px;display:block}.stat-icon{display:none}.stat strong{font-size:24px}.stat small{font-size:10px}.split{grid-template-columns:1fr}.sticky-card{position:static;order:-1}.sticky-card .score{font-size:32px}.grid{gap:15px}.card{padding:20px}.course-card{padding:0}.row{grid-template-columns:1fr}.full{grid-column:auto}h1{font-size:29px}dialog{padding:27px 20px}.module summary{padding:18px}.module-items{padding:6px 17px 17px}.lesson{gap:9px}.lesson .action{font-size:11px;padding:8px}.lesson strong{font-size:13px}}
@media(max-width:480px){.grid,.grid.two{grid-template-columns:1fr}.hero-copy{max-width:75%}.hero img{right:-60px;opacity:.7}.hero{padding:23px;min-height:245px}.hero p{max-width:230px}.welcome{display:block}.welcome .pill{margin-top:12px}.section-heading h2{font-size:21px}.content{padding:23px 16px}.lesson{flex-wrap:wrap}.lesson .lesson-title{min-width:65%}.lesson .action{margin-left:34px}.auth-footer{margin-top:35px}}

/* Administrative student lists: filters, bulk actions, and responsive controls. */
.student-filter-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;align-items:end;margin:18px 0 24px;padding:20px}
.student-filter-form label{display:flex;flex-direction:column;gap:7px;font-weight:600}
.student-filter-form select[multiple]{min-height:112px}
.student-filter-form .actions{align-self:end;flex-wrap:wrap}
.bulk-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0;padding:16px}
.bulk-toolbar strong{margin-right:auto}
.table-wrap input[type=checkbox]{width:18px;height:18px;accent-color:var(--gold,#e7a919)}
@media(max-width:700px){.student-filter-form{grid-template-columns:1fr;padding:16px}.bulk-toolbar{align-items:stretch;flex-direction:column}.bulk-toolbar strong{margin:0}.student-filter-form .actions>*{flex:1}}

/* Scoped to the Railway course page. */
body.course-editing{background:#f3f6fc}body.course-editing>footer{display:none}.course-screen{min-height:100vh}.course-top{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:24px;padding:15px 32px;box-shadow:0 3px 16px #34416a06}.course-heading{min-width:0}.course-heading>.ghost{padding:0;min-height:30px;font-weight:400}.course-title-line{display:flex;align-items:center;gap:14px;margin-top:5px}.course-title-line h1{font-size:23px;letter-spacing:-.5px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:58vw}.course-title-line .pill{flex-shrink:0}.course-savebar{display:flex;align-items:center;gap:18px;flex-shrink:0}.course-savebar>span{font-size:12px;color:var(--muted);max-width:150px}.course-savebar button{min-width:144px}.course-layout{display:grid;grid-template-columns:264px minmax(0,1fr)}.course-sidebar{position:sticky;top:104px;height:calc(100vh - 104px);overflow:auto;padding:30px 18px;background:white;border-right:1px solid var(--line)}.course-sidebar>.eyebrow{font-size:10px;margin:0 12px 19px}.course-sidebar nav{display:flex;flex-direction:column;gap:6px}.course-nav-button{display:block;width:100%;text-align:left;background:transparent;color:var(--muted);font-weight:500;font-size:14px;line-height:1.5;border:1px solid transparent;padding:13px 14px;overflow-wrap:anywhere}.course-nav-button.active{background:#eaf1fc;border-color:#cddaf0;color:var(--ink);font-weight:700;box-shadow:inset 3px 0 #e9a914}.course-add{width:100%;margin-top:22px;background:#fff9e9!important;border-color:#eddcae!important}.course-sidebar-help{font-size:12px;color:var(--muted);margin:25px 12px 15px}.course-sidebar>a{font-size:12px;margin-left:12px;color:var(--muted)}.course-main{width:100%;max-width:1180px;min-width:0;margin:0 auto;padding:34px 40px 28px}.course-general,.course-main .editor-module{padding:30px 34px;margin:0;background:white;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.course-general>h2{font-size:27px;margin:8px 0 10px}.course-general>.muted{margin-bottom:28px;font-size:14px}.course-main .editor-module>.section-heading{margin-top:0}.course-main .editor-module>.section-heading h3{font-size:24px}.course-main .editor-item{padding:24px;background:#fafcfe;margin:22px 0}.course-main .editor-item>.section-heading{margin-top:0}.course-main textarea{min-height:125px}.course-main label{font-size:15px}.course-main input,.course-main textarea,.course-main select{font-size:16px}.course-main .form-error.show{margin:0 0 20px;scroll-margin-top:130px}.course-main h2,.course-main h3,.course-main input,.course-main textarea{scroll-margin-top:140px;scroll-margin-bottom:90px}.course-bottom-note{text-align:center;color:var(--muted);font-size:12px;margin:25px 0 0}.course-mobile-nav{display:none}.course-screen [hidden]{display:none!important}.course-screen[aria-busy=true] button:disabled{cursor:wait}.course-main .actions{gap:8px}.course-main .info{margin-bottom:0}.course-screen button:focus-visible{outline:3px solid #3c609e;outline-offset:3px}
@media(max-width:1100px){.course-top{padding:14px 22px}.course-savebar{gap:12px}.course-savebar>span{max-width:100px}.course-title-line h1{max-width:42vw}.course-layout{grid-template-columns:230px minmax(0,1fr)}.course-main{padding:26px}.course-general,.course-main .editor-module{padding:24px}}
@media(max-width:800px){.course-top{padding:12px 18px}.course-title-line{gap:9px}.course-title-line h1{max-width:65vw;font-size:20px}.course-title-line .pill{font-size:10px}.course-layout{display:block}.course-sidebar{display:none}.course-main{padding:18px 14px 100px}.course-mobile-nav{display:flex;gap:12px;align-items:flex-end;margin-bottom:18px}.course-mobile-nav label{flex:1;min-width:0;margin:0;font-size:13px}.course-mobile-nav select{margin-top:5px}.course-mobile-nav>button{margin-bottom:1px;white-space:nowrap;min-height:47px}.course-general,.course-main .editor-module{padding:22px 18px;border-radius:12px}.course-main .editor-item{padding:17px 14px}.course-main .editor-module>.section-heading h3{font-size:21px}.course-general>h2{font-size:24px}.course-savebar{position:fixed;bottom:0;left:0;right:0;padding:12px 18px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:white;justify-content:space-between;box-shadow:0 -5px 20px #34416a08;z-index:25}.course-savebar>span{max-width:47%;font-size:12px}.course-savebar button{min-width:140px}.course-main .form-error.show{scroll-margin-top:120px}.course-main .editor-module>.section-heading .actions{gap:4px}.course-main .editor-module>.section-heading{gap:8px}.course-main .editor-item>.section-heading{gap:6px}.course-main .editor-item>.section-heading>.pill{font-size:11px}}
/* Course copies, explicit rollout previews, and independent class release calendars. */
.course-card-actions{align-items:stretch}.course-card-actions button{flex:1 1 160px;min-height:46px}.course-savebar{flex-wrap:wrap;justify-content:flex-end}.course-savebar button{min-width:130px}.course-title-line h1{max-width:38vw}.update-class-picker{padding:17px 18px}.update-class-picker label{display:flex;gap:3px;align-items:center;margin:0;padding:13px 4px;min-height:52px;border-bottom:1px solid var(--line);cursor:pointer}.update-class-picker label:last-child{border-bottom:0}.update-class-picker input{flex-shrink:0}.update-class-picker small{display:block;margin-top:5px;font-weight:400}.update-preview-heading{margin:28px 0 15px;border-top:1px solid var(--line);padding-top:24px}.update-preview-heading h3{margin-bottom:8px}.update-previews{display:grid;gap:18px}.update-preview-card{border:1px solid var(--line);border-radius:13px;padding:19px;background:#fafcff}.update-preview-card>.section-heading{margin:0 0 16px;align-items:flex-start}.update-preview-card h3{margin:0;line-height:1.45;overflow-wrap:anywhere}.update-preview-card>.primary{margin-top:18px;width:100%;min-height:48px}.update-detail{border-bottom:1px solid var(--line);padding:3px 0}.update-detail summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;min-height:48px;cursor:pointer;font-weight:700;list-style:none}.update-detail summary::before{content:'+';font-size:19px;line-height:1;color:var(--muted)}.update-detail[open] summary::before{content:'−'}.update-detail summary .pill{margin-left:auto}.update-detail ul{margin:0;padding:0 0 10px 22px}.update-detail li{line-height:1.55;padding:5px 0;font-size:14px;overflow-wrap:anywhere}.update-detail small{display:block;font-size:12px}.update-detail>.muted{font-size:13px}.update-outcome{padding:13px;border-radius:9px;margin:16px 0 0;font-size:14px}.update-outcome.success{background:#e6f4ed;color:var(--green)}.update-outcome.failure{background:#fff6de;color:#76581d}.module-release-row{padding:18px;margin:22px 0}.module-release-row legend{padding:0 7px;max-width:100%;line-height:1.5;overflow-wrap:anywhere}.module-release-row label:last-child{margin-bottom:0}.module-release-row [hidden]{display:none!important}.module-release-row input,.module-release-row select{font-size:16px}.release-savebar{border-top:1px solid var(--line);padding-top:20px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px}.release-savebar>span{font-size:13px;color:var(--muted);max-width:300px}.release-savebar button{min-height:48px}[data-curriculum-modal]>.actions button{min-height:48px}.module-locked{background:#f5f7fb;border-style:dashed}.locked-module-heading{padding:21px 22px 12px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;font-weight:700;line-height:1.5}.locked-module-heading>.pill{flex-shrink:0}.module-locked>p{padding:0 22px;margin:0 0 20px;color:var(--muted);font-size:14px;line-height:1.6}.learning-sync{font-size:12px;color:var(--muted);margin-bottom:15px}.module summary{min-height:64px}.module-actions button{min-height:46px}.module .lesson .action{min-height:44px}
@media(max-width:1100px) and (min-width:801px){.course-savebar{max-width:310px;gap:9px}.course-savebar>span{max-width:none;flex:1 0 100%;text-align:right}.course-title-line h1{max-width:40vw}}
@media(max-width:800px){.course-title-line h1{max-width:65vw}.course-main{padding-bottom:145px}.course-savebar{display:grid;grid-template-columns:1fr 1fr;gap:7px 10px}.course-savebar>span{grid-column:1/-1;max-width:none}.course-savebar button{min-width:0;padding:12px 9px;min-height:46px;font-size:14px}.course-savebar>button:only-of-type{grid-column:1/-1}.update-preview-card{padding:16px}.update-detail summary{font-size:14px}.release-savebar{display:block}.release-savebar>span{display:block;max-width:none;margin-bottom:13px}.release-savebar .actions{display:grid;grid-template-columns:1fr 1fr}.release-savebar button{padding:12px 10px}.locked-module-heading{padding:18px 17px 10px}.module-locked>p{padding:0 17px;font-size:13px}}
/* Calm module editing: compact overview, explicit expansion, no animated movement. */
.course-main .course-item-disclosure{margin:12px 0;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}
.course-item-disclosure>summary{display:flex;align-items:center;gap:14px;padding:17px 18px;cursor:pointer;list-style:none;min-height:76px}
.course-item-disclosure>summary::-webkit-details-marker{display:none}
.course-item-number{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.course-item-overview{flex:1;min-width:0}.course-item-overview strong{display:block;font-size:16px;line-height:1.5;overflow-wrap:anywhere}.course-item-overview small{display:block;margin-top:3px;font-size:12px;color:var(--muted)}
.course-item-toggle{font-size:13px;color:var(--ink);white-space:nowrap}.course-item-toggle:before{content:'Editar +'}.course-item-disclosure[open]>.course-item-toggle:before{content:'Recolher −'}.course-item-disclosure[open]>summary .course-item-toggle:before{content:'Recolher −'}
.course-item-disclosure[open]>summary{border-bottom:1px solid var(--line);background:#f7f9fc}.course-main .course-item-disclosure .editor-item{margin:0;border:0;border-radius:0;background:#fff;padding:24px}
.course-item-disclosure>summary:focus-visible{outline:3px solid #3c609e;outline-offset:-3px}.course-screen *{scroll-behavior:auto!important}.course-screen .editor-item,.course-screen .course-item-disclosure{animation:none!important;transition:none!important}
@media(max-width:800px){.course-item-disclosure>summary{padding:14px 12px;gap:10px}.course-item-overview strong{font-size:15px}.course-main .course-item-disclosure .editor-item{padding:18px 14px}.course-item-toggle{font-size:12px}}
/* Clear hierarchy and predictable, focused editing. */
.course-impact{padding:14px 32px;background:#fff8e8;border-bottom:1px solid #e4d5b4;font-size:14px;line-height:1.6;color:#665025}.course-impact strong{display:block;color:#433418}
.course-main{max-width:1100px}.course-main .editor-module{background:transparent;border:0;box-shadow:none;padding:0}.course-main .editor-module>.section-heading{padding:22px 24px;background:#33436b;color:white;border-radius:12px 12px 0 0;margin-bottom:0}.course-main .editor-module>.section-heading h3{color:white;font-size:22px}.course-main .editor-module>.section-heading button{background:white;color:#394466}.course-main .editor-module>label{background:white;padding:20px 24px;margin:0 0 24px;border:1px solid var(--line);border-radius:0 0 12px 12px}
.module-orientation{background:#edf3fa;padding:20px 24px;border:1px solid #cbd8e7;margin-bottom:20px;border-radius:10px}.module-orientation strong{font-size:18px}.module-orientation p{font-size:14px;line-height:1.6;max-width:65ch;margin:9px 0 14px}.module-orientation button{background:white}
.course-main .course-item-disclosure{border-left:5px solid #55828a;margin:16px 0;box-shadow:none}.course-main .course-item-disclosure.item-exercise{border-left-color:#b58835}.course-item-overview small{font-weight:600;color:#536477}.course-item-number{background:#eff3f7;min-width:32px;height:32px;display:grid;place-items:center;border-radius:7px;color:#34416a}.course-item-disclosure[open]{border-color:#42618b;outline:2px solid #dce6f3}.course-item-disclosure[open]>summary{background:#eaf0f8}.item-edit-heading{padding:0 0 18px;margin-bottom:20px;border-bottom:1px solid var(--line)}.item-edit-heading p{font-size:13px;color:var(--muted);margin-bottom:0}.course-main .editor-item>.section-heading{justify-content:flex-end;border-bottom:1px solid var(--line);padding-bottom:14px}.course-main .editor-item>.section-heading>.pill{margin-right:auto}.course-main .editor-item .danger{background:transparent;color:#9f3737;border:1px solid #e3cbcb}.course-main .editor-module>.actions{margin-top:28px;padding:22px;background:#eef2f7;border:1px dashed #b2bfd1;border-radius:12px}.course-main .editor-module>.actions:before{content:'2. Adicionar um novo item à aula';display:block;flex-basis:100%;font-weight:700;margin-bottom:8px}
.course-student-preview>article{background:#fff;border:1px solid var(--line);border-radius:10px;padding:22px;margin:18px 0}.course-student-preview>p{background:#fff8e8;padding:16px;font-size:14px}.course-student-preview article small{color:var(--muted)}.course-student-preview fieldset{margin:20px 0}.course-student-preview .markdown{line-height:1.7}.course-screen .course-savebar>span{font-weight:700;color:#70521c}
@media(max-width:800px){.course-impact{padding:12px 18px}.course-main .editor-module>.section-heading{padding:16px}.module-orientation{padding:18px}.course-main .editor-module>label{padding:18px}.course-main .editor-module>.actions{padding:16px}}
/* Focused editing: short navigation, compact chrome, progressive disclosure. */
.course-top{padding:10px 22px;gap:16px;min-height:78px;box-shadow:none}.course-title-line{margin-top:0}.course-title-line h1{font-size:19px;max-width:38vw}.course-savebar{max-width:none!important;flex-wrap:nowrap;gap:10px}.course-savebar>span{flex:none!important;max-width:125px!important;font-size:11px}.course-savebar button{min-width:0;padding:10px 14px;font-size:13px}.course-heading>.ghost{font-size:12px;min-height:24px}
.course-impact{padding:9px 24px;background:#fafbfd;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.course-impact>summary{cursor:pointer}.course-impact p{max-width:80ch;line-height:1.6;margin:10px 0}
.course-layout{grid-template-columns:224px minmax(0,1fr)}.course-sidebar{top:78px;height:calc(100vh - 78px);padding:22px 12px}.course-nav-button{font-size:13px;padding:10px 12px;line-height:1.45}.course-sidebar-help{font-size:11px}.course-main{padding:24px;max-width:1040px}.course-main .editor-module>.section-heading{padding:14px 18px;border-radius:10px 10px 0 0}.course-main .editor-module>.section-heading h3{font-size:19px}.module-orientation{padding:12px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-radius:0;border-top:0;margin:0}.module-orientation>span{font-size:13px;color:var(--muted)}.module-orientation button{font-size:13px;padding:9px 12px}.course-main .editor-module>label{padding:16px 18px;margin-bottom:18px}.course-item-disclosure>summary{padding:14px 16px;min-height:68px}.item-edit-heading{display:none}.course-main .editor-item>.section-heading{padding-bottom:12px;margin-bottom:16px}
.course-more-actions{position:relative;text-align:right;font-size:13px}.course-more-actions>summary{cursor:pointer;padding:8px 10px;color:var(--muted);list-style:none}.course-more-actions>summary:after{content:' ⋯'}.course-more-actions[open]{padding:6px;border:1px solid var(--line);border-radius:8px;background:white}.course-more-actions>button{display:block;margin:5px 0 0 auto!important;font-size:12px!important;padding:8px 12px!important}
.course-question{border:1px solid #ccd6e4;border-radius:9px;margin:12px 0;background:#fff;overflow:hidden}.course-question>summary{list-style:none;padding:17px;cursor:pointer;font-weight:600;font-size:14px;line-height:1.6;color:var(--ink);background:#f6f8fc}.course-question>summary:before{content:'+ ';color:#557099}.course-question[open]>summary{border-bottom:1px solid var(--line)}.course-question[open]>summary:before{content:'− '}.course-question>:not(summary){margin:16px!important}.course-question>.row{padding:0}.course-question textarea{min-height:100px}.course-question .markdown-tools{gap:5px}.course-question .markdown-tools button{font-size:11px;padding:7px 9px}.course-question .row{display:block}.course-question .row>label{margin-bottom:14px}
.student-preview-item{border:1px solid var(--line);background:white;border-radius:10px;margin:12px 0;padding:0 18px 12px}.student-preview-item>summary{cursor:pointer;padding:16px 0;list-style:none}.student-preview-item>summary:after{content:'Abrir conteúdo +';font-size:12px;color:var(--muted)}.student-preview-item[open]>summary:after{content:'Recolher −'}.student-preview-item h3{margin:6px 0;font-size:18px}.student-preview-item small{font-size:12px;color:var(--muted)}.preview-option{display:flex;gap:10px;align-items:flex-start;font-weight:400;padding:12px;border:1px solid var(--line);border-radius:8px;margin:10px 0;line-height:1.5}.preview-option input{flex-shrink:0;margin-top:4px}.course-student-preview>p{font-size:13px;padding:12px;background:#f3f6fb}.course-student-preview>button{position:sticky;bottom:0;width:100%;margin-top:16px}
@media(max-width:800px){.course-top{min-height:72px;padding:10px 16px}.course-title-line h1{max-width:65vw;font-size:17px}.course-layout{display:block}.course-savebar{display:grid;grid-template-columns:1fr 1fr}.course-savebar>span{max-width:none!important;grid-column:1/-1;text-align:left}.course-main{padding:16px 12px 150px}.course-impact{padding:9px 16px}.module-orientation{align-items:flex-start}.module-orientation>span{max-width:130px}.course-question>summary{padding:13px}.course-question>:not(summary){margin:12px!important}}
.question-feedback-fields{border-top:1px solid var(--line);padding-top:16px}.question-feedback-fields h4{margin:0 0 8px}.question-feedback-fields>.muted{font-size:13px}.course-main .question-feedback-fields textarea{min-height:140px;resize:vertical;line-height:1.6}
.practice-editor-section{border:1px solid #d5deeb;border-radius:12px;padding:22px;margin:22px 0;background:#fff}.course-main .practice-editor-section>h3{font-size:19px;margin:0 0 8px}.practice-editor-section>.muted{font-size:13px;line-height:1.6;margin-bottom:18px}.practice-editor-section>label{margin-bottom:0}.practice-rich-tools{display:flex;flex-wrap:wrap;gap:4px;padding:9px;background:#f1f5fa;border:1px solid #c6d2e3;border-radius:9px 9px 0 0;position:sticky;top:78px;z-index:2}.practice-rich-tools button{font-size:13px;padding:8px 10px;background:white}.practice-rich-surface{min-height:360px;padding:22px;border:1px solid #bac8dc;border-top:0;border-radius:0 0 9px 9px;line-height:1.75;font-size:16px;overflow-wrap:anywhere;outline-offset:3px}.practice-rich-surface:focus{outline:2px solid #567baa}.practice-rich-editor>strong{display:none}.practice-rich-surface p{margin:0 0 16px}.practice-rubric-row{display:grid;grid-template-columns:minmax(0,1fr) 100px auto;gap:12px;align-items:start;padding:14px 0;border-bottom:1px solid var(--line)}.course-main .practice-rubric-row textarea{min-height:80px;resize:vertical}.practice-rubric-row button{margin-top:25px;font-size:12px}.rubric-total{font-weight:700;background:#fff4df;padding:12px;border-radius:8px}.rubric-total.valid{background:#e7f3ec;color:#236343}.practice-attachment-upload{padding:15px;border:1px dashed #aebed5;border-radius:9px;background:#f6f9fd}.practice-attachment-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.practice-attachment-row span{min-width:0}.practice-support{background:#f1f5fa;padding:20px;border-radius:10px;margin:22px 0}.practice-support button{display:block;margin:10px 0;max-width:100%;overflow-wrap:anywhere}
@media(max-width:800px){.practice-editor-section{padding:16px}.practice-rich-surface{padding:16px;min-height:300px}.practice-rich-tools{top:72px}.practice-rubric-row{grid-template-columns:minmax(0,1fr) 80px}.practice-rubric-row button{grid-column:1/-1;margin:0;justify-self:end}.practice-attachment-row{align-items:flex-start;flex-direction:column}}
.markdown blockquote{margin:18px 0;padding:12px 18px;border-left:4px solid #7890af;background:#f1f5fa;color:#435473}.markdown blockquote p{margin:6px 0}.practice-rich-surface code{background:#edf0f5;padding:2px 5px;border-radius:4px;font-family:monospace}.practice-rich-surface pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:16px;background:#edf0f5;border:1px solid #d6deea;border-radius:8px;font-family:monospace}
.course-drag-handle{touch-action:none;cursor:grab;align-self:center;min-width:36px;min-height:44px;border:0;background:transparent;color:#64748b;font-size:25px;padding:0 6px}.course-drag-handle:active{cursor:grabbing}.course-dragging{opacity:.55}.course-item-disclosure.drop-before{box-shadow:0 -4px #d99400}.course-item-disclosure.drop-after{box-shadow:0 4px #d99400}
/* A quieter reorder affordance without redundant item numbering. */
.course-drag-handle{font-size:19px;color:#9aa7b5;min-width:32px;width:32px;padding:0 4px;flex-shrink:0;border-radius:6px}
.course-drag-handle:hover,.course-drag-handle:focus-visible{color:#536477;background:#f1f4f8}
.course-drag-handle:focus-visible{outline:2px solid #738aa4;outline-offset:2px}
.course-main .course-item-disclosure{border-left-width:3px;border-left-color:#a9c3c8}
.course-main .course-item-disclosure.item-exercise{border-left-color:#d8c69e}
.course-item-disclosure>summary{gap:10px}

.prompt-plain{white-space:pre-wrap}.markdown{font-weight:normal;overflow-wrap:anywhere;line-height:1.65}.markdown p{margin:0 0 .8em}.markdown h2,.markdown h3,.markdown h4{margin:1em 0 .5em}.markdown pre{white-space:pre-wrap;background:#edf1f8;padding:14px;border-radius:8px}.markdown a{text-decoration:underline}.markdown-tools{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.markdown-tools button{padding:8px 10px;min-height:40px;background:#edf1f8;color:var(--ink);font-size:12px}.markdown-preview{padding:16px;border:1px solid var(--line);border-radius:8px;background:white}.rich-feedback{white-space:normal}.criterion-feedback{margin:16px 0}.criterion-feedback>strong{display:block}.criterion-score{display:block;margin-top:5px;font-weight:bold}.feedback-summary{padding:16px;background:#f3f6fc;border-radius:10px;margin-top:12px}.feedback-summary h4{margin:0 0 8px}.feedback-summary p{margin:0}.grading-status{display:flex;align-items:center;gap:12px;padding:16px;background:#fff2cd;border-radius:10px;margin:16px 0}.grading-spinner{width:22px;height:22px;border:3px solid #e3c16f;border-top-color:#34416a;border-radius:50%;animation:grading-spin 1s linear infinite;flex-shrink:0}@keyframes grading-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.grading-spinner{animation:none}}
/* Practical exercise: clear sections, persistent orientation, progressive disclosure. */
#dialog.practice-dialog{width:calc(100% - 40px);max-width:1220px;height:calc(100dvh - 40px);max-height:none;padding:0;border-radius:20px;background:#f6f8fc;scrollbar-gutter:stable}
.practice-dialog>.dialog-close{position:fixed;right:32px;top:26px;z-index:5;background:white;border-radius:50%}
.practice-header{padding:24px 40px 0;background:white;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:2}
.practice-header>small{display:block;letter-spacing:1.5px;color:var(--muted);margin-top:15px;font-size:11px;font-weight:700}
.practice-header h1{font-size:26px;margin:8px 0 16px;line-height:1.3;padding-right:24px}
.practice-overview{display:flex;justify-content:space-between;gap:18px;align-items:center;font-size:14px;margin-bottom:20px}.practice-overview strong{margin-left:10px;font-size:19px}.practice-overview>span:last-child{color:var(--muted)}
.practice-nav{display:flex;gap:10px;overflow:auto}.practice-nav button{white-space:nowrap;border-radius:8px 8px 0 0;padding:15px 20px;background:transparent;color:var(--ink);border-bottom:3px solid transparent}.practice-nav button[aria-pressed=true]{background:#fff6da;border-color:#efab16;font-weight:700}
.practice-content{padding:32px 40px 44px}.practice-content h2{font-size:23px;margin:0 0 18px}.practice-content h3{font-size:17px}.practice-content p{line-height:1.65}.practice-content button:focus-visible,.practice-nav button:focus-visible,.practice-attempt summary:focus-visible,.practice-criterion summary:focus-visible{outline:3px solid #4765a7;outline-offset:3px}
.practice-instructions{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:32px;margin-bottom:28px}.practice-instructions>div,.practice-instructions aside{padding:26px;background:white;border:1px solid var(--line);border-radius:14px}.practice-instructions aside{align-self:start}.practice-instructions aside h3{margin-top:0}.practice-instructions > aside > ul{padding:0;list-style:none}.practice-instructions aside li{padding:14px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:1.55}.practice-instructions > aside > ul > li > strong{display:block;margin-top:6px}.practice-instructions .markdown{font-size:16px}
.practice-upload{display:block;padding:26px;border:2px dashed #a9b9da;border-radius:14px;background:white;max-width:740px}.practice-upload input{margin:16px 0;border:0;padding:8px 0;background:white}.practice-upload [data-file-selection]{display:block;font-weight:normal;font-size:14px;overflow-wrap:anywhere}.practice-content #practice-form{max-width:740px}.practice-content .primary{min-height:48px;padding:14px 24px}.practice-limit,.practice-empty{padding:24px;background:white;border:1px solid var(--line);border-radius:12px}
.practice-attempt{background:white;border:1px solid var(--line);border-radius:14px;margin-bottom:20px;overflow:hidden}.practice-attempt>summary{display:flex;align-items:center;gap:16px;cursor:pointer;padding:22px;list-style:disclosure-closed}.practice-attempt>summary>span:first-child{flex:1;font-weight:700}.practice-attempt>summary small{display:block;font-size:12px;font-weight:400;margin-top:5px;color:var(--muted)}.practice-attempt>summary>strong{font-size:28px}.practice-attempt>summary>strong small{display:inline}.practice-attempt-body{border-top:1px solid var(--line);padding:26px}.practice-advice{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:28px}.practice-advice section{padding:20px;background:#f2f5fc;border-radius:12px}.practice-advice section:first-child{background:#fff7e3}.practice-advice h3{margin:0 0 10px}.practice-advice p{font-size:15px;margin:0 0 8px}.practice-criterion{border-top:1px solid var(--line);padding:18px 0}.practice-criterion summary{cursor:pointer;line-height:1.5}.practice-criterion summary strong{font-size:15px}.practice-criterion summary span{display:block;margin:8px 0 0 20px;font-weight:700;color:#315d56}.practice-criterion p{margin:14px 20px;font-size:15px}.practice-header .grading-status{margin:12px 0;padding:12px;font-size:14px}
@media(max-width:700px){#dialog.practice-dialog{width:100%;height:100dvh;max-width:none;margin:0;border-radius:0}.practice-header{padding:16px 18px 0}.practice-header h1{font-size:21px}.practice-overview{display:block;font-size:12px}.practice-overview>span{display:block;margin:8px 0}.practice-nav{gap:0}.practice-nav button{padding:13px 10px;font-size:12px}.practice-content{padding:24px 18px}.practice-instructions,.practice-advice{grid-template-columns:1fr;gap:16px}.practice-instructions>div,.practice-instructions aside{padding:20px}.practice-attempt>summary{padding:16px;gap:8px}.practice-attempt-body{padding:18px}.practice-attempt>summary>strong{font-size:22px}.practice-dialog>.dialog-close{right:14px;top:12px}.practice-content .primary{width:100%}}
body:has(#dialog.practice-dialog[open]){overflow:hidden}.practice-attempt>summary:after{content:'⌄';font-size:22px}.practice-attempt[open]>summary:after{content:'⌃'}
@media(max-width:700px){.practice-nav{overflow:visible}.practice-nav button{flex:1;white-space:normal;padding:12px 6px;font-size:12px;line-height:1.35}.practice-header>small{display:none}.practice-header h1{margin-top:10px}.practice-overview{display:flex;gap:8px;align-items:start;margin-bottom:10px}.practice-overview strong{display:block;margin:4px 0 0}.practice-overview>span:last-child{max-width:120px}.practice-upload{padding:18px}.practice-header .ghost{padding:8px}.practice-content{padding-top:20px}}

.practice-general{background:#f1f5fc;border-radius:14px;padding:22px;margin:0 0 24px}.practice-general p,.practice-criterion p{white-space:pre-wrap;line-height:1.7}.practice-next{margin-top:24px;background:#fff7e2}.practice-criterion h4{margin:0 0 8px}.practice-criterion{padding:20px 0}


.registration-page{max-width:780px;margin:32px auto;padding:20px}.registration-page .brand{margin-bottom:24px}.registration-page h1{font-size:30px}.registration-description{white-space:pre-wrap}.registration-entry{margin:16px 0}.registration-entry dl{display:grid;grid-template-columns:140px 1fr;gap:8px}.registration-entry dd{margin:0;overflow-wrap:anywhere}@media(max-width:600px){.registration-page{padding:12px;margin:12px auto}.registration-entry dl{grid-template-columns:1fr}.registration-entry dt{font-weight:bold}}

#registration-form-area{margin-top:24px}.registration-page input,.registration-page select{font-size:16px}.registration-page .actions{gap:12px}

.cpf-exemption{font-size:.875rem;display:flex;align-items:center;gap:8px;margin-top:-8px}.cpf-exemption input{width:auto;min-width:18px;min-height:18px}
.theory-result{padding:20px 0;border-bottom:1px solid #dce3f2}.theory-result:last-child{border-bottom:0}.theory-result h4{margin:0}.theory-result .actions{flex-wrap:wrap}.theory-result .info p{margin-bottom:0}
.notice .markdown{font-family:inherit;font-size:14px;color:var(--muted)}.notice .markdown p,.notice .markdown ul,.notice .markdown ol,.notice .markdown li{font-family:inherit;font-size:inherit;line-height:inherit;color:inherit}

.grading-file-nav{display:flex;align-items:center;gap:14px;margin:0 32px 20px 0}.grading-file-nav>div{flex:1;min-width:0;overflow-wrap:anywhere}.grading-file-nav small{display:block;color:var(--muted);margin-top:4px}.grading-file-nav button{flex-shrink:0;min-width:44px;min-height:44px;font-size:24px;padding:6px 12px}

/* Keep the fixed practical-exercise header compact without shrinking touch targets. */
.practice-header{padding-top:12px}.practice-header>.ghost{padding:6px 12px;min-height:44px}.practice-header>small{margin-top:4px}.practice-header h1{font-size:24px;margin:4px 0 8px}.practice-overview{margin-bottom:10px}.practice-nav button{padding:10px 16px;min-height:44px}
@media(max-width:700px){.practice-header{padding-top:8px}.practice-header h1{font-size:20px;margin:6px 0 8px}.practice-overview{margin-bottom:6px}.practice-nav button{padding:8px 6px;min-height:44px}}
.student-code-block{position:relative;margin:18px 0;border:1px solid #d0d9e6;border-radius:9px;background:#f2f5fa;padding-top:46px;overflow:hidden}.student-code-block>pre{margin:0!important;border:0!important;border-radius:0!important;overflow-x:auto;padding:16px!important;white-space:pre-wrap;overflow-wrap:anywhere}.code-copy{position:absolute;top:5px;right:6px;display:flex;align-items:center;gap:6px;min-height:36px;padding:6px 10px;border:1px solid #cbd6e6;background:white;color:#34416a;border-radius:6px;font:inherit;font-size:12px;cursor:pointer}.code-copy:focus-visible{outline:3px solid #426ba4;outline-offset:2px}.code-copy:disabled{opacity:.65;cursor:wait}

/* Stack the practical result above attempts; keep statement typography compact. */
.practice-header .practice-overview{flex-direction:column;align-items:flex-end;justify-content:flex-start;gap:4px;text-align:right}
.practice-header .practice-overview>span{display:block;margin:0}
.practice-header .practice-overview strong{display:inline;margin:0 0 0 8px}
.practice-header .practice-overview>span:last-child{max-width:none}
.practice-instructions .markdown[data-practice-prompt]{font-size:14px;line-height:1.65}
.practice-instructions [data-practice-prompt] p,.practice-instructions [data-practice-prompt] li{font-size:inherit;line-height:inherit}

/* Share header rows between the title and result instead of stacking both. */
.practice-header{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;padding-top:6px}
.practice-header>.ghost{grid-column:1;justify-self:start}
.practice-header>small{grid-column:1;margin-top:0}
.practice-header h1{grid-column:1;margin:2px 0 10px}
.practice-header .practice-overview{grid-column:2;grid-row:2 / 4;align-self:center;margin:0 0 8px}
.practice-header>.practice-nav,.practice-header>[data-practice-status]{grid-column:1 / -1}
@media(max-width:700px){.practice-header{column-gap:12px}.practice-header h1{grid-column:1 / -1;font-size:20px;margin-bottom:6px}.practice-header .practice-overview{grid-row:2;align-self:end;margin:0 0 2px;font-size:11px;gap:2px}.practice-header .practice-overview strong{font-size:15px}.practice-header>small{align-self:center;font-size:10px}.practice-header .practice-nav button{min-height:44px}}

.password-control{display:flex;align-items:center;position:relative;width:100%}.password-control input{padding-right:52px;width:100%;min-width:0}.password-eye{position:absolute;right:5px;min-width:40px;min-height:40px;padding:4px;background:transparent;color:#394972;border:0;font-size:24px}.password-eye:focus-visible{outline:2px solid #394972}.notice .markdown{overflow-wrap:anywhere}button.stat-shortcut{color:var(--ink);font-weight:400;text-align:left;width:100%;transition:border-color .15s,background .15s}button.stat-shortcut:hover{border-color:var(--ink);background:var(--blue);filter:none}.grading-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:20px 0}.grading-row{display:grid;grid-template-columns:24px 2fr 1.2fr 1fr;gap:22px;margin:16px 0}.grading-row .actions{flex-direction:column;align-items:stretch}.grading-row p{margin:8px 0}.grading-event{border-bottom:1px solid var(--line);padding:16px 0}.grading-selection{display:flex;gap:12px;align-items:center}.grading-selection input,.grading-row input{width:20px;min-height:20px}.grading-screen{overflow-wrap:anywhere}@media(max-width:800px){.grading-row{grid-template-columns:1fr}.grading-toolbar{flex-direction:column;align-items:stretch}.grading-screen .actions{flex-wrap:wrap}}

.grading-detail { max-width: 1160px; margin-inline: auto; }
.grading-detail-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.grading-detail-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grading-detail-nav span { color: var(--muted); font-size: .875rem; }
.grading-detail-heading { margin-bottom: 22px; }
.grading-detail-heading h1 { margin: 4px 0 8px; }
.grading-detail-heading p { margin: 0; }
.grading-detail-heading span, .grading-kicker { color: var(--muted); }
.grading-kicker { font-size: .875rem; font-weight: 700; }
.grading-detail-grid { display: grid; grid-template-columns: minmax(220px, 270px) minmax(0, 1fr); gap: 20px; align-items: start; }
.grading-detail-main { display: grid; gap: 16px; min-width: 0; }
.grading-detail-main > div:empty, .grading-detail-actions > span:empty, .grading-detail-actions button[hidden] { display: none; }
.grading-detail-attempts { padding: 16px; }
.grading-detail h2 { margin: 0 0 14px; font-size: 1.15rem; }
.grading-attempt-list { display: grid; gap: 8px; }
.grading-attempt-list button { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding: 10px; text-align: left; background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.grading-attempt-list button[aria-current="true"] { opacity: 1; background: var(--blue); border-color: var(--ink); }
.grading-attempt-list small, .grading-detail-score > span, .grading-event small { display: block; color: var(--muted); }
.grading-attempt-list small { margin-top: 4px; font-size: .75rem; }
.grading-attempt-score { flex-shrink: 0; font-size: .8rem; font-weight: 700; }
.grading-detail-status { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 16px; background: #f6f8fc; border-radius: 10px; }
.grading-detail-sent { margin: 6px 0 0; color: var(--muted); font-size: .875rem; }
.grading-detail-score { text-align: right; }
.grading-detail-score > span { font-size: .8rem; }
.grading-detail-score strong { font-size: 1.5rem; }
.grading-detail-score small { color: var(--muted); font-size: .9rem; }
.grading-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.grading-feedback p, .grading-detail-history p { white-space: pre-wrap; }
.grading-feedback h3 { margin: 18px 0 6px; font-size: .98rem; }
.grading-feedback ul { list-style: none; padding: 0; margin: 0; }
.grading-feedback li { padding: 12px 0; border-top: 1px solid var(--line); }
.grading-feedback li div { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.grading-feedback li span { color: var(--muted); font-size: .875rem; }
.grading-feedback li p, .grading-event p { margin: 5px 0 0; }
.grading-detail-history summary { cursor: pointer; font-weight: 700; }
.grading-detail-history .grading-event:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 1000px) {
 .grading-detail-grid { grid-template-columns: minmax(0, 1fr); }
 .grading-attempt-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); }
}
@media (max-width: 480px) {
 .grading-detail .card { padding: 16px; }
 .grading-detail-score { text-align: left; }
 .grading-detail-actions > button, .grading-detail-actions > span, .grading-detail-actions > a { width: 100%; }
 .grading-detail-actions > span > button { width: 100%; }
}

#dialog{display:none;position:fixed;inset:0;margin:auto;z-index:1001;overflow:auto;border:1px solid var(--line);border-radius:20px;padding:35px;max-width:800px;width:calc(100% - 32px);max-height:90vh;height:fit-content;color:var(--ink);background:white;box-shadow:0 20px 100px #17254535}#dialog[open]{display:block}#modal-backdrop{position:fixed;inset:0;z-index:1000;background:#26325070;backdrop-filter:blur(3px)}#modal-backdrop[hidden]{display:none}
.content:has(.results-screen){max-width:none}.results-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.result-student{display:grid;grid-template-columns:2fr 1fr 1fr 1.5fr auto;align-items:center;gap:18px;margin-bottom:12px}.result-student h3{margin-bottom:10px}.results-attempt{margin:20px 0}.impersonation-banner{position:sticky;top:0;z-index:20;padding:14px 24px;background:#fff0c0;display:flex;align-items:center;justify-content:space-between;gap:12px}.impersonation-banner button{background:#34416a}@media(max-width:800px){.results-filters,.result-student{grid-template-columns:1fr}.impersonation-banner{flex-direction:column;align-items:stretch}.results-screen .actions{flex-wrap:wrap}}/* Opt-in only: the public pages and administration retain the light palette. */
:root[data-student-theme="light"]{color-scheme:light}
.student-theme-toggle{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.student-theme-toggle [aria-hidden]{font-size:18px;line-height:1}
.pix-key{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.pix-key>div{flex:1;min-width:0}.pix-key strong,.pix-key [data-pix-key]{display:block}.pix-key [data-pix-key]{margin-top:8px;overflow-wrap:anywhere;user-select:all}.pix-key [data-pix-copy-status]{flex-basis:100%}.pix-key [data-pix-copy-status]:empty{display:none}
.certificate-checkout-details{margin:16px 0;padding:0;border:0}
.certificate-checkout-identity{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px}
.certificate-checkout-identity label{margin:0}
#dialog:has(.certificate-journey){width:min(1000px,calc(100vw - 28px));max-width:1000px;padding:clamp(20px,4vw,38px)}
.certificate-journey{display:block;max-width:820px;margin:0 auto}
.certificate-content-link{display:inline-flex;align-items:center;margin:-10px 0 18px;padding:5px 0;border:0;background:transparent;color:var(--muted);font-size:13px;cursor:pointer}.certificate-content-link:hover{color:var(--ink);text-decoration:underline}
.certificate-journey-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 24px;padding:0;list-style:none}
.certificate-journey-steps li{display:flex;align-items:center;gap:8px;padding:0 0 10px;border-bottom:2px solid var(--line);color:var(--muted);font-size:13px}
.certificate-journey-steps li span{display:grid;place-items:center;width:27px;height:27px;flex:0 0 27px;border:1px solid var(--line);border-radius:50%;font-size:12px}
.certificate-journey-steps [aria-current=step]{border-color:var(--gold);color:var(--ink);font-weight:700}
.certificate-journey-steps [aria-current=step] span{border-color:var(--gold);background:var(--gold);color:#382b0d}
.certificate-journey-steps .complete{border-color:var(--green);color:var(--ink)}
.certificate-journey-steps .complete span{border-color:var(--green);color:var(--green)}
.certificate-journey-panel[hidden]{display:none!important}
.certificate-journey.is-graduation{max-width:920px}
.certificate-journey.is-graduation .certificate-journey-steps{display:none}
.certificate-journey.is-graduation .certificate-content-link{display:none}
.certificate-journey-panel[data-journey-panel="0"]{display:grid;grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr);align-items:center;gap:clamp(22px,4vw,42px)}
.certificate-journey-panel h2{margin:8px 0 14px;font-size:clamp(23px,3vw,31px);line-height:1.2}
.certificate-journey-panel>p{font-size:16px;line-height:1.65}
.certificate-journey-panel .eyebrow{letter-spacing:.12em}
.certificate-graduation-art{display:block;width:100%;max-height:440px;object-fit:contain;border-radius:18px;background:#e8f0ff}
.certificate-graduation-copy{padding:4px 0}
.certificate-graduation-copy .eyebrow{color:var(--muted)}
.certificate-graduation-copy h2{margin-top:8px;font-size:clamp(29px,4vw,40px)}
.certificate-graduation-copy p{font-size:16px;line-height:1.7}
.certificate-graduation-copy .certificate-journey-actions{justify-content:flex-start;flex-wrap:wrap}
.certificate-journey-actions{display:flex;justify-content:space-between;gap:12px;margin-top:24px}
.certificate-journey-actions>*{min-width:150px}
.certificate-pix-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px 14px;margin:20px 0 18px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--blue)}
.certificate-pix-row>div{min-width:0}.certificate-pix-row strong,.certificate-pix-row [data-pix-key]{display:block}.certificate-pix-row [data-pix-key]{margin-top:6px;overflow-wrap:anywhere;word-break:normal;user-select:all}.certificate-pix-row [data-pix-copy-status]{grid-column:1/-1;margin:0}.certificate-pix-row [data-pix-copy-status]:empty{display:none}
.certificate-copy-pix{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 14px;border:1px solid #9bd6c2;border-radius:10px;background:#e8f7f1;color:#12684f;font-weight:700;white-space:nowrap;cursor:pointer;transition:background .15s ease,border-color .15s ease,transform .15s ease}
.certificate-copy-pix:hover{background:#d9f1e8;border-color:#65b998;transform:translateY(-1px)}
.certificate-copy-pix:focus-visible{outline:3px solid #75c7a8;outline-offset:2px}
.certificate-copy-pix svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.certificate-proof-label{margin:14px 0 4px}.certificate-proof-label input{margin-top:7px}
.certificate-flow-error{margin:0 0 14px;padding:12px;border-radius:8px;background:#fff0ed;color:#8a2c1f}
.certificate-flow-message{padding:18px}.certificate-flow-message h2{margin-top:0}
.certificate-purchase-success{padding:24px 0;text-align:center}
.certificate-purchase-success>span{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 14px;border-radius:50%;background:var(--green);color:#fff;font-size:30px;font-weight:700}
.certificate-purchase-success p{font-size:17px;line-height:1.7}
.certificate-finish-button{width:100%;margin-top:10px}
@media(max-width:620px){.certificate-journey-steps{gap:5px}.certificate-journey-steps li{flex-direction:column;align-items:center;gap:4px;text-align:center;font-size:11px}.certificate-journey-panel[data-journey-panel="0"]{grid-template-columns:1fr;gap:12px}.certificate-graduation-art{max-height:250px}.certificate-graduation-copy .certificate-journey-actions{flex-direction:column}.certificate-journey-actions>*{min-width:0;flex:1}.certificate-pix-row{align-items:start}}
[data-student-theme="dark"] .certificate-graduation-art{background:#233149}
[data-student-theme="dark"] .certificate-flow-error{background:#482832;color:var(--red)}
[data-student-theme="dark"] .certificate-copy-pix{background:#183b32;border-color:#43856b;color:#a5ebca}
[data-student-theme="dark"] .certificate-copy-pix:hover{background:#204a3e;border-color:#68b893}
:root[data-student-theme="dark"]{
 color-scheme:dark;--ink:#e0e7f5;--muted:#b0bdd1;--blue:#233149;
 --paper:#192333;--line:#35445b;--green:#81d5ac;--red:#ffaaaa;
 --gold-dark:#ffd27a;--shadow:0 12px 45px #0002;
 background:#111926;color:var(--ink);
}
[data-student-theme="dark"] body{background:#111926}
[data-student-theme="dark"] :is(.sidebar,.topbar,.card,.stat,.module,.practice-header,.practice-instructions>div,.practice-instructions aside,.practice-upload,.practice-limit,.practice-empty,.practice-attempt,.markdown-preview){background:var(--paper)}
[data-student-theme="dark"] #dialog,[data-student-theme="dark"] #dialog.practice-dialog{background:#162030}
[data-student-theme="dark"] :is(input,select,textarea){background:#111c2c;border-color:#4a5b75;color:var(--ink)}
[data-student-theme="dark"] input::placeholder,[data-student-theme="dark"] textarea::placeholder{color:#9ba9bf;opacity:1}
[data-student-theme="dark"] button{background:#345682;color:#fff}
[data-student-theme="dark"] button.primary{background:var(--gold);color:#382b0d}
[data-student-theme="dark"] :is(button.secondary,.markdown-tools button,.code-copy){background:#26354c;color:var(--ink);border-color:var(--line)}
[data-student-theme="dark"] button.ghost,[data-student-theme="dark"] .nav button{background:transparent;color:var(--muted)}
[data-student-theme="dark"] .nav button.active,[data-student-theme="dark"] .practice-nav button[aria-pressed="true"]{background:#41351f;color:#ffe0a2}
[data-student-theme="dark"] :is(.avatar,.stat-icon,.pill,th,.feedback,.feedback-summary,.practice-general,.practice-advice section,.markdown pre,.student-code-block,.empty){background:#243249;color:var(--ink)}
[data-student-theme="dark"] .pill.green,[data-student-theme="dark"] .lesson .check.done{background:#173d33;color:var(--green);border-color:#43856b}
[data-student-theme="dark"] :is(.pill.gold,.info.warning,.grading-status,.practice-advice section:first-child,.practice-next){background:#40341d;color:#ffe0a2}
[data-student-theme="dark"] .info{background:#243751;color:var(--ink)}
[data-student-theme="dark"] :is(.hero,.course-cover){background:linear-gradient(115deg,#263c5b,#24324a);border-color:var(--line)}
[data-student-theme="dark"] .course-cover.gold{background:linear-gradient(115deg,#473a22,#554327)}
[data-student-theme="dark"] :is(.eyebrow,.nav-title,.hero .eyebrow){color:var(--muted)}
[data-student-theme="dark"] :is(.lesson,.theory-result,.practice-attempt-body,.student-code-block){border-color:var(--line)}
[data-student-theme="dark"] .lesson .check{background:#192333;border-color:#647690}
[data-student-theme="dark"] .progress-track{background:#35445b}
[data-student-theme="dark"] .practice-nav button{background:transparent;color:var(--ink)}
[data-student-theme="dark"] .practice-upload input{background:transparent}
[data-student-theme="dark"] .practice-criterion summary span{color:var(--green)}
[data-student-theme="dark"] :is(.form-error,button.danger){background:#482832;color:var(--red)}
[data-student-theme="dark"] :is(button,a,input,select,textarea,summary):focus-visible{outline-color:#9bc3ff}
[data-student-theme="dark"] #modal-backdrop{background:#0009}
[data-student-theme="dark"] .impersonation-banner{background:#40341d;color:#ffe0a2}
[data-student-theme="dark"] #dialog>.dialog-close{background:#26354c;color:#e0e7f5;border:1px solid #8096b4}
[data-student-theme="dark"] #dialog>.dialog-close:hover{background:#354b69}
[data-student-theme="dark"] input:is([type="checkbox"],[type="radio"]){appearance:none;-webkit-appearance:none;position:relative;display:inline-grid;place-content:center;flex-shrink:0;width:20px;height:20px;min-height:20px;padding:0;background:#142237;border:2px solid #9eb8db;vertical-align:middle;cursor:pointer;accent-color:#ffbf47}
[data-student-theme="dark"] input[type="radio"]{border-radius:50%}
[data-student-theme="dark"] input[type="checkbox"]{border-radius:4px}
[data-student-theme="dark"] input:is([type="checkbox"],[type="radio"]):not(:disabled):hover{border-color:#ffcf70;background:#243c58}
[data-student-theme="dark"] input:is([type="checkbox"],[type="radio"]):checked{background:#ffbf47;border-color:#ffbf47}
[data-student-theme="dark"] input[type="radio"]:checked::after{content:"";width:8px;height:8px;border-radius:50%;background:#172030}
[data-student-theme="dark"] input[type="checkbox"]:checked::after{content:"";width:6px;height:10px;border:solid #172030;border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg)}
[data-student-theme="dark"] input:is([type="checkbox"],[type="radio"]):disabled{opacity:.45;cursor:not-allowed}
[data-student-theme="dark"] .question label:has(input:checked){border-color:#ffbf47;background:#302b21}
@media(forced-colors:active){[data-student-theme="dark"] input:is([type="checkbox"],[type="radio"]){appearance:auto;-webkit-appearance:auto}[data-student-theme="dark"] input:checked::after{content:none}}
@media(max-width:700px){.topbar:has(.student-theme-toggle){height:auto;min-height:70px;padding-block:12px;gap:10px;flex-wrap:wrap}.topbar:has(.student-theme-toggle) .actions{gap:6px}.topbar:has(.student-theme-toggle) .actions>.pill{display:none}}

.certificate-payment-notice{margin:16px 0;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.certificate-payment-notice strong{display:block;font-size:1rem}
.payment-review-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin:12px 0;padding:18px 24px}
.payment-review-amount{margin-top:6px;font-weight:700}

.payment-review-filter{max-width:18rem}
.payment-review-row strong + .pill{margin-inline-start:8px}

.payment-review-dates{display:flex;flex-wrap:wrap;gap:8px 24px;margin:12px 0 0;font-size:.875rem}
.payment-review-dates dt{color:var(--muted)}
.payment-review-dates dd{margin:3px 0 0;font-weight:600}

.payment-attempt-history{width:100%;min-width:0}.payment-attempt-history h3{margin:0 0 10px;font-size:1rem}.payment-attempt-history ol{display:grid;gap:8px;list-style:none;padding:0;margin:0}.payment-attempt-history li{border:1px solid var(--line);padding:12px 16px;border-radius:10px}.payment-attempt-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.payment-attempt-history .payment-review-dates{margin:8px 0}.payment-attempt-comment{white-space:pre-wrap;overflow-wrap:anywhere}
.payment-attempt-history summary{display:flex;align-items:center;gap:10px;cursor:pointer;font-weight:700;list-style:none}.payment-attempt-history summary::-webkit-details-marker{display:none}.payment-attempt-history summary::after{content:"";width:8px;height:8px;border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-2px) rotate(45deg)}.payment-attempt-history[open] summary::after{transform:translateY(2px) rotate(225deg)}.payment-attempt-history[open] ol{margin-top:10px}
