:root{--bleu:#002395;--bleu-clair:#1a3a8f;--rouge:#ed2939;--or:#c9a227;--creme:#fdf8f3;--ivoire:#fffbf5;--app-bg:#fdf8f3;--bg:#f7f1ea;--blue:#002395;--green:#1a9e7a;--ink:#1a1a2e;--line:#0023951f;--muted:#6b7280;--surface:#fffbf5;--shadow:0 18px 50px #0023951a;--serif:Georgia, "Times New Roman", "Noto Serif SC", serif;color:var(--ink);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.45}*{box-sizing:border-box}body{background:radial-gradient(circle at 88% -10%,#00239514,#0000 32%),radial-gradient(circle at 8% 108%,#ed293912,#0000 30%),linear-gradient(#fdf8f3 0%,#f0f4ff 48%,#fff5f5 100%);min-height:100vh;margin:0}a{color:inherit}button,input,textarea,select{font:inherit}.app-shell{min-height:100vh;position:relative}.app-shell:after{content:"";pointer-events:none;background:radial-gradient(circle at 12% 18%,#c9a22714,#0000 22%),radial-gradient(circle at 90% 80%,#0023950d,#0000 24%);position:absolute;inset:0}.topbar{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);background:#fdf8f3eb;justify-content:space-between;align-items:center;gap:24px;padding:22px 32px;display:flex;position:relative}.topbar:before{background:linear-gradient(90deg, var(--bleu) 0 34%, #fff 34% 66%, var(--rouge) 66%);content:"";height:4px;position:absolute;top:0;left:0;right:0}.eyebrow{color:var(--blue);letter-spacing:0;text-transform:uppercase;margin:0 0 6px;font-size:12px;font-weight:800}.topbar h1,.context-panel h2{color:var(--bleu);margin:0}.context-panel h2{font-family:var(--serif)}.topbar h1{font-family:var(--serif);font-size:26px;font-weight:700;line-height:1.15}.role-switch,.tabbar,.filter-row{align-items:center;gap:8px;display:flex}button{cursor:pointer;font:inherit;border:0}.role-switch{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:5px}.session-chip{border:1px solid var(--line);background:#fff;border-radius:8px;align-items:center;gap:10px;min-height:46px;padding:6px 8px 6px 14px;display:flex}.session-chip img,.session-chip i,.profile-avatar-preview img,.profile-avatar-preview span{object-fit:cover;border-radius:50%;width:38px;height:38px}.session-chip i,.profile-avatar-preview span{background:var(--blue);color:#fff;justify-content:center;align-items:center;font-size:14px;font-style:normal;font-weight:900;display:inline-flex}.session-chip span{color:var(--ink);font-size:14px;font-weight:900}.session-chip b{color:var(--muted);font-size:12px}.session-chip button{background:var(--surface);color:var(--ink);border-radius:7px;min-height:32px;padding:6px 10px;font-size:13px;font-weight:800}.role-switch button,.tabbar button,.filter-row button{color:var(--muted);background:0 0;border-radius:7px;min-height:36px;padding:7px 12px;font-size:14px;font-weight:700}.role-switch button.active,.tabbar button.active{background:var(--bleu);color:#fff}.login-page{background:linear-gradient(135deg,#fdf8f3 0%,#e8f0fe 50%,#fff5f5 100%);justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex;position:relative;overflow-x:hidden}.login-page:before,.login-page:after{content:"";pointer-events:none;border-radius:50%;position:absolute}.login-page:before{background:radial-gradient(circle,#00239514 0%,#0000 70%);width:380px;height:380px;top:-120px;right:-80px}.login-page:after{background:radial-gradient(circle,#ed293912 0%,#0000 70%);width:320px;height:320px;bottom:-100px;left:-60px}.login-shell{z-index:1;width:100%;max-width:420px;position:relative}.login-brand{text-align:center;margin-bottom:28px}.login-logo{color:#002395;font-family:var(--serif);align-items:center;gap:10px;font-size:1.5rem;font-weight:700;display:inline-flex}.login-logo-icon{color:#fff;background:linear-gradient(135deg,#002395,#1a3a8f);border-radius:12px;justify-content:center;align-items:center;width:42px;height:42px;display:flex;box-shadow:0 4px 14px #00239533}.login-tagline{color:#6b7280;margin:6px 0 0;font-size:.85rem;font-weight:500}.login-welcome{text-align:center;margin-bottom:8px}.login-welcome h1{color:#002395;font-family:var(--serif);letter-spacing:-.03em;margin:0 0 8px;font-size:2.1rem}.login-welcome p{color:#6b7280;margin:0;font-size:.92rem;line-height:1.5}.login-flag{border-radius:3px;width:28px;height:18px;display:flex;position:absolute;top:18px;right:20px;overflow:hidden;box-shadow:0 1px 3px #0000001a}.login-flag span{flex:1}.login-flag span:first-child{background:#002395}.login-flag span:nth-child(2){background:#fff}.login-flag span:nth-child(3){background:#ed2939}.login-hero h1{color:var(--ink);max-width:560px;margin:0;font-size:44px;line-height:1.1}.login-hero p:not(.eyebrow){color:var(--muted);max-width:520px;margin:18px 0 0;font-size:17px}.login-card{background:#fffbf5;border:0;border-radius:20px;gap:14px;padding:36px 32px;display:grid;position:relative;overflow:hidden;box-shadow:0 4px 6px -1px #0000000a,0 20px 40px -8px #0023951f}.login-card:before{content:"";background:linear-gradient(90deg,#002395,#c9a227,#ed2939);height:4px;position:absolute;top:0;left:0;right:0}.login-card h2{color:var(--ink);margin:0 0 4px;font-size:18px}.login-card-title{justify-content:space-between;align-items:start;gap:16px;display:flex}.login-card-title p{color:var(--muted);margin:0;font-size:13px;line-height:1.5}.login-card-title button{color:#002395;background:#f8fafc;border:1.5px solid #e5e7eb;border-radius:12px;flex:none;min-height:34px;padding:6px 10px;font-size:13px;font-weight:700}.admin-login-card{box-shadow:0 4px 6px -1px #0000000a,0 20px 40px -8px #ed29391f}.login-card label{gap:7px;display:grid}.login-card label span{color:var(--muted);font-size:13px;font-weight:800}.login-card input{color:#1a1a2e;background:#fff;border:1.5px solid #e5e7eb;border-radius:12px;outline:0;min-height:44px;padding:10px 12px}.login-card input:focus{border-color:#002395;box-shadow:0 0 0 4px #0023951f}.login-card>button{color:#fff;background:linear-gradient(135deg,#002395,#1a3a8f);border-radius:12px;min-height:48px;font-weight:700;box-shadow:0 4px 14px #0023954d}.login-error{color:#9f1239;background:#fff1f2;border:1px solid #e11d4833;border-radius:8px;margin:0;padding:10px;font-size:13px}.login-note{border:1px solid var(--line);color:var(--muted);background:#f7f9fc;border-radius:8px;margin:0;padding:10px;font-size:12px;line-height:1.5}.demo-accounts,.login-action-row{grid-template-columns:1fr 1fr;gap:10px;display:grid}.demo-accounts button{background:var(--surface);color:var(--ink);border-radius:8px;min-height:38px;font-size:13px;font-weight:800}.workspace{grid-template-columns:280px minmax(0,1fr);gap:24px;padding:28px 32px 40px;display:grid}.context-panel{background:var(--ivoire);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:20px;align-self:start;padding:20px;position:sticky;top:24px;overflow:hidden}.context-panel:before{background:linear-gradient(90deg, var(--bleu), var(--or), var(--rouge));content:"";height:4px;margin:-20px -20px 16px;display:block}.context-panel p{color:var(--muted);margin:12px 0 0}.stacked-stats{gap:10px;margin-top:24px;display:grid}.web-workspace{min-width:0}.web-app{background:var(--ivoire);border:1px solid var(--line);box-shadow:var(--shadow);color:var(--ink);border-radius:20px;overflow:hidden}.workspace-header{background:var(--ivoire);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:22px 24px;display:flex}.workspace-header h2{color:var(--bleu);font-family:var(--serif);margin:0;font-size:24px;line-height:1.2}.workspace-header p{color:var(--muted);margin:3px 0 0;font-size:13px}.avatar{background:var(--green);color:#fff;border-radius:50%;place-items:center;width:42px;height:42px;font-size:13px;font-weight:900;display:grid}.tabbar{background:var(--ivoire);border-bottom:1px solid var(--line);gap:4px;padding:10px 12px;overflow-x:auto}.tabbar button{flex:1;min-width:max-content}.screen-content{gap:18px;padding:20px 24px 24px;display:grid}.hero-band{color:#fff;background-color:#0000;background-image:linear-gradient(135deg,#2f6fedf2,#1a9e7ae0),url(https://images.unsplash.com/photo-1502602898657-3e91760cbb34?auto=format&fit=crop&w=900&q=80);background-position:50%;background-repeat:repeat,repeat;background-size:cover;background-attachment:scroll,scroll;background-origin:padding-box,padding-box;background-clip:border-box,border-box;border-radius:8px;min-height:176px;padding:18px}.hero-band .eyebrow{color:#ffffffdb}.hero-band h3{max-width:560px;margin:18px 0 0;font-size:24px;line-height:1.18}.hero-actions{gap:10px;margin-top:22px;display:flex}.hero-actions button,.wide-button{background:linear-gradient(135deg, var(--bleu), var(--bleu-clair));color:#fff;border-radius:12px;min-height:42px;padding:10px 14px;font-weight:800}.hero-actions .secondary{background:#fff3;border:1px solid #ffffff59}.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.metric,.card{background:var(--ivoire);border:1px solid var(--line);border-radius:16px}.metric{min-height:76px;padding:13px}.metric span{color:var(--muted);font-size:12px;font-weight:700;display:block}.metric strong{color:var(--ink);margin-top:12px;font-size:24px;line-height:1;display:block}.card{padding:16px;position:relative;overflow:hidden}.card:before{background:linear-gradient(90deg, var(--bleu), var(--or), var(--rouge));content:"";height:3px;position:absolute;top:0;left:0;right:0}.card h3{color:var(--bleu);font-family:var(--serif);margin:4px 0 12px;font-size:17px}.card p{color:var(--muted);margin:0;font-size:14px}.tag-list{flex-wrap:wrap;gap:8px;display:flex}.tag-list span{color:var(--bleu);background:#00239514;border:1px solid #0023951f;border-radius:999px;padding:6px 9px;font-size:12px;font-weight:800}.timeline{gap:10px;display:grid}.timeline p{grid-template-columns:82px 1fr;align-items:start;gap:10px;display:grid}.timeline strong{color:var(--ink);font-size:13px}.timeline span,.muted{color:var(--muted);font-size:13px}.list{gap:10px;display:grid}.sync-strip{border:1px solid var(--line);background:#fff;border-radius:8px;justify-content:space-between;align-items:center;gap:10px;min-height:44px;padding:8px 10px 8px 12px;display:flex}.sync-strip span{color:var(--muted);font-size:12px;font-weight:800}.sync-strip button{background:var(--ink);color:#fff;white-space:nowrap;border-radius:7px;min-height:30px;padding:5px 9px;font-size:12px;font-weight:900}.list-row{background:var(--ivoire);border:1px solid var(--line);color:var(--ink);text-align:left;border-radius:14px;justify-content:space-between;align-items:center;min-height:68px;padding:12px;display:flex}.list-row.selected{border-color:var(--blue);box-shadow:0 0 0 3px #2f6fed1f}.list-row small{color:var(--muted);margin-top:3px;font-size:12px;display:block}.list-row b{color:var(--blue);white-space:nowrap;font-size:12px}.question-stack{gap:12px;margin-top:12px;display:grid}.question-card{background:var(--ivoire);border:1px solid var(--line);border-radius:16px;padding:13px}.question-card h4{margin:8px 0 6px;font-size:15px}.question-point{color:var(--bleu);margin:0 0 8px;font-size:12px;font-weight:700}.question-meta{justify-content:space-between;align-items:center;display:flex}.question-meta span{background:var(--blue);color:#fff;border-radius:50%;place-items:center;width:24px;height:24px;font-size:12px;font-weight:900;display:grid}.question-meta small{color:var(--muted);font-weight:800}.option-list{gap:8px;margin-top:12px;display:grid}.option-list button{border:1px solid var(--line);color:var(--ink);text-align:left;background:#fff;border-radius:8px;min-height:40px;padding:9px 12px}.option-list button.selected{border-color:var(--blue);box-shadow:0 0 0 3px #2f6fed1f}.option-list button.correct{color:#11674f;background:#edf8f5;border-color:#1a9e7a80}.option-list button.wrong{color:#9f1239;background:#fff1f2;border-color:#e11d4873}.result-panel{background:#f7fbff;border:1px solid #cfe2ff;border-radius:8px;gap:9px;margin-top:12px;padding:12px;display:grid}.result-panel strong{color:var(--blue);font-size:18px}.result-panel span{color:var(--muted);font-size:13px;font-weight:700}.question-verdict{border-radius:12px;margin-top:14px;padding:12px 14px}.question-verdict strong{margin-bottom:6px;font-size:16px;display:block}.question-verdict p{margin:0 0 6px}.question-verdict p:last-child{margin-bottom:0}.question-verdict.is-correct{color:#11674f;background:#edf8f5;border:1px solid #1a9e7a59}.question-verdict.is-wrong{color:#9f1239;background:#fff1f2;border:1px solid #e11d4847}.quiz-progress,.quiz-exam-bar{color:var(--muted);justify-content:space-between;align-items:center;margin:0 0 8px;font-size:13px;font-weight:700;display:flex}.quiz-exam-bar strong{color:var(--bleu);font-variant-numeric:tabular-nums}.quiz-exam-bar strong.is-urgent{color:#ed2939}.quiz-nav{align-items:center;gap:10px;margin-top:14px;display:flex}.quiz-nav>span{color:var(--muted);text-align:center;flex:1;font-size:13px;font-weight:700}.quiz-nav .wide-button{flex:1.4;margin:0}details{color:var(--muted);margin-top:12px;font-size:13px}summary{color:var(--blue);cursor:pointer;font-weight:800}.speaking-panel{border:1px solid var(--line);background:#fff;border-radius:8px;gap:10px;margin-top:12px;padding:10px;display:grid}.speaking-panel button{background:linear-gradient(135deg, var(--bleu), var(--bleu-clair));color:#fff;border-radius:12px;min-height:40px;font-weight:800}.speaking-panel .speaking-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.speaking-file-input{display:none}.speaking-panel .secondary-action{border:1px solid var(--line);color:var(--ink);background:#f4f7fb}.speaking-panel audio{width:100%}.speaking-panel div{flex-wrap:wrap;gap:6px;display:flex}.speaking-panel span{color:#11775d;background:#edf8f5;border-radius:999px;padding:5px 8px;font-size:12px;font-weight:800}.speaking-block{flex-direction:column;gap:8px;margin-top:12px;display:flex}.speaking-block .secondary-action{border:1px solid var(--line);color:var(--ink);background:#f4f7fb;border-radius:8px;min-height:36px;font-weight:800}.blank-input{gap:6px;margin-top:12px;display:grid}.blank-input input{border:1px solid var(--line);background:#fff;border-radius:8px;min-height:40px;padding:8px 12px}.order-builder{gap:8px;margin-top:12px;display:grid}.search-box{border:1px solid var(--line);color:var(--muted);background:#fff;border-radius:8px;min-height:44px;padding:12px 14px;font-size:14px}.filter-row{overflow-x:auto}.filter-row button{border:1px solid var(--line);white-space:nowrap;background:#fff}.session-page-bar{background:#fdf8f3;border-bottom:1px solid #00239514;align-items:center;gap:12px;padding:12px 16px;display:flex}.session-page-bar button{border:1px solid var(--line);color:var(--bleu);background:#fff;border-radius:10px;flex:none;min-height:36px;padding:6px 12px;font-size:14px;font-weight:700}.session-page-bar strong{color:var(--bleu);font-family:var(--serif);text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:17px;overflow:hidden}.student-web-app.is-session{padding-bottom:16px}.card .list{margin-top:4px}.practice-tile{background:var(--surface);border:1px solid var(--line);color:var(--ink);text-align:left;border-radius:8px;justify-content:space-between;align-items:center;width:100%;min-height:52px;margin-top:8px;padding:10px;display:flex}.practice-tile small{color:var(--muted);text-align:right;margin-left:10px;font-size:12px}.practice-link-tile{background:var(--surface);border:1px solid var(--line);color:var(--ink);text-align:left;border-radius:8px;gap:6px;width:100%;margin-top:10px;padding:14px;display:grid}.practice-link-tile:hover{border-color:#2f6fed59}.practice-link-tile strong{font-size:15px}.practice-link-tile span,.practice-link-tile small{color:var(--muted);font-size:12px}.practice-link-tile small{font-weight:900}.recommendation-group{gap:8px;display:grid}.recommended-question-list{border-left:3px solid #2f6fed33;gap:8px;margin:0 0 6px 8px;padding-left:10px;display:grid}.recommended-question-item{border:1px solid var(--line);color:var(--ink);text-align:left;background:#fff;border-radius:8px;gap:4px;padding:10px 12px;display:grid}.recommended-question-item:hover{border-color:#1a9e7a73}.recommended-question-item span,.recommended-question-item small{color:var(--muted);font-size:12px}.progress-row{gap:8px;margin-top:13px;display:grid}.progress-row:first-of-type{margin-top:0}.progress-row>div:first-child{justify-content:space-between;align-items:center;display:flex}.progress-row strong{font-size:13px}.progress-row span{color:var(--muted);font-size:12px;font-weight:700}.progress-track{background:#edf0f5;border-radius:999px;height:8px;overflow:hidden}.progress-track i{background:linear-gradient(90deg, var(--blue), var(--green));height:100%;display:block}.chat{gap:10px;display:grid}.ai-workbench{grid-template-columns:minmax(0,1.45fr) minmax(320px,.8fr);align-items:start;gap:18px;display:grid}.chat-message,.chat p{color:var(--ink);border-radius:8px;padding:10px}.chat-message.student,.chat .student{background:#eef6ff;justify-self:end;max-width:86%}.chat-message.ai,.chat .ai{background:var(--surface)}.chat-message p{padding:0}.markdown-text{gap:8px;display:grid}.markdown-text p,.markdown-text ul{margin:0}.markdown-text ul{gap:5px;padding-left:18px;display:grid}.markdown-text li{line-height:1.55}.markdown-text strong{color:var(--ink);font-weight:900}.markdown-text em{font-style:italic}.markdown-text code{color:var(--ink);background:#0f172a14;border:1px solid #0f172a14;border-radius:6px;padding:1px 5px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.92em}.markdown-text.compact{gap:4px}.markdown-text.compact p,.markdown-text.compact li{line-height:1.45}.chat-message small{color:var(--muted);margin-top:6px;font-size:11px;font-weight:800;display:block}.prompt-box{border:1px solid var(--line);border-radius:8px;justify-content:space-between;align-items:center;gap:8px;min-height:42px;margin-top:12px;padding:6px 6px 6px 12px;display:flex}.prompt-box input{color:var(--muted);background:0 0;border:0;outline:0;width:100%;min-width:0;font-size:13px}.prompt-box button{background:var(--ink);color:#fff;border-radius:7px;min-height:32px;padding:6px 10px;font-size:13px;font-weight:800}.ai-history-list{gap:10px;max-height:560px;margin-top:12px;display:grid;overflow:auto}.ai-history-item{background:var(--surface);border:1px solid var(--line);color:var(--ink);text-align:left;border-radius:8px;gap:6px;padding:12px;display:grid}.ai-history-item:hover{border-color:#2f6fed59}.ai-history-item span,.ai-history-item em,.ai-history-answer{color:var(--muted);font-size:12px}.ai-history-item strong{font-size:14px;line-height:1.35}.ai-history-answer{-webkit-line-clamp:3;-webkit-box-orient:vertical;line-height:1.45;display:-webkit-box;overflow:hidden}.ai-history-answer .markdown-text{display:block}.ai-history-answer .markdown-text p,.ai-history-answer .markdown-text ul,.ai-history-answer .markdown-text li{display:inline}.ai-history-item em{font-style:normal;font-weight:800}.form-preview,.taxonomy-row,.student-row,.service-row{gap:9px;display:grid}.form-preview p,.taxonomy-row,.student-row,.service-row{border-bottom:1px solid var(--line);margin:0;padding:10px 0}.form-preview p{gap:4px;display:grid}.form-preview span,.taxonomy-row span,.student-row span,.service-row span{color:var(--muted);font-size:12px}.form-preview strong,.taxonomy-row strong,.student-row strong,.service-row strong{color:var(--ink);font-size:14px}.wide-button{width:100%;margin-top:14px}.assignment-form{gap:13px;display:grid}.profile-settings{grid-template-columns:80px minmax(0,1fr);align-items:start;gap:18px;display:grid}.profile-avatar-preview{background:var(--surface);border:1px solid var(--line);border-radius:8px;justify-content:center;align-items:center;min-height:80px;display:flex}.profile-avatar-preview img,.profile-avatar-preview span{width:56px;height:56px}.assignment-form label{gap:7px;display:grid}.assignment-form label span,.field-label{color:var(--muted);font-size:12px;font-weight:900}.assignment-form input,.assignment-form select,.assignment-form textarea{border:1px solid var(--line);color:var(--ink);border-radius:8px;outline:0;width:100%;min-height:42px;padding:9px 11px}.assignment-form textarea{resize:vertical;min-height:84px}.assignment-form input:focus,.assignment-form select:focus,.assignment-form textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #2f6fed1f}.question-picker{gap:8px;margin-top:7px;display:grid}.question-picker button{background:var(--surface);border:1px solid var(--line);color:var(--ink);text-align:left;border-radius:8px;justify-content:space-between;align-items:center;min-height:48px;padding:9px 10px;display:flex}.question-picker button.selected{border-color:var(--blue);background:#eef6ff}.question-picker small{color:var(--muted);margin-left:12px;font-size:12px}.secondary-wide-button{background:var(--ivoire);border:1.5px solid var(--line);color:var(--bleu);border-radius:12px;width:100%;min-height:42px;font-weight:800}.book-group{gap:8px;display:grid}.book-group+.book-group{margin-top:12px}.book-group-title{color:var(--blue);margin:0;font-size:13px;font-weight:800}.resource-list{gap:8px;display:grid}.resource-list a{background:var(--surface);border:1px solid var(--line);color:var(--ink);border-radius:8px;gap:4px;padding:10px;text-decoration:none;display:grid}.resource-list span{color:var(--muted);font-size:12px;font-weight:800}.resource-list button{background:var(--surface);border:1px solid var(--line);color:var(--ink);text-align:left;border-radius:8px;gap:4px;padding:10px;display:grid}.sentence-row{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.sentence-text{flex:1;font-size:16px;line-height:1.5}.lesson-player audio{width:100%}.preview-sentences{gap:12px;margin:0;padding-left:20px;display:grid}.preview-sentences li{gap:8px;display:grid}.progress-track{background:var(--line);border-radius:999px;flex:1;height:8px;overflow:hidden}.checkin-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.checkin-row b{color:var(--green);font-size:18px}.checkin-row button{background:var(--green);color:#fff;border-radius:8px;min-height:40px;padding:0 14px;font-weight:800}.checkin-row button:disabled{background:var(--line);color:var(--muted)}.progress-fill{background:var(--green);height:100%}.teacher-apply-box,.attachment-box,.media-player,.approval-row{border:1px solid var(--line);background:#ffffffc7;border-radius:8px;gap:10px;padding:12px;display:grid}.media-player audio,.media-player video{border-radius:8px;width:100%;max-height:220px}.inline-actions{grid-template-columns:1fr 1fr;gap:8px;display:grid}button:disabled{cursor:not-allowed;opacity:.58}.legal-links{flex-wrap:wrap;gap:10px;display:flex}.legal-links a{color:var(--blue);border:1px solid var(--line);background:#fff;border-radius:8px;padding:9px 12px;font-size:13px;font-weight:800;text-decoration:none}.danger-zone{border-top:1px solid var(--line);margin-top:16px;padding-top:14px}.danger-zone summary{color:#9f1239;cursor:pointer;font-weight:800}.danger-button{color:#fff;background:#b42318;border-radius:8px;min-height:42px;padding:9px 14px;font-weight:800}.consent-page{min-height:100dvh;padding:max(24px, env(safe-area-inset-top,0px)) 20px max(24px, env(safe-area-inset-bottom,0px));background:linear-gradient(145deg,#fdf8f3,#eef3ff);place-items:center;display:grid}.consent-card{border:1px solid var(--line);width:min(100%,520px);box-shadow:var(--shadow);background:#fff;border-radius:20px;padding:28px}.consent-card h1{color:var(--blue);font-family:var(--serif);margin:0 0 14px}.consent-card>p:not(.eyebrow){color:var(--muted);line-height:1.7}.consent-actions{grid-template-columns:1fr 1fr;gap:10px;margin-top:22px;display:grid}.consent-actions .wide-button{margin-top:0}.consent-declined{background:#fff1f2;border-radius:8px;padding:10px;color:#9f1239!important}.import-errors{background:#fff7ed;border:1px solid #fed7aa;border-radius:8px;gap:6px;padding:10px;display:grid}.import-errors p{color:#9a3412;margin:0;font-size:12px;font-weight:800}.student-row{color:inherit;cursor:pointer;text-align:left;background:0 0;border-top:0;border-left:0;border-right:0;justify-content:space-between;align-items:center;width:100%;display:flex}.student-row.selected{background:#f4f7fb;border-radius:8px;padding-left:10px;padding-right:10px}.student-row b{color:var(--blue)}.detail-heading{justify-content:space-between;align-items:center;gap:10px;display:flex}.detail-heading span{color:var(--muted);font-size:12px;font-weight:700}.speaking-record-list{gap:8px;margin-top:10px;display:grid}.speaking-record{border:1px solid var(--line);background:#fff;border-radius:8px;justify-content:space-between;align-items:center;gap:10px;padding:10px;display:flex}.speaking-record div{gap:4px;display:grid}.speaking-record span,.speaking-record small{color:var(--muted);font-size:12px}.speaking-record a{color:var(--blue);font-size:13px;font-weight:800;text-decoration:none}@media (width<=1120px){.workspace,.ai-workbench{grid-template-columns:1fr}}@media (width<=780px){.login-page{align-items:center;padding:18px}.login-card{padding:32px 24px}.login-welcome h1{font-size:1.8rem}.login-hero h1{font-size:34px}.topbar{flex-direction:column;align-items:flex-start;padding:18px}.role-switch{width:100%}.role-switch button{flex:1}.workspace{padding:14px;display:block}.context-panel{margin-bottom:14px;position:static}.web-app{border-radius:8px}.metric-grid,.profile-settings{grid-template-columns:1fr}.student-home{padding-bottom:88px}.app-shell.role-student .topbar,.app-shell.role-student .context-panel,.app-shell.role-student .workspace-header,.app-shell.role-student .tabbar{display:none}.app-shell.role-student .workspace{padding:0;display:block}.app-shell.role-student .web-app,.app-shell.role-student .web-app-home{box-shadow:none;border:0;border-radius:0;min-height:100dvh;overflow:visible}.app-shell.role-student .screen-content{padding:16px 16px calc(96px + env(safe-area-inset-bottom,0px))}.student-home-header{position:relative;top:auto}.student-app-nav,.student-home-nav{padding-bottom:calc(8px + env(safe-area-inset-bottom,0px));z-index:40;position:fixed;bottom:0;left:0;right:0}}.web-app-home{box-shadow:none;background:linear-gradient(#fdf8f3 0%,#f0f4ff 40%,#fff5f5 100%);border:0;border-radius:0}.app-shell:has(.web-app-home) .context-panel{display:none}.app-shell:has(.web-app-home) .workspace{grid-template-columns:1fr;padding:0}.student-home{color:#1a1a2e;min-height:70vh}.student-home-header{z-index:20;background:#fdf8f3eb;border-bottom:1px solid #0023950f;justify-content:space-between;align-items:center;padding:16px 20px 12px;display:flex;position:relative}.student-home-header-left,.student-home-header-right{align-items:center;gap:12px;display:flex}.student-home-avatar{color:#fff;object-fit:cover;background:linear-gradient(135deg,#002395,#1a3a8f);border:2px solid #fff;border-radius:50%;justify-content:center;align-items:center;width:44px;height:44px;font-size:1.1rem;font-weight:700;display:flex;box-shadow:0 4px 12px #0023951a}.student-home-greeting h2{color:#002395;font-family:var(--serif);margin:0;font-size:1.25rem;line-height:1.2}.student-home-greeting p{color:#6b7280;margin:2px 0 0;font-size:.78rem}.student-home-icon-btn{color:#002395;background:#fff;border:1px solid #00239514;border-radius:12px;justify-content:center;align-items:center;width:40px;height:40px;display:flex;box-shadow:0 2px 8px #0000000a}.student-home-icon-btn svg{width:20px;height:20px}.student-home-main{padding:8px 20px 24px}.student-home-streak{color:#fff;text-align:left;background:linear-gradient(135deg,#002395 0%,#1a3a8f 100%);border-radius:18px;justify-content:space-between;align-items:center;width:100%;margin-bottom:16px;padding:18px 20px;display:flex;position:relative;overflow:hidden;box-shadow:0 8px 24px #00239540}.student-home-streak:disabled{cursor:default;opacity:1}.student-home-streak h3{opacity:.9;margin:0 0 4px;font-size:.85rem;font-weight:500}.student-home-days{font-family:var(--serif);font-size:1.6rem;font-weight:700}.student-home-streak small{opacity:.85;margin-top:4px;display:block}.student-home-flame{text-align:center;background:#ffffff2e;border-radius:12px;padding:8px 12px}.student-home-flame div{font-size:1.4rem;line-height:1}.student-home-flame span{margin-top:2px;font-size:.7rem;display:block}.student-home-section-title{color:#1a1a2e;align-items:center;gap:8px;margin:10px 0 14px;font-size:.9rem;font-weight:600;display:flex}.student-home-section-title:after{content:"";background:linear-gradient(90deg,#0023951f,#0000);flex:1;height:1px}.student-home-flag{border-radius:2px;width:14px;height:10px;display:inline-flex;overflow:hidden}.student-home-flag span{flex:1}.student-home-flag span:first-child{background:#002395}.student-home-flag span:nth-child(2){background:#fff}.student-home-flag span:nth-child(3){background:#ed2939}.student-home-grid{grid-template-columns:1fr 1fr;gap:14px;margin-bottom:20px;display:grid}.student-home-card{text-align:center;background:#fff;border:1px solid #0023950d;border-radius:18px;padding:20px 16px 18px;position:relative;overflow:hidden;box-shadow:0 4px 16px #0023951a}.student-home-card:before{content:"";opacity:.85;height:3px;position:absolute;top:0;left:0;right:0}.student-home-card.devoirs:before{background:linear-gradient(90deg,#002395,#4a6cf7)}.student-home-card.exercices:before{background:linear-gradient(90deg,#059669,#34d399)}.student-home-card.lecture:before{background:linear-gradient(90deg,#7c3aed,#a78bfa)}.student-home-card.erreurs:before{background:linear-gradient(90deg,#dc2626,#f87171)}.student-home-card.profil:before{background:linear-gradient(90deg,#d97706,#fbbf24)}.student-home-card.ai:before{background:linear-gradient(90deg,#0ea5e9,#38bdf8)}.student-home-card-icon{border-radius:16px;justify-content:center;align-items:center;width:52px;height:52px;margin:0 auto 12px;font-size:1.6rem;display:flex}.student-home-card.devoirs .student-home-card-icon{background:#0023951a}.student-home-card.exercices .student-home-card-icon{background:#0596691a}.student-home-card.lecture .student-home-card-icon{background:#7c3aed1a}.student-home-card.erreurs .student-home-card-icon{background:#dc26261a}.student-home-card.profil .student-home-card-icon{background:#d977061a}.student-home-card.ai .student-home-card-icon{background:#0ea5e91a}.student-home-card h3{margin:0 0 4px;font-size:.95rem;font-weight:600}.student-home-card p{color:#6b7280;margin:0;font-size:.72rem;line-height:1.35}.student-home-tip{background:#fff;border:1px solid #0023950d;border-radius:16px;align-items:flex-start;gap:14px;padding:16px 18px;display:flex;box-shadow:0 4px 14px #0023951a}.student-home-tip-icon{background:linear-gradient(135deg,#fef3c7,#fde68a);border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;font-size:1.2rem;display:flex}.student-home-tip h4{margin:0 0 4px;font-size:.85rem}.student-home-tip p{color:#6b7280;margin:0;font-size:.78rem;line-height:1.45}.student-home-nav{background:#fffbf5f2;border-top:1px solid #00239514;justify-content:space-around;padding:8px;display:flex}.student-home-nav button{color:#6b7280;background:0 0;border-radius:12px;min-width:64px;padding:10px 12px;font-size:.68rem;font-weight:500}.student-home-nav button.active{color:#002395;font-weight:700}.student-web-app{padding-bottom:72px}.student-home-feedback{background:#fff;border:1px solid #0023950d;border-radius:16px;margin-top:20px;padding:16px 18px 18px;box-shadow:0 4px 14px #0023951a}.feedback-form{gap:12px;display:grid}.feedback-form label{gap:6px;display:grid}.feedback-form label span{color:var(--muted);font-size:13px;font-weight:700}.feedback-form select,.feedback-form textarea{color:#1a1a2e;font:inherit;background:#fff;border:1.5px solid #e5e7eb;border-radius:12px;padding:10px 12px}.feedback-form textarea{resize:vertical}.feedback-form>button{color:#fff;background:linear-gradient(135deg,#002395,#1a3a8f);border-radius:12px;min-height:42px;font-weight:700}.feedback-rating{align-items:center;gap:4px;display:flex}.feedback-rating button{color:#c9a227;background:0 0;min-height:32px;padding:0 2px;font-size:22px;line-height:1}.feedback-rating span{color:var(--muted);margin-left:8px;font-size:13px;font-weight:700}.feedback-list{gap:12px;display:grid}.feedback-item{border:1px solid var(--line);background:#fff;border-radius:12px;padding:12px 14px}.feedback-item header{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:6px;display:flex}.feedback-item header strong{color:#c9a227;letter-spacing:1px}.feedback-item p{margin:0 0 6px}.feedback-item small{color:var(--muted)}.native-app-bar{display:none}html.is-native-app{--app-safe-top:max(44px, calc(var(--safe-area-inset-top,env(safe-area-inset-top,0px)) + 16px));--app-safe-bottom:var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px));--native-bar-row:52px;--native-bar-height:calc(var(--app-safe-top) + var(--native-bar-row))}html.is-native-app,html.is-native-app body{overscroll-behavior-y:auto;background:#002395;height:auto;min-height:100%;overflow:hidden auto}html.is-native-app body{padding-top:var(--native-bar-height)}html.is-native-app #root{min-height:calc(100dvh - var(--native-bar-height));background:radial-gradient(circle at 88% -10%,#00239514,#0000 32%),radial-gradient(circle at 8% 108%,#ed293912,#0000 30%),linear-gradient(#fdf8f3 0%,#f0f4ff 48%,#fff5f5 100%)}html.is-native-app .native-app-bar{color:#fff;padding-left:max(16px, calc(var(--safe-area-inset-left,0px) + 8px));padding-right:max(16px, calc(var(--safe-area-inset-right,0px) + 8px));z-index:1000;background:#002395;display:block;position:fixed;top:0;left:0;right:0}html.is-native-app .native-app-bar-status{height:var(--app-safe-top)}html.is-native-app .native-app-bar-row{height:var(--native-bar-row);align-items:center;gap:8px;min-width:0;padding-bottom:6px;display:flex}html.is-native-app .native-app-bar-back{color:#fff;background:0 0;flex:none;min-height:44px;padding:0 8px 0 0;font-size:32px;font-weight:400;line-height:1}html.is-native-app .native-app-bar-title{color:#fff;font-family:var(--serif);letter-spacing:.02em;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:20px;font-weight:700;overflow:hidden}html.is-native-app .session-page-bar{display:none}html.is-native-app .login-page,html.is-native-app .app-shell{min-height:calc(100dvh - var(--native-bar-height))}html.is-native-app .login-page{padding-top:24px}html.is-native-app .app-shell.role-student .topbar,html.is-native-app .app-shell.role-student .context-panel,html.is-native-app .app-shell.role-student .workspace-header,html.is-native-app .app-shell.role-student .tabbar{display:none}html.is-native-app .app-shell.role-student .workspace{padding:0;display:block}html.is-native-app .app-shell.role-student .web-app{box-shadow:none;min-height:calc(100dvh - var(--native-bar-height));border:0;border-radius:0;padding-top:0;overflow:visible}html.is-native-app .student-home-header{position:relative;top:auto}
