@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');
:root{--ink:#1d2543;--muted:#717b92;--violet:#6e57e6;--blue:#2665e8;--mint:#00a98f;--bg:#f6f8fd;--border:#e5eafa;--shadow:0 9px 30px rgba(32,51,111,.06);--radius:19px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:'Be Vietnam Pro','Segoe UI',Arial,sans-serif;font-size:14px;line-height:1.7}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(25px,3vw,37px);line-height:1.38;letter-spacing:-.7px;margin-bottom:8px}h2{font-size:20px;letter-spacing:-.35px;line-height:1.45}h3{font-size:16px;line-height:1.5}p{line-height:1.75}small{font-size:11px}.container{max-width:1180px;margin:0 auto;padding-left:24px;padding-right:24px}.topbar{background:#fff;border-bottom:1px solid #e7ebf5}.topcontent{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:78px}.logo{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:800;color:#26335b;line-height:1.35}.logo:hover{text-decoration:none}.logo strong{color:var(--violet)}.logo small{display:block;font-size:9px;letter-spacing:1.2px;color:#98a1b5}.brand-icon{background:linear-gradient(130deg,#8e64ef,#346ef4);color:#fff;width:43px;height:43px;border-radius:14px;display:grid;place-items:center;font-size:24px;box-shadow:0 5px 13px rgba(103,82,225,.2)}nav{display:flex;align-items:center;gap:25px;flex-wrap:wrap}nav a,.navlogout{color:#5c667c;font:inherit;font-size:12px;font-weight:600}nav a:hover{color:var(--violet)}.navlogout{background:#f3f5ff;border:0;padding:10px 13px;border-radius:10px;cursor:pointer}.inline{display:inline}.page{min-height:calc(100vh - 200px);padding-top:34px;padding-bottom:65px}.hero{border-radius:24px;background:linear-gradient(117deg,#e9ebff,#e1f5ff 67%,#eefef8);padding:40px 48px;margin-bottom:24px;position:relative;overflow:hidden}.hero:after{content:'✦';position:absolute;right:8%;top:-58px;color:#ffffffaa;font-size:240px;line-height:1}.hero h1{font-size:clamp(28px,3.3vw,43px);margin-top:10px}.hero h1 span{color:var(--violet)}.hero p{max-width:650px;margin:0;color:#596982}.eyebrow{display:inline-block;color:#6b5acf;letter-spacing:1.6px;font-size:10px;font-weight:800}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:22px}.login-columns{grid-template-columns:1.02fr .98fr}.card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:26px;box-shadow:var(--shadow)}.join-card{padding:33px 36px}.join-card h2{font-size:24px;margin:10px 0 5px}.star{color:#9a65ef}.muted{color:var(--muted)}label{display:block;font-size:12px;font-weight:700;margin-bottom:7px;margin-top:16px;color:#36415e}input:not([type=radio]):not([type=checkbox]),select,textarea{width:100%;padding:12px 14px;font:inherit;font-size:13px;border:1px solid #dce3f1;border-radius:11px;outline:none;background:#fff;color:var(--ink);transition:border-color .2s,box-shadow .2s}textarea{resize:vertical}input:focus,select:focus,textarea:focus{border-color:#907be9!important;box-shadow:0 0 0 3px #eae5ff}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:11px;padding:11px 17px;font-family:inherit;font-size:12px;font-weight:800;cursor:pointer;line-height:1.4;transition:transform .12s,background .2s;color:var(--ink)}.btn:hover{transform:translateY(-1px);text-decoration:none}.btn.primary{color:#fff;background:linear-gradient(125deg,#8162ef,#536ae9);box-shadow:0 6px 14px #7772e62a}.btn.secondary{color:#4f57a9;background:#f1f0ff;border-color:#e8e6ff}.btn.danger{color:#c84a55;background:#fff3f4;border:1px solid #ffdadc}.btn.small{padding:8px 11px}.btn.full{width:100%;margin-top:22px}.caption{color:#99a2b6;font-size:11px;line-height:1.7;margin:16px 0 0}.highlights{background:#fff}.highlights h2{margin-top:10px}.steps-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:20px}.steps-grid>div{padding:15px;border-radius:14px;background:#f6f7fe}.steps-grid b{display:inline-grid;place-items:center;color:#fff;background:linear-gradient(125deg,#7c62e9,#6289ee);width:36px;height:36px;border-radius:11px;margin-right:8px}.steps-grid span{font-weight:700}.steps-grid small{display:block;color:#7b859a;margin:6px 0 0 46px}.soft-note{padding:12px 16px;background:#f4f7fe;color:#71809b;border-left:3px solid #ab99f5;border-radius:8px;margin:18px 0 0;font-size:12px}.footer{text-align:center;background:#fff;border-top:1px solid #e5eafa;color:#61708f;font-size:11px;padding:25px 0}.footer small{color:#abb3c4}.pageheading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:28px}.pageheading p{max-width:750px;color:var(--muted);margin:7px 0 0}.pill{border-radius:50px;color:#705ed4;background:#eae9ff;padding:10px 15px;font-weight:700;white-space:nowrap;font-size:12px}.section-title{margin:26px 0 16px}.grid-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.lessoncard{display:flex;flex-direction:column;gap:13px}.lessoncard h3{font-size:18px;margin:0;max-width:95%}.lessoncard p{color:var(--muted);margin:0}.lessoncard .btn{align-self:flex-start;margin-top:auto}.row-between{display:flex;align-items:center;justify-content:space-between;gap:12px}.tag{color:#6857c5;background:#f0edff;padding:5px 10px;font-size:10px;border-radius:20px;font-weight:800;white-space:nowrap}.tag.soft{background:#edf7f6;color:#199a81}.clamp{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.mini-progress{height:7px;background:#edf0f9;border-radius:20px;overflow:hidden;margin:7px 0}.mini-progress-fill{height:100%;display:block;background:linear-gradient(90deg,#6a70eb,#48d2bc);border-radius:20px}.back{font-size:12px;font-weight:700;display:inline-block;margin-bottom:20px;color:#7f70dd}.content-card{margin-bottom:20px}.readable{white-space:pre-line;font-size:14px;line-height:1.95;color:#3e4b69}.steps-list{display:grid;grid-template-columns:1fr;gap:11px}.step-link{display:flex;align-items:center;gap:18px;background:white;border-radius:15px;padding:18px 22px;border:1px solid var(--border);color:var(--ink)}.step-link:hover{text-decoration:none;border-color:#b7a9f3;background:#fdfcff}.step-link>span:nth-child(2){flex:1}.step-link small{display:block;color:var(--muted);font-size:11px}.stepnumber{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#eeebff;color:#6d57d7;font-weight:800}.step-mark{font-size:20px;color:#9886e7}.question-list{display:flex;flex-direction:column;gap:18px}.question-count{font-size:10px;letter-spacing:1px;color:#8d7cdb;font-weight:800}.question h3{margin:8px 0 16px}.options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.option{margin:0;display:flex;align-items:center;gap:9px;padding:13px;border:1px solid #ebedf7;background:#fafbff;border-radius:11px;cursor:pointer;font-size:12px;font-weight:500}.option:hover{border-color:#a694eb}.option:has(input:checked){border-color:#8466e6;background:#f3efff}.option input,.habit input{accent-color:#6e57e6}.habit{margin:12px 0;padding:18px 25px}.habit h3{font-size:14px;margin-bottom:0}.habit-options{display:flex;gap:25px}.habit-options label{margin:10px 0 0;font-size:13px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.stats{display:grid;gap:15px;margin:15px 0 22px}.stats.three{grid-template-columns:repeat(3,minmax(0,1fr))}.stats.four{grid-template-columns:repeat(4,minmax(0,1fr))}.stat{padding:25px}.stat small{font-size:10px;color:#8992a8;font-weight:800;display:block;letter-spacing:1px}.stat strong{font-size:34px;line-height:1.4;color:#5f5fce;display:block;margin-top:8px}.stat .stat-text{font-size:20px}.tips{padding-left:18px}.tips li{margin:15px 0}.tips small{display:block;color:var(--muted);margin-top:3px}.task-preview{border-left:4px solid #a89cf3;background:#f8f8fe;padding:14px 17px;border-radius:5px;margin:14px 0}.task-preview p{margin:5px 0 0;color:var(--muted)}.practice-layout{display:grid;grid-template-columns:1.03fr .97fr;gap:22px;align-items:start}.task{margin:15px 0}.task h3{margin:7px 0}.task p{white-space:pre-line;color:#5d6b81}.checkline{display:flex;align-items:center;gap:9px;font-size:12px;margin:15px 0}.checkline input{accent-color:#6758da}.tutor{position:sticky;top:20px}.tutor-heading{display:flex;align-items:center;gap:12px;padding-bottom:15px;border-bottom:1px solid var(--border)}.tutor-heading h2{margin:0;font-size:18px}.tutor-heading small{color:#8b94a9}.bot-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;color:#fff;font-size:23px;background:linear-gradient(135deg,#6d63e6,#46b7d9)}.chatlog{height:360px;overflow-y:auto;padding:20px 2px;display:flex;flex-direction:column;gap:11px}.bubble{max-width:91%;border-radius:16px;padding:12px 14px;white-space:pre-line;font-size:12px;line-height:1.8}.bubble.assistant{background:#f1f2fc;align-self:flex-start;border-bottom-left-radius:5px}.bubble.user{background:#7066df;color:#fff;align-self:flex-end;border-bottom-right-radius:5px}.chat-form{border-top:1px solid var(--border);padding-top:16px}.chat-form .btn{margin-top:8px}.single-login{max-width:450px;margin:55px auto}.single-login.card{max-width:520px}.single-login .card{padding:36px}.share{display:grid;grid-template-columns:1fr .85fr;gap:20px;align-items:center;margin-top:18px}.share h2{margin:6px 0}.share p{color:var(--muted);margin-bottom:0}.sharebox{display:flex;gap:8px}.sharebox input{min-width:0}.tablewrap{overflow-x:auto;padding:0}.tablewrap table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}.tablewrap th{background:#f9faff;color:#8690a7;padding:15px 18px;white-space:nowrap;font-size:11px}.tablewrap td{padding:15px 18px;border-top:1px solid #eef0f7;vertical-align:middle}.tablewrap td small{font-size:10px}.block{display:block}.card-bottom{display:flex;justify-content:space-between;padding:17px 23px;border-top:1px solid var(--border);font-weight:700}.management{grid-template-columns:.9fr 1.1fr}.classitem{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eff0f8;padding:16px 0;gap:15px}.classitem:last-child{border:0}.button-row{display:flex;align-items:center;gap:10px;margin-top:auto;flex-wrap:wrap}.button-row form{margin:0}.filterbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.filterbar>div{flex:1;min-width:170px}.filterbar label{margin-top:0}.journal-dl dt{font-weight:800;margin-top:14px}.journal-dl dd{margin:4px 0 10px;white-space:pre-line;color:#68768d}.barlabel{display:flex;justify-content:space-between;margin:15px 0 6px}.bartrack{height:14px;background:#eff1fa;border-radius:14px;overflow:hidden}.barfill{height:100%;border-radius:14px}.barfill.pre{background:#aea4ef}.barfill.post{background:#35baa4}.maxform{max-width:780px}.edit-section{margin-bottom:20px}.section-head{display:flex;gap:12px;align-items:flex-start;border-bottom:1px solid #edf0f8;padding-bottom:14px;margin-bottom:17px}.section-head h2{margin:0}.section-head p{margin:5px 0 0;color:var(--muted);font-size:12px}.round-n{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;border-radius:10px;background:#eae7ff;color:#7361d8;font-weight:800}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px 15px}.formgrid .wide{grid-column:1/-1}.formgrid label{margin-top:3px}.checkbox-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.check-card{display:flex;align-items:center;gap:10px;padding:12px;background:#f8f8fe;border:1px solid #eceefb;border-radius:12px;cursor:pointer}.check-card input{accent-color:#7061dc}.editor-unit{background:#f8f9ff;border:1px solid #e7eafa;padding:15px 18px;border-radius:12px;margin:11px 0}.editor-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.editor-heading strong{font-size:12px}.editor-unit label{margin-top:8px}.editor-unit .fieldgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.editor-unit .fieldgrid input{font-size:12px}.editor-unit .fieldgrid label{margin:0}.editor-unit select{max-width:260px}.editor-empty{color:#8792a7;font-size:12px}.flash{padding:13px 17px;border-radius:12px;background:#ecf8f2;border:1px solid #c8eddc;color:#17826b;margin:0 0 17px}.flash.error{background:#fff0f1;color:#b73549;border-color:#ffd6d8}.flash.info{background:#eef3ff;color:#4b61a9;border-color:#d5e2ff}.sr-only{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);white-space:nowrap;overflow:hidden}
@media(max-width:850px){.two-col,.login-columns,.management,.practice-layout,.share{grid-template-columns:1fr}.topcontent{align-items:flex-start;flex-direction:column;padding-top:13px;padding-bottom:13px}.topcontent nav{gap:12px}.stats.four{grid-template-columns:1fr 1fr}.tutor{position:static}.hero:after{display:none}}
@media(max-width:590px){.container{padding-left:15px;padding-right:15px}.hero{padding:29px 22px}.join-card,.card{padding:21px}.grid-cards,.stats.three,.stats.four,.formgrid,.options,.checkbox-grid{grid-template-columns:1fr}.formgrid .wide{grid-column:1}.pageheading{align-items:flex-start;flex-direction:column}.steps-grid{grid-template-columns:1fr}.practice-layout{gap:7px}.sharebox{flex-direction:column}.tablewrap{padding:0}.filterbar{padding:19px}.editor-unit .fieldgrid{grid-template-columns:1fr}.logo{font-size:15px}}

/* AI-powered teacher and learner workflows */
.ai-btn{background:#ecedff;color:#4034a0;border:1px solid #b7baff;margin:6px 4px 0 0}
.ai-btn:hover{background:#e1e1ff}
.ai-status{padding-top:10px;line-height:1.55;font-size:0.94rem}
.ai-status.error{color:#aa2930}
.ai-status.success{color:#256d48}
.ai-answer{white-space:pre-wrap;overflow-wrap:anywhere;padding:16px 18px;border-radius:14px;background:#f3f5ff;border:1px solid #dbe1fd;line-height:1.7;margin:12px 0}
button[disabled]{opacity:.5;cursor:not-allowed}

/* Summer school theme: hoa phượng, turquoise, coral, sunshine. */
:root{--ink:#10204c;--muted:#536786;--violet:#cf344a;--blue:#0079a3;--mint:#007f83;--bg:#fffcf4;--border:#d9eef1;--shadow:0 8px 28px rgba(24,91,110,.065);--radius:21px}
body{background:radial-gradient(ellipse at 95% 2%,#fff1c7 0,transparent 38%),radial-gradient(ellipse at 0% 45%,#e6faff 0,transparent 50%),var(--bg)}
.topbar{border-bottom:1px solid #d9edf2;background:rgba(255,255,255,.98)}
.logo{color:var(--ink)}.logo strong{color:#007aa6}.logo small{color:#54748a;letter-spacing:.8px;font-size:10px}.brand-icon{background:linear-gradient(145deg,#02c5db,#0282bd);box-shadow:0 5px 15px #0794b326;border-radius:13px}
nav a:hover{color:#007597}.navlogout{background:#e7f8fb;color:#12627c}
.hero,.summer-hero{background-image:linear-gradient(90deg,rgba(241,252,255,.96) 0%,rgba(241,252,255,.88) 38%,rgba(255,255,246,.14) 70%),url('/static/phuong-summer.webp');background-position:center,right center;background-size:cover;border:1px solid #d3eef3;box-shadow:var(--shadow);min-height:240px;padding:34px 40px;border-radius:24px;position:relative;overflow:hidden;margin-bottom:24px}
.hero:after{display:none}.hero h1,.summer-hero h1{max-width:640px;font-size:clamp(28px,3.2vw,43px);line-height:1.3;color:var(--ink);margin:10px 0 14px}.hero h1 span{color:#006e86}.hero p,.summer-hero p{max-width:58%;color:#304c70;font-size:15px;margin-bottom:0}.summer-hero .eyebrow,.hero .eyebrow{color:#00657c;background:#ffffffca;padding:6px 11px;border-radius:20px;letter-spacing:1px}
.eyebrow{color:#00718b}.star{color:#e14b58}.card{background:#ffffffef;border-color:#dceef0}.highlights{background:linear-gradient(135deg,#f6feff,#fffaf0)}
.btn.primary{background:linear-gradient(115deg,#ef4d43,#df3852);border-color:transparent;color:#fff;box-shadow:0 4px 12px #e5474820}.btn.primary:hover{background:linear-gradient(115deg,#ce3935,#bf2d43);color:#fff}.btn.secondary{background:#eafaff;border-color:#bcdfea;color:#086681}.btn.secondary:hover{background:#def4fb;color:#065366}
.btn.ai-btn{background:#e7f9fc;color:#006e80;border-color:#bfe8ee}.tutor .btn.primary{background:#007ea4}.tutor .btn.primary:hover{background:#006a8d}.bot-icon{background:linear-gradient(140deg,#09c5da,#0089b5);color:#fff}.bubble.assistant{background:#e9f7ff;color:#193f68}.bubble.user{background:#fff0e9;color:#8b3b36}
.pill,.tag{background:#e4f7fb;color:#07667d}.tag.soft{background:#fff1ed;color:#a32d40}.lessoncard{border-top:3px solid #2ab8c7}.lessoncard h3{font-size:19px;line-height:1.55}.mini-progress{background:#e7f4f5}.mini-progress-fill{background:linear-gradient(90deg,#09a7bf,#1fbaac)}
.steps-grid>div{border-color:#d1eaf0;background:#f0fbff}.steps-grid>div:nth-child(2){background:#fff1f1;border-color:#f8d9d9}.steps-grid>div:nth-child(3){background:#eafaf7;border-color:#c9ece5}.steps-grid>div:nth-child(4){background:#fff8e9;border-color:#f3e4c7}.steps-grid>div:nth-child(5){background:#f3f0ff;border-color:#e1d8f7}.steps-grid b{background:#dff7fc;color:#007ba0}.steps-grid>div:nth-child(2) b{background:#ffe0e4;color:#b83248}.steps-grid>div:nth-child(3) b{background:#d4f1eb;color:#087b72}.steps-grid>div:nth-child(4) b{background:#ffebba;color:#936213}.steps-grid>div:nth-child(5) b{background:#e9e1ff;color:#6844b1}
.step-link{background:#ffffffec;border-color:#d6ecef}.stepnumber{background:#dff7fb;color:#00718a}.step-link:nth-child(2) .stepnumber{background:#ffe5e7;color:#ac3147}.step-link:nth-child(3) .stepnumber{background:#dcf5ed;color:#08776a}.step-link:nth-child(4) .stepnumber{background:#fff0cf;color:#875d13}.step-link:nth-child(5) .stepnumber{background:#ede6ff;color:#6445a3}
input:focus,select:focus,textarea:focus{border-color:#0088aa!important;box-shadow:0 0 0 3px #0088aa20!important}.check-card input,input[type=checkbox],input[type=radio]{accent-color:#0085a3}.round-n{background:#dff5f8;color:#00697d}.editor-unit{background:#f4fcfd;border-color:#d9ecef}.barfill.pre{background:#ef998e}.barfill.post{background:#159ea4}.soft-note{background:#f0faf9;border-color:#cce8e4;color:#386564}
.summer-dashboard{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,.8fr);gap:22px;align-items:start}.summer-dashboard .grid-cards{grid-template-columns:1fr}.summer-tutor{background:linear-gradient(145deg,#fff,#f0fcff);position:sticky;top:20px}.summer-tutor h2{margin:12px 0}.summer-tutor p{color:#46617e}.summer-tutor .bubble{margin:14px 0;padding:16px;border-radius:16px}.summer-tutor .btn{background:#007d9b;color:white;border-color:transparent}
.summer-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:24px 0 0}.summer-step{padding:16px 11px;border-radius:17px;background:#eefbff;border:1px solid #cae9f1;display:flex;flex-direction:column;gap:8px;color:#135268;font-size:12px;min-height:112px}.summer-step:hover{text-decoration:none;box-shadow:0 4px 14px #173d6412}.summer-step b{font-size:14px;color:var(--ink)}.summer-step:nth-child(2){background:#fff1f2;border-color:#f3d3d9}.summer-step:nth-child(3){background:#eefaF6;border-color:#ccebe2}.summer-step:nth-child(4){background:#fff8e9;border-color:#efdfbb}.summer-step:nth-child(5){background:#f4efff;border-color:#e1d7f6}
.footer{border-top:1px solid #dcece8;background:linear-gradient(120deg,#e9faff,#fff7df 70%,#fff0eb);color:#456079;padding:22px 0}.footer small{font-size:12px}.topcontent nav{gap:18px}small.caption,.caption{font-size:12px}
@media(max-width:850px){.summer-dashboard{grid-template-columns:1fr}.summer-tutor{position:static}.hero,.summer-hero{padding:30px;min-height:220px}.hero p,.summer-hero p{max-width:72%}.summer-steps{grid-template-columns:repeat(3,1fr)}}
@media(max-width:590px){.hero,.summer-hero{padding:24px 22px;background-image:linear-gradient(90deg,rgba(244,252,253,.96),rgba(244,252,253,.82)),url('/static/phuong-summer.webp');min-height:0}.hero p,.summer-hero p{max-width:100%;font-size:14px}.hero h1,.summer-hero h1{font-size:29px}.summer-steps{grid-template-columns:1fr 1fr;gap:9px}.summer-step{min-height:100px}.summer-dashboard{gap:16px}.lessoncard h3{font-size:17px}.btn{min-height:44px}.grid-cards{grid-template-columns:1fr}}

.pageheading{padding:25px 28px;border:1px solid #d8edf0;border-radius:22px;background-image:linear-gradient(90deg,#f1fbfff2 0%,#f1fbffe6 45%,#f1fbff80 100%),url('/static/phuong-summer.webp');background-size:cover;background-position:center;margin-bottom:25px}.pageheading>div:first-child{max-width:78%}.pageheading h1{color:var(--ink)}.pageheading p{color:#355474}@media(max-width:590px){.pageheading{padding:22px;background-image:linear-gradient(90deg,#f1fbfff5,#f1fbffdd),url('/static/phuong-summer.webp')}.pageheading>div:first-child{max-width:100%}}

/* Reference composition: full summer backdrop, paired lesson/tutor, full-width 5T row. */
.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}.ui-icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;display:inline-block;vertical-align:middle}
:root{--ink:#071b58;--muted:#4b6293;--radius:22px}.container{max-width:1400px;padding-left:28px;padding-right:28px}.page{padding-top:26px;padding-bottom:25px}.topcontent{min-height:94px;gap:20px}.logo{font-size:22px;font-weight:800;white-space:nowrap}.logo small{display:none}.logo strong{color:#008bdb}.brand-icon{width:45px;height:46px;background:none;box-shadow:none;color:#029ada;border-radius:0}.brand-icon .ui-icon{width:43px;height:43px;stroke-width:2.6}.topbar{background:#fffffff0;border-bottom:1px solid #d9eef5}.topcontent nav{gap:28px;flex-wrap:nowrap}nav a{font-size:15px;color:#071b58;display:inline-flex;align-items:center;gap:9px;font-weight:600}.student-nav-home{padding:12px 19px;border-radius:26px;background:#e6faff;color:#007bd4}.alias-menu{position:relative;margin-left:15px;flex-shrink:0}.alias-menu summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;border:1px solid #d9eaf5;border-radius:28px;background:#fff;padding:9px 16px;font-size:14px;min-height:48px}.alias-menu summary::-webkit-details-marker{display:none}.alias-menu summary:after{content:'⌄';font-size:20px}.alias-star{display:grid;place-items:center;background:linear-gradient(135deg,#ff7587,#fb4764);color:white;font-size:23px;width:34px;height:34px;border-radius:50%}.alias-menu form{position:absolute;right:0;top:58px;z-index:10;padding:12px;background:white;border:1px solid #d4e9f0;border-radius:15px;box-shadow:0 10px 24px #0f305a20;min-width:180px;margin:0}
body:has(.reference-layout){background-color:#fffdf4;background-image:linear-gradient(180deg,transparent 0px,transparent 320px,#fffdf2d9 700px),url('/static/phuong-summer.webp');background-size:100% 950px,cover;background-position:center top,center 94px;background-repeat:no-repeat,no-repeat;background-attachment:scroll,scroll}
body:has(.reference-layout) .page{padding-top:0;position:relative;z-index:1}body:has(.reference-layout):after{content:'';position:absolute;z-index:0;left:0;top:750px;right:0;height:380px;background:url('/static/phuong-corner.webp') left bottom/220px auto no-repeat,url('/static/phuong-corner.webp') right bottom/220px auto no-repeat;pointer-events:none;opacity:.72}
.reference-hero{padding:38px 8px 44px;min-height:198px;position:relative}.reference-hero h1{font-size:clamp(33px,4.1vw,55px);font-weight:800;line-height:1.17;letter-spacing:-1.4px;max-width:740px;margin:0 0 15px;text-shadow:0 1px 12px #ffffff80}.reference-hero p{font-size:23px;color:#3b5d97;margin:0;max-width:700px;text-shadow:0 1px 12px #fff}
.reference-dashboard{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:24px;align-items:stretch}.reference-dashboard .card{background:linear-gradient(130deg,#fffffffa,#f1fbfff8);border:1px solid #d3eaf5;box-shadow:0 8px 28px #0266790c;padding:24px;border-radius:22px;min-width:0}.reference-dashboard h2{display:flex;align-items:center;gap:12px;font-size:24px;font-weight:800;margin:0 0 20px;line-height:1.4}.reference-icon{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;flex-shrink:0;border-radius:50%;background:#dcf6ff;color:#009ad4}.reference-icon .ui-icon{width:31px;height:31px;stroke-width:1.9}.book-icon{width:46px;height:46px;border-radius:13px}.book-icon .ui-icon{width:33px;height:33px;stroke-width:2.4}.bot-round{background:linear-gradient(145deg,#d8f5ff,#90d9f1);color:#08789f}
.reference-lesson-body{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(0,1.5fr);gap:24px;align-items:center}.lesson-art{width:100%;height:auto;aspect-ratio:1;border-radius:14px;object-fit:cover;background:#59d4e4;display:block}.lesson-copy{min-width:0}.lesson-copy h3{font-size:clamp(22px,2.1vw,29px);line-height:1.32;margin:0 0 12px;font-weight:800;color:#071b58;letter-spacing:-.45px}.lesson-subject{display:flex;align-items:center;gap:10px;color:#5477b5;font-size:16px;margin:0 0 10px}.lesson-subject .ui-icon{color:#009fee;width:24px;height:24px}.lesson-summary{font-size:16px;line-height:1.6;color:#233d73;margin:0 0 20px}.lesson-continue{min-width:200px;font-size:16px!important;padding:13px 22px!important;display:inline-flex;gap:24px;justify-content:center;align-items:center;background:linear-gradient(110deg,#ff6248,#f83a5e)!important;box-shadow:none!important}.lesson-continue:hover{background:linear-gradient(110deg,#db4534,#d92d50)!important}.reference-tutor{display:flex;flex-direction:column}.reference-tutor h2{margin-bottom:14px}.reference-chat{flex:1;min-height:90px;max-height:200px;overflow:auto;margin-bottom:17px}.reference-chat .bubble{max-width:95%;font-size:16px;line-height:1.5;padding:14px 18px;border-radius:16px;margin-bottom:10px}.reference-chat .assistant{background:#e6f5ff;color:#092c67}.reference-chat .user{background:#fff0e9;margin-left:auto}.reference-composer{border:1px solid #bdcdeb;border-radius:15px;background:white;padding:13px 15px;margin-top:auto}.reference-composer textarea{border:none!important;padding:0!important;box-shadow:none!important;font-size:16px;line-height:1.45;background:transparent;min-height:58px;resize:vertical;color:#10204c}.reference-composer textarea::placeholder{color:#7588b0}.composer-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}.composer-note{font-size:11px;color:#577398}.tutor-send{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#009bc6;color:white;border:none;font-size:14px;padding:10px 14px;white-space:nowrap}.tutor-send:hover{background:#007d9f;color:white}.tutor-send .ui-icon{width:19px;height:19px}.tutor-send:disabled{opacity:.55;cursor:not-allowed}.reference-tutor .caption{font-size:12px;margin:10px 0 0}.lesson-picker{display:flex;align-items:center;gap:10px;margin:0 0 18px;flex-wrap:wrap}.lesson-picker label{margin:0;font-size:12px}.lesson-picker select{flex:1;min-width:140px;width:auto;font-size:12px}.lesson-picker button{font-size:12px}
.reference-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px;margin-top:22px}.reference-step{position:relative;border:1px solid #c2e4f5;border-radius:19px;background:#eefaffed;min-height:214px;padding:21px 18px 48px;display:flex;flex-direction:column;color:#385c90;text-decoration:none;box-shadow:none}.reference-step:hover{text-decoration:none;box-shadow:0 6px 18px #0e3d6414;transform:translateY(-2px)}.step-title{display:flex;align-items:center;gap:11px;min-height:52px}.step-title b{font-size:16px;line-height:1.3;color:#091e53;font-weight:800;white-space:nowrap}.reference-step p{font-size:15px;line-height:1.55;margin:17px 0 0;color:#3f5d95}.step-arrow{position:absolute;bottom:13px;right:13px;display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:#daf5ff;color:#069aca;font-size:24px}.step-t2{background:#fff2f3eb;border-color:#f7cdd6}.step-t2 .reference-icon,.step-t2 .step-arrow{background:#ffe0e8;color:#ea4761}.step-t3{background:#edfcf8ec;border-color:#c3ebe3}.step-t3 .reference-icon,.step-t3 .step-arrow{background:#d8f4ef;color:#1298a0}.step-t4{background:#fff8ebe8;border-color:#efdabb}.step-t4 .reference-icon,.step-t4 .step-arrow{background:#ffebc8;color:#ed8610}.step-t5{background:#f4f0ffed;border-color:#ddd1fb}.step-t5 .reference-icon,.step-t5 .step-arrow{background:#e7ddff;color:#7046d3}
.footer{position:relative;z-index:1;border:none;background:linear-gradient(120deg,#e7f8ffc0,#fff9e6d4,#eafbffbd);text-align:center;margin-top:8px;padding:22px 180px;color:#4c6c94;font-size:12px}.footer small{font-size:11px}.join-dialog{border:1px solid #cae4f0;border-radius:22px;max-width:480px;width:calc(100% - 30px);padding:28px 30px;box-shadow:0 24px 80px #08274235;color:#0e2355;overflow:auto;max-height:90vh}.join-dialog::backdrop{background:#071b5870;backdrop-filter:blur(4px)}.join-dialog h2{margin:4px 0 8px}.join-dialog label{font-size:13px}.join-dialog .full{margin-top:22px}.dialog-close{position:absolute;right:12px;top:8px;background:transparent;border:none;font-size:28px;color:#56718d;cursor:pointer;width:38px;height:38px}.join-dialog .caption{margin:17px 0 13px}.join-dialog> a{font-size:12px}
@media(min-width:1280px){.reference-lesson{min-height:318px}.reference-lesson-body{grid-template-columns:210px minmax(0,1fr)}}
@media(max-width:1180px){.logo{font-size:19px}.topcontent nav{gap:17px}nav a{font-size:14px}.alias-menu{margin-left:0}.reference-dashboard{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}.reference-dashboard .card{padding:20px}.reference-lesson-body{gap:17px}.reference-steps{gap:11px}.reference-step{padding:18px 12px 45px}.step-title{gap:8px;flex-wrap:wrap}.step-title b{font-size:14px}.reference-icon{width:44px;height:44px}.reference-step p{font-size:14px}.lesson-summary{font-size:14px}.lesson-continue{min-width:160px;font-size:14px!important}}
@media(max-width:850px){.topcontent{flex-direction:row;flex-wrap:wrap;align-items:center;min-height:86px;padding-top:15px;padding-bottom:15px}.topcontent nav{flex-wrap:wrap;gap:13px}.reference-hero{padding:30px 0 32px;min-height:175px}.reference-hero h1{font-size:40px}.reference-hero p{font-size:18px;max-width:75%}.reference-dashboard{grid-template-columns:1fr}.reference-lesson-body{grid-template-columns:180px minmax(0,1fr)}.reference-steps{grid-template-columns:repeat(3,minmax(0,1fr))}.reference-step{min-height:200px}.step-title{flex-wrap:nowrap}.step-title b{font-size:15px}.footer{padding:22px 45px}.reference-composer textarea{min-height:55px}.reference-chat{max-height:190px}}
@media(max-width:590px){.container{padding-left:16px;padding-right:16px}.topcontent nav{gap:12px;justify-content:flex-start;width:100%}.logo{font-size:17px}.brand-icon{width:36px;height:36px}.brand-icon .ui-icon{width:34px;height:34px}nav a{font-size:12px;gap:6px}.student-nav-home{padding:8px 10px}.alias-menu summary{padding:6px 9px;font-size:12px}.alias-menu{margin-left:auto}.alias-star{width:26px;height:26px;font-size:19px}.topcontent{gap:10px}.reference-hero{padding:26px 0 29px;min-height:160px}.reference-hero h1{font-size:34px;max-width:100%;letter-spacing:-.6px}.reference-hero p{font-size:17px;max-width:95%}.reference-dashboard .card{padding:20px}.reference-dashboard h2{font-size:21px;gap:10px;margin-bottom:15px}.reference-lesson-body{grid-template-columns:1fr;gap:18px}.lesson-art{max-width:220px;justify-self:center}.lesson-copy h3{font-size:25px}.lesson-summary{font-size:15px}.lesson-continue{width:100%;min-height:46px}.reference-steps{grid-template-columns:1fr 1fr;gap:11px;margin-top:18px}.reference-step{padding:16px 13px 47px;min-height:226px}.step-title{align-items:flex-start;flex-direction:column;gap:10px}.step-title b{font-size:15px;white-space:normal}.reference-step p{font-size:14px;margin-top:11px}.composer-note{max-width:120px;font-size:11px}.reference-tutor .tutor-send{padding:10px;font-size:13px}.footer{padding:20px 24px;margin-top:15px}.join-dialog{padding:27px 22px}body:has(.reference-layout):after{opacity:.45;background-size:130px auto;top:1200px;height:400px}}
@media(prefers-reduced-motion:reduce){.reference-step:hover{transform:none}}
.roster-forms{margin:22px 0}.roster-table{margin-top:22px}.roster-issued{margin-top:20px;border-color:#f3d2aa;background:#fffaf2}.roster-issued button{margin-top:14px}.roster-name-form{display:flex;align-items:center;gap:8px;min-width:230px}.roster-name-form input{min-width:150px}.roster-name-form button{white-space:nowrap}.roster-table td form.inline{display:inline-block;margin:3px}.roster-table td{vertical-align:middle}.topcontent:has(nav a[href="/giao-vien/hoc-sinh"]){flex-wrap:wrap}.topcontent:has(nav a[href="/giao-vien/hoc-sinh"]) nav{flex-wrap:wrap;padding:9px 0}.roster-forms input[type=file]{font-size:12px}
#excel-options{margin:16px 0;padding:15px;background:#f0fafc;border-radius:14px}#excel-options[hidden],#excel-preview[hidden]{display:none}#excel-prepare{margin-top:15px}#excel-preview{margin:16px 0}#excel-preview th,#excel-preview td{font-size:12px}.text-destructive{color:#a42b43}
