:root {
  --ink: #102a43;
  --muted: #62748a;
  --line: #dce5ec;
  --surface: #ffffff;
  --canvas: #f4f7f8;
  --navy: #0c2d3f;
  --navy-2: #123f55;
  --teal: #0f8f83;
  --teal-dark: #08766d;
  --teal-soft: #dff5f1;
  --gold: #eeb55f;
  --gold-soft: #fff2db;
  --rose: #c85b69;
  --rose-soft: #fde9ec;
  --blue: #4d7fbc;
  --blue-soft: #e9f1fb;
  --shadow: 0 16px 45px rgba(16,42,67,.08);
  --radius: 20px;
}
* { box-sizing: border-box; }
html { font-family: "Noto Sans Arabic", "Manrope", sans-serif; color: var(--ink); background: var(--canvas); }
html[dir="ltr"] { font-family: "Manrope", "Noto Sans Arabic", sans-serif; }
body { margin: 0; min-height: 100vh; }
button,input,textarea,select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.skip-link { position: fixed; top: -60px; inset-inline-start: 20px; z-index: 100; background: white; color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; }
.login-story { position: relative; overflow: hidden; color: white; padding: 48px 7vw; background: linear-gradient(145deg, #092b3c, #0b4555); display: flex; flex-direction: column; justify-content: space-between; }
.login-story::before { content:""; position:absolute; width:620px; height:620px; border:1px solid rgba(255,255,255,.12); border-radius:50%; inset-inline-end:-240px; top:-90px; box-shadow: 0 0 0 90px rgba(255,255,255,.025),0 0 0 180px rgba(255,255,255,.02); }
.login-story::after { content:""; position:absolute; width:260px; height:260px; border-radius:50%; inset-inline-end:9%; bottom:13%; background: radial-gradient(circle at 35% 35%, rgba(104,217,199,.3), rgba(11,69,85,0) 65%); }
.brand { display:flex; align-items:center; gap:11px; font-family:"Manrope",sans-serif; font-size:20px; font-weight:700; letter-spacing:-.4px; }
.brand b { color: var(--teal); }
.brand-light b { color:#6fdbca; }
.brand-logo-wordmark { display:block; width:195px; max-width:100%; height:auto; object-fit:contain; }
.brand-logo-on-dark { width:255px; padding:7px 13px; border-radius:15px; background:rgba(255,255,255,.98); box-shadow:0 14px 35px rgba(0,0,0,.16); }
.brand-mark { display:grid; place-items:center; width:40px; height:40px; border-radius:12px; background:var(--teal); color:white; font-size:14px; font-weight:800; letter-spacing:-1px; box-shadow:0 7px 18px rgba(15,143,131,.25); }
.story-copy { position:relative; z-index:1; max-width:650px; }
.eyebrow { color:var(--teal); font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; margin:0 0 12px; }
.login-story .eyebrow { color:#73daca; }
.story-copy h1 { font-size:clamp(43px,5vw,76px); line-height:1.18; letter-spacing:-.04em; margin:0 0 24px; }
.story-copy h1 em { color:#77d7c8; font-style:normal; }
.story-copy > p:last-child { max-width:540px; font-size:18px; line-height:1.9; color:#cfe0e5; }
.loop { position:relative; z-index:1; display:flex; direction:ltr; align-items:center; gap:13px; color:#b9d0d6; font-family:"Manrope",sans-serif; font-size:12px; flex-wrap:wrap; }
.loop span { padding:8px 12px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.1); border-radius:999px; }
.loop i { color:#5dc4b6; font-style:normal; }
.login-panel { position:relative; display:grid; place-items:center; padding:60px 8vw; background:#fbfcfc; }
.login-controls { position:absolute; top:28px; inset-inline-end:40px; display:flex; align-items:center; gap:12px; }
.login-card { width:min(100%,470px); }
.mobile-brand { display:none; margin-bottom:42px; }
.login-card h2 { margin:0 0 10px; font-size:30px; letter-spacing:-.025em; }
.muted { color:var(--muted); line-height:1.7; }
.role-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:30px 0 26px; }
.role-choice { border:1px solid var(--line); background:white; padding:16px 8px; border-radius:14px; color:var(--muted); display:flex; flex-direction:column; align-items:center; gap:8px; transition:.2s; }
.role-choice:hover,.role-choice.selected { border-color:var(--teal); color:var(--teal-dark); background:var(--teal-soft); box-shadow:0 0 0 2px rgba(15,143,131,.08); }
.role-icon { font-size:22px; }
label { display:block; font-size:13px; font-weight:700; color:#334e68; margin:16px 0; }
input,textarea,select { width:100%; margin-top:7px; border:1px solid var(--line); border-radius:12px; background:white; padding:13px 14px; color:var(--ink); outline:none; transition:.2s; }
input:focus,textarea:focus,select:focus { border-color:var(--teal); box-shadow:0 0 0 3px rgba(15,143,131,.12); }
.primary-button,.secondary-button { border:0; border-radius:12px; padding:13px 18px; font-weight:800; display:inline-flex; align-items:center; justify-content:center; gap:10px; }
.primary-button { width:100%; color:white; background:var(--teal); margin-top:8px; box-shadow:0 9px 18px rgba(15,143,131,.2); }
.primary-button:hover { background:var(--teal-dark); }
.secondary-button { color:var(--teal-dark); background:var(--teal-soft); }
.install-button { margin:0; padding:9px 13px; white-space:nowrap; box-shadow:none; }
.install-button-compact { font-size:11px; }
.text-button,.icon-button,.logout-button { border:0; background:transparent; color:var(--muted); }
.lang-button { color:var(--teal-dark); font-weight:800; }
.privacy-note { display:flex; align-items:flex-start; gap:9px; color:#7b8fa1; font-size:11px; line-height:1.6; margin-top:22px; }
.privacy-note > span:first-child { color:var(--teal); }
.app-shell { min-height:100vh; display:grid; grid-template-columns:250px 1fr; }
html[dir="ltr"] .app-shell { grid-template-columns:250px 1fr; }
.sidebar { position:sticky; top:0; height:100vh; background:var(--surface); border-inline-end:1px solid var(--line); padding:26px 18px; display:flex; flex-direction:column; z-index:20; }
.sidebar .brand { padding:0 8px 26px; }
#nav { display:flex; flex-direction:column; gap:5px; }
.nav-item { border:0; background:transparent; color:#62748a; padding:11px 13px; border-radius:11px; display:flex; align-items:center; gap:12px; font-size:14px; text-align:start; }
.nav-item span:first-child { width:24px; text-align:center; font-size:17px; }
.nav-item:hover,.nav-item.active { color:var(--teal-dark); background:var(--teal-soft); font-weight:700; }
.teacher-principle { margin-top:auto; background:linear-gradient(145deg,#effaf8,#f8fcfb); border:1px solid #d8efeb; border-radius:15px; padding:13px; display:flex; gap:9px; color:var(--teal-dark); font-size:11px; line-height:1.7; }
.teacher-principle p { margin:0; }
.logout-button { display:flex; align-items:center; gap:10px; margin-top:13px; padding:11px; text-align:start; }
.app-main { min-width:0; }
.topbar { height:82px; background:rgba(255,255,255,.92); border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; padding:0 34px; position:sticky; top:0; z-index:15; backdrop-filter:blur(12px); }
.school-name { margin:0; font-size:14px; font-weight:800; }
.pilot-status { margin:3px 0 0; font-size:10px; color:var(--muted); display:flex; align-items:center; gap:6px; }
.pilot-status > span:first-child { width:7px; height:7px; border-radius:50%; background:#2aae77; box-shadow:0 0 0 3px #dff6eb; }
.top-actions { display:flex; align-items:center; gap:12px; }
.icon-button { width:38px; height:38px; border-radius:10px; background:#f3f6f7; position:relative; }
.notification-dot { position:absolute; width:6px; height:6px; border-radius:50%; background:var(--rose); top:8px; inset-inline-end:8px; }
.connectivity { display:inline-flex; align-items:center; gap:6px; color:var(--teal-dark); background:var(--teal-soft); border-radius:999px; padding:6px 10px; font-size:10px; font-weight:800; }
.connectivity i { width:6px; height:6px; background:var(--teal); border-radius:50%; }
.connectivity.offline { color:#8a641d; background:var(--gold-soft); }
.connectivity.offline i { background:var(--gold); }
.avatar { width:38px; height:38px; border-radius:50%; display:grid; place-items:center; background:var(--navy); color:white; font-weight:800; }
.menu-button { display:none; }
main { padding:34px; max-width:1500px; margin:auto; }
.page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:27px; }
.page-head h1 { margin:0 0 5px; font-size:29px; letter-spacing:-.025em; }
.page-head p { margin:0; color:var(--muted); font-size:13px; }
.date-pill { padding:9px 13px; border:1px solid var(--line); background:white; border-radius:10px; color:var(--muted); font-size:11px; }
.hero-card { background:linear-gradient(120deg,var(--navy),#155467); color:white; border-radius:24px; padding:28px 31px; box-shadow:var(--shadow); display:grid; grid-template-columns:1fr auto; gap:25px; align-items:center; margin-bottom:22px; position:relative; overflow:hidden; }
.hero-card::after { content:""; position:absolute; width:220px; height:220px; border:1px solid rgba(255,255,255,.08); border-radius:50%; inset-inline-end:-60px; top:-90px; box-shadow:0 0 0 55px rgba(255,255,255,.025); }
.hero-card h2 { font-size:25px; margin:0 0 7px; }
.hero-card p { color:#cae0e5; margin:0; font-size:13px; }
.hero-progress { display:flex; align-items:center; gap:15px; position:relative; z-index:1; }
.ring { --value:72; width:80px; height:80px; border-radius:50%; display:grid; place-items:center; background:conic-gradient(#71d6c8 calc(var(--value)*1%),rgba(255,255,255,.14) 0); }
.ring::before { content:""; width:62px; height:62px; border-radius:50%; background:var(--navy-2); position:absolute; }
.ring b { position:relative; font-family:"Manrope"; }
.grid { display:grid; gap:18px; }
.stats-grid { grid-template-columns:repeat(5,1fr); margin-bottom:22px; }
.student-stats { grid-template-columns:repeat(3,1fr); }
.two-col { grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr); }
.card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:21px; box-shadow:0 7px 22px rgba(16,42,67,.035); }
.stat-card { padding:18px; }
.stat-top { display:flex; align-items:center; justify-content:space-between; color:var(--muted); font-size:11px; }
.stat-icon { width:31px; height:31px; border-radius:9px; display:grid; place-items:center; background:var(--teal-soft); color:var(--teal); }
.stat-card strong { display:block; font-family:"Manrope"; font-size:26px; margin:10px 0 2px; }
.stat-card small { color:var(--muted); font-size:10px; }
.stat-card.alert .stat-icon { background:var(--rose-soft); color:var(--rose); }
.card-head { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:16px; }
.card-head h2,.card-head h3 { margin:0; font-size:16px; }
.card-head p { margin:4px 0 0; color:var(--muted); font-size:11px; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; font-size:12px; }
th { text-align:start; color:#7b8fa1; font-size:10px; text-transform:uppercase; letter-spacing:.04em; padding:11px 10px; border-bottom:1px solid var(--line); }
td { padding:13px 10px; border-bottom:1px solid #edf1f3; vertical-align:middle; }
tr:last-child td { border-bottom:0; }
.student-cell { display:flex; align-items:center; gap:9px; min-width:150px; }
.mini-avatar { width:32px; height:32px; border-radius:10px; background:var(--blue-soft); color:var(--blue); display:grid; place-items:center; font-weight:800; }
.student-cell b { display:block; }
.student-cell small { color:var(--muted); }
.status { display:inline-flex; align-items:center; gap:6px; padding:5px 9px; border-radius:999px; font-size:10px; font-weight:700; white-space:nowrap; }
.status::before { content:""; width:5px; height:5px; border-radius:50%; background:currentColor; }
.status.on_track { background:var(--teal-soft); color:var(--teal-dark); }
.status.review { background:var(--gold-soft); color:#9e681a; }
.status.support { background:var(--rose-soft); color:#a13e4b; }
.progress-line { height:6px; min-width:90px; background:#e9eef1; border-radius:99px; overflow:hidden; }
.progress-line i { display:block; height:100%; border-radius:99px; background:var(--teal); }
.progress-value { display:flex; align-items:center; gap:8px; font-family:"Manrope"; }
.link-button { border:0; background:transparent; color:var(--teal-dark); font-weight:800; font-size:11px; }
.alert-list { display:flex; flex-direction:column; gap:10px; }
.alert-item { padding:13px; border:1px solid #f1d6d9; background:#fff9fa; border-radius:13px; }
.alert-item .alert-head { display:flex; justify-content:space-between; gap:8px; }
.alert-item b { font-size:12px; }
.alert-item p { color:var(--muted); font-size:10px; margin:6px 0 9px; line-height:1.6; }
.empty { text-align:center; padding:34px 15px; color:var(--muted); }
.empty span { display:block; font-size:30px; color:var(--teal); }
.activity-card { display:flex; align-items:center; gap:16px; }
.activity-icon { width:52px; height:52px; flex:0 0 52px; border-radius:15px; display:grid; place-items:center; font-size:23px; color:var(--teal); background:var(--teal-soft); }
.activity-card h3 { margin:0 0 4px; font-size:15px; }
.activity-card p { margin:0; color:var(--muted); font-size:11px; }
.activity-card .secondary-button { margin-inline-start:auto; white-space:nowrap; }
.subject-grid { grid-template-columns:repeat(4,1fr); }
.subject-card { position:relative; min-height:160px; overflow:hidden; display:flex; flex-direction:column; align-items:flex-start; }
.subject-card::after { content:""; position:absolute; width:100px; height:100px; border-radius:50%; inset-inline-end:-28px; top:-32px; background:var(--subject-soft); }
.subject-symbol { width:43px; height:43px; border-radius:13px; display:grid; place-items:center; color:var(--subject-color); background:var(--subject-soft); font:800 19px "Manrope"; position:relative; z-index:1; }
.subject-card h3 { margin:18px 0 3px; }
.subject-card p { margin:0; color:var(--muted); font-size:10px; }
.subject-card button { margin-top:auto; padding:8px 0 0; }
.today-list,.assignment-list { display:flex; flex-direction:column; gap:9px; }
.today-item,.assignment-item { display:grid; grid-template-columns:64px 1fr auto; gap:13px; align-items:center; border:1px solid #e6ecef; border-radius:14px; padding:12px; }
.today-time { font:700 12px "Manrope"; color:var(--teal-dark); }
.today-item h3,.assignment-item h3 { margin:0; font-size:12px; }
.today-item p,.assignment-item p { margin:3px 0 0; color:var(--muted); font-size:10px; }
.assignment-bucket { padding:5px 8px; border-radius:999px; background:var(--blue-soft); color:var(--blue); font-size:9px; font-weight:800; }
.assignment-bucket.late { background:var(--rose-soft); color:var(--rose); }
.workspace { display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:18px; }
.workspace-banner { grid-column:1/-1; min-height:150px; padding:25px 28px; border-radius:24px; color:white; background:linear-gradient(125deg,var(--workspace-color),color-mix(in srgb,var(--workspace-color),#102a43 38%)); position:relative; overflow:hidden; }
.workspace-banner::after { content:""; position:absolute; width:190px; height:190px; border:1px solid rgba(255,255,255,.18); border-radius:50%; inset-inline-end:-30px; top:-80px; box-shadow:0 0 0 45px rgba(255,255,255,.04); }
.workspace-banner .eyebrow { color:#d8fff8; }
.workspace-banner h1 { margin:0 0 6px; font-size:28px; }
.workspace-banner p { margin:0; color:rgba(255,255,255,.8); }
.tool-tabs { display:flex; gap:7px; flex-wrap:wrap; margin-bottom:17px; }
.tool-tab { border:1px solid var(--line); background:white; border-radius:10px; padding:8px 11px; color:var(--muted); font-size:10px; }
.tool-tab.active { border-color:var(--workspace-color); color:var(--workspace-color); background:color-mix(in srgb,var(--workspace-color),white 90%); font-weight:800; }
.workspace-editor { min-height:230px; font-size:14px; line-height:1.9; }
.outline-editor { min-height:100px; }
.workspace-tool-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:16px 0; }
.tool-canvas { display:block; width:100%; height:180px; border:1px solid var(--line); border-radius:14px; background:#fff; touch-action:none; }
.scratch-canvas { cursor:crosshair; }
.field-label { margin:16px 0 7px; color:#334e68; font-size:13px; font-weight:700; }
.workspace-actions { display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin-top:14px; }
.workspace-actions .primary-button { width:auto; margin:0; }
.output-console { min-height:82px; direction:ltr; text-align:left; padding:14px; border-radius:12px; color:#d8e8ed; background:#102a43; white-space:pre-wrap; }
.version-list { display:grid; gap:8px; margin-top:14px; }
.version-list article { display:grid; grid-template-columns:42px 150px 1fr; gap:9px; padding:10px; border:1px solid var(--line); border-radius:11px; align-items:center; font-size:10px; }
.version-list code { direction:ltr; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.equation-pad { display:grid; grid-template-columns:repeat(5,1fr); gap:7px; margin:12px 0; }
.equation-pad button { border:1px solid var(--line); background:#f8fafb; border-radius:10px; padding:9px; font:700 14px "Manrope"; }
.assistant-card { position:sticky; top:104px; align-self:start; border-top:4px solid var(--workspace-color); }
.assistant-avatar { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; color:white; background:var(--workspace-color); font-size:18px; }
.assistant-message { background:#f6f9fa; border-radius:12px; padding:13px; color:#52687a; font-size:11px; line-height:1.75; margin:14px 0; }
.assistant-message p { margin:0 0 8px; color:var(--ink); }
.assistant-actions { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-bottom:13px; }
.assistant-actions .secondary-button { padding:8px 6px; font-size:9px; }
.assistant-privacy { display:block; border-top:1px solid var(--line); padding-top:11px; line-height:1.6; }
.goal-list,.recommendation-list,.notification-list,.ai-observation-list { display:grid; gap:11px; }
.goal-item { display:grid; grid-template-columns:1fr minmax(120px,35%); gap:18px; align-items:center; padding:16px; border:1px solid var(--line); border-radius:14px; }
.goal-item h3,.notification-item h3,.ai-observation h3 { margin:4px 0; }
.goal-item p,.notification-item p,.recommendation-item p,.ai-observation p { margin:4px 0; color:var(--muted); font-size:11px; line-height:1.65; }
.goal-score b { display:block; margin-bottom:8px; font:800 18px "Manrope"; }
.recommendation-item,.notification-item { display:grid; grid-template-columns:auto 1fr auto; gap:12px; align-items:center; padding:14px; border:1px solid var(--line); border-radius:14px; }
.notification-item.read { opacity:.65; }
.notification-symbol { width:38px; height:38px; border-radius:12px; display:grid; place-items:center; color:var(--blue); background:var(--blue-soft); font-weight:800; }
.notification-item small { color:var(--muted); font-size:9px; }
.ai-observation { padding:16px; border:1px solid var(--line); border-inline-start:4px solid var(--blue); border-radius:14px; }
.lab-table input { padding:8px; margin:0; min-width:75px; }
.mini-chart { height:150px; display:flex; align-items:flex-end; gap:14px; padding:15px; background:#f7f9fa; border-radius:14px; margin:15px 0; }
.mini-chart i { flex:1; min-width:20px; border-radius:7px 7px 2px 2px; background:var(--workspace-color); opacity:.8; }
.code-editor { direction:ltr; text-align:left; font:13px/1.7 Consolas,monospace; color:#d8e8ed; background:#102a43; min-height:220px; }
.test-result { margin-top:12px; padding:11px; border-radius:11px; background:var(--teal-soft); color:var(--teal-dark); font-size:11px; }
.sync-hero { display:grid; grid-template-columns:1fr auto; gap:20px; align-items:center; background:linear-gradient(135deg,#f0faf8,#fff); }
.sync-orb { width:90px; height:90px; border-radius:50%; display:grid; place-items:center; background:var(--teal-soft); color:var(--teal); font-size:31px; }
.sync-status-list { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.sync-status-list div { background:#f7f9fa; border-radius:13px; padding:14px; }
.sync-status-list span { display:block; font-size:10px; color:var(--muted); }
.sync-status-list b { display:block; margin-top:5px; font-size:13px; }
.data-columns { grid-template-columns:1fr 1fr; }
.data-list { list-style:none; padding:0; margin:0; }
.data-list li { padding:8px 0; border-bottom:1px solid #edf1f3; font-size:11px; }
.data-list li::before { content:"✓"; color:var(--teal); margin-inline-end:8px; font-weight:800; }
.data-list.no li::before { content:"—"; color:var(--rose); }
.skill-list { display:flex; flex-direction:column; gap:14px; }
.skill-row { display:grid; grid-template-columns:minmax(120px,1fr) 2fr 45px; align-items:center; gap:12px; font-size:12px; }
.skill-row b { font-family:"Manrope"; text-align:end; }
.question-shell { max-width:860px; margin:15px auto; }
.question-top { display:flex; justify-content:space-between; color:var(--muted); font-size:11px; margin-bottom:10px; }
.question-card { padding:32px; }
.question-card .skill-tag { display:inline-block; padding:6px 10px; border-radius:999px; background:var(--blue-soft); color:var(--blue); font-size:10px; font-weight:800; }
.question-card h2 { font-size:26px; margin:25px 0 28px; }
.answer-row { display:flex; gap:10px; }
.answer-row input { margin:0; font-family:"Manrope"; font-size:18px; }
.answer-row .primary-button { width:auto; margin:0; min-width:130px; }
.feedback { margin-top:18px; padding:15px; border-radius:13px; background:var(--gold-soft); color:#79501c; line-height:1.7; font-size:13px; }
.feedback.correct { background:var(--teal-soft); color:var(--teal-dark); }
.support-steps { display:flex; gap:5px; margin-top:23px; }
.support-steps i { height:5px; flex:1; border-radius:5px; background:#e6ecef; }
.support-steps i.done { background:var(--teal); }
.profile-layout { display:grid; grid-template-columns:1fr 310px; gap:18px; }
.profile-summary { background:linear-gradient(145deg,var(--navy),#16495a); color:white; }
.profile-summary h2 { margin:0; }
.profile-summary p { color:#c9dce1; }
.timeline { border-inline-start:2px solid var(--line); margin-inline-start:8px; padding-inline-start:18px; }
.timeline-item { position:relative; padding-bottom:17px; }
.timeline-item::before { content:""; position:absolute; width:9px; height:9px; border-radius:50%; background:var(--teal); inset-inline-start:-24px; top:5px; box-shadow:0 0 0 4px var(--teal-soft); }
.timeline-item b { display:block; font-size:11px; }
.timeline-item small { color:var(--muted); }
.note-form textarea { min-height:90px; resize:vertical; }
.note-form .primary-button { width:auto; }
.metric-feature { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.metric-feature > div { background:#f7f9fa; border-radius:13px; padding:16px; }
.metric-feature strong { display:block; font-family:"Manrope"; font-size:24px; }
.metric-feature small { color:var(--muted); }
.audit-list { display:flex; flex-direction:column; }
.audit-row { display:flex; align-items:center; gap:12px; padding:11px 0; border-bottom:1px solid #edf1f3; }
.audit-row:last-child { border:0; }
.audit-dot { width:8px; height:8px; border-radius:50%; background:var(--teal); box-shadow:0 0 0 4px var(--teal-soft); }
.audit-row p { margin:0; font-size:11px; }
.audit-row small { color:var(--muted); }
.report { max-width:850px; margin:auto; }
.report-title { text-align:center; border-bottom:2px solid var(--ink); padding-bottom:18px; margin-bottom:20px; }
.report-title h1 { margin:0; }
.report-meta { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:20px; }
.report-meta div { background:#f7f9fa; border-radius:12px; padding:13px; }
.report-meta span { display:block; color:var(--muted); font-size:10px; }
.toast { position:fixed; z-index:100; bottom:25px; inset-inline-end:25px; background:var(--ink); color:white; padding:12px 17px; border-radius:12px; box-shadow:var(--shadow); transform:translateY(30px); opacity:0; pointer-events:none; transition:.25s; }
.toast.show { transform:none; opacity:1; }
.onboarding-overlay { position:fixed; inset:0; z-index:90; background:rgba(7,34,48,.68); backdrop-filter:blur(8px); display:grid; place-items:center; padding:22px; }
.onboarding-card { width:min(760px,100%); max-height:90vh; overflow:auto; background:white; border-radius:24px; padding:27px; box-shadow:0 30px 90px rgba(7,34,48,.3); }
.install-dialog { width:min(520px,100%); text-align:start; }
.install-dialog-head { display:flex; align-items:center; gap:15px; margin-bottom:16px; }
.install-dialog-head img { width:68px; height:68px; border-radius:16px; border:1px solid var(--line); }
.install-dialog-head h2 { margin:0 0 4px; }
.install-steps { margin:20px 0; padding-inline-start:24px; color:var(--muted); font-size:13px; line-height:2; }
.install-actions { display:flex; justify-content:flex-end; gap:10px; }
.install-actions .primary-button { width:auto; min-width:130px; }
.onboarding-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:20px 0; }
.onboarding-steps div { padding:10px; border-radius:10px; background:#f5f8f9; color:var(--muted); font-size:10px; }
.onboarding-steps b { display:block; color:var(--teal-dark); font-size:13px; }
.consent-box { display:grid; grid-template-columns:1fr 1fr; gap:10px; background:#f7f9fa; padding:14px; border-radius:14px; margin:16px 0; }
.consent-box p { margin:0; font-size:11px; line-height:1.7; }
.loading { min-height:50vh; display:grid; place-items:center; align-content:center; gap:12px; color:var(--muted); }
.loading span { width:34px; height:34px; border:3px solid var(--line); border-top-color:var(--teal); border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
@media (max-width:1050px) { .stats-grid { grid-template-columns:repeat(3,1fr); } .two-col { grid-template-columns:1fr; } .subject-grid { grid-template-columns:repeat(2,1fr); } .workspace { grid-template-columns:1fr; } .assistant-card { position:static; } .workspace-tool-grid { grid-template-columns:1fr; } }
@media (max-width:800px) {
  .login-shell { grid-template-columns:1fr; }
  .login-story { display:none; }
  .login-panel { min-height:100vh; padding:70px 25px 35px; }
  .login-controls { top:20px; inset-inline-end:22px; }
  .mobile-brand { display:flex; }
  .app-shell { display:block; }
  .sidebar { position:fixed; inset-block:0; inset-inline-start:0; width:250px; transform:translateX(110%); box-shadow:var(--shadow); transition:.25s; }
  html[dir="ltr"] .sidebar { transform:translateX(-110%); }
  .sidebar.open { transform:none !important; }
  .menu-button { display:block; }
  .topbar { padding:0 16px; }
  .topbar > div:nth-child(2) { display:none; }
  .install-button-compact { width:38px; height:38px; padding:0; }
  .install-button-compact span:last-child { display:none; }
  main { padding:22px 16px; }
  .stats-grid,.student-stats { grid-template-columns:repeat(2,1fr); }
  .profile-layout { grid-template-columns:1fr; }
  .hero-card { grid-template-columns:1fr; }
  .data-columns,.sync-status-list { grid-template-columns:1fr; }
  .onboarding-steps,.consent-box { grid-template-columns:1fr; }
}
@media (max-width:520px) {
  .login-controls .install-button { padding:8px 10px; font-size:11px; }
  .top-actions { gap:7px; }
  .top-actions .connectivity { display:none; }
  .role-grid { gap:6px; }
  .role-choice { padding:13px 4px; }
  .page-head { align-items:flex-start; flex-direction:column; }
  .stats-grid,.student-stats { grid-template-columns:1fr; }
  .activity-card { align-items:flex-start; flex-wrap:wrap; }
  .activity-card .secondary-button { margin-inline-start:68px; }
  .question-card { padding:22px; }
  .answer-row { flex-direction:column; }
  .answer-row .primary-button { width:100%; }
  .report-meta { grid-template-columns:1fr; }
  .subject-grid { grid-template-columns:1fr; }
  .today-item,.assignment-item { grid-template-columns:54px 1fr; }
  .today-item > *:last-child,.assignment-item > *:last-child { grid-column:2; }
}
@media print { .sidebar,.topbar,.page-head .secondary-button { display:none !important; } .app-shell { display:block; } main { padding:0; } .card { box-shadow:none; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; transition-duration:.01ms !important; } }
