:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#25302b;background:#f6f7f3;font-size:15px;line-height:1.5}*{box-sizing:border-box}body{margin:0}a{color:#315b46;text-decoration:none}a:hover{text-decoration:underline}.shell{max-width:1180px;margin:auto;padding-left:24px;padding-right:24px}.site-header{background:#fff;border-bottom:1px solid #e3e8e1}.header-inner{min-height:72px;display:flex;align-items:center;gap:36px}.brand{font-weight:750;color:#1d3c2b;font-size:18px;white-space:nowrap}.brand:first-letter{font-size:24px}nav{display:flex;gap:23px;align-items:center;flex:1}nav a{color:#617167;font-weight:550}nav a[aria-current]{color:#234d35}h1,h2,h3,p{margin-top:0}h1{font-size:36px;letter-spacing:-.035em;margin-bottom:4px}h2{font-size:19px;letter-spacing:-.015em}h3{font-size:16px}.muted{color:#748077}.small,small{font-size:12px}.eyebrow{font-size:11px;letter-spacing:.11em;color:#648273;font-weight:750;margin-bottom:8px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:43px 0 27px}.page-heading .muted{margin:0}.card{background:#fff;border:1px solid #e3e8e1;border-radius:10px;padding:26px;margin-bottom:20px;box-shadow:0 2px 7px rgba(31,52,35,.025)}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.stat{display:flex;flex-direction:column;min-height:142px}.stat strong{font-size:32px;line-height:1.25;margin:12px 0 4px;color:#1f4330;letter-spacing:-.03em}.stat strong small,.review-total small{font-size:16px;font-weight:500}.label{color:#65756a;font-size:13px;font-weight:650}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px}.two-col.wide-left{grid-template-columns:minmax(0,1.35fr) minmax(330px,1fr)}.stack .card{margin-bottom:20px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.section-heading h2{margin:0}.section-heading a,.entry-head a{font-size:13px;font-weight:650}.progress-label{display:flex;justify-content:space-between;margin-top:24px;font-size:13px}progress{width:100%;height:9px;accent-color:#3f7957;margin:8px 0 5px}.plan{font-size:20px;line-height:1.5;color:#2d4033;padding-top:15px}.empty{color:#849087;padding:12px 0}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:12px;color:#829087;font-weight:650}td,th{padding:12px 9px;border-bottom:1px solid #ecf0ea}td{font-size:14px}.button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #cbd9cf;border-radius:7px;background:#fff;color:#315b46;font:600 13px inherit;font-size:13px;font-weight:650;padding:10px 15px;cursor:pointer;white-space:nowrap}.button:hover{background:#f1f6f2;text-decoration:none}.button-dark{background:#315c42;color:#fff;border-color:#315c42}.button-dark:hover{background:#254b35;color:#fff}.button-danger{color:#a33d3d;border-color:#ecc8c8;margin-top:20px}.button-group{display:flex;gap:8px}.form-grid{display:grid;gap:16px}.form-grid label{display:grid;gap:6px;font-size:13px;font-weight:650;color:#4b5f51}.form-grid input,.form-grid textarea,.form-grid select{width:100%;border:1px solid #d7dfd6;border-radius:6px;padding:10px 11px;background:#fff;color:#26392d;font:inherit;font-size:14px}.form-grid textarea{resize:vertical}.form-grid input:focus,.form-grid textarea:focus,.form-grid select:focus{outline:2px solid #a5c7ae;border-color:#5c916d}.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.form-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid .button{justify-self:start}.hint{font-size:12px;color:#8a968c;margin:-11px 0 0}.course-item{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #e9eee8;padding:17px 0;color:#263b2c}.course-item:first-child{padding-top:0}.course-item:last-child{border:0;padding-bottom:0}.course-item small{display:block;color:#8a968c;margin-top:3px}.course-progress{font-weight:700;color:#426a4f}.pill{font-size:12px;font-weight:650;border-radius:20px;padding:5px 10px;background:#e8f1e9;color:#3d6a4b;white-space:nowrap}.status-not-started{background:#eef0ed;color:#69766d}.status-need-review{background:#fbf0de;color:#936523}.status-learning{background:#e6effa;color:#3c6799}.lecture{border-bottom:1px solid #e9eee8}.lecture summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;padding:13px 0;gap:10px;list-style:none}.lecture summary::-webkit-details-marker{display:none}.lecture-form{padding:8px 0 22px}.back-link{display:block;margin-bottom:8px;font-size:13px}.entry{border-bottom:1px solid #e8eee8;padding:20px 0}.entry:first-child{padding-top:4px}.entry:last-child{border:0}.entry-head{display:flex;justify-content:space-between;gap:12px}.entry h3{margin-bottom:4px}.entry p{white-space:pre-wrap;margin-bottom:8px}.sticky-card{align-self:start}.narrow{max-width:740px}.notice{padding:12px 16px;border-radius:6px;margin-top:18px;background:#e5f2e7;color:#285537}.notice.error{background:#fff0ed;color:#a13d34}.period-nav{display:flex;gap:20px;margin:-6px 0 20px;font-size:13px}.review-total{font-size:35px;font-weight:750;color:#315c42}.footer{padding-top:20px;padding-bottom:30px;font-size:12px;color:#9ba69d}@media(max-width:800px){.header-inner{flex-wrap:wrap;padding-top:13px;padding-bottom:13px;gap:12px}nav{order:3;width:100%;overflow-x:auto;gap:17px}.stats,.two-col,.two-col.wide-left{grid-template-columns:1fr}.page-heading{margin-top:30px}.site-header .button{padding:8px}.form-row.three{grid-template-columns:1fr 1fr}}@media(max-width:540px){.shell{padding-left:15px;padding-right:15px}.brand{font-size:15px}.page-heading{align-items:start;flex-direction:column}h1{font-size:29px}.card{padding:18px}.form-row,.form-row.three{grid-template-columns:1fr}}
.save-status{position:fixed;right:24px;bottom:24px;z-index:20;max-width:min(420px,calc(100vw - 32px));padding:12px 16px;border:1px solid #b9d0bd;border-radius:8px;background:#f2f8f2;color:#264a34;box-shadow:0 8px 24px #0002;font-size:14px}.save-status.error{border-color:#e4b1a9;background:#fff2ef;color:#8b3025}.save-status[hidden]{display:none}

.lecture .deadline-editor{padding:0 0 14px}.lecture .deadline-editor>summary{display:inline-flex;justify-content:center;border:1px solid #cbd9cf;border-radius:7px;padding:8px 12px;color:#315b46;font-size:13px;font-weight:650;background:#fff}.lecture .deadline-editor>summary:hover{background:#f1f6f2}.lecture .deadline-editor[open]>summary{margin-bottom:8px}

.lecture-parts{margin:8px 0 12px 24px;padding-left:16px;border-left:2px solid #dfe9e1}.lecture-parts>h3{margin:8px 0 2px;color:#607268;font-size:13px}.lecture-parts>.part{padding-left:4px}.lecture-parts>.part>summary{padding-left:8px}@media(max-width:540px){.lecture-parts{margin-left:10px;padding-left:10px}}

.form-field{display:grid;gap:6px}.field-label{font-size:13px;font-weight:650;color:#4b5f51}.file-picker{display:flex;align-items:center;gap:12px;flex-wrap:wrap}

.lecture .task-add-editor{padding:0 0 14px}.lecture .task-add-editor>summary{display:inline-flex;justify-content:center;border:1px solid #b8cfbd;border-radius:7px;padding:8px 12px;color:#315b46;font-size:13px;font-weight:650;background:#f4f8f4}.lecture .task-add-editor>summary:hover{background:#eaf3eb}.lecture .task-add-editor[open]>summary{margin-bottom:8px}

.lecture .lesson-editor{padding:0 0 14px}.lecture .lesson-editor>summary{display:inline-flex;justify-content:center;border:1px solid #d8dfd8;border-radius:7px;padding:8px 12px;color:#53665a;font-size:13px;font-weight:650;background:#fff}.lecture .lesson-editor>summary:hover{background:#f5f7f4}.lecture .lesson-editor[open]>summary{margin-bottom:8px}.notice.compact{display:inline-block;margin:0 0 12px;padding:7px 10px;font-size:12px}

.schedule-answers{margin-bottom:20px}.schedule-answers .stat{min-height:126px}.schedule-answers .stat strong{font-size:25px}.schedule-answers .stat a{margin-top:auto;font-size:13px;font-weight:650}
/* Tài khoản và đăng nhập */
.account-actions { display: flex; align-items: center; gap: .6rem; }
.account-actions form { margin: 0; }
.auth-card { margin-top: 4rem; }
.user-row{border-bottom:1px solid #e9eee8;padding:18px 0}.user-row:first-child{padding-top:0}.user-row:last-child{border:0;padding-bottom:0}.user-row-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.user-row-head small{display:block;color:#8a968c;margin-top:3px}.user-row-head b{color:#315b46}.user-row-actions{display:flex;flex-wrap:wrap;gap:8px 12px;margin-top:12px}.user-row .inline-form{display:flex;gap:6px;margin:0;flex:1 1 220px}.user-row .inline-form input{flex:1;min-width:0;border:1px solid #d7dfd6;border-radius:6px;padding:8px 10px;font:inherit;font-size:13px}.danger-zone{margin-top:10px}.danger-zone summary{cursor:pointer;color:#a33d3d;font-size:12px;font-weight:650}.danger-zone p{margin:8px 0}.danger-zone .button-danger{margin-top:0}
.button-row{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.button-row form{margin:0}.form-grid fieldset{border:1px solid #e3e8e1;border-radius:7px;padding:14px;display:grid;gap:10px}.form-grid fieldset legend{font-size:13px;font-weight:700;color:#4b5f51;padding:0 5px}.form-grid label.checkbox{display:flex;align-items:center;gap:8px;font-weight:550}.form-grid label.checkbox input[type=checkbox]{width:auto;flex:0 0 auto}

/* Keep the linked work visible when opening its enclosing lesson. */
.lecture[id] { scroll-margin-top: 1rem; }
.lecture:target { outline: 2px solid #548567; outline-offset: 4px; }
