@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;450;500;550;600;650;700;750;800&display=swap');
:root{--ink:#202b28;--muted:#7a8580;--green:#1b6356;--lime:#d9edaf;--bg:#f7f8f6;--line:#e8ece6;--radius:18px;--shadow:0 12px 40px #193c2c08;font-family:'Be Vietnam Pro',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #81b7a4;outline-offset:3px}h1,h2,h3,h4,p{margin:0}svg{display:inline-block;flex-shrink:0;vertical-align:middle}button svg{pointer-events:none}.icon{width:20px;height:20px;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round}.app-shell{display:flex;min-height:100vh}.sidebar{width:238px;padding:32px 20px 22px;background:#fff;border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:40}.brand{display:flex;align-items:center;gap:11px;padding:0 12px 29px}.brand-mark{display:grid;place-items:center;font-size:29px;font-weight:750;letter-spacing:-2px;background:var(--green);color:white;width:43px;height:43px;border-radius:14px;padding-right:3px}.brand-name{font-size:23px;font-weight:750;letter-spacing:-1px}.brand-sub{font-size:10px;color:var(--muted);letter-spacing:.3px;margin-top:2px}.workspace-pill{margin:0 8px 29px;border:1px solid var(--line);padding:11px;border-radius:12px;display:flex;align-items:center;gap:10px;font-weight:550;font-size:12px}.workspace-pill .icon{color:var(--green)}.workspace-pill .pill{margin-left:auto;background:#eff4eb;padding:3px 7px;color:var(--green);font-size:10px}.nav-caption{font-size:10px;font-weight:650;letter-spacing:1.5px;color:#9ba39e;padding:0 14px;margin-bottom:12px}.nav{display:flex;flex-direction:column;gap:5px}.nav-link{display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:10px;color:#77817d;font-size:12px;font-weight:500;transition:.15s}.nav-link:hover{background:#f5f7f2;color:var(--green)}.nav-link.active{background:#edf3e9;color:var(--green);font-weight:650}.nav-link.active::after{content:'';width:5px;height:5px;border-radius:50%;background:var(--green);margin-left:auto}.nav-link .nav-badge{background:#f2e8dd;color:#ae7c43;margin-left:auto;font-size:10px;padding:2px 6px;border-radius:5px}.sidebar-bottom{margin-top:auto;padding-top:25px}.help-box{border-radius:14px;padding:17px 15px;background:#f5f7f1;margin:22px 4px 18px}.help-box strong{font-size:12px;display:block;margin:10px 0 7px}.help-box p{font-size:10px;color:var(--muted);line-height:1.8}.help-box button{background:none;border:0;padding:9px 0 0;color:var(--green);font-size:11px;font-weight:650}.storage-label{display:flex;align-items:center;gap:6px;color:#95a197;font-size:9px;padding:0 10px;line-height:1.7}.storage-label span{width:5px;height:5px;border-radius:50%;background:#9cb390;flex-shrink:0}.main-shell{margin-left:238px;width:calc(100% - 238px)}.topbar{height:83px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;gap:20px}.breadcrumb{font-size:12px;color:#8b938e;display:flex;gap:13px;align-items:center}.breadcrumb strong{color:#454f49;font-weight:550}.top-actions{display:flex;gap:19px;align-items:center}.search-top{border:1px solid var(--line);background:#fafbf9;display:flex;align-items:center;gap:9px;border-radius:9px;padding:9px 12px;color:#8a948d;min-width:225px;font-size:10px;text-align:left}.search-top kbd{font:9px inherit;border:1px solid #e2e7de;background:white;padding:2px 4px;border-radius:4px;margin-left:auto}.top-divider{height:27px;width:1px;background:var(--line)}.avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#f2e6d6;color:#8e704c;font-size:11px;font-weight:700;border:0}.avatar.small{width:29px;height:29px;font-size:9px}.profile-button{display:flex;gap:10px;align-items:center;background:none;border:0;text-align:left}.profile-button strong{display:block;font-size:11px;font-weight:600}.profile-button small{font-size:9px;color:#98a098}.icon-btn{width:35px;height:35px;display:grid;place-items:center;border:0;background:transparent;border-radius:9px;color:#7b867e}.icon-btn:hover{background:#f0f4ec}.page{max-width:1510px;margin:auto;padding:33px 38px 35px;animation:appear .28s ease}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:26px}.eyebrow{color:var(--muted);font-size:11px;margin-bottom:8px}.page-heading h1{font-size:24px;letter-spacing:-.8px;line-height:1.5;font-weight:650}.page-heading h1 .wave{font-size:22px;margin-left:6px}.page-sub{font-size:11px;color:#8a938d;line-height:1.8;margin-top:6px}.date-pill{display:flex;align-items:center;gap:8px;padding:10px 13px;border:1px solid var(--line);border-radius:9px;font-size:10px;background:#fff;color:#707d73;white-space:nowrap}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:25px;align-items:start}.dashboard-main{min-width:0}.hero{border-radius:18px;background:#e9f0e3;min-height:224px;padding:30px 29px;position:relative;overflow:hidden}.hero-copy{position:relative;z-index:2;max-width:65%}.hero-tag{display:inline-flex;gap:6px;align-items:center;font-size:9px;color:var(--green);font-weight:600;background:#fff9;padding:6px 9px;border-radius:6px;margin-bottom:13px;letter-spacing:.3px}.hero-tag .icon{width:12px;height:12px}.hero h2{font-size:27px;line-height:1.5;letter-spacing:-.8px;font-weight:650;color:#234a3c}.hero p{color:#7a8c7b;font-size:10px;line-height:1.8;margin:10px 0 18px;max-width:275px}.hero-art{position:absolute;right:-3px;bottom:-5px;width:290px;height:240px;opacity:.95}.btn{border:1px solid transparent;border-radius:9px;padding:11px 17px;display:inline-flex;gap:9px;align-items:center;justify-content:center;font-weight:550;font-size:11px;min-height:39px;background:#fff;white-space:nowrap;transition:.15s}.btn .icon{width:15px;height:15px}.btn.primary{background:var(--green);color:white}.btn.primary:hover{background:#164e44;transform:translateY(-1px)}.btn.secondary{border-color:var(--line);background:white}.btn.ghost{background:transparent;color:var(--green)}.btn.lime{background:var(--lime);color:var(--green)}.btn.full{width:100%}.btn.danger{color:#ad4a40;background:#fff0ed}.btn.small{min-height:30px;padding:7px 10px;font-size:10px}.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:20px 0 28px}.stat{padding:18px 17px;border:1px solid var(--line);border-radius:14px;background:#fff;display:flex;gap:12px;align-items:center}.stat-icon{width:39px;height:39px;border-radius:11px;display:grid;place-items:center;background:#f0f4e9;color:#62844e}.stat:nth-child(2) .stat-icon{background:#fdf0e3;color:#c28d54}.stat:nth-child(3) .stat-icon{background:#eeedfb;color:#8c7cae}.stat-number{font-size:22px;font-weight:600;line-height:1.2;letter-spacing:-.7px}.stat-number span{font-size:10px;font-weight:400;color:#9ba498;letter-spacing:0}.stat-label{color:#8e978f;font-size:9px;margin-top:6px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 17px;gap:10px}.section-heading h2{font-size:16px;font-weight:600;letter-spacing:-.3px}.text-link{background:none;border:0;padding:4px 0;display:flex;align-items:center;gap:5px;font-size:10px;color:var(--green);font-weight:500}.text-link .icon{width:13px;height:13px}.subject-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.subject-card{padding:18px;border:1px solid var(--line);border-radius:15px;background:#fff;transition:.18s;text-align:left;position:relative;width:100%;min-width:0}.subject-card:hover{border-color:#b5c9ae;transform:translateY(-3px);box-shadow:var(--shadow)}.subject-icon{width:43px;height:43px;border-radius:12px;display:grid;place-items:center;color:#56704b;margin-bottom:16px}.subject-icon .icon{width:23px;height:23px}.subject-card h3{font-size:12px;font-weight:600;letter-spacing:-.2px;margin-bottom:7px}.subject-card p{font-size:9px;color:#99a093;line-height:1.6}.progress-line{height:4px;background:#f1f3ed;border-radius:3px;overflow:hidden;margin-top:17px}.progress-line i{display:block;height:100%;background:#97b486;border-radius:3px}.progress-meta{display:flex;justify-content:space-between;margin-top:7px;font-size:8px;color:#9aa192}.subject-card .arrow{position:absolute;top:21px;right:17px;color:#b4bcb0}.subject-card .arrow .icon{width:15px;height:15px}.daily-section{margin-top:29px}.task-row{display:flex;align-items:center;gap:13px;padding:15px;background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:10px}.task-icon{width:35px;height:35px;border-radius:10px;display:grid;place-items:center;background:#f0f3e8;color:#6b8058}.task-body{flex:1;min-width:0}.task-body h3{font-size:11px;font-weight:550}.task-body p{margin-top:5px;font-size:9px;color:#98a08f}.task-meta{font-size:9px;color:#8f998b;display:flex;gap:5px;align-items:center}.task-meta .icon{width:12px;height:12px}.task-row .text-link{font-size:10px;margin-left:10px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px}.panel h2{font-size:13px;font-weight:600;line-height:1.6}.panel-header{display:flex;justify-content:space-between;align-items:center;gap:8px}.panel-sub{font-size:9px;color:#99a091;margin-top:6px;line-height:1.8}.right-column{display:grid;gap:18px}.goal-ring{width:132px;height:132px;position:relative;margin:23px auto 21px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--green) calc(var(--pct)*1%),#edf1e8 0)}.goal-ring::before{content:'';position:absolute;inset:9px;background:white;border-radius:50%}.ring-text{position:relative;text-align:center}.ring-text strong{font-size:25px;font-weight:600;letter-spacing:-.8px;display:block}.ring-text small{display:block;font-size:9px;color:#a0a694;margin-top:5px}.goal-metric{display:flex;justify-content:space-between;font-size:9px;color:#8d9887;margin-bottom:9px}.goal-metric strong{color:#5d7153;font-weight:500}.divider{border:0;border-top:1px solid var(--line);margin:18px 0}.week-row{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin-top:17px}.day{text-align:center;font-size:8px;color:#9ba392}.day span{display:grid;place-items:center;border-radius:50%;width:24px;height:24px;background:#f5f7ef;margin:8px auto 0;font-size:9px;color:#a1ad94}.day.today span{background:var(--green);color:white}.day.done span{background:#e7f0da;color:var(--green)}.mentor-panel{background:#f0f0f9;border-color:#e7e6f3;position:relative;overflow:hidden}.mentor-spark{width:37px;height:37px;border-radius:12px;background:#e1dff3;color:#8270aa;display:grid;place-items:center;margin-bottom:14px}.mentor-panel h2{font-size:14px;color:#494158}.mentor-panel p{font-size:10px;line-height:1.9;color:#9690a4;margin:9px 0 17px}.mentor-panel .btn{color:#70618a;background:white;width:100%;font-size:10px}.mentor-foot{font-size:8px;color:#a49bae;text-align:center;margin-top:10px}.tip-panel{padding:18px 21px;background:#f9f3e8;border-color:#f0e9db}.tip-heading{display:flex;gap:7px;align-items:center;color:#9d8051;font-size:11px;font-weight:600}.tip-heading .icon{width:16px;height:16px}.tip-panel p{font-size:10px;line-height:1.9;color:#a2937c;margin-top:10px}.page-footer{display:flex;align-items:center;justify-content:space-between;margin-top:30px;padding-top:20px;border-top:1px solid var(--line);font-size:9px;color:#a2a99c;gap:15px}.page-footer span{display:flex;gap:6px;align-items:center}.page-footer .icon{width:12px;height:12px}.chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.chip{border:1px solid var(--line);border-radius:8px;padding:8px 13px;background:#fff;color:#85907f;font-size:10px}.chip.active{color:var(--green);background:#eaf1e3;border-color:#d4e0ca}.subject-grid.all{grid-template-columns:repeat(4,minmax(0,1fr))}.subject-grid.all .subject-card{padding:22px;min-height:183px}.subject-grid.all h3{font-size:13px}.subject-grid.all p{font-size:10px;min-height:32px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:grid;gap:8px;margin-bottom:16px}.field>span,.field>label{font-size:11px;color:#67735f;font-weight:500}input,select,textarea{width:100%;padding:11px 13px;border:1px solid #dfe6d9;border-radius:9px;background:#fff;color:var(--ink);min-height:42px;font-size:12px}textarea{resize:vertical;line-height:1.8;min-height:90px}input::placeholder,textarea::placeholder{color:#a6ae9c}select{cursor:pointer}.filter-select{width:auto;min-height:35px;font-size:10px;max-width:100%}.two-column{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:24px;align-items:start}.stack{display:grid;gap:18px}.note{font-size:10px;line-height:1.9;color:#8c977f;background:#f5f7ef;border-radius:10px;padding:13px 15px}.note.warning{background:#fcf4e5;color:#9c814a}.note.success{background:#eaf3e4;color:#65804e}.big-icon{width:54px;height:54px;display:grid;place-items:center;border-radius:16px;background:#eaf2e2;color:var(--green);margin-bottom:20px}.big-icon .icon{width:28px;height:28px}.format-options{display:flex;gap:9px;margin:7px 0 20px}.format-option{flex:1;border:1px solid var(--line);background:white;border-radius:11px;padding:14px;font-size:11px;text-align:left}.format-option.selected{border-color:#8ca780;background:#f2f6ed;color:var(--green)}.format-option small{display:block;font-size:9px;color:#94a18a;line-height:1.7;margin-top:6px}.lesson-list{display:grid;gap:12px}.lesson-row{display:flex;align-items:center;gap:16px;padding:18px;border:1px solid var(--line);background:white;border-radius:13px;width:100%;text-align:left}.lesson-index{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:#f0f4eb;color:#738965;font-size:11px;flex-shrink:0}.lesson-index.complete{background:#e4efdb;color:var(--green)}.lesson-row h3{font-size:12px;font-weight:550}.lesson-row p{font-size:10px;color:#98a18e;line-height:1.8;margin-top:5px}.lesson-row .icon:last-child{margin-left:auto;width:16px;height:16px;color:#92a286}.lesson-top{background:#edf3e5;border:0;margin-bottom:24px;padding:26px}.lesson-top h2{font-size:22px;font-weight:600;line-height:1.6;margin:13px 0 8px}.reading{max-width:820px;margin:auto;background:white;padding:36px;border:1px solid var(--line);border-radius:17px}.reading h2{font-size:25px;line-height:1.6;margin:13px 0}.reading h3{font-size:15px;margin:28px 0 15px}.reading p,.reading li{font-size:13px;line-height:2.1;color:#6d7964}.reading ul,.reading ol{padding-left:22px}.reading li{padding-left:5px;margin-bottom:10px}.example{padding:22px;border-radius:12px;background:#f4f6ed;margin-top:25px}.example>strong{font-size:12px;color:var(--green)}.example p{margin-top:12px}.example ol{margin-bottom:0}.reading .actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.pill{display:inline-flex;padding:5px 8px;border-radius:5px;background:#eff3e9;color:#7c8e6d;font-size:9px;align-items:center;gap:5px}.empty{text-align:center;padding:38px 20px}.empty .big-icon{margin:0 auto 20px}.empty h3{font-size:15px;margin-bottom:10px}.empty p{font-size:11px;color:#96a088;line-height:1.9;margin:0 auto 20px;max-width:350px}.quiz-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:22px}.quiz-question{padding:29px;background:white;border:1px solid var(--line);border-radius:16px}.quiz-overline{display:flex;justify-content:space-between;gap:10px;margin-bottom:23px;align-items:center}.quiz-question h2{font-size:20px;font-weight:550;line-height:1.8;margin-bottom:27px;white-space:pre-line}.answer{display:flex;align-items:flex-start;gap:13px;border:1px solid #e3e8dc;background:#fff;padding:16px;margin-top:12px;border-radius:11px;text-align:left;width:100%;font-size:13px;line-height:1.8}.answer-letter{width:26px;height:26px;display:grid;place-items:center;border:1px solid #e4e9de;border-radius:7px;font-size:11px;flex-shrink:0;background:#f9faf6}.answer.selected{background:#f0f6e9;border-color:#93b37e}.answer.correct{background:#edf6e6;border-color:#8fb572}.answer.wrong{background:#fff0ec;border-color:#dda398}.answer.correct .answer-letter{background:#d5e8c7;border-color:transparent;color:#427638}.answer.wrong .answer-letter{background:#f3d5cc;border-color:transparent;color:#b76952}.explanation{margin-top:20px;padding:17px;border-radius:10px;background:#f2f7eb;font-size:12px;line-height:1.9;color:#6b805a;white-space:pre-line}.quiz-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:23px}.question-map{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin:20px 0}.q-number{border:1px solid var(--line);background:#f9faf5;border-radius:8px;width:100%;aspect-ratio:1;font-size:11px;color:#8b987d}.q-number.answered{background:#e9f2df;border-color:#d8e5c7;color:#617e4c}.q-number.current{outline:2px solid var(--green);outline-offset:2px;color:var(--green)}.q-number.flagged{box-shadow:inset 0 -4px #e3bb6a}.timer{font-size:23px;font-weight:550;letter-spacing:1px;text-align:center;padding:17px 0 4px}.timer.urgent{color:#b56e51}.timer-label{font-size:9px;text-align:center;color:#98a28b}.result-score{text-align:center;padding:30px}.result-score strong{display:block;font-size:56px;letter-spacing:-3px;color:var(--green);font-weight:550}.result-score strong span{font-size:17px;letter-spacing:0;color:#9ca58e}.result-score h2{font-size:19px;margin:12px 0}.result-score p{font-size:11px;line-height:1.9;color:#94a187}.review-row{padding:20px;border:1px solid var(--line);border-radius:12px;background:white;margin-bottom:13px}.review-row h3{font-size:12px;line-height:1.9;font-weight:550;margin:9px 0}.review-row p{font-size:11px;line-height:1.9;color:#8c987e}.review-row .correct-text{color:#5b7e42}.review-row .wrong-text{color:#b3705a}.activity-bars{display:flex;gap:15px;height:150px;align-items:flex-end;margin-top:23px;padding:0 6px}.activity-bar{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:9px}.activity-bar i{display:block;width:100%;max-width:34px;background:#dce8cd;border-radius:6px 6px 0 0;min-height:4px}.activity-bar.today i{background:var(--green)}.activity-bar small{font-size:9px;color:#9ca58f}.activity-bar span{font-size:8px;color:#94a188}.history-row{display:flex;align-items:center;gap:13px;padding:15px 0;border-bottom:1px solid var(--line)}.history-row:last-child{border:0}.history-row strong{font-size:11px;font-weight:500}.history-row p{font-size:9px;color:#99a48b;margin-top:6px}.history-row .history-score{margin-left:auto;font-size:19px;color:#6c855a}.modal-backdrop{position:fixed;inset:0;z-index:90;background:#172e2366;display:flex;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(3px)}.modal{width:100%;max-width:510px;border-radius:18px;background:white;box-shadow:0 25px 100px #183e3b40;max-height:90dvh;display:flex;flex-direction:column;overflow:hidden;animation:appear .18s}.modal.wide{max-width:850px}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:21px 24px;border-bottom:1px solid var(--line)}.modal-header h2{font-size:16px;font-weight:600}.modal-body{padding:24px;overflow:auto}.modal-body .field:last-child{margin-bottom:0}.modal-footer{padding:18px 24px;display:flex;gap:10px;justify-content:flex-end;border-top:1px solid var(--line)}.search-input{border:0;box-shadow:none;padding:4px 0;font-size:17px;outline:none}.search-result{padding:13px;display:flex;gap:12px;align-items:center;border-radius:8px;width:100%;background:white;border:0;text-align:left}.search-result:hover{background:#f1f5eb}.search-result strong{font-size:12px;font-weight:500}.search-result p{color:#9ba58c;font-size:9px;margin-top:5px}.tutor-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:20px}.chat-panel{display:flex;flex-direction:column;min-height:590px;max-height:calc(100dvh - 215px);padding:0}.chat-header{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.chat-header strong{font-size:12px;font-weight:600}.chat-messages{flex:1;overflow:auto;padding:25px;display:flex;flex-direction:column;gap:18px}.chat-message{display:flex;gap:11px;max-width:95%}.chat-message.user{align-self:flex-end;flex-direction:row-reverse;max-width:85%}.chat-message .chat-avatar{width:29px;height:29px;flex-shrink:0;background:#eceaf6;color:#82719f;border-radius:9px;display:grid;place-items:center}.chat-message .chat-avatar .icon{width:16px;height:16px}.chat-text{background:#f5f6f0;padding:14px 16px;border-radius:0 13px 13px 13px;font-size:12px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere}.chat-message.user .chat-text{background:#eaf2e1;color:#536e40;border-radius:13px 0 13px 13px}.chat-text strong{font-weight:600}.chat-compose{padding:16px 20px;border-top:1px solid var(--line)}.chat-compose form{display:flex;gap:10px}.chat-compose input{font-size:11px;min-width:0;background:#fafbf7}.chat-compose .btn{width:43px;padding:10px;flex-shrink:0}.chat-compose p{font-size:8px;text-align:center;color:#a6ad9a;margin-top:10px;line-height:1.8}.suggestion{border:1px solid var(--line);background:white;padding:10px 12px;border-radius:8px;font-size:10px;line-height:1.7;text-align:left;width:100%;margin-top:9px;color:#82936d}.chat-source{font-size:9px;color:#8ca074;margin-top:8px;border-left:2px solid #d5e4c7;padding-left:10px}.pdf-frame{width:100%;height:65vh;border:1px solid var(--line);border-radius:10px}.document-row{display:flex;align-items:center;padding:17px;background:white;border:1px solid var(--line);border-radius:12px;gap:15px;margin-bottom:12px}.document-row h3{font-size:12px;font-weight:500;overflow-wrap:anywhere}.document-row p{font-size:9px;color:#99a48d;line-height:1.8;margin-top:6px}.document-row .document-actions{margin-left:auto;display:flex;gap:5px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left}th{font-size:9px;font-weight:500;color:#929f82;background:#f7f9f2}td,th{padding:14px 12px;border-bottom:1px solid var(--line)}td{font-size:11px}.profile-row{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid var(--line);border-radius:11px;margin-bottom:10px}.profile-row.selected{background:#f1f6eb;border-color:#c9d8bb}.profile-row strong{font-size:12px}.profile-row p{font-size:9px;color:#94a285;margin-top:5px}.profile-row .btn{margin-left:auto}.account-banner{padding:20px;border-radius:13px;border:1px solid #e0e8d7;background:#f5f8ef;display:flex;align-items:center;gap:17px;margin-bottom:22px}.account-banner p{font-size:11px;color:#8a997a;line-height:1.8;margin-top:6px}.account-banner h3{font-size:13px}.account-banner .btn{margin-left:auto}.form-error{font-size:11px;line-height:1.8;color:#b86c53;margin-bottom:15px}.tabs{display:flex;gap:8px;padding-bottom:18px}.tabs button{border:0;background:#f6f8f1;color:#9aa78a;border-radius:8px;padding:9px 14px;font-size:11px}.tabs button.active{background:#e7f0db;color:var(--green)}.menu-mobile,.mobile-nav{display:none}.boot{min-height:100dvh;display:flex;gap:17px;align-items:center;justify-content:center;flex-direction:column;color:#8fa07d;font-size:12px}.boot-mark{font-size:42px;font-weight:700;border-radius:22px;background:var(--green);color:#fff;padding:3px 16px 8px}.boot p{animation:pulse 1.5s infinite}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,25px);padding:13px 20px;border-radius:11px;background:#224e3f;color:white;font-size:11px;line-height:1.8;max-width:min(90vw,500px);z-index:120;pointer-events:none;opacity:0;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}.check-label{display:flex;gap:10px;align-items:flex-start;font-size:11px;line-height:1.8;color:#8c9a7c;margin:15px 0}.check-label input{width:16px;height:16px;min-height:0;margin:2px 0}.badge-dot{width:6px;height:6px;border-radius:50%;background:#a9bc92;display:inline-block}.go-back{display:inline-flex;align-items:center;gap:7px;background:transparent;border:0;color:#8a9979;font-size:10px;padding:0;margin-bottom:20px}.go-back .icon{width:14px;height:14px}.form-help{font-size:9px;color:#9ba68d;line-height:1.8;margin-top:5px}.outline-card{border:1px dashed #cedbc3;border-radius:11px;padding:22px;background:#f9fbf5;text-align:center}.outline-card p{font-size:10px;line-height:1.8;color:#93a281;margin:9px 0 14px}.review-options{display:grid;gap:5px;margin:13px 0}.review-options span{font-size:11px;padding:8px;border-radius:6px;color:#9ba28f}.review-options .right{background:#edf5e5;color:#6a8553}.review-options .wrong{background:#fff0e9;color:#b77c63}.loading-dot{display:inline-flex;gap:4px;align-items:center}.loading-dot i{width:5px;height:5px;border-radius:50%;background:#9eac90;animation:pulse 1s infinite}.loading-dot i:nth-child(2){animation-delay:.2s}.loading-dot i:nth-child(3){animation-delay:.4s}@keyframes appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@keyframes pulse{50%{opacity:.4}}.privacy-line{font-size:9px;color:#9ca990;line-height:1.8;margin-top:16px}.mode-banner{background:#f7f3e7;border:1px solid #e8dfc8;color:#9b895e;font-size:10px;line-height:1.8;padding:10px 14px;border-radius:9px;margin-bottom:20px}.success-badge{background:#e9f4df;color:#709355}.danger-badge{background:#fff0e9;color:#b67b65}.exam-card{padding:23px;border:1px solid var(--line);border-radius:15px;background:white}.exam-card h3{font-size:14px;margin:15px 0 9px}.exam-card p{font-size:10px;line-height:1.8;color:#95a486}.exam-card .exam-meta{display:flex;gap:13px;margin:17px 0 19px;font-size:9px;color:#8ea078}.exam-card .exam-meta span{display:flex;gap:5px;align-items:center}.exam-card .exam-meta .icon{width:13px;height:13px}.exam-card .btn{width:100%}.exam-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:22px}.stat-grid-four{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:23px}.stat-grid-four .stat{display:block}.stat-grid-four .stat-label{margin-top:9px}.badge-award{display:flex;align-items:center;gap:11px;padding:15px;border-radius:12px;border:1px solid var(--line);margin-top:12px}.badge-award .award-icon{font-size:25px;filter:grayscale(1);opacity:.4}.badge-award.earned .award-icon{filter:none;opacity:1}.badge-award strong{font-size:11px;font-weight:550}.badge-award p{font-size:9px;color:#9da68f;margin-top:5px}.hide{display:none!important}
@media(min-width:1600px){.page{padding:38px 48px}.topbar{padding:0 48px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 310px;gap:30px}.hero{min-height:245px}.hero h2{font-size:32px}.hero-art{width:325px;height:270px}.subject-card{padding:22px}.subject-card h3{font-size:14px}.subject-card p{font-size:10px}}
@media(max-width:1250px){.sidebar{width:212px;padding:28px 14px}.main-shell{margin-left:212px;width:calc(100% - 212px)}.page{padding:27px}.topbar{padding:0 27px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 250px;gap:20px}.hero{padding:25px}.hero h2{font-size:23px}.hero-art{width:230px}.hero-copy{max-width:70%}.subject-card{padding:15px}.stats-row{gap:10px}.stat{padding:15px 12px;gap:9px}.stat-icon{width:32px;height:32px}.subject-grid.all{grid-template-columns:repeat(3,1fr)}.search-top{min-width:180px}.panel{padding:19px}}
@media(max-width:1060px){.dashboard-grid{grid-template-columns:1fr}.right-column{grid-template-columns:repeat(3,1fr);gap:15px}.right-column .tip-panel{display:none}.goal-ring{width:105px;height:105px;margin:17px auto}.goal-panel .divider,.goal-panel .week-row,.goal-panel .week-label{display:none}.hero-art{right:25px;width:280px}.hero h2{font-size:29px}.hero{padding:28px}.hero-copy{max-width:65%}.search-top kbd{display:none}.profile-button>div:not(.avatar){display:none}.two-column{grid-template-columns:minmax(0,1.3fr) minmax(240px,1fr)}.quiz-layout{grid-template-columns:minmax(0,1fr) 220px}.tutor-layout{grid-template-columns:220px minmax(0,1fr)}.exam-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){.sidebar{display:none}.sidebar.open{display:flex;width:245px;box-shadow:20px 0 80px #192e2c30;z-index:85}.main-shell{width:100%;margin-left:0}.menu-mobile{display:grid}.topbar{height:68px;padding:0 22px}.top-actions{gap:11px}.top-divider{display:none}.breadcrumb{font-size:11px;gap:8px}.search-top{min-width:auto;border:0;background:none;padding:7px}.search-top span{display:none}.page{padding:25px 22px 90px}.page-heading h1{font-size:23px}.page-heading{margin-bottom:22px}.date-pill{font-size:9px;padding:8px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fffc;backdrop-filter:blur(14px);border-top:1px solid var(--line);z-index:45;padding:10px 8px calc(10px + env(safe-area-inset-bottom));justify-content:space-around;gap:4px}.mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:9px;gap:5px;color:#98a18f;padding:2px 9px;min-width:53px}.mobile-nav a.active{color:var(--green)}.mobile-nav a .icon{width:20px;height:20px}.hero{min-height:230px}.stats-row{margin:18px 0 26px}.subject-grid{gap:12px}.subject-grid.all{grid-template-columns:repeat(3,1fr)}.right-column{grid-template-columns:1fr 1fr}.right-column .mentor-panel{grid-column:auto}.right-column .tip-panel{display:block;grid-column:1/-1}.dashboard-grid{gap:27px}.right-column .goal-panel .week-row,.right-column .goal-panel .divider,.right-column .goal-panel .week-label{display:grid}.page-footer{display:none}.tutor-layout{grid-template-columns:1fr}.tutor-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tutor-controls .panel{padding:17px}.tutor-controls .panel:last-child{display:none}.chat-panel{min-height:450px;max-height:none}.two-column{grid-template-columns:1fr}.quiz-layout{grid-template-columns:1fr}.quiz-sidebar{order:-1}.quiz-sidebar .panel{display:flex;align-items:center;gap:15px;padding:13px 17px}.quiz-sidebar .panel h2,.quiz-sidebar .panel .divider,.quiz-sidebar .panel .note,.quiz-sidebar .panel>.btn,.quiz-sidebar .panel .timer-label{display:none}.quiz-sidebar .question-map{margin:0;display:flex;flex-wrap:wrap;gap:7px;flex:1}.quiz-sidebar .q-number{width:28px;height:28px;font-size:9px;aspect-ratio:auto}.quiz-sidebar .timer{padding:0;font-size:18px;min-width:70px}.quiz-sidebar .panel .question-legend{display:none}.stat-grid-four{grid-template-columns:repeat(2,1fr)}#toast{bottom:90px}.account-banner{flex-wrap:wrap}.account-banner .btn{margin-left:0}}
@media(max-width:520px){:root{font-size:13px}.topbar{padding:0 17px}.top-actions{gap:5px}.profile-button{padding:0}.breadcrumb span:not(:first-child){display:none}.page{padding:23px 17px 100px}.page-heading{align-items:flex-start}.page-heading h1{font-size:21px}.page-sub{font-size:10px}.date-pill{display:none}.hero{padding:22px;min-height:248px}.hero h2{font-size:25px;line-height:1.5}.hero-copy{max-width:85%}.hero p{max-width:210px;font-size:10px;line-height:1.9}.hero-art{width:200px;height:188px;right:-32px;bottom:-12px;opacity:.65}.hero .btn{position:relative;z-index:3;margin-top:2px}.hero-tag{font-size:8px}.stats-row{gap:8px}.stat{padding:13px 10px;display:block}.stat-icon{width:30px;height:30px;border-radius:9px;margin-bottom:12px}.stat-icon .icon{width:17px;height:17px}.stat-number{font-size:22px}.stat-label{font-size:8px;line-height:1.6;min-height:24px}.stat-number span{font-size:9px}.subject-grid,.subject-grid.all{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.subject-card,.subject-grid.all .subject-card{padding:17px;min-height:163px}.subject-icon{width:39px;height:39px;margin-bottom:14px}.subject-card h3,.subject-grid.all h3{font-size:12px}.subject-card p,.subject-grid.all p{font-size:9px;min-height:15px}.subject-grid.all p{min-height:29px}.progress-line{margin-top:14px}.section-heading h2{font-size:15px}.task-row{padding:13px 11px;gap:10px}.task-body h3{font-size:10px;line-height:1.7}.task-meta{display:none}.task-row .text-link{font-size:9px;gap:2px;margin-left:0}.task-row .text-link .icon{width:12px}.task-icon{width:32px;height:32px}.right-column{gap:13px}.panel{padding:18px}.goal-ring{width:103px;height:103px;margin:16px auto}.ring-text strong{font-size:23px}.right-column .goal-panel .week-row,.right-column .goal-panel .week-label,.right-column .goal-panel .divider{display:none}.mentor-panel p{font-size:9px;margin:9px 0 15px}.mentor-panel h2{font-size:12px}.mentor-panel .btn{padding:9px 7px;font-size:9px}.mentor-foot{font-size:7px}.panel h2{font-size:12px}.goal-metric{font-size:8px}.form-grid{grid-template-columns:1fr;gap:0}.modal-backdrop{padding:14px}.modal{max-height:93dvh}.modal-header,.modal-body,.modal-footer{padding:19px}.modal-header h2{font-size:15px}.modal-footer{flex-wrap:wrap}.modal-footer .btn{flex:1}.reading{padding:24px 21px}.reading h2{font-size:22px}.reading p,.reading li{font-size:12px}.reading h3{font-size:14px}.example{padding:17px}.lesson-top{padding:22px}.lesson-top h2{font-size:20px}.lesson-row{padding:15px;gap:12px}.lesson-row h3{font-size:11px;line-height:1.8}.lesson-row p{font-size:9px}.quiz-question{padding:22px 18px}.quiz-question h2{font-size:17px}.answer{font-size:12px;padding:13px;gap:10px}.quiz-actions .btn{padding:10px 12px;font-size:10px}.quiz-overline{margin-bottom:18px}.quiz-sidebar .panel{gap:11px}.quiz-sidebar .timer{font-size:15px;min-width:59px}.quiz-sidebar .q-number{width:24px;height:25px}.quiz-sidebar .question-map{gap:6px}.exam-grid{grid-template-columns:1fr}.exam-card{padding:21px}.tutor-controls{grid-template-columns:1fr}.tutor-controls .panel:nth-child(2){display:none}.chat-messages{padding:18px 15px;gap:17px;min-height:300px}.chat-text{font-size:11px;padding:12px}.chat-message{max-width:100%;gap:7px}.chat-message.user{max-width:90%}.chat-compose{padding:13px 14px}.chat-compose input{font-size:10px}.chat-header{padding:16px}.chat-panel{min-height:480px}.document-row{padding:14px 12px;gap:10px;flex-wrap:wrap}.document-row .document-actions{width:100%;justify-content:flex-end}.document-row h3{font-size:11px}.profile-row{padding:12px;gap:9px}.profile-row .btn{font-size:9px;padding:8px}.filter-select{font-size:10px}.format-option{padding:12px 10px}.page-heading>.btn{padding:8px 11px;min-height:34px;font-size:10px}.account-banner p{font-size:10px}.result-score strong{font-size:49px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
/* Các nhãn và nội dung phụ đủ rõ trên màn hình học tập. */
.brand-sub{font-size:8px;letter-spacing:.1px;white-space:nowrap}.workspace-pill{font-size:10px;white-space:nowrap;gap:8px}.workspace-pill .pill{font-size:9px;padding:3px 5px}.nav-link{font-size:13px}.page-sub{font-size:12px}.btn{font-size:12px}.stat-label{font-size:10px}.subject-card p{font-size:10px}.progress-meta{font-size:9px}.panel-sub{font-size:11px}.goal-metric{font-size:10px}.task-body h3{font-size:12px}.task-body p{font-size:10px}.hero p{font-size:11px}.hero-tag{font-size:9px}.mentor-panel p{font-size:11px}.tip-panel p{font-size:11px}.note{font-size:11px}.field>span,.field>label{font-size:12px}.form-help{font-size:10px}.pill{font-size:10px}.exam-card p{font-size:11px}.lesson-row p{font-size:11px}.reading .panel-sub{font-size:10px}.answer:disabled{opacity:1}.answer:disabled:not(.correct):not(.wrong){color:#99a38c}
@media(max-width:520px){.page-sub{font-size:11px}.btn{font-size:11px}.stat-label{font-size:9px}.subject-card p,.subject-grid.all p{font-size:10px}.progress-meta{font-size:9px}.panel-sub{font-size:10px}.goal-metric{font-size:9px}.task-body h3{font-size:11px}.task-body p{font-size:9px}.hero p{font-size:11px}.mentor-panel p{font-size:10px}.note{font-size:11px}.subject-card h3{font-size:13px}.tutor-controls .panel-sub{font-size:11px}.chat-text{font-size:12px}.chat-compose input{font-size:11px}.reading p,.reading li{font-size:13px}}
.sidebar-scrim{display:none}@media(max-width:800px){.sidebar-scrim{display:block;position:fixed;inset:0;border:0;background:#22362955;z-index:84}input,select,textarea{font-size:16px;min-height:44px}.filter-select{font-size:14px}.btn{min-height:42px}.modal .btn{min-height:44px}.quiz-sidebar .btn{min-height:36px}.answer{min-height:54px}.chat-compose input{font-size:16px}.chat-compose .btn{min-height:44px}}

.mobile-submit{display:none}@media(max-width:800px){.mobile-submit{display:inline-flex}}

/* Học theo SGK: private original page images, responsive on phones. */
.book-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}.book-reader{min-width:0}.book-reader-nav{display:flex;justify-content:space-between;gap:10px;margin:16px 0}.book-page{margin:16px 0}.book-page img{display:block;width:100%;height:auto;border:1px solid #e3e8e4;border-radius:9px;background:white}.book-page figcaption{font-size:12px;color:#67766d;margin-bottom:8px}.book-context{margin-bottom:16px;line-height:1.8}.chat-source .btn{white-space:normal;text-align:left;margin-top:5px}.book-layout .field{min-width:0}.book-layout select{width:100%;min-width:0;text-overflow:ellipsis}.book-layout .form-grid{grid-template-columns:1fr 1fr}.book-layout .section-heading{align-items:flex-start;flex-wrap:wrap;gap:8px}
@media(max-width:1050px){.book-layout{grid-template-columns:1fr}.book-layout>aside{width:100%}.book-reader{padding:16px}.book-layout .book-page{margin:14px 0}}

/* Learning workspace */
.study-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:18px;margin:18px 0 30px}.study-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin:18px 0}.study-toolbar .field{flex:1;min-width:min(100%,220px)}.study-toolbar form{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.study-toolbar input[type=number]{width:78px;padding:8px}.study-steps{display:flex;gap:8px;overflow:auto;margin:20px 0;padding-bottom:8px}.study-steps button{white-space:nowrap}.study-content{line-height:1.8;margin-bottom:20px}.study-content h3{margin-top:18px}.study-content textarea{min-height:130px}.weekday-checks{display:flex;flex-wrap:wrap;gap:14px;margin:12px 0}.learning-plan-form fieldset{border:1px solid #dce3d8;border-radius:12px;padding:10px}.learning-plan-form select[multiple]{min-height:150px}.learning-plan-form textarea,.study-content textarea{width:100%;padding:12px;border:1px solid #ccd6c8;border-radius:10px;font:inherit}.study-card h3{margin:12px 0}.study-content li{margin-bottom:8px}.book-reader,.book-controls{scroll-margin-top:15px}.book-support{margin-top:24px}.book-reader{overflow-anchor:none}.book-reader-nav{position:sticky;top:0;z-index:10;background:var(--surface,#fff);padding:12px 0;border-bottom:1px solid #e0e6db}.study-content .btn,.study-toolbar .btn{min-height:44px}
@media(max-width:900px){.book-layout{display:flex!important;flex-direction:column}.book-layout>.book-reader{order:-1}.book-layout>aside{width:100%}.study-toolbar{align-items:stretch}.study-toolbar>.btn{flex:1 1 150px}.study-toolbar input,.study-toolbar select,.study-content textarea{font-size:16px}.study-steps{position:sticky;top:0;z-index:9;background:#f6f8f3;padding:8px 0}.book-reader h2{font-size:18px}}

.plan-section{margin:20px 0;line-height:1.75}.plan-section h3{margin:14px 0 8px}.plan-section details{margin:12px 0}.plan-section summary{cursor:pointer;font-weight:600}.plan-section li{margin:6px 0}

/* Compact navigation, with scrolling available for short windows and zoom. */
.sidebar{overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin}
.sidebar>*{flex-shrink:0}
@media(min-width:801px){
 .sidebar{padding:16px 14px 12px}
 .sidebar .brand{padding:0 10px 12px;gap:9px}
 .sidebar .brand-mark{width:36px;height:36px;font-size:25px;border-radius:11px}
 .sidebar .brand-name{font-size:21px}
 .sidebar .brand-sub{font-size:9px}
 .sidebar .workspace-pill{margin:0 4px 12px;padding:8px;gap:7px}
 .sidebar .nav-caption{margin-bottom:6px;padding:0 10px}
 .sidebar .nav{gap:2px}
 .sidebar .nav-link{min-height:34px;padding:7px 10px;gap:10px;font-size:12px;line-height:20px;border-radius:8px}
 .sidebar .nav-link .icon{width:18px;height:18px}
 .sidebar .sidebar-bottom{padding-top:10px}
 .sidebar .help-box{display:none}
 .sidebar .storage-label{padding:8px 10px 0}
}
@media(min-width:801px) and (max-height:720px){
 .sidebar{padding-top:10px;padding-bottom:8px}
 .sidebar .brand{padding-bottom:8px}
 .sidebar .workspace-pill{margin-bottom:8px;padding:6px 8px}
 .sidebar .nav-caption{margin-bottom:4px}
 .sidebar .nav{gap:1px}
 .sidebar .nav-link{min-height:30px;padding-top:5px;padding-bottom:5px}
 .sidebar .sidebar-bottom{padding-top:6px}
 .sidebar .storage-label{padding-top:5px}
}

/* Đề cương Word/PDF */
.material-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}
.material-grid .field{margin-bottom:6px;min-width:0}
.material-filters{margin-top:20px;grid-template-columns:repeat(4,minmax(0,1fr))}
.material-card{margin-bottom:14px;overflow-wrap:anywhere}
.material-card h3{margin:12px 0 8px}
.material-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.word-reader{margin-top:18px;max-height:65vh;overflow:auto;overscroll-behavior:contain;padding:18px;background:#fff;border:1px solid #dce4df;border-radius:12px;line-height:1.7;overflow-wrap:anywhere}
.word-reader table{border-collapse:collapse;display:block;max-width:100%;overflow-x:auto;margin:12px 0}
.word-reader td{border:1px solid #bccbc2;padding:8px;min-width:80px;vertical-align:top}
.word-reader img{max-width:100%;height:auto;display:block;margin:12px auto}
#material-units{min-height:150px;width:100%}
@media(max-width:720px){.material-grid,.material-filters{grid-template-columns:1fr}.material-actions .btn{flex:1 1 42%;white-space:normal}.word-reader{padding:12px;max-height:60vh}}

/* 1.6 family controls and progress status */
.sync-toolbar{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:9px}
.sync-toolbar [data-status="pending"]{color:#946219}.sync-toolbar [data-status="conflict"]{color:#a2402f}
.security-panel,.year-panel{margin-bottom:20px}.security-panel p,.year-panel p{margin:12px 0}
.preference-subjects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}
.recovery-code{background:#f2f5ed;border:1px solid #cbd8bd;padding:18px;border-radius:12px;font-size:17px;white-space:pre-wrap;overflow-wrap:anywhere;user-select:all}
.source-links{display:grid;gap:12px;margin-top:14px}.source-link{padding:14px;border:1px solid #e0e6d8;border-radius:12px}.source-link p{margin:8px 0}
.lesson-core{margin:20px 0}.lesson-core ul,.lesson-core ol{padding-left:24px}.lesson-core li{margin:8px 0}.lesson-example{background:#f4f7ef;padding:16px;border-radius:12px;margin:14px 0}
@media(max-width:600px){.preference-subjects{grid-template-columns:1fr}.sync-toolbar .btn{font-size:12px}.recovery-code{font-size:14px}}
