/* Almoaawen web prototype v5: phone first, RTL, brand colours from the app icon. */
:root {
  --brand: #1c77ef;
  --brand-2: #59a1fc;
  --brand-soft: #e7f0ff;
  --ground: #f6f7fb;
  --surface: #ffffff;
  --ink: #141821;
  --ink-2: #4a5160;
  --ink-3: #5b6271;
  --line: #e3e6ee;
  --line-strong: #cdd2de;
  --ok: #1f7a43;
  --ok-bg: #dcf5e5;
  --ok-solid: #42bf6f;
  --maybe: #7a5a00;
  --maybe-bg: #fff1bf;
  --maybe-solid: #feca0a;
  --no: #b3261e;
  --no-bg: #ffe0de;
  --no-solid: #fc413c;
  --lav: #bbb5f9;
  --radius: 16px;
  --radius-sm: 12px;
  --pad: 16px;
  --font: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
:root[data-theme="dark"] {
  --brand: #5b9dff;
  --brand-2: #8bbcff;
  --brand-soft: #16243b;
  --ground: #0e1116;
  --surface: #181c24;
  --ink: #f2f4f8;
  --ink-2: #c3c8d2;
  --ink-3: #a9afbb;
  --line: #262b36;
  --line-strong: #39404e;
  --ok: #8be3aa;
  --ok-bg: #133524;
  --maybe: #ffd75e;
  --maybe-bg: #3a2f0c;
  --no: #ff9a92;
  --no-bg: #451c1a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #5b9dff; --brand-2: #8bbcff; --brand-soft: #16243b; --ground: #0e1116; --surface: #181c24;
    --ink: #f2f4f8; --ink-2: #c3c8d2; --ink-3: #a9afbb; --line: #262b36; --line-strong: #39404e;
    --ok: #8be3aa; --ok-bg: #133524; --maybe: #ffd75e; --maybe-bg: #3a2f0c; --no: #ff9a92; --no-bg: #451c1a;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; transition: background .25s, color .25s; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
h1:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
.app { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 5; background: var(--ground); padding: 10px var(--pad) 8px; }
.top-row { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; flex: 1; }
.brand img { inline-size: 28px; block-size: 28px; border-radius: 8px; }
.iconbtn { inline-size: 44px; block-size: 44px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.iconbtn:active { background: var(--line); }
.back svg { transform: scaleX(-1); }
.save { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.save.bad { color: var(--no); font-weight: 600; }

/* progress: thick, springy, with a shine when it jumps */
.prog { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.track { position: relative; flex: 1; block-size: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.fill { position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: var(--p, 20%); border-radius: 999px; background: var(--brand); transition: inline-size .7s var(--spring); }
.fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .55), transparent); transform: translateX(120%); }
.fill.shine::after { animation: shine .9s ease-out; }
@keyframes shine { from { transform: translateX(120%); } to { transform: translateX(-120%); } }
.pct { font-size: 14px; font-weight: 700; color: var(--brand); min-inline-size: 42px; text-align: end; font-variant-numeric: tabular-nums; }
.pct.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* mascot: small, beside the progress bar */
.mascot { inline-size: 34px; block-size: 34px; flex: none; }
.mascot .eye { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.mascot.happy { animation: hop .6s var(--spring); }
.mascot.happy .mouth { d: path("M12 21 Q17 27 22 21"); }
@keyframes hop { 30% { transform: translateY(-6px) rotate(-8deg); } 60% { transform: translateY(0) rotate(4deg); } }
.mascot.party { animation: party 1.2s var(--spring) 2; }
@keyframes party { 25% { transform: translateY(-8px) rotate(-12deg) scale(1.1); } 50% { transform: translateY(0) rotate(10deg); } 75% { transform: translateY(-4px) rotate(-6deg); } }

main { flex: 1; padding: 8px var(--pad) 32px; }
.school { font-size: 14px; color: var(--ink-2); margin: 4px 0 2px; }
h1 { font-size: 27px; line-height: 1.3; margin: 0 0 6px; font-weight: 700; }
.lead { margin: 0 0 18px; color: var(--ink-2); font-size: 17px; }
h2 { font-size: 18px; margin: 24px 0 10px; }
.note-sm { font-size: 15px; color: var(--ink-2); margin: -10px 0 14px; }

/* bottom action bar */
.bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 6; background: var(--ground); border-top: 1px solid var(--line); padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom)); }
.bar .inner { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }

/* buttons: press down, spring back */
.btn { position: relative; overflow: hidden; min-height: 54px; border-radius: var(--radius); border: 1px solid transparent; padding: 0 20px; font-weight: 700; font-size: 17px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: transform .18s var(--spring), background .2s, box-shadow .2s; }
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--brand) 60%, #000); }
.btn.primary:active { transform: translateY(3px) scale(.98); box-shadow: 0 1px 0 color-mix(in srgb, var(--brand) 60%, #000); }
.btn.primary:disabled { background: var(--line-strong); color: var(--ink-2); box-shadow: none; }
.btn.wa { background: #25d366; color: #0b2915; box-shadow: 0 4px 0 #179c4a; }
.btn.wa:active { transform: translateY(3px) scale(.98); box-shadow: 0 1px 0 #179c4a; }
.btn.quiet { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn.text { background: none; min-height: 44px; color: var(--brand); width: auto; padding: 0 8px; font-weight: 600; }
.ripple { position: absolute; border-radius: 50%; background: rgb(255 255 255 / .45); transform: scale(0); animation: ripple .5s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
.center { text-align: center; margin: 10px 0 0; }

/* lists */
.search { width: 100%; min-height: 54px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); padding: 0 16px; font-size: 17px; }
.list { list-style: none; margin: 12px 0 0; padding: 0; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.list > li + li { border-top: 1px solid var(--line); }
.row { width: 100%; min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: none; border: 0; text-align: start; color: inherit; text-decoration: none; transition: background .15s; }
.row:active { background: var(--brand-soft); }
.row .name { flex: 1; font-size: 17px; }
.row[aria-pressed="true"] { background: var(--brand-soft); }
.tick { opacity: 0; color: var(--brand); font-weight: 700; }
.row[aria-pressed="true"] .tick { opacity: 1; }
.meta { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.go { color: var(--ink-3); font-size: 22px; }
.empty { padding: 20px 16px; color: var(--ink-2); font-size: 15px; }

.field { display: block; margin: 0 0 18px; }
.field > span { display: block; font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.field small { display: block; color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.input { width: 100%; min-height: 54px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); padding: 0 14px; font-size: 18px; }
textarea.input { min-height: 200px; padding: 12px 14px; line-height: 1.7; resize: vertical; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.card + .card { margin-top: 10px; }
.hint { font-size: 15px; color: var(--ink-2); text-align: center; margin: 0; }
.need { color: var(--no); font-size: 15px; margin: 8px 0 0; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 46px; min-width: 46px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 16px; transition: transform .2s var(--spring), background .15s, color .15s; }
.chip:active { transform: scale(.9); }
.chip[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); animation: pop .3s var(--spring); }
@keyframes pop { 50% { transform: scale(1.12); } }

/* subjects checklist */
.subj > .row { min-height: 58px; }
.box { inline-size: 28px; block-size: 28px; border-radius: 8px; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 16px; font-weight: 700; flex: none; transition: transform .25s var(--spring), background .15s; }
.subj.on .box { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(1.08); }
.subj.on > .row { font-weight: 700; }
.subj-body { padding: 0 16px 12px; }
.grade-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.grade-row + .grade-row { border-top: 1px solid var(--line); }
.grade-row .g { inline-size: 52px; flex: none; color: var(--ink-2); font-size: 15px; }
.subj-body .chips { gap: 6px; flex-wrap: wrap; }
.subj-body .chip { inline-size: 46px; padding: 0; }

/* section manager */
.sec-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.sec-row + .sec-row { border-top: 1px solid var(--line); }
.sec-row .g { inline-size: 60px; flex: none; font-weight: 600; }
.sec-chip { display: inline-flex; align-items: center; gap: 2px; min-height: 46px; padding-inline: 14px 4px; border-radius: 999px; background: var(--brand-soft); font-weight: 700; }
.sec-chip button { inline-size: 36px; block-size: 36px; border: 0; background: none; border-radius: 50%; color: var(--ink-2); }
.add-sec { display: flex; gap: 8px; margin-top: 8px; }
.add-sec .input { min-height: 48px; inline-size: 90px; text-align: center; }
.add-sec .btn { min-height: 48px; width: auto; }

/* ---------- the week grid: tap or slide ---------- */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; color: var(--ink-2); margin: 0 0 6px; }
.legend .sw { display: inline-grid; place-items: center; inline-size: 26px; block-size: 26px; border-radius: 7px; font-weight: 700; font-size: 14px; }
.legend .arrow { color: var(--ink-3); }
.week { display: grid; gap: 8px; margin-top: 14px; touch-action: none; user-select: none; -webkit-user-select: none; }
.week .head, .week .day { display: grid; grid-template-columns: 52px repeat(var(--periods), minmax(0, 1fr)); gap: 6px; align-items: center; }
.week .head span { text-align: center; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.week .day .label { font-size: 15px; font-weight: 700; }
.cell { block-size: 54px; border: 0; border-radius: 12px; font-size: 20px; font-weight: 700; display: grid; place-items: center; transition: background .15s, color .15s; }
.cell.none { background: transparent; }
.cell.flip { animation: flip .32s var(--spring); }
@keyframes flip { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.sw.ok, .cell.ok { background: var(--ok-bg); color: var(--ok); }
.sw.maybe, .cell.maybe { background: var(--maybe-bg); color: var(--maybe); }
.sw.no, .cell.no { background: var(--no-bg); color: var(--no); }
.cell.no { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--no) 40%, transparent); }
.wish { font-size: 15px; color: var(--ink-2); margin: 10px 0 0; }
.copy { margin-top: 8px; display: flex; justify-content: center; }

/* choice cards (spacing) */
.choices { display: grid; gap: 12px; }
.choice { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 14px 16px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--surface); text-align: start; transition: transform .2s var(--spring), border-color .15s, background .15s; }
.choice:active { transform: scale(.97); }
.choice[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.choice .pic { display: flex; gap: 3px; flex: none; inline-size: 92px; }
.choice .pic i { flex: 1; block-size: 26px; border-radius: 5px; background: var(--line); }
.choice .pic i.on { background: var(--brand-2); }
.choice b { display: block; font-size: 18px; }
.choice small { color: var(--ink-2); font-size: 15px; }

/* notify screen */
.bell { inline-size: 84px; block-size: 84px; border-radius: 24px; background: #dcf8e6; display: grid; place-items: center; margin: 8px 0 16px; animation: ring 2.4s ease-in-out infinite; }
:root[data-theme="dark"] .bell { background: #12361f; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-10deg); } 80% { transform: rotate(9deg); } 85% { transform: rotate(-6deg); } 90% { transform: rotate(3deg); } }
.phone { display: flex; gap: 8px; direction: ltr; }
.phone .cc { min-height: 56px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--surface); color: var(--ink-2); font-weight: 600; }
.phone .input { min-height: 56px; font-size: 20px; letter-spacing: .02em; }
.perks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.perks li { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.perks li span { inline-size: 28px; block-size: 28px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; font-weight: 700; flex: none; }

/* done */
.done-wrap { text-align: center; padding-top: 12px; }
.big-mascot { inline-size: 120px; block-size: 120px; margin: 8px auto 10px; display: block; }
.keep { text-align: start; margin-top: 18px; }
.keep p { margin: 0 0 12px; }
.linkbox { display: flex; align-items: center; gap: 8px; background: var(--ground); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 6px 6px 6px 12px; direction: ltr; }
.linkbox code { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkbox button { min-height: 44px; border-radius: 10px; border: 0; background: var(--ink); color: var(--ground); padding: 0 14px; font-weight: 700; }

/* log */
.log li { padding: 10px 16px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.log .who { font-weight: 700; }
.log .what { grid-column: 1 / -1; color: var(--ink-2); font-size: 15px; }
.log .when { font-size: 13px; color: var(--ink-3); }
.log li.undone .what { text-decoration: line-through; }
.log li.bad { background: color-mix(in srgb, var(--no-bg) 50%, transparent); }
.person-actions { display: flex; gap: 8px; grid-column: 1 / -1; margin-top: 6px; }
.person-actions .btn { min-height: 44px; font-size: 15px; }
.btn.danger { background: var(--no-bg); color: var(--no); }

/* admin bits */
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { inline-size: 46px; block-size: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); font-size: 20px; transition: transform .2s var(--spring); }
.stepper button:active { transform: scale(.85); }
.stepper output { min-inline-size: 34px; text-align: center; font-weight: 700; font-size: 18px; }
.rule-row { display: flex; align-items: center; gap: 12px; min-height: 60px; border-top: 1px solid var(--line); }
.rule-row.first { border-top: 0; }
.rule-row > span { flex: 1; font-size: 16px; }
details.rules { padding: 0 16px; }
details.rules + details.rules { margin-top: 10px; }
details.rules summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 64px; cursor: pointer; }
details.rules summary::-webkit-details-marker { display: none; }
details.rules summary small { color: var(--ink-2); font-size: 14px; }
details.rules[open] .chev { transform: rotate(180deg); }
.toggle-row { display: flex; align-items: center; gap: 12px; min-height: 60px; border-top: 1px solid var(--line); }
.toggle-row .txt { flex: 1; }
.switch { position: relative; inline-size: 52px; block-size: 32px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: background .15s; }
.switch span::after { content: ""; position: absolute; inset-block-start: 3px; inset-inline-start: 3px; inline-size: 26px; block-size: 26px; border-radius: 50%; background: #fff; transition: transform .25s var(--spring); }
.switch input:checked + span { background: var(--ok-solid); }
.switch input:checked + span::after { transform: translateX(-20px); }
.count { font-size: 15px; color: var(--ink-2); margin-top: 8px; }
.count.warn { color: var(--no); }
.code-box { font-size: 26px; letter-spacing: 0.08em; font-weight: 700; text-align: center; direction: ltr; background: var(--surface); border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 18px; margin: 8px 0 12px; font-variant-numeric: tabular-nums; }
.share { margin-bottom: 20px; }
.share p { margin: 0 0 12px; }
.progress { display: flex; align-items: baseline; gap: 6px; }
.progress b { font-size: 36px; line-height: 1; color: var(--brand); }
.meter { block-size: 12px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 10px 0 4px; }
.meter i { display: block; block-size: 100%; background: var(--ok-solid); border-radius: 999px; }
.split-count { font-size: 15px; color: var(--ink-2); margin: 4px 0 0; }
.badge { font-size: 14px; padding: 2px 10px; border-radius: 999px; white-space: nowrap; font-weight: 600; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.wait { background: var(--line); color: var(--ink-2); }
.badge.maybe { background: var(--maybe-bg); color: var(--maybe); }
.badge.no { background: var(--no-bg); color: var(--no); }
.banned { text-align: center; padding-top: 40px; }

/* toast + confetti */
.toast { position: fixed; inset-inline: 16px; bottom: 100px; z-index: 30; background: var(--ink); color: var(--ground); padding: 12px 16px; border-radius: 14px; font-size: 15px; text-align: center; opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .2s, transform .3s var(--spring); pointer-events: none; max-width: 448px; margin: 0 auto; }
.toast.show { opacity: 1; transform: none; }
.toast button { background: none; border: 0; color: var(--brand-2); font-weight: 700; margin-inline-start: 8px; min-height: 32px; pointer-events: auto; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; }

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

/* ---------- v6 (owner, 28 Nov): real icon as mascot, + buttons, back + continue ---------- */
img.mascot { inline-size: 34px; block-size: 34px; border-radius: 9px; }
img.big-mascot { inline-size: 112px; block-size: 112px; border-radius: 28px; margin: 8px auto 12px; display: block; box-shadow: 0 10px 30px rgb(28 119 239 / .25); }
img.mascot { animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.04); } }
.nav2 { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.nav2 .btn:only-child { grid-column: 1 / -1; }
.plus { inline-size: 46px; block-size: 46px; border-radius: 999px; border: 2px dashed var(--brand); background: var(--brand-soft); color: var(--brand); font-size: 24px; font-weight: 700; line-height: 1; display: grid; place-items: center; transition: transform .2s var(--spring); }
.plus:active { transform: scale(.85); }
.plus.wide { inline-size: auto; padding: 0 18px; display: flex; gap: 8px; font-size: 22px; }
.plus.wide span { font-size: 16px; }
.secs .sec-row .chips { flex: 1; }
.add-grade { justify-content: flex-start; }

/* ---------- v7 (17-reviewer round) ---------- */
:root { --brand-btn: #1565d8; }
:root[data-theme="dark"] { --brand-btn: #2f6fe0; }
.btn.primary { background: var(--brand-btn); box-shadow: 0 4px 0 color-mix(in srgb, var(--brand-btn) 60%, #000); }
.btn.primary:active { box-shadow: 0 1px 0 color-mix(in srgb, var(--brand-btn) 60%, #000); }
.btn.text.muted { color: var(--ink-2); font-size: 15px; }
.sec-chip.del { border: 2px solid var(--no); background: var(--no-bg); color: var(--no); padding-inline: 14px; gap: 6px; min-height: 46px; }
.okline { color: var(--ok); font-weight: 700; margin: 10px 0 0; font-size: 16px; animation: pop .35s var(--spring); }
.suspect { margin-bottom: 10px; border-color: color-mix(in srgb, var(--no) 40%, var(--line)); }
.suspect .who { margin: 0 0 6px; }
.suspect ul { margin: 0 0 10px; padding-inline-start: 18px; color: var(--ink-2); font-size: 15px; }
.suspect .when { font-size: 13px; color: var(--ink-3); }

/* ---------- v8 admin onboarding ---------- */
.hello { text-align: center; padding-top: 8px; }
.hello .lead { margin-bottom: 22px; }
.choice.big { min-height: 92px; }
.choice .emo { inline-size: 52px; block-size: 52px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 26px; font-weight: 700; flex: none; }
.big-step { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 36px 0 8px; }
.big-step .bs { inline-size: 76px; block-size: 76px; border-radius: 50%; border: 0; background: var(--brand-soft); color: var(--brand); font-size: 38px; font-weight: 700; transition: transform .2s var(--spring); }
.big-step .bs:active { transform: scale(.85); }
.big-step .bs:disabled { opacity: .35; }
.bs-num { font-size: 88px; font-weight: 700; line-height: 1; min-inline-size: 90px; text-align: center; color: var(--ink); }
.pop { animation: pop .35s var(--spring); }
.day-pills { display: grid; gap: 10px; }
.day-pill { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 16px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--surface); font-size: 18px; font-weight: 600; text-align: start; transition: transform .2s var(--spring), border-color .15s, background .15s; }
.day-pill:active { transform: scale(.97); }
.day-pill[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.tickbox { inline-size: 30px; block-size: 30px; border-radius: 9px; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 17px; color: #fff; flex: none; }
.day-pill[aria-pressed="true"] .tickbox { background: var(--brand-btn); border-color: var(--brand-btn); }
.input.xl { min-height: 64px; font-size: 21px; }
.adv-peek { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; color: var(--ink-2); font-size: 15px; }
.adv-peek li::before { content: "• "; color: var(--brand); font-weight: 700; }
.list.adv .row { min-height: 70px; }
.list.adv small { color: var(--ink-2); font-size: 14px; font-weight: 400; }
.timeline li { display: flex; justify-content: space-between; padding: 10px 16px; font-size: 16px; }
.timeline li.brk { background: var(--maybe-bg); color: var(--maybe); }
.timeline li.end { font-weight: 700; }
.timeline .tm { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.toggle-row small { color: var(--ink-2); font-size: 14px; font-weight: 400; }

/* ---------- v9 ---------- */
.bs-num.unset { color: var(--ink-3); }
.chips.quick { justify-content: center; margin-top: 18px; }
.nav3 { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; }
.del-list li { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 16px; min-height: 56px; }
.del-list .name { flex: 1; font-size: 17px; }
.icon-x { inline-size: 44px; block-size: 44px; border-radius: 50%; border: 0; background: var(--no-bg); color: var(--no); font-weight: 700; transition: transform .2s var(--spring); }
.icon-x:active { transform: scale(.85); }
.tset { margin: 0 0 18px; }
.tset .label { font-weight: 600; margin: 0 0 8px; }
.time-big { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; }
.time-big output { font-size: 40px; font-weight: 700; min-inline-size: 110px; text-align: center; font-variant-numeric: tabular-nums; }
.bs.sm { inline-size: 52px; block-size: 52px; border-radius: 50%; border: 0; background: var(--brand-soft); color: var(--brand); font-size: 26px; font-weight: 700; transition: transform .2s var(--spring); }
.bs.sm:active { transform: scale(.85); }
h2 .sub { font-size: 15px; color: var(--ink-2); font-weight: 400; margin-inline-start: 6px; }
.day-strip { display: grid; gap: 6px; }
.blk { display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-radius: 12px; min-height: calc(var(--h, 45) * 1px); font-size: 16px; animation: pop .3s var(--spring); }
.blk.lesson { background: var(--brand-soft); color: var(--ink); }
.blk.lesson b { inline-size: 30px; block-size: 30px; border-radius: 50%; background: var(--brand-btn); color: #fff; display: grid; place-items: center; font-size: 15px; }
.blk.pause { background: var(--maybe-bg); color: var(--maybe); justify-content: center; font-weight: 600; min-height: 34px; }
.blk.endt { min-height: 30px; justify-content: flex-end; color: var(--ink-2); font-weight: 700; }
.badge.new { background: var(--brand-soft); color: var(--brand); }
.add-sec .input { min-width: 0; }
.add-sec .btn { flex: none; width: 56px; padding: 0; font-size: 24px; }

/* ---------- v10 times: the school bell card with snap wheels ---------- */
.bell-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 6px 16px 16px; margin-top: 4px; }
.bell-head { display: flex; align-items: center; gap: 10px; min-height: 60px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.bell-head b { font-size: 20px; flex: 1; }
.bell-ico { inline-size: 38px; block-size: 38px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.bell-per { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.sentence { display: flex; align-items: center; gap: 10px; min-height: 76px; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--line); }
.sentence > span:first-child { flex: 1; }
.wheel { position: relative; block-size: 132px; inline-size: 92px; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; padding-block: 44px; border-radius: 16px; overscroll-behavior: contain; -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.wheel::-webkit-scrollbar { display: none; }
.wk-start .wheel { inline-size: 112px; }
.wheel .wi { block-size: 44px; display: grid; place-items: center; scroll-snap-align: center; font-size: 24px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; cursor: pointer; will-change: transform, opacity; }
.sentence { position: relative; }
.wheel:focus-visible { outline: 3px solid var(--brand); }
.bells-head { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 0 6px; }
.bells-head b { font-size: 17px; }
.bells-head span { font-size: 14px; color: var(--ink-2); }
.bells { list-style: none; margin: 0; padding: 0; }
.bells.tick { animation: settle .25s var(--spring); }
@keyframes settle { 40% { transform: translateY(2px); } }
.bl { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 0 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
.bl b { font-variant-numeric: tabular-nums; font-size: 17px; }
.bl.brk { background: var(--maybe-bg); color: var(--maybe); border-radius: 10px; border: 0; margin: 4px 0; padding: 0 12px; }
.bl.end { border-bottom: 0; border-top: 3px solid var(--brand); margin-top: 4px; font-weight: 700; min-height: 46px; }
.bl.end b { color: var(--brand); font-size: 19px; }
.wwrap { position: relative; display: block; flex: none; }
.wwrap::before { content: ""; position: absolute; inset-inline: 0; top: 44px; block-size: 44px; border-radius: 12px; background: var(--brand-soft); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand) 35%, transparent); }
.wwrap .wheel { position: relative; }

/* ---------- v11: endless magnetic wheels, morning/evening, the day receipt ---------- */
.wheel { scroll-snap-type: none; }
.wheel .wi { scroll-snap-align: none; }
.shift { margin: 12px 0 2px; }
.shift button { font-size: 16px; min-height: 48px; }
.sentence.last { border-bottom: 0; }
.clock { display: flex; align-items: center; gap: 2px; }
.clock .colon { font-size: 26px; color: var(--brand); margin-top: -4px; }
.wk-h .wheel, .wk-m .wheel { inline-size: 64px; }
.sum { text-align: center; color: var(--ink-2); font-size: 15px; margin: 14px 0 12px; font-weight: 600; }

.receipt { position: relative; background: var(--surface); border-radius: 20px 20px 0 0; padding: 18px 18px 8px; margin-top: 6px; box-shadow: 0 8px 28px rgb(20 24 33 / .08); }
.receipt::after { content: ""; position: absolute; inset-inline: 0; bottom: -12px; block-size: 12px; background: linear-gradient(-45deg, transparent 8px, var(--surface) 0) 0 0 / 16px 12px, linear-gradient(45deg, transparent 8px, var(--surface) 0) 0 0 / 16px 12px; }
.rc-head { text-align: center; border-bottom: 2px dashed var(--line-strong); padding-bottom: 14px; }
.rc-head h1 { margin: 6px 0 10px; }
.rc-shift { display: inline-block; font-size: 14px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 4px 14px; }
.rc-span { display: flex; align-items: center; justify-content: center; gap: 18px; }
.rc-span div { display: grid; justify-items: center; }
.rc-span small { font-size: 13px; color: var(--ink-2); }
.rc-span b { font-size: 40px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rc-span i { font-style: normal; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.rc-arrow { font-size: 26px; color: var(--brand); }
.rc-meta { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; }
.rc-line { list-style: none; margin: 14px 0 0; padding: 0; position: relative; }
.rc-line::before { content: ""; position: absolute; inset-block: 18px 22px; inset-inline-start: 15px; inline-size: 3px; background: var(--brand-soft); border-radius: 3px; }
.rc-lesson, .rc-break, .rc-end { position: relative; animation: rcin .35s var(--spring) both; animation-delay: calc(var(--d) * 45ms); }
@keyframes rcin { from { opacity: 0; transform: translateY(8px); } }
.rc-lesson { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; column-gap: 10px; padding: 8px 0 14px; }
.rc-num { inline-size: 32px; block-size: 32px; border-radius: 50%; background: var(--brand-btn); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; position: relative; z-index: 1; }
.rc-what { font-weight: 600; }
.rc-time { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 15px; }
.rc-time b { color: var(--ink); font-size: 17px; }
.rc-bar { grid-column: 2 / -1; block-size: 6px; border-radius: 6px; background: var(--line); margin-top: 6px; position: relative; overflow: hidden; }
.rc-bar::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: var(--x); inline-size: var(--w); background: var(--brand-2); border-radius: 6px; }
.rc-break { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px 0; margin-inline-start: 44px; padding: 8px 12px; border-radius: 12px; background: var(--maybe-bg); color: var(--maybe); font-weight: 600; font-size: 15px; border: 1px dashed color-mix(in srgb, var(--maybe) 40%, transparent); }
.rc-break .rc-time { color: var(--maybe); }
.rc-end { display: flex; justify-content: space-between; align-items: center; border-top: 2px dashed var(--line-strong); padding: 14px 4px 6px; font-weight: 700; }
.rc-end b { font-size: 24px; color: var(--brand); font-variant-numeric: tabular-nums; }
.rc-foot { text-align: center; padding: 18px 0 14px; }
.rc-foot p { margin: 0; font-size: 22px; font-weight: 700; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--ground); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { min-height: 46px; border: 0; border-radius: 10px; background: none; font-size: 16px; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s, transform .2s var(--spring); }
.seg button:active { transform: scale(.96); }
.seg button[aria-pressed="true"] { background: var(--brand-btn); color: #fff; box-shadow: 0 2px 0 color-mix(in srgb, var(--brand-btn) 60%, #000); }

/* ---------- v12: vertical, editable day ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgb(0 0 0 / .35); z-index: 20; display: none; }
.sheet { position: fixed; inset-inline: 0; bottom: 0; z-index: 21; max-height: 88dvh; overflow: auto; background: var(--ground); border-radius: 22px 22px 0 0; padding: 8px var(--pad) calc(20px + env(safe-area-inset-bottom)); display: none; box-shadow: 0 -10px 30px rgb(0 0 0 / .18); max-width: 480px; margin: 0 auto; }
.open .sheet-bg, .open .sheet { display: block; }
.open .sheet { animation: sheetin .28s var(--spring); }
@keyframes sheetin { from { transform: translateY(40px); opacity: .4; } }
.sheet .grab { inline-size: 40px; block-size: 4px; border-radius: 4px; background: var(--line-strong); margin: 4px auto 12px; }
.sheet h2 { margin: 4px 0 14px; text-align: center; font-size: 20px; }
.clock.big { justify-content: center; margin: 4px 0 18px; }
.sheet-wheel { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 18px; font-weight: 600; margin: 0 0 16px; }
.emo.brk { background: var(--maybe-bg); color: var(--maybe); }
.btn.danger { background: var(--no-bg); color: var(--no); }

.vstart { display: grid; grid-template-columns: 1fr auto; align-items: center; inline-size: 100%; margin: 14px 0 6px; padding: 12px 16px; border-radius: 16px; border: 2px solid var(--brand); background: var(--brand-soft); text-align: start; transition: transform .2s var(--spring); }
.vstart:active { transform: scale(.98); }
.vstart span { font-weight: 600; }
.vstart b { font-size: 30px; color: var(--brand); grid-row: span 2; font-variant-numeric: tabular-nums; }
.vstart small { color: var(--ink-2); font-size: 13px; }
.vday { display: grid; gap: 0; }
.vblk { display: flex; align-items: center; gap: 12px; inline-size: 100%; min-block-size: var(--h); padding: 0 14px; border-radius: 16px; border: 0; text-align: start; transition: transform .2s var(--spring); animation: pop .3s var(--spring); }
.vblk:active { transform: scale(.97); }
.vblk.L { background: var(--brand-soft); }
.vblk.B { background: var(--maybe-bg); color: var(--maybe); border: 1px dashed color-mix(in srgb, var(--maybe) 45%, transparent); }
.vnum { inline-size: 34px; block-size: 34px; border-radius: 50%; background: var(--brand-btn); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.vtxt { flex: 1; display: grid; }
.vtxt b { font-size: 17px; }
.vtxt small { font-size: 14px; color: var(--ink-2); }
.vblk.B .vtxt small { color: var(--maybe); }
.vtime { display: grid; justify-items: end; font-variant-numeric: tabular-nums; }
.vtime b { font-size: 18px; }
.vtime small { font-size: 13px; color: var(--ink-2); }
.vplus { display: flex; align-items: center; justify-content: center; block-size: 30px; border: 0; background: none; position: relative; }
.vplus::before { content: ""; position: absolute; inset-inline: 30px; top: 50%; border-top: 2px dotted var(--line-strong); }
.vplus span { position: relative; inline-size: 26px; block-size: 26px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 17px; line-height: 1; transition: transform .2s var(--spring); }
.vplus:active span { transform: scale(1.3); }
.vend { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding: 14px 16px; border-radius: 16px; background: var(--ink); color: var(--ground); font-weight: 700; }
.vend b { font-size: 26px; font-variant-numeric: tabular-nums; }
.vhint { text-align: center; color: var(--ink-2); font-size: 14px; margin: 12px 0 0; }
.sheet .nav2 { grid-template-columns: 1fr 1fr; }
.sheet .btn { white-space: nowrap; }

/* ---------- v14: صباحي / مسائي as two quiet buttons; the chosen one wears its sky ---------- */
.shift2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 4px; }
.sh { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-size: 16px; font-weight: 600; transition: color .35s ease, border-color .35s ease, transform .18s var(--spring); }
.sh:active { transform: scale(.97); }
.sh-bg { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.sh-ico, .sh-txt { position: relative; }
.sh-ico { inline-size: 19px; block-size: 19px; }
.sh.day .sh-ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sh.night .sh-ico { fill: currentColor; }
/* morning: pale sky, a soft warm glow in the corner */
.sh.day .sh-bg { background: radial-gradient(120% 140% at 100% 0%, rgb(255 214 120 / .45), transparent 45%), linear-gradient(160deg, #eef7ff, #d6ebff); }
.sh.day[aria-pressed="true"] { color: #8a5a00; border-color: #cfe3fb; }
.sh.day[aria-pressed="true"] .sh-ico { color: #f2a91d; animation: sunturn 24s linear infinite; }
@keyframes sunturn { to { transform: rotate(360deg); } }
/* evening (مسائي = afternoon shift): warm late-afternoon light, a sun settling on the horizon */
.sh.night .sh-ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sh.night .sh-bg { background: radial-gradient(130% 120% at 50% 120%, rgb(255 170 90 / .55), transparent 55%), linear-gradient(170deg, #fff1e0, #ffd9c2 60%, #f9c2c8); }
.sh.night[aria-pressed="true"] { color: #8c3b1f; border-color: #f6cdb8; }
.sh.night[aria-pressed="true"] .sh-ico { color: #e8742c; animation: settle-sun 4s ease-in-out infinite; }
@keyframes settle-sun { 50% { transform: translateY(1.5px); } }
.sh[aria-pressed="true"] .sh-bg { opacity: 1; }
.sh[aria-pressed="true"] { box-shadow: 0 2px 10px rgb(20 24 33 / .08); }

/* ---------- v16: the seven small delights ---------- */
.undo-ring { vertical-align: -5px; margin-inline-end: 6px; }
.undo-ring circle { fill: none; stroke-width: 2.6; }
.undo-ring .bg { stroke: currentColor; opacity: .25; }
.undo-ring .fg { stroke: currentColor; stroke-dasharray: 56.5; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: center; animation: drain 4.5s linear forwards; }
@keyframes drain { to { stroke-dashoffset: 56.5; } }
.save { display: inline-flex; align-items: center; gap: 4px; }
.save-tick path { fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .45s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.track { overflow: visible; }
.track .fill { overflow: hidden; }
.ptick { position: absolute; top: -3px; inset-inline-start: var(--at); inline-size: 4px; block-size: 18px; margin-inline-start: -2px; border-radius: 3px; background: var(--surface); box-shadow: 0 0 0 1px var(--line-strong); transition: background .3s; }
.ptick.past { background: var(--brand-btn); box-shadow: none; }
.ptick.hit { animation: tickpulse .42s var(--spring); }
@keyframes tickpulse { 40% { transform: scaleY(1.6) scaleX(1.4); } }
.scount { font-size: 13px; font-weight: 600; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 2px 10px; animation: pop .3s var(--spring); }
.scount.zero { color: var(--no); background: var(--no-bg); }
.week .label { border-radius: 9px; padding: 6px 4px; cursor: pointer; transition: background .45s linear; touch-action: none; }
.week .label.holding { background: linear-gradient(to left, var(--brand-soft), var(--brand-soft)) no-repeat; background-size: 100% 100%; animation: fillhold .45s linear forwards; }
@keyframes fillhold { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
.vblk { touch-action: pan-y; transition: transform .3s var(--spring), opacity .2s, background .2s; }
.vblk.will-del { background: var(--no-bg) !important; color: var(--no); }
.vday { overflow-x: clip; }

/* ---------- recovery code entry ---------- */
.otp { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 18px 0 8px; }
.otp-box { inline-size: 38px; block-size: 52px; border-radius: 12px; border: 2px solid var(--line-strong); background: var(--surface); text-align: center; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; transition: border-color .15s, transform .2s var(--spring); }
.otp-box:focus { outline: none; border-color: var(--brand); transform: translateY(-2px); }
.otp-box.filled { border-color: var(--brand); background: var(--brand-soft); }
.otp-dash { font-size: 24px; color: var(--ink-3); }
.otp.shake { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------- v18: period times, recap, build, result, my timetable, account ---------- */
.week .head .ph { all: unset; text-align: center; font-size: 14px; color: var(--ink-2); font-weight: 600; cursor: pointer; border-radius: 8px; padding-block: 4px; }
.week .head .ph:active { background: var(--brand-soft); color: var(--brand); }
.list.recap .row small, .list.adv .row small { color: var(--ink-2); font-weight: 400; }
.mine-cta { display: flex; justify-content: space-between; align-items: center; inline-size: 100%; border: 2px solid var(--brand); background: var(--brand-soft); font: inherit; color: var(--ink); cursor: pointer; margin-top: 14px; }
.mine-cta span { color: var(--brand); font-weight: 700; }
.mine-cta:active { transform: scale(.98); }
.btn.danger.armed { background: var(--no); color: #fff; }
.card.acct { display: grid; gap: 2px; margin-bottom: 14px; }
.card.acct small { color: var(--ink-2); margin-top: 8px; }
.card.acct b { font-size: 18px; }
.build { text-align: center; padding-top: 24px; }
.build .big-mascot { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06) rotate(-3deg); } }
.build-meter { margin: 18px 0; }
.build-meter i { transition: width .6s cubic-bezier(.2,.9,.3,1); width: 0; }
.build-steps { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 12px; text-align: start; max-inline-size: 300px; }
.build-steps li { display: flex; gap: 10px; align-items: center; color: var(--ink-3); font-weight: 600; transition: color .3s; }
.build-steps .bdot { inline-size: 22px; block-size: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; transition: all .3s var(--spring); }
.build-steps li.ok { color: var(--ink); }
.build-steps li.ok .bdot { background: var(--ok, #42bf6f); border-color: transparent; transform: scale(1.1); }
.build-steps li.ok .bdot::after { content: "✓"; color: #fff; font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 12px; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; text-align: center; }
.stats b { display: block; font-size: 24px; }
.stats small { color: var(--ink-2); font-size: 12px; line-height: 1.3; display: block; }
.row.card.soft { inline-size: 100%; }
.sec-pick { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
.sec-pick .chip { white-space: nowrap; inline-size: auto; padding-inline: 12px; }
.tt { display: grid; grid-template-columns: 50px repeat(var(--p), minmax(0, 1fr)); gap: 4px; font-size: 11px; }
.tt .tth { text-align: center; color: var(--ink-2); font-weight: 600; }
.tt .ttd { font-size: 12px; font-weight: 600; align-self: center; }
.tt .ttc { background: hsl(var(--h) 80% 92%); color: hsl(var(--h) 60% 28%); border-radius: 8px; padding: 8px 2px; text-align: center; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
[data-theme="dark"] .tt .ttc { background: hsl(var(--h) 35% 24%); color: hsl(var(--h) 80% 86%); }
.mday { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; margin-bottom: 10px; }
.mday h2 { margin: 2px 0 6px; font-size: 17px; }
.mday ul { list-style: none; margin: 0; padding: 0; }
.mday li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.mday li:first-child { border-top: 0; }
.mday .mt { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 14px; min-inline-size: 44px; }
.mday .mn { inline-size: 24px; block-size: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.mday .ms { flex: 1; display: grid; }
.mday .ms small { color: var(--ink-2); }
.mday .hint { margin: 0 0 4px; }
@media (prefers-reduced-motion: reduce) { .build .big-mascot { animation: none; } }
.sec-pick .chip { inline-size: auto; min-inline-size: 0; block-size: 38px; border-radius: 19px; flex: 0 0 auto; font-size: 15px; }
.tt .ttc { white-space: normal; text-overflow: clip; font-size: 10.5px; line-height: 1.25; padding: 7px 1px; overflow-wrap: anywhere; }

/* ---------- v19: no visible separators; grouping stays through spacing ---------- */
.list > li + li, .grade-row + .grade-row, .sec-row + .sec-row, .rule-row, .toggle-row, .mday li, .bell-head, .sentence, .bl { border-top: 0 !important; border-bottom: 0 !important; }
.bar { border-top: 0; }
.vplus::before { border-top: 0; }
.list .row { border-radius: 12px; }
/* toasts at the top so they never cover the bottom buttons */
.toast { top: calc(10px + env(safe-area-inset-top)); bottom: auto; transform: translateY(-12px) scale(.96); }
.toast.show { transform: none; }
/* working */
.save.busy { color: var(--ink-2); }
.spin.sm { inline-size: 11px; block-size: 11px; border: 2px solid var(--line-strong); border-top-color: var(--brand); border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.busy { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: color-mix(in srgb, var(--ground) 84%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .2s; }
.busy.on { opacity: 1; }
.busy-card { display: grid; justify-items: center; gap: 12px; transform: scale(.94); transition: transform .35s var(--spring); }
.busy.on .busy-card { transform: none; }
.busy img { border-radius: 18px; animation: breathe 1.4s ease-in-out infinite; }
.busy p { margin: 0; font-size: 18px; font-weight: 700; }
.dots i { display: inline-block; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--brand); margin: 0 3px; animation: dot 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { transform: scale(.5); opacity: .35; } 40% { transform: scale(1); opacity: 1; } }
/* passwords */
.pw { position: relative; }
.pw .input { padding-inline-end: 52px; }
.eye { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); inline-size: 44px; block-size: 44px; border: 0; background: none; color: var(--ink-2); display: grid; place-items: center; border-radius: 10px; }
.eye:active { background: var(--brand-soft); }
.eye[aria-pressed="true"] { color: var(--brand); }
[dir="ltr"].input ~ .eye, .pw [dir="ltr"] ~ .eye { inset-inline-end: auto; right: 4px; }
.pwm { display: flex; gap: 4px; margin: 8px 0 2px; }
.pwm i { flex: 1; block-size: 4px; border-radius: 2px; background: var(--line); transition: background .25s; }
.pwm[data-s="1"] i:nth-child(1) { background: var(--no); }
.pwm[data-s="2"] i:nth-child(-n+2) { background: #feca0a; }
.pwm[data-s="3"] i { background: #42bf6f; }
.input.match { border-color: #42bf6f; }
/* teacher ending */
.stages { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.stages li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-3); }
.stages li > span:last-child { display: grid; gap: 2px; }
.stages b { font-size: 16px; }
.stages small { color: var(--ink-2); font-size: 14px; }
.stages .bdot { flex: none; inline-size: 22px; block-size: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; margin-top: 1px; }
.stages li.ok, .stages li.now { color: var(--ink); }
.stages li.ok .bdot { background: #42bf6f; border-color: transparent; }
.stages li.ok .bdot::after { content: "✓"; color: #fff; font-size: 13px; }
.stages li.now .bdot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); animation: nowpulse 1.8s ease-in-out infinite; }
@keyframes nowpulse { 50% { box-shadow: 0 0 0 8px transparent; } }
.mini-meter { display: block; block-size: 6px; inline-size: 170px; max-inline-size: 100%; background: var(--line); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.mini-meter i { display: block; block-size: 100%; background: #42bf6f; border-radius: 3px; }
.card.next, .card.rate, .card.keep { margin-top: 14px; }
.card h2 { margin-top: 0; }
.stars { display: flex; justify-content: center; gap: 4px; }
.star { font-size: 36px; line-height: 1; background: none; border: 0; color: var(--line-strong); padding: 4px 6px; transition: transform .25s var(--spring), color .2s; }
.star[aria-pressed="true"] { color: #feca0a; }
.star.pop { animation: starpop .35s var(--spring); }
@keyframes starpop { 50% { transform: scale(1.35) rotate(-8deg); } }
.star:active { transform: scale(.85); }
details.keep summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
details.keep summary::-webkit-details-marker { display: none; }
details.keep summary::after { content: "‹"; font-size: 22px; color: var(--ink-2); transform: rotate(-90deg); transition: transform .25s var(--spring); }
details.keep[open] summary::after { transform: rotate(90deg); }
details.keep h3 { margin: 18px 0 6px; font-size: 16px; }
.bye { margin-top: 22px; }
/* admin home */
.hero { display: grid; grid-template-columns: 136px 1fr; gap: 16px; align-items: center; background: var(--surface); border-radius: 22px; padding: 16px; box-shadow: 0 10px 30px rgb(0 0 0 / .06); margin: 6px 0 12px; }
.ring { position: relative; inline-size: 136px; block-size: 136px; }
.ring svg { inline-size: 100%; block-size: 100%; transform: rotate(-90deg) scaleY(-1); }
.rbg, .rfg { fill: none; stroke-width: 12; }
.rbg { stroke: var(--line); }
.rfg { stroke: #42bf6f; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .9, .3, 1); }
.rc { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; }
.rc b { font-size: 44px; line-height: 1; }
.of { background: none; border: 0; color: var(--ink-2); font: inherit; font-size: 14px; padding: 4px 6px; border-radius: 8px; }
.of:active { background: var(--brand-soft); }
.legend3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 16px; }
.legend3 .btn { margin-top: 4px; }
.legend3 .all-in { color: var(--ok); font-weight: 700; }
.dot { display: inline-block; inline-size: 10px; block-size: 10px; border-radius: 50%; margin-inline-end: 8px; }
.dot.done { background: #42bf6f; } .dot.doing { background: #feca0a; } .dot.none { background: var(--line-strong); }
.btn.sm { min-height: 42px; font-size: 15px; padding: 8px 12px; }
.share-row { display: flex; align-items: center; gap: 4px; background: var(--surface); border-radius: 16px; padding: 8px 8px 8px 8px; padding-inline-start: 14px; margin-bottom: 6px; }
.share-row > span { flex: 1; display: grid; min-inline-size: 0; }
.share-row small { color: var(--ink-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; text-align: end; }
.wa-ico { color: #25d366; }
h2 .cnt { background: var(--no); color: #fff; border-radius: 10px; font-size: 12px; padding: 1px 8px; vertical-align: middle; }
.decs { display: grid; gap: 10px; }
.dcard { background: var(--surface); border-radius: 18px; padding: 14px; box-shadow: 0 6px 20px rgb(0 0 0 / .05); }
.dcard p { margin: 0 0 4px; font-size: 16px; line-height: 1.5; }
.dcard small { color: var(--ink-2); }
.dcard.warn p b { color: var(--no); }
.dact { display: flex; gap: 8px; margin-top: 12px; }
.dact.wrap { flex-wrap: wrap; }
.dact .btn { flex: 1 1 auto; }
.calm { color: var(--ok); font-weight: 600; text-align: center; margin: 20px 0 8px; }
.seg4 { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; scrollbar-width: none; }
.seg4 button { flex: 0 0 auto; border: 0; background: var(--surface); color: var(--ink-2); border-radius: 20px; padding: 8px 13px; font: inherit; font-size: 14px; transition: transform .15s, background .2s, color .2s; }
.seg4 button b { color: var(--ink); margin-inline-start: 2px; }
.seg4 button[aria-selected="true"] { background: var(--ink); color: var(--ground); }
.seg4 button[aria-selected="true"] b { color: var(--ground); }
.seg4 button:active { transform: scale(.94); }
.tlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.trow { inline-size: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 6px; background: none; border: 0; border-radius: 14px; text-align: start; color: inherit; font: inherit; min-height: 56px; transition: background .15s, transform .15s; }
.trow:active { background: var(--brand-soft); transform: scale(.99); }
.av { inline-size: 40px; block-size: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--line); color: var(--ink-2); flex: none; }
.av.done, .av.added { background: rgb(66 191 111 / .18); color: var(--ok); }
.av.doing { background: rgb(254 202 10 / .22); color: #9a7600; }
.av.big { inline-size: 64px; block-size: 64px; font-size: 26px; margin: 0 auto 8px; }
.tn { flex: 1; font-size: 16px; display: grid; }
.tn small { color: var(--ink-2); font-size: 13px; }
.st { font-size: 13px; color: var(--ink-2); }
.st.done, .st.added { color: var(--ok); } .st.doing { color: #9a7600; }
.sheet-person { text-align: center; }
[data-theme="dark"] .av.doing, [data-theme="dark"] .st.doing { color: #ffd84d; }

/* ---------- v20 ---------- */
/* tiny undo pill, back at the bottom, above the buttons */
.toast { top: auto; bottom: calc(96px + env(safe-area-inset-bottom)); inset-inline: 0; margin: 0 auto; inline-size: max-content; max-inline-size: calc(100% - 40px); padding: 5px 6px 5px 12px; padding-inline-start: 12px; font-size: 13px; line-height: 1.4; border-radius: 999px; box-shadow: 0 6px 18px rgb(0 0 0 / .18); transform: translateY(8px) scale(.94); }
.toast.show { transform: none; }
.toast button { font-size: 13px; min-height: 26px; margin-inline-start: 4px; padding: 0 8px; display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; }
.toast .undo-ring { inline-size: 14px; block-size: 14px; }
/* percentage loading */
.bbar { inline-size: 200px; block-size: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bbar i { display: block; block-size: 100%; inline-size: 0; background: var(--brand); border-radius: 3px; }
.bpc { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bpct { display: block; font-size: 40px; line-height: 1; margin: 10px 0 0; font-variant-numeric: tabular-nums; }
.build-meter i { transition: none; }
.build-steps li.now { color: var(--ink); }
.build-steps li.now .bdot { border-color: var(--brand); border-top-color: transparent; animation: spin .8s linear infinite; }
/* the road */
.road { list-style: none; margin: 6px 0 0; padding: 0; }
.road li { position: relative; display: flex; gap: 14px; padding-bottom: 26px; color: var(--ink-3); }
.road li:last-child { padding-bottom: 0; }
.road li::before { content: ""; position: absolute; inset-inline-start: 13px; top: 30px; bottom: -4px; inline-size: 12px; border-radius: 6px; background: var(--line); }
.road li::after { content: ""; position: absolute; inset-inline-start: 18px; top: 38px; bottom: 4px; border-inline-start: 2px dashed var(--surface); }
.road li:last-child::before, .road li:last-child::after { display: none; }
.road li.ok::before { background: #42bf6f; }
.road li.here::before { background: linear-gradient(var(--brand), var(--line)); }
.stop { flex: none; position: relative; z-index: 1; inline-size: 38px; block-size: 38px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line-strong); display: grid; place-items: center; }
.road li.ok .stop { background: #42bf6f; border-color: #42bf6f; }
.road li.ok .stop::after { content: "✓"; color: #fff; font-weight: 700; }
.road li.here .stop { border-color: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); animation: nowpulse 1.8s ease-in-out infinite; }
.road li.here .stop img { border-radius: 7px; }
.road li.ok, .road li.here { color: var(--ink); }
.rtxt { display: grid; gap: 2px; padding-top: 7px; }
.rtxt b { font-size: 16px; }
.rtxt small { color: var(--ink-2); font-size: 14px; }
.you { justify-self: start; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; border-radius: 10px; padding: 1px 9px; margin-bottom: 3px; }
/* rating + mascot */
.rhead { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rhead h2 { margin: 0; }
.mwrap { position: relative; display: inline-block; }
.rmascot { border-radius: 14px; display: block; }
.react { transition: transform .45s var(--spring), filter .45s; }
.react.yay { animation: yay .8s var(--spring); }
@keyframes yay { 25% { transform: translateY(-14px) rotate(-8deg) scale(1.08); } 55% { transform: translateY(0) rotate(5deg); } 75% { transform: translateY(-5px) rotate(-2deg); } }
.react.meh { transform: rotate(4deg); }
.react.sad { transform: rotate(-9deg) translateY(5px) scale(.94); filter: saturate(.35) brightness(.95); }
.bubble { position: absolute; bottom: calc(100% + 6px); inset-inline-start: 6px; background: var(--ink); color: var(--ground); border-radius: 12px; padding: 5px 10px; font-size: 13px; font-weight: 700; white-space: nowrap; z-index: 2; }
.bubble::after { content: ""; position: absolute; top: 100%; inset-inline-start: 14px; border: 6px solid transparent; border-top-color: var(--ink); }
.bubble.in { animation: bubin .4s var(--spring); }
@keyframes bubin { from { transform: scale(.5) translateY(6px); opacity: 0; } }
.card.rate { overflow: visible; padding-top: 30px; }
.star.pop { animation: starpop .35s var(--spring); }
.star:disabled { cursor: default; }
.rate .btn.primary { margin-top: 12px; }
.rthx { margin: 8px 0 4px; font-weight: 600; }
.share-t { margin: 12px 0 8px; }
.share3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.btn.fb { background: #1877f2; color: #fff; }
.edit-now { margin: 12px 0 10px; }
/* admin home: dropdown title, settings row */
.h1t { margin: 0 0 8px; }
.h1btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font: inherit; border-radius: 10px; }
.h1btn:active { opacity: .7; }
.h1btn .chev { display: inline-block; font-size: 26px; color: var(--ink-2); transform: rotate(-90deg); transition: transform .3s var(--spring); }
.h1btn[aria-expanded="true"] .chev { transform: rotate(90deg); }
.tpanel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .9, .3, 1); }
.tpanel.open { grid-template-rows: 1fr; }
.tpin { overflow: hidden; min-block-size: 0; }
.tpanel.open .tpin { padding-bottom: 12px; }
.setrow { inline-size: 100%; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 0; border-radius: 16px; padding: 12px 14px; margin-top: 10px; text-align: start; color: inherit; font: inherit; transition: transform .15s; }
.setrow:active { transform: scale(.98); }
.setrow .sic { inline-size: 40px; block-size: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.setrow .go { color: var(--ink-2); font-size: 22px; }
@media (prefers-reduced-motion: reduce) { .react, .react.yay, .bubble.in, .road li.here .stop { animation: none !important; transition: none; } }
/* chevrons: down when closed, up when open */
.h1btn .chev, details.keep summary::after { transform: rotate(90deg); }
.h1btn[aria-expanded="true"] .chev, details.keep[open] summary::after { transform: rotate(-90deg); }
/* without lines, rows need a little more air */
.toggle-row { padding-block: 10px; }
.list .row { padding-block: 10px; }
/* progress milestones: tiny dots inside the bar, not divider lines */
.ptick { top: 50%; inline-size: 4px; block-size: 4px; margin-inline-start: -2px; margin-top: -2px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 22%, transparent); box-shadow: none; }
.ptick.past { background: rgb(255 255 255 / .75); box-shadow: none; }
@keyframes tickpulse { 50% { transform: scale(2.2); } }

/* the week grid: original green / yellow / red, colour only (no icons) */
.legend .sw { inline-size: 20px; block-size: 20px; }

/* ---------- v26: review ---------- */
.rcards { display: grid; gap: 10px; }
.rcard { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 16px; padding: 12px 14px; box-shadow: 0 6px 20px rgb(0 0 0 / .05); }
.rcard p { flex: 1; margin: 0; font-size: 15px; line-height: 1.5; }
.rcard .btn { flex: none; inline-size: auto; }
.rcard.block { box-shadow: 0 0 0 2px color-mix(in srgb, var(--no) 45%, transparent), 0 6px 20px rgb(0 0 0 / .05); }
.rcard.ping { animation: ping .6s var(--spring); }
@keyframes ping { 40% { transform: scale(1.03); } }
.rsum { background: var(--surface); border-radius: 16px; padding: 12px 14px; font-size: 16px; }
.rsum .mini-meter { inline-size: 100%; }
.rvs { display: grid; gap: 4px; }
details.rv { background: var(--surface); border-radius: 14px; }
details.rv summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; }
details.rv summary::-webkit-details-marker { display: none; }
details.rv summary::after { content: "‹"; color: var(--ink-2); font-size: 20px; transform: rotate(90deg); transition: transform .25s var(--spring); }
details.rv[open] summary::after { transform: rotate(-90deg); }
.av.no { background: color-mix(in srgb, var(--no) 18%, transparent); color: var(--no); }
.rvl { list-style: none; margin: 0; padding: 0 14px 12px; display: grid; gap: 6px; }
.rvl li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.rvl li span { color: var(--ink-2); text-align: end; }
.revgo { display: grid; gap: 6px; }
.revgo small { text-align: center; color: var(--ink-2); font-size: 13px; }
/* ---------- result ---------- */
.rhead2 { display: flex; align-items: center; justify-content: space-between; }
.rhead2 h1 { margin: 0; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.stats3 button { border: 0; background: var(--surface); border-radius: 16px; padding: 12px 6px; font: inherit; color: var(--ink); display: grid; gap: 2px; text-align: center; transition: transform .15s; }
.stats3 button:active { transform: scale(.96); }
.stats3 b { font-size: 24px; line-height: 1.1; }
.stats3 small { font-size: 12px; color: var(--ink-2); }
.stats3 .good b { color: var(--ok); } .stats3 .bad b { color: var(--no); }
.vtabs, .mtog, .dstrip { display: flex; gap: 4px; background: var(--surface); border-radius: 14px; padding: 4px; }
.vtabs button, .mtog button, .dstrip button { flex: 1; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink-2); border-radius: 10px; padding: 8px 6px; transition: background .2s, color .2s; white-space: nowrap; }
.vtabs button[aria-selected="true"], .mtog button[aria-selected="true"], .dstrip button[aria-selected="true"] { background: var(--ink); color: var(--ground); }
.vrow { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.tpick { flex: 1; text-align: start; border: 0; background: var(--surface); border-radius: 14px; padding: 10px 14px; font: inherit; font-weight: 700; color: var(--ink); }
.tpick span { color: var(--ink-2); }
.mtog { flex: none; }
.dstrip { margin: 8px 0; overflow-x: auto; scrollbar-width: none; }
.dstrip button { font-size: 14px; flex: 1 0 auto; }
.rday { background: var(--surface); border-radius: 18px; padding: 10px 10px 6px; margin-top: 10px; }
.rday h3 { margin: 2px 6px 6px; font-size: 16px; }
.rday ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lsn { position: relative; inline-size: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none; border-radius: 12px; padding: 8px 6px; text-align: start; font: inherit; color: inherit; transition: transform .2s var(--spring), background .2s, box-shadow .2s; }
.lsn:active { transform: scale(.98); }
.lsn .lt { min-inline-size: 42px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lsn .ln { inline-size: 24px; block-size: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.lsn .lb { flex: 1; display: grid; }
.lsn .lb b { font-size: 15px; } .lsn .lb small { color: var(--ink-2); font-size: 13px; }
.lsn.empty .lb b { color: var(--ink-3); font-weight: 400; }
.lsn.red .ln { background: color-mix(in srgb, var(--no) 18%, transparent); color: var(--no); }
.lsn .lk, .mc .lk { color: var(--brand); flex: none; }
.lsn.sel { background: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand), 0 10px 24px rgb(0 0 0 / .12); transform: translateY(-2px) scale(1.02); z-index: 1; }
.lsn.can-move, .lsn.can-swap { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand) 45%, transparent); }
.lsn.can-move { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.lsn.no-go { opacity: .38; }
.lsn .ltag { font-size: 11px; color: var(--brand); font-weight: 700; flex: none; }
.lsn.shake { animation: shake .35s ease; }
.tray { display: flex; align-items: center; gap: 8px; }
.tray span { flex: 1; font-weight: 700; color: var(--brand); }
.tray .btn { inline-size: auto; }
.mt-wrap { overflow-x: auto; border-radius: 16px; background: var(--surface); }
.mtab { border-collapse: separate; border-spacing: 3px; min-inline-size: 100%; }
.mtab th { font-size: 12px; color: var(--ink-2); font-weight: 600; padding: 4px; white-space: nowrap; }
.mtab thead small { display: block; font-weight: 400; color: var(--ink-3); }
.mtab tbody th { position: sticky; inset-inline-start: 0; background: var(--surface); z-index: 1; text-align: start; }
.mc { border: 0; background: var(--ground); border-radius: 9px; min-inline-size: 58px; padding: 6px 4px; font: inherit; color: var(--ink); display: grid; justify-items: center; gap: 1px; position: relative; }
.mc b { font-size: 12px; } .mc small { font-size: 11px; color: var(--ink-2); }
.mc.red { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--no) 55%, transparent); }
.mc .lk { position: absolute; top: 3px; inset-inline-start: 3px; inline-size: 10px; block-size: 10px; }
.pickl .row[aria-pressed="true"] { font-weight: 700; }
/* ---------- export sheet ---------- */
.xlab { margin: 4px 0 6px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.xchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.xchips button { border: 0; background: var(--surface); border-radius: 20px; padding: 8px 14px; font: inherit; font-size: 14px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: transform .15s; }
.xchips button[aria-pressed="true"] { background: var(--ink); color: var(--ground); box-shadow: none; }
.xchips button:active, .xscopes button:active { transform: scale(.95); }
.xscopes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.xscopes button { border: 0; background: var(--surface); border-radius: 14px; padding: 10px; text-align: start; font: inherit; color: var(--ink); display: grid; box-shadow: inset 0 0 0 1px var(--line); transition: transform .15s; }
.xscopes button small { color: var(--ink-2); font-size: 12px; }
.xscopes button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--brand); background: var(--brand-soft); }
.ppv { background: #fff; color: #15181d; border-radius: 8px; padding: 10px; margin: 0 auto 6px; inline-size: 62%; box-shadow: 0 8px 24px rgb(0 0 0 / .14); aspect-ratio: 1 / 1.414; overflow: hidden; }
.ppv.l { inline-size: 92%; aspect-ratio: 1.414 / 1; }
.pph { display: flex; justify-content: space-between; border-bottom: 2px solid #1565d8; padding-bottom: 4px; margin-bottom: 6px; font-size: 9px; }
.ppt { display: grid; grid-template-columns: repeat(var(--c), 1fr); gap: 1px; background: #cfd5df; border: 1px solid #cfd5df; }
.ppt i { font-style: normal; background: #fff; font-size: 7px; text-align: center; padding: 3px 1px; white-space: nowrap; overflow: hidden; text-overflow: clip; min-block-size: 14px; }
.ppt i.h { background: #eef3fb; font-weight: 700; }
.pps { display: flex; justify-content: space-between; margin-top: 14px; } .pps span { inline-size: 30%; border-top: 1px solid #15181d; }
details.xpaper { margin: 6px 0 12px; }
details.xpaper summary { font-weight: 700; cursor: pointer; list-style: none; padding: 6px 0; }
details.xpaper summary::-webkit-details-marker { display: none; }

.mtog button { padding: 8px 14px; }
.vrow .tpick span { font-size: 13px; }

/* ---------- v27: the whole-school sheet ---------- */
.rtools { display: flex; align-items: center; gap: 2px; }
.fchip { border: 0; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; border-radius: 20px; padding: 7px 12px; display: inline-flex; align-items: center; gap: 6px; max-inline-size: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fchip.on { background: var(--ink); color: var(--ground); }
.fchip .fx { font-size: 12px; opacity: .8; padding: 0 2px; }
.rstat { display: block; border: 0; background: none; font: inherit; font-size: 13px; color: var(--ink-2); padding: 2px 0 10px; text-align: start; }
.rstat .good { color: var(--ok); font-weight: 600; } .rstat .bad { color: var(--no); font-weight: 600; }
.paper { --z: 1; background: #fff; color: #1f2430; border-radius: 16px; box-shadow: 0 10px 30px rgb(0 0 0 / .08); overflow: auto; max-block-size: calc(100dvh - 250px); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
[data-theme="dark"] .paper { box-shadow: 0 0 0 1px rgb(255 255 255 / .08); }
.ttab { border-collapse: separate; border-spacing: 0; font-size: calc(12px * var(--z)); }
.ttab th, .ttab td { border-bottom: 1px solid #e3e7ee; border-inline-start: 1px solid #e3e7ee; text-align: center; padding: 0; }
.ttab thead th { position: sticky; top: 0; z-index: 3; background: #f4f6f9; font-weight: 700; }
.ttab thead tr:nth-child(2) th { top: calc(30px * var(--z)); }
.ttab .gh { background: var(--bg); block-size: calc(30px * var(--z)); }
.ttab .sech { block-size: calc(26px * var(--z)); color: #4b5260; }
.ttab .dh, .ttab .ph { position: sticky; inset-inline-start: 0; z-index: 4; font-size: calc(10px * var(--z)); color: #4b5260; }
.ttab .ph { inset-inline-start: calc(30px * var(--z)); }
.ttab .dl { position: sticky; inset-inline-start: 0; z-index: 2; background: #eef3b3; inline-size: calc(30px * var(--z)); min-inline-size: calc(30px * var(--z)); }
.ttab .dl span { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 700; font-size: calc(13px * var(--z)); }
.ttab .pn { position: sticky; inset-inline-start: calc(30px * var(--z)); z-index: 2; background: #f4f6f9; inline-size: calc(26px * var(--z)); min-inline-size: calc(26px * var(--z)); color: #4b5260; font-size: calc(12px * var(--z)); }
.ttab tr.dlast > * { border-bottom: 2px solid #9aa3b2; }
.ttab .c { background: var(--bg, #fff); min-inline-size: calc(78px * var(--z)); transition: opacity .2s, box-shadow .2s, transform .2s var(--spring); position: relative; }
.ttab .c.e { background: #fff; }
.ttab .cb { all: unset; box-sizing: border-box; display: grid; place-content: center; gap: 1px; inline-size: 100%; min-block-size: calc(44px * var(--z)); padding: calc(4px * var(--z)) 3px; cursor: pointer; }
.ttab .cb b { font-size: calc(12.5px * var(--z)); font-weight: 700; color: #1f2430; white-space: nowrap; }
.ttab .cb small { font-size: calc(10px * var(--z)); color: #4b5260; white-space: nowrap; }
.ttab .cb:focus-visible { outline: 2px solid #1565d8; outline-offset: -2px; }
.ttab .c .lk { position: absolute; top: 3px; inset-inline-end: 3px; inline-size: 10px; block-size: 10px; color: #1565d8; }
.ttab .c.red { box-shadow: inset 0 0 0 2px rgb(252 65 60 / .55); }
.ttab .c.dim { opacity: .14; }
.ttab .c.sel { box-shadow: inset 0 0 0 3px #1565d8; z-index: 1; transform: scale(1.04); }
.ttab .c.off { opacity: .25; }
.ttab .c.ok { box-shadow: inset 0 0 0 2px #1565d8; }
.ttab .c.ok.warn { box-shadow: inset 0 0 0 2px #e0a100; }
.ttab .c.e.ok { background: #e8f0fd; }
.ttab .c.shake { animation: shake .35s ease; }
.rbar { display: flex; align-items: center; gap: 8px; }
.rbar .btn { flex: 1; }
.rbar .pbtn { flex: none; inline-size: 52px; block-size: 52px; border-radius: 14px; background: var(--surface); color: var(--ink); }
.allrow { background: var(--surface); border-radius: 14px; margin-bottom: 8px; }
.allrow[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--brand); }
.sheet.half { max-block-size: 58dvh; }
.xlab small { font-weight: 400; color: var(--ink-3); margin-inline-start: 6px; }
.swl { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sw2 { border: 0; background: var(--bg); color: #1f2430; font: inherit; font-size: 14px; font-weight: 600; border-radius: 10px; padding: 7px 12px; transition: transform .15s, box-shadow .2s; }
.sw2[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--brand); transform: translateY(-1px); }
.pal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 4px 0 10px; }
.pal button { block-size: 36px; border-radius: 10px; border: 0; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); transition: transform .15s; }
.pal button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--ink); }
.pal button:active, .sw2:active { transform: scale(.92); }
.zrow { display: flex; align-items: center; gap: 12px; }
.zrow b { min-inline-size: 52px; text-align: center; font-variant-numeric: tabular-nums; }
.zrow .btn.text { margin-inline-start: auto; }
.bs.sm { inline-size: 44px; block-size: 44px; font-size: 22px; }
.fmt4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 12px; }
.fmt4 button { border: 0; background: var(--surface); border-radius: 16px; padding: 12px 4px 10px; display: grid; justify-items: center; gap: 2px; font: inherit; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: transform .15s, box-shadow .2s; }
.fmt4 button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--brand); background: var(--brand-soft); }
.fmt4 button:active { transform: scale(.95); }
.fmt4 .fi svg { inline-size: 34px; block-size: 41px; display: block; }
.fmt4 b { font-size: 14px; } .fmt4 small { font-size: 11px; color: var(--ink-2); text-align: center; line-height: 1.3; }
.xchips button small { color: inherit; opacity: .7; font-size: 12px; }
.xprev { background: var(--surface); border-radius: 14px; padding: 12px; display: grid; place-items: center; }
.xprev img { max-inline-size: 100%; max-block-size: 260px; border-radius: 4px; box-shadow: 0 8px 24px rgb(0 0 0 / .16); background: #fff; }
.sheet .nav2 .btn svg { inline-size: 20px; block-size: 20px; vertical-align: -4px; }

/* the timetable uses the whole screen on a laptop */
body.wide .app, body.wide .bar .inner { max-width: 1400px; }
@media (min-width: 900px) { body.wide .paper { max-block-size: calc(100dvh - 230px); } body.wide .rbar { max-width: 560px; margin-inline-start: auto; } }
.ttab { min-inline-size: 100%; }

/* ---------- v28: swap mode, clashes, the editor ---------- */
.swapbtn { inline-size: 40px; block-size: 40px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink-2); display: grid; place-items: center; transition: background .25s, color .25s, transform .3s var(--spring); }
.swapbtn.on { background: var(--brand); color: #fff; transform: rotate(180deg); }
.swapbtn.nudge { animation: nudge .5s var(--spring); }
@keyframes nudge { 30% { transform: scale(1.25); box-shadow: 0 0 0 6px var(--brand-soft); } 60% { transform: scale(.95); } }
.paper.swapping { box-shadow: 0 0 0 2px var(--brand), 0 10px 30px rgb(0 0 0 / .08); }
.paper:not(.swapping) .ttab .cb { cursor: default; }
.tray span { display: inline-flex; align-items: center; gap: 6px; }
.ttab .c.ok.risky { box-shadow: inset 0 0 0 2px #e0a100; }
.ttab .c.clash { box-shadow: inset 0 0 0 3px #e5484d; }
.ttab .c.clash::after { content: "تعارض"; position: absolute; top: 2px; inset-inline-start: 3px; font-size: 9px; font-weight: 700; color: #fff; background: #e5484d; border-radius: 5px; padding: 0 4px; line-height: 14px; }
.ttab.mono .c { background: #fff; }
.ttab .pn small { display: block; font-size: calc(9px * var(--z)); font-weight: 400; color: #6b7280; }
.dgrid { display: grid; gap: 14px; }
@media (min-width: 900px) { .dgrid { grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); align-items: start; } .dprev { position: sticky; top: 90px; } }
.dprev { display: grid; gap: 10px; }
.dwhat { justify-self: center; }
.dsheet { background: var(--surface); border-radius: 18px; padding: 14px; display: grid; place-items: center; }
.dsheet img { max-inline-size: 100%; max-block-size: 62dvh; background: #fff; border-radius: 3px; box-shadow: 0 12px 32px rgb(0 0 0 / .18); }
.dpanel { display: grid; gap: 10px; }
.dsec { background: var(--surface); border-radius: 18px; padding: 14px; display: grid; gap: 10px; }
.dsec h2 { margin: 0; font-size: 16px; } .dsec h2 small { font-size: 12px; font-weight: 400; color: var(--ink-3); margin-inline-start: 6px; }
.seg3 { display: flex; gap: 4px; background: var(--ground); border-radius: 12px; padding: 4px; }
.seg3 button { flex: 1; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink-2); border-radius: 9px; padding: 8px; transition: background .2s, color .2s; }
.seg3 button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 4px rgb(0 0 0 / .12); }
.tgs { display: flex; flex-wrap: wrap; gap: 8px; }
.tg { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--ground); border-radius: 12px; padding: 9px 12px; font: inherit; font-size: 14px; color: var(--ink); transition: background .2s, transform .15s; }
.tg:active { transform: scale(.96); }
.tgb { inline-size: 18px; block-size: 18px; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--line-strong); display: grid; place-items: center; transition: background .2s, box-shadow .2s; }
.tg[aria-pressed="true"] { background: var(--brand-soft); }
.tg[aria-pressed="true"] .tgb { background: var(--brand); box-shadow: none; }
.tg[aria-pressed="true"] .tgb::after { content: "✓"; color: #fff; font-size: 12px; font-weight: 700; }
.dsec .zrow span { flex: 1; color: var(--ink-2); font-size: 14px; }
.dsec .btn.text { justify-self: start; padding: 0; }
.xedit { background: var(--surface); border-radius: 14px; margin: 10px 0; }
.xedit .go { font-size: 13px; color: var(--brand); white-space: nowrap; }

/* ---------- v29: colour picker, your font, preview target ---------- */
.ttab .dl { background: var(--dbg, #eef3b3); }
.dwhatrow { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.dwhatrow .tpick { flex: 0 1 auto; max-inline-size: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 8px 14px; }
.cpick { display: grid; gap: 10px; background: var(--ground); border-radius: 14px; padding: 12px; }
.crow { display: flex; gap: 8px; align-items: center; }
.cwheel { position: relative; display: inline-flex; align-items: center; gap: 10px; flex: 1; background: var(--surface); border-radius: 12px; padding: 6px 12px 6px 6px; padding-inline-start: 6px; cursor: pointer; font-size: 14px; font-weight: 600; }
.cwheel input[type="color"] { inline-size: 40px; block-size: 40px; border: 0; padding: 0; border-radius: 10px; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); cursor: pointer; }
.cwheel input[type="color"]::-webkit-color-swatch-wrapper { padding: 4px; }
.cwheel input[type="color"]::-webkit-color-swatch { border: 2px solid #fff; border-radius: 7px; }
.cwheel input[type="color"]::-moz-color-swatch { border: 2px solid #fff; border-radius: 7px; }
.input.hex { inline-size: 110px; font-family: ui-monospace, monospace; text-align: center; }
.xfile { display: inline-flex; align-items: center; border-radius: 20px; padding: 8px 14px; font-size: 14px; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); cursor: pointer; font-weight: 600; }
.xfile:active { transform: scale(.95); }
.xchips .fx { font-size: 11px; opacity: .8; margin-inline-start: 4px; }

/* privacy page */
.plist { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; font-size: 15px; line-height: 1.6; }
.plink { color: var(--brand); font-weight: 600; }

/* lessons per subject: a row per subject, and per-grade rows when the count differs between grades */
.prow { display: flex; align-items: center; gap: 12px; padding: 8px 4px; }
.prow .tn { display: block; }
.prow.sub { padding-block: 4px; padding-inline-start: 22px; }
.prow.sub .tn small { font-size: 14px; color: var(--ink-2); }
.big-step.mini .pnum { inline-size: 2.6em; block-size: 44px; text-align: center; font: inherit; font-size: 20px; font-weight: 700; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 0; }
.big-step.mini .pnum:focus { outline: 2px solid var(--brand); outline-offset: 1px; }

/* waitlist */
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.flabel { font-size: 16px; font-weight: 600; margin: 4px 0 8px; }
.flabel + .chips { margin-bottom: 18px; }

/* ---------- notifications card (waitlist → home screen + push) ---------- */
.card.nfy { margin-top: 14px; display: grid; gap: 10px; }
.card.nfy h2 { margin: 0; font-size: 18px; }
#nfy { display: grid; gap: 10px; }
#nfy .hint { text-align: start; }
.nfy-steps { margin: 0; padding-inline-start: 22px; line-height: 1.9; font-size: 16px; }
.nfy-steps li::marker { color: var(--brand); font-weight: 700; }
.card.nfy + .hint { margin-top: 14px; }

/* ---------- "your timetable is on its way": steps to get told (notifications + home screen) ---------- */
.wsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.wstep { display: flex; gap: 12px; align-items: flex-start; }
.wstep .num { inline-size: 32px; block-size: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 16px; background: var(--line); color: var(--ink-2); transition: background .25s, color .25s, transform .3s var(--spring); }
.wstep.now .num { background: var(--brand); color: #fff; transform: scale(1.06); }
.wstep.done .num { background: var(--ok-bg); color: var(--ok); }
.wstep > div { flex: 1; min-width: 0; display: grid; gap: 8px; }
.wstep b { font-size: 17px; line-height: 1.4; padding-top: 3px; }
.wstep p { margin: 0; color: var(--ink-2); font-size: 15px; }
.wstep.next b { color: var(--ink-3); font-weight: 600; }
.wstep.done b { color: var(--ok); }
.ios-share { vertical-align: -3px; color: var(--brand); }
.kbd { display: inline-grid; place-items: center; min-inline-size: 24px; padding: 0 6px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.okline.center { text-align: center; }
.wait-note { margin-top: 14px; }
.wait-pill { inline-size: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: start; border-color: var(--brand); background: var(--brand-soft); margin-bottom: 12px; cursor: pointer; }
.wait-pill small { grid-column: 1; color: var(--ink-2); font-size: 14px; }
.wait-pill .go { grid-row: 1 / span 2; grid-column: 2; color: var(--brand); font-size: 22px; }

.tswitch { text-align: center; margin: 28px 0 8px; }
.tswitch button { background: none; border: 0; color: var(--ink-2, #666); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; padding: 10px 12px; min-height: 44px; cursor: pointer; }

.nfy-top { margin: 16px 0; }
.nfy-top h2 { font-size: 18px; line-height: 1.45; margin: 0 0 4px; }
.nfy-top > .hint { margin: 0 0 12px; }

/* the full-screen notifications step */
.nfy-full { text-align: center; }
.nfy-full .lead { margin-bottom: 18px; }
.bsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; text-align: start; }
.bstep { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.bstep .num { inline-size: 36px; block-size: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--brand); color: #fff; font-size: 17px; }
.bstep.next { opacity: .62; }
.bstep.next .num { background: var(--line-strong); }
.bstep.done .num { background: #16a34a; }
.bstep b { display: block; font-size: 17px; line-height: 1.45; }
.bstep p { margin: 4px 0 10px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.bstep .pic { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 14px; border-radius: 14px; background: var(--bg, rgb(0 0 0 / .04)); border: 1px solid var(--line); color: var(--brand); }
.bstep .pic.menu-row { color: var(--ink); font-weight: 600; justify-content: space-between; inline-size: 100%; box-sizing: border-box; }
.bstep .pic.app-ico { flex-direction: column; gap: 4px; padding: 10px 16px; }
.bstep .pic.app-ico img { border-radius: 12px; }
.bstep .pic.app-ico small { color: var(--ink); font-size: 12px; }
.nf-big { inline-size: 100%; min-height: 54px; font-size: 18px; margin-top: 4px; }
.nf-one { margin-top: 8px; }
.nf-denied { text-align: start; margin-bottom: 12px; }
.nf-denied p { margin: 6px 0 0; line-height: 1.7; }
.nf-ok { font-size: 20px; margin-top: 18px; }
.nf-later { margin: 0 auto; display: block; }
.nfy-full img.big-mascot { inline-size: 72px; block-size: 72px; border-radius: 20px; margin: 0 auto 8px; }
.nfy-full h1 { font-size: 24px; }

/* a section another teacher already picked for this subject */
.chip.taken:not([aria-pressed="true"]) { border-style: dashed; color: var(--ink-3); }
.grade-row:has(.taken-note) { flex-wrap: wrap; }
.taken-note { display: block; inline-size: 100%; padding-inline-start: 62px; font-size: 13px; color: var(--ink-3); margin-top: -2px; }

/* «اصنع جدولك» waits until every teacher sent: grey, still tappable to say why */
.btn.primary.is-off { background: var(--line-strong); color: var(--ink-2); box-shadow: none; }
.bar-note { display: block; text-align: center; font-size: 13px; color: var(--ink-3); }
.need-list { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 6px; max-block-size: 40vh; overflow-y: auto; }
.need-list li { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.need-list li small { margin-inline-start: auto; color: var(--ink-3); font-size: 13px; }
.need-list li.more { color: var(--ink-3); justify-content: center; }
.need-list .av { inline-size: 30px; block-size: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: var(--line); flex: none; }

/* a little home screen: grey app tiles and ours with its real icon */
.pic.home-pic { display: grid; grid-template-columns: repeat(4, 44px); gap: 12px 16px; justify-content: center; align-items: start; padding: 16px 12px 12px; margin: 10px auto 12px; inline-size: max-content; max-inline-size: 100%; border-radius: 22px; background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 22%, var(--surface)), color-mix(in srgb, var(--brand) 6%, var(--surface))); border: 1px solid var(--line); }
.pic.home-pic i { inline-size: 44px; block-size: 44px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.pic.home-pic .me { display: grid; justify-items: center; gap: 4px; }
.pic.home-pic .me img { inline-size: 44px; block-size: 44px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 3px var(--brand); animation: homeping 1.6s ease-in-out 2; }
.pic.home-pic .me small { font-size: 11px; font-weight: 700; color: var(--ink); white-space: nowrap; }
@keyframes homeping { 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .pic.home-pic .me img { animation: none; } }
.nf-must { margin: 0; }
