:root{
  --green:#116149;--green2:#17815f;--mint:#eaf7f1;--ink:#18312a;--muted:#6c7b76;
  --line:#dce9e3;--paper:#fff;--soft:#f5faf7;--shadow:0 14px 38px rgba(17,97,73,.12);
}
*{box-sizing:border-box}
html{font-family:"Segoe UI",Tahoma,Arial,sans-serif;background:#f7fbf9;color:var(--ink);text-rendering:optimizeLegibility}
body{margin:0;min-height:100vh;background:linear-gradient(180deg,#f7fbf9 0,#eef8f3 100%);overflow-x:hidden}
button,input,select{font:inherit}
button{cursor:pointer}button:disabled{opacity:.58;cursor:wait;transform:none!important}
.hidden{display:none!important}
.bg-orb{position:fixed;border-radius:50%;filter:blur(1px);opacity:.22;z-index:0;pointer-events:none}
.orb-a{width:300px;height:300px;background:#73d7af;top:-120px;left:-100px}
.orb-b{width:240px;height:240px;background:#f0cf72;bottom:-90px;right:-80px}
.shell{position:relative;z-index:1;width:min(960px,100%);margin:auto;min-height:100vh;padding:22px}
.screen{animation:fade .22s ease}
@keyframes fade{from{opacity:.2;transform:translateY(5px)}to{opacity:1;transform:none}}
.brand{display:flex;align-items:center;gap:14px}
.hero-brand{margin:8vh auto 28px;max-width:520px}
.brand-mark{width:70px;height:70px;border-radius:23px;background:linear-gradient(145deg,var(--green),var(--green2));color:#fff;display:grid;place-items:center;font-size:25px;font-weight:800;box-shadow:var(--shadow)}
.brand h1{margin:0;font-size:32px}.brand p{margin:6px 0;color:var(--muted)}
.auth-card,.panel{background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow)}
.auth-card{max-width:520px;margin:auto;padding:22px}
.tabs{display:flex;gap:6px;background:var(--soft);padding:5px;border-radius:15px;margin-bottom:20px}
.tab{flex:1;border:0;background:transparent;padding:11px 8px;border-radius:11px;color:var(--muted);font-weight:700}
.tab.active{background:#fff;color:var(--green);box-shadow:0 4px 12px rgba(0,0,0,.06)}
.tab-panel{display:none}.tab-panel.active{display:grid;gap:14px}
label{font-size:14px;font-weight:700;color:#40544d;display:grid;gap:7px}
input,select{width:100%;border:1px solid #cdded6;background:#fff;color:var(--ink);padding:13px 14px;border-radius:14px;outline:none}
input:focus,select:focus{border-color:#55a889;box-shadow:0 0 0 3px rgba(85,168,137,.14)}
.primary,.soft,.ghost,.circle,.add-card{border:0;border-radius:14px;font-weight:800}
.primary{background:linear-gradient(135deg,var(--green),var(--green2));color:#fff;padding:13px 18px}
.soft{background:var(--mint);color:var(--green);padding:12px 16px}
.ghost{background:#eef5f1;color:#466158;padding:9px 13px}
.wide{width:100%;margin-top:4px}.msg{min-height:20px;margin:12px 2px 0;font-size:14px;color:#a33}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px;padding:4px 0}
.topbar strong{display:block;font-size:20px}.topbar small{display:block;color:var(--muted);margin-top:4px}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}
.child-card{border:1px solid var(--line);background:#fff;border-radius:20px;padding:18px;text-align:right;box-shadow:0 8px 24px rgba(17,97,73,.07)}
.child-card:hover{border-color:#92cbb4}.child-card h3{margin:8px 0 4px}.child-card p{margin:0;color:var(--muted)}
.add-card{width:100%;margin-top:14px;padding:16px;border:1px dashed #8fc9b1;background:rgba(255,255,255,.65);color:var(--green)}
.choice-title{margin:0 0 8px;font-size:22px}.choice-note{margin:0 0 18px;color:var(--muted);line-height:1.7}
.track-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}
.track-choice{border:1px solid var(--line);background:#fff;border-radius:20px;padding:22px 14px;color:var(--ink);display:grid;gap:10px;place-items:center;font-weight:800;font-size:16px}
.track-choice span{font-size:34px}.track-choice:hover{border-color:#7fc2a6;background:var(--soft)}
.panel{padding:18px;margin-top:16px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}
.app-topbar{position:sticky;top:0;z-index:8;background:rgba(247,251,249,.92);backdrop-filter:blur(12px);padding:12px 0}
.student-head{display:flex;align-items:center;gap:10px;flex:1}
.avatar{width:44px;height:44px;border-radius:15px;background:linear-gradient(145deg,#f3d36e,#ffd977);display:grid;place-items:center;font-weight:900;color:#5e4914}
.circle{width:42px;height:42px;background:#fff;border:1px solid var(--line);color:var(--green);font-size:20px}
.welcome{padding:18px 4px}.welcome span{color:var(--muted)}.welcome h2{font-size:28px;margin:8px 0}
.home-tools{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:0 0 18px}
.tool-card{border:1px solid var(--line);background:linear-gradient(180deg,#fff,#f8fcfa);border-radius:18px;padding:14px;text-align:right;display:grid;gap:4px;color:var(--ink);box-shadow:0 6px 20px rgba(17,97,73,.05)}
.tool-card span{font-size:24px}.tool-card b{font-size:14px}.tool-card small{font-size:11px;color:var(--muted);line-height:1.5}
.tool-card:hover{border-color:#8bc7ae;transform:translateY(-1px)}
.subjects{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.subject-card{border:1px solid var(--line);background:#fff;border-radius:22px;padding:18px 14px;min-height:122px;text-align:right;box-shadow:0 8px 24px rgba(17,97,73,.06);transition:.16s}
.subject-card:hover{transform:translateY(-2px);border-color:#8dc7af}
.subject-icon{font-size:30px;display:block;margin-bottom:12px}
.subject-card strong{display:block;font-size:17px}.subject-card small{display:block;color:var(--muted);margin-top:5px}
.section-title{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:12px 0 18px}
.section-title small{color:var(--green);font-weight:800}.section-title h2{margin:3px 0;font-size:27px}
.search{max-width:250px;background:#fff}
.lessons{display:grid;gap:10px}
.unit-head{font-size:13px;color:var(--green);font-weight:800;margin:15px 5px 4px}
.lesson-row{width:100%;border:1px solid var(--line);background:#fff;border-radius:17px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;text-align:right}
.lesson-row:hover{border-color:#86c4aa}.lesson-row b{font-size:16px}.lesson-meta{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:12px}
.dot{width:7px;height:7px;border-radius:50%;background:#4db384}
.lesson-hero{background:linear-gradient(145deg,#0f5d46,#198764);color:white;border-radius:26px;padding:24px;box-shadow:var(--shadow)}
.lesson-hero small{opacity:.8}.lesson-hero h2{font-size:28px;margin:7px 0 20px}.actions{display:flex;flex-wrap:wrap;gap:9px}
.lesson-hero .primary{background:#fff;color:var(--green)}.lesson-hero .soft{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.25)}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head h3{margin:0}
.badge{background:#edf8f3;color:var(--green);border-radius:999px;padding:5px 9px;font-size:12px;font-weight:800}
.page-gallery{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:12px 1px 3px}
.page-shot{position:relative;flex:0 0 min(82vw,520px);scroll-snap-align:center;background:#f7f7f7;border:1px solid var(--line);border-radius:18px;overflow:hidden;min-height:240px;display:grid;place-items:center}.page-label{position:absolute;top:10px;right:10px;z-index:2;background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900;color:#35584c;box-shadow:0 2px 8px #0001}
.page-shot img{width:100%;height:auto;display:block;background:white}
.page-shot .loading{padding:60px;color:var(--muted)}
.study-text{white-space:pre-wrap;line-height:2;font-size:17px;color:#263d35;margin-top:12px;direction:rtl;text-align:right;unicode-bidi:plaintext}.is-loading .study-text{opacity:.72}
.quick-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;padding-top:13px;border-top:1px solid #edf2ef}.quick-action{border:1px solid var(--line);background:#f8fbf9;color:#35584c;border-radius:999px;padding:8px 12px;font-weight:800;font-size:13px}.quick-action:hover{background:var(--mint);border-color:#9bceb9;color:var(--green)}.chat-log{display:grid;gap:9px;margin:18px 0 85px}
.bubble{max-width:85%;padding:12px 15px;border-radius:17px;line-height:1.65;white-space:pre-wrap}
.bubble.user{margin-right:auto;background:#e8f3ff;color:#224868}
.bubble.bot{margin-left:auto;background:#fff;border:1px solid var(--line)}
.chatbar{position:sticky;bottom:10px;display:flex;gap:8px;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);padding:8px;border:1px solid var(--line);border-radius:20px;box-shadow:0 12px 35px rgba(17,97,73,.16)}
.chatbar input{border:0;background:transparent;text-align:right;direction:rtl}.chatbar input:focus{box-shadow:none}.chatbar button{width:48px;flex:0 0 48px;border:0;border-radius:15px;background:var(--green);color:#fff;font-size:22px}
.chatbar button.mic{background:#e8f6f0;color:var(--green)}
.chatbar button.mic.listening{background:#ffe8e8;color:#a62f2f;animation:pulse 1s infinite}
@keyframes pulse{50%{transform:scale(.92);opacity:.75}}
.quiz-item{border-top:1px solid var(--line);padding:14px 0}.quiz-item:first-child{border-top:0}.quiz-q{font-weight:800;margin-bottom:10px}
.quiz-options{display:flex;flex-wrap:wrap;gap:8px}.quiz-options button{border:1px solid var(--line);background:#fff;border-radius:12px;padding:9px 12px}
.quiz-options button.correct{background:#e5f7ed;border-color:#78c496}.quiz-options button.wrong{background:#fff0f0;border-color:#db8d8d}
.modal{position:fixed;inset:0;z-index:40;background:rgba(15,34,28,.46);display:grid;place-items:center;padding:16px;backdrop-filter:blur(5px)}
.modal-card{width:min(760px,100%);max-height:min(88vh,850px);overflow:auto;background:#f9fcfa;border:1px solid var(--line);border-radius:24px;box-shadow:0 28px 70px rgba(0,0,0,.22);padding:18px}
.modal-head{position:sticky;top:-18px;z-index:3;background:rgba(249,252,250,.96);padding:12px 0 10px;backdrop-filter:blur(10px)}
.tool-body{display:grid;gap:12px}.tool-section{background:#fff;border:1px solid var(--line);border-radius:18px;padding:15px}
.tool-section h4{margin:0 0 10px}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.metric{background:var(--soft);border-radius:14px;padding:12px;text-align:center}.metric b{display:block;font-size:20px;color:var(--green)}.metric small{color:var(--muted)}
.progress-bar{height:9px;border-radius:999px;background:#e7efeb;overflow:hidden;margin-top:7px}.progress-bar i{display:block;height:100%;background:var(--green);border-radius:inherit}
.homework-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.homework-q,.plan-task,.mission-card,.game-q{border:1px solid var(--line);border-radius:15px;padding:12px;background:#fff}
.homework-q b,.plan-task b{display:block;margin-bottom:7px}.answer-row{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.answer-row button{border:1px solid var(--line);background:#fff;border-radius:11px;padding:8px 10px}.answer-row button.selected{background:var(--mint);border-color:#62aa8c;color:var(--green);box-shadow:0 0 0 2px rgba(17,97,73,.08)}
.result-ok{color:#137247;font-weight:800}.result-bad{color:#a13b3b;font-weight:800}.weak-list{display:grid;gap:7px}.weak-row{display:flex;justify-content:space-between;gap:10px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px}
.file-input{border:1px dashed #8fc9b1;background:#f7fcfa;padding:12px}.mini-note{font-size:12px;color:var(--muted);line-height:1.7}
.toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);z-index:50;background:#17352b;color:#fff;padding:11px 17px;border-radius:14px;box-shadow:var(--shadow)}
@media(max-width:700px){
  .shell{padding:14px}.hero-brand{margin-top:5vh}.brand h1{font-size:27px}
  .home-tools{grid-template-columns:1fr 1fr}.subjects{grid-template-columns:1fr 1fr}.subject-card{min-height:108px}
  .metric-grid{grid-template-columns:1fr 1fr}.homework-actions{grid-template-columns:1fr}.modal{padding:8px}.modal-card{max-height:94vh;padding:14px}
  .grid2{grid-template-columns:1fr}.section-title{align-items:stretch;flex-direction:column}.search{max-width:none}
  .lesson-hero{padding:20px}.lesson-hero h2{font-size:24px}.actions button{flex:1}
}
@media(max-width:390px){.tabs{font-size:12px}.subjects{gap:9px}.subject-card{padding:14px 10px}.shell{padding:10px}}

/* Guided learning system */
.guidance-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;background:linear-gradient(135deg,#0d5a43,#178864);color:#fff;border-radius:28px;padding:24px;margin:0 0 16px;box-shadow:0 18px 44px rgba(17,97,73,.2)}
.guidance-copy small{display:block;opacity:.78;font-weight:800;margin-bottom:7px}.guidance-copy h2{font-size:27px;margin:0 0 8px}.guidance-copy p{margin:0;line-height:1.8;max-width:650px;color:rgba(255,255,255,.86)}
.guidance-stats{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.guidance-stat{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:7px 11px;font-size:12px;font-weight:800}.guidance-stat b{margin-left:4px}
.guidance-actions{display:grid;gap:8px;min-width:205px}.guidance-actions .primary{background:#fff;color:var(--green)}.guidance-actions .soft{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.24)}.guidance-actions .ghost{background:rgba(255,255,255,.09);color:#fff;border:1px solid rgba(255,255,255,.17)}
.guidance-main{font-size:16px;padding:15px 17px}
.browse-head{display:flex;justify-content:space-between;align-items:end;gap:14px;margin:23px 2px 12px}.browse-head small{color:var(--green);font-weight:900}.browse-head h3{margin:3px 0;font-size:20px}.browse-head>span{font-size:12px;color:var(--muted)}
.parent-guidance-bar{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:-5px 4px 16px;color:var(--muted);font-size:11px}.parent-guidance-bar span{font-weight:800}.parent-guidance-bar button{padding:7px 10px;font-size:11px}
.guided-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:10px 0 18px}.guided-head small{color:var(--green);font-weight:900}.guided-head h2{font-size:29px;margin:4px 0}.guided-head p{margin:0;color:var(--muted);line-height:1.7}.guided-progress{background:#fff;border:1px solid var(--line);border-radius:20px;min-width:130px;text-align:center;padding:14px;box-shadow:0 7px 22px rgba(17,97,73,.06)}.guided-progress b{display:block;font-size:22px;color:var(--green)}.guided-progress span{font-size:11px;color:var(--muted)}
.guided-list{display:grid;gap:10px}.guided-task{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:20px;padding:14px;box-shadow:0 7px 22px rgba(17,97,73,.05)}.guided-task.current{border-color:#65b594;box-shadow:0 0 0 3px rgba(101,181,148,.12)}.guided-task.done{opacity:.68}.guided-task-index{width:48px;height:48px;border-radius:16px;background:var(--mint);display:grid;place-items:center;color:var(--green);font-weight:900;font-size:18px}.guided-task.done .guided-task-index{background:#edf4f0;color:#698078}.guided-task-copy b{display:block;font-size:15px;margin-bottom:5px}.guided-task-copy small{color:var(--muted);line-height:1.5}.guided-task .soft{white-space:nowrap}
.guided-current{background:#fff;border:1px solid #b8ddcd;border-radius:24px;padding:18px;margin-bottom:16px;box-shadow:0 12px 32px rgba(17,97,73,.1)}.guided-current h3{margin:0 0 7px}.guided-current p{line-height:1.8;color:#40564e}.guided-current-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.guided-current-actions button{flex:1;min-width:140px}.guided-secondary{display:flex;gap:8px;justify-content:center;margin-top:16px}
.school-capture{display:grid;gap:12px}.capture-intro{background:var(--soft);border:1px solid var(--line);border-radius:16px;padding:13px;line-height:1.8}.capture-box{min-height:130px;resize:vertical;border:1px solid #cdded6;background:#fff;color:var(--ink);padding:13px 14px;border-radius:14px;outline:none;font:inherit;line-height:1.8}.capture-actions{display:flex;gap:8px}.capture-actions button{flex:1}.period-editor{border:1px solid var(--line);background:#fff;border-radius:17px;padding:13px;display:grid;gap:10px}.period-editor-head{display:flex;justify-content:space-between;align-items:center}.period-editor-head b{color:var(--green)}.period-editor .grid3{display:grid;grid-template-columns:1.2fr .7fr .7fr;gap:8px}.period-editor textarea{min-height:70px;resize:vertical;border:1px solid #cdded6;border-radius:12px;padding:10px;font:inherit;line-height:1.6}.capture-note{font-size:12px;color:var(--muted)}
.week-grid{display:grid;gap:10px}.week-day{border:1px solid var(--line);background:#fff;border-radius:17px;padding:13px}.week-day-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.week-day-head b{font-size:16px}.week-day-fields{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}.week-day-fields label{font-size:11px}.week-day-fields input,.week-day-fields select{padding:9px 10px}.period-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-top:9px}.period-grid label{font-size:10px}.period-grid select{padding:8px 7px;font-size:11px}
.thread-list{display:grid;gap:8px}.thread-card{border:1px solid var(--line);background:#fff;border-radius:15px;padding:12px}.thread-card b{display:block;margin-bottom:5px}.thread-card small{color:var(--muted)}.status-chip{display:inline-block;border-radius:999px;background:var(--mint);color:var(--green);font-weight:800;font-size:11px;padding:4px 8px;margin-top:7px}
.guided-quiz{display:grid;gap:12px}.guided-q{border-top:1px solid var(--line);padding-top:12px}.guided-q:first-child{border-top:0;padding-top:0}.guided-q b{display:block;margin-bottom:9px}.guided-q .answer-row button{flex:1;min-width:120px}.guided-result{margin-top:8px;font-weight:800}
@media(max-width:700px){
  .guidance-hero{grid-template-columns:1fr;padding:19px}.guidance-copy h2{font-size:23px}.guidance-actions{min-width:0;grid-template-columns:1fr 1fr}.guidance-main{grid-column:1/-1}.browse-head{align-items:flex-start;flex-direction:column;gap:4px}
  .guided-head{align-items:stretch;flex-direction:column}.guided-progress{display:flex;align-items:center;justify-content:space-between;text-align:right}.guided-task{grid-template-columns:44px minmax(0,1fr)}.guided-task>button{grid-column:1/-1;width:100%}.guided-task-index{width:42px;height:42px;border-radius:14px}.week-day-fields{grid-template-columns:1fr 1fr}.period-grid{grid-template-columns:1fr 1fr}.period-editor .grid3{grid-template-columns:1fr 1fr}.period-editor .grid3 label:first-child{grid-column:1/-1}
}
/* Strict teacher flow */
.school-wizard-head{display:flex;justify-content:space-between;align-items:center;margin:14px 0 10px;padding:10px 12px;border-radius:14px;background:var(--soft)}
.school-step{display:grid;gap:13px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px}
.school-step-count{font-size:12px;font-weight:900;color:var(--green)}
.fixed-subject{display:flex;align-items:center;gap:10px;padding:14px;border-radius:15px;background:var(--mint);font-size:18px}
.binary-question{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:11px 12px;border:1px solid var(--line);border-radius:14px;background:#fbfdfc}
.binary-question b{margin-left:auto}.binary-question label{display:flex;grid-template-columns:none;align-items:center;gap:5px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:7px 11px}.binary-question input{width:auto;margin:0}
.pe-homework-box,.pe-memory-box{display:grid;gap:10px;border-right:4px solid var(--green);padding:10px 12px;background:var(--soft);border-radius:12px}
.school-wizard-nav{display:flex;justify-content:space-between;gap:10px;margin-top:14px}.school-wizard-nav .primary{margin-right:auto;min-width:130px}
.pe-voice{justify-self:start;font-size:12px;padding:8px 11px}
.proof-rule,.guided-lock-note{margin-top:12px;padding:12px 14px;border-radius:14px;background:#fff8df;border:1px solid #ead28c;color:#69551a;font-weight:700;line-height:1.7}
@media(max-width:700px){.school-step{padding:13px}.binary-question b{width:100%;margin:0}.school-wizard-nav button{flex:1}.fixed-subject{font-size:17px}}

.alert-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#b42318;color:#fff;font-size:11px;margin-inline-start:4px}.top-actions{display:flex;gap:8px;align-items:center}.parent-alert-list{display:grid;gap:10px}.parent-alert{border:1px solid var(--line);border-radius:16px;padding:12px;background:#fff}.parent-alert>div{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.parent-alert small{display:block;color:var(--muted);font-size:11px}.parent-alert p{margin:8px 0 0;line-height:1.7}.parent-alert.warning,.parent-alert.important{border-color:#e4c56b;background:#fffaf0}.parent-alert.success{border-color:#a8d7c3;background:#f4fbf7}

/* Intelligent teacher flow polish */
@keyframes teacherStepIn{from{opacity:0;transform:translateY(8px) scale(.992)}to{opacity:1;transform:none}}
@keyframes teacherSuccess{0%{transform:scale(.985)}55%{transform:scale(1.01)}100%{transform:none}}
.guided-current:not(.hidden),.school-step:not(.hidden),.parent-alert{animation:teacherStepIn .24s ease-out both}
.guided-current{transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.guided-current:focus-within{border-color:#79bda0;box-shadow:0 15px 38px rgba(17,97,73,.14)}
.result-ok{animation:teacherSuccess .28s ease-out both}
.school-wizard-head{position:relative;overflow:hidden}
.school-wizard-head:after{content:"";position:absolute;inset-inline-start:0;bottom:0;height:3px;width:calc(var(--school-step-progress,16.666%) * 1);background:currentColor;opacity:.18;transition:width .25s ease}
@media(prefers-reduced-motion:reduce){.guided-current:not(.hidden),.school-step:not(.hidden),.parent-alert,.result-ok{animation:none}.guided-current,.school-wizard-head:after{transition:none}}

.day-policy-pill{display:inline-block;padding:6px 10px;border-radius:999px;background:#eef8f4;color:#12694f;font-size:11px;font-weight:900}.study-policy-note{display:flex;justify-content:space-between;gap:8px;align-items:center;margin:10px 0;padding:10px 12px;border:1px solid var(--line);border-radius:13px;background:#fbfefd}.study-policy-note small{color:#6f827a}.study-policy-blocks{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}.study-policy-blocks span{font-size:11px;background:#f4f8f6;border-radius:999px;padding:6px 9px;color:#567067}

.parent-report-list{display:grid;gap:12px}.parent-report-card{border:1px solid var(--line);border-radius:16px;padding:14px;background:#fff}.parent-report-card header{display:flex;justify-content:space-between;gap:10px}.parent-report-card header small,.parent-report-card header b{display:block}.parent-report-card header small{color:#70847b;margin-top:4px}.parent-report-card header>span{background:#eef8f4;color:#0f6e53;padding:6px 9px;border-radius:999px;height:max-content;font-size:11px;font-weight:900}.parent-report-card p{line-height:1.75}.report-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.baseline-head{text-align:center}.baseline-head>span{display:inline-block;background:#eef8f4;color:#0c6a50;padding:6px 10px;border-radius:999px;font-weight:900}.baseline-head>b{display:block;margin-top:10px}.baseline-question h3{font-size:22px;line-height:1.7}.baseline-question>small{color:#0d7658;font-weight:900}@media(max-width:680px){.report-metrics{grid-template-columns:1fr 1fr}}

.subject-card.term-index-missing{opacity:.72;border-style:dashed}.subject-card.term-index-missing small{color:#9b6b18;font-weight:800}

/* 1.1.1 mobile / testing polish */
button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button:disabled{opacity:.58;cursor:not-allowed}
.baseline-progress{height:9px;background:#e5efe9;border-radius:999px;overflow:hidden;margin:12px auto 4px;max-width:420px}.baseline-progress i{display:block;height:100%;background:var(--green);border-radius:inherit;transition:width .3s ease}.result-wait{color:var(--muted);font-weight:800}
.ui-loading-card,.ui-empty-card,.ui-error-card{grid-column:1/-1;width:100%;min-height:88px;border-radius:17px;padding:18px;display:grid;place-items:center;text-align:center;font:inherit;font-weight:800}.ui-loading-card{border:1px dashed var(--line);background:#fbfefd;color:var(--muted)}.ui-loading-card:before{content:"";width:22px;height:22px;border:3px solid #dce9e4;border-top-color:var(--green);border-radius:50%;animation:uiSpin .75s linear infinite;margin-bottom:8px}.ui-empty-card{border:1px solid var(--line);background:#fff;color:var(--muted)}.ui-error-card{border:1px solid #ecd0c8;background:#fff7f5;color:#8b4338;cursor:pointer}
@keyframes uiSpin{to{transform:rotate(360deg)}}
@media(max-width:700px){
  body{padding-bottom:env(safe-area-inset-bottom)}
  .top-actions{flex-wrap:wrap;justify-content:flex-end}
  .top-actions button{min-height:42px}
  .chatbar{bottom:calc(8px + env(safe-area-inset-bottom));padding-bottom:max(8px,env(safe-area-inset-bottom))}
  .modal{padding:8px 8px max(8px,env(safe-area-inset-bottom))}
  .guidance-actions{grid-template-columns:1fr}
  .guided-current-actions button,.answer-row button,.school-wizard-nav button{min-height:46px}
  .baseline-question h3{font-size:20px}
  .baseline-question .answer-row{display:grid;grid-template-columns:1fr}
  .baseline-question .answer-row button{width:100%;text-align:center;padding:12px}
}
@media(max-width:390px){.home-tools{grid-template-columns:1fr 1fr}.top-actions{gap:6px}.top-actions button{padding-inline:9px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.baseline-progress i,.ui-loading-card:before{transition:none;animation:none}}

/* Public Taleb 360 landing */
.shell{width:min(1180px,100%)}
#authScreen,#childrenScreen,#courseScreen,#appScreen{width:min(960px,100%);margin-inline:auto}
.public-page{padding-bottom:26px}
.public-nav{position:sticky;top:10px;z-index:25;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 12px;margin:0 0 28px;background:rgba(255,255,255,.88);border:1px solid rgba(220,233,227,.9);border-radius:20px;box-shadow:0 12px 34px rgba(17,97,73,.08);backdrop-filter:blur(18px)}
.public-brand{display:flex;align-items:center;gap:10px}.public-brand b,.public-brand small{display:block}.public-brand b{font-size:16px}.public-brand small{font-size:10px;color:var(--muted);margin-top:2px}.public-logo{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,var(--green),var(--green2));color:#fff;font-weight:900;box-shadow:0 8px 20px rgba(17,97,73,.18)}.public-logo.small{width:36px;height:36px;border-radius:12px;font-size:12px}
.public-links{display:flex;align-items:center;gap:22px}.public-links a{color:#4f675e;font-weight:800;font-size:13px}.public-links a:hover{color:var(--green)}.public-auth{display:flex;gap:8px}.public-auth button{white-space:nowrap}
.public-hero{min-height:620px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(390px,.95fr);gap:48px;align-items:center;padding:46px 18px 62px}.public-kicker,.public-section-head>span,.public-final-cta>div>span{display:inline-block;color:var(--green);font-size:12px;font-weight:900;background:#e9f7f1;border:1px solid #d2eadf;border-radius:999px;padding:7px 11px}.public-hero h1{font-size:clamp(38px,5vw,64px);line-height:1.12;margin:18px 0;color:#18372e;letter-spacing:-.04em}.public-hero h1 em{font-style:normal;color:var(--green)}.public-hero-copy>p{font-size:18px;line-height:1.95;color:#566d65;max-width:690px;margin:0}.public-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin:26px 0 18px}.public-cta{min-height:50px;padding-inline:23px;font-size:15px}.public-trust{display:flex;gap:7px;flex-wrap:wrap}.public-trust span{font-size:11px;color:#61776f;background:#fff;border:1px solid var(--line);border-radius:999px;padding:7px 10px}
.public-demo-card{position:relative;background:linear-gradient(160deg,#fff,#f4fbf7);border:1px solid #d5e9e0;border-radius:30px;padding:20px;box-shadow:0 30px 70px rgba(17,97,73,.15)}.public-demo-card:before{content:"";position:absolute;inset:-18px 45px auto -22px;height:130px;background:#9ce1c2;filter:blur(55px);opacity:.32;z-index:-1}.demo-top{display:flex;align-items:center;gap:11px;padding-bottom:16px;border-bottom:1px solid #e8f1ed}.demo-top b,.demo-top small{display:block}.demo-top small{color:var(--muted);margin-top:4px;font-size:11px}.demo-avatar{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:#f7db7a;color:#5d4917;font-weight:900}.demo-step{display:grid;grid-template-columns:38px 1fr auto;gap:11px;align-items:center;margin-top:11px;padding:12px;border:1px solid #e0ece7;border-radius:16px;background:#fff}.demo-step.current{border-color:#8dc9b1;box-shadow:0 0 0 3px rgba(115,190,158,.09)}.demo-step i{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#edf7f3;color:var(--green);font-style:normal;font-weight:900}.demo-step b,.demo-step small{display:block}.demo-step b{font-size:13px}.demo-step small{font-size:10px;color:var(--muted);margin-top:3px}.demo-step>span{font-size:10px;font-weight:900;color:var(--green);background:#eaf7f1;border-radius:999px;padding:5px 7px}.demo-memory{margin-top:13px;border-radius:15px;padding:12px;background:#173d32;color:#eaf8f2;font-size:11px;line-height:1.75}
.public-section{padding:72px 18px}.public-section-head{max-width:780px;margin-bottom:27px}.public-section-head h2{font-size:clamp(28px,3.8vw,43px);line-height:1.25;margin:12px 0;color:#18372e}.public-section-head p{font-size:16px;line-height:1.85;color:#687d76;margin:0}.why-section{border-top:1px solid #e1ece7}.public-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.public-feature-grid article{background:#fff;border:1px solid var(--line);border-radius:21px;padding:20px;box-shadow:0 10px 30px rgba(17,97,73,.045)}.public-feature-grid article>span{font-size:30px}.public-feature-grid h3{font-size:17px;margin:15px 0 8px}.public-feature-grid p{font-size:13px;color:#697d75;line-height:1.75;margin:0}
.public-how{background:#173d32;border-radius:32px;color:#fff;padding-inline:30px;margin:20px 0}.public-how .public-section-head>span{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.12);color:#c8f4df}.public-how .public-section-head h2{color:#fff}.how-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.how-grid>div{padding:18px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(255,255,255,.055)}.how-grid>div>b{font-size:28px;color:#76d3ae}.how-grid h3{font-size:16px;margin:12px 0 7px}.how-grid p{font-size:12px;line-height:1.75;color:#c9d9d3;margin:0}
.article-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.article-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px;min-height:220px;display:flex;flex-direction:column}.article-tag{align-self:flex-start;padding:5px 8px;border-radius:999px;background:#edf8f3;color:var(--green);font-size:10px;font-weight:900}.article-card h3{font-size:21px;line-height:1.55;margin:13px 0 8px}.article-card p{color:#6b7d76;line-height:1.8;font-size:13px;margin:0 0 15px}.article-card button{margin-top:auto;align-self:flex-start;border:0;background:transparent;color:var(--green);font-weight:900;padding:5px 0}.public-article-reader{max-width:680px;margin:auto;background:#fff;border:1px solid var(--line);border-radius:20px;padding:20px}.public-article-reader h2{font-size:30px;line-height:1.45;margin:12px 0 20px}.public-article-reader p{font-size:16px;line-height:2;color:#425a52;margin:0 0 17px}.article-reader-cta{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:24px;padding:15px;border-radius:16px;background:#f1faf6}.article-reader-cta b{font-size:13px}
.faq-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.faq-grid details{background:#fff;border:1px solid var(--line);border-radius:17px;padding:15px 17px}.faq-grid summary{cursor:pointer;font-weight:900;line-height:1.6}.faq-grid p{color:#657971;line-height:1.85;font-size:13px;margin:12px 0 2px}.public-final-cta{margin:44px 0 32px;padding:30px;border-radius:28px;background:linear-gradient(135deg,#e9f8f1,#fff4ce);border:1px solid #dfe9dc;display:flex;align-items:center;justify-content:space-between;gap:22px}.public-final-cta h2{font-size:30px;margin:10px 0 7px}.public-final-cta p{margin:0;color:#63776f}.public-final-cta>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.public-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 5px 6px;border-top:1px solid var(--line);color:#6e8079}.public-footer p{font-size:12px}.public-back{display:block;margin:24px auto 0;max-width:520px;width:100%;text-align:right}.auth-screen-wrap .hero-brand{margin-top:4vh}
@media(max-width:920px){.public-links{display:none}.public-hero{grid-template-columns:1fr;gap:28px;padding-top:28px}.public-demo-card{max-width:680px}.public-feature-grid,.how-grid{grid-template-columns:1fr 1fr}.public-final-cta{align-items:flex-start;flex-direction:column}}
@media(max-width:650px){.shell{padding:10px}.public-nav{top:6px;border-radius:16px;margin-bottom:10px}.public-brand small{display:none}.public-auth .soft{display:none}.public-auth button{padding:9px 11px;font-size:11px}.public-hero{min-height:auto;padding:34px 5px 46px}.public-hero h1{font-size:38px}.public-hero-copy>p{font-size:15px}.public-hero-actions{display:grid;grid-template-columns:1fr 1fr}.public-hero-actions button{padding-inline:10px}.public-demo-card{padding:13px;border-radius:22px}.demo-step{grid-template-columns:34px 1fr}.demo-step>span{grid-column:2}.public-section{padding:52px 5px}.public-feature-grid,.how-grid,.article-grid,.faq-grid{grid-template-columns:1fr}.public-how{border-radius:24px;padding-inline:15px}.public-section-head h2{font-size:29px}.article-card{min-height:auto}.public-final-cta{margin-inline:0;padding:21px}.public-final-cta h2{font-size:24px}.public-final-cta>div:last-child{width:100%;display:grid;grid-template-columns:1fr}.public-footer{align-items:flex-start;flex-direction:column}.public-footer p{margin-top:0}.public-article-reader{padding:15px}.public-article-reader h2{font-size:24px}.public-article-reader p{font-size:15px}.article-reader-cta{align-items:stretch;flex-direction:column}.article-reader-cta button{width:100%}}

/* child-friendly homework capture */
.homework-quick{margin-bottom:13px}.homework-quick>small{display:block;color:var(--muted);font-weight:800;margin-bottom:8px}.homework-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.hw-quick-choice{border:1px solid var(--line);background:#fff;color:#35584c;border-radius:13px;padding:10px 7px;min-height:44px;font-size:12px;font-weight:900;line-height:1.4}.hw-quick-choice:hover,.hw-quick-choice.selected{background:var(--mint);border-color:#68b393;color:var(--green);box-shadow:0 0 0 2px rgba(17,97,73,.07)}.homework-detail-label small{font-size:10px;color:var(--muted);font-weight:500}.homework-detail-label textarea{min-height:70px}
@media(max-width:600px){.homework-quick-grid{grid-template-columns:1fr 1fr}.hw-quick-choice{min-height:48px;font-size:13px}}

/* Child-friendly chat: each teacher reply can be read aloud */
.bubble-text{white-space:pre-wrap;unicode-bidi:plaintext}.bubble-actions{display:flex;justify-content:flex-start;margin-top:9px;padding-top:8px;border-top:1px solid #edf2ef}.bubble-read{border:0;background:#eef8f4;color:#0f7058;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:900;cursor:pointer}.bubble-read:hover{background:#e1f3ec}.bubble-read:disabled{opacity:.55;cursor:wait}
.homework-path{display:grid;gap:6px;margin:14px 0;padding:12px 13px;border:1px solid #d9ebe4;background:#f5fbf8;border-radius:14px}.homework-path b{color:#0f644f;margin-bottom:2px}.homework-path span{display:block;color:#526c62;font-size:12px;line-height:1.55;padding-right:2px}

/* Smart entry assessment */
.baseline-welcome{display:grid;gap:14px;text-align:center;padding:4px}.baseline-orbit{width:74px;height:74px;margin:0 auto;border-radius:50%;display:grid;place-items:center;font-size:34px;background:#eef8f4;border:1px solid #d8ebe4;box-shadow:0 10px 30px rgba(20,90,70,.10)}.baseline-welcome h2{margin:0;color:#193f34;font-size:24px}.baseline-welcome>p{margin:0;color:#587267;line-height:1.8}.baseline-scope-card{display:grid;gap:6px;text-align:right;padding:13px 14px;border:1px solid #dcebe5;background:#f8fcfa;border-radius:16px}.baseline-scope-card b{color:#0f6b53}.baseline-scope-card small{line-height:1.7;color:#647b72}.baseline-subject-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:7px}.baseline-subject-chips span{padding:7px 10px;border-radius:999px;background:#eef7ff;border:1px solid #d7e9f7;color:#315b76;font-size:12px;font-weight:800}.baseline-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.baseline-facts span{display:grid;gap:2px;padding:10px 6px;border-radius:14px;background:#fff;border:1px solid #e6eeea;font-size:11px;color:#698078}.baseline-facts b{font-size:18px;color:#1c5d4b}.homework-path .done{color:#0c7659;font-weight:800}.homework-path .active{background:#fff;border:1px solid #cce5db;border-radius:9px;padding:6px 8px;color:#164f40;font-weight:900}@media(max-width:600px){.baseline-facts{grid-template-columns:1fr}.baseline-welcome h2{font-size:21px}}
.student-hub{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0 20px}.hub-card{border:1px solid #dce9e4;background:#fff;border-radius:20px;padding:17px;text-align:right;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;box-shadow:0 10px 28px rgba(26,78,62,.055);color:#173a32}.hub-card:hover{transform:translateY(-1px);border-color:#b8dace}.hub-card.required{border-color:#b7d9ca;background:linear-gradient(135deg,#f5fcf9,#fff)}.hub-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:#eff8f4;font-size:24px}.hub-card small,.hub-card b,.hub-card p{display:block}.hub-card small{font-size:10px;color:#7b8e87}.hub-card b{font-size:17px;margin:4px 0}.hub-card p{font-size:11px;line-height:1.55;color:#637970;margin:0}.hub-card em{font-style:normal;font-size:10px;font-weight:900;color:#0f7058;background:#eaf7f2;padding:6px 8px;border-radius:999px}.hub-work{border-color:#cfe6dc}.hub-work .hub-icon{background:#eaf8f2}.hub-books .hub-icon{background:#eef5ff}.baseline-read{margin:8px 0 11px}@media(max-width:720px){.student-hub{grid-template-columns:1fr}.hub-card{min-height:105px}.hub-card b{font-size:18px}}
