/* Styles for what public/extras.js adds to screens, and for the bar shown while an admin sees the portal as a
   learner (app.js). Kept apart from app.css so the screens' own styles can be reworked freely. Tokens only. */
.seen { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--tx-3); }
.seen i { width: 8px; height: 8px; border-radius: 50%; background: var(--tx-3); opacity: .5; }
.seen.on { color: var(--ok-tx); }
.seen.on i { background: var(--ok-tx); opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok-tx) 22%, transparent); }

.viewbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 18px; background: var(--warn-bg); color: var(--warn-tx); border-bottom: 1px solid color-mix(in srgb, var(--warn-tx) 30%, transparent); font-size: .9rem; }
.viewbar > span { flex: 1 1 240px; }
.viewbar .ico { width: 20px; height: 20px; }
.viewbar .btn { background: var(--card); color: var(--tx); border: 1px solid var(--line-strong); }

.plan-panel .btn.pri { align-self: flex-start; }
/* RP1 version C (Umar, 24 Nov): the teacher's Revision plan box, one card per class (extras.js planOnFile). */
.rp-cards { display: grid; gap: 10px; }
.rp-card { container: rpcard / inline-size; display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.rp-h { display: flex; align-items: flex-start; gap: 8px; }
.rp-t { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; min-width: 0; padding-top: 5px; }
.rp-h .rc-k { margin: 0; }
.rp-chip { font: 700 .66rem/1 var(--body); padding: 4px 8px; border-radius: 99px; background: var(--info-bg); color: var(--info-tx); }
.rp-open { margin-left: auto; flex: none; }
.rp-week { display: flex; align-items: center; gap: 14px; }
.rp-n { display: none; align-items: center; gap: 8px; }
.rp-n b { font: 800 2rem/1 var(--body); color: var(--tx); }
.rp-n span { font-size: .7rem; line-height: 1.2; color: var(--tx-3); }
.rp-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; flex: 1; max-width: 260px; }
.rp-d { display: grid; justify-items: center; gap: 3px; }
.rp-d b { font: 800 .62rem/1 var(--body); color: var(--tx-3); }
.rp-d i { width: 22px; height: 22px; border-radius: 50%; background: var(--mute-bg); display: grid; place-items: center; font-style: normal; }
.rp-d.s-done i { background: var(--ok-tx); }
.rp-d.s-done i::after { content: ""; width: 9px; height: 5px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.rp-d.s-missed i { background: var(--warn-tx); }
.rp-d.s-missed i::after { content: ""; width: 9px; height: 2.5px; background: #fff; border-radius: 2px; }
.rp-d.s-today i { background: none; box-shadow: inset 0 0 0 2.5px var(--key); }
.rp-d.s-today b { color: var(--key); }
.rp-d.t-on i { background: var(--ok-bg); }
.rp-d.s-break i { background: repeating-linear-gradient(135deg, var(--mute-bg) 0 4px, var(--line-strong) 4px 6px); }
.rp-d.s-ahead i { background: none; box-shadow: inset 0 0 0 1.5px var(--line); }
.rp-line { margin: 0; font-size: .78rem; color: var(--tx-2); }
.rp-more summary { font-size: .78rem; }
@container rpcard (min-width: 520px) { .rp-n { display: flex; } }
.plan-card .pill .ico { width: 13px; height: 13px; }

/* The revision plan inside the portal (plan.js): a slim header, then the plan in its frame, as tall as the window allows. */
.planpage { display: flex; flex-direction: column; gap: 10px; }
.planbar { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; }
.planbar .words { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.planbar h1 { font-family: var(--disp); font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.1; margin: 0; font-variant-numeric: lining-nums; }
.planframe { display: block; width: 100%; height: var(--h, 72vh); min-height: 420px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow); }
@media (max-width: 720px) { .planframe { width: calc(100% + 2 * var(--pad)); margin-inline: calc(-1 * var(--pad)); border-radius: 0; border-inline: 0; box-shadow: none; } }
.plan-saved { font-weight: 700; }

/* Hifdh history (hifdh.js): the date on the left, what was done on the right, one line per day. */
.hh { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hh th, .hh td { text-align: left; vertical-align: top; padding: 9px 12px; border-top: 1px solid var(--line); }
.hh thead th { border-top: 0; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tx-3); }
.hh tbody th { width: 8.5rem; white-space: nowrap; font-weight: 400; }
.hh tbody th b { display: block; }
.hh tr.none th, .hh tr.none td { color: var(--tx-3); padding-block: 5px; }
.hh tr.none th b { font-weight: 400; }
.hh-part { display: flex; gap: 10px; align-items: baseline; padding: 2px 0; }
.hh-k { flex: 0 0 6.4rem; display: inline-flex; gap: 5px; align-items: center; font-size: .8rem; font-weight: 800; }
.hh-k .ico { width: 14px; height: 14px; }
.hh-part.sabaq .hh-k { color: var(--ok-tx); }
.hh-part.para .hh-k { color: var(--info-tx); }
.hh-part.dhor .hh-k { color: var(--gold-tx); }
.hh-part.lesson .hh-k { color: var(--plan-tx); }
.hh-v { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .hh tbody th { width: 5.4rem; white-space: normal; } .hh-part { flex-direction: column; gap: 0; } .hh-k { flex: none; } }

/* Build 6: the pathway (public/pathway.js). The check's words and, under them, what it asks for. */
.steps .t .path-d, .path-row .path-d { display: block; font-weight: 400; }
.path-top { padding: 14px 18px 6px; }
.path-top p { margin: 0; }
.path .acc .steps > div { padding-left: 0; padding-right: 0; }
.path-foot { padding: 4px 18px 14px; margin: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.path-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.path-row .t { flex: 1; min-width: 0; }
.path-row .btn { flex: none; }
