:root{
  --paper:#FDFCF7; --blue:#2B4C9B; --red:#D93A3A; --ink:#1A1E2E;
  --tint:#EAF0FB; --line:#DCE3F0; --muted:#57606F; --faint:#79839A;
}
*{box-sizing:border-box;margin:0;padding:0}
body{background:var(--paper);font-family:'Nunito Sans',sans-serif;color:var(--ink);
     padding-bottom:20px;font-size:16px;line-height:1.6;
     -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.wrap{max-width:480px;margin:0 auto;padding:0 12px}
header{text-align:center;padding:20px 16px 12px}
header h1{font-family:'Fredoka',sans-serif;font-size:30px;color:var(--blue)}
header h1 span{color:var(--red)}
header p{font-size:19px;font-weight:800;color:var(--ink);margin:8px auto 0;max-width:370px;line-height:1.4;font-family:'Fredoka',sans-serif}
header p.subline{font-family:'Nunito Sans',sans-serif;font-size:14.5px;font-weight:600;
                 color:var(--muted);max-width:400px;margin-top:9px;line-height:1.6}
header p em{font-style:normal;color:var(--blue)}
header .mark{display:block;margin:0 auto 6px;filter:drop-shadow(0 1px 2px rgba(43,76,155,.2))}
/* The notebook red margin lives on the word lists and the demo books, where
   it means something. Down the whole page it ran through every card. */
/* --- signature hero: two live exercise books (English + 听写) --- */
.herostage{max-width:330px;margin:16px auto 2px}
.herotabs{display:flex;gap:8px;justify-content:center;margin-bottom:8px}
.ht{border:2px solid var(--blue);background:#fff;color:var(--blue);border-radius:99px;padding:5px 16px;
    font-weight:700;font-size:13px;cursor:pointer;font-family:inherit;transition:all .15s}
.ht.active{background:var(--blue);color:#fff}
.herobook{display:none;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;
          position:relative;box-shadow:0 3px 10px rgba(43,76,155,.07);text-align:left}
.herobook.active{display:block}
.hb-title{background:var(--tint);border-bottom:1px solid var(--line);padding:7px 14px;
          font-family:'Fredoka',sans-serif;font-weight:600;font-size:14px;color:var(--blue)}
.hb-rules{position:relative;padding:2px 14px 2px 44px;
          background:repeating-linear-gradient(#fff,#fff 27px,#C9D6F2 27px,#C9D6F2 28px)}
.hb-rules::before{content:"";position:absolute;top:0;bottom:0;left:32px;width:2px;background:#E8A5A5}
.hb-line{height:28px;display:flex;align-items:center;gap:8px}
.hb-num{font-size:11px;font-weight:800;color:#B8C2D8;width:16px;text-align:right}
.hb-hand{font-family:'Andika',sans-serif;font-size:16px;color:var(--ink);opacity:0}
.play .hb-hand{animation:writeIn .4s both}
.tick{width:16px;height:14px;margin-left:auto;margin-right:2px}
.tick path{fill:none;stroke:var(--red);stroke-width:6;stroke-linecap:round;stroke-linejoin:round;
           stroke-dasharray:62;stroke-dashoffset:62}
.play .tick path{animation:drawTick .4s ease-out both}
@keyframes drawTick{to{stroke-dashoffset:0}}
@media (min-width:760px){
  .herostage{max-width:700px;display:flex;gap:16px;flex-wrap:wrap;justify-content:center}
  .herotabs{display:none}
  .herobook{display:block;flex:1;min-width:300px;max-width:335px}
}

/* ===== top bar ===== */
.topbar{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40}
.tb-in{display:flex;align-items:center;justify-content:space-between;gap:10px;
       max-width:480px;margin:0 auto;padding:9px 14px}
.tb-brand{font-family:'Fredoka',sans-serif;font-weight:600;font-size:16px;color:var(--blue);
          text-decoration:none;white-space:nowrap}
.tb-brand b{color:var(--red);font-weight:600}
.tb-right{display:flex;align-items:center;gap:10px;min-width:0}
.tb-out{display:flex;align-items:center;gap:12px}
/* A class with display: set beats the browser's [hidden] rule, which is how
   the admin-only button leaked to a normal parent. Force it. */
.topbar [hidden]{display:none !important}
.tb-link{font-size:13px;font-weight:800;color:var(--muted);cursor:pointer;text-decoration:none;white-space:nowrap}
.tb-link:hover{color:var(--blue)}
.tb-btn{font:inherit;font-family:'Fredoka',sans-serif;font-size:13px;font-weight:600;
        border:none;background:var(--blue);color:#fff;border-radius:99px;
        padding:8px 16px;cursor:pointer;white-space:nowrap}
.tb-btn:hover{background:#22407f}

/* account menu — one target, not four competing links */
.tb-acct{position:relative;display:flex;align-items:center;gap:8px;min-width:0}
.tb-queue{display:inline-flex;align-items:center;gap:5px;background:#F2B705;color:#1A1E2E;
          font-size:12.5px;font-weight:800;text-decoration:none;border-radius:99px;
          padding:7px 13px;white-space:nowrap}
.tb-queue:hover{background:#DFA804}
.tb-queue b{font-weight:800}
.tb-me{display:flex;align-items:center;gap:7px;background:transparent;border:1px solid var(--line);
       border-radius:99px;padding:5px 10px 5px 5px;cursor:pointer;font:inherit;min-width:0;max-width:200px}
.tb-me:hover{background:var(--tint);border-color:var(--blue)}
.tb-ini{width:26px;height:26px;flex:none;border-radius:50%;background:var(--blue);color:#fff;
        font-size:12px;font-weight:800;display:grid;place-items:center;text-transform:uppercase}
.tb-me .who{font-size:12.5px;font-weight:700;color:var(--ink);overflow:hidden;
            text-overflow:ellipsis;white-space:nowrap}
.tb-caret{font-size:10px;color:var(--faint);flex:none}
.tb-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:60;min-width:212px;
         background:#fff;border:1px solid var(--line);border-radius:12px;padding:6px;
         box-shadow:0 10px 30px rgba(26,30,46,.14)}
.tb-menu[hidden]{display:none}
.tb-mi{display:block;padding:10px 12px;border-radius:8px;font-size:13.5px;font-weight:700;
       color:var(--ink);text-decoration:none;cursor:pointer;white-space:nowrap}
.tb-mi:hover{background:var(--tint)}
.tb-mi--quiet{color:var(--muted);font-weight:600;font-size:12.5px}
.tb-sep{height:1px;background:var(--line);margin:5px 8px}
@media (max-width:400px){ .tb-me .who{display:none} .tb-queue{padding:7px 10px} }

/* ===== the voice pitch ===== */
.pitch{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid var(--line);
       border-left:4px solid var(--blue);border-radius:12px;padding:16px 18px;margin:16px 0 0}
.pitch-i{font-size:26px;line-height:1;flex:none}
.pitch b{font-family:'Fredoka',sans-serif;font-weight:600;font-size:15px;color:var(--blue);
         display:block;margin-bottom:6px}
.pitch p{font-size:13.5px;line-height:1.65;color:var(--muted);margin:0 0 8px}
.pitch p:last-child{margin-bottom:0}
.pitch p b{display:inline;color:var(--ink);font-size:inherit;font-family:inherit;font-weight:800}

.upnote{font-size:12.5px;font-weight:700;color:var(--muted);margin-top:10px;line-height:1.5}
.upnote.ok{color:#15803D}

/* ===== your uploads ===== */
.mine{background:#fff;border:1px solid var(--line);border-radius:14px;margin:14px 0 0;overflow:hidden}
.mine-h{background:var(--tint);padding:11px 14px;font-family:'Fredoka',sans-serif;font-weight:600;
        font-size:13.5px;color:var(--blue);display:flex;align-items:center;gap:8px}
.mine-h span{margin-left:auto;font-family:'Nunito Sans',sans-serif;font-size:11.5px;
             font-weight:700;color:var(--muted)}
.mine-r{display:flex;align-items:center;gap:10px;padding:12px 14px;
        border-top:1px solid var(--line);font-size:13.5px}
.mine-r .t{flex:1;min-width:0}
.mine-r .t b{display:block;font-weight:800;font-size:14px;margin-bottom:2px}
.mine-r .t span{font-size:12px;color:var(--muted);line-height:1.45}
.pill{font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;
      padding:5px 10px;border-radius:99px;white-space:nowrap;flex:none}
.pill.live{background:#DCFCE7;color:#166534}
.pill.wait{background:#FEF3C7;color:#92400E}
.pill.no{background:#FEE2E2;color:#991B1B}
.mine-why{font-size:12px;color:#991B1B;padding:0 14px 12px;font-weight:700;line-height:1.5}
.mine-x{border:none;background:transparent;color:var(--faint);font-size:20px;line-height:1;
        padding:4px 6px;border-radius:6px;cursor:pointer;flex:none}
.mine-x:hover{color:var(--red);background:#FEE2E2}

/* ===== dictation bar ===== */

.row.reading .word{background:#FEF3C7;border-radius:6px;box-shadow:0 0 0 4px #FEF3C7}

.py{display:block;font-family:'Nunito Sans',sans-serif;font-size:13px;color:var(--muted);
    line-height:1.35;margin-top:-6px;padding-bottom:5px;font-weight:600}

/* ===== desktop: use the width instead of a phone column on a wall ===== */
/* One centred column on desktop. The two-column grid put every item on its
   own row, so the right-hand column started six rows below the left and
   nothing lined up. A wider single column reads better anyway. */
@media (min-width:900px){
  .wrap{max-width:620px;padding:0 24px}
  .tb-in{max-width:620px;padding:11px 24px}
  header p{max-width:470px}
  .upload{padding:30px 28px}
  .row .word{font-size:24px}
  #detail{max-width:620px;margin:0 auto}
}

/* --- stats line --- */
/* --- week tabs: every week visible, no dropdown to discover --- */
.shared{font-size:12.5px;color:var(--muted);font-weight:600;margin:12px 0 8px;line-height:1.5}
.shared b{color:var(--ink);font-weight:800}
.wstrip{display:flex;gap:7px;overflow-x:auto;padding:2px 2px 8px;margin:0 -2px;
        -webkit-overflow-scrolling:touch;scrollbar-width:thin}
.wtab{flex:none;font:inherit;text-align:left;background:#fff;border:1.5px solid var(--line);
      border-radius:11px;padding:9px 13px;cursor:pointer;min-width:104px}
.wtab b{display:block;font-family:'Fredoka',sans-serif;font-weight:600;font-size:13px;
        color:var(--ink);white-space:nowrap;max-width:150px;overflow:hidden;text-overflow:ellipsis}
.wtab span{display:block;font-size:11px;color:var(--muted);font-weight:700;margin-top:2px}
.wtab:hover{border-color:var(--blue)}
.wtab.on{background:var(--blue);border-color:var(--blue)}
.wtab.on b,.wtab.on span{color:#fff}
.wtab.done{opacity:.62}
.wtab.done.on{opacity:1}
.wtab.alltab{border-style:dashed}

/* --- filter chips: only show combinations that actually exist --- */
.chips{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 0}
.chipf{font:inherit;font-size:13px;font-weight:700;border:1.5px solid var(--line);
       background:#fff;color:var(--muted);border-radius:99px;padding:8px 14px;cursor:pointer;
       --tone:#2B4C9B;--toneBg:#EAF0FB}
.chipf:hover{border-color:var(--tone);color:var(--tone);background:var(--toneBg)}
.chipf[aria-pressed="true"]{background:var(--tone);border-color:var(--tone);color:#fff}
.chipf small{font-weight:700;opacity:.72;margin-left:5px}
.chipf.t-en{--tone:#2B4C9B;--toneBg:#EAF0FB}   /* English  — the house blue */
.chipf.t-zh{--tone:#C2410C;--toneBg:#FFF1E8}   /* 华文     — warm, reads as Chinese */
.chipf.t-ms{--tone:#15803D;--toneBg:#ECFDF3}   /* Melayu   */
.chipf.t-ta{--tone:#7C3AED;--toneBg:#F3EEFF}   /* தமிழ்     */

/* the class label, wherever a school is named */
.clschip{display:inline-block;font-size:10.5px;font-weight:800;letter-spacing:.02em;
         background:var(--tint);color:var(--blue);border-radius:6px;padding:2px 7px;
         vertical-align:middle;margin-left:5px}

/* one tap back to the class they were last in */
.myclass{display:flex;gap:6px;align-items:stretch;margin:10px 0 0}
.myclass:empty{display:none}
.mybtn{flex:1;text-align:left;font:inherit;background:#fff;border:1.5px solid var(--blue);
       border-radius:12px;padding:10px 14px;cursor:pointer}
.my-l{display:block;font-family:'Fredoka',sans-serif;font-weight:600;font-size:13.5px;color:var(--blue)}
.my-s{display:block;font-size:11.5px;color:var(--muted);font-weight:700;margin-top:2px}
.mybtn:hover{background:var(--tint)}
.myx{border:1.5px solid var(--line);background:#fff;color:var(--faint);border-radius:12px;
     width:40px;font-size:18px;line-height:1;cursor:pointer}
.myx:hover{color:var(--red);border-color:var(--red)}

.pastnote{font-size:12.5px;color:var(--muted);font-weight:700;padding:12px 2px 4px}
.prompt{text-align:center;color:var(--muted);font-size:13.5px;font-weight:600;
        padding:26px 18px;line-height:1.6}

/* --- section eyebrow --- */
.eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;text-transform:uppercase;color:var(--blue);margin:22px 2px 6px}
/* --- school avatar chips --- */
.av{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;
    font-family:'Fredoka',sans-serif;font-weight:600;font-size:15px;flex-shrink:0;margin-right:12px}
.cardtext{flex:1;min-width:0;text-align:left}
/* Upload */
.upload{width:100%;border:1px solid var(--line);background:#fff;border-radius:14px;
        padding:26px 16px 22px;text-align:center;font-family:inherit;position:relative;
        box-shadow:0 8px 22px rgba(43,76,155,.09);transform:rotate(-.4deg)}
.upload::before{content:"";position:absolute;top:-11px;left:50%;transform:translateX(-50%) rotate(-2deg);
                width:98px;height:24px;background:rgba(214,226,248,.9);border:1px solid rgba(43,76,155,.14);border-radius:3px}
.upload .big{font-size:28px}
.upload .t{font-family:'Fredoka',sans-serif;font-weight:600;font-size:21px;color:var(--blue);margin-top:4px}
.upload .s{font-size:14px;line-height:1.6;color:var(--muted);margin-top:7px;max-width:340px;
           margin-left:auto;margin-right:auto}
.upbtns{display:flex;gap:10px;margin-top:14px}
.upbtn{flex:1;border:0;border-radius:12px;padding:12px;font-weight:700;font-size:14px;
       background:var(--blue);color:#fff;cursor:pointer;font-family:inherit}
.upbtn.alt{background:#fff;color:var(--blue);border:2px solid var(--blue)}
.err{background:#FDECEC;color:#B22B2B;font-size:14px;border-radius:10px;padding:8px 12px;margin-top:8px}
/* Search */
.search{display:flex;gap:8px;margin-top:20px}
.qwrap{position:relative;flex:1;min-width:0;display:flex}
#clearQ{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:#EAF0FB;color:#2B4C9B;width:26px;height:26px;border-radius:50%;font-size:13px;font-weight:700;cursor:pointer}
.filters{display:flex;gap:8px;margin-top:8px}
.filters select{flex:1;min-width:0}
.search input,.search select,.filters select{border:1px solid var(--line);border-radius:12px;padding:10px 12px;font-size:14px;background:#fff;font-family:inherit}
.search input{flex:1;min-width:0;width:100%;padding-right:38px}
/* Cards */
.card{width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:12px;
      padding:12px 16px;margin-top:8px;display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-family:inherit}
.card b{display:block}
.card small{color:var(--muted);font-size:12px}
.card small.cur{display:block;color:var(--blue);font-weight:800;margin-top:2px}
.pastcards .card{opacity:.65}
.card .arr{color:var(--blue)}
.strbadge{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.5px;border-radius:6px;padding:1px 6px;vertical-align:middle;margin-left:4px;font-family:'Nunito Sans',sans-serif}
.strbadge.hi{background:#FDF1DC;color:#9A6B00;border:1px solid #EED9A9}
.strbadge.fo{background:#EFF1F4;color:#5B6472;border:1px solid #D8DDE5}
.egbadge{display:inline-block;background:#FFF3CD;color:#8a6d1a;border:1px solid #f0deb0;font-size:10px;font-weight:800;letter-spacing:.5px;border-radius:6px;padding:1px 6px;vertical-align:middle;font-family:'Nunito Sans',sans-serif}
.empty{text-align:center;color:var(--faint);font-size:14px;padding:32px 0}
/* Exercise book page */
.page{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;
      box-shadow:0 1px 2px rgba(0,0,0,.04);margin-top:16px}
.page .tab{display:flex;justify-content:space-between;align-items:center;background:var(--tint);
           border-bottom:1px solid var(--line);padding:8px 16px}
.page .tab .wk{font-family:'Fredoka',sans-serif;font-weight:600;font-size:14px;color:var(--blue)}
.page .tab .dt{display:inline-block;font-size:14px;font-weight:800;color:var(--red);background:#FDECEC;border-radius:8px;padding:1px 8px;margin-left:8px}
.page .done{font-size:11px;font-weight:700;background:#F0F1F4;color:var(--faint);border-radius:99px;padding:2px 8px}
/* The ruled lines used to be a background gradient every 35px while rows were
   38px tall — they drifted apart on the first row and wrapped sentences broke
   it completely. Each row draws its own line now, so they always match. */
.rules{position:relative;padding:8px 12px 8px 48px;background:#fff}
.rules::before{content:"";position:absolute;top:0;bottom:0;left:36px;width:2px;background:#E8A5A5}
.row{display:flex;align-items:flex-start;min-height:38px;
     border-bottom:1px solid #C9D6F2;padding:3px 0}
.row:last-child{border-bottom:none}
.row .num{width:24px;flex-shrink:0;text-align:right;margin-right:12px;font-size:13px;font-weight:700;color:#B8C2D8;line-height:36px}
/* Andika, not a script face. A child copying these has to see the exact
   letterforms they're expected to write — a joined cursive blurs double
   letters and makes l, I and 1 indistinguishable. */
.row .word{font-family:'Andika',sans-serif;font-size:22px;line-height:38px;cursor:pointer;
           word-break:break-word;min-width:0;letter-spacing:.005em}
/* Chinese has no business being set in a handwriting face — it turns 听写
   characters to mush at small sizes. Use a proper CJK face for CJK. */
.row .word:lang(zh),
.row .word.cjk{font-family:'Noto Sans SC','PingFang SC','Microsoft YaHei',sans-serif;
               font-size:22px;font-weight:600;letter-spacing:.02em}
.row .say{margin-left:auto;flex:none;border:0;background:transparent;color:var(--blue);
          padding:7px;border-radius:9px;cursor:pointer;line-height:0;align-self:center}
.row .say:hover{background:var(--tint)}
.row .say:active{background:var(--blue);color:#fff}
.rowmain{flex:1;min-width:0;display:flex;align-items:flex-start}
.back{border:0;background:none;color:var(--blue);font-weight:700;font-size:14px;cursor:pointer;padding:0;margin:16px 0 12px;font-family:inherit}
.schoolname{font-family:'Fredoka',sans-serif;font-size:22px}
.schoolmeta{font-size:14px;color:var(--muted)}
.practicebtn{width:100%;border:0;border-radius:12px;padding:11px;font-weight:700;font-size:14px;
             color:#fff;background:var(--blue);cursor:pointer;margin-top:14px;font-family:inherit}
/* Reminder */
.rem{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;margin-top:20px}
.rem .h{font-weight:700;font-size:14px;margin-bottom:8px}
.rem .r{display:flex;gap:8px}
.rem input{flex:1;min-width:0;border:1px solid var(--line);border-radius:10px;padding:8px 12px;font-size:14px;font-family:inherit}
.rem button{border:0;border-radius:10px;background:var(--blue);color:#fff;font-weight:700;font-size:14px;padding:0 16px;cursor:pointer;font-family:inherit}
.rem .ok{color:#2B7A3B;font-size:14px;line-height:1.5}
.soon{display:inline-block;background:#FFF3CD;color:#8a6d1a;border:1px solid #f0deb0;font-size:10px;font-weight:800;letter-spacing:.5px;border-radius:6px;padding:1px 6px;vertical-align:middle;margin-left:4px}
/* Every SG class already has a WhatsApp group. One tap puts the list in
   front of thirty parents, which no amount of SEO will match. */
.sharebox{background:#F0FDF4;border:1px solid #BBF7D0;border-radius:14px;
          padding:15px 16px;margin:16px 0 0;text-align:center}
.sh-t{font-family:'Fredoka',sans-serif;font-weight:600;font-size:14.5px;color:#166534;
      margin-bottom:11px;line-height:1.45}
.shbtn{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:100%;
       font:inherit;font-family:'Fredoka',sans-serif;font-weight:600;font-size:16px;
       background:#25D366;color:#fff;border:none;border-radius:11px;padding:14px;cursor:pointer}
.shbtn:hover{background:#1FBA57}
.shbtn:active{transform:scale(.98)}
.sh-n{font-size:11.5px;color:#4B7C5A;font-weight:700;margin-top:8px}

.calbtn{width:100%;margin-top:10px;border:2px solid var(--blue);background:#fff;color:var(--blue);
        border-radius:10px;padding:9px;font-weight:700;font-size:14px;cursor:pointer;font-family:inherit}
.pastbtn{border:0;background:none;color:var(--faint);font-weight:700;font-size:14px;cursor:pointer;margin-top:8px;padding:0;font-family:inherit}
.past .page{opacity:.7}
.hidden{display:none !important}
.about{margin-top:36px;border-top:1px solid var(--line);padding-top:20px}
.about h2{font-family:'Fredoka',sans-serif;font-size:18px;color:var(--blue);margin:16px 0 10px}
.hiw .step{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-size:14px;color:var(--muted);margin-bottom:8px}
.steptop{display:flex;align-items:center;gap:8px;margin-bottom:4px}
.steptop .ico{font-size:18px}
.hiw .step b{color:var(--ink)}
.step.click{cursor:pointer}
.step .go{display:block;margin-top:6px;color:var(--blue);font-weight:800;font-size:13px}
.pulse{animation:pulseRing 1.5s ease-out}
@keyframes pulseRing{0%{box-shadow:0 0 0 0 rgba(43,76,155,.45)}100%{box-shadow:0 0 0 20px rgba(43,76,155,0)}}
.hiw .n{display:inline-block;width:22px;height:22px;border-radius:50%;background:var(--blue);color:#fff;
        text-align:center;line-height:22px;font-weight:700;font-size:13px;margin-right:8px}
.about details{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:8px}
.about summary{font-weight:700;font-size:14px;cursor:pointer;color:var(--ink)}
.about details p{font-size:14px;color:var(--muted);margin-top:8px;line-height:1.6}
footer{margin-top:40px;border-top:2px solid var(--line);background:#fff;padding:28px 16px 24px;text-align:center}
footer .fwordmark{font-family:'Fredoka',sans-serif;font-size:20px;font-weight:600;color:var(--blue)}
footer .fwordmark span{color:var(--red)}
footer .ftag{font-size:13px;color:var(--muted);margin-top:4px}
footer .flinks{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin:14px 0 10px;font-size:13px}
footer .flinks a{color:var(--blue);font-weight:700;text-decoration:none}
footer .fnote{font-size:12px;color:var(--faint);margin-top:10px;line-height:1.6}
.overlay{position:fixed;inset:0;background:rgba(26,30,46,.6);z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}
.spinner{width:48px;height:48px;border:5px solid #EAF0FB;border-top-color:#D93A3A;border-radius:50%;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.overlay .otext{color:#fff;font-weight:700;font-size:16px;text-align:center;padding:0 24px;line-height:1.6}
.overlay .otext small{font-weight:400;font-size:13px;color:#DCE3F0}
/* --- upload progress animation --- */
.bookwrap{position:relative;height:64px}
.book{font-size:52px;animation:bookbounce 1s ease-in-out infinite}
.pencil{position:absolute;right:-26px;top:6px;font-size:26px;animation:pencilwrite .8s ease-in-out infinite alternate}
@keyframes bookbounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes pencilwrite{from{transform:rotate(-12deg) translateX(0)}to{transform:rotate(6deg) translateX(6px)}}
.psteps{display:flex;flex-direction:column;gap:10px;min-width:230px}
.pstep{display:flex;align-items:center;gap:10px;color:#8A93A6;font-weight:700;font-size:15px;transition:color .3s}
.pstep .pdot{width:18px;height:18px;border-radius:50%;border:3px solid #55617a;flex-shrink:0;transition:all .3s;position:relative}
.pstep.active{color:#fff}
.pstep.active .pdot{border-color:#fff;border-top-color:#D93A3A;animation:spin 1s linear infinite}
.pstep.done{color:#8fd6a4}
.pstep.done .pdot{border-color:#8fd6a4;background:#8fd6a4;animation:none}
.pstep.done .pdot::after{content:"✓";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#1A1E2E;font-size:12px;font-weight:900}
/* --- word rows write themselves in --- */
.rules .row{animation:writeIn .38s cubic-bezier(.2,.7,.3,1.1) both}
@keyframes writeIn{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:none}}
/* --- page cards & banner entrance --- */
.page{animation:cardUp .4s ease-out both}
@keyframes cardUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.okbanner{animation:bannerPop .45s cubic-bezier(.2,.7,.3,1.15) both}
@keyframes bannerPop{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}
/* --- practice reveal pop --- */
@keyframes wordPop{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}
/* --- buttons feel pressable --- */
.card,.upbtn,.calbtn,.showmore{transition:transform .12s ease,box-shadow .12s ease}
.card:active,.upbtn:active,.calbtn:active,.showmore:active{transform:scale(.97)}
.card:hover{box-shadow:0 2px 8px rgba(43,76,155,.10)}
/* --- confetti --- */
#confetti{position:fixed;inset:0;pointer-events:none;z-index:60;overflow:hidden}
.conf{position:absolute;top:-4vh;width:10px;height:14px;border-radius:2px;opacity:0;animation:confFall linear both}
@keyframes confFall{0%{opacity:1;transform:translateY(0) rotate(0)}100%{opacity:.9;transform:translateY(112vh) rotate(560deg)}}
@media (prefers-reduced-motion: reduce){
  .rules .row,.page,.okbanner{animation:none}
  .book,.pencil,.pstep.active .pdot{animation:none}
  .hb-hand,.play .hb-hand{animation:none;opacity:1}
  .tick path,.play .tick path{animation:none;stroke-dashoffset:0}
  .conf{display:none}
}
.cancelbtn{border:2px solid #fff;background:transparent;color:#fff;border-radius:12px;padding:8px 22px;font-weight:700;font-size:14px;cursor:pointer;font-family:inherit}
.okbanner{background:#E7F6EC;border:1px solid #BFE5CB;color:#2B7A3B;border-radius:12px;padding:10px 14px;font-size:14px;font-weight:700;margin-top:12px;line-height:1.5}
.showmore{width:100%;border:2px dashed var(--line);background:#fff;color:var(--blue);border-radius:12px;padding:10px;font-weight:700;font-size:14px;cursor:pointer;font-family:inherit;margin-top:8px}
@media (min-width:768px){ body{padding-bottom:20px} }

/* ---- Returning parents: no hero, straight to their week ---- */
body.compact header{display:none}
body.compact .wrap{padding-top:12px}
body.compact #uploadBox{padding:16px 14px 14px;transform:none}
body.compact #uploadBox .big, body.compact #uploadBox .s{display:none}
body.compact #uploadBox .t{font-size:17px}
body.compact #uploadBox::before{display:none}

/* ---- Your week: every test, every child, in date order ---- */
#myweek{position:relative;z-index:1;background:#fff;border:1px solid var(--line);border-radius:18px;
        padding:16px 14px 12px;margin:4px 0 18px;box-shadow:0 8px 22px rgba(43,76,155,.07)}
#myweek .tst{background:var(--paper)}
#myweek .tst.soon{background:#fff}
.wk-h{display:flex;align-items:baseline;justify-content:space-between;margin:0 2px 10px}
.wk-h h2{font-family:'Fredoka',sans-serif;font-weight:600;font-size:22px;color:var(--ink);margin:0}
.wk-h a{white-space:nowrap}
.tst .rd{padding:10px 12px;font-size:13.5px}
@media (max-width:360px){ .tst{flex-wrap:wrap} .tst .rd{width:100%} }
.wk-h a{font-size:13px;font-weight:700;color:var(--blue);cursor:pointer}
.kids{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px}
.kid{font:inherit;font-size:13px;font-weight:700;padding:6px 12px;border-radius:999px;cursor:pointer;
     border:1px solid var(--line);background:#fff;color:var(--muted)}
.kid[aria-pressed="true"]{background:var(--tint);border-color:var(--blue);color:var(--blue)}
.wk-sec{font-size:13px;font-weight:800;color:var(--muted);margin:14px 2px 8px}
.wk-sec:first-of-type{margin-top:0}
.tst{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);
     border-radius:14px;padding:13px 14px;margin:0 0 8px}
.tst.soon{border:2px solid var(--blue);padding:12px 13px}
.tst .tx{flex:1;min-width:0}
.tst .d{font-family:'Fredoka',sans-serif;font-weight:600;font-size:18px;color:var(--ink);line-height:1.25}
.tst .d.cjk{font-family:'Noto Sans SC','Fredoka',sans-serif}
.tst .m{font-size:13px;color:var(--muted);margin-top:2px;line-height:1.4}
.tst .when{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
           color:var(--blue);background:var(--tint);border-radius:6px;padding:2px 7px;margin-top:6px}
.tst .when.today{color:#fff;background:var(--red)}
.rd{font:inherit;font-weight:800;font-size:14px;border:0;border-radius:12px;background:var(--blue);color:#fff;
    padding:11px 14px;cursor:pointer;white-space:nowrap;flex-shrink:0}
.nx{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:11px 4px;
    border-top:1px solid var(--line);font-size:15px;cursor:pointer}
.nx:last-child{border-bottom:1px solid var(--line)}
.nx b{font-weight:700}.nx span{color:var(--muted);font-size:13px;white-space:nowrap}
.fold{border-top:1px solid var(--line);margin-top:4px}
.fold summary{list-style:none;cursor:pointer;padding:11px 4px;font-size:14px;font-weight:700;color:var(--muted)}
.fold summary::-webkit-details-marker{display:none}
.fold summary::before{content:"▸ ";color:var(--faint)}
.fold[open] summary::before{content:"▾ "}
.fold .nx{font-size:14px}
.wk-empty{background:#fff;border:1px dashed var(--line);border-radius:14px;padding:14px;font-size:14px;
          color:var(--muted);line-height:1.55}
.sheets{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px;
        padding:11px 4px 0;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.sheets a{color:var(--blue);font-weight:700;cursor:pointer}
.mng{background:#fff;border:1px solid var(--line);border-radius:14px;margin-top:10px;overflow:hidden}
.mng-r{display:flex;align-items:center;gap:10px;padding:11px 14px;border-top:1px solid var(--line)}
.mng-r:first-child{border-top:0}
.mng-r .t{flex:1;min-width:0;font-size:14px}.mng-r .t b{display:block}
.mng-r .t span{font-size:12px;color:var(--muted)}
.mng-h{font-size:11px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;color:var(--faint);
       padding:10px 14px 4px;background:#FAFBFD}
.pill.chk{background:#FEF3C7;color:#92400E}

/* ---- List page additions ---- */
.addwk{width:100%;font:inherit;font-weight:800;font-size:15px;border-radius:12px;padding:12px;cursor:pointer;
       border:2px solid var(--blue);background:#fff;color:var(--blue);margin:12px 0 0}
.addwk.on{border-color:#BFE5CB;background:#E7F6EC;color:#2B7A3B}
.kidask{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;margin-top:8px}
.kidask p{margin:0 0 8px;font-size:14px;font-weight:700}
.kidask .kids{margin:0 0 8px}
.kidask .r{display:flex;gap:8px}
.kidask input{flex:1;min-width:0;border:1px solid var(--line);border-radius:10px;padding:9px 12px;font:inherit;font-size:14px}
.kidask button.go{border:0;border-radius:10px;background:var(--blue);color:#fff;font-weight:800;padding:0 16px;cursor:pointer;font:inherit}
.wabtn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;font:inherit;font-weight:800;
       font-size:15px;border:0;border-radius:12px;background:#1FA855;color:#fff;padding:12px;cursor:pointer;margin:0 0 10px}
.report{margin:22px 0 6px;text-align:center}
.report > button{font:inherit;font-size:13px;color:var(--faint);background:none;border:0;cursor:pointer;text-decoration:underline}
.report .opts{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.report .opts button{font:inherit;font-size:14px;font-weight:700;border:1px solid var(--line);background:#fff;
                     border-radius:10px;padding:10px;cursor:pointer;color:var(--ink)}
.report .thx{font-size:14px;color:#2B7A3B;font-weight:700;margin-top:8px}

/* ---- WhatsApp bot demo ---- */
.botsec{margin:26px 0 8px;text-align:center}
.botsec .eyebrow{margin-top:0}
.botsec h2{font-family:'Fredoka',sans-serif;font-weight:600;font-size:23px;line-height:1.25;color:var(--ink);margin:4px 8px 8px}
.botsec p{font-size:14.5px;line-height:1.6;color:var(--muted);margin:0 auto 16px;max-width:380px}
.botcta{font:inherit;font-weight:800;font-size:15px;border:0;border-radius:12px;background:#1FA855;color:#fff;
        padding:13px 22px;margin-top:16px;cursor:pointer}
.botnote{font-size:12px;color:var(--faint);margin-top:8px}
body.compact .botsec{display:none}

/* ================= October 2026 refresh =================
   One order for every visitor: find your class, else add the sheet, then
   what the site does. Same brand (blue, red, the exercise book), calmer
   cards, bigger tap targets, one button style. */
:root{ --r:16px; --shadow:0 1px 2px rgba(26,30,46,.04),0 6px 20px rgba(43,76,155,.07); --wa:#1FA855; }
body{background:linear-gradient(180deg,#EEF3FC 0,#F7F9FD 260px,var(--paper) 520px) no-repeat,var(--paper)}
header{padding:26px 18px 6px}
header .mark{width:44px;height:44px;margin-bottom:4px}
header h1{font-size:28px;line-height:1.15}
header p{font-size:21px;max-width:400px;margin-top:10px}
header p.subline{font-size:15px;max-width:380px}
.sec-h{font-family:'Fredoka',sans-serif;font-weight:600;font-size:21px;line-height:1.25;color:var(--ink);margin:0 0 12px}
.sec-p{font-size:14.5px;line-height:1.6;color:var(--muted);margin:-4px 0 14px}
.sec-p b{color:var(--ink)}
:where(button,a,input,select,summary):focus-visible{outline:3px solid #9DB5EA;outline-offset:2px}

/* find your class: the first thing on the page */
.findsec{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);
         padding:18px 16px 16px;margin:14px 0 0;position:relative;z-index:1}
body.compact .findsec{margin-top:0}
.findsec .search{margin-top:0}
.qwrap{align-items:center}
.qico{position:absolute;left:14px;color:var(--faint);pointer-events:none}
.findsec .search input{height:54px;font-size:17px;border-radius:14px;padding:0 44px 0 44px;
                       border:2px solid var(--line);background:#FBFCFE;transition:border-color .15s,background .15s}
.findsec .search input:focus{border-color:var(--blue);background:#fff;outline:none}
.findsec #q::-webkit-calendar-picker-indicator{display:none !important}   /* the datalist arrow, crowding the ✕ */
.findsec .chips{margin-top:12px}
.findsec .prompt{padding:16px 10px 6px}
.findsec .empty{padding:20px 6px 6px;color:var(--muted)}
.emptygo{display:block;margin:12px auto 0;font:inherit;font-weight:800;font-size:14px;border:2px solid var(--blue);
         background:#fff;color:var(--blue);border-radius:12px;padding:10px 16px;cursor:pointer}
.card{border-radius:14px;padding:13px 14px;margin-top:10px;min-height:70px}
.card:hover{border-color:#B9C8E8}
.card .arr{font-size:18px;margin-left:8px}

/* add the sheet */
.addsec{margin-top:18px}
.upload{transform:none;border-radius:20px;box-shadow:var(--shadow);padding:26px 18px 20px}
.upload .t{font-size:20px}
.upbtn{padding:14px 12px;font-size:15px;border-radius:13px}
.wasend{display:flex;align-items:center;gap:12px;text-align:left;margin-top:10px;padding:12px 14px;
        border-radius:13px;background:#ECFBF2;border:1.5px solid #BDEBCF;color:#14532D;text-decoration:none}
.wasend[hidden]{display:none}
.wasend svg{flex:none;color:var(--wa)}
.wasend b{display:block;font-size:14.5px;font-weight:800}
.wasend small{display:block;font-size:12.5px;color:#3F7A55;font-weight:600;line-height:1.4}
.wasend:hover{background:#DFF7E9}
.err,.okbanner{border-radius:14px;padding:12px 14px;margin-top:12px}
.okbanner a,.err a{color:inherit}

/* what it does */
.demosec{margin:34px 0 0;text-align:center}
.demosec .sec-p{max-width:420px;margin-left:auto;margin-right:auto}
.herostage{margin-top:6px}
.botsec{margin-top:38px}
.botsec h2{font-size:21px}
.about{border-top:0;margin-top:30px}
.about h2{font-size:20px;color:var(--ink)}
.hiw .step,.about details{border-radius:14px;padding:14px 16px}
.about summary{list-style:none;display:flex;gap:8px;align-items:flex-start}
.about summary::-webkit-details-marker{display:none}
.about summary::after{content:"+";margin-left:auto;color:var(--blue);font-size:18px;font-weight:700;line-height:1.2}
.about details[open] summary::after{content:"–"}

/* your week */
#myweek{border-radius:20px;box-shadow:var(--shadow);margin-top:14px}

/* a list */
#detail{scroll-margin-top:64px}
.back{margin:18px 0 10px;font-size:14.5px}
.schoolname{font-size:24px;line-height:1.25}
.schoolmeta{margin-top:2px}
.addwk{border-radius:13px;padding:13px;font-size:15px}
.page{border-radius:16px;box-shadow:var(--shadow)}
.sharebox,.rem{border-radius:18px}
.rem{padding:16px}
.rem .h{font-family:'Fredoka',sans-serif;font-weight:600;font-size:16px;margin-bottom:10px}
.rem .wabtn{margin:0 0 8px}
.rem-or{font-size:12.5px;font-weight:700;color:var(--faint);text-align:center;margin:0 0 8px}
.rem input{padding:11px 12px}
.rem .r button{padding:0 16px}
/* ".rem button" (the Remind me button) used to squash every button in here */
.rem .calbtn{padding:11px;border-radius:12px;margin-top:10px;background:#fff;color:var(--blue);border:2px solid var(--blue)}
.rem .wabtn{padding:13px;border-radius:12px;background:var(--wa);font-size:15px}

@media (min-width:900px){
  .wrap{max-width:680px}
  .tb-in{max-width:680px}
  #detail{max-width:680px}
  header{padding-top:40px}
  header h1{font-size:34px}
  header p{font-size:24px;max-width:520px}
  .findsec{padding:24px 24px 20px}
}

/* ================= November 2026: the page is for the child too =================
   Lists are tapped by small fingers now. Bigger targets, real buttons
   everywhere (so a keyboard and a screen reader work), and the practice box. */
button{color:inherit}
.dots{display:inline-flex;gap:4px;vertical-align:middle;margin-right:6px}
.dots i{width:6px;height:6px;border-radius:50%;background:var(--blue);animation:dot 1s infinite}
.dots i:nth-child(2){animation-delay:.15s}.dots i:nth-child(3){animation-delay:.3s}
@keyframes dot{0%,80%,100%{opacity:.25}40%{opacity:1}}

.stars{color:#F2B705;letter-spacing:1px;font-size:.95em;white-space:nowrap}
.stars i{font-style:normal;color:#D5DBE7}
.wtab.on .stars i{color:rgba(255,255,255,.35)}
.streak{white-space:nowrap;font-weight:800;color:#C2410C}

/* words: the whole row is one button */
.rowmain{flex:1;min-width:0;display:flex;flex-direction:column;align-items:stretch;text-align:left;
         font:inherit;background:none;border:0;padding:0;cursor:pointer;border-radius:8px}
.row .word{cursor:inherit}
.row .say{padding:10px}
.row.reading .word{background:#FEF3C7;border-radius:6px;box-shadow:0 0 0 4px #FEF3C7}
.py{text-align:left}
.pagego{display:block;width:100%;font:inherit;font-weight:800;font-size:14px;color:var(--blue);background:#F6F9FF;
        border:0;border-bottom:1px solid var(--line);padding:11px 16px;text-align:left;cursor:pointer}
.pagego:hover{background:var(--tint)}
.schoolname{font-weight:600;margin:0}
.kidnote{font-size:12px;color:var(--faint);margin-top:6px}
.mng-r .t .why{display:block;color:#991B1B;font-weight:700}
.voicehelp{background:#FFF7ED;color:#9A3412;font-size:13px;font-weight:700;line-height:1.5;
           padding:11px 13px;border-radius:12px;border:1px solid #FED7AA;margin:0 0 12px}
.voicehelp[hidden]{display:none}

/* your week: rows are buttons */
.tst .tx{font:inherit;text-align:left;background:none;border:0;padding:0;cursor:pointer;display:block}
.tst .tx .d,.tst .tx .m{display:block}
button.nx{width:100%;font:inherit;text-align:left;background:none;border:0;border-top:1px solid var(--line)}
button.nx:last-child{border-bottom:1px solid var(--line)}
.wk-add,.sheets button{font:inherit;font-size:13px;font-weight:700;color:var(--blue);background:none;border:0;
                       cursor:pointer;padding:6px 2px;white-space:nowrap}
.rd{background:#F2B705;color:var(--ink);box-shadow:0 3px 0 #C99700}
.rd:active{transform:translateY(2px);box-shadow:0 1px 0 #C99700}
.step.click:focus-visible{outline:3px solid #9DB5EA;outline-offset:2px}

/* ---- the practice box ---- */
.prac{background:linear-gradient(180deg,#FFF8E1,#FFFDF5);border:2px solid #F6D56A;border-radius:22px;
      padding:16px 14px 14px;margin:14px 0 0;box-shadow:var(--shadow)}
.prac-h{display:flex;align-items:center;gap:12px;margin:0 2px 12px}
.prac-h .pip{width:54px;height:68px;flex:none}
.prac-h b{display:block;font-family:'Fredoka',sans-serif;font-weight:600;font-size:19px;line-height:1.2;color:var(--ink)}
.prac-h small{display:block;font-size:13px;font-weight:700;color:var(--muted);margin-top:3px}
.prac-main{display:flex;align-items:center;gap:12px;width:100%;text-align:left;font:inherit;cursor:pointer;
           background:var(--blue);color:#fff;border:0;border-radius:16px;padding:14px 16px;
           box-shadow:0 4px 0 #1B3270;transition:transform .08s,box-shadow .08s}
.prac-main:active{transform:translateY(3px);box-shadow:0 1px 0 #1B3270}
.prac-main .i{font-size:28px;line-height:1;flex:none}
.prac-main b{display:block;font-family:'Fredoka',sans-serif;font-weight:600;font-size:18px}
.prac-main small{display:block;font-size:12.5px;font-weight:700;color:#C9D6F2;margin-top:1px}
.prac-games{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:10px;margin-top:12px}
.gcard{font:inherit;cursor:pointer;border:0;border-radius:16px;padding:14px 8px 12px;text-align:center;color:var(--ink);
       background:var(--g);box-shadow:0 4px 0 var(--gs);transition:transform .08s,box-shadow .08s;min-height:104px}
.gcard:active{transform:translateY(3px);box-shadow:0 1px 0 var(--gs)}
.gcard .i{display:block;font-size:30px;line-height:1.1}
.gcard b{display:block;font-family:'Fredoka',sans-serif;font-weight:600;font-size:15px;margin-top:5px}
.gcard small{display:block;font-size:11.5px;font-weight:700;opacity:.72;margin-top:1px}
.g-build{--g:#D7F3E3;--gs:#8FD3AC}
.g-type{--g:#DCE8FF;--gs:#9DB5EA}
.g-pick{--g:#FFE0E0;--gs:#EFA5A5}
.prac-tricky{width:100%;font:inherit;font-weight:800;font-size:14.5px;cursor:pointer;margin-top:12px;
             background:#fff;color:#9A3412;border:2px dashed #F2A65A;border-radius:14px;padding:12px}
.prac-tricky:hover{background:#FFF7ED}

/* ---- home: the games ---- */
.playsec{margin:34px 0 0;background:linear-gradient(180deg,#FFF8E1,#FFFDF5);border:2px solid #F6D56A;
         border-radius:22px;padding:18px 16px 16px}
.playsec-top{display:flex;gap:14px;align-items:flex-start}
.playsec-pip .pip{width:64px;height:80px;display:block}
.playsec .sec-h{margin-bottom:6px}
.playsec .sec-p{margin:0}
.playsec-note{font-size:12.5px;font-weight:700;color:var(--muted);margin:12px 2px 0;line-height:1.5}
body.compact .playsec{display:none}
