/* Shared modern visual system: home, student portal, administration and authentication. */
@font-face{font-family:SatKalHeebo;src:url('../fonts/fonts-Heebo-Regular.ttf') format('truetype');font-display:swap}
@font-face{font-family:SatKalArabic;src:url('../fonts/fonts-Arabic.ttf') format('truetype');font-display:swap}
:root{--ui-bg:#f3f7f6;--ui-surface:#fff;--ui-ink:#173c38;--ui-muted:#607772;--ui-line:#dce8e3;--ui-soft:#e9f4ef;--ui-accent:#08786f;--ui-coral:#b44f3d;--ui-shadow:0 8px 32px #163d3410;--ui-radius:22px;--ui-small:12px}
:root[data-theme=dark]{--ui-bg:#101e1c;--ui-surface:#19312c;--ui-ink:#edf9f4;--ui-muted:#acc6bd;--ui-line:#35564c;--ui-soft:#24463c;--ui-accent:#83dbc0;--ui-coral:#ffb3a1;--ui-shadow:0 10px 30px #0002;color-scheme:dark}
html{scroll-padding-top:24px}html body{font-family:SatKalHeebo,SatKalArabic,Arial,sans-serif!important;background:radial-gradient(ellipse at 90% 0%,#08786f0b,transparent 45%),var(--ui-bg)!important;color:var(--ui-ink)!important;line-height:1.7}
body [lang=ar]{font-family:SatKalArabic,SatKalHeebo,Arial,sans-serif}body h1,body h2,body h3{color:var(--ui-ink);text-wrap:balance;line-height:1.4}body h1{letter-spacing:-.7px}body p{line-height:1.85}body a{color:var(--ui-accent)}body button,body input,body select,body textarea{font:inherit}body button,body a,body input[type=submit]{-webkit-tap-highlight-color:transparent}body :focus-visible{outline:3px solid var(--ui-accent);outline-offset:4px}
/* The three shared page shells. */
html body .portal-header,html body .admin-header,html body.colorful-home #form1>header{width:calc(100% - 48px);max-width:1440px;margin:20px auto 0;padding:16px 24px;min-height:78px;height:auto;border:1px solid var(--ui-line);border-radius:20px;background:var(--ui-surface);box-shadow:0 4px 20px #163d3405;gap:16px}
html body .portal-brand,html body .brand{gap:12px;color:var(--ui-ink);font-size:25px;letter-spacing:-.6px}html body .portal-brand img,html body .brand img{width:44px;height:44px;object-fit:contain}html body .portal-brand small,html body .brand small{color:var(--ui-muted);letter-spacing:0}
html body .admin-account,html body .header-actions{gap:10px}html body .header-actions a,html body .admin-account>a{padding:9px 15px;border-radius:11px;font-size:13px;color:var(--ui-accent)}html body .header-actions .signup-link{background:#08786f!important;color:#fff!important;border-color:#08786f!important}html body #theme,html body #motion{border:1px solid var(--ui-line);background:var(--ui-soft);color:var(--ui-ink);border-radius:11px;min-height:40px;box-shadow:none}
html body .student-nav{max-width:1100px;margin:20px auto 0;padding:6px;border:1px solid var(--ui-line);border-radius:16px;background:var(--ui-surface);gap:6px;justify-content:center}html body .student-nav a{padding:9px 16px;border-radius:10px;font-size:14px;color:var(--ui-muted)}html body .student-nav a:hover,html body .student-nav a[aria-current=page]{background:var(--ui-soft);color:var(--ui-accent)}
html body .student-main{max-width:1160px;width:100%;padding:30px 30px 80px}html body .feature-hero{padding:24px 0 32px;text-align:start;border-bottom:1px solid var(--ui-line);margin-bottom:30px}html body .feature-hero h1{font-size:clamp(27px,3.3vw,40px);margin:8px 0 12px}html body .feature-hero p{margin:0;max-width:700px;color:var(--ui-muted)}html body .eyebrow,html body .portal-eyebrow{color:var(--ui-accent);font-size:12px;letter-spacing:.3px}
/* Cards, reading content and actionable surfaces. */
html body .feature-card,html body .content-card,html body .quiz-list-card,html body .topic-panel,html body .admin-quiz-card,html body .admin-action-card,html body .news-entry{background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:var(--ui-radius);box-shadow:var(--ui-shadow);padding:28px;min-width:0}html body .feature-grid{gap:20px}html body .content-card{line-height:1.9;margin:24px 0}html body .content-card h2:first-child,html body .feature-card h2:first-child{margin-top:0}html body .quiz-list-card{border-inline-start:3px solid var(--ui-accent);margin:18px 0}html body .quiz-list-card:hover,html body .admin-quiz-card:hover,html body .admin-action-card:hover{border-color:var(--ui-accent);box-shadow:0 12px 36px #08786f18}html body .resource-tag,html body .status-badge{background:var(--ui-soft);color:var(--ui-accent);font-size:12px;font-weight:600;padding:5px 12px}
html body .primary,html body input.primary,html body .auth-primary{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:46px;padding:11px 22px!important;background:#08786f!important;color:#fff!important;border:1px solid transparent!important;border-radius:12px!important;font-weight:600;text-decoration:none;box-shadow:0 4px 10px #08786f18;cursor:pointer}html body .primary:hover,html body .auth-primary:hover{background:#06675f!important}html body .outline-button,html body .preset-row button{border-radius:11px;background:var(--ui-surface);border-color:var(--ui-line);color:var(--ui-accent);min-height:42px;padding:9px 16px;box-shadow:none}html body .feature-card a.primary{margin:12px 0 0}
/* Forms and editing tools. */
html body .field{gap:7px;margin:20px 0}html body .field label{font-size:13px;color:var(--ui-ink);font-weight:600}html body .field input,html body .field textarea,html body .field select,html body .auth-input,html body .filter-tools input,html body .filter-tools select,html body .admin-table-search input{background:var(--ui-bg);border:1px solid var(--ui-line);border-radius:11px;color:var(--ui-ink);padding:12px 14px!important;min-height:48px;box-shadow:none}html body .field input:focus,html body .field textarea:focus,html body .field select:focus,html body .auth-input:focus{background:var(--ui-surface);border-color:var(--ui-accent);box-shadow:0 0 0 4px #08786f12}html body input[type=checkbox],html body input[type=radio]{accent-color:#08786f}html body .editor{max-width:900px;padding:28px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:22px;box-shadow:var(--ui-shadow)}html body .message:not(:empty){padding:14px 18px;border:1px solid var(--ui-line);border-inline-start:3px solid var(--ui-coral);background:var(--ui-surface);border-radius:12px;font-weight:500;line-height:1.8}html body .filter-tools{padding:18px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:16px}html body .filter-tools label{font-size:13px}html body .editor-links{padding:16px 0;border-top:1px solid var(--ui-line)}
/* Administration: navigation, headings and readable grids. */
html body.admin-page{--admin-nav:250px}html body.admin-page .admin-layout{max-width:1488px;gap:24px;padding:24px;margin:auto}html body.admin-page .admin-sidebar{background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:20px;padding:20px 14px;align-self:start}html body.admin-page .admin-sidebar-head{font-size:12px;color:var(--ui-muted);padding:8px 12px 16px}html body.admin-page .admin-nav{gap:6px;position:static}html body.admin-page .admin-nav a{border-radius:12px;padding:11px 12px;color:var(--ui-muted);font-size:13px}html body.admin-page .admin-nav a[aria-current=page]{background:var(--ui-soft);color:var(--ui-accent);box-shadow:inset -3px 0 var(--ui-accent)}html body.admin-page .admin-main{padding:6px 0 60px;min-width:0}html body.admin-page .admin-page-head{padding:8px 0 24px;border-bottom:1px solid var(--ui-line);margin-bottom:26px}html body.admin-page .admin-page-head h1{font-size:clamp(26px,3vw,36px);margin:4px 0}html body.admin-page .portal-icon{border-radius:15px;width:52px;height:52px}html body.admin-page .admin-quiz-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px}html body.admin-page .admin-quiz-card{padding:22px;gap:10px}html body.admin-page .admin-quiz-card strong{font-size:15px}html body.admin-page .admin-action-card{padding:24px}html body .table-wrap{background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:18px;box-shadow:var(--ui-shadow);margin:24px 0;overflow:auto}html body .data-grid{border:0;border-collapse:separate;border-spacing:0;width:100%;font-variant-numeric:tabular-nums}html body .data-grid th{padding:16px 18px;background:var(--ui-soft);color:var(--ui-muted);font-size:12px;border:0;border-bottom:1px solid var(--ui-line);white-space:nowrap}html body .data-grid td{padding:17px 18px;border:0;border-bottom:1px solid var(--ui-line);font-size:13px;line-height:1.7}html body .data-grid tr:last-child td{border-bottom:0}html body .data-grid tr:hover td{background:var(--ui-soft)}html body .data-grid td a{display:inline-block;padding:5px 10px;margin:2px;border-radius:8px;background:var(--ui-soft);font-weight:600}
/* Learning, reports and resources. */
html body .stat-grid article{background:var(--ui-surface);border:1px solid var(--ui-line);border-top:3px solid var(--ui-accent);box-shadow:var(--ui-shadow);border-radius:18px;text-align:start;padding:24px}html body .stat-grid strong{font-size:40px;color:var(--ui-accent)}html body .progress-chart{background:var(--ui-surface);border-color:var(--ui-line);box-shadow:var(--ui-shadow)}html body .reading-passage{border-radius:16px;background:var(--ui-soft);border:1px solid var(--ui-line);padding:24px}html body .question-text{font-size:22px;line-height:1.9}html body .answer-list li{background:var(--ui-surface);border:1px solid var(--ui-line);padding:18px 20px;border-radius:14px}html body .answer-list li:has(input:checked){border-color:var(--ui-accent);background:var(--ui-soft);box-shadow:0 0 0 1px var(--ui-accent)}html body .feedback{border-inline-start:3px solid var(--ui-accent);border-radius:14px}html body .quiz-toolbar{border:1px solid var(--ui-line);background:var(--ui-surface);border-radius:14px;padding:14px}html body .content-card summary{padding:7px 0;font-weight:600;color:var(--ui-ink)}html body .content-card details[open] summary{color:var(--ui-accent);margin-bottom:14px}
/* Home: keep the interactive category scene, refine its surrounding hierarchy. */
html body.colorful-home .hero{padding-top:44px}html body.colorful-home .hero #title{font-size:clamp(34px,4.2vw,58px);letter-spacing:-1.2px;line-height:1.3}html body.colorful-home .hero #title em[lang=ar]{font-size:.7em;line-height:1.7;margin-top:12px}html body.colorful-home .hero .intro{font-size:17px;color:var(--ui-muted)}html body.colorful-home .category{border-radius:18px;border-color:var(--ui-line);box-shadow:var(--ui-shadow)}html body.colorful-home .psycho-track{border-radius:24px;border:1px solid var(--ui-line);background:var(--ui-surface);box-shadow:var(--ui-shadow);padding:28px}html body.colorful-home .psycho-track nav a{border-radius:13px;margin-top:8px;border:1px solid var(--ui-line);padding:16px;background:var(--ui-surface)}html body.colorful-home .psycho-track nav a:hover{background:var(--ui-soft)}html body.colorful-home .section-head h2,html body.colorful-home .pricing h2{font-size:clamp(27px,3.2vw,40px)}html body.colorful-home .sat-package-copy{background:transparent;border:0;box-shadow:none;padding:0;font-size:17px;color:var(--ui-muted)}html body .package-card{padding:30px;text-align:start;border-radius:22px;display:flex;flex-direction:column;align-items:start}html body .package-card:nth-child(2){border:1px solid var(--ui-accent);box-shadow:0 12px 40px #08786f15}html body .package-price{font-size:44px;letter-spacing:-1px;color:var(--ui-accent);margin:18px 0 2px}html body .package-card a.primary{width:100%;margin-top:auto}html body.colorful-home .package-card a.primary{display:flex!important;background:#08786f!important;color:#fff!important;padding:12px!important;border-radius:12px;text-decoration:none}html body .package-card p{font-size:14px}html body .news-entry{padding-inline-start:60px}
/* Authentication uses the same type and surface system without losing its two-column layout. */
html body.auth-page{--a-bg:var(--ui-bg);--a-panel:var(--ui-surface);--a-ink:var(--ui-ink);--a-muted:var(--ui-muted);--a-line:var(--ui-line);--a-blue:var(--ui-accent);--a-soft:var(--ui-soft);--a-field:var(--ui-bg)}html body.auth-page .auth-header{max-width:1280px;padding:28px 40px}html body.auth-page .auth-layout{max-width:1220px;gap:64px;margin-top:28px}html body.auth-page .auth-card{padding:36px;border-radius:26px;border:1px solid var(--ui-line);box-shadow:0 20px 70px #173c3810;border-top:4px solid #08786f}html body.auth-page .auth-story h1{font-size:clamp(36px,4vw,54px);letter-spacing:-1px}html body.auth-page .auth-card h2{font-size:30px}html body.auth-page .form-kicker{display:inline-block;background:var(--ui-soft);padding:5px 11px;border-radius:8px}html body.auth-page .form-intro{font-size:13px}html body.auth-page .auth-input{padding-inline-end:14px!important}html body.auth-page .password-field .auth-input{padding-right:72px!important}html body.auth-page .auth-secondary{background:var(--ui-bg);border-radius:12px}html body.auth-page .auth-primary{display:flex!important;width:100%}html body.auth-page .signup-progress{padding:16px;background:var(--ui-bg);border:1px solid var(--ui-line);border-radius:14px}html body.auth-page .auth-plan{padding:18px;border-radius:14px}html body.auth-page .auth-footer{padding-bottom:45px}html body.auth-page .auth-message:not(:empty){border-radius:12px}
html body .site-footer,html body.colorful-home #form1>footer{background:var(--ui-surface);color:var(--ui-muted);border-top:1px solid var(--ui-line);padding:30px 24px;font-size:12px}html body .site-footer a{display:inline-block;margin:6px 12px;color:var(--ui-muted)}
@media(min-width:1001px){html body.admin-page .admin-sidebar{position:sticky;top:20px;max-height:calc(100vh - 40px);overflow:auto}}
@media(max-width:1000px){html body.admin-page .admin-layout{grid-template-columns:210px minmax(0,1fr);gap:18px}html body.admin-page .admin-quiz-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html body.auth-page .auth-layout{gap:28px}html body.auth-page .auth-card{padding:28px}}
@media(max-width:800px){html body .portal-header,html body .admin-header,html body.colorful-home #form1>header{width:calc(100% - 24px);margin-top:12px;padding:14px 16px;border-radius:16px;flex-wrap:wrap}html body .portal-brand,html body .brand{font-size:22px}html body .student-nav{margin:14px 12px 0;justify-content:start;flex-wrap:nowrap;overflow-x:auto;border-radius:12px}html body .student-nav a{white-space:nowrap;flex-shrink:0;padding:8px 12px}html body .student-main{padding:22px 16px 100px}html body.admin-page .admin-layout{display:block;padding:18px 12px}html body.admin-page .admin-sidebar{position:static;margin-bottom:20px}html body.admin-page .admin-main{padding:0 4px 70px}html body.admin-page .admin-menu-toggle{display:inline-block}html body .feature-card,html body .content-card,html body .quiz-list-card,html body .editor{padding:22px;border-radius:18px}html body .feature-hero{padding:16px 0 24px}html body .feature-grid{gap:16px}html body .question-text{font-size:20px}html body.colorful-home .hero{padding-top:30px}html body.colorful-home .hero #title{font-size:clamp(30px,7.5vw,44px)}html body.colorful-home .psycho-track{padding:22px}html body .site-footer{padding-bottom:90px}}
@media(max-width:760px){html body.auth-page .auth-layout{margin-top:12px;padding:0 16px}html body.auth-page .auth-header{padding:20px}html body.auth-page .auth-card{padding:26px 22px;border-radius:20px}html body.auth-page .auth-card h2{font-size:26px}html body.auth-page .auth-footer{padding-bottom:80px}}
@media(max-width:480px){html body .header-actions{width:100%;display:flex;flex-wrap:wrap;justify-content:start}html body .header-actions a,html body .header-actions button{font-size:12px}html body.admin-page .admin-quiz-grid{grid-template-columns:1fr}html body .editor{padding:18px}html body .stat-grid article{padding:18px}html body .package-card{padding:24px}html body .filter-tools{padding:14px}html body .auth-header{gap:10px}html body.auth-page .name-grid{grid-template-columns:1fr}html body.auth-page .plan-cost>span{font-size:22px}}
@media(prefers-reduced-motion:reduce){html body *{scroll-behavior:auto!important}}
@media print{html body{background:#fff!important;color:#000!important}html body .content-card,html body .feature-card,html body .table-wrap{box-shadow:none;break-inside:avoid}html body .admin-sidebar{display:none!important}html body.admin-page .admin-layout{display:block}}
/* Keep utility controls away from desktop navigation and page headings. */
@media(min-width:901px){html:root body .ya-launcher{top:auto!important;bottom:90px!important;left:16px;right:auto;width:42px;height:42px}html:root body .yb-launcher{top:auto!important;bottom:144px!important;left:16px;right:auto;width:42px;height:42px}html body .kh-launcher{left:16px;right:auto}}

/* Preserve the complete book-and-spark logo silhouette. */
html body.auth-page .logo-medallion img,html body.auth-page .auth-brand img{object-fit:contain;border-radius:0}html body.auth-page .logo-medallion{padding:10px}
