/* Shule by StadiPlus: friendly, big tap targets. Look "B": forest green with sunshine, on a warm cream ground.
   Children get bright subject tiles; older students and parents the same colours, used quietly. */
:root {
  --green: #0E5A43; --green-dark: #08402F; --green-tint: #E3F0EA; --gold: #FFC23D; --gold-dark: #F0AE1C; --gold-tint: #FFF3D6;
  --coral: #E8573A; --coral-tint: #FDE8E2; --sky: #2B7FD1; --sky-tint: #E6F2FD;
  --ink: #1E2A24; --muted: #5E5A4E; --line: #F0E2C8; --line-strong: #E6D3AE; --bg: #FFF8EC; --card: #fff; --danger: #B42318;
  --radius: 22px; --head: "Outfit", system-ui, sans-serif; --body: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); -webkit-text-size-adjust: 100%; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 24px; font-weight: 700; }
p { margin: 0; }
.sh-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 640px) { .sh-wrap { padding: 0 16px; } }
.sh-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.sh-stack { display: flex; flex-direction: column; gap: 16px; }
.muted { color: var(--muted); } .small { font-size: 14px; } .tiny { font-size: 12.5px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.sh-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.sh-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.sh-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.sh-mark { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(145deg, #17785A, var(--green)); color: #fff; font: 800 26px/1 var(--head); display: flex; align-items: center; justify-content: center; position: relative; }
.sh-mark b { color: var(--gold); font-size: 15px; position: absolute; top: 4px; right: 5px; }
.sh-word { font: 800 24px/1 var(--head); letter-spacing: -.02em; display: flex; flex-direction: column; }
.sh-word small { font: 600 11px/1.4 var(--body); color: var(--muted); letter-spacing: .02em; }
.sh-nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sh-link { font-weight: 600; text-decoration: none; color: var(--ink); }
.sh-link:hover { color: var(--green); }
.sh-hello { color: var(--muted); font-size: 14px; }
.sh-nav form { margin: 0; }

.sh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; font: 700 16px var(--body); text-decoration: none; cursor: pointer; background: var(--green); color: #fff; }
.sh-btn:hover { background: var(--green-dark); color: #fff; }
.sh-btn-gold { background: var(--gold); color: var(--ink); } .sh-btn-gold:hover { background: var(--gold-dark); color: var(--ink); }
.sh-btn-ghost { background: transparent; color: var(--green); border: 1.5px solid var(--line-strong); background: #fff; } .sh-btn-ghost:hover { background: var(--green-tint); color: var(--green); }
.sh-btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 999px; }
.sh-btn-lg { min-height: 58px; padding: 0 32px; font-size: 18px; border-radius: 999px; }
.sh-btn-danger { background: transparent; color: var(--danger); border: 1.5px solid #F2C4BF; }
.sh-btn:disabled { opacity: .55; cursor: not-allowed; }
.sh-linkbtn { background: none; border: 0; color: var(--green); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

.sh-flash { margin-top: 16px; background: var(--green-tint); color: var(--green-dark); padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.sh-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.sh-page { padding: 32px 0 56px; }
.sh-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.sh-input { width: 100%; min-height: 50px; border: 1.5px solid #DCCDB0; border-radius: 12px; padding: 10px 14px; font: 500 16px var(--body); background: #fff; color: var(--ink); }
.sh-input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(14,90,67,.15); }
.sh-hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.sh-error { color: var(--danger); font-size: 14px; font-weight: 600; }
.sh-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.sh-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex: none; }
.sh-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sh-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .sh-grid2, .sh-grid3 { grid-template-columns: 1fr; } }

/* landing */
.sh-hero { background: radial-gradient(1200px 500px at 85% 10%, rgba(244,183,64,.18), transparent 60%), linear-gradient(160deg, #0A4C38, var(--green) 55%, #137053); color: #fff; overflow: hidden; }
.sh-hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; padding-top: 48px; }
.sh-hero h1 span { color: var(--gold); }
.sh-hero .lead { font-size: 19px; color: #D8EBE2; margin: 18px 0 26px; max-width: 560px; }
.sh-hero-img { align-self: end; display: flex; justify-content: center; }
.sh-hero-img img { width: min(440px, 100%); height: auto; display: block; filter: drop-shadow(0 20px 40px rgba(0,0,0,.25)); }
.sh-bubble { position: relative; background: #fff; color: var(--ink); border-radius: 18px; padding: 14px 18px; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.2); max-width: 330px; }
.sh-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-bottom: 40px; }
.sh-pill { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
@media (max-width: 820px) { .sh-hero-in { grid-template-columns: 1fr; padding-top: 32px; } .sh-hero-img img { width: 280px; } .sh-pills { padding-bottom: 8px; } }
.sh-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.sh-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.sh-step b { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--ink); align-items: center; justify-content: center; font-family: var(--head); margin-bottom: 10px; }
@media (max-width: 820px) { .sh-steps { grid-template-columns: 1fr; } }

/* login */
.sh-auth { max-width: 520px; margin: 0 auto; }
.sh-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #EAF0EC; border-radius: 16px; padding: 5px; margin-bottom: 18px; }
.sh-tabs button { border: 0; background: transparent; min-height: 52px; border-radius: 12px; font: 700 16px var(--body); color: var(--muted); cursor: pointer; }
.sh-tabs button[aria-selected="true"] { background: #fff; color: var(--green); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.sh-pin { letter-spacing: .5em; font-size: 26px; text-align: center; font-family: var(--head); }

/* parent dashboard */
.sh-kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sh-kid { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.sh-kid-top { display: flex; gap: 12px; align-items: center; }
.sh-face { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 800 22px var(--head); color: #fff; flex: none; }
.sh-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--green-tint); color: var(--green-dark); }
.sh-chip-gold { background: var(--gold-tint); color: #6B4400; }
.sh-chip-red { background: #FDECEA; color: var(--danger); }
.sh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.sh-stats div { background: var(--bg); border-radius: 12px; padding: 8px 4px; }
.sh-stats strong { display: block; font: 800 20px var(--head); }
.sh-stats span { font-size: 12px; color: var(--muted); }
.sh-add { border: 2px dashed #C6D2CB; background: transparent; align-items: center; justify-content: center; text-align: center; min-height: 220px; text-decoration: none; color: var(--green); font-weight: 700; }
.sh-add:hover { background: #fff; }
.sh-table { width: 100%; border-collapse: collapse; }
.sh-table td, .sh-table th { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; vertical-align: top; }
.sh-table th { font-size: 13px; color: var(--muted); font-weight: 600; }
.sh-tablewrap { overflow-x: auto; }

/* transcript */
.sh-chatlog { display: flex; flex-direction: column; gap: 12px; }
.sh-msg { max-width: 82%; padding: 12px 16px; border-radius: 18px; white-space: pre-wrap; line-height: 1.5; }
.sh-msg.me { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 6px; }
.sh-msg.tutor { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.sh-msg.flag { box-shadow: 0 0 0 2px #F5B4AD; }
.sh-msg time { display: block; font-size: 11.5px; opacity: .7; margin-top: 4px; }

/* learner home */
.is-learner { background: linear-gradient(180deg, #FFF0CC 0, var(--bg) 360px); }
.sh-subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.sh-subject { position: relative; border-radius: 22px; padding: 20px; color: #fff; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 10px 24px rgba(20,32,27,.12); overflow: hidden; border: 0; text-align: left; cursor: pointer; font: inherit; }
.sh-subject .ic { font-size: 40px; line-height: 1; }
.sh-subject .nm { font: 800 21px/1.15 var(--head); }
.sh-subject::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.14); }
.sh-subject:hover { transform: translateY(-2px); }
.sh-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sh-mode { border: 2px solid var(--line); background: #fff; border-radius: 18px; padding: 16px; text-align: left; cursor: pointer; font: inherit; }
.sh-mode[aria-pressed="true"] { border-color: var(--green); background: var(--green-tint); }
.sh-mode .ic { font-size: 28px; } .sh-mode strong { display: block; font: 700 18px var(--head); margin-top: 4px; }
@media (max-width: 640px) {
  .sh-modes { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .sh-mode { padding: 10px 8px; text-align: center; border-radius: 14px; }
  .sh-mode .ic { font-size: 24px; } .sh-mode strong { font-size: 14px; } .sh-mode .small { display: none; }
  .sh-subjects { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sh-subject { min-height: 118px; padding: 14px; border-radius: 18px; } .sh-subject .ic { font-size: 30px; } .sh-subject .nm { font-size: 16px; }
}
.sh-time { height: 12px; border-radius: 8px; background: #DDE6E0; overflow: hidden; }
.sh-time span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #2E9C77); }

/* tutor */
.sh-tutor { display: grid; grid-template-columns: minmax(300px, 44%) minmax(0, 1fr); gap: 0; height: calc(100dvh - 69px); }
.sh-stage { position: relative; background: radial-gradient(600px 400px at 50% 30%, #FFFFFF, #E4EFE8 70%); overflow: hidden; }
.sh-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.sh-stage-top { position: absolute; left: 16px; right: 16px; top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; z-index: 2; }
.sh-subj-tag { background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.sh-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-weight: 600; }
.sh-bar-load { width: 180px; height: 8px; border-radius: 6px; background: #D5E2DA; overflow: hidden; } .sh-bar-load span { display: block; height: 100%; width: 0; background: var(--green); transition: width .2s; }
.sh-tap { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.sh-caption { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(20,32,27,.82); color: #fff; padding: 10px 14px; border-radius: 14px; font-size: 15px; max-height: 30%; overflow: auto; z-index: 2; }
.sh-chat { display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.sh-chat .sh-chatlog { flex: 1; overflow-y: auto; padding: 18px 20px; }
.sh-compose { border-top: 1px solid var(--line); background: #fff; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: flex-end; }
.sh-compose textarea { flex: 1; resize: none; min-height: 52px; max-height: 140px; border: 1.5px solid #DCCDB0; border-radius: 16px; padding: 13px 16px; font: 500 16px var(--body); }
.sh-round { width: 52px; height: 52px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; font-size: 22px; }
.sh-mic { background: var(--gold-tint); color: #6B4400; } .sh-mic.on { background: var(--danger); color: #fff; animation: pulse 1.2s infinite; }
.sh-send { background: var(--green); color: #fff; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(180,35,24,.4); } 50% { box-shadow: 0 0 0 10px rgba(180,35,24,0); } }
.sh-quick { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 20px 10px; }
.sh-quick button { border: 1.5px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 8px 14px; font: 600 14px var(--body); cursor: pointer; color: var(--ink); }
.sh-replay { background: none; border: 0; color: var(--green); font-size: 13px; font-weight: 700; cursor: pointer; padding: 4px 0 0; }
.sh-typing span { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: #9AABA2; animation: bounce 1s infinite; }
.sh-typing span:nth-child(2) { animation-delay: .15s; } .sh-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,80%,100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }
@media (max-width: 860px) {
  .sh-tutor { grid-template-columns: minmax(0, 1fr); grid-template-rows: 38dvh minmax(0, 1fr); }
  .sh-caption { display: none; }
}
.sh-footer { border-top: 1px solid var(--line); background: #fff; padding: 22px 0; margin-top: 40px; font-size: 14px; color: var(--muted); }
.sh-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* phones */
.sh-compose textarea { min-width: 0; }
.sh-subj-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 640px) {
  .sh-bar { min-height: 58px; flex-wrap: nowrap; }
  .sh-word { font-size: 21px; } .sh-word small { display: none; }
  .sh-mark { width: 36px; height: 36px; font-size: 23px; }
  .sh-nav { gap: 10px; flex-wrap: nowrap; }
  .sh-hello, .is-learner .sh-link, .sh-nav .sh-link-desktop { display: none; }
  .sh-nav .sh-btn-gold.sh-btn-sm { padding: 0 10px; font-size: 13px; }
  .sh-tutor { height: calc(100dvh - 59px); }
  .sh-stage-top { left: 10px; right: 10px; top: 10px; }
  .sh-stage-top .sh-btn-sm { min-height: 34px; padding: 0 10px; }
  .sh-back-text { display: none; }
  .sh-subj-tag { font-size: 13px; padding: 5px 10px; }
  .sh-tap { bottom: 12px; min-height: 46px; font-size: 15px; padding: 0 16px; white-space: nowrap; }
  .sh-chat .sh-chatlog { padding: 14px; }
  .sh-quick { padding: 0 14px 8px; flex-wrap: nowrap; overflow-x: auto; }
  .sh-quick button { white-space: nowrap; }
  .sh-compose { padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); gap: 8px; }
  .sh-round { width: 46px; height: 46px; font-size: 19px; }
  .sh-msg { max-width: 90%; }
}

/* ---------- ways of learning, teachers, classes, payments ---------- */
.sh-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .sh-ways { grid-template-columns: 1fr; } }
.sh-way { position: relative; display: flex; flex-direction: column; gap: 4px; border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 14px 16px; cursor: pointer; }
.sh-way input { position: absolute; opacity: 0; pointer-events: none; }
.sh-way:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
.sh-way:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.sh-way strong { font: 700 17px var(--head); } .sh-way .ic { font-size: 24px; }
.sh-modebadge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #EEF2FF; color: #3730A3; }
.sh-modebadge.ai { background: var(--green-tint); color: var(--green-dark); } .sh-modebadge.teacher { background: var(--gold-tint); color: #6B4400; }
.sh-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.sh-inline select.sh-input { min-height: 38px; padding: 0 10px; font-size: 14px; width: auto; }
.sh-filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.sh-filter .sh-field { flex: 1 1 220px; }
.sh-teachers { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
@media (max-width: 400px) { .sh-teachers { grid-template-columns: minmax(0, 1fr); } }
.sh-tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
a.sh-tcard:hover { border-color: var(--green); box-shadow: 0 6px 22px rgba(14,90,67,.08); }
.sh-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(145deg, #17785A, var(--green)); color: #fff; font: 800 20px var(--head); display: flex; align-items: center; justify-content: center; flex: none; }
.sh-avatar.lg { width: 84px; height: 84px; font-size: 32px; }
.sh-subjtags { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-subjtags span { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: #F1F4F2; color: var(--ink); }
.sh-prices { display: flex; gap: 10px; }
.sh-prices div { flex: 1; background: var(--bg); border-radius: 12px; padding: 8px 10px; }
.sh-prices strong { display: block; font: 800 18px var(--head); } .sh-prices span { font-size: 12.5px; color: var(--muted); }
.sh-stars { color: #D99A0B; font-weight: 700; }
.sh-classes { display: flex; flex-direction: column; gap: 10px; }
.sh-class { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.sh-class .when { text-align: center; background: var(--green-tint); border-radius: 12px; padding: 8px 4px; line-height: 1.2; }
.sh-class .when b { display: block; font: 800 20px var(--head); color: var(--green-dark); } .sh-class .when span { font-size: 12px; color: var(--muted); }
.sh-class .act { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.sh-class form { margin: 0; }
@media (max-width: 640px) { .sh-class { grid-template-columns: 72px minmax(0, 1fr); } .sh-class .act { grid-column: 1 / -1; align-items: stretch; } .sh-class .act .sh-btn { width: 100%; } }
.sh-kindtag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #EEF2FF; color: #3730A3; }
.sh-kindtag.group { background: #FDF2F8; color: #9D174D; }
.sh-pay { max-width: 520px; margin: 0 auto; }
.sh-pay .amount { font: 800 40px var(--head); color: var(--green-dark); }
.sh-wait { display: flex; gap: 12px; align-items: center; background: var(--gold-tint); border-radius: 14px; padding: 12px 14px; }
.sh-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #F3D9A0; border-top-color: #B07800; animation: sh-spin 1s linear infinite; flex: none; }
@keyframes sh-spin { to { transform: rotate(360deg); } }
.sh-ok { background: var(--green-tint); border-radius: 14px; padding: 12px 14px; color: var(--green-dark); font-weight: 600; }
.sh-bad { background: #FDECEA; border-radius: 14px; padding: 12px 14px; color: var(--danger); }
.sh-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 14px; }
.sh-checks label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; padding: 4px 0; }
.sh-checks input { width: 18px; height: 18px; accent-color: var(--green); margin-top: 2px; flex: none; }
details.sh-stagebox { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; background: #fff; }
details.sh-stagebox summary { cursor: pointer; font-weight: 700; }
details.sh-stagebox[open] summary { margin-bottom: 8px; }
.sh-statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.sh-statrow > div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.sh-statrow strong { display: block; font: 800 26px var(--head); }
.sh-statrow span { font-size: 13px; color: var(--muted); }
.sh-banner { border-radius: 16px; padding: 14px 16px; background: var(--gold-tint); border: 1px solid #F3D9A0; }
.sh-banner.red { background: #FDECEA; border-color: #F5B4AD; }
.sh-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sh-adminrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 720px) { .sh-adminrow { grid-template-columns: minmax(0, 1fr); } }
.sh-ratepick { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.sh-ratepick input { position: absolute; opacity: 0; }
.sh-ratepick label { font-size: 22px; color: #D5D9D6; cursor: pointer; }
.sh-ratepick input:checked ~ label, .sh-ratepick label:hover, .sh-ratepick label:hover ~ label { color: #E0A10C; }
.sh-inline select.sh-input { max-width: 100%; min-width: 0; }
@media (max-width: 640px) { .sh-class .sh-inline { width: 100%; } .sh-class .sh-inline select.sh-input, .sh-class .sh-inline .sh-btn { flex: 1 1 100%; width: 100%; } }

/* Support chat (same widget as StadiPlus; js/chat.js) */
.chat { --amber: #D98A1E; --font-head: var(--head); --line-strong: #CBD3CE; }
.chat { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.chat-launcher { position: relative; width: 60px; height: 60px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(20,32,27,.28); cursor: pointer; transition: transform .15s ease; }
.chat-launcher:hover { transform: scale(1.05); background: var(--green-dark); }
.chat-launcher .icon-close { display: none; }
.chat[data-open="true"] .chat-launcher .icon-open { display: none; }
.chat[data-open="true"] .chat-launcher .icon-close { display: block; }
.chat-dot { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); border: 2px solid #fff; }
.chat-panel { width: 380px; max-width: calc(100vw - 32px); height: min(600px, calc(100vh - 120px)); background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(20,32,27,.25); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 16px; background: var(--green); color: #fff; }
.chat-avatar { width: 38px; height: 38px; border-radius: 10px; background: #fff; color: var(--green); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; flex: none; }
.chat-avatar small { color: var(--amber); font-size: .75em; }
.chat-head-text { flex: 1; min-width: 0; }
.chat-head h2 { font-size: 16px; color: #fff; }
.chat-head p { font-size: 12px; color: #CFE5DA; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-icon-btn { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.chat-icon-btn:hover { background: rgba(255,255,255,.15); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.chat-msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.chat-msg p + p { margin-top: 6px; }
.chat-msg ul { margin: 6px 0 0; padding-left: 18px; }
.chat-msg.user { align-self: flex-end; background: var(--green); color: #fff; border-color: var(--green); border-bottom-right-radius: 4px; }
.chat-msg.bot { border-bottom-left-radius: 4px; }
.chat-msg.agent { border-color: #E3B860; background: #FFFAF0; border-bottom-left-radius: 4px; }
.chat-msg.system { align-self: center; max-width: 95%; background: var(--green-tint); border-color: transparent; color: var(--green-dark); font-size: 13px; text-align: center; }
.chat-who { display: block; font-size: 11px; font-weight: 700; color: #6B4400; margin-bottom: 2px; text-transform: uppercase; letter-spacing: .04em; }
.chat-links { margin-top: 8px; font-size: 12px; color: var(--muted); }
.chat-typing { display: flex; gap: 4px; padding: 14px 16px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9AA8A0; animation: chatdot 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; } .chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatdot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .chat-typing span { animation: none; } .chat-launcher { transition: none; } }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 0; background: var(--bg); }
.chat-quick[hidden] { display: none; }
.chat-quick button { border: 1px solid var(--green); color: var(--green); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.chat-quick button:hover { background: var(--green-tint); }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-form textarea { flex: 1; resize: none; border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14px; max-height: 120px; line-height: 1.4; }
.chat-form textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.chat-send { width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.chat-send:hover { background: var(--gold-dark); }
.chat-foot { font-size: 11px; color: var(--muted); padding: 0 12px 10px; background: #fff; }
.chat-foot a { color: var(--muted); }
@media (max-width: 640px) {
  .chat { right: 16px; bottom: 16px; }
  .chat-launcher { width: 54px; height: 54px; }
  .chat[data-open="true"] { left: 0; right: 0; top: 0; bottom: 0; gap: 0; }
  .chat[data-open="true"] .chat-panel { width: 100%; max-width: none; height: 100%; border-radius: 0; border: 0; }
  .chat[data-open="true"] .chat-launcher { display: none; }
}

.chat-launcher { background: var(--green); } .chat .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 640px) { .chat { right: 14px; bottom: 14px; } .chat-launcher { width: 54px; height: 54px; } }

/* Talking with young learners: hands-free turns, "your turn" cue, big talk button, tap answers */
.sh-turn { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; background: #fff; color: var(--green); border: 3px solid #4CC38A; border-radius: 999px; padding: 10px 20px; font: 800 20px var(--head); box-shadow: 0 10px 30px rgba(14,90,67,.25); white-space: nowrap; animation: turnIn .25s ease-out; }
.sh-turn .sh-ear { display: inline-block; animation: ear 1s ease-in-out infinite; }
.sh-turn.wait { border-color: var(--gold); color: #6B4400; }
@keyframes turnIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes ear { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.sh-stage.listening { box-shadow: inset 0 0 0 6px #4CC38A; }
.sh-stage.listening::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 60px rgba(76,195,138,.45); animation: glow 1.4s ease-in-out infinite; }
@keyframes glow { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
.sh-choices { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 20px 10px; }
.sh-choices:empty { display: none; }
.sh-choices button { min-width: 72px; min-height: 60px; padding: 8px 18px; border-radius: 18px; border: 3px solid var(--green); background: #fff; color: var(--green); font: 800 24px/1.1 var(--head); cursor: pointer; box-shadow: 0 4px 0 #0B4A37; transition: transform .08s; }
.sh-choices button:active { transform: translateY(3px); box-shadow: 0 1px 0 #0B4A37; }
.sh-choices button.picked { background: var(--green); color: #fff; }
.sh-talkrow { display: flex; justify-content: center; padding: 0 20px 10px; }
.sh-talk { display: inline-flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 30px; border-radius: 999px; border: 0; background: var(--gold); color: #3B2600; font: 800 22px var(--head); cursor: pointer; box-shadow: 0 5px 0 #C98F1E; }
.sh-talk .ic { font-size: 28px; }
.sh-talk.on { background: #4CC38A; color: #06331F; box-shadow: 0 5px 0 #2E8D60; animation: pulse 1.2s infinite; }
.sh-talk.nudge { animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.sh-young .sh-compose textarea { font-size: 16px; }
@media (max-width: 640px) {
  .sh-turn { bottom: 12px; font-size: 17px; padding: 8px 16px; }
  .sh-choices { padding: 0 14px 8px; gap: 8px; }
  .sh-choices button { min-height: 54px; font-size: 21px; min-width: 64px; }
  .sh-talkrow { padding: 0 14px 8px; }
  .sh-talk { min-height: 58px; font-size: 20px; width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .sh-turn, .sh-turn .sh-ear, .sh-talk.on, .sh-talk.nudge, .sh-stage.listening::after { animation: none; } }

#hf-toggle[aria-pressed="true"] { background: #E3F6EC !important; border-color: #4CC38A; }

/* Lessons from the syllabus */
a.sh-subject { text-decoration: none; }
.sh-subject .pg { position: relative; z-index: 1; font: 700 13px var(--body); background: rgba(255,255,255,.2); border-radius: 999px; padding: 3px 10px; align-self: flex-start; margin-top: 8px; }
.sh-lessoncard { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
.sh-lc-ic { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; }
.sh-lc-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sh-progress { display: block; height: 8px; background: var(--green-tint); border-radius: 999px; overflow: hidden; margin-top: 6px; max-width: 320px; }
.sh-progress > span { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width .4s; }
.sh-syl-head { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: center; }
.sh-unit { border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.sh-unit > summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.sh-unit > summary::-webkit-details-marker { display: none; }
.sh-unit > summary h3 { font-size: 18px; }
.sh-unit[open] > summary { border-bottom: 1px solid var(--line); }
.sh-lesson { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.sh-lesson:first-of-type { border-top: 0; }
.sh-lesson .st { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 800 14px var(--head); background: var(--bg); color: var(--muted); border: 2px solid var(--line); }
.sh-lesson.done .st { background: var(--green); color: #fff; border-color: var(--green); }
.sh-lesson.started .st { background: var(--gold-tint); color: #6B4400; border-color: var(--gold); }
.sh-lesson.next { background: #F2FAF5; }
.sh-lesson .meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sh-lesson .meta strong { font-size: 16px; }
.sh-chip-blue { background: #E8F0FE; color: #1E4FB5; }
.sh-lessonbar { position: absolute; left: 16px; right: 16px; top: 62px; z-index: 2; background: rgba(255,255,255,.92); border-radius: 14px; padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 6px 18px rgba(20,32,27,.1); }
.sh-lessonbar .row1 { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.sh-lessonbar .sh-progress { max-width: none; margin: 0; }
.sh-raise { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 2px solid #1E4FB5; background: #fff; color: #1E4FB5; font: 800 18px var(--head); cursor: pointer; }
.sh-raise:active { transform: translateY(2px); }
.sh-young .sh-raise { min-height: 60px; font-size: 20px; }
.sh-done-card { margin: 0 20px 12px; border: 2px solid #4CC38A; background: #F0FBF5; border-radius: 18px; padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.sh-done-card strong { font: 800 20px var(--head); color: var(--green); }
@media (max-width: 640px) {
  .sh-lessoncard { grid-template-columns: auto minmax(0,1fr); }
  .sh-lessoncard .sh-btn { grid-column: 1 / -1; }
  .sh-syl-head { grid-template-columns: 1fr; }
  .sh-lesson { grid-template-columns: 32px minmax(0,1fr); padding: 12px 14px; }
  .sh-lesson .act { grid-column: 2; }
  .sh-lessonbar { left: 10px; right: 10px; top: 52px; padding: 6px 10px; }
  .sh-raise { width: 100%; justify-content: center; }
  .sh-done-card { margin: 0 14px 10px; }
}
.sh-spinner { width: 48px; height: 48px; border-radius: 50%; border: 5px solid var(--green-tint); border-top-color: var(--green); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sh-hide-sm { }
@media (max-width: 640px) { .sh-hide-sm { display: none; } }
#hf-toggle { white-space: nowrap; }
.sh-tutor[data-lesson="true"] #hf-label { display: none; }

/* Diagrams she draws: in the message, and big on the "board" beside her */
.sh-msg .txt { display: block; white-space: pre-line; }
.sh-msg .txt + .txt { margin-top: 8px; }
.sh-diagram { display: block; width: 100%; max-width: 480px; height: auto; margin: 10px 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: zoom-in; }
.sh-board { position: absolute; inset: 60px 16px 16px; z-index: 4; margin: 0; background: #fff; border-radius: 18px; box-shadow: 0 16px 40px rgba(20,32,27,.25); display: flex; align-items: center; justify-content: center; padding: 14px; animation: boardIn .25s ease-out; }
@keyframes boardIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.sh-board img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.sh-board-x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg); font-size: 18px; cursor: pointer; }
.sh-tutor[data-lesson="true"] .sh-board { top: 112px; }
@media (max-width: 640px) { .sh-board { inset: 50px 8px 8px; padding: 8px; } .sh-tutor[data-lesson="true"] .sh-board { top: 96px; } }

/* Lesson videos */
.sh-video { display: block; margin: 10px 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; max-width: 520px; }
.sh-video-stage { position: relative; aspect-ratio: 16 / 9; background: #0B1F17; }
.sh-video-stage iframe, .sh-video-stage > div, .sh-video-stage > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sh-video-thumb { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer; background: #0B1F17 center / cover no-repeat; }
.sh-video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: rgba(14,90,67,.92); color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.35); padding-left: 5px; }
.sh-video-len { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.75); color: #fff; font: 700 13px var(--body); padding: 2px 8px; border-radius: 6px; }
.sh-video-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; white-space: normal; }
.sh-video-meta strong { font-size: 15px; }
.sh-video-done { border: 1.5px solid var(--green); background: #fff; color: var(--green); border-radius: 999px; padding: 6px 12px; font: 700 13px var(--body); cursor: pointer; white-space: nowrap; }
.sh-video.watched .sh-video-done { background: var(--green-tint); border-color: transparent; }
.sh-videolist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.sh-videolist .sh-video { margin: 0; }
.sh-videolist .sh-vl-lesson { padding: 0 12px 10px; }
.sh-vl-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.sh-vl-item .sh-video { border: 0; margin: 0; border-radius: 0; max-width: none; }

/* Lesson explainers: Mwalimu beside a board */
.sh-player { display: grid; grid-template-columns: minmax(280px, 40%) minmax(0, 1fr); height: calc(100dvh - 69px); }
.sh-pl-side { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; min-height: 0; overflow: auto; background: var(--bg); }
.sh-pl-head { display: flex; justify-content: space-between; gap: 10px; }
.sh-pl-lesson { font-size: 22px; }
.sh-pl-board { position: relative; flex: 1 1 auto; min-height: 260px; background: #fff; border: 2px solid #D7E4DC; border-radius: 20px; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: inset 0 0 0 6px #F4F8F5; overflow: hidden; }
.sh-pl-scene h2 { font-size: 26px; color: var(--green); }
.sh-pl-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sh-pl-points li { font: 700 20px/1.35 var(--head); padding-left: 26px; position: relative; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.sh-pl-points li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.sh-pl-points li.on { opacity: 1; transform: none; }
.sh-young .sh-pl-points li { font-size: 24px; }
.sh-pl-diagram { flex: 1 1 auto; min-height: 0; max-height: 360px; width: 100%; object-fit: contain; opacity: 0; transition: opacity .5s; }
.sh-pl-diagram.on { opacity: 1; }
.sh-pl-start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(255,255,255,.92); text-align: center; padding: 20px; }
.sh-pl-caption { background: rgba(20,32,27,.85); color: #fff; border-radius: 12px; padding: 8px 12px; font-size: 15px; margin: 0; }
.sh-pl-progress { display: flex; gap: 4px; }
.sh-pl-progress span { flex: 1; height: 6px; border-radius: 999px; background: #D7E4DC; transition: background .3s; }
.sh-pl-progress span.done { background: var(--green); }
.sh-pl-progress span.now { background: var(--gold); }
.sh-pl-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sh-pl-play { background: var(--green); color: #fff; width: 60px; height: 60px; font-size: 24px; }
.sh-pl-controls .sh-round:not(.sh-pl-play) { background: #fff; border: 1.5px solid var(--line); }
.sh-pl-controls .sh-raise { margin-left: auto; }
#pl-cc[aria-pressed="false"] { opacity: .5; }
.sh-pl-ask, .sh-pl-end { background: #fff; border: 2px solid #C9D9F8; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.sh-pl-ask .sh-compose { display: flex; gap: 8px; align-items: center; }
.sh-pl-ask textarea { flex: 1; }
.sh-pl-answer { white-space: pre-wrap; background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.sh-pl-q h3 { font-size: 19px; margin-bottom: 8px; }
.sh-pl-q .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-pl-q .opts button { min-height: 52px; padding: 8px 16px; border-radius: 14px; border: 2px solid var(--green); background: #fff; color: var(--green); font: 700 17px var(--head); cursor: pointer; }
.sh-pl-q .opts button.right { background: var(--green); color: #fff; }
.sh-pl-q .opts button.wrong { border-color: var(--danger); color: var(--danger); }
.sh-pl-q .fb { font-weight: 700; margin-top: 6px; }
@media (max-width: 900px) {
  .sh-player { grid-template-columns: minmax(0, 1fr); grid-template-rows: 30dvh minmax(0, 1fr); height: calc(100dvh - 61px); }
  .sh-pl-side { padding: 12px 14px; }
  .sh-pl-board { min-height: 220px; padding: 16px; }
  .sh-pl-scene h2 { font-size: 21px; }
  .sh-pl-points li { font-size: 17px; }
  .sh-pl-controls .sh-raise { margin-left: 0; width: 100%; justify-content: center; }
}
.sh-pl-donemsg { margin: 0; font-weight: 800; color: var(--green); font-size: 17px; }
.sh-ways2 { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px dashed #9BD3B4; border-radius: 14px; padding: 10px 14px; font-size: 14px; }
.sh-ways2 strong { font-size: 15px; color: var(--green); }
.sh-btn-primary-ish { background: var(--green) !important; color: #fff !important; border-color: var(--green) !important; }

.sh-lessoncard.done strong { color: var(--muted); }
.sh-lessoncard.done .sh-lc-ic { font: 800 22px var(--head); }

/* Learning games */
.sh-gamegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.sh-gametile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 20px; text-decoration: none; color: #fff; min-height: 140px;
  background: linear-gradient(150deg, var(--c, #0E5A43), color-mix(in srgb, var(--c, #0E5A43) 65%, #000)); box-shadow: 0 10px 24px rgba(20,32,27,.12); }
.sh-gametile .ic { font-size: 38px; line-height: 1; }
.sh-gametile strong { font: 800 20px var(--head); }
.sh-gametile .best { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.22); border-radius: 999px; padding: 2px 10px; font: 700 12px var(--body); }
.sh-gametile:hover { transform: translateY(-2px); }
.sh-badge { display: inline-flex; gap: 6px; align-items: center; background: var(--gold-tint); color: #6B4400; border-radius: 999px; padding: 6px 12px; font: 700 14px var(--body); }
.sh-badge.big { font-size: 17px; justify-content: center; }
.sh-game { max-width: 760px; margin: 0 auto; padding: 12px 16px 40px; display: flex; flex-direction: column; gap: 12px; min-height: calc(100dvh - 69px); }
.sh-g-top { display: flex; align-items: center; gap: 10px; }
.sh-g-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sh-g-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 17px; }
.sh-g-stats { display: flex; gap: 10px; font: 800 18px var(--head); }
.sh-g-stats #g-score { background: var(--green); color: #fff; border-radius: 999px; padding: 2px 12px; min-width: 48px; text-align: center; }
.sh-g-bar { height: 8px; background: var(--green-tint); border-radius: 999px; overflow: hidden; }
.sh-g-bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .4s; }
.sh-g-coach { display: flex; gap: 10px; align-items: center; }
.sh-g-coach img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--green); flex: none; }
.sh-g-coach p { background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 8px 12px; font-weight: 600; margin: 0; }
.sh-g-stage, .sh-g-end { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.sh-g-end { align-items: center; text-align: center; }
.sh-g-start { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 20px 0; }
.sh-g-start .ic { font-size: 56px; }
.sh-g-q { font: 800 22px/1.3 var(--head); margin: 0; }
.sh-young .sh-g-q { font-size: 24px; }
.sh-g-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.sh-g-choice { min-height: 60px; border-radius: 16px; border: 2px solid var(--line-strong); background: #fff; font: 700 18px var(--head); color: var(--ink); cursor: pointer; padding: 10px 14px; box-shadow: 0 3px 0 var(--line-strong); }
.sh-g-choice:active { transform: translateY(2px); box-shadow: none; }
.sh-g-choice.right, .sh-g-tile.right { background: #E3F6EC; border-color: #2E8D60; color: #0B4A37; box-shadow: 0 3px 0 #2E8D60; }
.sh-g-choice.wrong, .sh-g-tile.wrong { background: #FDE2E2; border-color: var(--danger); color: var(--danger); box-shadow: 0 3px 0 var(--danger); }
.sh-g-choice.pic { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 120px; }
.sh-g-choice.pic .emo { font-size: 54px; line-height: 1.1; }
.sh-g-choice.pic .lbl { font-size: 16px; }
.sh-g-choice.num { font-size: 26px; }
.sh-g-choice.bin { background: var(--bg); }
.sh-g-listen { align-self: center; width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--gold); font-size: 38px; cursor: pointer; box-shadow: 0 6px 0 #C98F1E; }
.sh-g-timer { height: 6px; background: var(--green-tint); border-radius: 999px; overflow: hidden; }
.sh-g-timer span { display: block; height: 100%; width: 100%; background: var(--green); }
.sh-g-explain { margin: 0; padding: 10px 12px; border-radius: 12px; font-weight: 600; }
.sh-g-explain.ok { background: #E3F6EC; color: #0B4A37; }
.sh-g-explain.no { background: #FFF4DC; color: #6B4400; }
.sh-g-next { align-self: flex-end; }
.sh-g-match { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sh-g-match .col { display: flex; flex-direction: column; gap: 8px; }
.sh-g-tile { min-height: 52px; border-radius: 14px; border: 2px solid var(--line-strong); background: #fff; font: 700 16px var(--body); color: var(--ink); cursor: pointer; padding: 8px 12px; text-align: left; }
.sh-g-tile.sel { border-color: var(--gold); background: var(--gold-tint); }
.sh-g-tile:disabled { cursor: default; }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.sh-g-card { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 28px; border-radius: 18px; background: var(--gold-tint); font: 800 22px var(--head); }
.sh-g-card .emo { font-size: 60px; }
.sh-g-answer { list-style: none; counter-reset: s; margin: 0; padding: 10px; min-height: 60px; border: 2px dashed #9BD3B4; border-radius: 14px; display: flex; flex-direction: column; gap: 6px; }
.sh-g-answer .sh-g-tile { counter-increment: s; width: 100%; }
.sh-g-answer .sh-g-tile::before { content: counter(s) ". "; color: var(--green); }
.sh-g-pool { display: flex; flex-direction: column; gap: 6px; }
.sh-g-correct { margin: 0; padding-left: 22px; }
.sh-g-steps { display: flex; flex-direction: column; gap: 8px; }
.sh-g-step { text-align: left; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); padding: 10px 12px; font: 600 16px var(--body); cursor: pointer; }
.sh-g-step.wrong-step { border-color: var(--danger); background: #FDE2E2; }
.sh-g-step.missed { border-color: var(--gold); }
.sh-g-flash { position: relative; align-self: center; width: min(100%, 460px); min-height: 200px; border: 0; background: none; cursor: pointer; perspective: 900px; }
.sh-g-flash .face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px; border-radius: 20px; font: 800 22px/1.35 var(--head); backface-visibility: hidden; transition: transform .45s; text-align: center; }
.sh-g-flash .front { background: var(--green); color: #fff; }
.sh-g-flash .back { background: var(--gold-tint); color: var(--ink); transform: rotateY(180deg); font-size: 18px; }
.sh-g-flash.flipped .front { transform: rotateY(180deg); }
.sh-g-flash.flipped .back { transform: rotateY(360deg); }
.sh-g-clock { align-self: center; font: 800 28px var(--head); color: var(--green); }
.sh-g-sum { align-self: center; font: 800 44px var(--head); margin: 0; }
.sh-g-stars { font-size: 44px; }
.sh-g-best { font: 800 18px var(--head); color: #8A5A00; margin: 0; }
.sh-g-review { text-align: left; margin: 0; }
.sh-g-mini { background: #E8F0FE; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.sh-g-mini p { margin: 0; }
@media (max-width: 640px) {
  .sh-game { padding: 10px 12px 30px; }
  .sh-g-q { font-size: 19px; }
  .sh-g-choices { grid-template-columns: 1fr 1fr; }
  .sh-g-choice { font-size: 16px; min-height: 54px; }
  .sh-g-choice.pic { min-height: 100px; }
  .sh-g-sum { font-size: 36px; }
  .sh-g-match { gap: 8px; }
  .sh-g-tile { font-size: 14px; }
}

/* ---------- live games and leaderboards ---------- */
.sh-pickrow { display: inline-flex; gap: 6px; align-items: center; border: 1.5px solid #DCCDB0; border-radius: 12px; padding: 10px 14px; cursor: pointer; background: #fff; }
.sh-pickrow:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
.sh-pickrow input { accent-color: #0E5A43; width: 18px; height: 18px; }
.sh-codebox { font: 800 30px var(--head); letter-spacing: .3em; text-align: center; }
.sh-mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; }
.sh-leader { list-style: none; margin: 0; padding: 0; counter-reset: rk; display: flex; flex-direction: column; gap: 6px; }
.sh-leader li { counter-increment: rk; display: grid; grid-template-columns: 28px 1fr auto auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--bg); }
.sh-leader li::before { content: counter(rk); font: 800 16px var(--head); color: var(--muted); text-align: center; }
.sh-leader li:nth-child(1)::before { content: "🥇"; } .sh-leader li:nth-child(2)::before { content: "🥈"; } .sh-leader li:nth-child(3)::before { content: "🥉"; }
.sh-leader li.me { background: var(--gold-tint); }
.sh-leader li .nm { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-leader li strong { font: 800 18px var(--head); }
.sh-leader li .tick { color: #2E8D60; font-weight: 800; }
.sh-leader .sh-inlineform { margin: 0; }
.sh-leader .sh-linkbtn { color: var(--muted); text-decoration: none; font-size: 16px; padding: 2px 6px; }
.sh-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.sh-room-code { font: 800 56px var(--head); letter-spacing: .15em; color: var(--green); text-align: center; margin: 0; }
.sh-room-count { font: 800 72px var(--head); color: var(--gold); text-align: center; margin: 10px 0; }
.sh-room-wait { text-align: center; }
.sh-g-choice.mine { outline: 3px solid var(--gold); outline-offset: 2px; }
.sh-g-choice.dim { opacity: .55; }
@media (max-width: 520px) { .sh-leader li { grid-template-columns: 24px 1fr auto auto; } .sh-leader li > .small { display: none; } .sh-room-code { font-size: 42px; } }

/* ---------- duka, fractions pizza, Kenya map ---------- */
.sh-shelf { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; background: linear-gradient(#FFF8EA, #F6E7C8); border-radius: 16px; padding: 14px; border-bottom: 6px solid #B9874C; }
.sh-shelf-item { display: flex; flex-direction: column; align-items: center; font-size: 44px; line-height: 1.1; }
.sh-shelf-item .tag { font: 800 14px var(--head); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin-top: 4px; white-space: nowrap; }
.sh-tray { min-height: 64px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; border: 2px dashed #DCCDB0; border-radius: 14px; padding: 8px; background: #FBFCFB; }
.sh-tray-sum { text-align: center; font: 800 22px var(--head); }
.sh-purse { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sh-money { border: 0; cursor: pointer; font: 800 16px var(--head); color: #3A2A00; display: inline-flex; align-items: center; justify-content: center; }
.sh-money.coin { width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FBE7A1, #D7AE3E 70%, #A88324); box-shadow: inset 0 0 0 3px rgba(120,90,10,.35), 0 3px 0 #8C6B16; }
.sh-money.note { min-width: 78px; height: 44px; border-radius: 6px; background: var(--note, #5E9E6B); color: #fff; box-shadow: inset 0 0 0 3px rgba(255,255,255,.35), 0 3px 0 rgba(0,0,0,.25); padding: 0 10px; }
.sh-money:active { transform: translateY(2px); box-shadow: none; }
.sh-money:disabled { cursor: default; opacity: .85; }
.sh-frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.05; margin: 0 4px; font-weight: 800; }
.sh-frac .n { border-bottom: 2px solid currentColor; padding: 0 3px; }
.sh-frac .d { padding: 0 3px; }
.sh-pizza-wrap { display: flex; justify-content: center; }
.sh-pizza { max-width: 100%; height: auto; touch-action: manipulation; }
.sh-pizza .slice { fill: #F7DFA0; stroke: #C98B3E; stroke-width: 2; cursor: pointer; transition: fill .15s; }
.sh-pizza .slice.on { fill: #D9452B; }
.sh-pizza .slice.on.two { fill: #F2B02E; }
.sh-pizza .slice:focus { outline: none; stroke: var(--green); stroke-width: 4; }
.sh-pizza-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sh-pizza-pick { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 0; }
.sh-pizza-pick .sh-pizza { width: 100% !important; max-width: 150px; }
.sh-kmap-wrap { display: flex; justify-content: center; }
.sh-kmap { width: 100%; max-width: 460px; height: auto; touch-action: manipulation; }
.sh-kmap .county { fill: #E1ECE4; stroke: #9DB8A8; stroke-width: .8; cursor: pointer; }
.sh-kmap .county:hover { fill: #CFE2D6; }
.sh-kmap .county.right, .sh-kmap .county.lit { fill: #2E8D60; }
.sh-kmap .county.lit { fill: var(--gold); }
.sh-kmap .county.wrong { fill: #E99A9A; }
.sh-kmap .klabel { font: 800 13px var(--head); text-anchor: middle; fill: #10261D; paint-order: stroke; stroke: #fff; stroke-width: 4px; pointer-events: none; }
.sh-kmap .klabel.muted { fill: #7A2B2B; font-size: 11px; }
.sh-kmap .kdot { cursor: pointer; }
.sh-kmap .kdot circle { fill: #fff; stroke: var(--green); stroke-width: 2.5; }
.sh-kmap .kdot text { font-size: 14px; text-anchor: middle; pointer-events: none; }
.sh-kmap .kdot.right circle { fill: #E3F6EC; stroke: #2E8D60; stroke-width: 4; }
.sh-kmap .kdot.wrong circle { fill: #FDE2E2; stroke: var(--danger); stroke-width: 4; }
.sh-kmap .kdot.dim { opacity: .45; }

/* ---------- notifications ---------- */
.sh-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; text-decoration: none; font-size: 20px; }
.sh-bell:hover { background: var(--green-tint); }
.sh-bell .count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; border-radius: 999px; background: var(--danger); color: #fff; font: 800 11px/18px var(--body); text-align: center; padding: 0 4px; }
.sh-note { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: inherit; padding: 14px 16px; }
.sh-note .ic { font-size: 24px; line-height: 1; }
.sh-note.unread { border-left: 4px solid var(--gold); background: #FFFDF6; }
#pin:target { outline: 3px solid var(--gold); outline-offset: 6px; border-radius: 8px; }

/* ---------- today, timetable, parent quizzes ---------- */
.sh-todayrow { display: grid; grid-template-columns: 74px 40px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--bg); }
.sh-todayrow .time { font: 800 15px var(--head); color: var(--green); }
.sh-todayrow .txt { display: flex; flex-direction: column; min-width: 0; }
.sh-todayrow.now { background: var(--gold-tint); box-shadow: inset 0 0 0 2px var(--gold); }
.sh-todayrow .sh-lc-ic { width: 40px; height: 40px; }
.sh-todayrow:not(:has(.sh-lc-ic)) { grid-template-columns: 74px 1fr auto auto; }
.sh-chip-ghost { background: #EEF2EF; color: var(--muted); }
.sh-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.sh-week .day { background: var(--bg); border-radius: 14px; padding: 8px; min-height: 90px; display: flex; flex-direction: column; gap: 6px; }
.sh-week .day h3 { font: 800 13px var(--head); margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sh-week .day.today { box-shadow: inset 0 0 0 2px var(--gold); }
.sh-slot { background: #fff; border-left: 4px solid var(--c, var(--green)); border-radius: 10px; padding: 6px 8px; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.sh-slot strong { font-size: 13px; }
.sh-slot form { margin: 0; }
.sh-daypick { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-daypick label { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid #DCCDB0; border-radius: 999px; padding: 6px 12px; cursor: pointer; font-weight: 600; font-size: 14px; }
.sh-daypick label:has(input:checked) { background: var(--green); color: #fff; border-color: var(--green); }
.sh-daypick input { position: absolute; opacity: 0; pointer-events: none; }
.sh-quizopt { display: flex; flex-direction: column; gap: 10px; }
.sh-quizopt.added { box-shadow: 0 0 0 3px var(--gold); }
.sh-quizopt form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.sh-quizopt form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.sh-quizopt form .sh-input { min-height: 40px; width: auto; }
@media (max-width: 760px) {
  .sh-week { grid-template-columns: 1fr; }
  .sh-week .day { min-height: 0; }
  .sh-todayrow { display: flex; flex-wrap: wrap; }
  .sh-todayrow .sh-lc-ic { display: none; }
  .sh-todayrow .txt { flex: 1 1 calc(100% - 80px); }
  .sh-todayrow .sh-chip { margin-left: 72px; }
}

/* ---------- progress, goals, study next ---------- */
.sh-insight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.sh-ring { --p: 0; width: 104px; height: 104px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(closest-side, #fff 76%, transparent 77% 100%), conic-gradient(var(--gold) calc(var(--p) * 1%), var(--green-tint) 0); }
.sh-ring span { font: 800 24px var(--head); color: var(--green); }
.sh-ring.met { background: radial-gradient(closest-side, #fff 76%, transparent 77% 100%), conic-gradient(#2E8D60 100%, #2E8D60 0); }
.sh-ring.sm { width: 64px; height: 64px; }
.sh-ring.sm span { font-size: 15px; }
.sh-goalbar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; }
.sh-goalbar i { grid-column: 1 / -1; display: block; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--gold) var(--w), var(--green-tint) var(--w)); }
.sh-nextcard { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--bg); text-decoration: none; color: inherit; }
a.sh-nextcard:hover { background: var(--green-tint); }
.sh-nextcard .ic { font-size: 24px; }
.sh-nextcard .txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sh-nextcard .go { font: 800 22px var(--head); color: var(--green); }
.sh-topic { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; }
.sh-topic.strong { background: #E9F7EF; }
.sh-topic.weak { background: #FFF4DC; }
.sh-topic .txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sh-topic b { font: 800 18px var(--head); }
.sh-subjbars { display: flex; flex-direction: column; gap: 8px; }
.sh-subjbar { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr 120px; gap: 10px; align-items: center; }
.sh-subjbar .bar { height: 10px; background: var(--green-tint); border-radius: 999px; overflow: hidden; }
.sh-subjbar .bar i { display: block; height: 100%; border-radius: 999px; }
.sh-homegoal { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.sh-revise { border-color: #F3D9A0; }
@media (max-width: 560px) { .sh-subjbar { grid-template-columns: 1fr auto; } .sh-subjbar .bar { grid-column: 1 / -1; grid-row: 2; } .sh-insight-grid { grid-template-columns: 1fr; } }

/* ---------- admin overview charts ---------- */
.sh-chartgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.sh-bars { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sh-bars figcaption { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.sh-bars figcaption b { font-weight: 600; color: var(--muted); font-size: 13px; }
.sh-bars .cols { display: flex; align-items: flex-end; gap: 2px; height: 90px; border-bottom: 1px solid var(--line); }
.sh-bars .cols i { flex: 1; border-radius: 3px 3px 0 0; min-width: 2px; opacity: .85; }
.sh-bars .cols i:last-child { opacity: 1; }
.sh-bars .axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.sh-coursechip { padding: 8px 12px; border-radius: 12px; background: var(--bg); }
.sh-coursechip.current { background: var(--green-tint); box-shadow: inset 0 0 0 2px var(--green); }

/* ---------- interactive videos: a question pauses the video ---------- */
.sh-video-stage { position: relative; }
.sh-vq { background: #fff; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; border: 2px solid var(--gold); margin-top: 10px; }
.sh-vq.inside { position: absolute; inset: 8px; margin: 0; overflow: auto; z-index: 3; box-shadow: 0 10px 30px rgba(0,0,0,.35); justify-content: center; }
.sh-vq-tag { font: 800 12px var(--head); color: #6B4400; text-transform: uppercase; letter-spacing: .05em; }
.sh-vq-q { font: 800 19px/1.3 var(--head); margin: 0; }
.sh-vq-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.sh-vq-choice { min-height: 46px; border-radius: 12px; border: 2px solid var(--line-strong); background: #fff; font: 700 16px var(--head); cursor: pointer; padding: 6px 10px; color: var(--ink); }
.sh-vq-choice.right { background: #E3F6EC; border-color: #2E8D60; color: #0B4A37; }
.sh-vq-choice.wrong { background: #FDE2E2; border-color: var(--danger); color: var(--danger); }
.sh-vq-msg { margin: 0; font-weight: 600; font-size: 14px; }
.sh-vq-msg.ok { color: #0B4A37; } .sh-vq-msg.no { color: #6B4400; }
.sh-vq-go { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.sh-stopbox { background: var(--bg); border-radius: 14px; padding: 10px 12px; margin: 6px 0 4px; }
@media (max-width: 520px) { .sh-vq.inside { inset: 0; border-radius: 0; } .sh-vq-q { font-size: 16px; } }

/* ---------- songs and chants ---------- */
.sh-chant-coach { display: flex; align-items: center; gap: 12px; }
.sh-chant-coach img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--green); }
.sh-chant-coach p { flex: 1; margin: 0; background: var(--bg); border-radius: 16px 16px 16px 4px; padding: 10px 14px; font: 800 18px var(--head); }
.sh-chant-coach .clap { font-size: 40px; display: inline-block; }
.sh-chant-coach .clap.go { animation: clapgo .35s ease-out; }
@keyframes clapgo { 0% { transform: scale(1); } 40% { transform: scale(1.4) rotate(-10deg); } 100% { transform: scale(1); } }
.sh-lyrics { margin: 0; padding-left: 26px; display: flex; flex-direction: column; gap: 6px; font: 700 20px/1.35 var(--head); }
.sh-lyrics li { padding: 4px 10px; border-radius: 10px; transition: background .2s, color .2s; }
.sh-lyrics li.now { background: var(--gold-tint); color: #4A3000; }
.sh-lyrics li.you { background: #E3F6EC; color: #0B4A37; }
.sh-lyrics li.done { color: var(--muted); }
.sh-lyrics.plain { font: 600 16px/1.5 var(--body); }
@media (prefers-reduced-motion: reduce) { .sh-chant-coach .clap.go { animation: none; } }
.sh-reason-memo { letter-spacing: .15em; }

/* ---------- little learners: Kiko and the full-screen mode ---------- */
.is-little .sh-header { display: none; }
.is-little { background: linear-gradient(180deg, #FEF3C7 0%, #FDE68A 35%, #A7F3D0 100%); min-height: 100dvh; }
.kiko { overflow: visible; display: block; }
.kiko .o, .kiko .k-mouth-sad, .kiko .k-mouth-o { display: none; }
.kiko[data-outfit=cap] .o-cap, .kiko[data-outfit=flower] .o-flower, .kiko[data-outfit=glasses] .o-glasses, .kiko[data-outfit=scarf] .o-scarf,
.kiko[data-outfit=headphones] .o-headphones, .kiko[data-outfit=crown] .o-crown { display: inline; }
.kiko .k-all { transform-box: fill-box; transform-origin: 50% 100%; animation: kbob 2.6s ease-in-out infinite; }
.kiko .k-eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: kblink 5s infinite; }
.kiko .k-arm { transform-box: fill-box; transform-origin: 50% 8%; }
@keyframes kbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes kblink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.kiko.wave .k-arm-r { animation: kwave .35s ease-in-out 4 alternate; }
@keyframes kwave { from { transform: rotate(-28deg); } to { transform: rotate(-110deg); } }
.kiko.cheer .k-all { animation: kjump .45s ease-out 2; }
.kiko.cheer .k-arm-l { transform: rotate(150deg); } .kiko.cheer .k-arm-r { transform: rotate(-150deg); }
@keyframes kjump { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-28px) scale(1.04); } }
.kiko.sad .k-all { animation: kshake .5s ease-in-out 1; } .kiko.sad .k-mouth { display: none; } .kiko.sad .k-mouth-sad { display: inline; }
@keyframes kshake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
.kiko.dance .k-all { animation: kdance .5s ease-in-out 6 alternate; }
.kiko.dance .k-arm-l { animation: kwave .25s 10 alternate; } .kiko.dance .k-arm-r { animation: kwave .25s .12s 10 alternate; }
@keyframes kdance { from { transform: rotate(-9deg) translateY(0); } to { transform: rotate(9deg) translateY(-14px); } }
.kiko.talk .k-mouth { display: none; } .kiko.talk .k-mouth-o { display: inline; animation: ktalk .25s infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes ktalk { from { transform: scaleY(.4); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .kiko *, .kiko .k-all { animation: none !important; } }

.lt-page { max-width: 560px; margin: 0 auto; padding: 12px 16px 40px; display: flex; flex-direction: column; gap: 14px; min-height: 100dvh; }
.lt-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lt-top a.lt-x { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-decoration: none; font-size: 20px; color: var(--ink); box-shadow: 0 3px 0 rgba(0,0,0,.08); }
.lt-stars { background: #fff; border-radius: 999px; padding: 6px 16px; font: 800 22px var(--head); box-shadow: 0 3px 0 rgba(0,0,0,.08); display: inline-flex; gap: 6px; align-items: center; }
.lt-stars.pop { animation: lpop .4s ease-out; }
@keyframes lpop { 50% { transform: scale(1.25); } }
.lt-hello { display: flex; align-items: flex-end; gap: 8px; justify-content: center; }
.lt-bubble { background: #fff; border-radius: 22px 22px 22px 6px; padding: 12px 16px; font: 800 20px/1.25 var(--head); box-shadow: 0 4px 0 rgba(0,0,0,.08); max-width: 270px; }
.lt-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lt-tile { border-radius: 26px; background: var(--c); color: #fff; text-decoration: none; padding: 16px; min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 6px 0 rgba(0,0,0,.18); }
.lt-tile .ic { font-size: 46px; line-height: 1; }
.lt-tile strong { font: 800 22px var(--head); }
.lt-tile span.small { opacity: .92; }
.lt-tile:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.lt-tile.wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 12px; }
.lt-wardrobe { background: #fff; border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.lt-wardrobe .row { display: flex; flex-wrap: wrap; gap: 8px; }
.lt-wardrobe button { border: 2px solid #E5E7EB; background: #F9FAFB; border-radius: 16px; padding: 8px 12px; font-size: 26px; cursor: pointer; }
.lt-wardrobe button.on { border-color: var(--gold); background: var(--gold-tint); }
.lt-next { height: 12px; border-radius: 999px; background: #E5E7EB; overflow: hidden; }
.lt-next i { display: block; height: 100%; background: linear-gradient(90deg, #F59E0B, #FBBF24); border-radius: 999px; }

/* the game screen */
.lt-dots { display: flex; gap: 6px; justify-content: center; }
.lt-dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.7); }
.lt-dots i.done { background: #10B981; } .lt-dots i.miss { background: #F59E0B; } .lt-dots i.now { background: #fff; box-shadow: 0 0 0 3px #10B981; }
.lt-card { background: #fff; border-radius: 30px; padding: 22px 18px; box-shadow: 0 8px 0 rgba(0,0,0,.1); display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.lt-q { font: 800 30px/1.2 var(--head); margin: 0; }
.lt-big { font: 800 64px/1.1 var(--head); letter-spacing: .02em; }
.lt-pic { font-size: 96px; line-height: 1.1; }
.lt-word { font: 800 40px var(--head); color: #1E3A8A; }
.lt-hear { border: 0; background: #FDE68A; border-radius: 50%; width: 64px; height: 64px; font-size: 30px; cursor: pointer; box-shadow: 0 4px 0 #D97706; }
.lt-choices { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.lt-choices.pics { display: grid; grid-template-columns: repeat(3, 1fr); }
.lt-choice { min-height: 74px; border-radius: 22px; border: 0; background: #F3F4F6; font: 800 34px var(--head); color: var(--ink); cursor: pointer; box-shadow: 0 5px 0 #D1D5DB; }
.lt-choices.pics .lt-choice { font-size: 54px; min-height: 104px; }
.lt-choice:active { transform: translateY(3px); box-shadow: 0 2px 0 #D1D5DB; }
.lt-choice.right { background: #34D399; color: #fff; box-shadow: 0 5px 0 #059669; }
.lt-choice.wrong { background: #FCA5A5; color: #7F1D1D; box-shadow: 0 5px 0 #DC2626; animation: kshake .4s; }
.lt-kiko { position: fixed; right: 8px; bottom: 6px; display: flex; align-items: flex-end; gap: 4px; pointer-events: none; z-index: 5; }
.lt-kiko .lt-bubble { font-size: 16px; max-width: 200px; margin-bottom: 70px; }
.lt-trace { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1; border-radius: 24px; background: #FFFBEB; touch-action: none; }
.lt-trace canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 24px; }
.lt-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.lt-btn { border: 0; border-radius: 18px; padding: 14px 22px; font: 800 20px var(--head); background: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.12); cursor: pointer; color: var(--ink); text-decoration: none; }
.lt-btn.go { background: #10B981; color: #fff; box-shadow: 0 4px 0 #047857; }
.lt-party { position: fixed; inset: 0; z-index: 20; background: rgba(15,23,42,.55); display: grid; place-items: center; animation: lfade .3s; }
.lt-party .box { background: #fff; border-radius: 32px; padding: 26px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 340px; margin: 16px; }
.lt-party .big { font: 800 44px var(--head); color: #B45309; }
.lt-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 21; overflow: hidden; }
.lt-confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: lfall 2.2s linear forwards; }
@keyframes lfall { to { transform: translateY(110vh) rotate(720deg); } }
@keyframes lfade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lt-confetti { display: none; } }
@media (max-width: 380px) { .lt-big { font-size: 52px; } .lt-q { font-size: 25px; } .lt-pic { font-size: 80px; } }

/* ---------------------------------------------------------------- low-data mode */
.sh-lite { --head: system-ui, sans-serif; --body: system-ui, sans-serif; }
.sh-stage-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.sh-video-thumb.lite { background: #0B1F17; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.sh-video-lite { color: #fff; font-size: 13px; opacity: .85; }
.sh-video-thumb.lite .sh-video-play { position: static; transform: none; }
.sh-litebtn { color: inherit; text-decoration: none; }
.sh-slowbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------------------------------------------------------------- check-ups */
.sh-ck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.sh-ck { border-top: 5px solid var(--c, var(--green)); display: flex; flex-direction: column; gap: 10px; }
.sh-ck h3 { font-size: 18px; display: flex; gap: 8px; align-items: center; }
.sh-ck-score { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sh-ck-score b { font: 800 30px/1 var(--head); }
.sh-up { color: #067647; font-weight: 700; } .sh-down { color: var(--danger); font-weight: 700; }
.sh-ckq { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.sh-ckq legend { font-weight: 700; padding: 0; display: flex; gap: 10px; align-items: flex-start; width: 100%; }
.sh-ckq legend .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green-tint); color: var(--green); display: grid; place-items: center; font-size: 14px; }
.sh-ckq label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; min-height: 48px; }
.sh-ckq label:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
.sh-ckq input[type=radio] { width: 20px; height: 20px; accent-color: var(--green); flex: none; }
.sh-young .sh-ckq label { font-size: 20px; min-height: 60px; }
.sh-ck-say { margin-left: auto; flex: none; border: 0; background: var(--gold-tint); border-radius: 50%; width: 36px; height: 36px; cursor: pointer; font-size: 18px; }
.sh-unitbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 14px; }
.sh-unitbar i { grid-column: 1 / -1; position: relative; display: block; height: 10px; border-radius: 999px; background: var(--green-tint); overflow: hidden; }
.sh-unitbar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--bar, var(--green)); border-radius: 999px; }
.sh-unitbar i s { position: absolute; top: -2px; bottom: -2px; left: var(--was); width: 3px; background: var(--ink); opacity: .45; z-index: 1; text-decoration: none; }
.sh-unitbar.weak i { --bar: #D97706; }
.sh-spark { display: flex; align-items: flex-end; gap: 6px; height: 84px; padding-top: 20px; }
.sh-spark span { flex: 1; max-width: 46px; background: var(--c, var(--green)); border-radius: 6px 6px 0 0; height: var(--h); min-height: 4px; position: relative; }
.sh-spark span b { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--ink); }
.sh-miss { border-left: 4px solid #D97706; padding: 8px 12px; background: #FFFBEB; border-radius: 0 10px 10px 0; font-size: 15px; }

/* ---------------------------------------------------------------- schools */
.sh-classgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.sh-classcard { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; }
.sh-classcard:hover { border-color: var(--green); }
.sh-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.sh-kv div { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.sh-kv b { display: block; font: 800 22px/1.1 var(--head); }
.sh-logins { width: 100%; border-collapse: collapse; }
.sh-logins td, .sh-logins th { border: 1px dashed #9AA8A0; padding: 12px; text-align: left; font-size: 16px; }
.sh-logins code { font-size: 18px; font-weight: 700; }
@media print {
  .sh-header, .sh-footer, .chat, .no-print, .sh-flash { display: none !important; }
  body { background: #fff; }
  .sh-logins tr { break-inside: avoid; }
}

/* ---------------------------------------------------------------- shared pages (privacy, terms, help) inside the Shule layout */
.page { padding: 32px 0 64px; }
.page > .wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.page .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.page .stack { display: flex; flex-direction: column; gap: 16px; }
.page .grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.prose h1 { font-size: 34px; margin-bottom: 16px; }
.prose h2 { font-size: 22px; margin: 26px 0 8px; }
.prose h3 { font-size: 18px; margin: 18px 0 6px; }
.prose p, .prose li { margin: 0 0 10px; }
.prose ul, .prose ol { padding-left: 22px; }


/* ---------------------------------------------------------------- look "B": subject tiles
   Children (CBC): bright tinted tiles with dark text. Older students (8-4-4, college): white cards with a colour band. */
.sh-subjects .sh-subject.b { background: #fff; background: color-mix(in srgb, var(--c) 24%, #fff); color: var(--ink); box-shadow: none; border: 0; }
.sh-subjects .sh-subject.b::after { background: rgba(255,255,255,.4); z-index: 0; }
.sh-subjects .sh-subject.b > * { position: relative; z-index: 1; }
.sh-subjects .sh-subject.b .pg { background: rgba(255,255,255,.75); color: var(--ink); }
.sh-subjects .sh-subject.b:hover { background: color-mix(in srgb, var(--c) 34%, #fff); }
.sh-subjects.calm .sh-subject.b { background: #fff; border: 1px solid var(--line); box-shadow: inset 0 6px 0 var(--c); min-height: 120px; padding-top: 24px; }
.sh-subjects.calm .sh-subject.b::after { display: none; }
.sh-subjects.calm .sh-subject.b .ic { font-size: 28px; }
.sh-subjects.calm .sh-subject.b .pg { background: var(--bg); }
.sh-subjects.calm .sh-subject.b:hover { border-color: var(--line-strong); background: #fff; }
/* The first "study next" card on a child's page stands out. */
.sh-next-hero .sh-nextcard:first-of-type { background: var(--green); color: #fff; padding: 14px 16px; }
.sh-next-hero .sh-nextcard:first-of-type .small, .sh-next-hero .sh-nextcard:first-of-type .muted { color: #CDE7DA; }
.sh-next-hero .sh-nextcard:first-of-type .go { color: var(--gold); }
.sh-next-hero a.sh-nextcard:first-of-type:hover { background: var(--green-dark); }

/* ---- CBC Senior School subject picker */
.sh-electives { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-elective { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: #fff; cursor: pointer; font-size: 15px; font-weight: 600; }
.sh-elective input { width: 18px; height: 18px; accent-color: var(--green); }
.sh-elective:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
.sh-elective:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.sh-mode:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
@media (max-width: 400px) { .sh-nav { gap: 6px; } .sh-nav .sh-btn-sm { padding: 0 10px; } }

/* ---- Home page (2026 refresh) */
.hp { background: var(--bg); }
.hp-wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.hp-hero-wrap { padding-top: 40px; }
.hp-hero { background: #fff; border: 1px solid var(--line); border-radius: 32px; overflow: hidden; display: flex; flex-wrap: wrap; }
.hp-hero-text { flex: 1 1 520px; padding: 64px 56px; display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.hp-eyebrow { font: 700 14px 'DM Sans', sans-serif; letter-spacing: .16em; color: #B5530C; }
.hp h1 { margin: 0; font: 800 64px/1.03 Outfit, sans-serif; letter-spacing: -.03em; }
.hp h1 span { color: var(--green); }
.hp h2 { margin: 10px 0 0; font: 800 44px/1.1 Outfit, sans-serif; letter-spacing: -.02em; }
.hp-lead { margin: 0; font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 480px; }
.hp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hp-small { margin: 0; font-size: 14px; color: var(--muted); }
.hp-hero-art { flex: 1 1 460px; min-height: 560px; background: var(--green); position: relative; overflow: hidden; }
.hp-hero-art img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 96%; width: auto; }
.hp-hero-art img.hp-hero-photo { inset: 0; left: 0; transform: none; width: 100%; height: 100%; object-fit: cover; object-position: 28% center; }
.hp-hero-art:has(.hp-hero-photo) .hp-sun { display: none; }
.hp-hero-art:has(.hp-hero-photo) .hp-bubble { left: auto; right: 28px; top: 36px; }
.hp-sun { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--gold); opacity: .18; right: -120px; top: -120px; }
.hp-bubble { position: absolute; left: 32px; top: 40px; background: #fff; border-radius: 20px 20px 20px 6px; padding: 14px 18px; font-weight: 700; font-size: 16px; box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.hp-stat { position: absolute; right: 28px; bottom: 36px; background: #fff; border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 12px 28px rgba(0,0,0,.2); min-width: 220px; }
.hp-stat-k { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.hp-stat-v { font: 800 30px Outfit, sans-serif; color: var(--green); }
.hp-stat-v small { font: 700 15px 'DM Sans', sans-serif; color: #0E7A50; }
.hp-stat-s { font-size: 13px; color: var(--muted); }
.hp-strip { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; font-weight: 700; font-size: 15px; color: var(--muted); }
.hp-section { padding-top: 96px; display: flex; flex-direction: column; gap: 32px; }
.hp-last { padding-bottom: 72px; }
.hp-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.hp-grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.hp-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.hp-card h3, .hp-learner h3 { margin: 0; font: 700 22px Outfit, sans-serif; }
.hp-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.hp-card-gold { border: 2px solid var(--gold); }
.hp-num { width: 44px; height: 44px; border-radius: 50%; font: 800 20px/44px Outfit, sans-serif; text-align: center; }
.hp-price { font: 800 34px Outfit, sans-serif; }
.hp-price small { font: 600 16px 'DM Sans', sans-serif; color: var(--muted); }
.hp-price-sm { font-size: 26px; }
.hp-split { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hp-photo { flex: 1 1 460px; min-width: 0; width: 100%; height: 420px; object-fit: cover; border-radius: 28px; }
.hp-split-text { flex: 1 1 460px; display: flex; flex-direction: column; gap: 18px; }
.hp-split-text h2 { margin: 0; font-size: 40px; }
.hp-body { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); }
.hp-report { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.hp-report-k { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #128C4A; }
.hp-report p { margin: 6px 0 0; line-height: 1.5; }
.hp-learner { border-radius: 28px; padding: 0 0 30px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.hp-learner img { width: 100%; height: 220px; object-fit: cover; margin-bottom: 10px; }
.hp-learner h3, .hp-learner p { margin-left: 30px; margin-right: 30px; }
.hp-learner p { margin-top: 0; margin-bottom: 0; line-height: 1.55; }
.hp-schools { background: var(--green); color: #fff; border-radius: 32px; padding: 56px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.hp-schools > div { flex: 1 1 520px; display: flex; flex-direction: column; gap: 14px; }
.hp-schools h2 { margin: 0; font-size: 40px; color: #fff; }
.hp-schools p { margin: 0; font-size: 18px; line-height: 1.6; color: #DCEFE6; }
.hp-cta { background: #FFF0CC; border-radius: 32px; padding: 52px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.hp-cta h2 { margin: 0; font-size: 36px; flex: 1 1 480px; }
.hp-note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 720px) {
  .hp-hero-wrap { padding-top: 16px; }
  .hp-wrap { padding-left: 16px; padding-right: 16px; }
  .hp-hero-text { padding: 28px 22px 24px; gap: 14px; }
  .hp h1 { font-size: 38px; }
  .hp h2, .hp-split-text h2, .hp-schools h2 { font-size: 30px; }
  .hp-cta h2 { font-size: 26px; }
  .hp-hero-art { min-height: 360px; flex-basis: 100%; }
  .hp-bubble { left: 16px; top: 18px; font-size: 14px; }
  .hp-hero-art:has(.hp-hero-photo) .hp-bubble { display: none; }
  .hp-stat { right: 14px; bottom: 16px; min-width: 0; padding: 12px 14px; }
  .hp-stat-v { font-size: 24px; }
  .hp-section { padding-top: 56px; gap: 22px; }
  .hp-schools, .hp-cta { padding: 28px 22px; border-radius: 26px; }
  .hp-photo { height: 260px; flex-basis: 100%; }
  .hp-actions .sh-btn { width: 100%; justify-content: center; }
}
.sh-lite .hp-photo, .sh-lite .hp-learner img { display: none; }

/* ---- Teacher trust: photos, badges, testimonials */
.sh-face-photo { object-fit: cover; padding: 0; background: var(--gold-tint); }
.sh-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sh-badges li { position: relative; }
.sh-badge { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 3px 10px; border-radius: 999px; border: 1px solid #BFE0D0; background: var(--green-tint); color: var(--green-dark); font: 700 13px var(--body); cursor: help; }
.sh-badge-i { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid currentColor; font: 800 10px/12px var(--body); text-align: center; opacity: .75; }
.sh-badge-tip { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; width: 240px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; line-height: 1.45; padding: 9px 11px; border-radius: 10px; visibility: hidden; opacity: 0; transition: opacity .12s; pointer-events: none; }
.sh-badges li:hover .sh-badge-tip, .sh-badge:focus + .sh-badge-tip, .sh-badge:focus-visible + .sh-badge-tip { visibility: visible; opacity: 1; }
.sh-tcard .sh-badges { margin-top: -2px; }
.sh-stars-row { display: grid; grid-template-columns: 52px 1fr 36px; gap: 10px; align-items: center; font-size: 14px; }
.sh-stars-bar { height: 8px; border-radius: 999px; background: #F2E9D8; overflow: hidden; } .sh-stars-bar i { display: block; height: 100%; background: var(--gold); }
.sh-testimonial { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.sh-testimonial:first-child { border-top: 0; padding-top: 0; }
.sh-reply { margin-left: 14px; padding: 10px 12px; border-radius: 12px; background: var(--gold-tint); font-size: 14px; }
.sh-starpick { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.sh-starpick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sh-starpick label { font-size: 30px; line-height: 1; color: #D9CDB5; cursor: pointer; padding: 4px 2px; min-width: 36px; min-height: 40px; text-align: center; }
.sh-starpick input:checked ~ label, .sh-starpick label:hover, .sh-starpick label:hover ~ label { color: var(--gold-dark); }
.sh-starpick input:focus-visible + label { outline: 2px solid var(--green); border-radius: 6px; }
.sh-doc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.sh-doc:first-child { border-top: 0; }
.sh-status { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.sh-status.Waiting { background: var(--gold-tint); color: #6B4400; } .sh-status.Accepted { background: var(--green-tint); color: var(--green-dark); } .sh-status.Rejected { background: #FDE8E4; color: #8A2E17; } .sh-status.Expired { background: #EEE; color: #555; }

/* ---- Messages */
.sh-convlist { padding: 6px; }
.sh-conv { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 14px; border-radius: 14px; text-decoration: none; color: inherit; min-height: 56px; }
.sh-conv + .sh-conv { border-top: 1px solid var(--line); }
.sh-conv:hover { background: var(--gold-tint); }
.sh-conv.unread strong { font-weight: 800; }
.sh-conv-main { display: flex; flex-direction: column; min-width: 0; }
.sh-conv-last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-conv-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.sh-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--coral); color: #fff; font: 800 12px/22px var(--body); text-align: center; }
.sh-thread { display: flex; flex-direction: column; gap: 12px; max-height: 60vh; overflow-y: auto; }
.sh-msg2 { max-width: 82%; align-self: flex-start; background: #F7F1E5; border-radius: 16px 16px 16px 6px; padding: 10px 14px; }
.sh-msg2.mine { align-self: flex-end; background: var(--green-tint); border-radius: 16px 16px 6px 16px; }
.sh-msg2.notice { max-width: 100%; align-self: stretch; background: var(--gold-tint); border-radius: 14px; }
.sh-msg2.removed p { font-style: italic; color: var(--muted); }
.sh-mailbadge { position: relative; text-decoration: none; font-size: 20px; }
.sh-mailbadge .count { position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: #fff; font: 800 11px/18px var(--body); text-align: center; }
.sh-moved { font-size: 13px; color: #8A5A00; }

/* ---- Shule Lab */
.lab-sec h2 { font-size: 20px; margin: 0; }
.lab-bench { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: center; background: #FBF7EF; border-radius: 18px; padding: 20px; }
.lab-dark { background: #23302B; min-height: 220px; }
.lab-stand { position: relative; width: 170px; height: 300px; }
.lab-burette { position: absolute; left: 70px; top: 0; width: 24px; height: 220px; border: 2px solid #5E6B66; border-radius: 6px 6px 3px 3px; background: #fff; overflow: hidden; }
.lab-burette-liquid { position: absolute; left: 0; right: 0; bottom: 0; background: #BFE6F7; transition: top .25s; }
.lab-scale { position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0, transparent 21px, #5E6B66 21px, #5E6B66 22px); }
.lab-tap { position: absolute; left: 66px; top: 222px; width: 32px; height: 9px; border-radius: 4px; background: var(--gold); }
.lab-flask { position: absolute; left: 35px; bottom: 0; width: 100px; height: 64px; clip-path: polygon(38% 0, 62% 0, 62% 20%, 100% 100%, 0 100%, 38% 20%); transition: background .3s; outline: 2px solid #5E6B66; }
.lab-reading { font: 800 26px var(--head); font-variant-numeric: tabular-nums; }
.lab-in { min-height: 44px; max-width: 160px; font-variant-numeric: tabular-nums; }
.lab-sel { min-height: 44px; max-width: 240px; }
.lab-table td, .lab-table th { vertical-align: middle; }
.lab-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.lab-flame { --c: #9CC9F5; width: 90px; height: 150px; border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%; background: radial-gradient(ellipse at 50% 75%, #CFE6FF 0 18%, var(--c) 45%, transparent 72%); filter: blur(1px); animation: lab-flick .18s infinite alternate; }
@keyframes lab-flick { to { transform: scaleY(1.04) translateY(-2px); } }
.lab-pend { width: 280px; height: 240px; }
.lab-range { width: 220px; accent-color: var(--green); }
.lab-meter { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: flex; justify-content: space-between; gap: 16px; min-width: 200px; }
.lab-meter b { font: 800 22px var(--head); font-variant-numeric: tabular-nums; }
.lab-circuit svg { width: 260px; height: 150px; }
.lab-tubes { align-items: flex-end; }
.lab-tubebox { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lab-tube { --c: #F4EBD8; width: 34px; height: 110px; border: 2px solid #5E6B66; border-top: 0; border-radius: 0 0 17px 17px; background: linear-gradient(to top, var(--c) 0 55%, transparent 55%); transition: background .4s; }
.lab-tube.sm { width: 24px; height: 60px; border-radius: 0 0 12px 12px; }
.lab-tank { position: relative; width: 70px; height: 54px; border: 2px solid #5E6B66; border-top: 0; border-radius: 0 0 10px 10px; background: linear-gradient(to top, #BFE6F7 0 70%, transparent 70%); overflow: hidden; }
.lab-obj { position: absolute; left: 26px; top: -4px; font-size: 18px; color: #7A5230; transition: top 1s ease-in; }
.lab-tank.float .lab-obj { top: 8px; } .lab-tank.sink .lab-obj { top: 30px; }
.lab-hint { position: sticky; bottom: 12px; z-index: 5; display: flex; gap: 10px; align-items: flex-start; background: var(--gold-tint); border: 1px solid var(--line-strong); border-radius: 16px; padding: 12px 14px; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.lab-hint b { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: var(--gold); font: 800 15px/32px var(--head); text-align: center; }
.lab-clock { position: sticky; top: 8px; z-index: 6; align-self: flex-end; background: var(--ink); color: #fff; font-weight: 800; padding: 6px 14px; border-radius: 999px; }
.lab-card { display: flex; gap: 16px; text-decoration: none; color: inherit; align-items: flex-start; }
.lab-ic { flex: none; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; }
.lab-tabs { display: flex; gap: 6px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; align-self: flex-start; }
.lab-tabs a { padding: 9px 16px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px; min-height: 40px; display: inline-flex; align-items: center; }
.lab-tabs a[aria-current="page"] { background: var(--green); color: #fff; }
.lab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
@media (max-width: 720px) { .lab-hint { margin-right: 64px; } }
@media (max-width: 400px) { .sh-bell { width: 34px; } .sh-brand .sh-word small { display: none; } }
@media (max-width: 420px) { .sh-bar { gap: 6px; } .sh-word { font-size: 19px; } .sh-mark { width: 34px; height: 34px; font-size: 20px; line-height: 34px; } .sh-nav .sh-link { font-size: 14px; } .sh-nav .sh-btn-sm { padding: 0 8px; font-size: 13px; } }
@media (max-width: 420px) { .sh-nav .sh-link, .sh-nav .sh-btn { white-space: nowrap; } .sh-bar:has(.sh-bell) .sh-word { display: none; } }
.lab-syringe { position: relative; width: 240px; height: 34px; border: 2px solid #5E6B66; border-radius: 6px; background: #fff; }
.lab-syr-scale { position: absolute; inset: 0; background: repeating-linear-gradient(to right, transparent 0, transparent 20px, #C9CFCC 20px, #C9CFCC 21px); }
.lab-plunger { position: absolute; top: -6px; left: 4%; width: 8px; height: 42px; background: #5E6B66; border-radius: 3px; transition: left .9s ease-out; }
.lab-tube { position: relative; }
.lab-fizz::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 50%; background: radial-gradient(circle, #fff 1.5px, transparent 2.2px) 0 0 / 8px 10px; animation: lab-bubble .5s linear infinite; border-radius: 0 0 14px 14px; }
@keyframes lab-bubble { to { background-position: 0 -10px; } }
.lab-graph { width: 100%; max-width: 420px; height: auto; background: #FBF7EF; border-radius: 12px; }
.sh-level.gold { background: #FFF1C2; border-color: #E9C86A; color: #6B4A00; }
.sh-level.silver { background: #EEF1F4; border-color: #C9D1D9; color: #3A4652; }
.sh-badges span:hover > .sh-badge-tip, .sh-level:focus + .sh-badge-tip { visibility: visible; opacity: 1; }

/* ---- Reasoning test (IQ-style) */
.rz-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rz-clock { font: 800 22px/1 var(--head); color: #6D28D9; background: #F1ECFD; padding: 10px 14px; border-radius: 14px; white-space: nowrap; }
.rz-clock.low { background: #FDECEA; color: var(--danger); }
.rz-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.rz-dots button { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--line-strong); background: #fff; font-weight: 700; color: var(--muted); cursor: pointer; }
.rz-dots button.done { background: #EDE7FB; border-color: #C4B5F4; color: #4C1D95; }
.rz-dots button.now { border-color: #6D28D9; color: #6D28D9; }
.rz-prompt { font: 700 21px/1.35 var(--head); margin: 0; }
.rz-grid { display: grid; gap: 8px; max-width: 420px; }
.rz-grid.row { max-width: 640px; }
.rz-grid span { min-height: 70px; display: flex; align-items: center; justify-content: center; text-align: center; border: 2px solid var(--line-strong); border-radius: 14px; background: #FBF7EF; font: 800 24px/1.1 var(--head); padding: 6px; overflow-wrap: anywhere; letter-spacing: .04em; }
.rz-grid span.gap { border-style: dashed; border-color: #6D28D9; color: #6D28D9; background: #F7F3FF; }
.rz-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rz-opts button { min-height: 58px; padding: 10px 14px; border-radius: 16px; border: 2px solid var(--line-strong); background: #fff; font: 700 19px/1.2 var(--head); color: var(--ink); cursor: pointer; letter-spacing: .03em; }
.rz-opts button:hover { border-color: #6D28D9; }
.rz-opts button.picked { background: #6D28D9; border-color: #6D28D9; color: #fff; }
.rz-mem { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.rz-flash { font: 800 44px/1.2 var(--head); letter-spacing: .25em; color: #4C1D95; background: #F1ECFD; padding: 18px 24px; border-radius: 18px; }
.rz-digits { font: 800 26px/1 var(--head); letter-spacing: .3em; max-width: 360px; }
.rz-areas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rz-areas li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: start; }
.rz-areas li > span:first-child { font-size: 24px; }
.rz-score { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rz-score strong { font: 800 40px/1 var(--head); color: #4C1D95; }
.rz-score strong span { font-size: 20px; color: var(--muted); }
.rz-label { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; background: #EDE7FB; color: #4C1D95; }
.rz-label.rz-excellent, .rz-label.rz-strong { background: #DFF3E8; color: #0B5D3B; }
.rz-label.rz-needspractice { background: #FFF3D6; color: #6B4400; }
.rz-hero { background: #4C1D95; color: #fff; border: 0; }
.rz-area { padding-top: 6px; }
.rz-rev { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.rz-mark { font-weight: 800; font-size: 18px; }
.rz-rev.ok .rz-mark { color: #0B7A4B; }
.rz-rev.no .rz-mark { color: var(--danger); }
.rz-mini { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 8px; background: #FBF7EF; border: 1px solid var(--line); letter-spacing: .05em; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .rz-grid span { min-height: 56px; font-size: 19px; }
  .rz-opts { grid-template-columns: 1fr 1fr; }
  .rz-flash { font-size: 34px; }
  #rz-form { align-items: stretch !important; padding-right: 64px; }
  .sh-subjbar { grid-template-columns: minmax(110px, 1fr) 1.4fr 60px; }
}

/* ---- Platform activity (admin) */
.act-filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.act-filter .sh-field { margin: 0; }
.act-chart { display: flex; align-items: stretch; gap: 3px; height: 150px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.act-day { flex: 1; min-width: 8px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; text-decoration: none; color: var(--muted); border-radius: 6px; padding: 2px 1px 0; }
.act-day:hover, .act-day.on { background: var(--green-tint); }
.act-day .bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.act-day i { width: 45%; max-width: 18px; border-radius: 3px 3px 0 0; }
.act-day i.a, .act-key.a { background: var(--green); }
.act-day i.c, .act-key.c { background: var(--gold-dark); }
.act-day .lbl { font-size: 11px; white-space: nowrap; }
.act-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: middle; }
.act-key.a { margin-left: 0; }
.act-unused td { color: var(--muted); background: #FFFBF3; }
.act-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.act-two > * { min-width: 0; }
@media (max-width: 520px) { .act-two { grid-template-columns: 1fr; } .act-day .lbl { font-size: 9px; } }

/* ---- Teachers: my students */
.ts-weak { margin: 0; padding-left: 18px; line-height: 1.8; }
.ts-trend { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.ts-change { display: inline-block; min-width: 38px; text-align: center; padding: 1px 8px; border-radius: 999px; font-weight: 800; font-size: 13px; background: #EEF2EF; color: var(--muted); }
.ts-change.up { background: #DFF3E8; color: #0B5D3B; }
.ts-change.down { background: #FDECEA; color: var(--danger); }
.ts-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.ts-form .sh-field { margin: 0; }
.ts-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
@media (max-width: 640px) { .ts-form { grid-template-columns: 1fr; } }
.ts-progress { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #DFF3E8; color: #0B5D3B; font-weight: 700; white-space: nowrap; }

/* ---- Biology practicals */
.bio-test { gap: 12px; }
.bio-test h3 { font-size: 18px; }
.bio-cols { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; align-items: start; }
.bio-cols + .bio-cols { grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); padding-top: 12px; }
.bio-seq { margin: 0; padding-left: 22px; display: grid; gap: 6px; min-height: 30px; }
.bio-seq li { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #F3F8F4; border: 1px solid #D5E7DA; border-radius: 10px; padding: 6px 8px; font-size: 14px; }
.bio-seq li.muted { background: none; border: 0; padding: 0; }
.bio-x { min-height: 30px !important; padding: 2px 10px !important; font-size: 12px !important; }
.bio-bank { display: flex; flex-wrap: wrap; gap: 6px; }
.bio-step { text-align: left; white-space: normal !important; line-height: 1.3 !important; height: auto !important; padding: 8px 12px !important; font-weight: 600 !important; }
.bio-step:disabled { opacity: .35; }
.bio-seen { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: #FBF7EF; border-radius: 14px; padding: 12px; }
.bio-saw { font-weight: 700; font-size: 14px; }
.bio-opts { display: grid; gap: 6px; }
.bio-opt { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1.5px solid var(--line-strong); border-radius: 12px; cursor: pointer; font-size: 14px; background: #fff; }
.bio-opt input { margin-top: 3px; accent-color: var(--green); }
.bio-opt:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
.bio-q { font-weight: 700; margin: 0 0 6px; }
.bio-qbox { padding-top: 10px; border-top: 1px solid var(--line); }
.bio-artbox { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: flex; justify-content: center; }
.bio-art { width: 100%; max-width: 460px; height: auto; }
.bio-labels { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.bio-label { margin: 0; }
@keyframes bio-rise { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-40px); opacity: 0; } }
@media (max-width: 640px) { .bio-cols, .bio-cols + .bio-cols { grid-template-columns: 1fr; } }

/* ---- Past papers */
.pp-pdf { width: 100%; height: 75vh; min-height: 480px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.pp-paper { display: grid; gap: 14px; }
.pp-ins { background: #FBF7EF; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.pp-sec { font-size: 18px; margin-top: 6px; padding-top: 8px; border-top: 2px solid var(--line); }
.pp-q { display: grid; gap: 4px; }
.pp-qhead { display: flex; justify-content: space-between; gap: 10px; }
.pp-marks { font-size: 13px; color: var(--muted); white-space: nowrap; }
.pp-text { margin: 0; white-space: pre-line; line-height: 1.6; }
.pp-scheme { background: #EEF7F1; border-left: 4px solid var(--green); border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.pp-scheme p { margin: 4px 0 0; white-space: pre-line; }
.pp-adm { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: start; }
.sh-chip.on { background: var(--green); color: #fff; border-color: var(--green); }
#pp-subjects .sh-chip { padding: 8px 14px; font-size: 14px; text-decoration: none; border: 1px solid transparent; }
.pp-list { display: grid; }
.pp-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pp-item form, .pp-item > a { flex: none; }
.lab-subjects .sh-chip { padding: 8px 14px; font-size: 14px; text-decoration: none; }
.lab-subject { font-size: 22px; margin-top: 8px; scroll-margin-top: 90px; }
/* notes and memory aids */
.notes-list{margin:0;padding-left:22px;display:grid;gap:6px}
.notes-list li{line-height:1.5}
.notes-list .sh-linkbtn{color:#8A2E17;padding:0 4px}
.note-body{line-height:1.7;font-size:17px}
.note-body h2{font-size:22px;margin:22px 0 8px}
.note-body h2:first-child{margin-top:0}
.note-body h3{font-size:18px;margin:16px 0 6px}
.note-body p{margin:0 0 10px}
.note-body ul{margin:0 0 12px;padding-left:22px}
.note-body li{margin:3px 0}
.ma-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.ma-item{border:1px solid var(--line);border-radius:14px;padding:12px 14px;background:#fff}
.ma-aid{font:800 18px/1.3 var(--head);color:var(--green);margin-bottom:4px}
@media (max-width:560px){.note-body{font-size:16px}.ma-grid{grid-template-columns:1fr}}
/* specimen photos (admin) and photo practicals */
.lp-wrap{position:relative;display:inline-block;max-width:100%}
.lp-img{display:block;max-width:100%;height:auto;border-radius:10px}
.lp-dots{position:absolute;inset:0;cursor:crosshair}
.lp-part.on{background:var(--green);color:#fff;border-color:var(--green)}
/* Mwalimu as photographs in the tutor and explainer */
.sh-photo-av { position: absolute; inset: 0; overflow: hidden; background: #E9EFE9; }
.sh-photo-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; opacity: 0; transition: opacity .45s ease; animation: sh-breathe 7s ease-in-out infinite; }
.sh-photo-av img.teach { object-position: 32% 30%; }
.sh-photo-av img.on { opacity: 1; }
.sh-photo-glow { position: absolute; inset: auto 0 0 0; height: 30%; background: radial-gradient(60% 100% at 50% 100%, rgba(255,194,61,.55), transparent 70%); opacity: 0; transition: opacity .12s linear; pointer-events: none; }
@keyframes sh-breathe { 0%, 100% { transform: scale(1.02); } 50% { transform: scale(1.05) translateY(-0.6%); } }
@media (prefers-reduced-motion: reduce) { .sh-photo-av img { animation: none; transition: none; } }

/* People & usage (admin) */
.us-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.us-group { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; text-decoration: none; color: inherit; border: 2px solid transparent; }
.us-group strong { font-size: 30px; line-height: 1.1; }
.us-group .us-gname { font-weight: 700; font-size: 14px; }
a.us-group:hover, .us-group.on { border-color: var(--green, #1f6f4a); }
.us-bar { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; max-width: 260px; }
.us-bar i { display: block; height: 6px; border-radius: 3px; background: var(--green, #1f6f4a); }
.us-bar i.v { background: var(--gold-dark); opacity: .85; }
.act-day .bars i.v { background: var(--gold-dark); }
.act-key.v { background: var(--gold-dark); }

/* Teacher dashboard: cancel a class from the list */
#cl-cancel::backdrop { background: rgba(20, 30, 25, .45); }
.sh-btn.cl-cancel { color: var(--danger); }
.cl-slot { display: grid; grid-template-columns: minmax(0, 150px) auto minmax(0, 150px) auto auto; align-items: center; gap: 8px; margin-bottom: 8px; justify-content: start; }
.cl-slot .sh-input { width: 100%; min-width: 0; padding-left: 10px; padding-right: 6px; }
.cl-slot .cl-len { white-space: nowrap; }
@media (max-width: 480px) { .cl-slot { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); row-gap: 4px; } .cl-slot .cl-len { grid-row: 2; grid-column: 1 / 3; } .cl-slot .cl-slot-x { grid-row: 2; grid-column: 3; justify-self: end; } }
.cl-slots legend { font-weight: 600; margin-bottom: 6px; }

/* Mwalimu: a photo or document with the question */
.sh-attach { background: #fff; border: 1.5px solid var(--line, #E8DCC4); font-size: 18px; flex: none; }
.sh-attached { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 0 8px; background: #fff; border: 1.5px dashed var(--line, #E8DCC4); border-radius: 14px; }
.sh-attached.bad { border-color: var(--danger); color: var(--danger); }
.sh-attached img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; display: block; }
.sh-attached .sh-attached-doc { font-size: 30px; line-height: 1; }
.sh-attached #attached-name { flex: 1; min-width: 0; }
.sh-attached .sh-round { width: 34px; height: 34px; flex: none; }
.sh-msg-photo { display: block; margin: 0 0 6px; }
.sh-msg-photo img { display: block; max-width: min(240px, 100%); max-height: 260px; border-radius: 10px; object-fit: contain; background: rgba(255,255,255,.4); }
.sh-msg-file { display: inline-block; margin: 0 0 6px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.25); font-weight: 600; color: inherit; text-decoration: none; }
a.sh-msg-file:hover { text-decoration: underline; }
.sh-chat > .sh-attached { margin: 8px 14px 0; }
@media (max-width: 560px) { .sh-compose .sh-attach { width: 40px; height: 40px; font-size: 17px; margin-bottom: 6px; } .sh-compose .sh-round:not(.sh-attach) { width: 46px; height: 46px; } }

/* Saved board after the class */
.bd-saved { display: flex; flex-direction: column; gap: 18px; }
.bd-saved canvas { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.12); background: #fff; }
@media print {
  .bd-noprint, header, footer, nav { display: none !important; }
  .bd-saved figure { break-after: page; margin: 0; }
  .bd-saved canvas { box-shadow: none; border: 1px solid #ccc; }
}

/* ---------- Installable app: install chip, iPhone how-to, offline bar ---------- */
.app-install { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 10px 12px; box-shadow: 0 8px 30px rgba(20,32,27,.22); }
.app-install[hidden] { display: none; }
.app-install img { border-radius: 10px; flex: none; }
.app-install div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.app-install div span { font-size: 13px; color: var(--muted, #5B6B63); }
.app-install-x { border: 0; background: transparent; font-size: 18px; color: #5B6B63; cursor: pointer; padding: 6px; }
.app-ios { position: fixed; inset: 0; z-index: 70; background: rgba(20,32,27,.5); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.app-ios[hidden] { display: none; }
.app-ios-card { background: #fff; border-radius: 18px; padding: 18px 20px; max-width: 420px; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.app-ios-card ol { margin: 0; padding-left: 20px; line-height: 1.6; }
.app-offline { background: #3B2A06; color: #FFF4D6; text-align: center; padding: 8px 12px; font-size: 14px; font-weight: 600; }
.app-offline[hidden] { display: none; }
.app-offline a { color: #F5B731; }
.app-alert { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 80; background: rgba(20,32,27,.92); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; max-width: calc(100% - 32px); }
.app-alert[hidden] { display: none; }
/* Save-for-offline buttons */
[data-save-offline].saved { background: #E8F5EE; color: #0E5A43; border-color: #A7D7BF; }
/* Practice quiz under notes */
.nq-q { font-weight: 600; font-size: 17px; margin: 4px 0 10px; }
.nq-opts { display: flex; flex-direction: column; gap: 8px; }
.nq-opt { text-align: left; border: 1.5px solid var(--line, #E8DCC4); background: #fff; border-radius: 12px; padding: 10px 14px; font: inherit; cursor: pointer; color: inherit; }
.nq-opt:hover:not(:disabled) { border-color: var(--green, #0E5A43); }
.nq-opt:disabled { cursor: default; }
.nq-opt.right { border-color: #15803D; background: #E8F5EE; font-weight: 600; }
.nq-opt.wrong { border-color: #B42318; background: #FDECEA; }
.nq-why { margin: 10px 0 8px; padding: 8px 12px; border-radius: 10px; }
.nq-why.ok { background: #E8F5EE; } .nq-why.no { background: #FFF4D6; }
.nq-score { font-size: 28px; font-weight: 800; margin: 0; }
.notes-save { margin-left: 6px; }
.offline-list { display: flex; flex-direction: column; gap: 6px; padding: 0; margin: 0; list-style: none; }
.offline-list li { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line, #E8DCC4); }
/* Kenya Life stays in the top bar on phones, as an icon */
@media (max-width: 640px) { .sh-nav a.sh-link-kl { display: inline-flex; font-size: 22px; padding: 0 2px; } .sh-kl-word { display: none; } }

/* Lab bench (labbench.js): the hands-on chemistry bench */
.lb-host { width: 100%; }
.lb-wrap { position: relative; width: 100%; border-radius: 16px; overflow: hidden; background: #DDE5E0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.lb-canvas { display: block; width: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
.lb-tip { position: absolute; left: 12px; right: 12px; top: 10px; margin: 0 auto; max-width: 560px; background: rgba(20,32,28,.9); color: #fff; padding: 8px 12px; border-radius: 10px; font-size: 14px; line-height: 1.35; opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; pointer-events: none; text-align: center; }
.lb-tip.on { opacity: 1; transform: none; }
.lb-tests .lb-tip { top: auto; bottom: 8px; right: 64px; }
.lb-tip.warn { background: rgba(160,40,20,.94); }
.lb-how { margin: 0; }
.lb-keys .sh-btn { min-height: 36px; }
@media (max-width: 640px) { .lb-tip { font-size: 12.5px; top: 6px; padding: 6px 10px; } }
.lab-free { justify-content: space-between; gap: 14px; text-decoration: none; color: inherit; border-color: #F0C4D8; background: linear-gradient(90deg, #FDF0F6, #fff); }
.lab-free .lab-ic { font-size: 26px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: #FBE2EE; flex: none; }
.lb-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.lb-log { margin: 0; padding: 0 0 0 18px; max-height: 220px; overflow: auto; font-size: 14px; }
.lb-log li { margin: 3px 0; }
.lb-log li.warn { color: #A0281A; }
.lb-full { position: absolute; right: 8px; bottom: 8px; width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(20,32,28,.72); color: #fff; font-size: 20px; cursor: pointer; }
.lb-wrap:fullscreen { display: flex; align-items: center; justify-content: center; background: #1D2623; border-radius: 0; }
.lb-wrap:fullscreen .lb-canvas { width: auto; }
.lb-rotate { display: none; margin: 0; font-size: 13px; color: var(--muted, #5E6B66); }
@media (max-width: 640px) and (orientation: portrait) { .lb-rotate { display: block; } }
/* Biology on the bench: specimen tools */
.bio-spec { flex-direction: column; align-items: stretch; gap: 8px; }
.bio-tools { gap: 6px; flex-wrap: wrap; }
.bio-tools .on { background: var(--green, #0E5A43); color: #fff; }
.bio-stage { position: relative; overflow: auto; display: flex; justify-content: center; touch-action: pan-y; }
.bio-stage .bio-art { transition: transform .3s ease; }
.bio-lens { position: absolute; width: 140px; height: 140px; border-radius: 50%; overflow: hidden; border: 4px solid #3B4A45; box-shadow: 0 8px 20px rgba(0,0,0,.3); background: #fff; pointer-events: none; z-index: 3; }
.bio-lens svg { position: absolute; max-width: none; }
.bio-num { cursor: pointer; }
.bio-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bio-chip { border: 1px solid #9BD3B4; background: #EAF6EF; color: #0E5A43; border-radius: 999px; padding: 6px 12px; font: 600 14px var(--body, system-ui); cursor: grab; touch-action: none; }
.bio-chip.used { opacity: .45; }
.bio-chip.picked { background: #0E5A43; color: #fff; }
.bio-ghost { position: fixed; z-index: 50; transform: translate(-50%, -120%); pointer-events: none; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.bio-chip { user-select: none; -webkit-user-select: none; }
/* readings the learner measures on the bench */
.lab-measure { max-width: 7.5rem; background: #FFFBEA; border-style: dashed; }
.lab-check { display: inline-block; margin-left: 6px; font-size: .8rem; font-weight: 700; }
.lab-check.ok { color: #0E7A4F; } .lab-check.no { color: #B5530C; }
.lb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* free physics and biology benches */
.lab-free-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.lab-free-pick { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line, #E4E1D8); background: var(--card, #fff); cursor: pointer; font: inherit; color: inherit; }
.lab-free-pick strong { font-size: 15px; }
.lab-free-pick:hover { border-color: #0E7A4F; }
.lab-free-pick[aria-pressed="true"] { border-color: #0E7A4F; background: #E9F5EE; box-shadow: inset 0 0 0 1px #0E7A4F; }
/* graph paper (labgraph.js) */
.lg-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lg-mode, .lg-tool { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 11px; border-radius: 999px; border: 1.5px solid var(--line, #E4E1D8); background: #fff; cursor: pointer; color: inherit; }
.lg-mode[aria-pressed="true"] { background: #0E7A4F; border-color: #0E7A4F; color: #fff; }
.lg-sep { width: 1px; height: 22px; background: var(--line, #E4E1D8); margin: 0 4px; }
.lg-box { overflow: auto; max-width: 100%; border: 1px solid var(--line, #E4E1D8); border-radius: 10px; background: #fff; -webkit-overflow-scrolling: touch; }
.lg-box.lg-zoomed { max-height: 80vh; }
.lg-canvas { display: block; width: 100%; height: auto; cursor: crosshair; }
.lg-axrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.lg-axrow > strong { width: 130px; align-self: center; }
.lg-field { display: flex; flex-direction: column; gap: 2px; }
.lg-in { padding: 6px 8px; min-height: 0; }
.lg-typed { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lg-info { margin: 0; min-height: 1.2em; color: #0E5A43; }
.lg-list { margin: 0; color: var(--muted, #6B6B60); word-break: break-word; }
/* biological drawing (labdraw.js) */
.ld-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; align-items: start; }
@media (max-width: 760px) { .ld-split { grid-template-columns: 1fr; } }
.ld-spec { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 8px; }
.ld-specbox { overflow: auto; max-height: 70vh; border: 1px solid var(--line, #E4E1D8); border-radius: 10px; background: #fff; }
.ld-specbox > * { display: block; width: 100%; height: auto; }
.ld-paper { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ld-canvas { cursor: crosshair; }
.ld-editor { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ---- Lab: the realistic 3D bench (lab3d.js, lab3d-titration.js) ---- */
.l3-switch{gap:8px;align-items:center;flex-wrap:wrap}
.l3-wrap{position:relative;border-radius:14px;overflow:hidden;background:#DCE3DF;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
.l3-canvas{display:block;width:100%;touch-action:none;cursor:grab}
.l3-canvas:active{cursor:grabbing}
.l3-lens{position:absolute;pointer-events:none;border:4px solid #26332E;border-radius:14px;box-shadow:0 6px 18px rgba(0,0,0,.25)}
.l3-lens span{position:absolute;left:0;right:0;top:-1px;transform:translateY(-100%);font:600 11px/1.3 system-ui,sans-serif;color:#26332E;background:rgba(255,255,255,.88);padding:3px 6px;border-radius:8px 8px 0 0;text-align:center}
.l3-tag{position:absolute;left:12px;top:12px;font:700 12px/1 system-ui,sans-serif;color:#fff;background:rgba(20,32,28,.78);padding:7px 10px;border-radius:999px;pointer-events:none}

/* Lab: step-by-step guide (labguide.js) */
.lg-panel { gap: 8px; display: flex; flex-direction: column; border: 2px solid var(--gold, #E8A317); background: #FFFBF0; position: sticky; top: 8px; z-index: 6; }
.lg-bar { height: 6px; border-radius: 3px; background: rgba(14,90,67,.12); overflow: hidden; }
.lg-bar span { display: block; height: 100%; width: 0; background: var(--green, #0E5A43); transition: width .4s ease; }
.lg-title { font-size: 18px; margin: 0; }
.lg-text { margin: 0; }
.lg-why summary { cursor: pointer; font-weight: 700; color: var(--green, #0E5A43); }
.lg-why p { margin: 4px 0 0; }
.lg-warn { margin: 0; padding: 8px 10px; border-radius: 10px; background: #FDEBE6; color: #8A2E17; }
.lg-count { font-weight: 700; color: var(--muted, #5B6B66); }
@keyframes lgPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,163,23,0); } 50% { box-shadow: 0 0 0 6px rgba(232,163,23,.55); } }
.lg-pulse { animation: lgPulse 1s ease 3; outline: 2px solid #E8A317; outline-offset: 1px; }
@media (max-width: 640px) { .lg-panel { top: 4px; max-height: 38vh; overflow: auto; padding: 10px 12px; gap: 6px; } .lg-title { font-size: 16px; } .lg-panel .sh-btn-sm { min-height: 34px; padding: 0 10px; font-size: 13px; } }
.lg-body { display: flex; gap: 12px; align-items: flex-start; }
.lg-lens { flex: none; width: 140px; height: 140px; }
@media (max-width: 640px) { .lg-lens { width: 104px; height: 104px; } }
/* 3D lab full screen: the whole lab (bench, tap buttons, camera views); .l3-max is the fallback where element full screen is missing */
.l3-full{left:8px;right:auto;z-index:3}
.l3-host:fullscreen,.l3-host.l3-max{background:#F6F1E7;padding:10px;overflow:auto;gap:8px}
.l3-host:-webkit-full-screen{background:#F6F1E7;padding:10px;overflow:auto;width:100%;height:100%}
.l3-host.l3-max{position:fixed;inset:0;z-index:1000}
html.l3-noscroll,html.l3-noscroll body{overflow:hidden}
.l3-host.l3-side{display:grid;grid-template-columns:minmax(0,1fr) 190px;grid-template-rows:auto 1fr;column-gap:10px;row-gap:6px;align-items:start}
.l3-host.l3-side>.l3-wrap{grid-column:1;grid-row:1 / span 2}
.l3-host.l3-side>.lb-keys,.l3-host.l3-side>.sh-row:not(.lb-keys){grid-column:2;flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:5px}
.l3-host.l3-side .sh-btn{min-height:32px;padding:0 8px;font-size:13px}

/* ---------------- Phone lab (labphone.js): a practical as a full-screen phone app */
html.pl-on, html.pl-on body { overflow: hidden; height: 100%; }
html.pl-on #lab-hint { display: none !important; }
.pl-app { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: #F6F1E7; color: #16231E; }
.pl-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); background: #0E5A43; color: #fff; flex: none; }
.pl-title { font-size: 17px; flex: 1; }
.pl-clock { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; }
.pl-exit.sh-btn { min-height: 34px; padding: 0 12px; font-size: 13px; background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.pl-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pl-pane[hidden] { display: none; }
.pl-scroll { overflow: auto; padding: 12px; gap: 12px; -webkit-overflow-scrolling: touch; }
.pl-stage { position: relative; flex: 1; min-height: 200px; overflow: hidden; background: #1D2623; touch-action: none; }
.pl-stage .lb-wrap { position: absolute; inset: 0; margin: 0; border-radius: 0; }
.pl-stage .lb-canvas { display: block; border-radius: 0; }
.pl-stage .lb-full { display: none; }
.pl-stage .lb-tip { top: auto; bottom: 52px; font-size: 14px; }
.pl-views { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pl-chip.sh-btn { min-height: 34px; padding: 0 12px; font-size: 13px; background: rgba(20,32,28,.72); color: #fff; border: 0; }
.pl-chip.on { background: #E8A317; color: #16231E; }
.pl-dock { flex: none; max-height: 48%; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid #E4DCCB; box-shadow: 0 -4px 14px rgba(0,0,0,.06); }
.pl-task { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 600; min-height: 1.35em; }
.pl-task:empty { display: none; }
.pl-row { display: flex; align-items: center; gap: 8px; }
.pl-row[hidden] { display: none; }
.pl-lbl { font-size: 13px; font-weight: 700; min-width: 30px; color: #3B4A45; }
.pl-seg { display: grid; grid-template-columns: repeat(4, 1fr); flex: 1; border: 1.5px solid #0E5A43; border-radius: 12px; overflow: hidden; }
.pl-seg .sh-btn { border: 0; border-radius: 0; min-height: 46px; padding: 0 4px; font-size: 14px; }
.pl-seg .sh-btn + .sh-btn { border-left: 1px solid rgba(14,90,67,.3); }
.pl-seg .sh-btn.on { background: #0E5A43; color: #fff; }
.pl-acts { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.pl-acts .sh-btn { min-height: 48px; font-size: 15px; padding: 0 6px; }
.pl-rec { background: #FFFBF0; border: 1px solid #F0DDAE; border-radius: 12px; padding: 8px; }
.pl-field { display: flex; flex-direction: column; gap: 2px; flex: 1; font-size: 12px; font-weight: 700; color: #3B4A45; min-width: 0; }
.pl-in.sh-input { min-height: 46px; font-size: 18px; font-variant-numeric: tabular-nums; width: 100%; }
.pl-done { margin: 0; }
.pl-tabs { flex: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #fff; border-top: 1px solid #E4DCCB; padding-bottom: env(safe-area-inset-bottom); }
.pl-tab { min-height: 54px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: #5B6B66; border-top: 3px solid transparent; }
.pl-tab.on { color: #0E5A43; border-top-color: #0E5A43; }
.pl-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; }
.pl-checks .ok { color: #0E5A43; } .pl-checks .no { color: #8A2E17; }
.pl-send.sh-btn { min-height: 52px; font-size: 16px; }
.pl-dock .lg-panel { position: static; border-width: 1.5px; padding: 8px 10px; gap: 6px; max-height: none; box-shadow: none; }
.pl-dock .lg-title { font-size: 15px; }
.pl-dock .lg-text, .pl-dock .lg-warn { font-size: 14px; }
.pl-dock .lg-panel .sh-btn-sm { min-height: 36px; }
.pl-dock .lg-bar { height: 4px; }
.pl-dock .lg-panel > .sh-row:first-child { display: none; }   /* the step count goes into the title line */
@media (max-height: 760px) {
  .pl-dock { gap: 6px; padding: 8px 10px; }
  .pl-seg .sh-btn, .pl-acts .sh-btn { min-height: 42px; font-size: 14px; }
  .pl-in.sh-input { min-height: 40px; font-size: 17px; }
  .pl-rec { padding: 6px 8px; }
  .pl-field { font-size: 11px; }
  .pl-tab { min-height: 48px; }
  .pl-dock .lg-why { display: none; }
}
/* a phone on its side: bench on the left, dock on the right */
@media (orientation: landscape) and (max-height: 500px) {
  .pl-bench { flex-direction: row; }
  .pl-dock { max-height: none; width: 44%; border-top: 0; border-left: 1px solid #E4DCCB; }
  .pl-tab { min-height: 42px; }
  .pl-head { padding-top: 4px; padding-bottom: 4px; }
}
.pl-dock .lg-title::before { content: attr(data-step) '  '; color: #8A6A12; font-size: 12px; }
.pl-dock > * { flex-shrink: 0; }

/* Phone lab for every bench: the page bench is a preview; one tap opens the phone lab */
.pl-preview { position: relative; }
.pl-preview .lb-canvas { pointer-events: none; }
.pl-preview .lb-full { display: none; }
.pl-openbtn { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: inherit; background: rgba(14,40,32,.28); color: #fff; font: inherit; font-weight: 800; font-size: 17px; cursor: pointer; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.pl-openicon { width: 54px; height: 54px; border-radius: 50%; background: #E8A317; color: #16231E; display: grid; place-items: center; font-size: 26px; text-shadow: none; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.pl-stage .pl-openbtn { display: none; }
.pl-stage .pl-preview .lb-canvas { pointer-events: auto; }
html.pl-on .lb-rotate, .pl-stage ~ .lb-rotate { display: none; }
.pl-zoom { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.pl-zoom .sh-btn { width: 40px; min-height: 40px; padding: 0; font-size: 22px; font-weight: 800; }
.pl-stage .lb-tip { left: 56px; right: 8px; }
.pl-cards { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.pl-cardchip.sh-btn { flex: none; min-height: 36px; padding: 0 12px; font-size: 13px; }
.pl-cardchip.on { background: #0E5A43; color: #fff; border-color: #0E5A43; }
.pl-cardbox > .bio-test { box-shadow: none; padding: 10px; }
.pl-cardbox .bio-cols { grid-template-columns: 1fr; }
.pl-cardbox .bio-bank .sh-btn, .pl-cardbox .sh-btn { min-height: 44px; }
.pl-dock .lb-keys { gap: 6px !important; }
.pl-dock .lb-keys .sh-btn { min-height: 44px; font-size: 14px; flex: 1 1 auto; }
.pl-dock .lb-controls { display: grid; gap: 8px; }
.pl-autorec { display: flex; flex-direction: column; gap: 4px; }
.pl-recrow { display: flex; align-items: flex-end; gap: 6px; }
.pl-recname { font-size: 12px; font-weight: 700; color: #3B4A45; line-height: 1.25; }
.pl-nav.sh-btn { width: 44px; min-height: 46px; padding: 0; font-size: 22px; flex: none; }
.pl-recmark { font-size: 13px; font-weight: 700; }
.pl-recmark:empty { display: none; }
.pl-recmark.ok { color: #0E5A43; } .pl-recmark.no { color: #8A2E17; }
.pl-preview ~ .lb-rotate { display: none !important; }
.pl-cardbox .bio-cols + .bio-cols { grid-template-columns: 1fr; }
.pl-ratio .pl-dock { flex: 1 1 auto; max-height: none; }
.pl-ratio .pl-dock { min-height: 0; }
.pl-views { flex-direction: row; }
.pl-chip.sh-btn { min-height: 30px; padding: 0 10px; font-size: 12px; background: rgba(20,32,28,.6); }
.pl-stage .l3-wrap { position: absolute; inset: 0; margin: 0; border-radius: 0; }
.pl-stage .l3-full { display: none; }
.pl-chip-3d.sh-btn { background: #E8A317; color: #16231E; font-weight: 800; }
.pl-chip.sh-btn.on { background: #E8A317; color: #16231E; }
.pl-stage .l3-lens span { display: none; }
.pl-stage .l3-wrap .lb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pl-stage .l3-tag { top: auto; bottom: 10px; left: 10px; }

/* Set books */
.sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sb-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; border-top: 4px solid #0E5A43; transition: transform .15s ease, box-shadow .15s ease; }
.sb-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.sb-kicker { font-weight: 700; color: #8A6A12; letter-spacing: .03em; }
.sb-title { font-size: 19px; line-height: 1.25; }
.sb-count { margin-top: auto; padding-top: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: #0E5A43; font-weight: 700; }
.note-body .sb-q { margin: 6px 0 0 4px; }
.sb-score { font-size: 22px; color: #0E5A43; }
.sb-result { border-left: 4px solid #0E5A43; }
