/* Masar v135 · One design language on every page (owner: "توحيد التصميم في الموقع كله", 2026-12-02).
   Loaded last. Visual only: nothing is hidden, moved or removed. Colours come only from the theme
   variables (--card, --line, --sunk, --ink, --mute, --acc, --on-acc, --soft), so light, night and every
   colour skin stay readable. Today and Plan are left to v131-simple.css. The Mistakes page keeps its
   old design (owner's choice): only its hard-coded colours follow the theme now.
   The house rules this file applies:
   - card: --card background, 1px --line border, 18px corners, no gradient
   - card title: 19px / 700
   - action button: pill (999px), 44px, 14-15px / 700, primary = --acc on --on-acc
   - choice switch: the segmented style of v131-simple.css (track --sunk, selected --acc) */

/* ---------- one accent colour: some parts used an undefined --accent (fixed blue #2F63E8) ---------- */
html,html[data-skin]{--accent:var(--acc)}

/* ---------- segmented switches that were still their own style ---------- */
/* PDFs: Reading & Writing / Math (navy selected) */
html .m43subj{border:1px solid var(--line);background:var(--sunk);box-shadow:none;border-radius:14px}
html .m43subj button{border-radius:10px!important;font-size:14.5px!important;font-weight:600!important;padding:10px 16px!important;letter-spacing:0;color:var(--mute);background:transparent}
html .m43subj button[aria-pressed=true],html[data-theme="dark"] .m43subj button[aria-pressed=true]{background:var(--acc)!important;color:var(--on-acc,#fff)!important;box-shadow:none}
/* Arena leaderboard: This week / This month / All time (white pill selected) */
html .m126seg{border:1px solid var(--line);border-radius:14px;background:var(--sunk)}
html .m126seg button{border-radius:10px;padding:10px 16px;font:600 14.5px/1 var(--body,Figtree,system-ui)}
html .m126seg button.on{background:var(--acc);color:var(--on-acc,#fff);box-shadow:none}

/* ---------- action buttons: the app's pill (.btn) ---------- */
/* Question Bank Hard mode (Mixed / Reading & Writing / Math), weekly review, Desmos set */
html .m71b{height:44px;border-radius:999px;font:700 14px/1 var(--body,Figtree,system-ui);padding:0 18px}
html .m71b.pri{color:var(--on-acc,#fff)}
/* Study together */
html .m103b{border-radius:999px;font-weight:700}

/* ---------- card titles: one size ---------- */
html .m126h h2,html .m61bdh h2,html [data-pane=progress] .qh h3,html .m103h h3,html .m62th h3,html [data-pane=friends] .card>h3{font-size:19px;font-weight:700;letter-spacing:-.01em}

/* ---------- Question Bank: the two subject cards are calm cards (the gradients looked like ads) ---------- */
html .qb-card{background:var(--card)!important;color:var(--ink);border:1px solid var(--line);box-shadow:none;min-height:170px}
html .qb-card:hover{transform:none;border-color:color-mix(in srgb,var(--acc) 45%,var(--line));box-shadow:none}
html .qb-card span{color:var(--mute);opacity:1}
html .qb-card em{background:var(--acc);color:var(--on-acc,#fff);font-weight:700}
html .qb-card .qb-newtag{background:var(--soft);color:var(--ink)}

/* ---------- Vocab: "Learn new" is the main action, flat accent like every primary (no gradient) ---------- */
html .wbtn.pri{background:var(--acc)}

/* ---------- Friends · Study together: a calm card like Study buddy beside it (was a dark navy block) ---------- */
html .m103card{background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:18px;box-shadow:none}
html .m103h h3,html .m103t{color:var(--ink)}
html .m103p,html .m103lt span{color:var(--mute)}
html .m103now,html .m103list small,html .m103f span{color:var(--acc)}
html .m103list{border-top-color:var(--line)}
html .m103b{background:var(--acc);color:var(--on-acc,#fff)}
html .m103b.ghost{background:var(--card);border:1px solid var(--line);color:var(--ink)}
html .m103ring circle:first-child{stroke:var(--sunk)}
html .m103ring circle+circle{stroke:var(--acc)}

/* ---------- Score calculator: same card and title as the rest (it had its own bigger panel and a spaced label) ---------- */
html .m38calcp{border-radius:18px;border:1px solid var(--line);padding:22px 24px}
html .m38eye{display:none}
html .m38ch h2{font-size:24px;font-weight:700;letter-spacing:-.01em;margin:0 0 8px}
html .m38cb{margin-top:26px}

/* ---------- Mistakes (old design kept): theme colours instead of fixed blue / white, so night mode is readable ---------- */
html .m112c b{background:color-mix(in srgb,var(--ink) 9%,transparent)}
html .m112c[aria-pressed="true"]{background:var(--acc);color:var(--on-acc,#fff)}
html .m112c[aria-pressed="true"] b{background:color-mix(in srgb,var(--on-acc,#fff) 22%,transparent)}
html .m112s .m112c{box-shadow:inset 0 0 0 1.5px var(--line)}
html .m112s .m112c[aria-pressed="true"]{background:var(--soft);color:var(--acc-ink);box-shadow:inset 0 0 0 1.5px var(--acc)}
html .m112s .m112c[aria-pressed="true"] b{background:var(--acc);color:var(--on-acc,#fff)}
html .m112c:focus-visible{outline-color:var(--acc)}

/* ---------- Score calculator sliders: night mode painted them as text boxes, so the blue fill was gone ---------- */
html .m38sl input[type=range]{background:linear-gradient(90deg,var(--acc) var(--p,50%),color-mix(in srgb,var(--ink) 14%,transparent) var(--p,50%))!important;border:0!important;box-shadow:none!important;padding:0!important;height:10px!important}

/* ---------- Exams: every test card is a plain card (Practice / Adaptive / Paper cards had a blue wash; night mode its own gradient) ---------- */
:root .m38c.m38c.m38c,:root .m38c.m38c.m38c.off{background:var(--card)!important;border-color:var(--line)}
:root .m38c.m38c.m38c.m58next{border-color:var(--acc)!important}
