:root {
  --teal: #1F3B70;
  --teal-dark: #162A4F;
  --teal-light: #E6EBF0;
  --teal-line: #AABACD;
  --amber: #B4581E;
  --amber-dark: #8C4517;
  --amber-light: #F9EDE2;
  --gold: #E9BB92;
  --bg: #F7F6F4;
  --card: #FFFFFF;
  --ink: #172033;
  --muted: #5B6475;
  --line: #E7E5E1;
  --line-soft: #EFECE9;
  --field: #FBFAF9;
  --field-line: #CFCCC3;
  --ok: #1E7A46;
  --ok-light: #E4F3EA;
  --bad: #A42A1D;
  --bad-light: #FBE7E4;
  --radius: 18px;
  --font: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --display: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--teal); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.35; margin: 0; }
p { margin: 0; }
.m { font-family: var(--display); direction: ltr; unicode-bidi: isolate; }
.sq { white-space: nowrap; }
.mx { display: inline-grid; gap: 2px 14px; padding: 3px 10px; margin: 2px 4px; vertical-align: middle; position: relative; text-align: center; line-height: 1.35; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.mx::before, .mx::after { content: ""; position: absolute; top: 0; bottom: 0; width: 6px; border: 2px solid currentColor; }
.mx::before { left: 0; border-right: 0; }
.mx::after { right: 0; border-left: 0; }
.mx.det::before, .mx.det::after { width: 0; border-top: 0; border-bottom: 0; }
.sq > span { display: inline-block; border-top: 2px solid currentColor; padding: 1px 2px 0; margin-inline-start: -1px; line-height: 1.1; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Layout ===== */
.wrap { width: 100%; max-width: 560px; margin-inline: auto; padding: 20px 16px 40px; display: flex; flex-direction: column; gap: 18px; }
.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-in { max-width: 560px; margin-inline: auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { height: 38px; width: auto; max-width: 120px; object-fit: contain; flex-shrink: 0; }
.brand .sep { width: 1px; height: 28px; background: #DBD8D3; flex-shrink: 0; }
.brand b { font-family: var(--display); font-weight: 600; font-size: 16px; display: block; white-space: nowrap; }
.brand small { font-size: 12px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav button { min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 12px; border: 0; background: transparent; color: var(--ink); text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 500; }
.nav a:hover, .nav button:hover { background: var(--line-soft); }
.nav a[aria-current="page"] { background: var(--teal-light); color: var(--teal-dark); font-weight: 600; }
@media (max-width: 767px) {
  .nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--line); justify-content: space-around; gap: 2px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  .nav a, .nav button { flex: 1 1 0; flex-direction: column; gap: 2px; min-height: 52px; padding: 0 4px; font-size: 11px; }
  .wrap { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ===== Common blocks ===== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.btn { min-height: 50px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--teal); color: #fff; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:hover { background: var(--teal-dark); }
.btn[disabled] { background: var(--line-soft); color: var(--muted); cursor: not-allowed; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--field-line); font-weight: 500; }
.btn.ghost:hover { background: var(--field); }
.btn.danger { background: var(--card); color: var(--bad); border: 1px solid #E8B4AE; }
.btn.danger:hover { background: var(--bad-light); }
.back { color: var(--muted); text-decoration: none; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; align-self: flex-start; }
.back:hover { color: var(--ink); }
.pill { font-size: 12px; font-weight: 600; border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.pill.ok { background: var(--ok-light); color: var(--ok); }
.pill.soon { background: var(--line-soft); color: var(--muted); }
.bar { height: 6px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.note { display: flex; gap: 10px; align-items: flex-start; background: var(--teal-light); color: var(--teal-dark); border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.7; }
.note svg { flex-shrink: 0; margin-top: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input { height: 50px; border: 1px solid var(--field-line); border-radius: 12px; padding: 0 14px; font-size: 16px; background: var(--field); }
.field input[dir="ltr"] { text-align: right; }
.field input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-light); }
.err { color: var(--bad); font-size: 13px; min-height: 1em; }
.empty { text-align: center; color: var(--muted); font-size: 14px; padding: 18px; }

/* ===== Login ===== */
.login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.login-hero { background: var(--teal); color: #fff; border-radius: 0 0 36px 36px; padding: 48px 20px 96px; text-align: center; position: relative; overflow: hidden; }
.login-hero .sym { position: absolute; font-family: var(--display); color: #fff; opacity: .08; line-height: 1; pointer-events: none; }
.login-hero img { height: 84px; width: auto; max-width: 70%; object-fit: contain; }
.login-hero img.on-dark { filter: brightness(0) invert(1); }
.login-hero p { color: #DCE2EB; font-size: 13px; }
.login-hero h1 { font-size: 30px; font-weight: 700; margin-top: 2px; }
.login-box { width: calc(100% - 32px); max-width: 420px; margin: -64px auto 0; position: relative; }
.login-box h2 { font-size: 20px; font-weight: 600; }
.login-foot { margin: auto 0 0; padding: 24px 16px; text-align: center; font-size: 13px; color: var(--muted); }

/* ===== Units ===== */
.hello { background: var(--teal); color: #fff; border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.hello .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hello small { color: #DCE2EB; font-size: 13px; }
.hello h1 { font-size: 20px; font-weight: 600; }
.hello .pct { font-family: var(--display); font-size: 30px; font-weight: 700; }
.hello .bar { height: 8px; background: rgba(255,255,255,.22); }
.hello .bar > i { background: var(--gold); }
.home-top { display: flex; flex-direction: column; gap: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.tile:hover { border-color: var(--teal-line); }
.tile .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--amber-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tile b { font-size: 16px; display: block; }
.tile span { font-size: 13px; color: var(--muted); }
.tile .grow { flex-grow: 1; }
.sec-title { font-size: 18px; font-weight: 600; margin-top: 6px; }

/* ===== Leaderboard ===== */
.board-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.board-head h2 { font-size: 18px; font-weight: 600; }
.board-head .muted { font-size: 13px; }
.my-rank { display: flex; flex-direction: column; align-items: center; background: var(--teal-light); color: var(--teal-dark); border-radius: 14px; padding: 6px 14px; flex-shrink: 0; }
.my-rank span { font-size: 11px; }
.my-rank b { font-size: 22px; line-height: 1.2; }
.board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board-list li { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 4px 12px; border-radius: 12px; background: var(--field); }
.board-list li.me { background: var(--teal-light); box-shadow: inset 0 0 0 1.5px var(--teal); }
.board-list .rk { width: 30px; height: 30px; border-radius: 99px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 14px; font-weight: 600; flex-shrink: 0; background: var(--line-soft); color: var(--muted); }
.board-list .rk1 { background: var(--gold); color: #60350B; }
.board-list .rk2 { background: #DCDDE1; color: #2F3542; }
.board-list .rk3 { background: #E9CABB; color: #773D23; }
.board-list .nm { flex-grow: 1; min-width: 0; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-list .nm em { font-style: normal; font-size: 11px; font-weight: 600; color: #fff; background: var(--teal); border-radius: 99px; padding: 1px 8px; margin-inline-start: 4px; }
.board-list b { font-size: 15px; font-weight: 600; }
.board-list.solo { border-top: 1px dashed var(--field-line); padding-top: 8px; }
.board-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.linkish { background: none; border: 0; padding: 0; min-height: 44px; color: var(--teal); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.how { font-size: 13px; color: var(--muted); }
.how summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.how p { line-height: 1.8; max-width: 60ch; }
.demo-note { font-size: 12px; color: var(--amber-dark); background: var(--amber-light); border-radius: 10px; padding: 8px 12px; }
.units { display: grid; gap: 12px; align-items: start; }
.unit { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.unit[open] { border-color: var(--teal); }
.unit summary { list-style: none; cursor: pointer; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.unit summary::-webkit-details-marker { display: none; }
.unit .head { display: flex; align-items: center; gap: 12px; }
.unit .num { width: 40px; height: 40px; border-radius: 12px; background: var(--teal-light); color: var(--teal); font-family: var(--display); font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.unit[open] .num { background: var(--teal); color: #fff; }
.unit .head .grow { flex-grow: 1; min-width: 0; }
.unit .head b { font-size: 15px; display: block; }
.unit .head span { font-size: 12px; color: var(--muted); }
.unit .chev { transition: transform .2s; flex-shrink: 0; }
.unit[open] .chev { transform: rotate(180deg); }
.unit .body { padding: 0 16px 16px; display: flex; flex-direction: column; }
.topic-row { display: flex; align-items: center; gap: 12px; min-height: 56px; border-top: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
.topic-row:hover b { color: var(--teal); }
.topic-row .grow { flex-grow: 1; min-width: 0; }
.topic-row b { font-size: 14px; font-weight: 500; display: block; }
.topic-row span { font-size: 12px; color: var(--muted); }
.dot { width: 26px; height: 26px; border-radius: 99px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 2px solid var(--field-line); }
.dot.done { background: var(--ok); border-color: var(--ok); }
.unit-exam { margin-top: 12px; display: flex; align-items: center; gap: 12px; background: var(--amber-light); border-radius: 14px; padding: 14px; color: var(--ink); text-decoration: none; }
.unit-exam b { font-size: 14px; display: block; }
.unit-exam span { font-size: 12px; color: var(--amber-dark); }
.unit-exam.off { opacity: .6; pointer-events: none; }
/* الكمبيوتر والآيباد: شبكة الوحدات + لوحة مواضيع الوحدة المختارة */
.unit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.unit-card { font: inherit; text-align: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; }
.unit-card:hover { border-color: var(--teal); }
.unit-card.on { border: 2px solid var(--teal); padding: 15px; box-shadow: 0 6px 18px rgba(31,59,112, .12); }
.unit-card .head { display: flex; align-items: center; gap: 12px; }
.unit-card .num { width: 40px; height: 40px; border-radius: 12px; background: var(--teal-light); color: var(--teal); font-family: var(--display); font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.unit-card.on .num { background: var(--teal); color: #fff; }
.unit-card .grow { flex-grow: 1; min-width: 0; }
.unit-card .head b { font-size: 15px; display: block; }
.unit-card .head span { font-size: 12px; color: var(--muted); }
.unit-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.unit-panel h3 { font-size: 16px; font-weight: 600; }
.topic-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.topic-card { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--field); color: var(--ink); text-decoration: none; }
.topic-card:hover { border-color: var(--teal); background: var(--card); }
.topic-card:hover b { color: var(--teal); }
.topic-card .grow { flex-grow: 1; min-width: 0; }
.topic-card b { font-size: 14px; font-weight: 500; display: block; }
.topic-card span { font-size: 12px; color: var(--muted); }
.unit-panel .unit-exam { margin-top: 0; }

/* ===== Topic ===== */
.topic-grid { display: grid; gap: 16px; align-items: start; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--line-soft); border-radius: 14px; padding: 4px; }
.tabs button { height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); font-weight: 600; }
.player { aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--ink); overflow: hidden; display: flex; align-items: center; justify-content: center; color: #C9CFDA; text-align: center; padding: 16px; font-size: 14px; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.player:has(iframe) { padding: 0; }
.player-wrap { padding: 0; }
.clips { display: flex; flex-direction: column; gap: 8px; }
.clip { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); text-align: start; width: 100%; font-size: 14px; font-weight: 500; }
.clip .n { width: 26px; height: 26px; border-radius: 8px; background: var(--line-soft); color: var(--muted); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.clip[aria-current="true"] { background: var(--teal-light); border-color: var(--teal-line); }
.clip[aria-current="true"] .n { background: var(--teal); color: #fff; }
.attempts { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.attempts i { width: 22px; height: 8px; border-radius: 99px; background: var(--field-line); }
.attempts i.used { background: var(--teal); }
.best { display: flex; flex-direction: column; align-items: flex-end; }
.best span { font-size: 12px; color: var(--muted); }
.best b { font-family: var(--display); font-size: 18px; color: var(--ok); }
.quiz-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.quiz-card h2 { font-size: 17px; font-weight: 600; }

/* ===== Quiz ===== */
.quiz-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quiz-head small { font-size: 12px; color: var(--muted); display: block; }
.quiz-head b { font-family: var(--display); font-size: 17px; font-weight: 600; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--muted); }
.progress-row { display: flex; justify-content: space-between; font-size: 13px; }
.question { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; }
.question p { font-size: 17px; font-weight: 500; line-height: 1.8; }
.question p bdi.m, .rv .qt bdi.m { white-space: nowrap; }
.mathbox { background: var(--bg); border-radius: 14px; padding: 18px; text-align: center; font-size: 26px; font-weight: 500; white-space: pre-line; }
.options { display: flex; flex-direction: column; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 8px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: start; width: 100%; }
.opt:hover { border-color: var(--teal-line); }
.opt .l { width: 32px; height: 32px; border-radius: 99px; background: var(--line-soft); color: var(--muted); font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.opt .v { font-family: var(--display); font-size: 18px; font-weight: 500; }
.opt[aria-checked="true"] { background: var(--teal-light); border: 2px solid var(--teal); padding: 7px 15px; }
.opt[aria-checked="true"] .l { background: var(--teal); color: #fff; }
.qnav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qdots { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.qdots button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 600; color: var(--muted); }
.qdots button.ans { background: var(--teal-light); color: var(--teal-dark); border-color: var(--teal-line); }
.qdots button[aria-current="true"] { border: 2px solid var(--teal); color: var(--ink); }

/* ===== Result ===== */
.score { display: flex; align-items: center; gap: 18px; }
.ring { width: 100px; height: 100px; border-radius: 99px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.ring-in { width: 80px; height: 80px; border-radius: 99px; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring b { font-family: var(--display); font-size: 22px; line-height: 1.1; }
.ring span { font-size: 12px; color: var(--muted); }
.score h1 { font-size: 20px; font-weight: 600; }
.review { display: flex; flex-direction: column; gap: 10px; }
.review.only-wrong .rv.is-ok { display: none; }
.rv { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.rv .q { display: flex; gap: 10px; align-items: flex-start; }
.rv .mk { width: 28px; height: 28px; border-radius: 99px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rv .mk.ok { background: var(--ok-light); }
.rv .mk.bad { background: var(--bad-light); }
.rv .qt { font-size: 14px; font-weight: 500; }
.rv .qm { font-size: 15px; display: block; white-space: pre-line; text-align: right; margin-top: 4px; }
.question p bdi.qm-in { white-space: normal; font-weight: 600; color: var(--teal-dark); }
.rv .qm.qm-in { display: inline; margin: 0; font-weight: 600; white-space: normal; }
.qm-in .nw { white-space: nowrap; }
.rv .ans { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; padding-inline-start: 38px; }
.rv .ans .you.wrong b { color: var(--bad); }
.rv .ans .right b { color: var(--ok); }

/* ===== My progress ===== */
.pg-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.pg-stats div { display: flex; flex-direction: column; }
.pg-stats b { font-family: var(--display); font-size: 22px; }
.pg-stats span { font-size: 12px; color: var(--muted); }
.weak-grid { display: grid; gap: 12px; }
.weak-card { border-color: #E8B4AE; }
.wk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.wk-head b { display: block; font-size: 16px; }
.wk-head .muted { font-size: 12px; }
.wk-pct { font-size: 22px; }
.wk-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.wk-acts .btn { flex: 1 1 160px; min-height: 44px; font-size: 14px; }
.good-card { gap: 4px; background: var(--ok-light); border-color: transparent; }
.good-card .muted { font-size: 14px; }
.lv-list { display: flex; flex-direction: column; }
.lv-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
.lv-row:first-child { border-top: 0; }
.lv-row .grow { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lv-row b { font-size: 14px; font-weight: 500; }
.lv-row .muted { font-size: 12px; }
.lv-chip { font-size: 12px; font-weight: 600; border-radius: 99px; padding: 3px 10px; white-space: nowrap; flex-shrink: 0; }
.lvbar { height: 5px; }
.lv-strong { color: var(--ok); } .lv-chip.lv-strong { background: var(--ok-light); } .lvbar.lv-strong > i { background: var(--ok); }
.lv-mid { color: #B4581E; } .lv-chip.lv-mid { background: var(--amber-light); } .lvbar.lv-mid > i { background: #B7791F; }
.lv-weak { color: var(--bad); } .lv-chip.lv-weak { background: var(--bad-light); } .lvbar.lv-weak > i { background: var(--bad); }
.lv-new { color: var(--muted); } .lv-chip.lv-new { background: var(--line-soft); }
details.how.card { padding: 14px 18px; }
@media (min-width: 768px) { .weak-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== Custom ===== */
.check { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); width: 100%; text-align: start; }
.check .box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--field-line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.check[aria-checked="true"] { background: var(--teal-light); border: 1.5px solid var(--teal); }
.check[aria-checked="true"] .box { background: var(--teal); border-color: var(--teal); }
.check[disabled] { opacity: .55; cursor: not-allowed; }
.check .grow { flex-grow: 1; font-size: 14px; font-weight: 500; }
.check small { font-size: 12px; color: var(--muted); }
.counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.counts button { height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500; }
.counts button[aria-checked="true"] { background: var(--teal); color: #fff; border-color: var(--teal); font-weight: 600; }
.step-title { font-size: 15px; font-weight: 600; margin-top: 4px; }
.checks { display: grid; gap: 8px; }

/* ===== About ===== */
.about-hero { background: var(--teal); border-radius: 22px; height: 120px; }
.about-card { margin-top: -76px; align-items: center; text-align: center; padding-top: 0; }
.avatar { width: 112px; height: 112px; margin-top: -0px; border-radius: 99px; border: 4px solid var(--card); box-shadow: 0 0 0 2px var(--teal); background: var(--teal-light); color: var(--teal-dark); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 40px; font-weight: 600; }
.about-card h1 { font-size: 24px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips span { font-size: 12px; font-weight: 600; border-radius: 99px; padding: 5px 12px; background: var(--teal-light); color: var(--teal-dark); }
.chips span + span { background: var(--amber-light); color: var(--amber-dark); }
.about-grid { display: grid; gap: 16px; align-items: start; }
.card h2 { font-size: 16px; font-weight: 600; color: var(--teal); }
.kv { display: flex; justify-content: space-between; align-items: center; min-height: 40px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); font-size: 13px; }
.prose { font-size: 15px; line-height: 1.9; }
.motto { margin: 6px 0 0; background: var(--teal); color: #fff; border-radius: 18px; padding: 26px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; overflow: hidden; }
.motto::before, .motto::after { position: absolute; font-family: var(--display); font-size: 120px; line-height: 1; color: #fff; opacity: .08; pointer-events: none; }
.motto::before { content: '∑'; top: -14px; inset-inline-start: 10px; }
.motto::after { content: 'π'; bottom: -34px; inset-inline-end: 14px; }
.motto-ic { width: 48px; height: 48px; border-radius: 99px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; }
.motto blockquote { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.7; max-width: 22ch; position: relative; }
.motto blockquote::before { content: '«'; color: var(--gold); margin-inline-end: 4px; }
.motto blockquote::after { content: '»'; color: var(--gold); margin-inline-start: 4px; }
@media (min-width: 768px) {
  .about-grid > .welcome { grid-column: 1 / -1; }
  .motto blockquote { font-size: 26px; max-width: 30ch; }
}
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.timeline li { display: flex; gap: 12px; position: relative; }
.timeline li:not(:last-child)::after { content: ''; position: absolute; inset-inline-start: 5px; top: 16px; bottom: -14px; width: 2px; background: var(--line); }
.tl-dot { width: 12px; height: 12px; border-radius: 99px; background: var(--teal); flex-shrink: 0; margin-top: 6px; position: relative; z-index: 1; }
.timeline b { display: block; font-size: 15px; }
.timeline span { display: block; font-size: 13px; color: var(--muted); line-height: 1.7; }
.timeline small { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--amber-dark); background: var(--amber-light); border-radius: 99px; padding: 1px 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 13px; font-weight: 500; background: var(--teal-light); color: var(--teal-dark); border-radius: 99px; padding: 5px 12px; }
.honors { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.honors li::marker { color: var(--gold); }
.contact { background: var(--amber-light); border-color: transparent; }
.contact-row b[dir="ltr"] { overflow-wrap: anywhere; }
.contact h2 { color: var(--amber-dark); }
.contact-row { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); text-decoration: none; }
.contact-row .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--card); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-row small { display: block; font-size: 12px; color: var(--amber-dark); }
.contact-row b { font-size: 14px; }

/* ===== Tablet (iPad) ===== */
@media (min-width: 768px) {
  .wrap, .topbar-in { max-width: 920px; padding-inline: 28px; }
  .wrap { padding-top: 28px; gap: 22px; }
  .board-list { grid-auto-flow: column; grid-template-rows: repeat(5, auto); grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .board-list.solo { grid-auto-flow: row; grid-template-rows: none; }
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wrap.narrow { max-width: 680px; }
  .login-hero { padding-top: 64px; }
  .mathbox { font-size: 30px; }
}

/* ===== Desktop ===== */
@media (min-width: 1100px) {
  .wrap, .topbar-in { max-width: 1160px; }
  .unit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topic-grid { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); }
  .topic-grid .side { position: sticky; top: 84px; }
  .home-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
  .home-top .tile { height: 100%; }
  .home-top .stats { grid-column: 1 / -1; order: 3; }
  .stat { flex-direction: row; justify-content: center; gap: 10px; padding: 12px; }
  .stat span { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===== عمق ثلاثي الأبعاد خفيف (نموذج 2026-10-31): ظلال متدرجة، رفع عند المرور، أزرار وأشرطة بارزة ===== */
:root {
  --lift-1: 0 1px 0 rgba(255,255,255,.9) inset, 0 1px 2px rgba(23,32,51,.06), 0 8px 18px -10px rgba(23,32,51,.18);
  --lift-2: 0 1px 0 rgba(255,255,255,.9) inset, 0 2px 4px rgba(23,32,51,.06), 0 18px 32px -14px rgba(31,59,112,.32);
}
.card, .tile, .unit, .unit-card, .unit-panel { background: linear-gradient(180deg, #FFFFFF 0%, #FCFBFA 100%); border-color: #EBE9E5; box-shadow: var(--lift-1); }
.unit-card, .tile, .topic-card { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; transform-origin: 50% 100%; }
.unit-card:hover, .tile:hover { transform: perspective(900px) rotateX(5deg) translateY(-4px); box-shadow: var(--lift-2); }
.unit-card.on { box-shadow: var(--lift-2); }
.topic-card { background: linear-gradient(180deg, #FFFFFF, #F9F8F6); box-shadow: 0 1px 0 #fff inset, 0 4px 10px -6px rgba(23,32,51,.18); }
.topic-card:hover { transform: translateY(-3px); box-shadow: 0 1px 0 #fff inset, 0 12px 20px -10px rgba(31,59,112,.35); }
.num, .unit .num, .unit-card .num { background: linear-gradient(180deg, #F2F5F7, #D9E1E9); box-shadow: 0 1px 0 #fff inset, 0 3px 0 #C1CDDA, 0 6px 10px -6px rgba(31,59,112,.5); }
.unit-card.on .num, .unit[open] .num { background: linear-gradient(180deg, #2E4E86, #1F3B70); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 3px 0 #15284B, 0 8px 12px -6px rgba(31,59,112,.7); }
.btn { background: linear-gradient(180deg, #2E4E86, #1F3B70); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 3px 0 #15284B, 0 10px 16px -10px rgba(31,59,112,.8); transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { background: linear-gradient(180deg, #294982, #193262); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 0 0 #15284B, 0 4px 8px -6px rgba(31,59,112,.8); }
.btn.ghost, .btn.danger { box-shadow: 0 1px 0 #fff inset, 0 3px 0 #E2DFDB, 0 8px 14px -10px rgba(23,32,51,.25); }
.btn[disabled] { box-shadow: none; }
.bar { box-shadow: inset 0 1px 2px rgba(23,32,51,.14); }
.bar > i { background: linear-gradient(180deg, #3C5C94, #1F3B70); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.hello { background: radial-gradient(120% 140% at 85% 0%, #30528C 0%, #1F3B70 45%, #172C53 100%); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 18px 34px -16px rgba(22,42,79,.75); position: relative; overflow: hidden; }
.hello::after { content: ""; position: absolute; width: 180px; height: 180px; inset-inline-end: -50px; top: -70px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.22), rgba(255,255,255,0) 60%); pointer-events: none; }
.hello .bar > i { background: linear-gradient(180deg, #F8D9BB, #E9BB92); }
.unit-exam { box-shadow: 0 1px 0 #fff inset, 0 3px 0 #ECD7C6, 0 10px 16px -12px rgba(180,88,30,.5); }
/* رسمة الوحدة */
.art { width: 54px; height: 54px; flex-shrink: 0; filter: drop-shadow(0 6px 6px rgba(23,32,51,.16)); transition: transform .25s ease; }
.art svg { width: 100%; height: 100%; display: block; }
.unit-card:hover .art, .unit-card.on .art { transform: translateY(-4px) rotate(-4deg); }
.unit .art { width: 42px; height: 42px; }
.unit-card .art { width: 66px; height: 66px; margin-block: -6px; }
/* — باقي الصفحات: نفس العمق — */
.topbar { box-shadow: 0 6px 18px -14px rgba(23,32,51,.35); }
.nav a[aria-current="page"] { background: linear-gradient(180deg, #F0F4F7, #DEE5EC); box-shadow: 0 1px 0 #fff inset, 0 2px 0 #C6D2DE; }
.hello, .login-hero, .about-hero, .motto { background: radial-gradient(120% 140% at 85% 0%, #30528C 0%, #1F3B70 45%, #172C53 100%); }
.login-hero, .about-hero, .motto { box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 18px 34px -16px rgba(22,42,79,.65); }
.login-box { box-shadow: 0 1px 0 #fff inset, 0 24px 40px -18px rgba(23,32,51,.35); }
.field input { box-shadow: inset 0 2px 3px rgba(23,32,51,.07); }
.field input:focus { box-shadow: inset 0 2px 3px rgba(23,32,51,.07), 0 0 0 3px var(--teal-light); }
.question, .rv, .clip, .check, .icon-btn, .qdots button { background: linear-gradient(180deg, #FFFFFF, #FCFBFA); box-shadow: var(--lift-1); border-color: #EBE9E5; }
.mathbox { background: linear-gradient(180deg, #F1F0EB, #F8F7F5); box-shadow: inset 0 2px 6px rgba(23,32,51,.10), inset 0 -1px 0 #fff; }
.opt { background: linear-gradient(180deg, #FFFFFF, #FBF9F8); border-color: #E7E5E1; box-shadow: 0 1px 0 #fff inset, 0 3px 0 #E7E5E1, 0 8px 14px -12px rgba(23,32,51,.35); transition: transform .12s ease, box-shadow .12s ease, border-color .15s ease; }
.opt:hover { transform: translateY(-2px); box-shadow: 0 1px 0 #fff inset, 0 5px 0 #DAE2E8, 0 12px 18px -12px rgba(31,59,112,.45); }
.opt:active, .opt[aria-checked="true"] { transform: translateY(2px); box-shadow: 0 1px 0 #fff inset, 0 1px 0 #AABACD, 0 4px 8px -8px rgba(31,59,112,.5); }
.opt .l, .clip .n { box-shadow: 0 1px 0 #fff inset, 0 2px 0 #E1DEDA; }
.opt[aria-checked="true"] .l, .clip[aria-current="true"] .n { background: linear-gradient(180deg, #2E4E86, #1F3B70); box-shadow: 0 2px 0 #15284B; }
.tabs { box-shadow: inset 0 2px 4px rgba(23,32,51,.10); }
.tabs button[aria-selected="true"] { background: linear-gradient(180deg, #FFFFFF, #F9F8F6); box-shadow: 0 1px 0 #fff inset, 0 2px 0 #E2DFDB, 0 6px 10px -8px rgba(23,32,51,.35); }
.player { box-shadow: 0 20px 34px -18px rgba(23,32,51,.6); }
.ring { box-shadow: 0 10px 18px -10px rgba(23,32,51,.45); }
.ring-in { box-shadow: inset 0 3px 6px rgba(23,32,51,.12); }
.rv .mk, .dot.done { box-shadow: 0 2px 0 rgba(23,32,51,.12); }
.weak-card { box-shadow: 0 1px 0 #fff inset, 0 3px 0 #F1CFCA, 0 10px 16px -12px rgba(164,42,29,.45); }
.good-card { background: linear-gradient(180deg, #EEF8F2, #DFF1E6); box-shadow: 0 1px 0 #fff inset, 0 3px 0 #C8E6D3; }
.avatar { box-shadow: 0 0 0 2px var(--teal), 0 14px 22px -12px rgba(31,59,112,.7); }
.qdots button.ans { background: linear-gradient(180deg, #F0F4F7, #DEE5EC); }
@media (prefers-reduced-motion: reduce) { .unit-card:hover, .tile:hover, .topic-card:hover, .unit-card:hover .art, .opt:hover, .opt:active, .opt[aria-checked="true"] { transform: none; } }

/* العنوان يأخذ التركيز برمجياً عند فتح الصفحة (لقارئ الشاشة) بلا إطار ظاهر */
[tabindex="-1"]:focus { outline: none; }

/* ---------- لوحة الشرف ---------- */
.board-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--amber); }
.honor-hero { position: relative; text-align: center; padding: 22px 16px 26px; border-radius: 24px; background: radial-gradient(120% 90% at 50% 0%, #FFFFFF, var(--teal-light)); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.honor-hero h1 { font-size: 26px; font-weight: 700; color: var(--teal-dark); }
.honor-hero p { font-size: 14px; color: var(--muted); }
.honor-cup { filter: drop-shadow(0 8px 10px rgba(200,106,43, .25)); }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; padding-top: 8px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.pod .medal { width: 46px; height: 46px; border-radius: 99px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 20px; font-weight: 700; box-shadow: 0 6px 12px -6px rgba(23,32,51,.45), inset 0 -3px 0 rgba(0,0,0,.12); }
.pod .medal.m1 { background: linear-gradient(145deg, #F5DCC3, #D89C6A); color: #60350B; width: 56px; height: 56px; font-size: 24px; }
.pod .medal.m2 { background: linear-gradient(145deg, #F1F2F4, #B9BCC4); color: #2F3542; }
.pod .medal.m3 { background: linear-gradient(145deg, #F1D8CC, #C9917C); color: #773D23; }
.pod-name { font-size: 13px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 100%; }
.pod-name bdi { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pod-name em, .honor-list em { font-style: normal; font-size: 11px; font-weight: 600; color: #fff; background: var(--teal); border-radius: 99px; padding: 1px 8px; }
.pod-base { width: 100%; border-radius: 16px 16px 6px 6px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 12px; box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 10px 18px -12px rgba(23,32,51,.4); }
.pod-base b { font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.1; }
.pod-base span { font-size: 12px; color: var(--muted); }
.pod1 .pod-base { height: 140px; background: linear-gradient(180deg, #F9EDE2, #EED4BA); }
.pod2 .pod-base { height: 108px; background: linear-gradient(180deg, #F0F2F4, #D4DBE2); }
.pod3 .pod-base { height: 84px; background: linear-gradient(180deg, #FAF0EC, #EAD1C5); }
.pod.me .pod-base { box-shadow: inset 0 0 0 2px var(--teal), 0 10px 18px -12px rgba(23,32,51,.4); }
.empty-step .pod-base { opacity: .35; }
.you-row { flex-direction: row; align-items: center; gap: 14px; background: var(--teal-light); box-shadow: inset 0 0 0 1.5px var(--teal); }
.you-row .grow { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.you-row .grow .muted { font-size: 13px; }
.rk-big { width: 46px; height: 46px; border-radius: 99px; background: var(--card); color: var(--teal-dark); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 20px; font-weight: 700; flex-shrink: 0; }
.you-pts { display: flex; flex-direction: column; align-items: center; }
.you-pts b { font-family: var(--display); font-size: 22px; line-height: 1.1; color: var(--teal-dark); }
.you-pts span { font-size: 12px; color: var(--muted); }
details.card.how summary { cursor: pointer; font-weight: 600; }
details.card.how p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ---------- صفحة النتيجة ---------- */
.result-hero { position: relative; overflow: hidden; align-items: center; text-align: center; gap: 6px; margin-top: -8px; padding-top: 22px; }
.result-hero .badge { filter: drop-shadow(0 10px 12px rgba(23,32,51,.22)); }
.result-hero h1 { font-size: 24px; font-weight: 700; color: var(--teal-dark); }
.rh-title { font-size: 14px; }
.rh-score { display: flex; align-items: baseline; gap: 8px; font-family: var(--display); color: var(--teal-dark); }
.rh-score b { font-size: 46px; font-weight: 700; line-height: 1.1; }
.rh-score span { font-size: 26px; color: var(--muted); font-weight: 600; }
.grade { display: inline-flex; gap: 4px; border-radius: 99px; padding: 4px 16px; font-size: 14px; font-weight: 600; background: var(--teal-light); color: var(--teal-dark); }
.tone-gold .grade { background: var(--ok-light); color: var(--ok); }
.tone-plain .grade { background: var(--bad-light); color: var(--bad); }
.rh-att { font-size: 13px; font-weight: 500; color: var(--amber); }
.rtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rtile { border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.rtile b { font-family: var(--display); font-size: 26px; line-height: 1.2; }
.rtile span { font-size: 13px; font-weight: 500; }
.rtile.ok { background: var(--ok-light); color: var(--ok); }
.rtile.bad { background: var(--bad-light); color: var(--bad); }
.perf { gap: 10px; }
.perf-head { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.perf-head .m { font-weight: 700; }
.perf-bar { height: 10px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.perf-bar i { display: block; height: 100%; border-radius: 99px; }
.tip { flex-direction: row; align-items: center; gap: 12px; background: var(--amber-light); box-shadow: inset 0 0 0 1px #EED5BD; }
.tip svg { stroke: #D08548; flex-shrink: 0; }
.tip .grow { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tip .grow b { color: var(--amber-dark); }
.tip .grow p { font-size: 14px; color: #76421B; }
.tip .btn { flex-shrink: 0; width: auto; padding: 8px 14px; font-size: 14px; }
@media (max-width: 480px) { .tip { flex-wrap: wrap; } .tip .btn { width: 100%; } }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -12px; left: calc(var(--i) * 7% + 3%); width: 8px; height: 14px; border-radius: 2px; opacity: 0;
  background: var(--gold); animation: fall 2.4s ease-in calc(var(--i) * .09s) 1 forwards; }
.confetti i:nth-child(3n) { background: var(--teal); }
.confetti i:nth-child(4n) { background: #D89C6A; width: 6px; height: 10px; }
.confetti i:nth-child(5n) { background: #D9534F; }
@keyframes fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(240px) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }

/* ---------- المرحلة 2: الرئيسية والوحدات ---------- */
.btn.gold { background: linear-gradient(180deg, #EFCDAA, #D89C6A); color: #60350B; box-shadow: 0 6px 14px -8px rgba(200,106,43,.7), inset 0 -2px 0 rgba(0,0,0,.1); min-height: 46px; overflow: hidden; }
.btn.gold:hover { background: linear-gradient(180deg, #E9BB92, #D08548); }
.hello .btn.gold { white-space: normal; text-align: center; line-height: 1.5; padding-block: 8px; justify-content: center; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--teal); text-decoration: none; text-align: center; box-shadow: 0 6px 14px -12px rgba(23,32,51,.4); }
.stat b { font-family: var(--display); font-size: 20px; line-height: 1.2; color: var(--ink); }
.stat span { font-size: 11px; color: var(--muted); line-height: 1.3; }
a.stat:hover { border-color: var(--teal-line); }
.pill.doing { background: var(--amber-light); color: var(--amber); }
.pill.soon { white-space: nowrap; }

/* ---------- المرحلة 3: حسابي وعن المعلمة ---------- */
.account-card { align-items: center; text-align: center; gap: 6px; background: radial-gradient(120% 90% at 50% 0%, #FFFFFF, var(--teal-light)); }
.account-card h1 { font-size: 20px; font-weight: 700; }
.avatar.sm { width: 76px; height: 76px; font-size: 30px; }
.acc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; margin-top: 8px; }
.acc-stats div { background: var(--card); border-radius: 14px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; }
.acc-stats b { font-family: var(--display); font-size: 18px; color: var(--teal-dark); }
.acc-stats span { font-size: 11px; color: var(--muted); }
.acc-links { display: flex; flex-direction: column; gap: 10px; }
.acc-links .ic { background: var(--teal-light); color: var(--teal); }
.about-hero { position: relative; overflow: hidden; height: 150px; background: radial-gradient(120% 120% at 50% 0%, #2E4E86, #162A4F); display: flex; justify-content: center; align-items: flex-start; gap: 150px; padding-top: 6px; }
.about-hero .laurel { width: 30px; height: 60px; opacity: .95; }
.about-hero .laurel.flip { transform: scaleX(-1); }
.about-card { margin-top: -86px; position: relative; }
.about-card .avatar { box-shadow: 0 0 0 3px var(--gold), 0 10px 20px -10px rgba(23,32,51,.5); }
.about-grid .card h2::before { content: ""; display: inline-block; width: 6px; height: 18px; border-radius: 3px; background: var(--gold); margin-inline-end: 8px; vertical-align: -2px; }

/* first paint while the scripts load (index.html) */
.boot { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); font-family: var(--display); }
.boot img { height: 84px; width: auto; max-width: 60%; }
.boot p { margin: 0; font-size: 18px; }

/* text wrapping and placeholder contrast (Impeccable findings) */
p, .empty, .sub { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
input::placeholder, textarea::placeholder { color: #6A6F79; opacity: 1; }
.hello small { color: rgba(255,255,255,.92); }
.uicon { color: var(--teal); flex-shrink: 0; display: flex; opacity: .9; }
