.student {
  color-scheme: light;
  --accent: #1739A8;
  --tap: 48px;
  --on-accent: #fff;
  margin: 0;
  background: #f5f9fe;
  color: #17283f;
  font: 17px/1.75 "PN Sans", system-ui, sans-serif;
}
.student [hidden] { display: none !important; }
.student-wrap { width: min(calc(100% - 2rem), 60rem); margin-inline: auto; }
.student-header { background: #e7f1ff; border-block-end: 1px solid #d7e5f8; }
.student-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; min-height: 4.5rem; }
.student-bar h1 { font-size: clamp(1.3rem, 4vw, 2rem); margin: .4rem 0; }
.student-tabs { display: flex; flex-wrap: wrap; gap: .5rem; padding-block: 1.1rem .5rem; }
.student-tabs a { background: white; border: 1px solid #d6e2f2; color: #184b85; border-radius: 1rem; padding: .55rem .9rem; text-decoration: none; }
.student-tabs a[aria-current="page"] { background: #E4EDFF; border-color: #1b56a1; color: #1739A8; }
.student-card { background: white; border: 1px solid #d6e2f2; border-radius: 1.25rem; margin-block: .75rem; padding: clamp(1rem, 4vw, 1.65rem); overflow-wrap: anywhere; }
.student-card h3, .student-card p { margin-block: 0 .45rem; white-space: pre-wrap; }
.student-card audio { max-inline-size: 100%; }
.student-form { display: grid; gap: .75rem; max-inline-size: 36rem; }
.student-form label { display: grid; gap: .3rem; }
.student-form label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: .6rem; }
.student-form .ui-input { box-sizing: border-box; inline-size: 100%; font: inherit; }
.student-form textarea { resize: vertical; }
.student-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.student-status { margin-block: .75rem; }
.student a:not(.ui-btn, .student-tabs a) { color: #184b85; }
.student :focus-visible { outline: 3px solid #225caf; outline-offset: 3px; }
.student footer { margin-block: 2rem; }

.student-card summary, #student-content summary { min-block-size:48px; align-content:center; }

body.student:not(.rh) a[href] { display: inline-flex; align-items: center; min-height: 48px; min-width: 48px; }

.student-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.25rem, 1fr)); gap: .5rem; }
.student-form .student-picker label, .student-picker label { display: grid; justify-items: center; align-content: center; min-block-size: 48px; padding: .5rem; border: 1px solid #d6e2f2; border-radius: .75rem; cursor: pointer; }
.student-picker label:has(input:checked) { background: #e4edff; border-color: #1739a8; }
.student-picker-avatar { color: #1739a8; font-weight: 700; }

/* ---------------------------------------------------------------------------------------------------------------
   The pupil's own space on the role home (ds/home.css), 28 Nov 2026. Light only, solid text colours, one blue action. */
body.student.rh { background: var(--bg); color: var(--fg-1); font: var(--w-regular) var(--t-body)/1.6 var(--font); }
.student.rh .student-status:empty { display: none; }
.student.rh .student-status { color: var(--fg-2); font-size: var(--t-small); }
.student-voice-line { margin: 0; padding: var(--s-4) var(--gutter); background: var(--bg-panel); color: var(--fg-2); font-size: var(--t-small); }
.student.rh .rh-top .ui-btn { min-height: 54px; }
.student.rh .rh-head { margin-block: var(--s-2) var(--s-5); }
.student.rh .rh-sec { margin-top: var(--s-2); }
.student.rh a.rh-row, .student.rh a.ui-btn { text-decoration: none; }
.student-subj { flex: none; display: inline-grid; }
.student-week > summary { list-style: none; cursor: pointer; }
.student-week > summary::-webkit-details-marker { display: none; }
.student-week > summary .rh-chev { transform: rotate(-90deg); transition: transform var(--t-quick, 120ms) ease; }
.student-week[open] > summary .rh-chev { transform: rotate(90deg); }
.student-week > summary .rh-row-title { color: var(--action); }
.student-week[open] > summary { border-bottom: 1px solid var(--bg-sunken); }
.student-week-list .rh-row:last-child { border-bottom: 0; }
.rh-list > .student-week:last-child > summary:not(:only-child) { border-bottom: 0; }
.student-week:not([open]) > summary { border-bottom: 0; }
/* homework, marks, threads: the same grey card as every row group */
.student.rh .student-card { background: var(--bg-panel); border: 0; border-radius: var(--r-2xl); margin-block: 0 var(--s-4); padding: var(--s-5) var(--s-6); }
.student.rh .student-card h3 { font-size: var(--t-body); font-weight: var(--w-medium); margin: 0 0 var(--s-2); }
.student.rh .student-card p { color: var(--fg-2); }
.student.rh .student-card > details > summary { font-weight: var(--w-medium); color: var(--fg-1); }
.student.rh #student-content > div:has(> pn-illus) { background: var(--bg-panel); border-radius: var(--r-2xl); padding: var(--s-6); margin-bottom: var(--s-4); text-align: center; color: var(--fg-2); }
.student.rh #student-content > div:has(> pn-illus) pn-illus { display: block; width: 140px; margin: 0 auto var(--s-3); }
.student.rh #student-content > div:has(> pn-illus) p { margin: 0; }
.student.rh .student-form .ui-btn { width: 100%; }
/* signed out: one door */
.student-signin { display: grid; gap: var(--s-4); padding-top: var(--s-6); }
.student-signin pn-illus { display: block; width: 168px; }
.student-signin .rh-lede { margin: 0; }
.student-signin .ui-btn { text-decoration: none; justify-content: center; }
@media (min-width: 760px) { .student-signin { max-width: 520px; } }
/* this page loads no kit.css: the role home needs border-box sizing (its main column is width:100% + gutters) */
body.student.rh, body.student.rh *, body.student.rh *::before, body.student.rh *::after { box-sizing: border-box; }
body.student.rh { margin: 0; }
body.student.rh h1, body.student.rh h2, body.student.rh p { margin-block-start: 0; }
.student.rh h1[tabindex="-1"]:focus { outline: none; }
body.student .student-signin a.student-portal-link { justify-self: center; display: inline-flex; align-items: center; min-height: 48px; padding-inline: var(--s-4); color: var(--action); font-weight: var(--w-medium); text-decoration: none; }

/* ---------------------------------------------------------------------------------------------------------------
   «فضائي» for the child who needs more support (owner remark 20261128-170502-15, note 17597, Document 06), 28 Nov 2026.
   Light only, solid text colours, one blue action, targets ≥ 56 px, text ≥ 20 px for the child's own content.
   body[data-profile] = the presentation the teacher or the parent chose (pn-profiles.js); the child never sees its name. */
.student.rh { --pu-tap: 56px; --pu-ok: var(--done, #0B7A35); --pu-ok-bg: var(--done-bg, #E3F4E8); --pu-ok-ink: var(--done-ink, #0B5A27);
  --pu-hi: #FFE7A3; --pu-band: #E6ECFA; --pu-soft: #FBF3DC; --pu-again: #8A4B00; }
.student.rh .rh-main { padding-bottom: 150px; }
.student.rh .pu-btn { min-height: var(--pu-tap); font-size: 19px; width: 100%; justify-content: center; text-decoration: none; }
/* the picture schedule: أوّلًا… ثمّ… أخيرًا */
.pu-sched { list-style: none; margin: 0 0 var(--s-6); padding: 0; display: grid; gap: var(--s-4); }
.pu-slot { display: grid; grid-template-columns: 64px 52px 1fr auto; align-items: center; gap: var(--s-5); min-height: 72px;
  padding: var(--s-4) var(--s-6); border-radius: var(--r-2xl); background: var(--bg-panel); color: var(--fg-2); }
.pu-word { font-size: 16px; font-weight: var(--w-medium); color: var(--fg-3); }
.pu-pic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--bg); }
.pu-pic .ds-subj { width: 32px; height: 32px; }
.pu-slot-main { display: grid; gap: 2px; min-width: 0; }
.pu-slot-main b { font-size: 20px; font-weight: var(--w-medium); color: var(--fg-1); }
.pu-slot-main small { font-size: 16px; line-height: 1.5; color: var(--fg-3); }
.pu-slot.is-now { background: #E8EEFC; box-shadow: inset 0 0 0 2px var(--action); }
.pu-slot.is-now .pu-word { color: var(--action); }
.pu-slot.is-done { background: var(--pu-ok-bg); }
.pu-tick svg, .pu-strengths svg { width: 28px; height: 28px; fill: none; stroke: var(--pu-ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.student.rh .pu-now > b { font-size: 22px; line-height: 1.5; }
.pu-kicker { font-size: 16px; font-weight: var(--w-medium); color: var(--action); }
.student.rh .pu-now .ui-btn { min-height: 64px; font-size: 22px; }
.student.rh .pu-now.is-done { background: var(--pu-ok-bg); }
/* tonight, with the parent */
.pu-home { display: flex; gap: var(--s-6); align-items: flex-start; padding: var(--s-6); border-radius: var(--r-2xl); background: var(--pu-soft); margin-bottom: var(--s-6); }
.pu-home-pic svg { width: 36px; height: 36px; fill: none; stroke: #7A5A00; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pu-home-main { display: grid; gap: var(--s-2); min-width: 0; }
.pu-home-main b { font-size: 18px; color: #5E4500; }
.pu-home-main p { margin: 0; font-size: 20px; line-height: 1.6; color: var(--fg-1); }
.pu-hw summary { min-height: var(--pu-tap); display: flex; align-items: center; font-weight: var(--w-medium); cursor: pointer; }
.pu-demo { margin-top: var(--s-8); }
.pu-demo p { color: var(--fg-2); font-size: 16px; }
.pu-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-4); }
.student.rh .pu-seg .ui-btn { min-height: var(--pu-tap); font-size: 16px; text-decoration: none; justify-content: center; }
/* the lesson summary */
.pu-sum { --pu-word: 0em; --pu-line: 1.8; --pu-scale: 1; display: grid; gap: var(--s-6); padding: var(--s-7); border-radius: var(--r-2xl); background: var(--bg-panel); }
.pu-sum-title { margin: 0; font-size: 18px; font-weight: var(--w-medium); color: var(--fg-2); }
.pu-goal { margin: 0; font-size: calc(22px * var(--pu-scale)); line-height: 1.5; font-weight: var(--w-medium); color: var(--fg-1); }
.pu-sum-text { display: grid; gap: var(--s-6); }
.pu-step { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-5); align-items: start; }
.pu-step.is-one { grid-template-columns: 1fr; justify-items: start; }
.pu-step.is-example { padding: var(--s-5); border-radius: var(--r-2xl); background: var(--bg); }
.pu-step p { margin: 0; font-size: calc(19px * var(--pu-scale)); line-height: var(--pu-line); word-spacing: var(--pu-word); color: var(--fg-1); }
.pu-step-pic { width: 44px; height: 44px; color: var(--action); margin-top: 4px; }
.pu-step.is-one .pu-step-pic { width: 96px; height: 96px; }
.pu-sum--reading .pu-line { display: block; padding: 2px var(--s-4); border-radius: 10px; }
.pu-line.on { background: var(--pu-band); }
.pu-w { border-radius: 6px; padding: 0 1px; }
.pu-w.on { background: #E4EDFF; }
.pu-contrast { background: #FFFFFF; box-shadow: inset 0 0 0 3px #161616; }
.pu-contrast .pu-step p, .pu-contrast .pu-goal { color: #000000; font-weight: var(--w-medium); }
.pu-count { margin: 0; text-align: center; color: var(--fg-3); font-size: 16px; }
.pu-nav { display: grid; gap: var(--s-4); }
.student.rh .pu-read { min-height: var(--pu-tap); justify-self: start; gap: var(--s-4); font-size: 18px; padding-inline: var(--s-7); }
.pu-read svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pu-qrow { display: flex; flex-wrap: wrap; gap: var(--s-6); }
.pu-qty { display: inline-flex; flex-wrap: wrap; align-items: flex-end; gap: 4px; max-width: 100%; padding: var(--s-4); }
.pu-qty i { display: block; background: #C9D5F7; border: 2px solid var(--action); border-radius: 3px; }
.pu-qty .q-h { width: 30px; height: 30px; }
.pu-qty .q-t { width: 10px; height: 30px; }
.pu-qty .q-u { width: 10px; height: 10px; border-radius: 50%; }
/* practice: one item at a time */
.pu-prog { margin-bottom: var(--s-6); }
.pu-item { display: grid; gap: var(--s-6); padding: var(--s-7); border-radius: var(--r-2xl); background: var(--bg-panel); }
.pu-qrow-top { display: grid; gap: var(--s-5); }
.pu-q { margin: 0; font-size: 23px; line-height: 1.6; font-weight: var(--w-medium); color: var(--fg-1); }
.pu-q:focus { outline: none; }
.pu-s { margin: 0; padding: var(--s-6); border-radius: var(--r-2xl); background: var(--bg); font-size: 26px; line-height: 1.8; text-align: center; color: var(--fg-1); }
.pu-say { font-size: 28px; }
.pu-opts { display: grid; gap: var(--s-5); }
.pu-opts--pics { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.pu-inline { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-5); padding: var(--s-6); border-radius: var(--r-2xl); background: var(--bg); }
.pu-opt { min-height: 64px; min-width: 64px; padding: var(--s-5) var(--s-7); border: 2px solid var(--second-line, #D9DCE3); border-bottom-width: 4px; border-radius: 16px;
  background: #FFFFFF; color: var(--fg-1); font: var(--w-medium) 24px/1.5 var(--font); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform var(--t-quick, 120ms) ease, background-color var(--t-quick, 120ms) ease; }
.pu-opt:active { transform: translateY(2px); }
.pu-opt--circle { border-radius: 999px; padding-inline: var(--s-8); }
.pu-opt[aria-pressed="true"] { border-color: var(--action); background: #E8EEFC; }
.pu-opt.is-ok, .pu-opt.is-show { border-color: var(--pu-ok); background: var(--pu-ok-bg); color: var(--pu-ok-ink); }
.pu-opt--circle.is-ok, .pu-opt--circle.is-show { box-shadow: 0 0 0 4px var(--pu-ok); }
.pu-opt.is-miss { background: #F3F2EE; color: var(--fg-3); border-color: #E4E3DE; }
.pu-opt:disabled { cursor: default; }
.pu-draw { width: 96px; height: 64px; fill: none; stroke: var(--fg-1); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.pu-draw .pu-right { stroke-width: 2.2; }
.pu-opt .pu-qty i { background: #E9E8E3; border-color: var(--fg-1); }
.pu-link { position: relative; display: grid; grid-template-columns: 1fr 44px 1fr; gap: 0; }
.pu-link-col + .pu-link-lines + .pu-link-col { grid-column: 3; }
.pu-link-col:first-child { grid-column: 1; }
.pu-link-col { display: grid; gap: var(--s-5); align-content: start; position: relative; z-index: 1; }
.pu-link-col .pu-opt { font-size: 21px; padding-inline: var(--s-5); }
.pu-link-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.pu-link-lines line { stroke: var(--pu-ok); stroke-width: 4; stroke-linecap: round; }
.pu-fb { margin: 0; min-height: 1.6em; font-size: 20px; font-weight: var(--w-medium); color: var(--fg-2); }
.pu-fb.is-ok { color: var(--pu-ok-ink); }
.pu-fb.is-again { color: var(--pu-again); }
.pu-timer { display: flex; align-items: center; gap: var(--s-5); margin: 0; color: var(--fg-3); font-size: 16px; }
.pu-ring { --d: 120s; width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(#9DB2F0 calc(var(--fill, 0) * 1turn), #E7E6E1 0); box-shadow: inset 0 0 0 2px var(--action); }
@property --fill { syntax: '<number>'; inherits: false; initial-value: 0; }
.pu-ring { animation: pu-fill var(--d) linear forwards; }
@keyframes pu-fill { to { --fill: 1; } }
/* the end: effort first */
.student.rh .pu-end { background: var(--pu-ok-bg); justify-items: center; text-align: center; }
.student.rh .pu-end > b { font-size: 24px; color: var(--pu-ok-ink); }
.pu-end-check { transform: scale(1.6); margin: var(--s-6) 0 var(--s-4); }
.pu-strengths { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.pu-strengths li { display: flex; align-items: center; gap: var(--s-5); min-height: 64px; padding: var(--s-4) var(--s-6); border-radius: var(--r-2xl); background: var(--bg-panel); font-size: 20px; color: var(--fg-1); }
.pu-strengths small { display: block; font-size: 15px; color: var(--fg-3); }
.pu-strengths svg { fill: #F5C84C; stroke: #9A6B00; stroke-width: 1.4; flex: none; }
.pu-effort { padding: var(--s-6); border-radius: var(--r-2xl); background: var(--pu-ok-bg); color: var(--pu-ok-ink); font-size: 22px; font-weight: var(--w-medium); }
/* the break: always there */
.pu-break { position: fixed; z-index: 44; inset-inline-end: 16px; bottom: calc(63px + env(safe-area-inset-bottom) + 14px);
  display: inline-flex; align-items: center; gap: var(--s-4); min-height: var(--pu-tap); padding: 0 var(--s-7); border-radius: 999px;
  border: 2px solid var(--second-line, #D9DCE3); background: #FFFFFF; color: var(--fg-1); font: var(--w-medium) 18px/1 var(--font);
  box-shadow: 0 4px 14px rgba(22, 22, 22, .12); cursor: pointer; }
.pu-break svg { width: 22px; height: 22px; fill: var(--action); }
.pu-rest { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: var(--gutter, 16px); background: #EEF3EC; }
.pu-rest-in { display: grid; gap: var(--s-6); justify-items: center; text-align: center; width: min(100%, 420px); }
.pu-rest h2 { margin: 0; font-size: 28px; color: var(--fg-1); }
.pu-rest p { margin: 0; font-size: 21px; color: var(--fg-2); }
.pu-breath { width: 150px; height: 150px; border-radius: 50%; background: #CFE3D2; animation: pu-breathe 8s ease-in-out infinite; }
@keyframes pu-breathe { 0%, 100% { transform: scale(.72); } 50% { transform: scale(1); } }
.student.rh .pu-rest .ui-btn { min-height: 60px; }
.student.rh .pu-rest #pu-quiet[aria-pressed="true"] { border-color: var(--action); }
/* the quiet screen (the child's own choice) and reduced motion: nothing moves */
body.pu-quiet *, body.pu-quiet *::before, body.pu-quiet *::after { animation: none !important; transition: none !important; }
body.pu-quiet pn-illus { display: none !important; }
body.pu-quiet .pu-slot.is-now { background: var(--bg-panel); }
@media (prefers-reduced-motion: reduce) { .pu-breath, .pu-ring { animation: none; } .pu-ring { --fill: .5; } .pu-opt { transition: none; } }
/* presentations (chosen by the teacher or the parent) */
body[data-profile="reading"] .pu-item .pu-q, body[data-profile="reading"] .pu-s, body[data-profile="reading"] .pu-opt { word-spacing: .3em; line-height: 2; }
body[data-profile="visual"] .pu-q { font-size: 28px; }
body[data-profile="visual"] .pu-opt { font-size: 28px; border-color: #161616; }
body[data-profile="visual"] .pu-item, body[data-profile="visual"] .pu-slot { box-shadow: inset 0 0 0 3px #161616; background: #FFFFFF; }
body[data-profile="calm"] .pu-opt, body[data-profile="calm"] .pu-opt:active { transition: none; transform: none; }
body[data-profile="calm"] .pu-pic { width: 60px; height: 60px; }
body[data-profile="calm"] .pu-slot { grid-template-columns: 64px 60px 1fr auto; }
@media (max-width: 380px) {
  .pu-slot { grid-template-columns: 52px 48px 1fr auto; gap: var(--s-4); padding-inline: var(--s-5); }
  .pu-pic { width: 48px; height: 48px; }
  .pu-link { grid-template-columns: 1fr 28px 1fr; }
  .pu-link-col .pu-opt { font-size: 19px; padding-inline: var(--s-3); }
}
@media (min-width: 760px) {
  .student.rh .rh-main { max-width: 760px; }
  .pu-sched { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .pu-break { inset-inline-end: max(16px, calc((100vw - 760px) / 2)); }
}
