/* Design «هـ · حلوى القطن» (cotton candy): the girly sister of «د», on top of its tokens (tokens.css). A dreamy
   lavender page with soft clouds, a pastel lavender → pink → baby-blue header bar sprinkled with tiny stars, white
   cards with lilac borders, pastel stat cards (lavender · pink · peach · baby blue), a pink → lilac pill for the
   chosen tab, pink → violet → blue buttons and a gold / silver / bronze podium on a peachy card.
   Every rule starts with html[data-design="e"], so «أ / ب / ج / د» are untouched. On the pastel bar the text is deep
   plum (#3B0764, ≥ 10.8:1 on every stop); at night the bar is deep indigo / plum with white text (≥ 10:1). White text on
   the buttons sits on stops that give it ≥ 4.5:1 (#C2389A 4.9, #8B3FE0 5.4, #3A66D0 5.3). The student login keeps its
   own fixed look (app.css) and is never styled here. */

html[data-design="e"] { --r-card: 22px; --r-btn: 16px;
    --e-bar: linear-gradient(to left, #E9D5FF, #FBCFE8, #BAE6FD); --e-bar-fg: #3B0764;
    --e-tab: linear-gradient(to left, #FBCFE8, #DDD6FE); --e-tab-fg: #4C1D95;
    --e-btn: linear-gradient(to left, #C2389A, #8B3FE0, #3A66D0);
    --e-prog: linear-gradient(to left, #F9A8D4, #C4B5FD, #7DD3FC);
    --e-glass: rgb(255 255 255 / .55); --e-glass-bd: rgb(255 255 255 / .9); --e-glow: rgb(167 139 250 / .45);
    --e-dots: radial-gradient(circle at 8% 30%, rgb(255 255 255 / .9) 0 1.5px, transparent 2.5px), radial-gradient(circle at 22% 74%, rgb(255 255 255 / .8) 0 1px, transparent 2px),
        radial-gradient(circle at 47% 22%, rgb(255 255 255 / .85) 0 1.5px, transparent 2.5px), radial-gradient(circle at 71% 68%, rgb(255 255 255 / .8) 0 1px, transparent 2px),
        radial-gradient(circle at 90% 28%, rgb(255 255 255 / .9) 0 1.5px, transparent 2.5px); }
html.dark[data-design="e"] {
    --e-bar: linear-gradient(to left, #3B2470, #6B2160, #233E7A); --e-bar-fg: #FFFFFF;
    --e-tab: linear-gradient(to left, #6B2A6E, #4B3A8F); --e-tab-fg: #FFFFFF;
    --e-glass: rgb(255 255 255 / .12); --e-glass-bd: rgb(255 255 255 / .35); --e-glow: rgb(0 0 0 / .45);
    --e-dots: radial-gradient(circle at 8% 30%, rgb(255 255 255 / .45) 0 1.5px, transparent 2.5px), radial-gradient(circle at 22% 74%, rgb(249 168 212 / .5) 0 1px, transparent 2px),
        radial-gradient(circle at 47% 22%, rgb(255 255 255 / .4) 0 1.5px, transparent 2.5px), radial-gradient(circle at 71% 68%, rgb(196 181 253 / .5) 0 1px, transparent 2px),
        radial-gradient(circle at 90% 28%, rgb(255 255 255 / .45) 0 1.5px, transparent 2.5px); }

/* ---- the page: lavender with pink and baby-blue clouds (deep indigo at night) ---- */
html[data-design="e"] body { background:
    radial-gradient(60% 45% at 100% 0%, rgb(251 207 232 / .55), transparent 70%),
    radial-gradient(55% 45% at 0% 100%, rgb(186 230 253 / .55), transparent 70%),
    linear-gradient(160deg, #F5EEFF 0%, #F3EDFF 45%, #EEF4FF 100%) fixed; }
html.dark[data-design="e"] body { background:
    radial-gradient(60% 45% at 100% 0%, rgb(131 24 67 / .28), transparent 70%),
    radial-gradient(55% 45% at 0% 100%, rgb(35 62 122 / .35), transparent 70%),
    linear-gradient(160deg, #1B1838 0%, #201A42 55%, #171A3A 100%) fixed; }
html[data-design="e"] .t-app { background: transparent; }
html[data-design="e"] body.t-mode .t-app { margin-top: 0; }
html[data-design="e"] body::before { background: var(--e-bar); }

/* ---- the header bar (student top bar): pastel gradient with sprinkles, deep plum text ---- */
html[data-design="e"] .site-head { background: var(--e-dots), var(--e-bar); border-block-end: 0; box-shadow: 0 10px 24px -14px var(--e-glow); }
html[data-design="e"] .site-title, html[data-design="e"] .site-sub { color: var(--e-bar-fg); }
html[data-design="e"] .site-title { font-weight: 700; }
html[data-design="e"] .site-head .theme-toggle { background: var(--e-glass); border-color: var(--e-glass-bd); color: var(--e-bar-fg); }
html[data-design="e"] .logo-card--header { box-shadow: none; }

/* ---- the teacher's bar: the brand block of the sidebar (the top bar below 1024px) ---- */
html[data-design="e"] .t-side { border-inline-end-color: var(--card-border); }
html[data-design="e"] .t-brand { background: var(--e-dots), var(--e-bar); border-radius: var(--r-card); padding: var(--s2) var(--s3); box-shadow: 0 10px 24px -14px var(--e-glow); }
html[data-design="e"] .t-brand-t b, html[data-design="e"] .t-brand-t small { color: var(--e-bar-fg); }
html[data-design="e"] .t-logo { background: var(--e-glass); border: 1.5px solid var(--e-glass-bd); color: var(--e-bar-fg); }
html[data-design="e"] .t-brand .t-icon-btn, html[data-design="e"] .t-brand .theme-toggle, html[data-design="e"] .t-brand .btn-ghost { background: var(--e-glass); border: 1px solid var(--e-glass-bd); color: var(--e-bar-fg); }
html[data-design="e"] .t-brand .t-icon-btn:hover, html[data-design="e"] .t-brand .btn-ghost:hover:not(:disabled) { background: var(--e-glass-bd); color: var(--e-bar-fg); }
html.dark[data-design="e"] .t-brand .t-icon-btn:hover, html.dark[data-design="e"] .t-brand .btn-ghost:hover:not(:disabled) { background: rgb(255 255 255 / .22); }
@media (max-width: 1023.98px) {
    html[data-design="e"] .t-side { border-block-end-color: var(--card-border); }
    html[data-design="e"] .t-brand { border-radius: 0; margin-block-end: var(--s2); box-shadow: none; }
}
/* each section's title becomes the pastel header bar */
html[data-design="e"] .t-ph:not(.hw-ph) { background: var(--e-dots), var(--e-bar); border-radius: var(--r-card); padding: var(--s4) var(--s5); align-items: center; min-height: 76px; box-shadow: 0 12px 28px -16px var(--e-glow); }
html[data-design="e"] .t-ph:not(.hw-ph) h1, html[data-design="e"] .t-ph:not(.hw-ph) p { color: var(--e-bar-fg); }
html[data-design="e"] .t-ph h1 { font-weight: 700; }
html[data-design="e"] .t-ph:not(.hw-ph) .btn-ghost { background: var(--e-glass); border-color: var(--e-glass-bd); color: var(--e-bar-fg); }
html[data-design="e"] .t-ph:not(.hw-ph) .btn-ghost:hover:not(:disabled) { background: var(--e-glass-bd); }
html.dark[data-design="e"] .t-ph:not(.hw-ph) .btn-ghost:hover:not(:disabled) { background: rgb(255 255 255 / .22); }
html[data-design="e"] .t-ph:not(.hw-ph) .btn-primary { background: #FFFFFF; color: #6B21A8; box-shadow: 0 6px 16px -8px rgb(91 33 182 / .5); }
@media (max-width: 767.98px) { html[data-design="e"] .t-ph:not(.hw-ph) { padding: var(--s3) var(--s4); min-height: 0; } }

/* ---- the chosen tab: a pink → lilac pill; buttons: pink → violet → blue ---- */
html[data-design="e"] .t-nav a[aria-current="page"], html[data-design="e"] .nav button[aria-current="page"] .pill { background: var(--e-tab); color: var(--e-tab-fg); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .7), 0 6px 14px -8px rgb(167 139 250 / .8); }
html.dark[data-design="e"] .t-nav a[aria-current="page"], html.dark[data-design="e"] .nav button[aria-current="page"] .pill { box-shadow: inset 0 0 0 1.5px rgb(249 168 212 / .35); }
html[data-design="e"] .t-nav a[aria-current="page"] i { color: var(--e-tab-fg); }
html[data-design="e"] .t-nav a[aria-current="page"] .t-badge { background: #FFFFFF; color: #6B21A8; }
html[data-design="e"] .btn-primary { background: var(--e-btn); color: #FFFFFF; }
html[data-design="e"] .btn-primary:not(:disabled):hover { box-shadow: 0 10px 22px -8px rgb(139 63 224 / .7); }

/* ---- stat cards: each a pastel of its own (students · today · stars · questions) with a matching border ---- */
html[data-design="e"] .t-kpi { --k-bg: #F3EEFF; --k-bd: #DDD0FB; --k-fg: #5B21B6; --k-ic: #E4D9FF; background: var(--k-bg); border: 2px solid var(--k-bd); }
html[data-design="e"] .t-kpi:nth-child(4n+2) { --k-bg: #FDECF5; --k-bd: #FBCFE8; --k-fg: #A3195B; --k-ic: #FBD9EA; }
html[data-design="e"] .t-kpi:nth-child(4n+3) { --k-bg: #FFF0E6; --k-bd: #FED7C3; --k-fg: #9A3412; --k-ic: #FFE1CC; }
html[data-design="e"] .t-kpi:nth-child(4n+4) { --k-bg: #E8F4FF; --k-bd: #BAE0FD; --k-fg: #075985; --k-ic: #D3EBFF; }
html.dark[data-design="e"] .t-kpi { --k-bg: #322A63; --k-bd: rgb(196 181 253 / .35); --k-fg: #DDD6FE; --k-ic: rgb(167 139 250 / .25); }
html.dark[data-design="e"] .t-kpi:nth-child(4n+2) { --k-bg: #3D2453; --k-bd: rgb(249 168 212 / .35); --k-fg: #FBCFE8; --k-ic: rgb(236 72 153 / .22); }
html.dark[data-design="e"] .t-kpi:nth-child(4n+3) { --k-bg: #3D2A3A; --k-bd: rgb(253 186 116 / .35); --k-fg: #FED7AA; --k-ic: rgb(251 146 60 / .2); }
html.dark[data-design="e"] .t-kpi:nth-child(4n+4) { --k-bg: #1F2F5C; --k-bd: rgb(125 211 252 / .35); --k-fg: #BAE6FD; --k-ic: rgb(56 189 248 / .2); }
html[data-design="e"] .t-kpi .ic, html[data-design="e"] .t-kpi .ic.gold { background: var(--k-ic); color: var(--k-fg); border-radius: 50%; }
html[data-design="e"] .t-kpi b { color: var(--k-fg); font-size: 26.5px; font-weight: 700; }
html[data-design="e"] .t-kpi > div > span { color: var(--text); }
@media (max-width: 767.98px) { html[data-design="e"] .t-kpi b { font-size: 22px; } }

/* ---- progress bars: pink → lilac → baby blue ---- */
html[data-design="e"] .bar { background: #F1EAFF; }
html.dark[data-design="e"] .bar { background: var(--tint); }
html[data-design="e"] .bar i { background: var(--e-prog); }
html[data-design="e"] .t-rk li { border: 1.5px solid var(--card-border); border-radius: var(--r-btn); padding-inline: var(--s2) var(--s3); margin-block-end: var(--s2); background: var(--surface); }
html[data-design="e"] .t-rk li:first-child { border-block-start: 1.5px solid var(--card-border); }

/* ---- the podium: a peachy card, gold centre, silver and bronze beside it ---- */
html[data-design="e"] .t-podcard { background: linear-gradient(160deg, #FFFFFF 0%, #FFF6EE 60%, #FDF0F7 100%); border: 2px solid #E9D5FF; box-shadow: 0 0 28px rgb(167 139 250 / .18), var(--card-shadow); }
html.dark[data-design="e"] .t-podcard { background: linear-gradient(160deg, #262150 0%, #2E2152 60%, #2A2350 100%); border-color: rgb(216 180 254 / .35); box-shadow: 0 0 30px rgb(249 168 212 / .1); }
html[data-design="e"] .t-pod-txt h2 { color: #A3195B; font-weight: 700; }
html.dark[data-design="e"] .t-pod-txt h2 { color: #FBCFE8; }
html[data-design="e"] .mp { --m-1: #F1F5F9; --m-2: #E2E8F0; --m-bd: #94A3B8; --m-fg: #334155; }
html[data-design="e"] .mp1 { --m-1: #FEF3C7; --m-2: #FDE68A; --m-bd: #F59E0B; --m-fg: #92400E; }
html[data-design="e"] .mp3 { --m-1: #FFEDD5; --m-2: #FED7AA; --m-bd: #F97316; --m-fg: #9A3412; }
html.dark[data-design="e"] .mp { --m-1: #2A3342; --m-2: #3B4658; --m-fg: #E2E8F0; }
html.dark[data-design="e"] .mp1 { --m-1: #4A3410; --m-2: #6B4A0E; --m-fg: #FDE68A; }
html.dark[data-design="e"] .mp3 { --m-1: #4A2412; --m-2: #6A3416; --m-fg: #FED7AA; }
html[data-design="e"] .mp .blk { background: linear-gradient(145deg, var(--m-1), var(--m-2)); border: 2px solid var(--m-bd); border-block-end: 0; color: var(--m-fg); box-shadow: none; border-radius: 14px 14px 0 0; }
html.dark[data-design="e"] .mp1 .blk { color: var(--m-fg); }
html[data-design="e"] .mp .av { background: linear-gradient(145deg, var(--m-1), var(--m-2)); color: var(--m-fg); box-shadow: 0 0 0 2px var(--m-bd); }
html[data-design="e"] .mp1 .av { box-shadow: 0 0 0 3px var(--m-bd), 0 6px 16px -6px rgb(245 158 11 / .7); }
html[data-design="e"] .crown { color: #F59E0B; }

/* ---- the student's challenge: a dreamy question card and lilac answers ---- */
html[data-design="e"] .eqcard { background: radial-gradient(90% 70% at 100% 0%, #FDE7F3 0%, transparent 60%), radial-gradient(90% 70% at 0% 100%, #E0F2FE 0%, transparent 60%), var(--surface); }
html.dark[data-design="e"] .eqcard { background: radial-gradient(90% 70% at 100% 0%, rgb(131 24 67 / .35) 0%, transparent 60%), radial-gradient(90% 70% at 0% 100%, rgb(35 62 122 / .45) 0%, transparent 60%), var(--surface); }
html[data-design="e"] .ans { border: 2px solid var(--card-border); box-shadow: var(--card-shadow); }
html.dark[data-design="e"] .ans { border-color: var(--border); box-shadow: none; }
html[data-design="e"] .ans[aria-pressed="true"] { border-color: var(--primary); }

/* ---- the student's top bar: a cloud-soft card, the avatar in a pink → violet → blue ring and lavender / peach /
   baby-blue cards (the stat-card pastels, ≥ 6.5:1) ---- */
html[data-design="e"] .ch-top { --av-ring: var(--e-btn); background: radial-gradient(80% 90% at 100% 0%, #FDE7F3 0%, transparent 55%), radial-gradient(70% 90% at 0% 100%, #E0F2FE 0%, transparent 55%), var(--surface); border: 2px solid #E9D5FF; box-shadow: 0 14px 30px -20px var(--e-glow); }
html.dark[data-design="e"] .ch-top { --av-ring: linear-gradient(to left, #F9A8D4, #C4B5FD, #7DD3FC); background: radial-gradient(80% 90% at 100% 0%, rgb(131 24 67 / .3) 0%, transparent 55%), radial-gradient(70% 90% at 0% 100%, rgb(35 62 122 / .4) 0%, transparent 55%), var(--surface); border-color: rgb(216 180 254 / .3); box-shadow: none; }
html[data-design="e"] .ch-top .chip-tint { --c-bg: #F3EEFF; --c-bd: #DDD0FB; --c-fg: #5B21B6; }
html[data-design="e"] .ch-top .chip-gold { --c-bg: #FFF0E6; --c-bd: #FED7C3; --c-fg: #9A3412; }
html[data-design="e"] .ch-top .chip-plain { --c-bg: #E8F4FF; --c-bd: #BAE0FD; --c-fg: #075985; }
html.dark[data-design="e"] .ch-top .chip-tint { --c-bg: #322A63; --c-bd: rgb(196 181 253 / .35); --c-fg: #DDD6FE; }
html.dark[data-design="e"] .ch-top .chip-gold { --c-bg: #3D2A3A; --c-bd: rgb(253 186 116 / .35); --c-fg: #FED7AA; }
html.dark[data-design="e"] .ch-top .chip-plain { --c-bg: #1F2F5C; --c-bd: rgb(125 211 252 / .35); --c-fg: #BAE6FD; }
html[data-design="e"] .ch-top .ch-row .chip { background: var(--c-bg); border-color: var(--c-bd); color: var(--c-fg); }
html[data-design="e"] .ch-top .ch-row .chip i { color: var(--c-fg); }
html[data-design="e"] .ch-top .ch-row .chip-gold i { color: #D97706; }
html[data-design="e"] .ch-top .ch-act { background: var(--e-glass); border-color: #E9D5FF; }
html[data-design="e"] .ch-top .ch-act:hover { background: #FDECF5; border-color: #F9A8D4; }
html.dark[data-design="e"] .ch-top .ch-act { background: rgb(255 255 255 / .08); border-color: rgb(216 180 254 / .3); }
html.dark[data-design="e"] .ch-top .ch-act:hover { background: rgb(249 168 212 / .16); }
html[data-design="e"] .ch-top .bar { background: #F1EAFF; }
html.dark[data-design="e"] .ch-top .bar { background: var(--tint); }
html[data-design="e"] .ch-top .bar i { box-shadow: 0 0 12px rgb(196 181 253 / .7); }
