/* LearnZIMSEC identity — "The ZIMSEC pathway".
   Structured, steady and clear: deep green with gold, red and black accents inspired by the colours of
   Zimbabwe's flag (no official logos or emblems), on a paper grid, square-cornered cards,
   Lexend for headings (designed for reading ease) and Public Sans for text.
   Loaded after style.css; it changes the look only, never the behaviour. */
@font-face{font-family:"Lexend";src:url(/fonts/lexend.ttf) format("truetype");font-weight:100 900;font-display:swap}
@font-face{font-family:"Public Sans";src:url(/fonts/publicsans.woff2) format("woff2");font-weight:200 900;font-display:swap}
:root{
  --ink:#13241a;--muted:#56624f;--bg:#f5f7f2;--card:#fff;--line:#dbe3d6;--soft:#eef3ea;
  --violet:#1f6b3a;--indigo:#1f6b3a;--brand:#0f4d2e;--teal:#0f766e;--gold:#c48a00;--gold-soft:#fbefc4;
  --grad:linear-gradient(90deg,#0f4d2e 0%,#1f6b3a 100%);
  --grad-btn:linear-gradient(180deg,#2a7d47 0%,#0f4d2e 100%);
  --shadow:0 1px 2px rgba(15,77,46,.06),0 6px 18px -12px rgba(15,77,46,.22);
  --shadow-lg:0 16px 34px -20px rgba(15,77,46,.45);
  --r:14px;--display:"Lexend","Public Sans",system-ui,sans-serif;
}
body{font-family:"Public Sans",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:17.5px;background:
  linear-gradient(#e6ece2 1px,transparent 1px) 0 0/32px 32px,
  linear-gradient(90deg,#e6ece2 1px,transparent 1px) 0 0/32px 32px,
  var(--bg);background-attachment:fixed}
h1,h2,h3,h4{font-family:var(--display);letter-spacing:-.015em;font-weight:600;color:var(--brand)}
h4{color:var(--violet)}

/* header: solid navy with a gold rule, no glow */
header{background:var(--brand);box-shadow:none;border-bottom:6px solid var(--gold);border-image:linear-gradient(90deg,#e0a800 0 25%,#c8102e 25% 50%,#111 50% 75%,#e0a800 75%) 1}
header::before,header::after{display:none}
header h1{color:#fff;font-weight:600;letter-spacing:-.02em}
.logo{animation:none;border-radius:10px;background:#ffffff14;border-color:#ffffff30}
#who>span{border-radius:8px}

/* navigation and controls: crisp, rectangular */
nav{border-radius:12px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);backdrop-filter:none}
nav .tab{border-radius:8px;color:#34432f}
.tab.active,nav .tab.active,.guide-head .tab.active{background:var(--brand);color:#fff;box-shadow:inset 0 -3px 0 var(--gold)}
button{border-radius:10px;background:#e9f0e6;color:var(--brand)}
button:hover{transform:none;box-shadow:0 0 0 2px #cddcc8}
button.primary{background:var(--grad-btn);box-shadow:0 6px 14px -8px rgba(15,77,46,.6)}
button.primary:hover{box-shadow:0 0 0 3px var(--gold-soft),0 6px 14px -8px rgba(15,77,46,.6)}
button.big{border-radius:12px}
a.button.primary{background:var(--grad-btn)}
input,select,textarea{border-radius:8px}

/* cards: flat paper with a thin rule */
.card{border:1px solid var(--line);box-shadow:var(--shadow);animation-duration:.3s}
.subcard{border-radius:10px}
.hero::before{height:5px;background:linear-gradient(90deg,var(--brand),var(--teal) 70%,var(--gold))}
.hero-card{background:#fff;border-top:4px solid var(--brand)}
.hero-card::after{display:none}
.section-card{border-radius:10px}
.tile{border-radius:10px}
.badge.on{background:linear-gradient(#fff,#fff) padding-box,linear-gradient(135deg,var(--gold),var(--brand)) border-box;box-shadow:0 8px 18px -14px var(--brand)}
.eyebrow{background:var(--gold-soft);color:#6b4f00;border-radius:6px;letter-spacing:.06em;font-size:12px}

/* welcome page */
.lp-title{background:none;color:var(--brand);-webkit-text-fill-color:currentColor;font-weight:600;letter-spacing:-.025em}
.lp-pills li{border-radius:8px;box-shadow:none}
.lp-sigma{background:#fff;border:1px solid var(--line);border-radius:16px}
.lp-prog{border-radius:14px}
.lp-ladder{display:grid;grid-template-columns:repeat(4,1fr);align-items:end;gap:8px;margin:18px 0 6px;max-width:620px}
.lp-ladder .rung{background:#fff;border:1px solid var(--line);border-top:5px solid var(--brand);border-radius:10px;padding:10px 10px 12px;display:flex;flex-direction:column;gap:2px;font-size:14px;line-height:1.25;box-shadow:var(--shadow)}
.lp-ladder .r1{min-height:118px;border-top-color:var(--teal)}.lp-ladder .r2{min-height:140px;border-top-color:#3c8a3f}.lp-ladder .r3{min-height:162px;border-top-color:#1f6b3a}.lp-ladder .r4{min-height:184px;border-top-color:var(--brand)}
.lp-ladder .rn{font:600 13px/1 var(--display);color:#fff;background:var(--brand);width:24px;height:24px;border-radius:6px;display:grid;place-items:center;margin-bottom:4px}
.lp-ladder b{font-family:var(--display);font-weight:600;color:var(--brand);font-size:14.5px}
.lp-ladder span:not(.rn){color:var(--muted)}
.lp-ladder em{font-style:normal;margin-top:auto;padding-top:6px;color:#6b4f00;font-weight:700;font-size:12.5px;border-top:1px dashed var(--line)}

/* learner home: My ZIMSEC pathway */
.pathway-card{border-top:4px solid var(--gold)}
.pw-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}
.pw-head h2{margin:.1em 0 .2em}
.pw-ladder{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}
.pw-col{background:var(--soft);border:1px solid var(--line);border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:6px}
.pw-col.current{background:#fff;border:2px solid var(--brand)}
.pw-col>b{font-family:var(--display);font-weight:600;color:var(--brand);font-size:15px}
.pw-col ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px}
.pw-step span{display:grid;place-items:center;min-width:34px;height:30px;padding:0 6px;border-radius:6px;font:600 13px/1 var(--display)}
.pw-step.past span{background:#d5e6e2;color:#0b4f49}
.pw-step.here span{background:var(--brand);color:#fff;box-shadow:0 0 0 3px var(--gold)}
.pw-step.ahead span{background:#fff;color:#7a869c;border:1px dashed #b9c5d6}
.pw-col small{color:var(--muted);font-size:13px;line-height:1.3;margin-top:auto}
.pw-key{font-size:13px;color:var(--muted);margin:10px 0 0;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pw-key .k{display:inline-block;width:14px;height:14px;border-radius:4px;margin-left:8px}
.pw-key .k.past{background:#d5e6e2}.pw-key .k.here{background:var(--brand);box-shadow:0 0 0 2px var(--gold)}.pw-key .k.ahead{background:#fff;border:1px dashed #b9c5d6}
@media (max-width:760px){.pw-ladder,.lp-ladder{grid-template-columns:repeat(2,minmax(0,1fr))}.lp-ladder .rung{min-height:0!important}}
@media print{.pathway-card{break-inside:avoid}}

/* ===== LearnZIMSEC additions: Grade 7 units, library ===== */
.band-u1,.band-u2{background:#dcfce7}.band-u3,.band-u4{background:#ecfccb}.band-u5,.band-u6{background:#fef9c3}.band-u7,.band-u8{background:#ffedd5}.band-u9{background:#fee2e2}
.lib-list{list-style:none;padding:0;margin:.4em 0}
.lib-list li{padding:8px 0;border-bottom:1px solid var(--line)}
.lib-list li:last-child{border-bottom:0}
.lib-cat{border:1px solid var(--line);border-radius:10px;padding:8px 12px;margin:8px 0;background:#fff}
.lib-cat>summary{cursor:pointer}
.lib-cat[open]>summary{margin-bottom:6px}
.inline{display:inline-flex;align-items:center;gap:8px}
.inline input{min-width:min(340px,60vw)}
.prog-INF{background:linear-gradient(135deg,#2f7d32,#5a9e1e)}.prog-JUN{background:linear-gradient(135deg,#1f6b3a,#0f766e)}.prog-OL{background:linear-gradient(135deg,#0f4d2e,#9a6b00)}.prog-AL{background:linear-gradient(135deg,#7a1020,#0f4d2e)}
#message:not(:empty){background:linear-gradient(135deg,#0f4d2e,#1f6b3a);box-shadow:0 18px 40px -12px rgba(15,77,46,.6)}
/* Lessons */
.ls-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.ls-area{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;padding:14px;border-radius:14px;border:1px solid #d7e5dc;background:#f6faf7;color:#123524;min-height:96px}
.ls-area:hover{border-color:#0f4d2e;background:#eef6f0}.ls-area b{font-size:1rem;line-height:1.25}.ls-ico{font-size:1.4rem}
.ls-topic{border:1px solid #e3ece6;border-radius:12px;padding:10px 14px;margin:8px 0;background:#fff}.ls-topic summary{cursor:pointer}.ls-topic ol{margin:8px 0 4px 18px}.ls-topic li{margin:4px 0}
.ls-lesson{line-height:1.6}.ls-lesson h3{margin-top:1.4em;color:#0f4d2e}.ls-hook{font-size:1.05rem;background:#fff8e1;border-left:4px solid #d4a017;padding:10px 14px;border-radius:8px;color:#3b2f05}
.ls-ican{background:#eef6f0;border-radius:10px;padding:10px 14px}.ls-ican ul{margin:4px 0 0 18px}
.ls-ex{background:#f7f8fa;border:1px solid #e5e7eb;border-radius:10px;padding:10px 14px;margin:10px 0}
.ls-vocab dt{font-weight:700;margin-top:6px}.ls-vocab dd{margin:0 0 4px 0;color:#374151}
.ls-q{border:1px solid #e5e7eb;border-radius:10px;padding:10px 14px;margin:10px 0}.ls-q legend{font-weight:700;padding:0 4px}
.ls-choice{display:block;padding:6px 8px;border-radius:8px;margin:3px 0;cursor:pointer}.ls-choice.ok{background:#dcfce7;color:#14532d}.ls-choice.bad{background:#fee2e2;color:#7f1d1d}
.ls-flag{background:#fff7ed;border:1px solid #fed7aa;color:#7c2d12;padding:8px 12px;border-radius:8px}.ls-home{background:#f0f9ff;color:#0c4a6e;padding:8px 12px;border-radius:8px}.ls-score{font-size:1.1rem}
/* Self-study support layer */
.sp-lesson{line-height:1.65}.sp-lesson h3{margin-top:1.3em;color:#0f4d2e}
.sp-why{background:#f0f9ff;color:#0c4a6e;padding:10px 14px;border-radius:10px}
.sp-before{background:#f6faf7;border:1px solid #d7e5dc;border-radius:12px;padding:6px 14px 10px;margin:12px 0}.sp-before h3{margin-top:.6em}
.sp-simple{background:#fffbea;border-left:4px solid #d4a017;color:#3b2f05;padding:8px 12px;border-radius:8px;margin:8px 0 14px;font-size:.98rem}
.sp-steps{background:#eef6f0;border-radius:12px;padding:6px 14px 8px;margin:12px 0}.sp-steps ol{margin:6px 0 6px 20px}.sp-steps li{margin:4px 0}
.sp-ex{background:#f7f8fa;border:1px solid #e5e7eb;border-radius:12px;padding:10px 14px;margin:10px 0}.sp-ex ol{margin:6px 0 6px 20px}.sp-ex li{margin:6px 0}
.sp-whystep{color:#4b5563;font-size:.93rem}
.sp-lv{display:inline-block;font-size:.8rem;font-weight:700;background:#fff;border:1px solid #d1d5db;border-radius:999px;padding:1px 8px;margin-right:4px;color:#1f2937}
.sp-pic pre{white-space:pre-wrap;background:#fff;border:1px dashed #9ca3af;border-radius:10px;padding:10px;font-size:.92rem;overflow-x:auto;color:#111827}
.sp-mis>div{border-left:4px solid #dc2626;background:#fef2f2;color:#450a0a;border-radius:8px;padding:6px 12px;margin:8px 0}.sp-mis p{margin:4px 0}
.sp-words{margin:14px 0}.sp-words summary{cursor:pointer;padding:6px 0}.sp-table{overflow-x:auto}.sp-table table{border-collapse:collapse;width:100%;min-width:520px;font-size:.93rem}.sp-table th,.sp-table td{border-bottom:1px solid #e5e7eb;padding:6px 8px;text-align:left;vertical-align:top}.sp-table th{background:#eef6f0;color:#0f4d2e}
.sp-try{border:1px solid #e5e7eb;border-radius:10px;padding:8px 12px;margin:8px 0}.sp-try details{margin:4px 0}.sp-try summary,.sp-another summary,.sp-before summary{cursor:pointer;color:#0f4d2e;font-weight:600}
.sp-another{background:#f5f3ff;border-radius:10px;padding:8px 12px;margin:12px 0;color:#2e1065}
.sp-sum{background:#eef6f0;border-radius:12px;padding:4px 14px 8px;margin:12px 0}.sp-frames{background:#f0f9ff;border-radius:12px;padding:4px 14px 8px;color:#0c4a6e}
.mp-learn:has(.sp-lesson){display:block}.sp-lesson{min-width:0;max-width:100%}.sp-lesson>*{max-width:100%}
.sp-apply{border:2px solid #15803d;border-radius:14px;padding:4px 14px 12px;margin:16px 0;background:#fbfefb}.sp-apply h4{margin:14px 0 6px;color:#0f4d2e}
.sp-uses{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.sp-uses>div{background:#f2f8f3;border-radius:10px;padding:8px 12px}.sp-uses p{margin:4px 0 0}
.sp-today{background:#ecfdf5;border-radius:12px;padding:4px 14px 8px;margin:10px 0;color:#064e3b}.sp-today ol{margin:6px 0 6px 20px}
.sp-safe{background:#fff7ed;border-left:4px solid #ea580c;color:#431407;padding:6px 12px;border-radius:8px}
.sp-proj{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:8px 12px;margin:10px 0}.sp-proj summary{cursor:pointer;color:#0f4d2e}
.sp-ican li::marker{content:'☐  '}.sp-talk{background:#fdf4ff;color:#4a044e;padding:8px 12px;border-radius:10px}
/* Read-aloud player bar */
.say-bar{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(12px + env(safe-area-inset-bottom));z-index:9999;display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:center;background:#0f4d2e;color:#fff;border-radius:16px;padding:8px 10px;box-shadow:0 8px 28px rgba(0,0,0,.28);max-width:calc(100vw - 16px);width:max-content}
.say-bar[hidden]{display:none}.say-now{font-weight:600;font-size:.95rem;padding:0 4px}
.say-btns{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.say-bar button{min-height:44px;min-width:44px;border:0;border-radius:12px;padding:8px 12px;font:inherit;font-weight:700;background:#fff;color:#0f4d2e;cursor:pointer}
.say-bar button.say-main{background:#facc15;color:#1f2937}.say-bar button:focus-visible{outline:3px solid #facc15;outline-offset:2px}
body.say-on{padding-bottom:96px}
@media (max-width:480px){.say-bar{gap:4px;padding:6px;border-radius:14px;width:calc(100vw - 12px)}.say-now{width:100%;text-align:center;font-size:.88rem}.say-btns{gap:4px;flex-wrap:nowrap}.say-bar button{padding:8px 8px;font-size:.88rem;min-width:0}}
/* Interactive lesson player */
.ip{position:relative}.ip-top{position:sticky;top:0;z-index:5;background:#fff;padding:6px 0 8px;margin-bottom:6px;border-bottom:1px solid #eef2ef}
.ip-bar{height:10px;background:#e7efe9;border-radius:999px;overflow:hidden}.ip-bar span{display:block;height:100%;background:linear-gradient(90deg,#15803d,#facc15);border-radius:999px;transition:width .4s}
.ip-meta{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:6px;font-size:.9rem;color:#0f4d2e;font-weight:600}
.ip-dots{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.ip-dot{width:12px;height:12px;min-height:0;padding:0;border-radius:50%;border:2px solid #b7d3bf;background:#fff;cursor:pointer}.ip-dot.done{background:#15803d;border-color:#15803d}.ip-dot.now{background:#facc15;border-color:#ca8a04;transform:scale(1.25)}.ip-dot:disabled{cursor:default}
.ip-card{animation:ipIn .35s ease;padding:4px 2px 8px;line-height:1.65;font-size:1.04rem}.ip-card h2,.ip-card h3{color:#0f4d2e}
@keyframes ipIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.ip-kicker{color:#4b5563;font-size:.9rem;margin:0}.ip-hook{font-size:1.1rem;background:#fffbea;border-radius:12px;padding:10px 14px;color:#3b2f05}
.ip-plan{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.ip-plan span{background:#eef6f0;color:#0f4d2e;border-radius:999px;padding:4px 10px;font-size:.88rem;font-weight:600}
.ip-nav{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:14px;position:sticky;bottom:8px;z-index:4;background:rgba(255,255,255,.94);padding:8px 0;border-radius:12px}
body.say-on .ip-nav{bottom:96px}
.ip-nav button.big,.ip-row button.big{font-size:1.05rem;padding:12px 20px;min-height:48px}.ip-nav button[disabled]{opacity:.45;cursor:not-allowed}
.ip-self{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}.ip-self span{font-weight:600;color:#374151}.ip-self button{min-height:44px;border-radius:12px}.ip-self button.on{background:#15803d;color:#fff;border-color:#15803d}
.ip-row{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.ip-row.center{justify-content:center}
.ip-q{background:#f7f8fa;border:1px solid #e5e7eb;border-radius:12px;padding:10px 14px;margin:10px 0}
.ip-ans{display:block;font-weight:600;margin:8px 0}.ip-ans input,.ip-ans textarea,.ip-q textarea{display:block;width:100%;margin-top:4px;font:inherit;padding:10px;border:2px solid #cfe0d4;border-radius:10px;box-sizing:border-box}
.ip-problem{font-size:1.1rem;font-weight:600;background:#f0f9ff;color:#0c4a6e;border-radius:12px;padding:10px 14px}
.ip-reveal{background:#ecfdf5;color:#064e3b;border-radius:10px;padding:8px 12px;animation:ipIn .3s}.ip-hint{background:#fffbea;color:#3b2f05;border-radius:10px;padding:8px 12px}
.ip-ok{color:#065f46;font-weight:600}.ip-no{color:#9a3412;font-weight:600}.ip-fb{min-height:1.4em;margin:8px 0}
.ip-steps li{margin:8px 0;animation:ipIn .3s}.ip-reveal-btn{min-height:48px;border-radius:12px;font-weight:700;background:#fef9c3;border:2px dashed #ca8a04;color:#713f12;padding:10px 16px}
.ip-answer{background:#ecfdf5;border-radius:10px;padding:8px 12px;color:#064e3b;font-size:1.05rem}
.ip-pool{display:flex;flex-direction:column;gap:8px}.ip-chip,.ip-tile,.ip-opt{text-align:left;min-height:48px;padding:10px 14px;border-radius:12px;border:2px solid #cfe0d4;background:#fff;font:inherit;color:#111827;cursor:pointer;line-height:1.4}
.ip-chip:hover,.ip-tile:hover,.ip-opt:hover{border-color:#15803d}.ip-got li.ok{color:#065f46;font-weight:600;animation:ipIn .3s}
.ip-opts{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ip-opts.col{grid-template-columns:1fr}.ip-opt.ok,.ip-tile.ok{background:#dcfce7;border-color:#16a34a;color:#14532d}.ip-opt.bad{background:#fee2e2;border-color:#dc2626;color:#7f1d1d}
.ip-letter{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#eef6f0;color:#0f4d2e;font-weight:800;margin-right:6px}
.ip-pair{border-top:1px dashed #d1d5db;padding-top:8px;margin-top:8px}
.ip-match{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:10px}.ip-match>div{display:flex;flex-direction:column;gap:8px}.ip-tile.sel{background:#fef9c3;border-color:#ca8a04}.ip-tile.mean{font-size:.95rem}
.shake{animation:ipShake .35s}@keyframes ipShake{25%{transform:translateX(-6px)}50%{transform:translateX(6px)}75%{transform:translateX(-3px)}}
.ip-mini{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.ip-mini span{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-weight:700}.ip-mini .ok{background:#dcfce7;color:#14532d}.ip-mini .bad{background:#fee2e2;color:#7f1d1d}
.ip-center{text-align:center}.ip-big{font-size:2.6rem;font-weight:800;color:#0f4d2e;margin:6px 0}.ip-combo{font-size:.85rem;background:#fff7ed;color:#9a3412;border-radius:999px;padding:2px 8px}
.ip-stars{font-size:3.2rem;letter-spacing:6px}.ip-stars span{color:#d1d5db;display:inline-block}.ip-stars span.on{color:#facc15;animation:ipPop .5s both;text-shadow:0 2px 0 #ca8a04}
@keyframes ipPop{0%{transform:scale(0) rotate(-30deg)}70%{transform:scale(1.3)}100%{transform:scale(1)}}
.ip-why-stars{list-style:none;padding:0;display:inline-block;text-align:left}
.ip-swipe{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.ip-use{background:#f2f8f3;border-radius:10px;padding:8px 12px}.ip-use p{margin:4px 0 0}
.ip-todo{list-style:none;padding:0}.ip-todo li{margin:6px 0}.ip-todo label{display:flex;gap:10px;align-items:flex-start;cursor:pointer}.ip-todo input{width:22px;height:22px;flex:none;margin-top:2px;accent-color:#15803d}
.ip-confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:6}.ip-confetti i{position:absolute;top:-10px;width:9px;height:14px;border-radius:2px;animation:ipFall 1.6s ease-in forwards}
@keyframes ipFall{to{top:105%;transform:translateX(30px) rotate(540deg);opacity:.2}}
.ip-card{position:relative}
.ip-journey .ip-jrow{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.ip-ring{width:84px;height:84px;flex:none}.ip-ring circle{fill:none;stroke-width:7}.ip-ring .bg{stroke:#e7efe9}.ip-ring .fg{stroke:#15803d;stroke-linecap:round;transform:rotate(-90deg);transform-origin:50% 50%;transition:stroke-dashoffset .6s}.ip-ring text{font-weight:800;fill:#0f4d2e;font-size:15px}
.ip-stats{display:flex;flex-wrap:wrap;gap:6px 14px;margin:4px 0 8px}.ip-badges{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;margin-top:12px}
.ip-badge{display:flex;flex-direction:column;align-items:center;text-align:center;border-radius:12px;padding:8px;background:#f3f4f6;color:#6b7280;filter:grayscale(1);opacity:.75}.ip-badge i{font-style:normal;font-size:1.7rem}.ip-badge small{font-size:.75rem}
.ip-badge.got{background:#fef9c3;color:#713f12;filter:none;opacity:1;box-shadow:0 0 0 2px #facc15 inset}
.ls-stars{color:#ca8a04;letter-spacing:1px;font-size:.95rem}.ls-mini-bar{display:block;height:6px;background:#e7efe9;border-radius:999px;margin-top:6px;overflow:hidden}.ls-mini-bar i{display:block;height:100%;background:#15803d}
@media (max-width:480px){.ip-opts{grid-template-columns:1fr}.ip-match{grid-template-columns:1fr 1fr;gap:6px}.ip-tile{padding:8px 10px;font-size:.92rem}.ip-card{font-size:1rem}}
@media (prefers-reduced-motion:reduce){.ip-card,.ip-steps li,.ip-reveal,.ip-stars span.on{animation:none}.ip-bar span{transition:none}}
.mp-flash{animation:mpFlash 1.5s}@keyframes mpFlash{0%,100%{box-shadow:none}30%{box-shadow:0 0 0 4px #facc15}}
/* bite-size reading, gaps, sparks, Shumba */
.ip-bite.new{animation:ipIn .35s}.ip-bite p{margin:.5em 0}
.ip-more-btn{display:block;width:100%;margin:10px 0;min-height:52px;border-radius:14px;border:2px solid #15803d;background:#ecfdf5;color:#065f46;font:inherit;font-weight:800;font-size:1.05rem;cursor:pointer}
.ip-gap{background:#f5f3ff;border-radius:14px;padding:10px 14px;margin:12px 0;color:#2e1065}.ip-gap-q{font-size:1.05rem;margin:4px 0 8px}
.ip-blank{display:inline-block;min-width:70px;border-bottom:3px solid #7c3aed;text-align:center;font-weight:800;color:#5b21b6}.ip-blank.ok{color:#065f46;border-color:#16a34a;animation:ipPop .4s}
.ip-gap .ip-chip{width:auto;text-align:center}.ip-chip.ok{background:#dcfce7;border-color:#16a34a;color:#14532d}.ip-chip.bad{background:#fee2e2;border-color:#dc2626;color:#7f1d1d}.ip-chip:disabled{cursor:default}
.ip-buddy{display:flex;gap:10px;align-items:center;background:#fff7e6;border:2px solid #fde68a;border-radius:16px;padding:8px 12px;margin:8px 0;color:#713f12;font-weight:600;animation:ipIn .3s}
.ip-lion{font-size:1.9rem;line-height:1;animation:ipBob 2.4s ease-in-out infinite}@keyframes ipBob{50%{transform:translateY(-3px) rotate(-4deg)}}
.ip-spark{position:relative;font-weight:800;color:#9a3412;display:inline-flex;align-items:center;gap:4px}.ip-lvl{display:inline-block;width:46px;height:6px;background:#fde68a;border-radius:999px;overflow:hidden;margin-left:4px}.ip-lvl span{display:block;height:100%;background:#f97316}
.ip-float{position:absolute;left:0;top:-4px;color:#ea580c;font-weight:900;animation:ipUp 1s ease-out forwards;pointer-events:none;white-space:nowrap}@keyframes ipUp{to{transform:translateY(-26px);opacity:0}}
.ip-sparks-total{font-size:1.2rem;color:#9a3412}
@media (prefers-reduced-motion:reduce){.ip-lion,.ip-float,.ip-bite.new,.ip-buddy{animation:none}}
/* phone pass: confidence check, reminder, slide-in cards, compact header */
.ip-conf{background:#f0f9ff;border-radius:14px;padding:10px 12px;margin:12px 0;color:#0c4a6e}.ip-conf p{margin:2px 0 8px}
.ip-conf-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.ip-conf-b{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:72px;border-radius:14px;border:2px solid #bae6fd;background:#fff;font:inherit;font-size:.85rem;font-weight:700;color:#0c4a6e;cursor:pointer;padding:6px}
.ip-conf-b span{font-size:1.8rem;line-height:1}.ip-conf-b.on{background:#0284c7;border-color:#0284c7;color:#fff;transform:scale(1.04)}
.ip-hook p{margin:4px 0 0}.ip-more{margin:8px 0;background:#f8faf9;border-radius:12px;padding:8px 12px}.ip-more summary{cursor:pointer;font-weight:700;color:#0f4d2e;min-height:32px}
.ip-recap{background:#f8faf9;border-left:4px solid #15803d;border-radius:10px;padding:8px 12px;margin-top:10px;animation:ipIn .3s}
.ip-card.from-right{animation:ipFromR .32s ease}.ip-card.from-left{animation:ipFromL .32s ease}
@keyframes ipFromR{from{opacity:0;transform:translateX(40px)}to{opacity:1;transform:none}}@keyframes ipFromL{from{opacity:0;transform:translateX(-40px)}to{opacity:1;transform:none}}
.ip-chk .ip-opt{background:#fff}
@media (max-width:480px){
  .ip-dots{display:none}.ip-lbl{display:none}.ip-tools button{font-size:1.15rem;min-width:40px;min-height:36px;text-decoration:none}
  .ip-meta{flex-wrap:nowrap;align-items:center;font-size:.85rem}.ip-tools{display:flex;gap:2px}.ip-top{padding:4px 0 6px}
  .ip-buddy{padding:6px 10px;font-size:.88rem;gap:8px;margin:6px 0}.ip-lion{font-size:1.4rem}
  .ip-card h2{font-size:1.35rem}.ip-card h3{font-size:1.15rem;margin:.4em 0}
  .ls-play{padding:10px 12px}
}
@media (prefers-reduced-motion:reduce){.ip-card.from-right,.ip-card.from-left,.ip-recap{animation:none}}
/* drawing pad, picture art, compact header text */
.ip-pad{margin:10px 0;border:2px dashed #93c5fd;border-radius:14px;padding:8px;background:#f8fbff}
.ip-pad-tools{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px;color:#1e3a8a}.ip-pad-tools span{display:flex;gap:6px;align-items:center}
.ip-ink{width:30px;height:30px;min-height:0;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px #cbd5e1;padding:0;cursor:pointer}.ip-ink.on{box-shadow:0 0 0 3px #facc15}
.ip-canvas{display:block;width:100%;height:240px;background:#fff;border-radius:10px;touch-action:none;cursor:crosshair}
.ip-art{background:#f8fafc;border-radius:10px;padding:8px 10px;font-size:.85rem;overflow-x:auto;white-space:pre}
.ip-lshort{display:none}.ip-spark{white-space:nowrap;flex:none}.ip-step{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ip-nav{background:#fff;box-shadow:0 -6px 12px -8px rgba(15,77,46,.25)}
@media (max-width:480px){.ip-lshort{display:inline}.ip-lvl{display:none}}
/* Allen CCAF pass: challenge, lock-in, test-out, fix mistakes, predict, review */
.ip-opt.sel{background:#fef9c3;border-color:#ca8a04;color:#713f12}
.ip-lock{background:#fff7ed;border:2px solid #fdba74;border-radius:14px;padding:10px 12px;margin:10px 0;animation:ipIn .3s}.ip-lock p{margin:0 0 6px;color:#7c2d12}
.ip-ctx{background:#fffbea;border-left:4px solid #facc15;border-radius:10px;padding:8px 12px;color:#3b2f05}
.ip-goal{background:#ecfdf5;border-radius:12px;padding:8px 12px;color:#064e3b}
.ip-fast{background:#eef2ff;border:2px solid #a5b4fc;border-radius:14px;padding:10px 12px;margin:10px 0;color:#1e1b4b}.ip-fast p{margin:0 0 8px}
.ip-calib{background:#f0f9ff;border-radius:12px;padding:8px 12px;color:#0c4a6e;text-align:left}
.ip-fix{text-align:left;background:#fff7ed;border-radius:14px;padding:10px 12px;margin:10px 0}.ip-fix h4{margin:0 0 6px;color:#9a3412}
.ip-mini .fixed{background:#fef3c7;color:#92400e}
.ip-pred{background:#f5f3ff;border-radius:14px;padding:10px 12px;margin:10px 0;color:#2e1065}.ip-pred p{margin:0 0 8px}
.ip-review-card{border:2px solid #bae6fd;background:linear-gradient(180deg,#f0f9ff,#fff)}.ip-rv-icon{font-size:2.4rem}
