/* The client portal's own styles, on top of ui.css (docs/REDESIGN_PLAN.md, "Approved design"; the menu
   from docs/LEARNING_PLAN.md, Phase 2): the phone's top bar and the Student bar, Home, the lesson and homework lists, the homework reader, Credit and
   top-up, Refunds, Rewards and the privacy policy. Worksheets render as worksheet.js draws them. */

body.client-app { background: var(--ot-canvas); }
.client-app .hidden { display: none !important; }
.client-app .muted { color: var(--ot-muted); }

/* ---------- The menu: the staff and manager portals' sidebar (ui.css), a drawer on phones ----------
   On a phone or tablet the top bar holds Menu, the OneTutor wordmark centred, and the account's initials. */
@media (max-width: 1024px) {
  .client-app .ot-topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .client-app .ot-topbar > .ot-menu-btn { justify-self: start; }
  .client-app .ot-topbar > .ot-av { justify-self: end; }
  .tb-brand { display: inline-flex; align-items: center; min-height: 44px; border-radius: var(--ot-r-sm); }
  .tb-brand img { display: block; height: 32px; width: auto; }
}
@media (max-width: 360px) {
  .client-app .ot-topbar { column-gap: 4px; }
  .tb-brand img { height: 26px; }
}

/* The Student bar */
.c-ctx { background: #FAFCFE; border-bottom: 1px solid var(--ot-line); }
.c-ctx-in { max-width: 1192px; margin: 0 auto; padding: 10px 40px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.c-ctx label, .c-ctx .c-lab { font-weight: 600; font-size: 15px; margin: 0; }
.c-ctx .ot-select { width: auto; min-width: 220px; min-height: 40px; padding-top: 7px; padding-bottom: 7px; }
.c-single { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.c-ctx-hint { font-size: 14px; color: var(--ot-muted); margin-left: 4px; }

.c-foot { max-width: 1192px; margin: 0 auto; padding: 0 40px 96px; font-size: 14px; color: var(--ot-muted); display: flex; gap: 16px; flex-wrap: wrap; }
.c-foot a { color: var(--ot-muted); display: inline-flex; align-items: center; min-height: 24px; }
.client-app.login-mode .c-foot { display: none; }

/* ---------- Signing in ---------- */
.client-app.login-mode { background: linear-gradient(160deg, #E6F1FB 0%, #F4F6F8 46%, #E8F2FB 100%); }
.client-app.login-mode .ot-shell { display: block; }
.client-app.login-mode .ot-side, .client-app.login-mode .ot-topbar { display: none; }
.client-app.login-mode .ot-content { max-width: none; padding: 0; }
.login-hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-card { background: #fff; border: 1px solid var(--ot-line); border-radius: 20px; box-shadow: 0 18px 50px rgba(32,135,201,.15); padding: 40px 34px 32px; width: 100%; max-width: 470px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.login-card img.stacked { width: 330px; max-width: 86%; height: auto; margin-bottom: 2px; }
.login-card h2 { margin: 0; font-size: 22px; }
.login-card p.muted { max-width: 380px; margin: 0; }
.gbtn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 8px; background: #fff; color: #3C4043; border: 1px solid #DADCE0; border-radius: 8px; padding: 11px 18px; font: 600 15px var(--ot-font); cursor: pointer; }
.gbtn:hover { background: #F7F8F8; box-shadow: 0 1px 3px rgba(0,0,0,.10); }
.cl-login-msg { text-align: left; max-width: 380px; }
.cl-login-help { font-size: 14.5px; }
.cl-login-help a { font-weight: 600; white-space: nowrap; }

/* ---------- The parts every view shares ---------- */
.cl-banner:empty, .cl-status:empty { display: none; }
.cl-banner { margin-bottom: 20px; }
.cl-status { margin: 0 0 16px; }
.cl-load-error { margin-bottom: 20px; }
.cl-load-error .ot-btn { margin-top: 10px; }
.cl-head { margin-bottom: 20px; }
.cl-pad { padding: 4px 24px 20px; }
.cl-empty { border-top: 1px solid var(--ot-line-soft); }
.cl-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 3px; border-radius: 999px; background: #EEF2F6; font-size: 13.5px; font-weight: 600; color: var(--ot-ink-2); }
.cl-chip .ot-av { width: 22px; height: 22px; font-size: 10px; }
.cl-skill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 8px; background: var(--ot-blue-soft); color: var(--ot-blue-strong); font-size: 13.5px; font-weight: 700; }
.cl-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cl-noaccess { text-align: center; padding: 34px 22px; }
.cl-noaccess .ot-btn { margin-top: 6px; }

/* ---------- Home ---------- */
.cl-hello { position: relative; overflow: hidden; margin-bottom: 24px; padding: 24px 28px; border-radius: var(--ot-r-lg); background: linear-gradient(115deg, #E3F0FA 0%, #F2F8FD 55%, #FFFFFF 100%); border: 1px solid var(--ot-blue-soft-line); }
.cl-hello h1, .cl-hello-h { font-size: 28px; position: relative; }
.cl-h1 { font-size: 30px; }
.cl-hello p { color: var(--ot-ink-2); margin: 6px 0 0; position: relative; }
.cl-hello .ot-welcome-deco { width: 240px; height: 150px; }
.cl-promos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.cl-promo { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--ot-r-lg); text-decoration: none; color: #fff; background: linear-gradient(120deg, #1657C4 0%, #124AA6 100%); box-shadow: 0 8px 22px rgba(22,87,196,.22); transition: transform var(--ot-t), box-shadow var(--ot-t); }
.cl-promo:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(22,87,196,.3); }
.cl-promo::after { content: ""; position: absolute; right: -50px; top: -70px; width: 190px; height: 190px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.cl-promo .pi { width: 50px; height: 50px; border-radius: 14px; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; flex: none; }
.cl-promo .pi .ot-ic { width: 26px; height: 26px; }
.cl-promo .pt { display: block; font-weight: 750; font-size: 17px; color: #fff; }
.cl-promo .ps { display: block; font-size: 14px; color: #EAF4FB; margin-top: 2px; }
.cl-promo .go { position: relative; z-index: 1; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--ot-r-sm); background: #fff; font-weight: 700; color: #124AA6; white-space: nowrap; }
.cl-promo.friend { background: linear-gradient(120deg, #176AA6 0%, #0E5A86 100%); box-shadow: 0 8px 22px rgba(14,90,134,.22); }
.cl-promo.friend .go { color: #0E5A86; }
.cl-home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.cl-stack { display: grid; gap: 24px; align-content: start; min-width: 0; }
.cl-ph { padding-bottom: 12px; }
.cl-next { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; align-items: center; padding: 8px 24px 20px; }
.cl-cal { width: 76px; border-radius: 14px; overflow: hidden; border: 1px solid var(--ot-blue-soft-line); text-align: center; background: #fff; }
.cl-cal .m { background: var(--ot-blue-strong); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; padding: 4px 0; text-transform: uppercase; }
.cl-cal .d { font-size: 30px; font-weight: 750; padding: 4px 0 6px; font-variant-numeric: tabular-nums; }
.cl-next .t { font-size: 18px; font-weight: 700; }
.cl-next .meta { color: var(--ot-muted); margin-top: 2px; overflow-wrap: anywhere; }
.cl-next .cl-row { margin-top: 8px; }
.cl-card { padding: 0 24px 20px; }
.cl-card .ttl { font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.cl-card .meta { color: var(--ot-muted); font-size: 14px; margin-top: 2px; overflow-wrap: anywhere; }
.cl-card .cl-row { margin-top: 8px; }
.cl-sum { margin: 10px 0 0; color: var(--ot-ink-2); max-width: 68ch; overflow-wrap: anywhere; white-space: pre-wrap; }
.cl-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cl-card .cl-skill { margin-top: 10px; }
.cl-pending { margin: 10px 0 0; font-style: italic; color: var(--ot-muted); }
.cl-card .cl-acts { margin-top: 14px; }
.cl-file-note { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--ot-muted); }
.cl-file-note .ot-ic { width: 16px; height: 16px; }
.cl-bal-one { padding: 4px 24px 16px; }
.cl-bal-one .k { color: var(--ot-muted); font-size: 14px; }
.cl-bal-one .v { font-size: 36px; font-weight: 750; color: var(--ot-blue-strong); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.cl-bal-one .v.owing { color: var(--ot-warn); }
.cl-bal-one .v small { font-size: 18px; }
.cl-bal-row { display: flex; align-items: center; gap: 12px; padding: 12px 24px; border-top: 1px solid var(--ot-line-soft); }
.cl-bal-row .n { flex: 1; font-weight: 600; overflow-wrap: anywhere; }
.cl-bal-row .v { font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; text-align: right; }
.cl-bal-row .v.owing { color: var(--ot-warn); font-size: 18px; }
.cl-bal-row .v small { display: block; font-size: 12.5px; font-weight: 600; }
.cl-credit-foot { display: grid; gap: 12px; }

/* ---------- Scheduled and Lesson history ---------- */
.cl-list { list-style: none; margin: 0; padding: 0; }
.cl-up { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 24px; border-top: 1px solid var(--ot-line-soft); }
.cl-up .cl-cal { width: 64px; }
.cl-up .cl-cal .d { font-size: 24px; }
.cl-up .t { font-weight: 700; }
.cl-up .meta { color: var(--ot-muted); font-size: 14.5px; overflow-wrap: anywhere; }
.cl-up .end { display: grid; justify-items: end; gap: 6px; }
.cl-up .price { font-weight: 700; font-variant-numeric: tabular-nums; }
.cl-hist { padding: 18px 24px; border-top: 1px solid var(--ot-line-soft); }
.cl-hist .date { font-weight: 700; }
.cl-hist .meta { color: var(--ot-muted); font-size: 14px; overflow-wrap: anywhere; }
.cl-hist .ttl { font-weight: 650; margin-top: 6px; overflow-wrap: anywhere; }
.cl-hist .cl-skill { margin-top: 8px; }
.cl-hist .none { margin: 8px 0 0; color: var(--ot-muted); }

/* ---------- Homework and the reader ---------- */
.cl-hw { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 24px; border-top: 1px solid var(--ot-line-soft); }
.cl-hw .date { font-size: 14px; color: var(--ot-muted); font-weight: 600; line-height: 1.3; }
.cl-hw .date b { display: block; font-size: 22px; color: var(--ot-ink); font-weight: 750; }
.cl-hw .ttl { font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.cl-hw .meta { color: var(--ot-muted); font-size: 14px; margin-top: 2px; overflow-wrap: anywhere; }
.cl-hw .cl-sum { margin-top: 6px; -webkit-line-clamp: 2; }
dialog.cl-reader { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: var(--ot-canvas); color: var(--ot-ink); font-family: var(--ot-font); }
dialog.cl-reader::backdrop { background: var(--ot-canvas); }
.cl-reader-bar { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid var(--ot-line); }
.cl-reader-bar .in { max-width: 1120px; margin: 0 auto; padding: 8px 24px; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cl-reader-bar img { height: 32px; width: auto; display: block; }
.cl-reader-bar .spacer { width: 170px; }
.cl-reader-body { max-width: 820px; margin: 0 auto; padding: 28px 24px 96px; }
.cl-reader-body h1 { font-size: 28px; overflow-wrap: anywhere; }
.cl-reader-body .meta { color: var(--ot-muted); margin-top: 4px; overflow-wrap: anywhere; }
.cl-reader-body .cl-skill { margin-top: 12px; }
.cl-reader-body .cl-sum { margin-top: 14px; font-size: 16.5px; line-height: 1.6; }
.cl-ws-box { margin-top: 22px; overflow: hidden; }
.cl-ws-box .hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--ot-line-soft); }
.cl-ws-box .hd h2 { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--ot-muted); }
.cl-ws-render { padding: 18px 24px 16px; overflow-x: auto; }
.cl-file { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 20px; }
.cl-file .fi { width: 44px; height: 44px; border-radius: 12px; background: var(--ot-blue-soft); color: var(--ot-blue-strong); display: grid; place-items: center; flex: none; }
.cl-file .fname { font-weight: 650; word-break: break-all; flex: 1; min-width: 160px; }
.cl-file-msg { padding: 0 20px 16px; }
.cl-file-msg:empty { display: none; }
.ws { font-size: 16.5px; line-height: 1.75; max-width: 70ch; }
.ws-h { font-size: 16.5px; font-weight: 800; margin: 14px 0 4px; }
.ws-h:first-child { margin-top: 0; }
.ws-q { display: flex; gap: 10px; margin: 10px 0; }
.ws-qn { font-weight: 700; min-width: 1.8em; flex: none; }
/* the homework template: the study tips in their own box, then the planner reminder (worksheet.js) */
.ws-tips { margin-top: 18px; padding: 10px 16px; max-width: 70ch; background: var(--ot-blue-tint, #F5FAFE);
  border: 1px solid var(--ot-blue-soft-line, #CFE6F7); border-left: 4px solid var(--ot-blue, #2087C9); border-radius: var(--ot-r-md, 12px); }
.ws-tips-h { font-size: 16.5px; font-weight: 800; margin: 0 0 2px; }
.ws-plan { margin-top: 14px; max-width: 70ch; color: var(--ot-ink-2, #3E4C59); }
.ws p { margin: 6px 0; }
.katex { font-size: 1.04em; }

/* ---------- Credit and top-up ---------- */
.cl-bals { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 24px; }
.cl-balc { padding: 18px 20px; }
.cl-balc .k { display: flex; align-items: center; gap: 10px; font-weight: 600; overflow-wrap: anywhere; }
.cl-balc .v { font-size: 30px; font-weight: 750; color: var(--ot-blue-strong); font-variant-numeric: tabular-nums; margin-top: 6px; letter-spacing: -.01em; }
.cl-balc.owing .v { color: var(--ot-warn); }
.cl-balc .v small { font-size: 17px; }
.cl-balc .s { font-size: 14px; color: var(--ot-muted); }
.cl-tu-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.cl-tu-body { padding: 8px 24px 24px; }
.cl-step { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.cl-step .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ot-blue-soft); color: var(--ot-blue-strong); font-size: 13px; font-weight: 700; }
.cl-step-block + .cl-step-block { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--ot-line-soft); }
.cl-step-block fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cl-step-block legend { padding: 0; }
.cl-recips { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ot-choice .ot-s.owing { color: var(--ot-warn); font-weight: 600; }
.cl-amt-hint { margin: -4px 0 12px; }
.cl-other { margin-top: 12px; max-width: 260px; }
.cl-sumc { position: sticky; top: 96px; }
.cl-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 24px; font-size: 15px; }
.cl-line + .cl-line { border-top: 1px solid var(--ot-line-soft); }
.cl-line b, .cl-line .tot { text-align: right; overflow-wrap: anywhere; }
.cl-line .tot { font-size: 26px; font-weight: 750; font-variant-numeric: tabular-nums; }
.cl-pay-foot { display: grid; gap: 14px; }
.cl-pay-foot #tuMsg:empty { display: none; }
.cl-trust { display: grid; gap: 8px; font-size: 13.5px; color: var(--ot-muted); }
.cl-trust span { display: flex; gap: 8px; align-items: flex-start; }
.cl-trust .ot-ic { width: 16px; height: 16px; margin-top: 2px; color: var(--ot-ok); flex: none; }
.cl-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.cl-how > div { display: flex; gap: 12px; }
.cl-hi { width: 36px; height: 36px; border-radius: 10px; background: var(--ot-blue-soft); color: var(--ot-blue-strong); display: grid; place-items: center; flex: none; }
.cl-how b { display: block; }
.cl-how span.s { font-size: 14px; color: var(--ot-muted); }
.cl-refund { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 24px; margin-top: 24px; }
.cl-refund .cl-hi { width: 44px; height: 44px; border-radius: 12px; }
.cl-refund h2 { font-size: 17px; }
.cl-refund > div { flex: 1; min-width: 220px; }
.cl-refund p { margin: 2px 0 0; font-size: 14.5px; }
.cl-led-panel { margin-top: 24px; }
.cl-led li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 24px; border-top: 1px solid var(--ot-line-soft); overflow-wrap: anywhere; }
.cl-led .d { font-size: 13.5px; color: var(--ot-muted); }
.cl-led .a { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cl-led .a.pos { color: var(--ot-ok); }

/* ---------- Refunds and Rewards ---------- */
.cl-pg-panel + .cl-pg-panel { margin-top: 24px; }
.cl-pg-panel > .ot-panel-head { padding-bottom: 14px; }
.cl-pg-body { padding: 8px 24px 24px; display: grid; gap: 14px; }
.cl-policy ul, .cl-how-list { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.cl-form-row { display: flex; gap: 12px 16px; align-items: flex-end; flex-wrap: wrap; }
.cl-form-row .ot-field { flex: 1 1 240px; }
.cl-form-row .ot-btn { flex: none; }
.cl-table { border-top: 1px solid var(--ot-line); }
.cl-load { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 0 24px; }
.cl-load p { margin: 12px 0; }
.cl-load p:empty { display: none; }
.cl-none { margin: 0; padding: 4px 24px 20px; }
.cl-reward-head { display: flex; gap: 16px; align-items: center; padding: 20px 24px 8px; }
.cl-reward-head .pi { width: 48px; height: 48px; border-radius: 14px; background: var(--ot-blue-soft); color: var(--ot-blue-strong); display: grid; place-items: center; flex: none; }
.cl-reward-head .tag { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ot-blue-strong); }
.cl-reward-head h2 { font-size: 20px; margin-top: 2px; }
.cl-review-link { justify-self: start; }

/* ---------- Learning (docs/LEARNING_PLAN.md); the questions' own look is learning.css ---------- */
.lp-head { margin-bottom: 18px; }
.lp-up { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; margin-bottom: 22px; border-radius: var(--ot-r-md); background: var(--ot-blue-tint); border: 1px solid var(--ot-blue-soft-line); }
.lp-up-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--ot-blue-strong); color: #fff; display: grid; place-items: center; flex: none; }
.lp-up-txt { flex: 1; min-width: 220px; }
.lp-up-k { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ot-blue-strong); }
.lp-up-t { font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.lp-up-s { font-size: 14px; color: var(--ot-muted); }
.lp-view-h { font-size: 20px; margin-bottom: 14px; }
.lp-thanks { margin-bottom: 20px; }
.lp-ans-h { font-size: 18px; }
.lp-ans-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lp-ans-foot .ot-hint { flex: 1 1 260px; }
/* Home's Learning card */
.lp-home { list-style: none; margin: 0; padding: 0; }
.lp-home li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 14px 24px; border-top: 1px solid var(--ot-line-soft); }
.lp-home li.lp-new { background: var(--ot-blue-tint); }
.lp-home-k { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ot-blue-strong); }
.lp-home-k .cl-chip { text-transform: none; letter-spacing: 0; }
.lp-home-k .lp-home-streak { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ot-ink-2); }
.lp-home-t { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.lp-home-s { font-size: 14px; color: var(--ot-muted); overflow-wrap: anywhere; }
.lp-home .ot-bl-track { margin: 8px 0 0; max-width: 360px; }

/* ---------- Phones ---------- */
@media (max-width: 1024px) {
  .c-ctx-in { padding: 10px 16px; }
  .c-ctx .ot-select { flex: 1; min-width: 0; }
  .c-ctx-hint { display: none; }
  .c-foot { padding: 0 16px 96px; }
}
@media (max-width: 960px) {
  .cl-promos { grid-template-columns: minmax(0, 1fr); }
  .cl-home-grid, .cl-tu-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cl-home-grid > .cl-stack { display: contents; }
  .cl-owing { order: 0; } .cl-owing:empty { display: none; }
  .cl-o-next { order: 1; } .cl-o-learn { order: 2; } .cl-o-credit { order: 3; } .cl-o-hw { order: 4; } .cl-o-fb { order: 5; }
  .cl-sumc { position: static; }
}
@media (max-width: 640px) {
  .cl-hello { padding: 18px; } .cl-hello h1, .cl-hello-h { font-size: 23px; } .cl-h1 { font-size: 25px; }
  .cl-promo { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 2px 14px; align-items: start; padding: 16px; }
  .cl-promo .pi { width: 42px; height: 42px; border-radius: 12px; grid-row: span 2; }
  .cl-promo .go { grid-column: 2; justify-self: start; margin: 10px 0 0; }
  .cl-next { padding: 6px 16px 16px; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; } .cl-cal { width: 64px; } .cl-cal .d { font-size: 26px; }
  .cl-card, .cl-pad, .cl-bal-one, .cl-bal-row, .cl-line, .cl-led li, .cl-refund, .cl-tu-body, .cl-pg-body, .cl-none, .cl-load, .cl-reward-head { padding-left: 16px; padding-right: 16px; }
  .cl-up { grid-template-columns: 56px minmax(0, 1fr); padding: 14px 16px; gap: 6px 14px; }
  .cl-up .cl-cal { width: 56px; }
  .cl-up .end { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; }
  .cl-hist { padding: 16px; }
  .cl-hw { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px; }
  .cl-hw .date b { display: inline; font-size: 15px; }
  .cl-hw .act .ot-btn { width: 100%; }
  .lp-home li { padding: 14px 16px; grid-template-columns: minmax(0, 1fr); }
  .lp-home li .ot-btn { justify-self: start; }
  .lp-up { padding: 14px 16px; }
  .cl-how { grid-template-columns: minmax(0, 1fr); }
  .ot-choices { grid-template-columns: 1fr 1fr; }
  .cl-recips { grid-template-columns: minmax(0, 1fr); }
  .cl-reader-body { padding: 20px 16px 96px; }
  .cl-reader-body h1 { font-size: 24px; }
  .cl-reader-bar .in { padding: 8px 12px; }
  .cl-reader-bar .spacer { display: none; }
  .cl-ws-render { padding: 14px 16px 12px; }
}
@media print { .c-ctx, .c-foot { display: none !important; } }

/* ---------- The privacy policy: the same look, with no script ---------- */
.cl-privacy-head .c-bar { justify-content: space-between; }
.cl-privacy-head .c-back { font-weight: 600; text-decoration: none; }

/* ---------- Home's Learning card: today's school work, ticked off here (docs/LEARNING_PLAN.md, Phase 2) ---------- */
.lp-home li.lp-today { align-items: start; }
.hm-ticks { display: grid; gap: 2px; margin-top: 6px; }
.hm-tick { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; min-height: 36px; cursor: pointer; }
.hm-tick input { width: 20px; height: 20px; margin: 0; accent-color: var(--ot-ok); }
.hm-tick .t { font-weight: 600; overflow-wrap: anywhere; }
.hm-tick.done .t { text-decoration: line-through; color: var(--ot-muted); }
.hm-tick .s { font-size: 13px; color: var(--ot-muted); white-space: nowrap; }
@media (max-width: 640px) { .hm-tick { grid-template-columns: 24px minmax(0, 1fr); } .hm-tick .s { grid-column: 2; } }
